:root {
  color-scheme: dark;
  --bg: #041013;
  --bg-deep: #02090b;
  --panel: rgba(8, 29, 32, .52);
  --panel-strong: rgba(8, 31, 35, .74);
  --line: rgba(119, 239, 231, .12);
  --line-strong: rgba(119, 239, 231, .24);
  --text: #eef7f5;
  --muted: #80989a;
  --teal: #67f7ec;
  --teal-soft: #2fc9c0;
  --gold: #d7b56c;
  --orange: #e98560;
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }
html, body, #root { min-height: 100%; }
body { margin: 0; background: radial-gradient(circle at 68% 7%, rgba(24, 112, 112, .12), transparent 30%), linear-gradient(150deg, #061518 0%, #030b0d 58%, #020708 100%); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible { outline: 2px solid rgba(103, 247, 236, .75); outline-offset: 2px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 184px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 34px 18px 24px; border-right: 1px solid rgba(255,255,255,.045); background: linear-gradient(180deg, rgba(0,9,11,.92), rgba(0,8,10,.7)); backdrop-filter: blur(20px); z-index: 10; }
.brand__name { letter-spacing: .42em; font-size: 13px; font-weight: 500; white-space: nowrap; }
.brand__tag { color: var(--muted); font-size: 9px; margin-top: 8px; letter-spacing: .08em; }
.sidebar__nav { display: grid; gap: 5px; margin-top: 60px; }
.nav-item { height: 40px; border: 0; border-radius: 10px; padding: 0 12px; background: transparent; display: flex; align-items: center; gap: 11px; font-size: 11px; color: #90a5a7; cursor: pointer; transition: transform .22s ease, color .22s ease, background .22s ease, box-shadow .22s ease; }
.nav-item:hover { transform: translateX(2px); color: #dff7f4; background: rgba(92, 241, 229, .045); }
.nav-item.is-active { color: var(--teal); background: linear-gradient(90deg, rgba(41, 210, 201, .13), rgba(34, 128, 126, .035)); box-shadow: inset 1px 0 var(--teal); }
.sidebar__footer { margin-top: auto; display: grid; gap: 6px; color: #53696b; font-size: 7px; letter-spacing: .24em; }
.micro-rule { width: 18px; height: 1px; background: var(--gold); margin-bottom: 8px; }
.app-content { min-width: 0; }
.page { width: min(1180px, calc(100% - 70px)); min-height: 100vh; margin: 0 auto; padding: 0 0 92px; }
.topbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar__mobile-brand { display: none; }
.topbar__identity { display: flex; align-items: center; gap: 11px; }
.topbar__title { margin-top: 3px; font-size: 13px; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-button, .avatar { border: 1px solid rgba(255,255,255,.055); background: rgba(255,255,255,.018); cursor: pointer; }
.icon-button { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #82999b; }
.avatar { width: 31px; height: 31px; border-radius: 50%; color: #d6c58e; font-size: 11px; }
.eyebrow { color: #6d8385; font-size: 8px; letter-spacing: .22em; text-transform: uppercase; }

/* NURI ORB */
.nuri-orb { --orb-size: 48px; width: var(--orb-size); height: var(--orb-size); padding: 0; border: 0; border-radius: 50%; background: transparent; position: relative; cursor: pointer; isolation: isolate; flex: 0 0 auto; }
.nuri-orb--hero { --orb-size: clamp(196px, 21vw, 286px); }
.nuri-orb--companion { --orb-size: 38px; }
.nuri-orb__halo { position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(circle, rgba(48, 229, 219, .18), rgba(14, 102, 105, .08) 42%, transparent 71%); filter: blur(11px); opacity: .54; transform: scale(.98); transition: opacity .35s ease, transform .35s ease, filter .35s ease; }
.nuri-orb__shell { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 48% 43%, #0b3336 0%, #082426 27%, #031113 66%, #010708 100%); box-shadow: inset -18px -22px 32px rgba(0,0,0,.55), inset 9px 9px 22px rgba(74, 201, 194, .035), 0 0 0 1px rgba(129,255,246,.72), 0 0 12px rgba(78,243,232,.16); }
.nuri-orb__depth { position: absolute; inset: 10%; border-radius: 50%; background: radial-gradient(circle at 46% 56%, rgba(0,0,0,.05), rgba(0,0,0,.5) 69%, rgba(0,0,0,.64)); opacity: .72; }
.nuri-orb__reflection { position: absolute; width: 55%; height: 48%; right: 7%; top: 8%; border-radius: 58% 42% 54% 46% / 70% 63% 37% 30%; background: linear-gradient(139deg, rgba(222,255,252,.52), rgba(162,247,242,.13) 46%, transparent 68%); filter: blur(.6px); transform: rotate(-20deg); transform-origin: center; opacity: .72; transition: transform .45s ease, opacity .45s ease, filter .45s ease; }
.nuri-orb__rim { position: absolute; inset: 0; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(117,255,246,.92), inset 0 0 9px rgba(86,255,245,.2), 0 0 12px rgba(58,236,225,.26); transition: box-shadow .35s ease, transform .35s ease; }
.nuri-orb__focus { position: absolute; width: 9%; height: 9%; left: 45.5%; top: 45.5%; border-radius: 50%; background: radial-gradient(circle, rgba(171,255,249,.94), rgba(81,240,229,.4) 50%, transparent 72%); opacity: 0; filter: blur(1px); transition: opacity .3s ease, transform .3s ease; }
.nuri-orb__thinking-traces { position: absolute; inset: 12%; border-radius: 50%; opacity: 0; transition: opacity .35s ease; }
.nuri-orb__thinking-traces i { position: absolute; inset: 18% 6%; border-radius: 50%; border-top: 1px solid rgba(112,255,245,.32); border-right: 1px solid transparent; border-bottom: 0; border-left: 0; transform: rotate(18deg); }
.nuri-orb__thinking-traces i:nth-child(2) { inset: 28% 12%; transform: rotate(122deg); border-top-color: rgba(112,255,245,.18); }
.nuri-orb__thinking-traces i:nth-child(3) { inset: 8% 25%; transform: rotate(246deg); border-top-color: rgba(215,181,108,.22); }
.nuri-orb--idle { animation: orbFloat 7.5s ease-in-out infinite; }
.nuri-orb--idle .nuri-orb__rim { animation: idleRim 7.5s ease-in-out infinite; }
.nuri-orb--listening .nuri-orb__halo { opacity: .82; transform: scale(1.16); filter: blur(15px); animation: listenHalo 2.2s ease-in-out infinite; }
.nuri-orb--listening .nuri-orb__rim { box-shadow: inset 0 0 0 1.25px rgba(143,255,248,.98), inset 0 0 13px rgba(86,255,245,.32), 0 0 19px rgba(67,246,234,.38); animation: listenRim 2.2s ease-in-out infinite; }
.nuri-orb--listening .nuri-orb__focus { opacity: .62; animation: focusPulse 1.8s ease-in-out infinite; }
.nuri-orb--thinking .nuri-orb__thinking-traces { opacity: 1; animation: tracesDrift 4.1s linear infinite; }
.nuri-orb--thinking .nuri-orb__thinking-traces i:nth-child(2) { animation: traceReverse 4.7s linear infinite; }
.nuri-orb--thinking .nuri-orb__thinking-traces i:nth-child(3) { animation: tracePulse 3.1s ease-in-out infinite; }
.nuri-orb--thinking .nuri-orb__reflection { opacity: .58; transform: rotate(-10deg) translate(-2%, 3%); animation: thinkReflection 4.8s ease-in-out infinite; }
.nuri-orb--thinking .nuri-orb__rim { animation: thinkRim 2.8s ease-in-out infinite; }
.nuri-orb--speaking .nuri-orb__reflection { animation: speakReflection 1.35s ease-in-out infinite; }
.nuri-orb--speaking .nuri-orb__rim { animation: speakRim 1.35s ease-in-out infinite; }
.nuri-orb--speaking .nuri-orb__halo { animation: speakHalo 1.35s ease-in-out infinite; }
.nuri-orb--hero:hover { transform: scale(1.01); }
@keyframes orbFloat { 0%,100% { transform: translateY(0) scale(.995); } 50% { transform: translateY(-2px) scale(1.008); } }
@keyframes idleRim { 0%,100% { opacity: .76; } 50% { opacity: .96; } }
@keyframes listenHalo { 0%,100% { transform: scale(1.08); opacity: .62; } 50% { transform: scale(1.18); opacity: .88; } }
@keyframes listenRim { 0%,100% { transform: scale(1); } 50% { transform: scale(1.015); } }
@keyframes focusPulse { 0%,100% { transform: scale(.88); opacity: .34; } 50% { transform: scale(1.16); opacity: .72; } }
@keyframes tracesDrift { to { transform: rotate(360deg); } }
@keyframes traceReverse { from { transform: rotate(122deg); } to { transform: rotate(-238deg); } }
@keyframes tracePulse { 0%,100% { transform: rotate(246deg) scale(.92); opacity: .36; } 50% { transform: rotate(276deg) scale(1.08); opacity: .88; } }
@keyframes thinkReflection { 0%,100% { transform: rotate(-10deg) translate(-2%,3%); } 50% { transform: rotate(-23deg) translate(2%,-1%) scale(.96); } }
@keyframes thinkRim { 0%,100% { filter: brightness(.92); } 45% { filter: brightness(1.28); } 70% { filter: brightness(1.02); } }
@keyframes speakReflection { 0%,100% { transform: rotate(-20deg) scaleX(1) scaleY(1); } 35% { transform: rotate(-15deg) scaleX(.94) scaleY(1.05); } 68% { transform: rotate(-24deg) scaleX(1.04) scaleY(.96); } }
@keyframes speakRim { 0%,100% { transform: scaleX(1) scaleY(1); } 35% { transform: scaleX(1.015) scaleY(.992); } 68% { transform: scaleX(.994) scaleY(1.014); } }
@keyframes speakHalo { 0%,100% { transform: scale(.98); opacity: .48; } 45% { transform: scale(1.09); opacity: .72; } }

/* Home */
.home-hero { min-height: 410px; display: grid; grid-template-columns: minmax(260px, .9fr) minmax(260px, 1.05fr) minmax(180px, .65fr); align-items: center; gap: 26px; border-bottom: 1px solid rgba(255,255,255,.035); }
.home-hero__copy h1, .page-heading h1 { margin: 12px 0 7px; font-size: clamp(24px, 2.4vw, 34px); font-weight: 430; letter-spacing: -.035em; }
.home-hero__copy p, .page-heading p { margin: 0; max-width: 500px; color: #81999b; font-size: 12px; line-height: 1.65; }
.home-hero__orb-wrap { display: grid; place-items: center; min-height: 330px; }
.home-hero__whisper { justify-self: end; width: 150px; display: grid; gap: 7px; color: #698082; font-size: 9px; line-height: 1.55; }
.home-hero__whisper > span:first-child { color: var(--gold); font-size: 7px; letter-spacing: .25em; }
.home-hero__whisper strong { color: #c5d3d2; font-weight: 450; }
.priority-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.priority-card { text-align: left; min-height: 126px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(145deg, rgba(8,35,38,.72), rgba(4,19,22,.36)); padding: 17px; cursor: pointer; transition: transform .25s ease, border-color .25s ease, background .25s ease; }
.priority-card:hover { transform: translateY(-3px); border-color: var(--line-strong); background: linear-gradient(145deg, rgba(10,42,45,.8), rgba(4,19,22,.42)); }
.priority-card__top { display: flex; align-items: center; gap: 8px; color: #829b9c; font-size: 9px; }
.priority-card__icon { color: var(--teal); }
.priority-card__arrow { margin-left: auto; }
.priority-card__value { margin-top: 18px; font-size: 14px; font-weight: 520; }
.priority-card__value--warn { color: #ef9a77; }
.priority-card__value--good { color: var(--teal); }
.priority-card__note { margin-top: 5px; color: #6f8789; font-size: 9px; }
.ask-bar { width: min(720px, 72%); height: 54px; margin: 26px auto 0; border: 1px solid rgba(103,247,236,.26); border-radius: 999px; background: rgba(3,18,21,.6); display: grid; grid-template-columns: 40px 1fr 40px; align-items: center; padding: 5px 7px; box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 0 24px rgba(18,177,171,.045); }
.ask-bar input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font-size: 11px; padding: 0 10px; }
.ask-bar input::placeholder { color: #526b6d; }
.ask-bar__mic, .ask-bar__send { width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; }
.ask-bar__mic { color: var(--teal); background: rgba(46, 223, 212, .09); transition: box-shadow .25s ease, background .25s ease; }
.ask-bar__mic.is-active { background: rgba(46,223,212,.18); box-shadow: 0 0 20px rgba(46,223,212,.18); }
.ask-bar__send { color: #a5c1c0; background: rgba(255,255,255,.035); }
.status-row { margin-top: 32px; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid rgba(255,255,255,.035); padding-top: 18px; }
.status-item { min-width: 0; border: 0; border-right: 1px solid rgba(255,255,255,.035); padding: 8px 18px; background: transparent; text-align: left; display: flex; align-items: center; gap: 10px; color: var(--gold); cursor: pointer; }
.status-item:last-child { border-right: 0; }
.status-item div { min-width: 0; display: grid; gap: 2px; }
.status-item span { color: #6c8385; font-size: 8px; }
.status-item strong { color: #afc0bf; font-size: 9px; font-weight: 450; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Secondary pages */
.page-heading { padding-top: 60px; max-width: 620px; }
.page-heading h1 { font-size: 32px; }
.conversation-shell { min-height: 460px; margin-top: 38px; border-top: 1px solid rgba(255,255,255,.035); display: grid; align-content: center; justify-items: center; gap: 42px; }
.conversation-empty { display: grid; justify-items: center; gap: 8px; color: var(--teal); text-align: center; }
.conversation-empty strong { color: #dcebea; font-size: 13px; font-weight: 450; }
.conversation-empty span { color: #647d7f; font-size: 9px; }
.list-grid, .world-grid { margin-top: 46px; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }
.list-card, .world-card, .settings-row { border: 1px solid var(--line); background: rgba(6,27,30,.42); border-radius: 15px; cursor: pointer; transition: transform .23s ease, border-color .23s ease, background .23s ease; }
.list-card:hover, .world-card:hover, .settings-row:hover { transform: translateY(-2px); border-color: var(--line-strong); background: rgba(8,34,37,.55); }
.list-card { min-height: 86px; padding: 15px 17px; display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 12px; text-align: left; }
.list-card__icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(48,217,207,.07); color: var(--teal); }
.list-card div:nth-child(2), .settings-row div { min-width: 0; display: grid; gap: 5px; }
.list-card strong, .settings-row strong { font-size: 11px; font-weight: 500; }
.list-card span, .settings-row span { font-size: 9px; color: #647d7f; }
.world-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
.world-card { min-height: 140px; padding: 18px; display: grid; align-content: start; gap: 12px; text-align: left; color: var(--teal); }
.world-card strong { color: #d7e6e4; font-size: 11px; font-weight: 500; margin-top: 6px; }
.world-card span { color: #657e80; font-size: 9px; line-height: 1.5; }
.settings-list { margin-top: 44px; display: grid; gap: 8px; max-width: 760px; }
.settings-row { min-height: 66px; padding: 13px 15px; display: grid; grid-template-columns: 32px 1fr auto; align-items: center; gap: 12px; text-align: left; color: var(--teal); }
.settings-row div strong { color: #d7e6e4; }

.mobile-nav { display: none; }
.dev-switcher { position: fixed; right: 14px; bottom: 14px; z-index: 50; }
.dev-switcher__toggle { width: 42px; height: 28px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(3,13,15,.88); color: #6f8587; font-size: 8px; letter-spacing: .12em; cursor: pointer; }
.dev-switcher__panel { position: absolute; right: 0; bottom: 36px; min-width: 160px; padding: 10px; background: rgba(3,15,17,.96); border: 1px solid rgba(103,247,236,.13); border-radius: 12px; display: grid; gap: 5px; box-shadow: 0 18px 50px rgba(0,0,0,.35); }
.dev-switcher__panel > span { color: #61797b; font-size: 8px; text-transform: uppercase; letter-spacing: .16em; margin-bottom: 4px; }
.dev-switcher__panel button { text-align: left; border: 0; border-radius: 8px; padding: 7px 8px; background: transparent; color: #7d9395; font-size: 9px; text-transform: capitalize; cursor: pointer; }
.dev-switcher__panel button.is-active { background: rgba(103,247,236,.08); color: var(--teal); }

@media (max-width: 980px) {
  .app-shell { grid-template-columns: 72px minmax(0,1fr); }
  .sidebar { padding: 28px 10px 20px; align-items: center; }
  .brand__tag, .sidebar__footer, .nav-item span { display: none; }
  .brand__name { font-size: 9px; letter-spacing: .25em; }
  .sidebar__nav { margin-top: 48px; }
  .nav-item { width: 42px; justify-content: center; padding: 0; }
  .home-hero { grid-template-columns: minmax(220px,.8fr) minmax(240px,1fr); }
  .home-hero__whisper { display: none; }
  .world-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { display: none; }
  .page { width: min(100% - 28px, 620px); min-height: auto; padding-bottom: 104px; }
  .topbar { min-height: 62px; position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, rgba(4,16,19,.92), rgba(4,16,19,.72), transparent); backdrop-filter: blur(14px); }
  .topbar__mobile-brand { display: block; }
  .topbar__mobile-brand .brand__name { font-size: 9px; }
  .topbar__identity { gap: 9px; }
  .topbar__identity .nuri-orb--companion { --orb-size: 34px; }
  .home-hero { min-height: 420px; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 0; padding-top: 34px; }
  .home-hero__copy { order: 2; margin-top: 34px; }
  .home-hero__orb-wrap { order: 1; width: 100%; min-height: 210px; }
  .home-hero__orb-wrap .nuri-orb--hero { --orb-size: 190px; }
  .home-hero__copy h1 { font-size: 24px; }
  .home-hero__whisper { display: none; }
  .priority-grid { grid-template-columns: 1fr; gap: 9px; margin-top: 22px; }
  .priority-card { min-height: 96px; padding: 14px; }
  .priority-card__value { margin-top: 13px; font-size: 13px; }
  .ask-bar { width: 100%; height: 50px; margin-top: 20px; }
  .status-row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0; margin-bottom: 10px; }
  .status-item { min-height: 62px; border-bottom: 1px solid rgba(255,255,255,.035); }
  .status-item:nth-child(2) { border-right: 0; }
  .page-heading { padding-top: 38px; }
  .page-heading h1 { font-size: 26px; }
  .conversation-shell { min-height: 420px; }
  .list-grid, .world-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .world-card { min-height: 110px; }
  .mobile-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); min-height: 62px; padding: 6px; border: 1px solid rgba(103,247,236,.11); border-radius: 19px; background: rgba(3,15,17,.9); backdrop-filter: blur(18px); box-shadow: 0 15px 55px rgba(0,0,0,.38); }
  .mobile-nav__item { border: 0; border-radius: 14px; background: transparent; display: grid; justify-items: center; align-content: center; gap: 4px; color: #667d7f; font-size: 7px; cursor: pointer; }
  .mobile-nav__item.is-active { color: var(--teal); background: rgba(103,247,236,.055); }
  .dev-switcher { bottom: 86px; right: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* v0.1.2 — persistent companion NURI on secondary tabs */
.nuri-orb--docked { --orb-size: clamp(142px, 13.5vw, 178px); }
.topbar__identity--mobile-only { display: none; }
.secondary-layout {
  display: grid;
  grid-template-columns: minmax(176px, 220px) minmax(0, 1fr);
  gap: clamp(34px, 4vw, 64px);
  align-items: start;
  min-height: calc(100vh - 78px);
}
.companion-rail {
  min-width: 0;
  padding-top: 68px;
}
.companion-rail__sticky {
  position: sticky;
  top: 116px;
  display: grid;
  justify-items: start;
  gap: 18px;
}
.companion-rail__meta {
  display: grid;
  gap: 5px;
  padding-left: 3px;
}
.companion-rail__meta span {
  color: var(--teal);
  font-size: 7px;
  letter-spacing: .26em;
}
.companion-rail__meta strong {
  color: #dbe8e7;
  font-size: 10px;
  font-weight: 450;
}
.secondary-main { min-width: 0; }
.page--secondary .page-heading { padding-top: 68px; }
.page--secondary .conversation-shell { margin-top: 36px; min-height: 430px; }
.page--secondary .list-grid,
.page--secondary .world-grid,
.page--secondary .settings-list { margin-top: 40px; }

@media (max-width: 980px) {
  .secondary-layout { grid-template-columns: 150px minmax(0, 1fr); gap: 28px; }
  .nuri-orb--docked { --orb-size: 132px; }
  .companion-rail { padding-top: 58px; }
  .companion-rail__sticky { top: 104px; }
}

@media (max-width: 720px) {
  .topbar__identity--mobile-only { display: flex; }
  .secondary-layout { display: block; min-height: auto; }
  .companion-rail { display: none; }
  .page--secondary .page-heading { padding-top: 38px; }
}

/* v0.2.0 — interaction prototype + locked companion NURI */
.topbar__identity--mobile-only { display: none !important; }
.secondary-layout {
  grid-template-columns: minmax(210px, 248px) minmax(0, 1fr);
  gap: clamp(42px, 5vw, 76px);
}
.companion-rail { padding-top: 62px; }
.companion-rail__sticky {
  top: 104px;
  justify-items: start;
  gap: 16px;
}
.nuri-orb--docked { --orb-size: clamp(166px, 15vw, 196px); }
.companion-rail__meta { padding-left: 4px; gap: 4px; }
.companion-rail__meta span { font-size: 7px; letter-spacing: .28em; }
.companion-rail__meta strong { font-size: 10px; color: #d7e7e5; font-weight: 450; }
.page--secondary .page-heading { padding-top: 62px; }

.suggestion-row { margin-top: 10px; display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; }
.suggestion-chip {
  border: 1px solid rgba(103,247,236,.12);
  border-radius: 999px;
  background: rgba(103,247,236,.025);
  color: #789092;
  padding: 7px 10px;
  font-size: 9px;
  cursor: pointer;
  transition: color .2s ease, border-color .2s ease, transform .2s ease, background .2s ease;
}
.suggestion-chip:hover { transform: translateY(-1px); color: #cfe4e2; border-color: rgba(103,247,236,.24); background: rgba(103,247,236,.05); }

.conversation-shell {
  min-height: 480px;
  align-content: stretch;
  grid-template-rows: minmax(290px, 1fr) auto;
  justify-items: stretch;
  gap: 24px;
  padding-bottom: 8px;
}
.conversation-empty { align-self: center; justify-self: center; }
.conversation-thread {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 34px 4px 12px;
  display: grid;
  align-content: start;
  gap: 20px;
}
.message { max-width: 84%; display: grid; gap: 5px; opacity: 0; transform: translateY(4px); animation: messageIn .28s ease forwards; }
.message > span { color: #587173; font-size: 7px; letter-spacing: .2em; }
.message p { margin: 0; color: #cddcda; font-size: 11px; line-height: 1.75; }
.message--user { justify-self: end; text-align: right; }
.message--user p { color: #a8bcba; }
.message--nuri { justify-self: start; }
.message--nuri > span { color: var(--teal); }
.message--thinking { min-width: 54px; }
.typing-dots { display: flex; gap: 4px; padding-top: 3px; }
.typing-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--teal); opacity: .32; animation: dotPulse 1s ease-in-out infinite; }
.typing-dots i:nth-child(2) { animation-delay: .14s; }
.typing-dots i:nth-child(3) { animation-delay: .28s; }
@keyframes dotPulse { 0%,100% { transform: translateY(0); opacity: .28; } 50% { transform: translateY(-3px); opacity: .9; } }
@keyframes messageIn { to { opacity: 1; transform: translateY(0); } }

.memory-panel {
  margin-top: 18px;
  max-width: 760px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(7,28,31,.38);
  display: grid;
  grid-template-columns: minmax(180px,.8fr) minmax(280px,1.2fr);
  gap: 28px;
  animation: messageIn .25s ease both;
}
.memory-panel h2 { margin: 8px 0 6px; font-size: 15px; font-weight: 480; }
.memory-panel p { margin: 0; color: #657f81; font-size: 9px; line-height: 1.6; }
.memory-options { display: grid; gap: 8px; }
.memory-option {
  min-height: 52px;
  border: 1px solid rgba(255,255,255,.04);
  border-radius: 11px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 18px 1fr;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.012);
  cursor: pointer;
}
.memory-option input { accent-color: #45dcd2; }
.memory-option span { display: grid; gap: 3px; }
.memory-option strong { font-size: 9px; font-weight: 500; color: #cddbd9; }
.memory-option small { color: #637c7e; font-size: 8px; line-height: 1.45; }

/* clickable local prototype affordance */
.priority-card, .status-item, .list-card, .world-card { position: relative; }
.priority-card:active, .status-item:active, .list-card:active, .world-card:active, .suggestion-chip:active { transform: translateY(0) scale(.995); }

@media (max-width: 1100px) {
  .secondary-layout { grid-template-columns: 180px minmax(0,1fr); gap: 32px; }
  .nuri-orb--docked { --orb-size: 150px; }
}

@media (max-width: 720px) {
  .topbar__identity--mobile-only { display: flex !important; }
  .secondary-layout { display: block; }
  .companion-rail { display: none; }
  .conversation-shell { min-height: 430px; grid-template-rows: minmax(250px,1fr) auto; }
  .conversation-thread { padding-top: 24px; }
  .message { max-width: 92%; }
  .memory-panel { grid-template-columns: 1fr; gap: 18px; }
}

/* v0.3 — AI brain connection status (kept quiet, only visible under More) */
.brain-status {
  margin-top: 34px;
  max-width: 760px;
  min-height: 72px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(6,27,30,.34);
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 13px;
  align-items: center;
}
.brain-status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6d7d7e;
  box-shadow: 0 0 0 4px rgba(109,125,126,.06);
}
.brain-status.is-connected .brain-status__dot {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(69,220,210,.07), 0 0 14px rgba(69,220,210,.22);
}
.brain-status strong { display: block; margin-top: 5px; color: #d8e7e5; font-size: 10px; font-weight: 520; }
.brain-status p { margin: 4px 0 0; color: #657e80; font-size: 8.5px; line-height: 1.55; }
