/* Eclipse mobile pass (2026-10-12). ":root[data-theme="eclipse"] " is replaced by :root[data-theme="eclipse"] at build time. */
:root { --ecl-blue: #4f8bff; --ecl-blue-soft: #8db3ff; }

/* ---- restrained blue: Director halo/eyes, active nav, focus rings, avatar rings only ---- */
:root[data-theme="eclipse"] :focus-visible { outline: 2px solid var(--ecl-blue-soft); outline-offset: 2px; }
:root[data-theme="eclipse"] .bottom-nav a[aria-current="page"] .nav-ic { color: #cfe0ff; background: rgba(79,139,255,.18); box-shadow: 0 0 0 1px rgba(79,139,255,.55), 0 0 18px -4px rgba(79,139,255,.7); }
:root[data-theme="eclipse"] .avatar::after { border-color: rgba(141,179,255,.55); box-shadow: 0 0 20px -6px rgba(79,139,255,.65), inset 0 0 12px -8px rgba(79,139,255,.35); }

/* ---- chat: left director + small avatar, right owner bubbles, no empty bubbles ---- */
@media (max-width: 1023px) {
  :root[data-theme="eclipse"] .director-log { display: flex; flex-direction: column; align-items: stretch; gap: 14px; }
  :root[data-theme="eclipse"] .director-log > * { max-width: 100%; flex: 0 0 auto; min-width: 0; }
  :root[data-theme="eclipse"] .msg { display: flex; flex-direction: column; gap: 4px; width: auto; max-width: 100%; }
  :root[data-theme="eclipse"] .msg.owner { align-self: flex-end; align-items: flex-end; max-width: 85%; width: auto; }
  :root[data-theme="eclipse"] .msg.owner .bubble { width: auto; max-width: 100%; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 18px 18px 6px 18px; padding: 10px 14px; line-height: 1.45; color: var(--text-1); }
  :root[data-theme="eclipse"] .msg.owner .msg-meta { justify-content: flex-end; }
  :root[data-theme="eclipse"] .msg.director { align-self: flex-start; flex-direction: row; align-items: flex-start; gap: 10px; max-width: 94%; }
  :root[data-theme="eclipse"] .msg.director > .avatar, :root[data-theme="eclipse"] .msg.director > .avatar-life { flex: none; --av-size: 30px !important; width: 30px !important; height: 30px !important; min-width: 30px !important; min-height: 30px !important; max-width: 30px !important; max-height: 30px !important; margin-top: 2px; }
  :root[data-theme="eclipse"] .msg.director .msg-body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  :root[data-theme="eclipse"] .msg.director .bubble { width: auto; max-width: 100%; background: rgba(255,255,255,.05); border: 1px solid var(--border-card); border-radius: 18px 18px 18px 6px; padding: 10px 14px; line-height: 1.5; overflow-wrap: anywhere; }
  :root[data-theme="eclipse"] .msg.director .msg-meta { grid-column: auto; width: auto; }
  :root[data-theme="eclipse"] .msg .bubble:empty { display: none; }
  :root[data-theme="eclipse"] .msg.director:has(.msg-body > .bubble:empty):not(:has(.msg-body > :not(.bubble):not(.msg-meta))) { display: none; }
}

/* ---- Director hero (empty conversation) ---- */
@media (max-width: 720px) {
  :root[data-theme="eclipse"] .director-page.is-idle .director-greet { text-align: left; font-size: var(--fs-md); line-height: 1.45; padding: 14px 16px; border-radius: 18px; background: rgba(14,18,28,.86); border: 1px solid rgba(110,160,255,.30); box-shadow: 0 12px 34px -14px rgba(0,0,0,.9), 0 0 30px -16px rgba(79,139,255,.6); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  :root[data-theme="eclipse"] .director-page.is-idle .director-greet b { display: block; font-size: var(--fs-lg); margin-bottom: 2px; }
  :root[data-theme="eclipse"] .director-idle-prompts { gap: 8px; }
  :root[data-theme="eclipse"] .director-idle-prompts button { min-height: 48px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--border-strong); color: var(--text-1); font-size: var(--fs-md); padding: 10px 16px; }
  :root[data-theme="eclipse"] .director-idle-prompts button:active { background: rgba(255,255,255,.09); }
  :root[data-theme="eclipse"] .director-page.is-idle .director-log > .mobile-only { display: none; }
  :root[data-theme="eclipse"] .director-idle-prompts button:nth-child(n+6) { display: none; }
  :root[data-theme="eclipse"] .director-page.is-idle .director-log { overflow-y: auto; }
}

/* ---- Home: short and glanceable on a phone ---- */
@media (max-width: 480px) {
  :root[data-theme="eclipse"] .home-small .home-calm { font-size: var(--fs-md); }
  :root[data-theme="eclipse"] .home-small .home-calm .status-dot { font-size: var(--fs-md); }
  :root[data-theme="eclipse"] .home-small .truth-cta-only { padding: 14px; }
  :root[data-theme="eclipse"] .home-small .truth-cta-only .btn { margin: 0; }
  :root[data-theme="eclipse"] .home-small .home-agents { display: flex; flex-wrap: nowrap; gap: 10px; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; padding: 4px 2px 6px; margin: 0 -2px; grid-template-columns: none; }
  :root[data-theme="eclipse"] .home-small .home-agents > * { flex: 0 0 84px; scroll-snap-align: start; min-height: 0; padding: 8px 2px; background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  :root[data-theme="eclipse"] .home-small .home-agents .status-dot { font-size: var(--fs-xs); }
  :root[data-theme="eclipse"] .home-small .wip-small { min-height: 52px; gap: 10px; }
  :root[data-theme="eclipse"] .home-small .wip-small .wip-name { font-size: var(--fs-lg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  :root[data-theme="eclipse"] .home-small .wip-small .pill { flex: none; }
  :root[data-theme="eclipse"] .home-more { border: 1px solid var(--border-card); border-radius: 18px; background: rgba(255,255,255,.02); }
  :root[data-theme="eclipse"] .home-more > summary { list-style: none; cursor: pointer; min-height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-weight: 600; font-size: var(--fs-md); }
  :root[data-theme="eclipse"] .home-more > summary::-webkit-details-marker { display: none; }
  :root[data-theme="eclipse"] .home-more > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .2s; margin-right: 4px; }
  :root[data-theme="eclipse"] .home-more[open] > summary::after { transform: rotate(-135deg); }
  :root[data-theme="eclipse"] .home-more-body { padding: 4px 12px 16px; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat { padding: 12px; }
  /* Needs You: no duplicate count line, no boilerplate */
  :root[data-theme="eclipse"] .page .ow-count-line { display: none; }
  :root[data-theme="eclipse"] .page .ow-count-line ~ .dim.tiny { display: none; }
  /* first glance: reasons, long explanations and boilerplate live behind the detail screens */
  :root[data-theme="eclipse"] [aria-label="Where every product stands"] .grow.small.dim { display: none; }
  :root[data-theme="eclipse"] [aria-label="Gumroad status"] > .small:nth-child(n+3) { display: none; }
}

/* moonlit orb scrolls with the Home page instead of staying fixed behind the content */
:root[data-theme="eclipse"] body:has(.home-page) .shell.earth-app::before { position: absolute; inset: 0 0 auto 0; height: 620px; }

@media (max-width: 480px) {
  :root[data-theme="eclipse"] .home-small .home-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; grid-row: auto; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat { padding: 12px; border-radius: 16px; column-gap: 10px; min-height: 76px; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .v { font-size: var(--fs-2xl); }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .l { font-size: var(--fs-sm); margin-top: 0; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .sub { font-size: var(--fs-xs); }
}

@media (max-width: 480px) {
  :root[data-theme="eclipse"] body:has(.home-page) .shell.earth-app::before { background-image:
    radial-gradient(60% 1.5px at 50% 172px, rgba(255,255,255,.7), transparent 70%),
    radial-gradient(ellipse 85% 220px at 50% 172px, rgba(255,255,255,.08), transparent 72%),
    radial-gradient(circle 210px at 50% 30px, #4a4e59 0%, #23262d 45%, #101216 68%, rgba(6,7,10,0) 76%),
    linear-gradient(180deg, #0a0b0f 0%, #06070a 60%); }
}

@media (max-width: 480px) {
  :root[data-theme="eclipse"] .home-small .wip-small { min-width: 0; }
  :root[data-theme="eclipse"] .home-small .wip-small .wip-name { flex: 1 1 0; min-width: 0; }
  :root[data-theme="eclipse"] .home-small .home-main > *, :root[data-theme="eclipse"] .home-small .home-main .section { min-width: 0; max-width: 100%; }
  :root[data-theme="eclipse"] .home-small .home-agents-panel { overflow: hidden; }
}

/* ---- crisp agent art (round 3): no filter / transform on the layer that holds the picture ---- */
:root[data-theme="eclipse"] .avatar-life .av-stage,
:root[data-theme="eclipse"] .avatar-life.sz-sm .av-stage,
:root[data-theme="eclipse"] .avatar .av-stage,
:root[data-theme="eclipse"] .director-page.is-idle .director-hero .av-stage {
  filter: none !important; animation: none !important; transform: none !important; will-change: auto;
}
:root[data-theme="eclipse"] .avatar-life.is-interactive:hover .av-stage { transform: none !important; }
:root[data-theme="eclipse"] .avatar img, :root[data-theme="eclipse"] .avatar-life img {
  image-rendering: auto; transform: none !important; filter: none; backface-visibility: visible;
}
/* the glow comes from a light halo + ring behind/around the art instead of a filter on it */
:root[data-theme="eclipse"] .avatar::before { inset: 6%; background: radial-gradient(circle, rgba(141,179,255,.22), rgba(141,179,255,0) 68%); }
@media (max-width: 720px) {
  :root[data-theme="eclipse"] .director-page.is-idle .director-hero::before { background: radial-gradient(circle, rgba(79,139,255,.46) 0%, rgba(79,139,255,.22) 52%, rgba(79,139,255,0) 74%); box-shadow: 0 0 52px 8px rgba(79,139,255,.42), inset 0 0 52px rgba(79,139,255,.30); }
}

/* =====================================================================
   Round 4: tone the white down (night-time phone). Tune brightness HERE.
   --ink-1 body text, --ink-h headings, --ink-2 secondary, --ink-3 muted,
   --glow-a overall glow strength, --line-btn button border strength.
   ===================================================================== */
:root[data-theme="eclipse"] {
  --ink-1: #d5d9e1; --ink-h: #e3e6ec; --ink-2: #9aa2b0; --ink-3: #808896; --ink-stat: #c9cdd6;
  --glow-a: .22; --line-btn: .26; --line-btn-2: .13; --hi-a: .16;
  --text-1: var(--ink-1); --text-2: var(--ink-2); --text-3: var(--ink-3); --nav-idle: var(--ink-2);
  --accent: var(--ink-1); --accent-2: var(--ink-h); --blue-bright: var(--ink-1); --focus: #9db4e6;
}
:root[data-theme="eclipse"] body { color: var(--ink-1); }
:root[data-theme="eclipse"] :focus-visible { outline-color: #9db4e6; }
:root[data-theme="eclipse"] h1, :root[data-theme="eclipse"] h2, :root[data-theme="eclipse"] h3,
:root[data-theme="eclipse"] .display, :root[data-theme="eclipse"] .display.xl, :root[data-theme="eclipse"] .h-title,
:root[data-theme="eclipse"] .h-sec, :root[data-theme="eclipse"] .card-title { color: var(--ink-h); }
:root[data-theme="eclipse"] .stat .v, :root[data-theme="eclipse"] .truth-n, :root[data-theme="eclipse"] .home-ring-n, :root[data-theme="eclipse"] .ip-val { color: var(--ink-stat); }
:root[data-theme="eclipse"] .home-greet, :root[data-theme="eclipse"] .director-id > .row, :root[data-theme="eclipse"] .director-tagline { text-shadow: none; }

/* buttons: quieter glass */
:root[data-theme="eclipse"] .btn { color: var(--ink-1); border-color: rgba(255,255,255,var(--line-btn-2)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -1px 0 rgba(255,255,255,.02); }
:root[data-theme="eclipse"] .btn:hover { border-color: rgba(255,255,255,.22); box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 12px -6px rgba(255,255,255,.25); }
:root[data-theme="eclipse"] .btn.primary, :root[data-theme="eclipse"] .btn.accent {
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.02) 55%, rgba(255,255,255,.05)), rgba(6,7,10,.88);
  border: 1px solid rgba(255,255,255,var(--line-btn)); color: var(--ink-1); text-shadow: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,var(--hi-a)), inset 0 -10px 18px -14px rgba(255,255,255,.12), 0 0 14px -4px rgba(255,255,255,var(--glow-a)), 0 8px 20px -14px rgba(0,0,0,.9);
}
:root[data-theme="eclipse"] .btn.primary:hover, :root[data-theme="eclipse"] .btn.accent:hover {
  background: linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,.03) 55%, rgba(255,255,255,.07)), rgba(6,7,10,.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), inset 0 -10px 18px -14px rgba(255,255,255,.16), 0 0 18px -4px rgba(255,255,255,.3), 0 8px 20px -14px rgba(0,0,0,.9);
}
:root[data-theme="eclipse"] .btn.primary svg, :root[data-theme="eclipse"] .btn.accent svg { color: var(--ink-1); }
:root[data-theme="eclipse"] .truth-cta-only, :root[data-theme="eclipse"] .truth { box-shadow: var(--shadow-card); }

/* bottom nav: soft blue-grey indicator */
:root[data-theme="eclipse"] .bottom-nav a[aria-current="page"] .nav-ic { color: #aebfe0; background: rgba(120,150,210,.12); border: 1px solid rgba(120,150,210,.30); box-shadow: 0 0 12px -4px rgba(120,150,210,.30); }
:root[data-theme="eclipse"] .bottom-nav a[aria-current="page"] { color: var(--ink-1); }

/* agent ring + Director halo: calmer */
:root[data-theme="eclipse"] .avatar::after { border-color: rgba(141,179,255,.36); box-shadow: 0 0 14px -6px rgba(79,139,255,.45), inset 0 0 10px -8px rgba(79,139,255,.25); }
@media (max-width: 720px) {
  :root[data-theme="eclipse"] .director-page.is-idle .director-hero::before { background: radial-gradient(circle, rgba(79,139,255,.30) 0%, rgba(79,139,255,.14) 52%, rgba(79,139,255,0) 74%); border-color: rgba(110,160,255,.36); box-shadow: 0 0 40px 4px rgba(79,139,255,.24), inset 0 0 40px rgba(79,139,255,.18); }
  :root[data-theme="eclipse"] .director-page.is-idle .director-greet { border-color: rgba(110,160,255,.22); color: var(--ink-1); }
  :root[data-theme="eclipse"] .director-page.is-idle .director-greet b { color: var(--ink-h); }
}
:root[data-theme="eclipse"] .director-idle-prompts button { border-color: rgba(255,255,255,.14); color: var(--ink-1); }

/* Round 6: the "Do this first" button stands alone (no card around it); multi-line text wraps inside a softly rounded pill */
:root[data-theme="eclipse"] .truth-cta-wrap { margin: 2px 0 0; }
:root[data-theme="eclipse"] .truth-cta-wrap .btn, :root[data-theme="eclipse"] .btn.truth-cta {
  border-radius: 28px; min-height: 48px; padding: 14px 22px; line-height: 1.3; white-space: normal; text-align: center; overflow-wrap: anywhere; height: auto;
}
:root[data-theme="eclipse"] .home-page .truth + .truth-cta-wrap { margin-top: 12px; }

/* =====================================================================
   Round 7: dim again (values from ui_concepts/style2.css) + no horizon line
   ===================================================================== */
:root[data-theme="eclipse"] {
  --ink-1: #c3c8d2; --ink-h: #d2d6de; --ink-2: #8f97a6; --ink-3: #7c8492; --ink-stat: #c9cdd6; --ink-btn: #c9cdd6; --ink-nav-on: #d6dae2;
  --glow-a: .15; --line-btn: .18; --line-btn-2: .12; --hi-a: .12;
}
:root[data-theme="eclipse"] .btn, :root[data-theme="eclipse"] .btn.primary, :root[data-theme="eclipse"] .btn.accent, :root[data-theme="eclipse"] .btn.primary svg, :root[data-theme="eclipse"] .btn.accent svg { color: var(--ink-btn); }
:root[data-theme="eclipse"] .btn.primary, :root[data-theme="eclipse"] .btn.accent {
  box-shadow: inset 0 1px 0 rgba(255,255,255,var(--hi-a)), inset 0 -10px 18px -14px rgba(255,255,255,.08), 0 0 10px -4px rgba(255,255,255,var(--glow-a)), 0 8px 20px -14px rgba(0,0,0,.9);
}
:root[data-theme="eclipse"] .btn.primary:hover, :root[data-theme="eclipse"] .btn.accent:hover {
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16), inset 0 -10px 18px -14px rgba(255,255,255,.10), 0 0 14px -4px rgba(255,255,255,.2), 0 8px 20px -14px rgba(0,0,0,.9);
}
:root[data-theme="eclipse"] .bottom-nav a[aria-current="page"] { color: var(--ink-nav-on); }
:root[data-theme="eclipse"] .director-idle-prompts button, :root[data-theme="eclipse"] .director-page.is-idle .director-greet { color: var(--ink-1); }
:root[data-theme="eclipse"] .director-page.is-idle .director-greet b { color: var(--ink-h); }

/* no thin light line across the Home hero: only a very faint orb */
:root[data-theme="eclipse"] body:has(.home-page) .shell.earth-app::before {
  background-image:
    radial-gradient(circle 210px at 50% 30px, #3b3f49 0%, #1c1f25 45%, #0e1014 68%, rgba(6,7,10,0) 76%),
    linear-gradient(180deg, #0a0b0f 0%, #06070a 60%);
}
@media (min-width: 1024px) {
  :root[data-theme="eclipse"] body:has(.home-page) .shell.earth-app::before {
    background-image:
      radial-gradient(circle 300px at 46% 0px, #3b3f49 0%, #1c1f25 45%, #0e1014 68%, rgba(6,7,10,0) 76%),
      linear-gradient(180deg, #0a0b0f 0%, #06070a 60%);
  }
}
@media (max-width: 480px) {
  :root[data-theme="eclipse"] body:has(.home-page) .shell.earth-app::before {
    background-image:
      radial-gradient(circle 210px at 50% 30px, #3b3f49 0%, #1c1f25 45%, #0e1014 68%, rgba(6,7,10,0) 76%),
      linear-gradient(180deg, #0a0b0f 0%, #06070a 60%);
  }
}

/* =====================================================================
   Round 8: Director composer + conversation, More moon hero, Needs-you cube, Ideas globe
   ===================================================================== */
/* ---- composer card ---- */
:root[data-theme="eclipse"] .composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 10px 12px 8px; border-radius: 22px; background: rgba(14,16,22,.84); border: 1px solid rgba(255,255,255,.12); align-items: stretch; box-shadow: 0 10px 30px -16px rgba(0,0,0,.9); }
:root[data-theme="eclipse"] .composer:focus-within { border-color: rgba(140,165,220,.45); box-shadow: 0 0 0 3px rgba(79,139,255,.08), 0 10px 30px -16px rgba(0,0,0,.9); }
:root[data-theme="eclipse"] .composer textarea { width: 100%; font-size: var(--fs-lg); line-height: 1.45; color: var(--ink-1); padding: 6px 4px; min-height: 40px; }
:root[data-theme="eclipse"] .composer textarea::placeholder { color: var(--ink-3); }
:root[data-theme="eclipse"] .composer .cmp-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
:root[data-theme="eclipse"] .composer .cmp-left, :root[data-theme="eclipse"] .composer .cmp-right { display: flex; align-items: center; gap: 8px; }
:root[data-theme="eclipse"] .composer .cmp-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.04); color: var(--ink-2); }
:root[data-theme="eclipse"] .composer .cmp-btn:active, :root[data-theme="eclipse"] .composer .cmp-btn.is-on { border-color: rgba(141,179,255,.55); color: #cfe0ff; background: rgba(79,139,255,.14); }
:root[data-theme="eclipse"] .composer .send { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(180deg, #5f82d6, #4768b6); color: #e9efff; box-shadow: 0 0 14px -4px rgba(79,139,255,.55); }
:root[data-theme="eclipse"] .composer .send.is-idle, :root[data-theme="eclipse"] .composer .send[disabled] { background: rgba(255,255,255,.07); color: var(--ink-3); box-shadow: none; }
:root[data-theme="eclipse"] .director-compose { padding-bottom: 6px; }

/* ---- Director idle: centred title + status above the head ---- */
@media (max-width: 1023px) {
  :root[data-theme="eclipse"] .director-page.is-idle .director-id .row { flex-direction: column; align-items: center; gap: 2px; }
  :root[data-theme="eclipse"] .director-page.is-idle .director-id .display { font-size: var(--fs-2xl); }
  :root[data-theme="eclipse"] .director-page.is-idle .director-id .status-dot { font-size: var(--fs-xs); }
  :root[data-theme="eclipse"] .director-page.is-idle .director-greet b { font-weight: 600; }
}

/* ---- answer typography + follow-up pills (all widths) ---- */
:root[data-theme="eclipse"] .bubble .rich { white-space: normal; display: grid; gap: 10px; }
:root[data-theme="eclipse"] .bubble .rich p { margin: 0; white-space: pre-line; }
:root[data-theme="eclipse"] .bubble .rich p.lead { font-weight: 600; color: var(--ink-h); }
:root[data-theme="eclipse"] .bubble .rich h4 { margin: 6px 0 -2px; font-size: var(--fs-lg); font-weight: 600; color: var(--ink-h); }
:root[data-theme="eclipse"] .bubble .rich ul, :root[data-theme="eclipse"] .bubble .rich ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; line-height: 1.55; }
:root[data-theme="eclipse"] .bubble .rich li::marker { color: var(--ink-3); }
:root[data-theme="eclipse"] .bubble a { color: #8db3ff; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
:root[data-theme="eclipse"] .director-followups { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
:root[data-theme="eclipse"] .director-followups .pill-btn { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--ink-1); min-height: 44px; padding: 8px 16px; font-size: var(--fs-md); }
:root[data-theme="eclipse"] .la-toggle { color: var(--ink-3); font-size: var(--fs-xs); }

/* ---- conversation (reference concept: wide dark-glass answer card, compact owner pill, centred header) ---- */
@media (max-width: 1023px) {
  :root[data-theme="eclipse"] .director-page .director-head { grid-template-columns: 44px minmax(0, 1fr) 44px; padding: 6px 8px 8px; border-bottom: 1px solid rgba(255,255,255,.07); }
  :root[data-theme="eclipse"] .director-page .director-focal { display: flex; justify-content: center; align-items: center; gap: 10px; }
  :root[data-theme="eclipse"] .director-page .director-name { flex-direction: column; align-items: flex-start; gap: 1px; }
  :root[data-theme="eclipse"] .director-page .director-id .status-dot { font-size: var(--fs-xs); }
  :root[data-theme="eclipse"] .msg .bubble { font-size: var(--fs-md); line-height: 1.5; color: var(--ink-1); }
  :root[data-theme="eclipse"] .msg.owner { max-width: 80%; }
  :root[data-theme="eclipse"] .msg.owner .bubble { background: rgba(30,35,52,.88); border: 1px solid rgba(150,170,215,.22); border-radius: 18px 18px 6px 18px; padding: 10px 16px; color: var(--ink-1); }
  :root[data-theme="eclipse"] .msg.director { align-self: stretch; display: block; max-width: 100%; width: 100%; }
  :root[data-theme="eclipse"] .msg.director > .avatar, :root[data-theme="eclipse"] .msg.director > .avatar-life { display: none !important; }
  :root[data-theme="eclipse"] .msg.director .msg-body { width: 100%; max-width: 92%; }
  :root[data-theme="eclipse"] .msg.director .bubble { width: 100%; background: rgba(14,16,22,.88); border: 1px solid rgba(255,255,255,.10); border-radius: 16px; padding: 14px 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  :root[data-theme="eclipse"] .msg-meta { font-size: var(--fs-xs); color: var(--ink-3); gap: 6px; }
  :root[data-theme="eclipse"] .bubble .rich { white-space: normal; display: grid; gap: 10px; }
  :root[data-theme="eclipse"] .bubble .rich p { margin: 0; white-space: pre-line; }
  :root[data-theme="eclipse"] .bubble .rich p.lead { font-weight: 600; color: var(--ink-h); }
  :root[data-theme="eclipse"] .bubble .rich h4 { margin: 6px 0 -2px; font-size: var(--fs-lg); font-weight: 600; color: var(--ink-h); }
  :root[data-theme="eclipse"] .bubble .rich ul, :root[data-theme="eclipse"] .bubble .rich ol { margin: 0; padding-left: 22px; display: grid; gap: 6px; line-height: 1.55; }
  :root[data-theme="eclipse"] .bubble .rich li::marker { color: var(--ink-3); }
  :root[data-theme="eclipse"] .bubble a { color: #8db3ff; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
  :root[data-theme="eclipse"] .bubble .sec { color: var(--ink-h); font-size: var(--fs-xs); margin-top: 10px; }
  :root[data-theme="eclipse"] .la-toggle { color: var(--ink-3); font-size: var(--fs-xs); }
  :root[data-theme="eclipse"] .director-actions, :root[data-theme="eclipse"] .director-followups { display: flex; flex-wrap: wrap; gap: 8px; }
  :root[data-theme="eclipse"] .director-followups { margin-top: -2px; }
  :root[data-theme="eclipse"] .director-actions .btn.sm, :root[data-theme="eclipse"] .director-actions .btn.sm.ghost, :root[data-theme="eclipse"] .director-followups .pill-btn { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: var(--ink-1); min-height: 44px; padding: 8px 16px; font-size: var(--fs-md); }
  :root[data-theme="eclipse"] .msg .typing i { background: var(--ink-2); opacity: .7; }
}

/* ---- More: moonlit hero (CSS only) ---- */
:root[data-theme="eclipse"] .moon-hero { position: relative; height: 200px; margin: -6px -16px -10px; overflow: hidden; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
:root[data-theme="eclipse"] .moon-hero .orb { position: absolute; left: -28%; right: -28%; top: 70px; height: 420px; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, #2f3441 0%, #0b0c11 68%); box-shadow: 0 -6px 70px -8px rgba(120,145,225,.55), inset 0 2px 0 rgba(150,172,232,.35); }
:root[data-theme="eclipse"] .moon-hero .stars { position: absolute; inset: 0; opacity: .8;
  background-image: radial-gradient(1px 1px at 12% 22%, #c3c8d2 50%, transparent 52%), radial-gradient(1px 1px at 31% 58%, #8f97a6 50%, transparent 52%), radial-gradient(1.4px 1.4px at 47% 18%, #c3c8d2 50%, transparent 52%), radial-gradient(1px 1px at 63% 44%, #8f97a6 50%, transparent 52%), radial-gradient(1.2px 1.2px at 78% 26%, #c3c8d2 50%, transparent 52%), radial-gradient(1px 1px at 88% 62%, #8f97a6 50%, transparent 52%), radial-gradient(1px 1px at 22% 80%, #8f97a6 50%, transparent 52%), radial-gradient(1px 1px at 70% 82%, #c3c8d2 50%, transparent 52%); }

/* ---- Needs you (empty): calm glass cube ---- */
:root[data-theme="eclipse"] .ow-empty { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; text-align: center; justify-items: center; }
:root[data-theme="eclipse"] .ow-check.ow-cube { position: relative; width: 150px; height: 120px; margin: 4px auto 0; background: none; border: 0; box-shadow: none; color: transparent; }
:root[data-theme="eclipse"] .ow-cube i { position: absolute; left: 30px; top: 20px; width: 84px; height: 84px; border-radius: 18px; border: 1px solid rgba(255,255,255,.2); background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.03)); box-shadow: 0 14px 30px -16px rgba(0,0,0,.9); }
:root[data-theme="eclipse"] .ow-cube i:nth-child(1) { transform: translate(-12px, 8px) rotate(-8deg); opacity: .6; }
:root[data-theme="eclipse"] .ow-cube i:nth-child(2) { transform: rotate(6deg); }
:root[data-theme="eclipse"] .ow-cube i:nth-child(3) { transform: translate(14px, -10px) rotate(16deg); border-color: rgba(159,180,255,.35); }
:root[data-theme="eclipse"] .ow-empty .display { color: var(--ink-h); }
:root[data-theme="eclipse"] .ow-when { text-align: left; width: 100%; border: 1px solid rgba(255,255,255,.10); border-radius: 18px; background: rgba(11,13,18,.7); padding: 12px 14px; }

/* ---- Ideas: globe + stats row ---- */
:root[data-theme="eclipse"] .ip-herobody > .row.wrap { justify-content: space-around; gap: 6px; }
:root[data-theme="eclipse"] .ip-herobody .ip-count { flex-direction: column; align-items: center; gap: 0; background: none; border: 0; padding: 4px 6px; height: auto; font-size: var(--fs-sm); color: var(--ink-2); min-width: 64px; }
:root[data-theme="eclipse"] .ip-herobody .ip-count b { font-size: var(--fs-2xl); font-weight: 600; color: var(--ink-stat); line-height: 1.15; }
:root[data-theme="eclipse"] .ip-herobody .ip-count .pdot { display: none; }

/* =====================================================================
   Pixel pass against mock2.html / style2.css
   ===================================================================== */
/* greeting: 34px serif, 1.04 */
:root[data-theme="eclipse"] .home-sky .display.xl, :root[data-theme="eclipse"] .display.xl { font-size: 34px; line-height: 1.04; color: #d2d6de; }
@media (max-width: 480px) {
  /* tiles: number, label, small note (no icon), 16px radius, 9px gap */
  :root[data-theme="eclipse"] .home-small .home-stats { gap: 9px; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 11px; border-radius: 16px; background: rgba(13,16,21,.8); border: 1px solid rgba(255,255,255,.09); min-height: 0; align-content: start; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .ic { display: none; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat > * { grid-column: 1 !important; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .v { font-size: var(--fs-2xl); font-weight: 600; color: #c9cdd6; line-height: 1.2; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .l { font-size: var(--fs-sm); color: var(--ink-2); margin: 0; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .sub { font-size: var(--fs-xs); color: var(--ink-3); }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .sub.tone-warn { color: #d3a867; }
  /* Director idle: three outlined rows like the mockup */
  :root[data-theme="eclipse"] .director-idle-prompts button:nth-child(n+4) { display: none; }
}
/* agent rings: 2px blue conic ring */
:root[data-theme="eclipse"] .avatar::after { border: 0; padding: 2px; background: conic-gradient(from 200deg, #6f8fe0, rgba(255,255,255,.07) 40%, #8a9bd8 70%, #6f8fe0); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); box-shadow: none; inset: 4%; }
:root[data-theme="eclipse"] .avatar { filter: drop-shadow(0 0 8px rgba(95,141,255,.28)); }
/* bottom nav: blue bar with glow on top of the active tab (no pill) */
:root[data-theme="eclipse"] .bottom-nav a { position: relative; }
:root[data-theme="eclipse"] .bottom-nav a[aria-current="page"] .nav-ic { background: none; border: 0; box-shadow: none; color: var(--ink-nav-on, #d6dae2); }
:root[data-theme="eclipse"] .bottom-nav a[aria-current="page"]::before { content: ""; position: absolute; top: 3px; left: 50%; transform: translateX(-50%); width: 20px; height: 3px; border-radius: 2px; background: #5f8dff; box-shadow: 0 0 10px rgba(95,141,255,.5); }
/* More: moonlit hero then the list below it */
:root[data-theme="eclipse"] .moon-hero { height: 230px; margin-bottom: -40px; }
:root[data-theme="eclipse"] .moon-hero .orb { top: 40px; height: 520px; box-shadow: 0 -6px 90px -10px rgba(111,134,214,.5), inset 0 2px 0 rgba(150,172,232,.35); }
/* Ideas: no eyebrow (title + one line, then the globe) */
:root[data-theme="eclipse"] .ip-herobody > .eyebrow { display: none; }
:root[data-theme="eclipse"] .ip-herobody > .muted { color: var(--ink-2); }

/* ---- live window trackpad: visible cursor + click ripple (not theme-scoped, works in classic too) ---- */
.tp-layer { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.tp-cursor { position: absolute; transform: translate(-3px, -2px); }
.tp-cursor svg { display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.6)); }
.tp-dot { position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #5f8dff; box-shadow: 0 0 0 2px #fff, 0 0 12px 3px rgba(79,139,255,.7); }
.tp-cursor.is-lock .tp-dot { background: #ff5a4d; box-shadow: 0 0 0 2px #fff, 0 0 12px 3px rgba(255,90,77,.7); }
.tp-ripple { position: absolute; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 2px solid #8db3ff; box-shadow: 0 0 10px rgba(79,139,255,.6); animation: tpRipple .5s ease-out forwards; }
.tp-ripple.is-dbl { border-color: #ffd37a; }
@keyframes tpRipple { from { transform: scale(.6); opacity: 1; } to { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tp-ripple { animation: none; opacity: .7; } }
.cn-screen { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---- pull to refresh indicator (not theme-scoped) ---- */
.ptr { position: fixed; left: 50%; top: calc(env(safe-area-inset-top, 0px) + 6px); z-index: 70; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 10px; border-radius: 999px;
  background: rgba(14,16,22,.92); border: 1px solid rgba(255,255,255,.16); color: #c3c8d2; font: 500 12px/1 var(--font-ui, system-ui, sans-serif); pointer-events: none;
  transform: translate(-50%, calc(var(--ptr-y, 0px) - 52px)); opacity: 0; transition: opacity .15s; box-shadow: 0 8px 24px -10px rgba(0,0,0,.9); }
.ptr.on { opacity: 1; }
.ptr .ptr-ico { display: inline-grid; transition: transform .2s; }
.ptr[data-state="ready"] .ptr-ico { transform: rotate(180deg); color: #8db3ff; }
.ptr[data-state="busy"] .ptr-ico { animation: ptrSpin .8s linear infinite; }
.ptr[data-state="busy"] .ptr-ico svg { display: none; }
.ptr[data-state="busy"] .ptr-ico::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(141,179,255,.35); border-top-color: #8db3ff; display: block; }
.ptr[data-state="done"] .ptr-ico { display: none; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ptr, .ptr .ptr-ico { transition: none; } .ptr[data-state="busy"] .ptr-ico { animation: none; } }

/* =====================================================================
   Round 10: one brightness scale for all text (Settings > Appearance > Text brightness)
   data-bright="soft" (default) | "normal" | "bright";  data-night="1" lowers glow + borders.
   Brightest text in the default (soft) set is #cfd3db; body text is #bfc4ce.
   ===================================================================== */
:root[data-theme="eclipse"] {
  --ink-1: #bfc4ce; --ink-h: #cfd3db; --ink-2: #8d95a4; --ink-3: #7c8492; --ink-stat: #c2c7d0; --ink-btn: #c4c9d3; --ink-nav-on: #cfd3db; --ink-pill: #c4c9d3; --ink-white: #cfd3db;
  --text-1: var(--ink-1); --text-2: var(--ink-2); --text-3: var(--ink-3); --info-text: var(--ink-pill); --violet-text: var(--ink-pill); --neutral-text: var(--ink-2);
}
:root[data-theme="eclipse"][data-bright="normal"] {
  --ink-1: #cdd2da; --ink-h: #dde0e7; --ink-2: #9aa2b0; --ink-3: #858d9b; --ink-stat: #d0d4dc; --ink-btn: #d2d6de; --ink-nav-on: #dde0e7; --ink-pill: #d2d6de; --ink-white: #dde0e7;
}
:root[data-theme="eclipse"][data-bright="bright"] {
  --ink-1: #e1e4ea; --ink-h: #f0f2f6; --ink-2: #a9b1be; --ink-3: #8f97a5; --ink-stat: #e6e9ee; --ink-btn: #eaedf1; --ink-nav-on: #f0f2f6; --ink-pill: #e6e9ee; --ink-white: #f5f6f9;
}
/* night: quieter glow, borders and halos */
:root[data-theme="eclipse"][data-night="1"] {
  --glow-a: .05; --line-btn: .10; --line-btn-2: .07; --hi-a: .05;
  --border-card: rgba(255,255,255,.07); --border-strong: rgba(255,255,255,.12); --border-quiet: rgba(255,255,255,.04);
}
:root[data-theme="eclipse"][data-night="1"] .director-page.is-idle .director-hero::before { opacity: .55; }
:root[data-theme="eclipse"][data-night="1"] .avatar::after, :root[data-theme="eclipse"][data-night="1"] .avatar { opacity: .85; filter: none; }
:root[data-theme="eclipse"][data-night="1"] .moon-hero .orb, :root[data-theme="eclipse"][data-night="1"] .shell.earth-app::before { opacity: .55; }
:root[data-theme="eclipse"][data-night="1"] .btn.primary, :root[data-theme="eclipse"][data-night="1"] .btn.accent { box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 8px 20px -14px rgba(0,0,0,.9); }
/* every place that used pure white or its own bright grey now follows the scale */
:root[data-theme="eclipse"] .tab[aria-selected="true"], :root[data-theme="eclipse"] .tab[aria-selected="true"] .n, :root[data-theme="eclipse"] .tab:hover { color: var(--ink-white); }
:root[data-theme="eclipse"] .display, :root[data-theme="eclipse"] .display.xl, :root[data-theme="eclipse"] .home-sky .display.xl, :root[data-theme="eclipse"] .h-title,
:root[data-theme="eclipse"] .h-sec, :root[data-theme="eclipse"] .card-title, :root[data-theme="eclipse"] .ow-empty .display { color: var(--ink-h); }
:root[data-theme="eclipse"] .home-small .home-stats .stat .v, :root[data-theme="eclipse"] .stat .v, :root[data-theme="eclipse"] .truth-n { color: var(--ink-stat); }
:root[data-theme="eclipse"] .bottom-nav a[aria-current="page"], :root[data-theme="eclipse"] .bottom-nav a[aria-current="page"] .nav-ic { color: var(--ink-nav-on); }
:root[data-theme="eclipse"] .btn, :root[data-theme="eclipse"] .btn.primary, :root[data-theme="eclipse"] .btn.accent, :root[data-theme="eclipse"] .btn.primary svg { color: var(--ink-btn); }
:root[data-theme="eclipse"] .pill { color: var(--tone, var(--ink-2)); }
:root[data-theme="eclipse"] .director-page.is-idle .director-greet b, :root[data-theme="eclipse"] .bubble .rich p.lead, :root[data-theme="eclipse"] .bubble .rich h4 { color: var(--ink-h); }
:root[data-theme="eclipse"] .wordmark, :root[data-theme="eclipse"] .logo { color: var(--ink-h); }
:root[data-theme="eclipse"] .mark { color: var(--ink-h); }
/* segmented control (Settings) */
.seg { display: inline-flex; gap: 4px; padding: 3px; border-radius: 999px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.03); }
.seg button { min-height: 44px; padding: 0 16px; border-radius: 999px; color: var(--ink-2, #8d95a4); font-size: var(--fs-md, 15px); font-weight: 500; }
.seg button[aria-checked="true"] { background: rgba(120,140,190,.20); color: var(--ink-h, #cfd3db); box-shadow: inset 0 0 0 1px rgba(150,170,215,.28); }

/* =====================================================================
   Director conversation: the head stays visible (ring + gentle live glow) and a faint large head sits behind the chat
   ===================================================================== */
@media (max-width: 1023px) {
  :root[data-theme="eclipse"] .director-page .director-hero { display: grid; place-items: center; position: relative; width: 56px; height: 56px; flex: none; margin: 0; isolation: isolate; }
  :root[data-theme="eclipse"] .director-page .director-hero .avatar, :root[data-theme="eclipse"] .director-page .director-hero .avatar-life {
    --av-size: 50px !important; width: 50px !important; height: 50px !important; min-width: 50px !important; min-height: 50px !important; max-width: 50px !important; max-height: 50px !important; }
  :root[data-theme="eclipse"] .director-page .director-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; border: 1.5px solid rgba(95,141,255,.40);
    background: radial-gradient(circle, rgba(79,139,255,.22), rgba(79,139,255,0) 70%); box-shadow: 0 0 12px 1px rgba(79,139,255,.30); animation: dirBreath 4.2s ease-in-out infinite; }
  :root[data-theme="eclipse"] .director-page .director-hero:has(.av-thinking, .av-working)::before { animation-duration: 1.6s; }
  :root[data-theme="eclipse"] .director-page .director-focal { flex-direction: row; justify-content: center; align-items: center; gap: 12px; text-align: left; }
  :root[data-theme="eclipse"] .director-page .director-id { justify-items: start; }
  :root[data-theme="eclipse"] .director-page .director-id .row { align-items: flex-start; }
  /* faint big head behind the log (decoration only: no layout, no pointer events) */
  :root[data-theme="eclipse"] .director-page .director-col { position: relative; }
  :root[data-theme="eclipse"] .director-page .director-col::before { content: ""; position: absolute; z-index: 0; top: 78px; left: 50%; width: 260px; height: 260px; transform: translateX(-50%);
    background: url(/assets/agents/director/idle.webp) center / contain no-repeat; opacity: .12; filter: blur(1.5px); pointer-events: none; }
  :root[data-theme="eclipse"] .director-page .director-head, :root[data-theme="eclipse"] .director-page .director-log, :root[data-theme="eclipse"] .director-page .director-compose { position: relative; z-index: 1; }
  body.kb-open :root[data-theme="eclipse"] .director-col::before, :root[data-theme="eclipse"] body.kb-open .director-page .director-col::before { display: none; }
}
@keyframes dirBreath { 0%, 100% { box-shadow: 0 0 10px 0 rgba(79,139,255,.22); opacity: .85; } 50% { box-shadow: 0 0 20px 4px rgba(79,139,255,.48); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { :root[data-theme="eclipse"] .director-page .director-hero::before { animation: none; } }

/* =====================================================================
   Round 11: measured match to mock2.html / style2.css (values copied from the mockup)
   ===================================================================== */
:root[data-theme="eclipse"] { --ink-2: #8f97a6; }
:root[data-theme="eclipse"][data-bright="normal"] { --ink-1: #c3c8d2; --ink-h: #d6dae2; --ink-2: #8f97a6; --ink-stat: #c9cdd6; --ink-btn: #c9cdd6; --ink-nav-on: #d6dae2; }   /* "Normal" = the mockup's exact inks */
@media (max-width: 480px) {
  /* status line */
  :root[data-theme="eclipse"] .home-small .home-calm .status-dot { font-size: 14px; line-height: 1.45; gap: 8px; color: #7fcfa6; }
  :root[data-theme="eclipse"] .home-small .home-calm .status-dot::before { width: 7px; height: 7px; background: #58c795; box-shadow: none; }
  /* tiles: number 24 / label 14 / note 12, line-height 1.45, padding 11, gap 9, radius 16 */
  :root[data-theme="eclipse"] .home-small .home-stats { gap: 9px; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat { padding: 11px; gap: 2px; border-radius: 16px; font-size: 16px; line-height: 1.45; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .v { font-size: 24px; line-height: 1.45; font-weight: 600; }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .l { font-size: 14px; line-height: 1.45; font-weight: 400; color: var(--ink-2); }
  :root[data-theme="eclipse"] .home-small .home-stats .stat .sub { font-size: 12px; line-height: 1.45; font-weight: 400; }
  /* glass button: 26px radius, 48px min, 500 weight, 13/16 padding */
  :root[data-theme="eclipse"] .truth-cta-wrap .btn, :root[data-theme="eclipse"] .btn.truth-cta { border-radius: 26px; min-height: 48px; padding: 13px 16px; font-weight: 500; line-height: 1.3; }
  :root[data-theme="eclipse"] .btn.primary, :root[data-theme="eclipse"] .btn.accent { font-weight: 500; background-color: #0a0b0e; }
  /* section titles */
  :root[data-theme="eclipse"] .home-small .h-sec, :root[data-theme="eclipse"] .section-head .h-sec { font-size: 16px; line-height: 1.45; font-weight: 600; }
  /* agents: 62px blue-ring head + 12px name, four across, no status text */
  :root[data-theme="eclipse"] .home-small .home-agents { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow: visible; }
  :root[data-theme="eclipse"] .home-small .home-agents > * { flex: none; padding: 0; gap: 3px; }
  :root[data-theme="eclipse"] .home-small .home-agents .avatar, :root[data-theme="eclipse"] .home-small .home-agents .avatar-life { --av-size: 62px !important; width: 62px !important; height: 62px !important; min-width: 62px !important; min-height: 62px !important; max-width: 62px !important; max-height: 62px !important; border-radius: 50%; }
  :root[data-theme="eclipse"] .home-small .home-agents .card-title { font-size: 12px; line-height: 1.45; font-weight: 500; color: var(--ink-1); }
  :root[data-theme="eclipse"] .home-small .home-agents .status-dot, :root[data-theme="eclipse"] .home-small .home-agents .tiny { display: none; }
}
/* nav: 12px labels, active 600 with the glowing blue bar; text only like the mockup */
@media (max-width: 1023px) {
  :root[data-theme="eclipse"] .bottom-nav a { font-size: 12px; font-weight: 400; color: var(--ink-3); gap: 0; justify-content: flex-end; padding-bottom: 6px; }
  :root[data-theme="eclipse"] .bottom-nav a[aria-current="page"] { font-weight: 600; color: var(--ink-nav-on); }
  :root[data-theme="eclipse"] .bottom-nav a { justify-content: center; padding-bottom: 0; gap: 2px; }
  :root[data-theme="eclipse"] .bottom-nav .nav-ic, :root[data-theme="eclipse"] .bottom-nav .nav-ic svg { display: inline-grid; width: 22px; height: 22px; color: var(--ink-3); opacity: .9; }
  :root[data-theme="eclipse"] .bottom-nav a[aria-current="page"] .nav-ic { color: var(--ink-nav-on); opacity: 1; }
  :root[data-theme="eclipse"] .bottom-nav a::before { top: 3px; }
}
/* More / Needs you / Ideas / Director idle details */
:root[data-theme="eclipse"] .list-row .grow > div:first-child, :root[data-theme="eclipse"] .list-row b { color: var(--ink-h); font-size: 15px; font-weight: 500; }
:root[data-theme="eclipse"] .list-row .dim.small, :root[data-theme="eclipse"] .list-row .sub { font-size: 13px; color: var(--ink-2); }
:root[data-theme="eclipse"] .ow-empty .display { font-size: 28px; line-height: 1.45; margin: 6px 0 0; }
:root[data-theme="eclipse"] .ow-empty .muted { font-size: 14px; color: var(--ink-2); }
:root[data-theme="eclipse"] .ow-when { border-radius: 16px; padding: 12px 14px; font-size: 14px; background: rgba(11,13,18,.8); }
:root[data-theme="eclipse"] .director-page.is-idle .director-greet { padding: 12px 14px; }
:root[data-theme="eclipse"] .director-idle-prompts button { font-size: 14px; padding: 11px 14px; background: rgba(11,13,18,.8); border-color: rgba(255,255,255,.09); min-height: 44px; }
:root[data-theme="eclipse"] .composer { border-radius: 18px; padding: 14px; }
:root[data-theme="eclipse"] .composer textarea { font-size: 14px; }
/* no Add-to-Home-Screen banner */
:root[data-theme="eclipse"] .ios-install, :root[data-theme="eclipse"] [class*="install-hint"], :root[data-theme="eclipse"] .notice.ios { display: none !important; }
:root[data-theme="eclipse"] .display, :root[data-theme="eclipse"] .display.xl, :root[data-theme="eclipse"] .h-title, :root[data-theme="eclipse"] .ow-empty .display { letter-spacing: normal; }
:root[data-theme="eclipse"] .page > .stack-lg > header .display, :root[data-theme="eclipse"] .page .hero .display:not(.xl) { font-size: 32px; line-height: 1.04; }
:root[data-theme="eclipse"] .ip-herobody > .muted { font-size: 14px; line-height: 1.45; }
:root[data-theme="eclipse"] .ip-herobody .ip-count b { line-height: 1.45; }
@media (max-width: 480px) {
  :root[data-theme="eclipse"] .home-small .home-greet { padding-top: 14px; }
  :root[data-theme="eclipse"] .page > .stack-lg > header.hero, :root[data-theme="eclipse"] .page > .stack-lg > .hero.intel { padding-top: 14px; }
}

/* =====================================================================
   Round 12 audit fixes (phone)
   ===================================================================== */
@media (max-width: 560px) {
  /* every screen: same brand mark + real icons, dim */
  :root[data-theme="eclipse"] .topbar .icon-btn { color: var(--ink-2); }
  :root[data-theme="eclipse"] .topbar .icon-btn .dot { background: var(--ink-1); }
  /* header action buttons never wrap one letter per line */
  :root[data-theme="eclipse"] .page header .btn, :root[data-theme="eclipse"] .page header .row .btn { white-space: nowrap; }
  :root[data-theme="eclipse"] .page header > .row > .row { flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  /* connection / account rows: status pill drops under the text instead of squeezing it */
  :root[data-theme="eclipse"] .cn-body .list-row, :root[data-theme="eclipse"] .cn-platform .list-row { flex-wrap: wrap; row-gap: 6px; }
  :root[data-theme="eclipse"] .cn-body .list-row .grow { flex: 1 1 60%; min-width: 0; }
  :root[data-theme="eclipse"] .cn-body .list-row .grow .dim.small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  :root[data-theme="eclipse"] .cn-body .list-row .pill { margin-left: 46px; }
  :root[data-theme="eclipse"] .ac-svc { white-space: nowrap; }
  :root[data-theme="eclipse"] .ac-line { flex-wrap: wrap; row-gap: 6px; }
  /* technical glossary on Learning stays out of the first glance */
  :root[data-theme="eclipse"] .lr-sem { display: none; }
  /* long machine titles */
  :root[data-theme="eclipse"] .hero .display, :root[data-theme="eclipse"] .h-title { overflow-wrap: anywhere; }
  :root[data-theme="eclipse"] .display:not(.xl) { font-size: 28px; }
  /* search field focus ring: soft */
  :root[data-theme="eclipse"] .searchbar:focus-within, :root[data-theme="eclipse"] input:focus-visible { outline: none; box-shadow: 0 0 0 2px rgba(141,179,255,.35); border-color: rgba(141,179,255,.5); }
  /* Needs you: items stay plain + dim; the old pale-blue chips become glass */
  :root[data-theme="eclipse"] .tab[aria-selected="true"] { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.2); box-shadow: none; }
  /* old amber task boxes on agent cards: lighter */
  :root[data-theme="eclipse"] .agent-card .notice, :root[data-theme="eclipse"] .agent-card .task { background: rgba(240,180,76,.08); border-color: rgba(240,180,76,.28); }
}

/* chat: tables, focus ring, banner */
:root[data-theme="eclipse"] .bubble .rich-table { overflow-x: auto; border: 1px solid rgba(255,255,255,.10); border-radius: 12px; }
:root[data-theme="eclipse"] .bubble .rich-table table { border-collapse: collapse; width: 100%; font-size: var(--fs-sm); }
:root[data-theme="eclipse"] .bubble .rich-table th { text-align: left; font-weight: 600; color: var(--ink-h); padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.03); white-space: nowrap; }
:root[data-theme="eclipse"] .bubble .rich-table td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
:root[data-theme="eclipse"] .bubble .rich-table tr:last-child td { border-bottom: 0; }
:root[data-theme="eclipse"] .composer textarea:focus, :root[data-theme="eclipse"] .composer textarea:focus-visible { outline: none; box-shadow: none; border: 0; }
:root[data-theme="eclipse"] .banner { position: relative; z-index: 5; margin: 0; border-radius: 0; font-size: var(--fs-sm); }

/* =====================================================================
   Artifact palette (owner: "the same exact colors"): the default brightness "Normal" uses the mockup's values exactly.
   Muted #737b8a is the mockup's value: it is below 4.5:1 on dark cards (about 4.2-4.5:1); used only for small captions.
   ===================================================================== */
:root[data-theme="eclipse"][data-bright="normal"] {
  --ink-1: #c3c8d2; --ink-h: #d6dae2; --ink-2: #8f97a6; --ink-3: #737b8a; --ink-stat: #c9cdd6; --ink-btn: #c9cdd6; --ink-nav-on: #d6dae2; --ink-white: #d6dae2; --ink-pill: #c9cdd6;
  --text-1: #c3c8d2; --text-2: #8f97a6; --text-3: #737b8a; --nav-idle: #737b8a;
  --bg: #06070a; --border-card: #ffffff17; --border-quiet: #ffffff0d;
  --success: #58c795; --st-online: #58c795; --ok-text: #7fcfa6; --warn-text: #d3a867; --warning: #d3a867; --bad-text: #d98a8a;
  --blue: #5f8dff;
}
:root[data-theme="eclipse"][data-bright="normal"] .card, :root[data-theme="eclipse"][data-bright="normal"] .glass { background: #0b0d12cc; border: 1px solid #ffffff17; border-radius: 16px; }
:root[data-theme="eclipse"][data-bright="normal"] .stat { background: #0d1015cc; border-color: #ffffff17; border-radius: 16px; }
:root[data-theme="eclipse"][data-bright="normal"] .btn.primary, :root[data-theme="eclipse"][data-bright="normal"] .btn.accent, :root[data-theme="eclipse"][data-bright="normal"] .btn.truth-cta {
  background: linear-gradient(180deg, #ffffff14, #ffffff05), #0a0b0e; border: 1px solid #ffffff2e; color: #c9cdd6;
  box-shadow: inset 0 1px 0 #ffffff1f, 0 0 16px -8px #ffffff40; text-shadow: none; font-weight: 500; }
:root[data-theme="eclipse"][data-bright="normal"] .btn { border-color: #ffffff2e; color: #c9cdd6; }
:root[data-theme="eclipse"][data-bright="normal"] .avatar::after { background: conic-gradient(from 200deg, #6f8fe0, #ffffff10 40%, #8a9bd8 70%, #6f8fe0); box-shadow: none; }
:root[data-theme="eclipse"][data-bright="normal"] .avatar { filter: drop-shadow(0 0 8px rgba(95,141,255,.35)); }
:root[data-theme="eclipse"][data-bright="normal"] .bottom-nav a[aria-current="page"]::before { background: #5f8dff; box-shadow: 0 0 10px #5f8dff80; }
:root[data-theme="eclipse"][data-bright="normal"] .bottom-nav { border-top: 1px solid #ffffff17; }
:root[data-theme="eclipse"][data-bright="normal"] .status-dot.tone-good, :root[data-theme="eclipse"][data-bright="normal"] .status-dot.tone-online { color: #7fcfa6; }
@media (max-width: 560px) {
  :root[data-theme="eclipse"] .list-row:has(.pill) { flex-wrap: wrap; row-gap: 6px; }
  :root[data-theme="eclipse"] .list-row:has(.pill) .grow { flex: 1 1 55%; min-width: 0; }
  :root[data-theme="eclipse"] .list-row:has(.pill) .pill { margin-left: 46px; }
}
