/* Hearth — Classic skin: a 1970s hi-fi remote. Putty plastic, charcoal keys,
   one signal orange. Phone-first: the remote fits one screen, everything you
   press lives in the bottom two-thirds where thumbs reach. */

:root {
  --bg: #e9e3d7;
  --bg-deep: #ddd5c6;
  --body: #f5f1e9;
  --body-edge: #d6cebf;
  --ink: #1d1b18;
  --ink-soft: #6f685d;
  --ink-faint: #a39a8b;
  --key: #2a2723;
  --key-ink: #f3eee4;
  --key-edge: #0f0e0c;
  --signal: #f2541b;
  --signal-deep: #a8300a;
  --signal-soft: #f2541b22;
  --led-on: #3fd36f;
  --led-standby: #f5a524;
  --led-off: #b9b0a1;
  --glass: #171614;
  --shadow: 0 1px 0 #fff8 inset, 0 18px 40px -18px #4a3f2e55, 0 2px 4px #4a3f2e22;
  --radius: 22px;
  --display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', sans-serif;
  --mono: 'Martian Mono', 'SFMono-Regular', ui-monospace, monospace;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --tabs-h: 64px;
  color-scheme: light;
}

/* Dark classic: the appearance setting (data-mode, from feel.js), not the phone. */
:root[data-skin="classic"][data-mode="dark"] {
  --bg: #121110;
  --bg-deep: #0b0a09;
  --body: #1d1b19;
  --body-edge: #2c2926;
  --ink: #efe9de;
  --ink-soft: #a59d90;
  --ink-faint: #6d665b;
  --key: #2d2a27;
  --key-ink: #efe9de;
  --key-edge: #000;
  --led-off: #4a453e;
  --glass: #0a0908;
  --shadow: 0 1px 0 #ffffff0d inset, 0 24px 50px -20px #000c, 0 2px 4px #0006;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body { background-repeat: no-repeat !important; display: flow-root; }
body { position: relative; }
body {
  margin: 0;
  min-height: 100dvh;
  background: radial-gradient(120% 60% at 50% -10%, var(--body) 0%, transparent 60%), var(--bg);
  color: var(--ink);
  font-family: var(--display);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  overscroll-behavior: none;
}
/* Long presses must never select text or pop a callout. */
button, .unit, .pad, .tab, .dock, .switcher { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; touch-action: manipulation; }
svg { width: 1em; height: 1em; }
[hidden] { display: none !important; }
/* Parts only the Aurora skin uses; the orb wrapper is invisible elsewhere. */
.aurora-only, .orb-stage, .house-stage { display: none !important; }
.orb-zone { display: contents; }
.pad-knob { display: none; }
.mono { font-family: var(--mono); font-stretch: 87.5%; letter-spacing: .02em; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 100; opacity: .35; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .3 0 0 0 0 .25 0 0 0 0 .2 0 0 0 .18 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
[data-skin="classic"][data-mode="dark"] .grain { mix-blend-mode: screen; opacity: .12; }

.view { width: 100%; max-width: 1080px; margin: 0 auto; padding: max(14px, var(--safe-t)) 16px 0; }

/* ── Shared controls ───────────────────────── */
.icon-btn {
  width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  color: var(--ink); background: var(--body); box-shadow: var(--shadow); text-decoration: none; transition: transform .12s;
}
.icon-btn.pressed, .icon-btn:active { transform: scale(.92); }
.cta {
  display: inline-grid; place-items: center; min-height: 54px; padding: 0 28px; border-radius: 999px;
  background: var(--signal); color: #fff; font-weight: 650; font-size: 17px; letter-spacing: -.01em;
  box-shadow: 0 3px 0 var(--signal-deep), 0 14px 30px -12px var(--signal); transition: transform .1s, box-shadow .1s;
}
.cta.pressed, .cta:active { transform: translateY(3px); box-shadow: 0 0 0 var(--signal-deep), 0 6px 12px -8px var(--signal); }
.cta.small { min-height: 46px; padding: 0 22px; font-size: 15px; }
.cta.big { min-height: 64px; padding: 0 36px; font-size: 20px; }
.ghost { min-height: 46px; padding: 0 18px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--ink-soft); }
.ghost.pressed { background: var(--body-edge); }

/* Hold-to-confirm: a bar fills while the finger stays down. */
.hold { position: relative; overflow: hidden; isolation: isolate; }
.hold .charge {
  position: absolute; inset: 0; z-index: -1; background: var(--signal); transform-origin: left center; transform: scaleX(0);
  transition: transform .18s ease-out;
}
.hold.charging .charge { transform: scaleX(1); transition: transform var(--charge-ms, .75s) linear; }

/* ── Masthead / hero ───────────────────────── */
.masthead {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  /* Sticks under the status bar; the frosted bar fades in once the page scrolls. */
  position: sticky; top: 0; z-index: 45;
  margin: calc(-1 * max(14px, var(--safe-t))) -16px 0; padding: max(14px, var(--safe-t)) 18px 10px;
  transition: background-color .25s, box-shadow .25s, backdrop-filter .25s;
}
html.scrolled .masthead {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  box-shadow: 0 1px 0 var(--hair, #0000001a);
}
.masthead-right { display: flex; align-items: center; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand h1 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.04em; }
.ember {
  width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffb27d, var(--signal) 55%, var(--signal-deep));
  box-shadow: 0 0 0 4px var(--signal-soft), 0 0 18px var(--signal);
  animation: ember 3.2s ease-in-out infinite;
}
@keyframes ember { 50% { box-shadow: 0 0 0 6px var(--signal-soft), 0 0 28px var(--signal); } }
.clock { margin: 0; font-size: 11px; color: var(--ink-soft); text-transform: uppercase; }
/* Phones: the header's buttons (Select, health, ?, settings) need the room. */
@media (max-width: 480px) { .clock { display: none; } .masthead-right { gap: 8px; } }

.hero { padding: 26px 2px 18px; display: grid; gap: 10px; }
.kicker { margin: 0; font-size: 11px; text-transform: uppercase; color: var(--signal); letter-spacing: .14em; }
.hero h2 {
  margin: 0; font-size: clamp(38px, 11vw, 80px); line-height: .92; font-weight: 700;
  letter-spacing: -.045em; font-variation-settings: 'opsz' 96; max-width: 13ch;
}
.hero-count { margin: 2px 0 0; font-size: 11px; text-transform: uppercase; color: var(--ink-soft); }

/* "New TV nearby" — the app finds TVs on its own. */
.nearby {
  width: 100%; display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 16px; border-radius: 20px;
  background: var(--key); color: var(--key-ink); text-align: left; box-shadow: 0 3px 0 var(--key-edge);
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) both; transition: transform .12s;
}
.nearby.pressed { transform: scale(.98); }
.nearby-pulse { width: 14px; height: 14px; flex: none; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 0 var(--signal); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 12px #f2541b00; } 100% { box-shadow: 0 0 0 0 #f2541b00; } }
.nearby-text { flex: 1; display: grid; gap: 2px; min-width: 0; }
.nearby-text b { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nearby-text small { font-size: 10px; opacity: .6; text-transform: uppercase; }
.nearby-go { padding: 10px 16px; border-radius: 999px; background: var(--signal); color: #fff; font-size: 12px; text-transform: uppercase; }

/* ── TV units ──────────────────────────────── */
.units { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.unit {
  position: relative; text-align: left; display: grid; gap: 12px; padding: 12px 12px 14px;
  border-radius: var(--radius); background: var(--body); box-shadow: var(--shadow); border: 1px solid var(--body-edge);
  opacity: 0; transform: translateY(14px);
  animation: rise .55s cubic-bezier(.2, .8, .2, 1) forwards; animation-delay: calc(var(--i, 0) * 70ms + 80ms);
  transition: transform .18s cubic-bezier(.2, .8, .2, 1);
}
.units.settled .unit { animation: none; opacity: 1; transform: none; }
.unit.pressed { transform: scale(.975); }
.unit.charged { transform: scale(.96); box-shadow: 0 0 0 3px var(--signal), var(--shadow); }
@keyframes rise { to { opacity: 1; transform: none; } }
.screen {
  position: relative; aspect-ratio: 16 / 8.2; border-radius: 12px; overflow: hidden; background: var(--glass);
  display: grid; place-items: center; box-shadow: inset 0 0 0 1px #ffffff10, inset 0 10px 30px #000;
}
.screen::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, #ffffff12 0 30%, transparent 30.5%); }
.screen .now { position: relative; font-size: clamp(20px, 6vw, 28px); font-weight: 700; letter-spacing: -.03em; color: #fff; opacity: 0; transition: opacity .4s; }
.unit.on .screen { background: radial-gradient(90% 120% at 50% 110%, #f2541b55, transparent 60%), radial-gradient(70% 90% at 20% 0%, #3b2a6033, transparent 70%), #141210; }
.unit.on .screen .now { opacity: 1; }
.screen .scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, #ffffff06 0 1px, transparent 1px 3px); }
.unit[data-brand="appletv"] .screen::after {
  /* Apple TV: the little glossy puck under the screen, and a cool frosted glow when on. */
  content: ''; position: absolute; right: 12px; bottom: 10px; width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(160deg, #3a3a3e 0 18%, #0b0b0c 19% 100%); box-shadow: 0 1px 0 #ffffff26 inset, 0 4px 10px #0009;
}
.unit.on[data-brand="appletv"] .screen {
  background: radial-gradient(90% 120% at 50% 115%, #9ecbff40, transparent 60%), radial-gradient(70% 90% at 15% -5%, #e8e8f033, transparent 70%), #101114;
}
.unit-meta { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 4px 12px; padding: 0 2px; }
.unit-name { margin: 0; font-size: 22px; font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.unit-sub { margin: 0; font-size: 10px; color: var(--ink-soft); text-transform: uppercase; grid-column: 1; }
.unit-state { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; font-size: 10px; text-transform: uppercase; color: var(--ink-soft); }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--led-off); box-shadow: inset 0 1px 1px #0004; flex: none; }
.on .led, .led.on { background: var(--led-on); box-shadow: 0 0 10px var(--led-on); }
.standby .led, .led.standby { background: var(--led-standby); box-shadow: 0 0 8px var(--led-standby); }
.unpaired .led, .led.unpaired { background: var(--signal); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.unit .quick {
  position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; font-size: 19px; color: #fff;
  background: #ffffff1a; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid #ffffff22;
  transition: transform .12s, background .2s;
}
.unit .quick.pressed { transform: scale(.88); }
.unit.on .quick { background: var(--signal); border-color: transparent; }
.unit-pair { justify-self: start; font-size: 11px; padding: 8px 14px; border-radius: 999px; background: var(--signal); color: #fff; text-transform: uppercase; }

/* ── Empty state ───────────────────────────── */
.empty { display: grid; justify-items: start; gap: 14px; padding: 6px 2px 24px; }
.empty h3 { margin: 4px 0 0; font-size: 32px; letter-spacing: -.04em; font-weight: 750; }
.empty p { margin: 0; color: var(--ink-soft); font-size: 12px; }
.empty-tv { width: 170px; }
.empty-screen { aspect-ratio: 16/9.5; border-radius: 12px; background: var(--glass); display: grid; place-items: center; box-shadow: var(--shadow); }
.empty-screen span { width: 30%; height: 3px; border-radius: 3px; background: var(--signal); box-shadow: 0 0 16px var(--signal); animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { width: 55%; opacity: .6; } }
.empty-foot { width: 34%; height: 10px; margin: 0 auto; border-radius: 0 0 8px 8px; background: var(--ink-faint); }
.colophon { margin: 36px 2px 0; padding-bottom: calc(110px + var(--safe-b)); font-size: 10px; color: var(--ink-faint); text-transform: uppercase; line-height: 1.7; }

/* ── House dock (thumb zone) ──────────────── */
.dock {
  position: fixed; left: 50%; bottom: calc(12px + var(--safe-b)); z-index: 40; transform: translateX(-50%);
  width: min(calc(100% - 24px), 520px); display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px;
  border-radius: 26px; background: color-mix(in srgb, var(--key) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -14px #000a;
}
.dock-btn {
  min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 19px;
  color: var(--key-ink); font-weight: 650; font-size: 16px; background: #ffffff10; transition: transform .1s, background .15s;
}
.dock-btn svg { font-size: 20px; }
.dock-btn.pressed { transform: scale(.96); background: #ffffff1c; }
.dock-btn.hold { background: #ffffff14; }
.dock-btn.hold.charging svg { animation: spin .75s linear; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Remote ────────────────────────────────── */
#remote { max-width: 480px; height: 100dvh; display: flex; flex-direction: column; padding-bottom: 0; }
.remote-top { display: flex; align-items: center; gap: 10px; flex: none; }
.switcher {
  flex: 1; min-width: 0; display: flex; gap: 6px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 4px 2px; mask-image: linear-gradient(90deg, transparent, #000 10px, #000 calc(100% - 10px), transparent);
}
.switcher::-webkit-scrollbar { display: none; }
.switch {
  flex: none; scroll-snap-align: center; display: flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 16px;
  border-radius: 999px; font-size: 15px; font-weight: 650; letter-spacing: -.01em; white-space: nowrap;
  background: var(--body); border: 1px solid var(--body-edge); transition: transform .1s;
}
.switch.pressed { transform: scale(.95); }
.switch.active { background: var(--key); color: var(--key-ink); border-color: var(--key); }

.pair-banner {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding: 12px 12px 12px 16px;
  border-radius: 20px; background: var(--key); color: var(--key-ink); box-shadow: 0 3px 0 var(--key-edge);
}
.pair-banner p { margin: 0; font-size: 13px; line-height: 1.35; opacity: .9; }
.pair-banner b { display: block; font-size: 16px; opacity: 1; }

.panels { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 0 calc(var(--tabs-h) + 20px + var(--safe-b)); -webkit-overflow-scrolling: touch; }
.panel { animation: fadein .25s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } }
.panel-title { margin: 6px 2px 14px; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); }

.device {
  --pad: min(72vw, 38dvh, 300px);
  padding: 14px 16px 18px; border-radius: 34px;
  background: linear-gradient(180deg, var(--body), color-mix(in srgb, var(--body) 88%, var(--bg-deep)));
  border: 1px solid var(--body-edge); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: clamp(12px, 2.4dvh, 20px);
}
.device.offline .pad, .device.offline .row { opacity: .45; }
.lcd-bezel, .gb-keys { display: none; }
.device-head { display: flex; align-items: center; gap: 10px; min-height: 52px; }
.status { flex: 1; min-width: 0; margin: 0; font-size: 11px; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.power {
  position: relative; width: 56px; height: 56px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: var(--signal); color: #fff; box-shadow: 0 3px 0 var(--signal-deep), 0 10px 22px -10px var(--signal);
  transition: transform .1s, box-shadow .1s;
}
.power svg { position: relative; }
.power .charge { position: absolute; inset: -6px; border-radius: 50%; border: 3px solid var(--signal); opacity: 0; transform: scale(.8); transition: opacity .2s, transform .45s; }
.power.pressed { transform: translateY(3px); box-shadow: 0 0 0 var(--signal-deep); }
.power.charged .charge { opacity: 1; transform: scale(1); }

.pad {
  position: relative; width: var(--pad); height: var(--pad); margin: 0 auto; border-radius: 50%; flex: none;
  background: var(--key); box-shadow: 0 4px 0 var(--key-edge), 0 24px 40px -18px #000c, inset 0 2px 0 #ffffff14;
  touch-action: none; transition: box-shadow .2s;
}
.pad.swiping { box-shadow: 0 4px 0 var(--key-edge), 0 0 0 4px var(--signal-soft), inset 0 2px 0 #ffffff14; }
.pad.charged .ok { color: var(--signal); box-shadow: 0 0 0 6px var(--signal), inset 0 1px 0 #ffffff22; }
.arc { position: absolute; display: grid; place-items: center; color: var(--key-ink); font-size: 24px; opacity: .72; pointer-events: none; transition: opacity .1s, color .1s, transform .1s; }
.arc.up, .arc.down { left: 30%; width: 40%; height: 30%; }
.arc.left, .arc.right { top: 30%; height: 40%; width: 30%; }
.arc.up { top: 0; } .arc.down { bottom: 0; } .arc.left { left: 0; } .arc.right { right: 0; }
.arc.up svg { transform: rotate(-90deg); } .arc.down svg { transform: rotate(90deg); } .arc.left svg { transform: rotate(180deg); }
.arc.pressed { opacity: 1; color: var(--signal); }
.arc.up.pressed { transform: translateY(-3px); } .arc.down.pressed { transform: translateY(3px); }
.arc.left.pressed { transform: translateX(-3px); } .arc.right.pressed { transform: translateX(3px); }
.ok {
  position: absolute; inset: 31%; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  background: radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--key) 70%, #fff), var(--key) 70%);
  color: var(--key-ink); font-size: 14px; font-weight: 600;
  box-shadow: 0 0 0 6px #00000030, inset 0 1px 0 #ffffff22, 0 3px 0 var(--key-edge); transition: transform .08s, box-shadow .2s;
}
.ok.pressed { transform: scale(.94); color: var(--signal); }
.pad-hint { position: absolute; left: 50%; bottom: -22px; transform: translateX(-50%); font-size: 8.5px; text-transform: uppercase; color: var(--ink-faint); letter-spacing: .12em; white-space: nowrap; }
.pad .ripple { position: absolute; border-radius: 50%; border: 2px solid var(--signal); pointer-events: none; animation: ripple .45s ease-out forwards; }
@keyframes ripple { from { opacity: .9; transform: scale(.3); } to { opacity: 0; transform: scale(1.4); } }

.row { display: grid; gap: 10px; }
.nav-keys { margin-top: 10px; }
.row.three { grid-template-columns: repeat(3, 1fr); }
.row.four { grid-template-columns: repeat(4, 1fr); }
.key {
  min-height: 58px; border-radius: 18px; display: grid; place-items: center; align-content: center; gap: 3px;
  background: var(--key); color: var(--key-ink); font-size: 20px; box-shadow: 0 3px 0 var(--key-edge), inset 0 1px 0 #ffffff14;
  transition: transform .07s, box-shadow .07s, color .1s;
}
.key span { font-size: 8.5px; text-transform: uppercase; opacity: .6; }
.key.pressed, .rocker button.pressed { transform: translateY(3px); box-shadow: 0 0 0 var(--key-edge); color: var(--signal); }
.key.flat { min-height: 50px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--body-edge); font-size: 18px; }
.key.flat.pressed { box-shadow: inset 0 0 0 1.5px var(--signal); transform: scale(.96); }
.key.round { width: 60px; min-height: 60px; border-radius: 50%; }
.rockers { grid-template-columns: 1fr auto 1fr; align-items: center; }
.rocker {
  display: grid; grid-template-rows: 1fr auto 1fr; height: clamp(124px, 19dvh, 156px); border-radius: 999px; overflow: hidden;
  background: var(--key); color: var(--key-ink); box-shadow: 0 3px 0 var(--key-edge), inset 0 1px 0 #ffffff14;
}
.rocker button { font-size: 28px; transition: transform .07s, color .1s, background .1s; }
.rocker button.pressed { background: #ffffff0d; }
.rocker span { text-align: center; font-size: 9px; text-transform: uppercase; opacity: .5; }
.middle { display: grid; justify-items: center; gap: 10px; }
.meter { position: relative; width: 60px; height: 58px; border-radius: 14px; overflow: hidden; background: var(--bg-deep); box-shadow: inset 0 2px 4px #0002; }
.meter-fill { position: absolute; inset: auto 0 0; height: 0; background: linear-gradient(180deg, #ff8a5a, var(--signal)); transition: height .25s cubic-bezier(.2, .8, .2, 1); }
.meter span { position: relative; display: grid; place-items: center; height: 100%; font-size: 13px; font-weight: 600; mix-blend-mode: difference; color: #fff; }
.meter.bump { animation: bump .25s; }
@keyframes bump { 40% { transform: scale(1.08); } }

/* ── Apps / inputs / say panels ───────────── */
.apps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 18px 10px; }
.app { display: grid; justify-items: center; gap: 8px; }
.app-icon {
  width: 72px; height: 72px; border-radius: 20px; overflow: hidden; display: grid; place-items: center;
  background: var(--tint, var(--key)); color: #fff; font-size: 28px; font-weight: 750; letter-spacing: -.04em;
  box-shadow: 0 2px 0 #0003, 0 10px 20px -12px #000a; transition: transform .12s;
}
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app.pressed .app-icon { transform: scale(.9); }
.app span { font-size: 12px; color: var(--ink-soft); text-align: center; line-height: 1.2; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.app.current .app-icon { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--signal); }
.hint { font-size: 11px; color: var(--ink-faint); margin: 6px 0; grid-column: 1 / -1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.big { display: grid; grid-template-columns: 1fr; gap: 10px; }
.chip {
  min-height: 46px; padding: 0 16px; border-radius: 999px; font-size: 15px; font-weight: 550;
  background: var(--body); border: 1px solid var(--body-edge); box-shadow: var(--shadow); transition: transform .1s;
}
.chips.big .chip, .chip.big { min-height: 58px; border-radius: 18px; text-align: left; padding: 0 20px; font-size: 17px; width: 100%; }
.chip.pressed { transform: scale(.97); }
.chip.active { background: var(--key); color: var(--key-ink); border-color: var(--key); }
.chip.off { opacity: .5; }
.say { display: flex; gap: 8px; margin-top: 14px; }
.say input, .fields input {
  flex: 1; min-width: 0; min-height: 54px; padding: 0 16px; border-radius: 16px; font-size: 17px;
  background: var(--body); border: 1px solid var(--body-edge); outline: none; -webkit-user-select: text; user-select: text;
}
.say input:focus, .fields input:focus { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.say button { width: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 21px; background: var(--key); color: var(--key-ink); }

/* ── Remote tab bar ────────────────────────── */
.tabs {
  position: fixed; left: 50%; bottom: calc(10px + var(--safe-b)); z-index: 40; transform: translateX(-50%);
  width: min(calc(100% - 24px), 456px); height: var(--tabs-h); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 6px;
  border-radius: 24px; background: color-mix(in srgb, var(--key) 92%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 20px 50px -14px #000a;
}
.tabs.three { grid-template-columns: repeat(3, 1fr); }
.tab { display: grid; place-items: center; align-content: center; gap: 3px; border-radius: 18px; color: var(--key-ink); opacity: .55; transition: opacity .15s, background .15s, transform .1s; }
.tab svg { font-size: 20px; }
.tab span { font-size: 10px; font-weight: 600; letter-spacing: .02em; }
.tab.active { opacity: 1; background: #ffffff14; color: #fff; }
.tab.active svg { color: var(--signal); }
.tab.pressed { transform: scale(.94); }

/* ── Sheets ────────────────────────────────── */
.sheet {
  width: min(100%, 520px); max-width: 100%; max-height: 90dvh; margin: auto auto 0; padding: 10px 20px calc(20px + var(--safe-b));
  border: 0; border-radius: 30px 30px 0 0; background: var(--bg); color: var(--ink); box-shadow: 0 -20px 60px #0005; overflow-y: auto;
}
.sheet[open] { animation: sheet .38s cubic-bezier(.2, .9, .2, 1); }
@keyframes sheet { from { transform: translateY(100%); } }
.sheet::backdrop { background: #0d0b0999; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }
@media (min-width: 640px) { .sheet { margin: auto; border-radius: 30px; } }
.sheet-grip { width: 42px; height: 5px; border-radius: 5px; background: var(--ink-faint); margin: 0 auto 16px; opacity: .5; }
.sheet h3 { margin: 4px 0; font-size: 26px; letter-spacing: -.035em; font-weight: 750; text-align: center; }
/* Long sheets keep their grip, title and buttons in reach while the middle scrolls. */
.sheet > .sheet-grip { position: sticky; top: -10px; z-index: 3; width: auto; margin: -10px -20px 6px; padding-top: 10px; height: 15px; border-radius: 0; opacity: 1; background: var(--bg); box-sizing: content-box; background-clip: padding-box; }
.sheet > .sheet-grip::after { content: ''; display: block; width: 42px; height: 5px; margin: 0 auto; border-radius: 5px; background: var(--ink-faint); }
.sheet > h3 { position: sticky; top: 15px; z-index: 2; margin: 0 -20px; padding: 2px 20px 8px; background: var(--bg); }
.sheet > .sheet-actions { position: sticky; bottom: calc(-20px - var(--safe-b)); z-index: 2; margin: 20px -20px calc(-20px - var(--safe-b)); padding: 12px 20px calc(20px + var(--safe-b)); background: linear-gradient(transparent, var(--bg) 30%); }
.sub { margin: 0 0 14px; text-align: center; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }
.sub.left { text-align: left; font-size: 10px; text-transform: uppercase; }
.sheet-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 20px; }
.danger { min-height: 46px; padding: 0 16px; border-radius: 999px; font-weight: 600; font-size: 14px; color: #c8341a; box-shadow: inset 0 0 0 1.5px #c8341a55; }
.danger .charge { background: #c8341a33; }
.fields { display: grid; gap: 14px; margin-top: 12px; }
.fields label { display: grid; gap: 6px; }
.fields label span { font-size: 10px; text-transform: uppercase; color: var(--ink-soft); }
.wake-via { display: grid; gap: 8px; }
.wake-via[hidden] { display: none; }
.wake-via > span { font-size: 10px; text-transform: uppercase; color: var(--ink-soft); }
.wake-via .sub { margin: 0; }
/* By id: the skins restyle every .chip, which would hide the choice. */
#wakeViaPick .chip.active { background: var(--signal); color: #fff; border-color: transparent; }

.skins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.skin-preview.aurora { background: radial-gradient(60% 70% at 50% 45%, #ff6a2b55, transparent 70%), radial-gradient(50% 60% at 70% 30%, #5ee7ff33, transparent 70%), #07080c; }
.skin-preview.aurora i { width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1px solid #ffffff33; background: radial-gradient(circle, #ff8a4c 0 6%, transparent 7%), radial-gradient(circle, #ffffff12, transparent 70%); box-shadow: 0 0 24px #ff6a2b66; }
.skin-preview.aurora b { position: absolute; top: 12%; right: 12%; width: 14%; aspect-ratio: 1; border-radius: 50%; background: #ff6a2b; box-shadow: 0 0 10px #ff6a2b; }
.skin-card {
  display: grid; justify-items: start; gap: 4px; padding: 12px; border-radius: 22px; text-align: left;
  background: var(--body); border: 2px solid var(--body-edge); transition: transform .12s, border-color .15s;
}
.skin-card.pressed { transform: scale(.96); }
.skin-card.active { border-color: var(--signal); }
.skin-card strong { font-size: 17px; margin-top: 6px; }
.skin-card small { font-size: 10px; text-transform: uppercase; color: var(--ink-soft); }
.skin-preview { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: 14px; display: grid; place-items: center; overflow: hidden; }
.skin-preview.classic { background: #f5f1e9; box-shadow: inset 0 0 0 1px #d6cebf; }
.skin-preview.classic i { width: 46%; aspect-ratio: 1; border-radius: 50%; background: #2a2723; box-shadow: 0 3px 0 #0f0e0c; }
.skin-preview.classic b { position: absolute; top: 12%; right: 12%; width: 16%; aspect-ratio: 1; border-radius: 50%; background: #f2541b; }
.skin-preview.chip8 { background: #c9c6be; box-shadow: inset 0 0 0 1px #9e9b93; }
.skin-preview.chip8 i { position: absolute; top: 12%; left: 14%; right: 14%; height: 38%; background: #9bbc0f; box-shadow: 0 0 0 5px #545262; }
.skin-preview.chip8 b { position: absolute; bottom: 14%; left: 16%; width: 26%; aspect-ratio: 1; background: linear-gradient(#222 0 0) center / 34% 100% no-repeat, linear-gradient(#222 0 0) center / 100% 34% no-repeat; }
.skin-preview.chip8 b::after { content: ''; position: absolute; left: 230%; top: 10%; width: 60%; aspect-ratio: 1; border-radius: 50%; background: #a3245b; box-shadow: 120% -40% 0 #a3245b; }
.toggles { display: grid; gap: 8px; margin-top: 16px; }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 16px; border-radius: 18px; background: var(--body); border: 1px solid var(--body-edge); }
.toggle span { display: grid; gap: 2px; text-align: left; }
.toggle small { font-size: 10px; color: var(--ink-soft); text-transform: uppercase; }
.toggle input { appearance: none; -webkit-appearance: none; width: 52px; height: 32px; border-radius: 999px; background: var(--ink-faint); position: relative; cursor: pointer; transition: background .2s; flex: none; }
.toggle input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px #0003; transition: transform .2s cubic-bezier(.2, .9, .2, 1.2); }
.toggle input:checked { background: var(--signal); }
.toggle input:checked::after { transform: translateX(20px); }

/* ── Setup wizard ──────────────────────────── */
.setup {
  position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; overflow-y: auto;
  padding: max(14px, var(--safe-t)) 20px calc(20px + var(--safe-b)); background: var(--bg);
  animation: fadein .3s ease-out;
}
.setup-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; }
.setup-dots { display: flex; gap: 6px; }
.setup-dots i { width: 22px; height: 6px; border-radius: 6px; background: var(--body-edge); transition: background .3s, width .3s; }
.setup-dots i.done { background: var(--signal); }
.setup-dots i.now { background: var(--signal); width: 36px; }
.setup-body { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: 18px; max-width: 480px; width: 100%; margin: 0 auto; padding: 16px 0; animation: stepin .4s cubic-bezier(.2, .9, .2, 1); }
@keyframes stepin { from { opacity: 0; transform: translateX(24px); } }
.setup-art { position: relative; width: min(74vw, 290px, 38dvh); aspect-ratio: 1; margin: 0 auto; display: grid; place-items: center; }
.setup h2 { margin: 0; font-size: clamp(34px, 9.5vw, 52px); line-height: .98; letter-spacing: -.045em; font-weight: 750; text-align: center; }
.setup p.say-it { margin: 0; text-align: center; font-size: 18px; line-height: 1.5; color: var(--ink-soft); }
.setup p.wake-tip { margin-top: 14px; font-size: 15px; }
.setup-actions { display: grid; gap: 10px; margin-top: 6px; }
.setup-actions .cta { width: 100%; min-height: 66px; font-size: 20px; }
.setup-actions .ghost { width: 100%; min-height: 54px; }
.setup .field-art { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 60%, #2a140a, #0e0c0a 70%); }
.setup .field-art canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Art: a TV switching on */
.art-tv { width: 86%; display: grid; justify-items: center; }
.art-tv .set { width: 100%; aspect-ratio: 16 / 10; border-radius: 14px; background: var(--glass); box-shadow: 0 0 0 7px var(--key), var(--shadow); display: grid; place-items: center; overflow: hidden; position: relative; }
.art-tv .set::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 60% at 50% 50%, #f2541b88, transparent 70%); opacity: 0; animation: tvon 2.6s ease-in-out infinite; }
.art-tv .set span { width: 0; height: 3px; background: #fff; border-radius: 3px; box-shadow: 0 0 20px #fff; animation: line 2.6s ease-in-out infinite; position: relative; z-index: 1; }
@keyframes line { 0%, 10% { width: 0; opacity: 1; } 30% { width: 80%; height: 3px; } 45%, 90% { width: 100%; height: 100%; opacity: 0; } 100% { opacity: 0; } }
@keyframes tvon { 0%, 35% { opacity: 0; } 50%, 85% { opacity: 1; } 100% { opacity: 0; } }
.art-tv .foot { width: 30%; height: 12px; background: var(--ink-faint); border-radius: 0 0 8px 8px; margin-top: 7px; }
.art-tv .finger { position: absolute; right: 2%; bottom: 4%; width: 38px; height: 78px; border-radius: 19px; background: var(--key); transform: rotate(14deg); display: grid; justify-items: center; padding-top: 14px; box-shadow: 0 3px 0 var(--key-edge); }
.art-tv .finger i { width: 16px; height: 16px; border-radius: 50%; background: var(--signal); animation: tap 2.6s infinite; }
@keyframes tap { 0%, 5% { transform: scale(1); } 10% { transform: scale(.7); box-shadow: 0 0 0 8px #f2541b55; } 20%, 100% { transform: scale(1); box-shadow: none; } }

/* Art: the Allow prompt + a countdown ring */
.art-allow { width: 100%; height: 100%; position: relative; display: grid; place-items: center; }
.art-allow svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.art-allow .ring circle { fill: none; stroke-width: 6; }
.art-allow .ring .track { stroke: var(--body-edge); }
.art-allow .ring .left { stroke: var(--signal); stroke-linecap: round; transition: stroke-dashoffset 1s linear; }
.art-allow .box { width: 62%; padding: 16px 14px; border-radius: 12px; background: var(--glass); color: #f5f1e9; display: grid; gap: 12px; justify-items: center; box-shadow: 0 0 0 6px var(--key); }
.art-allow .box small { font-family: var(--mono); font-size: 9px; text-transform: uppercase; text-align: center; opacity: .8; }
.art-allow .box .btns { display: flex; gap: 8px; }
.art-allow .box b { font-family: var(--mono); font-size: 11px; padding: 6px 12px; border-radius: 6px; background: #ffffff1a; }
.art-allow .box b.yes { background: var(--signal); animation: press 1.8s infinite; }
@keyframes press { 0%, 50% { box-shadow: 0 0 0 0 #f2541b00; } 60% { box-shadow: 0 0 0 7px #f2541b66; } 75%, 100% { box-shadow: 0 0 0 0 #f2541b00; } }
.art-allow .secs { position: absolute; bottom: 14%; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); }

/* Big pick / room cards */
.pick { display: grid; gap: 10px; }
.pick button {
  display: flex; align-items: center; gap: 14px; min-height: 72px; padding: 0 18px; border-radius: 20px; text-align: left;
  background: var(--body); border: 1px solid var(--body-edge); box-shadow: var(--shadow); transition: transform .1s;
}
.pick button.pressed { transform: scale(.97); }
.pick .tvdot { width: 44px; height: 30px; flex: none; border-radius: 6px; background: var(--glass); box-shadow: 0 0 0 3px var(--key); position: relative; }
.pick .tvdot::after { content: ''; position: absolute; inset: 30% 30%; border-radius: 50%; background: var(--signal); box-shadow: 0 0 10px var(--signal); }
.pick b { display: block; font-size: 18px; }
.pick small { font-family: var(--mono); font-size: 10px; text-transform: uppercase; color: var(--ink-soft); }
.rooms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rooms button {
  min-height: 72px; border-radius: 20px; display: grid; place-items: center; align-content: center; gap: 4px; font-size: 16px; font-weight: 650;
  background: var(--body); border: 1px solid var(--body-edge); box-shadow: var(--shadow); transition: transform .1s;
}
.rooms button i { font-style: normal; font-size: 24px; }
.rooms button.pressed { transform: scale(.95); }
.checklist { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 18px; background: var(--body); border: 1px solid var(--body-edge); font-size: 16px; line-height: 1.4; }
.checklist li i { font-style: normal; font-size: 22px; line-height: 1; }
/* "Open Settings" inside a checklist line: a real button, easy to hit. */
.inline-btn { display: inline-block; margin: 6px 0 2px; padding: 8px 14px; border: 0; border-radius: 999px; background: var(--signal); color: #fff; font: inherit; font-weight: 700; font-size: 15px; box-shadow: 0 2px 0 var(--signal-deep); }
#searchHint { animation: hint-in .35s ease-out; }
@keyframes hint-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { #searchHint { animation: none; } }
.ip-input { font-family: var(--mono) !important; font-size: 26px !important; text-align: center; letter-spacing: .06em; min-height: 66px !important; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 14px; border-radius: 2px; animation: fall 1.6s cubic-bezier(.2, .6, .4, 1) forwards; }
@keyframes fall { to { transform: translate(var(--dx), 110dvh) rotate(var(--rot)); opacity: .8; } }

/* ── Toast note ────────────────────────────── */
/* A popover (top layer: above sheets). Glass pill, an icon disc per kind,
   a spring in, and a thin bar that drains while it's up. */
.note {
  position: fixed; inset: max(12px, var(--safe-t)) auto auto 50%; margin: 0; z-index: 95;
  display: flex; align-items: center; gap: 10px; width: max-content; max-width: min(calc(100% - 28px), 440px);
  padding: 10px 16px 10px 10px; border: 0; border-radius: 20px; overflow: hidden;
  background: var(--key); color: var(--key-ink); font: 600 15px/1.3 var(--display);
  box-shadow: 0 18px 40px -14px #000a, 0 0 0 1px #ffffff14 inset;
  -webkit-backdrop-filter: blur(18px) saturate(1.5); backdrop-filter: blur(18px) saturate(1.5);
  transform: translate(-50%, -140%) scale(.92); opacity: 0; visibility: hidden;
  transition: transform .45s cubic-bezier(.2, 1.4, .3, 1), opacity .2s, visibility 0s .45s;
  touch-action: none; cursor: pointer;
}
.note.show { transform: translate(-50%, 0) scale(1); opacity: 1; visibility: visible; transition-delay: 0s; }
.note::backdrop { display: none; }
.note-ico {
  flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  font: 800 15px/1 var(--display); font-style: normal; color: #fff;
  background: radial-gradient(circle at 35% 30%, #ffb27d, var(--signal) 70%); box-shadow: 0 0 14px -2px var(--signal);
}
.note-ico:empty::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px #fff; }
.note[data-kind="success"] .note-ico { background: radial-gradient(circle at 35% 30%, #8ff0b0, #1fa35a 75%); box-shadow: 0 0 14px -2px #1fa35a; }
.note[data-kind="wake"] .note-ico { background: radial-gradient(circle at 35% 30%, #ffe08a, #f2a516 75%); box-shadow: 0 0 14px -2px #f2a516; }
.note[data-kind="error"] .note-ico { background: radial-gradient(circle at 35% 30%, #ff9a86, #c8341a 75%); box-shadow: 0 0 14px -2px #c8341a; }
.note-text { min-width: 0; text-wrap: pretty; }
.note-time { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: .18; transform-origin: left; transform: scaleX(0); }
.note.show .note-time { animation: note-time var(--note-ms, 2400ms) linear forwards; }
@keyframes note-time { from { transform: scaleX(1); } to { transform: scaleX(0); } }
.note[data-kind="error"] { box-shadow: 0 18px 40px -14px #000a, 0 0 0 1.5px #c8341a88 inset; }
@media (prefers-reduced-motion: reduce) { .note { transition: opacity .2s, visibility 0s .2s; transform: translate(-50%, 0); } .note.show .note-time { animation: none; } }

/* ── Demo banner (mutaafaziz.com/hearth/demo only) ── */
.demo-bar {
  position: sticky; top: 0; z-index: 60; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: max(8px, var(--safe-t)) 16px 8px; background: var(--key); color: var(--key-ink);
  font-size: 10px; text-transform: uppercase; text-decoration: none; letter-spacing: .06em;
}
.demo-bar b { color: var(--signal); font-weight: 600; }

@media (min-width: 720px) { .hero { padding-top: 40px; } }
/* Phones on their side: pad left, everything else right. */
@media (orientation: landscape) and (max-height: 520px) {
  #remote { max-width: 900px; }
  .device { display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'head head' 'pad keys' 'pad rock' 'pad media'; align-items: center; column-gap: 24px; --pad: min(62dvh, 280px); }
  .device-head { grid-area: head; } .pad { grid-area: pad; } .nav-keys { grid-area: keys; margin: 0; } .rockers { grid-area: rock; } .transport { grid-area: media; }
  .rocker { height: 110px; }
  .pad-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; }
}

/* The App Store app (window.HearthHost): no install nudges, no household
   (the hub is on this phone), no share-the-link rows. */
[data-host="app"] :is([data-install], [data-house="phones"]) { display: none !important; }

/* ── Power-on (every launch) ───────────────── */
/* An old CRT switching on: a dot, a scan line stretched wide, the picture
   bursting open in ember, then the room. Pure CSS; ~1 s; gone after. */
.power-on {
  position: fixed; inset: 0; z-index: 200; pointer-events: none; display: grid; place-items: center;
  background: #07080c; animation: po-fade .45s .8s ease-in forwards;
}
.power-on i {
  width: 6px; height: 6px; border-radius: 50%; background: #fff;
  box-shadow: 0 0 18px 6px #ffb08a, 0 0 60px 20px #ff6a2b;
  animation: po-line .8s cubic-bezier(.7, 0, .2, 1) forwards;
}
@keyframes po-line {
  0% { transform: scale(0); opacity: 0; }
  12% { transform: scale(1); opacity: 1; }
  38% { width: 6px; height: 6px; }
  58% { width: 100vw; height: 2px; border-radius: 0; }
  80% { width: 100vw; height: 100dvh; border-radius: 0; opacity: 1; background: radial-gradient(60% 50% at 50% 50%, #fff, #ffb08a 35%, #ff6a2b 70%, #07080c); }
  100% { width: 100vw; height: 100dvh; border-radius: 0; opacity: 0; }
}
@keyframes po-fade { to { opacity: 0; visibility: hidden; } }
[data-mode="light"] .power-on { background: #f6f1ea; }
[data-mode="light"] .power-on i { background: #161821; box-shadow: 0 0 18px 6px #ff8a4c, 0 0 60px 20px #f25a1d88; }
@media (prefers-reduced-motion: reduce) { .power-on { display: none; } }

/* "Try the demo" under the empty house (phone app only) */
.demo-link { display: block; margin-top: 18px; font-size: 12px; color: var(--ink-soft); text-decoration: none; text-align: center; }
.demo-link:not([hidden]) { animation: fadein .5s .6s both; }
.demo-row { color: inherit; text-decoration: none; }
.demo-link[hidden], .demo-row[hidden], .pro-row[hidden] { display: none !important; } /* a class's display beats [hidden] */
