/* =====================================================================
   Kambana OS - device modes (tablet, phone, TV, frame, kiosk, car)
   ===================================================================== */

/* ---------- shared: shell pieces hidden on single-purpose screens ---------- */
:root:is([data-device="tv"], [data-device="frame"], [data-device="kiosk"], [data-device="car"]) :is(#topbar, #dock, #cmdbar, #island, #home-bar, #desktop, #wallpaper) { display: none !important; }
:root:is([data-device="frame"], [data-device="kiosk"], [data-device="car"]) #banners { display: none !important; }
[data-device="frame"] #windows { visibility: hidden; }
:root:is([data-device="kiosk"], [data-device="tv"], [data-device="car"]) #os { background: #000; }

/* window chrome: back bar for TV / car / kiosk, multitasking dots for tablet */
.dev-back, .dev-mt { display: none; }
:root:is([data-device="tv"], [data-device="car"], [data-device="kiosk"]) .win { border-radius: 0 !important; box-shadow: none !important; }
:root:is([data-device="tv"], [data-device="car"], [data-device="kiosk"]) .rz { display: none; }
:root:is([data-device="tv"], [data-device="car"]) .win-bar .win-ctrl,
:root:is([data-device="tv"], [data-device="car"]) .win-bar .win-menus { display: none; }
:root:is([data-device="tv"], [data-device="car"]) .dev-back,
[data-device="kiosk"] .win.dev-sub .dev-back {
  display: inline-flex; align-items: center; gap: 6px; flex: none; height: 34px; padding: 0 14px 0 10px; margin-right: 6px;
  border: 0; border-radius: 17px; background: var(--tile); color: var(--text); font: inherit; font-weight: 700; font-size: 13.5px;
}
.dev-back:hover { background: var(--tile-hover); }
.dev-back:focus-visible, :root:is([data-device="tv"], [data-device="car"]) .dev-back:focus { outline: none; box-shadow: 0 0 0 3px var(--accent); }
[data-device="tv"] .win-bar { height: 52px; padding: 0 14px; }
[data-device="car"] .win-bar { height: 66px; padding: 0 14px; }
[data-device="car"] .dev-back { height: 48px; border-radius: 24px; padding: 0 22px 0 16px; font-size: 17px; }
[data-device="kiosk"] .win:not(.dev-sub) .win-bar :is(.win-ctrl, .win-title, .win-menus) { display: none; }
[data-device="kiosk"] .win:not(.dev-sub) .win-bar:not(:has(.win-bar-extra > *)) { display: none; }
[data-device="kiosk"] .win.dev-sub .win-ctrl { display: none; }

/* TV: every focusable thing in an app gets a clear ring for the remote */
[data-device="tv"] .win-body :focus { outline: 3px solid var(--accent); outline-offset: 2px; }
[data-device="tv"] .win-body .wa :focus { outline: none; }

/* =====================================================================
   Tablet
   ===================================================================== */
[data-layout="tablet"] #topbar { height: 32px; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; color: #fff; padding: 0 18px; text-shadow: 0 1px 3px rgba(0, 0, 0, .3); touch-action: none; }
[data-layout="tablet"][data-wp-tone="light"] #topbar { color: #111827; text-shadow: none; }
[data-layout="tablet"] .tb-left { display: none; }
[data-layout="tablet"] .tb-right { width: 100%; justify-content: space-between; }
[data-layout="tablet"] .tb-right > .tb-btn:first-child { display: none; }
[data-layout="tablet"] .tb-clock { order: -1; font-weight: 700; font-size: 14px; height: 28px; }
[data-layout="tablet"] .tb-tray { height: 28px; }
[data-layout="tablet"] #desktop { top: 32px; bottom: 0; overflow-y: auto; padding: 22px max(40px, 5vw) 170px; scrollbar-width: none; }
[data-layout="tablet"] #desk-icons { display: none; }
[data-layout="tablet"] #widgets { position: static; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 172px; gap: 22px; }
[data-layout="tablet"] #widgets .widget { min-height: 0; }
[data-layout="tablet"] .w-batt { display: none; }
[data-layout="tablet"] #widgets .w-photo { grid-column: 1 / -1; }
[data-layout="tablet"] #home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); gap: 28px 12px; padding: 36px 0 0; }
[data-layout="tablet"] .home-app { font-size: 13px; gap: 8px; }
[data-layout="tablet"] .home-app .appicon { --s: 72px !important; }
[data-layout="tablet"] .home-app span:last-child { max-width: 100px; }
[data-layout="tablet"] .home-app:active .appicon { transform: scale(.92); }
[data-layout="tablet"] #dock { bottom: 30px; }
[data-layout="tablet"] .dock-inner {
  height: 94px; padding: 13px 16px; border-radius: 34px; gap: 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .07));
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 24px 50px -16px rgba(0, 0, 0, .55);
  -webkit-backdrop-filter: blur(28px) saturate(1.9); backdrop-filter: blur(28px) saturate(1.9);
}
[data-theme="light"][data-layout="tablet"] .dock-inner { background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(255, 255, 255, .34)); border-color: rgba(255, 255, 255, .6); }
[data-layout="tablet"] .dock-sys, [data-layout="tablet"] .dock-sep, [data-layout="tablet"] .dock-only { display: none !important; }
[data-layout="tablet"] .dock-apps .dock-item:nth-child(n+13) { display: none; }
[data-layout="tablet"] .dock-item { --dsz: 66px; width: 68px; justify-content: center; }
[data-layout="tablet"] .dock-item .appicon { --s: 66px !important; }
[data-layout="tablet"] .dock-item::after { display: none; }
[data-layout="tablet"] #windows { z-index: 4500; }
[data-layout="tablet"] .win { border-radius: 0 !important; }
[data-layout="tablet"] .win.dev-split { border-radius: 16px !important; }
[data-layout="tablet"] .win.dev-slideover { border-radius: 20px !important; box-shadow: 0 30px 80px -12px rgba(0, 0, 0, .65), 0 0 0 1px rgba(255, 255, 255, .14) !important; }
[data-layout="tablet"] .win-ctrl .wc-max, [data-layout="tablet"] .win-ctrl .wc-min { display: none; }
[data-layout="tablet"] .win-bar { height: 48px; padding-top: 6px; }
[data-layout="tablet"] .wc { width: 30px; height: 30px; }
[data-layout="tablet"] .rz { display: none; }
[data-layout="tablet"] .dev-mt {
  display: flex; gap: 5px; position: absolute; left: 50%; top: 0; transform: translateX(-50%); z-index: 3;
  padding: 7px 14px 9px; border: 0; background: none; border-radius: 0 0 12px 12px; cursor: pointer;
}
[data-layout="tablet"] .dev-mt i { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); transition: background .15s; }
[data-layout="tablet"] .dev-mt:hover i, [data-layout="tablet"] .dev-mt:focus-visible i { background: var(--text); }
[data-layout="tablet"] #home-bar { display: flex; position: absolute; left: 0; right: 0; bottom: 0; height: 24px; z-index: 4600; justify-content: center; align-items: center; touch-action: none; }
[data-layout="tablet"] #home-bar button { width: 200px; height: 6px; cursor: pointer; }
[data-layout="tablet"][data-wp-tone="light"] #home-bar button { background: rgba(0, 0, 0, .55); }
[data-layout="tablet"] #control { top: 38px; right: 12px; width: 400px; }
[data-layout="tablet"] #notifs { top: 38px; left: 12px; right: auto; bottom: 34px; width: 400px; transform: translateX(-24px); transform-origin: 0 0; }
[data-layout="tablet"] #notifs.open { transform: none; }
[data-layout="tablet"] #banners { top: 40px; }
[data-layout="tablet"] #launcher { bottom: 140px; }
[data-layout="tablet"] .cc-tile, [data-layout="tablet"] .cc-device { min-height: 56px; }

.tab-divider { position: absolute; width: 20px; z-index: 2147483000; pointer-events: auto; cursor: col-resize; display: flex; align-items: center; justify-content: center; touch-action: none; }
.tab-divider::before { content: ''; position: absolute; top: 0; bottom: 0; left: 6px; width: 8px; background: #05070b; }
.tab-divider i { position: relative; width: 6px; height: 60px; border-radius: 3px; background: rgba(255, 255, 255, .7); transition: height .2s, background .2s; }
.tab-divider:hover i, .tab-divider.drag i { height: 90px; background: #fff; }

.tab-sheet { position: absolute; inset: 0; z-index: 6200; background: rgba(0, 0, 0, .35); display: grid; place-items: center; animation: fade-in .16s; }
.tab-sheet-box { width: min(760px, 92vw); max-height: 72vh; overflow: auto; border-radius: 28px; padding: 16px 22px 22px; background: var(--glass-strong); box-shadow: var(--shadow-pop); }
.tab-sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 0 14px; font-size: 16px; }
.tab-sheet-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 18px 8px; }
.tab-sheet-app { border: 0; background: none; color: var(--text); display: flex; flex-direction: column; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 500; padding: 8px 2px; border-radius: 16px; }
.tab-sheet-app:hover { background: var(--hover); }
.tab-sheet-app span:last-child { max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tab-sheet-app.running span:last-child::after { content: ''; display: inline-block; width: 5px; height: 5px; margin-left: 5px; border-radius: 50%; background: var(--accent); vertical-align: middle; }

/* Phone forced on a wide screen: keep the home screen phone-sized */
@media (min-width: 760px) {
  [data-device="phone"] #widgets, [data-device="phone"] #home-grid { max-width: 520px; margin-left: auto; margin-right: auto; }
}

/* =====================================================================
   TV - 10-foot UI
   ===================================================================== */
.tv {
  position: absolute; inset: 0; z-index: 8; overflow: hidden; background: #05070c; color: #f4f6fb;
  font-size: clamp(12px, 1.04vw, 30px); font-family: var(--font); user-select: none; -webkit-user-select: none;
  --tv-pad: 3.4em; --tv-left: 8em;
}
.tv button { font-family: inherit; }
.tv-ambient { position: absolute; inset: 0; pointer-events: none; }
.tv-ambient i { position: absolute; inset: -6%; opacity: 0; transition: opacity 1.4s ease; filter: blur(60px) saturate(1.25); }
.tv-ambient i.on { opacity: .42; }
.tv-ambient::after { content: ''; position: absolute; inset: 0; background: radial-gradient(120% 90% at 85% 0%, transparent 30%, #05070c 85%), linear-gradient(0deg, #05070c 8%, transparent 55%); }

.tv-rail {
  position: absolute; left: 0; top: 0; bottom: 0; z-index: 4; width: 5.6em; padding: 1.8em .95em; display: flex; flex-direction: column; gap: .45em;
  background: linear-gradient(90deg, rgba(5, 7, 12, .92), rgba(5, 7, 12, 0)); transition: width .28s var(--ease), background .28s;
}
.tv-rail:focus-within { width: 15.5em; background: linear-gradient(90deg, rgba(10, 13, 22, .98) 70%, rgba(10, 13, 22, .7)); box-shadow: 2em 0 4em rgba(0, 0, 0, .55); }
.tv-brand { height: 3.6em; display: flex; align-items: center; padding-left: .55em; color: #fff; margin-bottom: 1.2em; }
.tv-brand .logo { --sun: var(--accent); width: 2.2em; height: 2.2em; }
.tv-rail-items { display: flex; flex-direction: column; gap: .45em; }
.tv-nav {
  position: relative; height: 3.3em; border: 0; border-radius: 1.65em; background: none; color: rgba(255, 255, 255, .62);
  display: flex; align-items: center; gap: 1em; padding: 0 1.05em; font-size: 1em; font-weight: 600; white-space: nowrap; overflow: hidden; cursor: pointer;
  transition: background .18s, color .18s, transform .18s;
}
.tv-nav .ic { flex: none; width: 1.55em; height: 1.55em; }
.tv-nav span { opacity: 0; transition: opacity .2s; font-size: 1.1em; }
.tv-rail:focus-within .tv-nav span { opacity: 1; }
.tv-nav.on { color: #fff; }
.tv-nav.on::before { content: ''; position: absolute; left: .2em; top: 50%; width: .28em; height: 1.2em; margin-top: -.6em; border-radius: 1em; background: var(--accent); }
.tv-rail:focus-within .tv-nav.on::before { display: none; }
.tv-nav:hover { color: #fff; }
.tv-nav:focus { outline: none; background: #fff; color: #0b0f18; transform: scale(1.04); }
.tv-rail-fill { flex: 1; }

.tv-top { position: absolute; top: 1.9em; right: var(--tv-pad); z-index: 3; display: flex; align-items: center; gap: 1.4em; font-size: 1.2em; font-weight: 600; text-shadow: 0 1px 8px rgba(0, 0, 0, .5); pointer-events: none; }
.tv-weather { display: flex; align-items: center; gap: .4em; color: rgba(255, 255, 255, .8); }
.tv-weather .ic { width: 1.3em; height: 1.3em; }
.tv-clock { font-variant-numeric: tabular-nums; font-size: 1.1em; }
.tv-avatar { width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; font-size: .8em; font-weight: 700; background: linear-gradient(135deg, var(--accent), #7c6cff); color: #fff; text-shadow: none; }

.tv-main { position: absolute; top: 0; bottom: 0; left: 0; right: 0; overflow-x: hidden; overflow-y: auto; scrollbar-width: none; z-index: 2; }
.tv-main::-webkit-scrollbar { display: none; }
.tv-main:not(.tv-page-home) { padding: 2.6em var(--tv-pad) 4em var(--tv-left); }

/* hero billboard */
.tv-hero { position: relative; height: max(30em, 66vh); display: flex; align-items: flex-end; padding: 0 var(--tv-pad) 3.6em var(--tv-left); overflow: hidden; }
.tv-hero-bg { position: absolute; inset: 0; animation: tv-fade .9s ease; }
.tv-hero-bgimg { position: absolute; inset: -8%; background-size: cover; background-position: center 30%; filter: blur(26px) saturate(1.35) brightness(.7); opacity: .85; }
.tv-hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #05070c 4%, rgba(5, 7, 12, .86) 30%, rgba(5, 7, 12, .25) 62%, rgba(5, 7, 12, .45)), linear-gradient(0deg, #05070c 2%, rgba(5, 7, 12, 0) 45%); }
.tv-hero-info { position: relative; max-width: 46em; animation: tv-rise .7s var(--ease); }
.tv-kicker { display: flex; align-items: center; gap: .55em; text-transform: uppercase; letter-spacing: .18em; font-size: .82em; font-weight: 700; color: rgba(255, 255, 255, .85); }
.tv-kicker .logo { --sun: var(--accent); width: 1.3em; height: 1.3em; color: #fff; }
.tv-hero-title { font-family: var(--font-display); font-weight: 600; font-size: 3.7em; line-height: 1.02; letter-spacing: -.02em; margin: .28em 0 .32em; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tv-hero-meta { font-weight: 600; color: rgba(255, 255, 255, .72); letter-spacing: .02em; }
.tv-hero-desc { margin: .9em 0 0; max-width: 38em; font-size: 1.08em; line-height: 1.5; color: rgba(255, 255, 255, .82); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tv-hero-btns { display: flex; gap: .9em; margin-top: 1.6em; flex-wrap: wrap; }
.tv-btn {
  height: 3.05em; padding: 0 1.6em 0 1.35em; border: 0; border-radius: 1.6em; background: rgba(255, 255, 255, .16); color: #fff; cursor: pointer;
  font-size: 1.02em; font-weight: 700; display: inline-flex; align-items: center; gap: .6em; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.tv-btn .ic { width: 1.25em; height: 1.25em; }
.tv-btn.primary { background: #fff; color: #0b0f18; }
.tv-btn:hover { background: rgba(255, 255, 255, .26); }
.tv-btn.primary:hover { background: #fff; }
.tv-btn:focus { outline: none; transform: scale(1.08); background: #fff; color: #0b0f18; box-shadow: 0 0 0 .2em rgba(var(--accent-rgb), .9), 0 1em 2.4em -0.8em rgba(0, 0, 0, .7); }
.tv-hero-poster { position: absolute; right: calc(var(--tv-pad) + 1em); bottom: 3.6em; width: 15em; aspect-ratio: 3 / 4; border-radius: 1em; overflow: hidden; transform: rotate(1.6deg);
  box-shadow: 0 2.4em 4em -1.2em rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .16); animation: tv-rise .8s var(--ease); background: #111827; }
.tv-hero-poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-hero-dots { position: absolute; left: var(--tv-left); bottom: 1.4em; display: flex; gap: .45em; }
.tv-hero-dots i { width: .5em; height: .5em; border-radius: 1em; background: rgba(255, 255, 255, .35); transition: width .3s, background .3s; }
.tv-hero-dots i.on { width: 1.8em; background: #fff; }
@keyframes tv-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes tv-rise { from { opacity: 0; transform: translateY(1.2em); } to { opacity: 1; transform: none; } }

/* rows */
.tv-rows { position: relative; padding-bottom: 5em; }
.tv-row { padding: .2em 0 .6em; }
.tv-row-title { display: flex; align-items: baseline; gap: .8em; margin: 0; padding-left: calc(var(--tv-left) / 1.32); font-size: 1.32em; font-weight: 700; letter-spacing: .005em; }
.tv-row-title small { font-size: .66em; font-weight: 500; color: rgba(255, 255, 255, .5); }
.tv-row-track { display: flex; gap: 1.15em; overflow-x: auto; overflow-y: hidden; padding: 1.1em var(--tv-pad) 1.4em var(--tv-left); scroll-padding-left: var(--tv-left); scrollbar-width: none; }
.tv-row-track::-webkit-scrollbar { display: none; }
.tv-row-empty { display: flex; align-items: center; gap: .7em; padding: 1.4em 0; color: rgba(255, 255, 255, .55); font-size: 1.02em; }

.tv-card {
  position: relative; flex: 0 0 auto; width: 17em; border: 0; padding: 0; background: none; color: inherit; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: .7em; transition: transform .22s var(--ease); transform-origin: 50% 40%; outline: none;
}
.tv-card--square { width: 11.5em; }
.tv-card--photo { width: 14.5em; }
.tv-card--app { width: 10.5em; }
.tv-card-art { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: .95em; overflow: hidden; background: #161c2a; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); transition: box-shadow .22s; }
.tv-card--square .tv-card-art, .tv-card--app .tv-card-art { aspect-ratio: 1; }
.tv-card--photo .tv-card-art { aspect-ratio: 4 / 3; }
.tv-card-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.tv-card--square .tv-card-art img { inset: 18%; width: 64%; height: 64%; object-fit: contain; border-radius: .6em; }
.tv-card-glyph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .9); }
.tv-card--app .tv-card-glyph .appicon { --s: 5.2em !important; box-shadow: 0 .8em 1.6em -0.6em rgba(0, 0, 0, .6); }
.tv-card--app .tv-card-art { background: #141a27 !important; }
.tv-initials { font-family: var(--font-display); font-weight: 600; font-size: 2.6em; letter-spacing: .02em; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .3); }
.tv-card-badge { position: absolute; top: .6em; left: .6em; display: flex; align-items: center; gap: .4em; padding: .22em .65em; border-radius: 1em; background: rgba(0, 0, 0, .6); font-size: .72em; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.tv-live-dot { width: .55em; height: .55em; border-radius: 50%; background: #ef4444; box-shadow: 0 0 0 .2em rgba(239, 68, 68, .35); animation: tv-pulse 1.6s infinite; }
@keyframes tv-pulse { 50% { box-shadow: 0 0 0 .45em rgba(239, 68, 68, 0); } }
.tv-card-progress { position: absolute; left: .8em; right: .8em; bottom: .7em; height: .3em; border-radius: 1em; background: rgba(255, 255, 255, .3); overflow: hidden; }
.tv-card-progress i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.tv-card-label { position: absolute; left: .8em; bottom: .6em; font-weight: 700; }
.tv-card-txt { display: flex; flex-direction: column; gap: .15em; padding: 0 .15em; min-width: 0; transition: transform .22s var(--ease); }
.tv-card-txt b { font-size: 1em; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-card-txt small { font-size: .82em; color: rgba(255, 255, 255, .55); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tv-card--app .tv-card-txt { align-items: center; text-align: center; }
.tv-card--app .tv-card-txt small { display: none; }
.tv-card:hover .tv-card-art { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.tv-card:focus { transform: scale(1.09); z-index: 2; }
.tv-card:focus .tv-card-art { box-shadow: 0 0 0 .2em #fff, 0 0 2.6em .3em rgba(var(--accent-rgb), .55), 0 1.6em 2.6em -1em rgba(0, 0, 0, .9); }
.tv-card:focus .tv-card-txt small { color: rgba(255, 255, 255, .85); }
.tv-skel { pointer-events: none; }
.tv-skel .tv-card-art { background: linear-gradient(90deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .1), rgba(255, 255, 255, .04)); background-size: 200% 100%; animation: tv-skel 1.4s infinite linear; }
@keyframes tv-skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* pages */
.tv-page-title { font-family: var(--font-display); font-size: 2.8em; font-weight: 600; letter-spacing: -.01em; margin: .2em 0 .2em; }
.tv-page-sub { margin: 0 0 1.4em; color: rgba(255, 255, 255, .6); font-size: 1.08em; }
.tv-grid { display: grid; gap: 1.8em 1.3em; padding: 1em .6em; }
.tv-grid--square { grid-template-columns: repeat(auto-fill, minmax(11em, 1fr)); }
.tv-grid--app { grid-template-columns: repeat(auto-fill, minmax(10em, 1fr)); }
.tv-grid .tv-card { width: auto; }
.tv-state { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: flex-start; gap: .5em; padding: 2em 0 1em; color: rgba(255, 255, 255, .75); }
.tv-state h2 { margin: .3em 0 0; font-size: 1.6em; color: #fff; }
.tv-state p { margin: 0; }

.tv-search { display: grid; grid-template-columns: 27em minmax(0, 1fr); gap: 2.6em; }
.tv-search-field { height: 3.5em; border-radius: 1.75em; background: rgba(255, 255, 255, .1); display: flex; align-items: center; gap: .8em; padding: 0 1.4em; font-size: 1.15em; margin-top: .8em; }
.tv-q { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.tv-q:empty::before { content: attr(data-empty); color: rgba(255, 255, 255, .45); }
.tv-caret { flex: none; width: 2px; height: 1.2em; background: var(--accent); animation: tv-blink 1s steps(1) infinite; margin-left: -.5em; }
@keyframes tv-blink { 50% { opacity: 0; } }
.tv-kb { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5em; margin-top: 1.3em; }
.tv-key { height: 3.1em; border: 0; border-radius: .85em; background: rgba(255, 255, 255, .08); color: #fff; font-size: 1.1em; font-weight: 600; text-transform: uppercase; cursor: pointer; display: grid; place-items: center; transition: transform .15s, background .15s; }
.tv-key.wide { grid-column: span 2; text-transform: none; font-size: 1em; }
.tv-key:hover { background: rgba(255, 255, 255, .16); }
.tv-key:focus { outline: none; background: #fff; color: #0b0f18; transform: scale(1.1); }
.tv-results { min-width: 0; padding-top: .4em; }
.tv-results .tv-row-title { padding-left: 0; }
.tv-results .tv-row-track { padding-left: .2em; padding-right: 0; margin-right: calc(var(--tv-pad) * -1); padding-right: var(--tv-pad); scroll-padding-left: .2em; }

.tv-modes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2em; }
.tv-mode { border: 0; border-radius: 1.2em; padding: 1em 1em 1.2em; background: rgba(255, 255, 255, .06); color: #fff; text-align: left; display: flex; flex-direction: column; gap: .45em; cursor: pointer; transition: transform .2s var(--ease), background .2s; }
.tv-mode .dv-ill { height: 7.2em; margin-bottom: .4em; }
.tv-mode b { font-size: 1.15em; }
.tv-mode small { color: rgba(255, 255, 255, .6); font-size: .86em; line-height: 1.4; }
.tv-mode.on { box-shadow: inset 0 0 0 .14em var(--accent); }
.tv-mode:focus { outline: none; background: #fff; color: #0b0f18; transform: scale(1.04); }
.tv-mode:focus small { color: #334155; }
.tv-opts { margin-top: 1.6em; display: flex; flex-direction: column; gap: .8em; }
.tv-opt { display: flex; align-items: center; justify-content: space-between; gap: 1.2em; padding: 1em 1.3em; border-radius: 1em; background: rgba(255, 255, 255, .05); }
.tv-opt > span { display: grid; grid-template-columns: auto 1fr; column-gap: 1em; align-items: center; }
.tv-opt > span .ic { grid-row: span 2; width: 1.6em; height: 1.6em; color: rgba(255, 255, 255, .7); }
.tv-opt b { font-size: 1.08em; }
.tv-opt small { color: rgba(255, 255, 255, .55); }
.tv-seg { display: flex; gap: .5em; }
.tv-chip { height: 2.6em; padding: 0 1.2em; border: 0; border-radius: 1.3em; background: rgba(255, 255, 255, .1); color: #fff; font-weight: 600; font-size: .95em; cursor: pointer; transition: transform .15s; }
.tv-chip.on { background: var(--accent); color: var(--accent-fg); }
.tv-chip:focus { outline: none; transform: scale(1.08); box-shadow: 0 0 0 .18em #fff; }

/* screensaver (TV) */
.saver { position: absolute; inset: 0; z-index: 5950; background: #000; opacity: 0; transition: opacity .8s; cursor: none; }
.saver.on { opacity: 1; }
.saver-stage { position: absolute; inset: 0; }
.saver-info { position: absolute; left: 4vw; bottom: 6vh; z-index: 3; color: #fff; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.saver-time { font-family: var(--font-display); font-weight: 200; font-size: clamp(56px, 7.5vw, 170px); line-height: 1; letter-spacing: -.02em; }
.saver-date { display: flex; align-items: center; gap: .5em; font-size: clamp(16px, 1.4vw, 32px); font-weight: 500; opacity: .9; margin-top: .4em; }

/* =====================================================================
   Slideshow (frame + screensaver)
   ===================================================================== */
.ss { position: absolute; inset: 0; overflow: hidden; background: #000; }
.ss-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.5s ease; overflow: hidden; }
.ss-slide.on { opacity: 1; z-index: 2; }
.ss-slide.out { opacity: 1; z-index: 1; }
.ss-fill { position: absolute; inset: -80px; filter: blur(46px) brightness(.5) saturate(1.2); }
.ss-img { position: absolute; inset: 0; transform-origin: var(--ko, 50% 50%); }
.ss[data-transition="kenburns"] .ss-slide.on .ss-img, .ss[data-transition="kenburns"] .ss-slide.out .ss-img { animation: ss-kb var(--dur, 17s) linear forwards; }
.ss[data-transition="kenburns"] .ss-slide.on .ss-img.contain, .ss[data-transition="kenburns"] .ss-slide.out .ss-img.contain { animation-name: ss-kb-soft; }
.ss.paused .ss-img { animation-play-state: paused !important; }
@keyframes ss-kb { from { transform: scale(1.03); } to { transform: scale(1.17) translate(var(--kx, 0), var(--ky, 0)); } }
@keyframes ss-kb-soft { from { transform: scale(1); } to { transform: scale(1.06); } }
.ss[data-transition="slide"] .ss-slide { opacity: 1; transform: translateX(100%); transition: transform 1.1s cubic-bezier(.65, 0, .25, 1); }
.ss[data-transition="slide"] .ss-slide.on { transform: none; }
.ss[data-transition="slide"] .ss-slide.out { transform: translateX(-100%); }
.reduce-motion .ss-img { animation: none !important; }

/* =====================================================================
   Frame
   ===================================================================== */
.frame { position: absolute; inset: 0; z-index: 5900; background: #000; color: #fff; overflow: hidden; cursor: none; user-select: none; -webkit-user-select: none; }
.frame.ctl-open { cursor: auto; }
.frame-stage { position: absolute; inset: 0; }
.frame-night { position: absolute; inset: 0; z-index: 4; background: #000; opacity: 0; transition: opacity 4s; pointer-events: none; }
.frame.night .frame-night { opacity: .74; }
.frame-overlay { position: absolute; inset: 0; z-index: 5; pointer-events: none; text-shadow: 0 2px 20px rgba(0, 0, 0, .5); }
.fo-clock { position: absolute; left: 4vw; bottom: 5.5vh; }
.fo-time { font-family: var(--font-display); font-weight: 200; font-size: clamp(54px, 7.4vw, 170px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fo-date { font-size: clamp(16px, 1.45vw, 32px); font-weight: 500; opacity: .92; margin-top: .35em; }
.fo-clock.small { left: auto; right: 3.2vw; bottom: 4vh; text-align: right; }
.fo-clock.small .fo-time { font-size: clamp(28px, 2.9vw, 64px); font-weight: 300; }
.fo-clock.small .fo-date { font-size: clamp(13px, 1vw, 22px); }
.fo-weather { position: absolute; right: 4vw; bottom: 6vh; display: flex; align-items: center; gap: 1vw; text-align: left; }
.fo-weather .ic { width: clamp(34px, 3vw, 70px); height: clamp(34px, 3vw, 70px); }
.fo-weather b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(30px, 3.2vw, 72px); line-height: 1; }
.fo-weather span, .fo-weather small { display: block; font-size: clamp(13px, 1vw, 22px); opacity: .9; }
.fo-weather small { opacity: .7; }
.fo-caption { position: absolute; left: 4vw; top: 4vh; display: flex; align-items: center; gap: 7px; padding: 6px 14px; border-radius: 99px; font-size: clamp(12px, .9vw, 18px); background: rgba(0, 0, 0, .3); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-shadow: none; }
.frame.night .frame-overlay { opacity: .55; }
.frame-hint { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); z-index: 6; padding: 8px 16px; border-radius: 99px; font-size: 13.5px; background: rgba(0, 0, 0, .5); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: opacity .9s; pointer-events: none; white-space: nowrap; }
.frame-hint.gone { opacity: 0; }
.frame-hint kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 5px; background: rgba(255, 255, 255, .18); }
.frame-ctl {
  position: absolute; left: 50%; bottom: 26px; z-index: 8; width: min(780px, calc(100% - 32px)); padding: 18px 20px 16px; border-radius: 28px;
  transform: translate(-50%, 24px); opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  background: rgba(16, 20, 30, .74); -webkit-backdrop-filter: blur(30px) saturate(1.6); backdrop-filter: blur(30px) saturate(1.6); border: 1px solid rgba(255, 255, 255, .12);
  color-scheme: dark; --text: #eef1f7; --text-2: rgba(238, 241, 247, .7); --surface: #1a1f2b; --surface-2: rgba(255, 255, 255, .08); --surface-3: rgba(255, 255, 255, .12); --line: rgba(255, 255, 255, .1); --line-2: rgba(255, 255, 255, .18); --tile: rgba(255, 255, 255, .1); --tile-hover: rgba(255, 255, 255, .16); --hover: rgba(255, 255, 255, .08);
  color: var(--text); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7);
}
.frame.ctl-open .frame-ctl { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.fc-main { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 16px; }
.fc-round { width: 52px; height: 52px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; transition: transform .15s, background .15s; }
.fc-round:hover { background: rgba(255, 255, 255, .2); }
.fc-round.big { width: 66px; height: 66px; background: #fff; color: #0b0f18; }
.fc-round:active { transform: scale(.94); }
.fc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fc-field { display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--text-2); }
.fc-field .select { width: 100%; }
.fc-row { display: flex; align-items: center; gap: 18px; margin-top: 14px; flex-wrap: wrap; font-size: 13px; }
.fc-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.fc-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.fc-exit { gap: 6px; }
@media (max-width: 700px) { .fc-grid { grid-template-columns: 1fr 1fr; } }

/* =====================================================================
   Car
   ===================================================================== */
.car {
  position: absolute; inset: 0; z-index: 8; background: #04060a; color: #f5f7fa; font-family: var(--font);
  display: grid; grid-template-columns: 6.2em minmax(0, 1fr); grid-template-rows: 3.6em minmax(0, 1fr);
  font-size: clamp(12px, 1.25vw, 28px); user-select: none; -webkit-user-select: none;
}
.car button { font-family: inherit; cursor: pointer; }
.car-dock { grid-row: 1 / 3; display: flex; flex-direction: column; align-items: center; gap: .7em; padding: 1.1em 0; background: #0a0e15; border-right: 1px solid rgba(255, 255, 255, .06); }
.car-dock-btn { width: 4.3em; height: 4.3em; border: 0; border-radius: 1.3em; background: transparent; color: #aab4c3; display: grid; place-items: center; transition: background .15s, color .15s, transform .15s; }
.car-dock-btn .ic { width: 1.8em; height: 1.8em; }
.car-dock-btn.on { background: rgba(255, 255, 255, .1); color: #fff; }
.car-dock-btn:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.car-dock-fill { flex: 1; }
.car-status { display: flex; align-items: center; gap: 1.5em; padding: 0 1.4em 0 1.2em; font-weight: 600; }
.car-time { font-size: 1.45em; font-variant-numeric: tabular-nums; }
.car-temp, .car-net { display: flex; align-items: center; gap: .4em; color: #b9c3d1; }
.car-net { gap: .8em; }
.car-temp .ic, .car-net .ic { width: 1.15em; height: 1.15em; }
.car-focus { margin-left: auto; display: flex; align-items: center; gap: .5em; padding: .4em 1em; border-radius: 99px; background: rgba(255, 255, 255, .07); color: #c9d2de; font-size: .86em; }
.car-grid { display: grid; grid-template-columns: 1.45fr .72fr .72fr; grid-template-rows: 1.2fr 1fr; gap: 1em; padding: .2em 1.2em 1.2em 1em; min-height: 0; }
.car-tile { position: relative; min-height: 0; overflow: hidden; border-radius: 1.7em; border: 1px solid rgba(255, 255, 255, .07); background: #0f1520; color: inherit; text-align: left; font-size: 1em; padding: 0; }
button.car-tile:hover { background: #131b29; }
.car-map { grid-row: 1 / 3; }
.car-map-art { position: absolute; inset: 0; }
.car-map-art svg { width: 100%; height: 100%; display: block; }
.car-map-go {
  position: absolute; left: 1.1em; right: 1.1em; top: 1.1em; height: 4em; border: 0; border-radius: 2em; display: flex; align-items: center; gap: .8em; padding: 0 1.4em;
  background: rgba(12, 17, 27, .9); color: #fff; font-size: 1.15em; font-weight: 700; box-shadow: 0 1em 2em -1em rgba(0, 0, 0, .8); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.car-map-go .ic { width: 1.4em; height: 1.4em; color: var(--accent); }
.car-dests { position: absolute; left: 1.1em; right: 1.1em; bottom: 1.1em; display: flex; flex-wrap: wrap; gap: .6em; }
.car-dest { height: 3.5em; padding: 0 1.25em 0 .45em; border: 0; border-radius: 1.75em; display: flex; align-items: center; gap: .6em; background: rgba(12, 17, 27, .92); color: #fff; font-size: 1em; font-weight: 700; }
.car-dest span { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); }
.car-dest .ic { width: 1.3em; height: 1.3em; }
.car-media { grid-column: 2 / 4; display: flex; flex-direction: column; justify-content: space-between; gap: .8em; padding: 1.3em; background: radial-gradient(120% 120% at 0% 0%, rgba(var(--accent-rgb), .18), transparent 60%), #0f1520; }
.car-media-top { display: flex; align-items: center; gap: 1em; min-width: 0; }
.car-art { flex: none; width: 5.2em; height: 5.2em; border-radius: 1.1em; display: grid; place-items: center; color: #fff; box-shadow: 0 .8em 1.6em -0.8em rgba(0, 0, 0, .8); }
.car-art .ic { width: 2em; height: 2em; }
.car-media-txt { min-width: 0; }
.car-media-txt small { display: block; color: var(--accent); font-size: .72em; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.car-media-txt b { display: block; font-size: 1.4em; margin: .1em 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.car-media-txt span { color: #94a3b8; }
.car-ctls { display: flex; align-items: center; justify-content: center; gap: 1.3em; }
.car-ctl { width: 4.4em; height: 4.4em; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .1); color: #fff; transition: transform .12s; }
.car-ctl .ic { width: 1.7em; height: 1.7em; }
.car-ctl.main { width: 5.6em; height: 5.6em; background: #fff; color: #04060a; }
.car-ctl.main .ic { width: 2.2em; height: 2.2em; }
.car-ctl:active, .car-dest:active, .car-chip:active { transform: scale(.94); }
.car-src { display: flex; gap: .6em; }
.car-chip { flex: 1; height: 2.9em; border: 0; border-radius: 1.45em; display: flex; align-items: center; justify-content: center; gap: .5em; background: rgba(255, 255, 255, .07); color: #e2e8f0; font-weight: 600; font-size: .95em; }
.car-chip .ic { width: 1.15em; height: 1.15em; }
.car-weather { display: flex; flex-direction: column; justify-content: space-between; padding: 1.2em; }
.cw-ic { color: #fbbf24; }
.cw-ic .ic { width: 3em; height: 3em; }
.cw-t b { display: block; font-family: var(--font-display); font-size: 2.9em; font-weight: 300; line-height: 1; }
.cw-t span { display: block; font-weight: 700; margin-top: .2em; }
.cw-t small { display: block; color: #94a3b8; font-size: .82em; margin-top: .15em; }
.car-clock { display: flex; flex-direction: column; justify-content: flex-end; gap: .3em; padding: 1.2em; }
.cc-time { font-family: var(--font-display); font-size: 3em; font-weight: 300; line-height: 1; font-variant-numeric: tabular-nums; }
.car-clock > span { font-weight: 600; color: #cbd5e1; }
.car-clock small { display: flex; align-items: center; gap: .4em; color: #94a3b8; font-size: .82em; }
.car [data-nav]:focus { outline: none; box-shadow: 0 0 0 .2em var(--accent), 0 0 1.6em rgba(var(--accent-rgb), .4); }
.car-dock-btn:focus { background: var(--accent); color: var(--accent-fg); }

/* =====================================================================
   Settings → Device page + control centre switch + illustrations
   ===================================================================== */
.dv-hero { display: flex; align-items: center; gap: 20px; padding: 16px 18px; margin-bottom: 18px; border-radius: 18px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .16), rgba(var(--accent-rgb), .04)); border: 1px solid rgba(var(--accent-rgb), .22); }
.dv-hero h2 { margin: 0 0 4px; font-size: 18px; }
.dv-hero p { margin: 0; font-size: 13px; line-height: 1.45; }
.dv-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 12px; }
.dv-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 10px 10px 12px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--surface); color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.dv-card:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -14px rgba(0, 0, 0, .5); }
.dv-card.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.dv-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.dv-txt { padding: 0 2px; }
.dv-txt b { display: block; font-size: 14px; margin-bottom: 3px; }
.dv-txt small { display: block; font-size: 12px; line-height: 1.4; color: var(--text-2); }
.dv-check { position: absolute; top: 16px; right: 16px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.dv-night { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.dv-night > span { font-size: 12px; color: var(--text-2); }
.dv-time { width: 108px; }

.cc-device { display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 12px; border: 0; border-radius: 16px; background: var(--tile); color: var(--text); text-align: left; font: inherit; cursor: pointer; }
.cc-device:hover { background: var(--tile-hover); }
.cc-device .cc-ic { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); }
.cc-device .cc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.cc-device .cc-txt b { font-size: 13px; font-weight: 600; }
.cc-device .cc-txt small { font-size: 11.5px; color: var(--text-2); }
.cc-device > .ic { color: var(--text-3); }

/* little device drawings */
.dv-ill { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 92px; border-radius: 11px; overflow: hidden;
  background: radial-gradient(120% 120% at 15% 0%, rgba(var(--accent-rgb), .3), transparent 60%), linear-gradient(160deg, #1c2434, #0c1119); color: #fff; }
.dv-ill.big { width: 150px; height: 100px; flex: none; }
.dv-ill i { display: block; box-sizing: border-box; font-style: normal; }
.dv-ill .i-screen { position: relative; width: 62%; height: 60%; border-radius: 6px; border: 3px solid #e6ebf3; background: linear-gradient(135deg, #2cb7ae, #2b2a68); }
.dv-ill .i-win { position: absolute; border-radius: 3px; background: #f6f8fc; }
.dv-ill .i-win.a { left: 10%; top: 12%; width: 46%; height: 50%; }
.dv-ill .i-win.b { left: 42%; top: 32%; width: 46%; height: 44%; background: #dbe3ef; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }
.dv-ill .i-bar { position: absolute; left: 28%; right: 28%; bottom: 6%; height: 10%; border-radius: 4px; background: rgba(255, 255, 255, .65); }
.dv-ill .i-stand { width: 20%; height: 9%; border-radius: 0 0 5px 5px; background: #e6ebf3; }
.dv-ill .i-tab { position: relative; width: 66%; height: 70%; padding: 9% 9% 0; border-radius: 9px; border: 3px solid #e6ebf3; background: linear-gradient(160deg, #7c6cff, #2b2a68); }
.dv-ill .i-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.dv-ill .i-grid i { aspect-ratio: 1; border-radius: 3px; background: rgba(255, 255, 255, .8); }
.dv-ill .i-dock { position: absolute; left: 20%; right: 20%; bottom: 9%; height: 13%; border-radius: 4px; background: rgba(255, 255, 255, .35); }
.dv-ill .i-phone { position: relative; width: 25%; height: 84%; padding: 18% 10% 0; border-radius: 10px; border: 3px solid #e6ebf3; background: linear-gradient(160deg, #f08a2e, #7c2d12); }
.dv-ill .i-phone .i-grid { grid-template-columns: repeat(2, 1fr); gap: 4px; }
.dv-ill .i-pill { position: absolute; left: 30%; right: 30%; bottom: 5%; height: 3px; border-radius: 2px; background: #fff; }
.dv-ill .i-tv { display: flex; flex-direction: column; gap: 7%; width: 74%; height: 64%; padding: 5%; border-radius: 4px; border: 3px solid #e6ebf3; background: #05070c; }
.dv-ill .i-hero { height: 54%; border-radius: 3px; background: linear-gradient(90deg, #05070c 10%, transparent), linear-gradient(135deg, #ef4444, #7c2d12); }
.dv-ill .i-row { display: flex; gap: 6%; height: 26%; }
.dv-ill .i-row i { flex: 1; border-radius: 2px; background: rgba(255, 255, 255, .45); }
.dv-ill .i-row i:first-child { box-shadow: 0 0 0 1.5px #fff; background: rgba(255, 255, 255, .8); }
.dv-ill .i-feet { width: 34%; height: 6%; border-bottom: 3px solid #e6ebf3; border-left: 3px solid #e6ebf3; border-right: 3px solid #e6ebf3; border-radius: 0 0 3px 3px; }
.dv-ill .i-frame { position: relative; width: 50%; height: 74%; padding: 6%; border: 5px solid #c9a46e; border-radius: 3px; background: #fbf7f0; box-shadow: 0 4px 10px rgba(0, 0, 0, .4); }
.dv-ill .i-photo { width: 100%; height: 100%; background: radial-gradient(30% 30% at 70% 30%, #fff8, transparent 70%), radial-gradient(90% 55% at 20% 100%, #53213a 60%, transparent 61%), linear-gradient(180deg, #fbd6a6, #d4646a); }
.dv-ill .i-time { position: absolute; left: 14%; bottom: 14%; width: 32%; height: 9%; border-radius: 2px; background: rgba(255, 255, 255, .9); }
.dv-ill .i-kiosk { width: 34%; height: 66%; padding: 8%; border-radius: 6px; border: 3px solid #e6ebf3; background: #0c1119; }
.dv-ill .i-app { width: 100%; height: 100%; border-radius: 3px; background: radial-gradient(60% 40% at 50% 30%, #fff6, transparent 70%), linear-gradient(160deg, #3fae6b, #065f46); }
.dv-ill .i-post { width: 9%; height: 14%; background: #e6ebf3; }
.dv-ill .i-car { display: flex; gap: 5%; width: 76%; height: 58%; padding: 5%; border-radius: 10px; border: 3px solid #e6ebf3; background: #04060a; }
.dv-ill .i-map { position: relative; flex: 1.5; border-radius: 4px; background: linear-gradient(90deg, transparent 46%, #1f2f44 46% 54%, transparent 54%), linear-gradient(0deg, transparent 46%, #1f2f44 46% 54%, transparent 54%), #0d1520; }
.dv-ill .i-map::after { content: ''; position: absolute; left: 50%; top: 20%; bottom: 20%; width: 3px; margin-left: -1.5px; background: #3b82f6; border-radius: 2px; }
.dv-ill .i-tiles { flex: 1; display: flex; flex-direction: column; gap: 8%; }
.dv-ill .i-tiles i { flex: 1; border-radius: 4px; background: linear-gradient(135deg, rgba(var(--accent-rgb), .9), rgba(var(--accent-rgb), .4)); }
.dv-ill .i-tiles i:last-child { background: #1f2937; }
.dv-ill .i-auto { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff; }
.tv-mode .dv-ill { border-radius: .8em; }
.tv::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 7.5em; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(5, 7, 12, .88), rgba(5, 7, 12, 0)); }
[data-layout="tablet"] #home-bar button:focus { outline: none; }
@media (max-width: 560px) {
  .dv-cards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dv-ill { height: 72px; }
  .dv-hero { flex-direction: column; align-items: flex-start; gap: 12px; }
  .dv-check { top: 12px; right: 12px; }
}
