/* ===========================================================================
   ORBE · orbe.css — materialized from Design System v0.2 (read-only source).
   = colors_and_type.css (tokens) + desktop.css (components) + compat aliases.
   Do NOT edit by hand for design changes — re-port from the design system.
   =========================================================================== */

/* =========================================================================
   ORBE · Design Tokens v2
   Clean & cosmic, light-first. Cool paper · deep-space ink · azure signature.
   The metaphor: your projects orbit you like planets around a sun —
   a luminous Cosmos azure as the signature, a warm Solar gold as the accent.
   Type: Onest (UI/display) + IBM Plex Mono (system voice, labels, metadata).
   @import url('https://fonts.googleapis.com/css2?family=Onest:wght@300..800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
   ========================================================================= */

:root {
  /* ---- Brand: Cosmos (the signature — ORBE's luminous presence) -------- */
  --cosmos:          #2E5BFF;   /* primary brand / interactive — clean azure */
  --cosmos-deep:     #1E40C8;   /* hover, pressed, on-light text */
  --cosmos-bright:   #6E8CFF;   /* highlight on dark / cosmic surfaces */
  --cosmos-tint:     #E9EDFF;   /* soft fill / selected bg on light */
  --cosmos-tint-2:   #D4DCFF;   /* slightly stronger tint */

  /* ---- Solar: the warm sun everything orbits (used sparingly) ---------- */
  --solar:           #F3A93C;   /* live agent, warm highlight, the "sun" */
  --solar-deep:      #D2851C;
  --solar-tint:      #FBEBD2;

  /* ---- Paper & surfaces (light-first, cool & clean) -------------------- */
  --paper:           #F5F6FA;   /* app/page canvas — cool off-white */
  --paper-2:         #EDEFF5;   /* recessed canvas, rails */
  --surface:         #FFFFFF;   /* cards, sheets */
  --surface-2:       #FAFBFE;   /* subtle raised */
  --surface-sunk:    #E9ECF4;   /* wells, input tracks */

  /* ---- Deep space (cosmic moments — hero, focus, "presence") ----------- */
  --deep:            #0A0E1C;   /* deep-space navy-black */
  --deep-2:          #121830;   /* raised on deep */
  --deep-3:          #1C2442;   /* hairline-raised on deep */

  /* ---- Ink (text on light, cool near-black) ---------------------------- */
  --ink:             #0E1322;   /* primary text */
  --ink-2:           #474D60;   /* secondary text */
  --ink-3:           #828AA0;   /* tertiary / meta */
  --ink-4:           #B0B6C7;   /* disabled / faint */

  /* ---- Ink on deep ----------------------------------------------------- */
  --on-deep:         #EDF0F8;   /* primary text on deep */
  --on-deep-2:       #AEB6CC;   /* secondary on deep */
  --on-deep-3:       #767F98;   /* tertiary on deep */

  /* ---- Cool neutral scale ---------------------------------------------- */
  --n-50:            #F1F3F8;
  --n-100:           #E6E9F1;
  --n-200:           #D4D8E4;
  --n-300:           #BBC0D1;
  --n-400:           #969DB3;
  --n-500:           #6A7188;

  /* ---- Hairlines & rules ----------------------------------------------- */
  --rule:            rgba(14, 19, 34, 0.08);    /* default hairline on light */
  --rule-strong:     rgba(14, 19, 34, 0.15);
  --rule-on-deep:    rgba(237, 240, 248, 0.12);

  /* ---- Semantic (calm, desaturated) ------------------------------------ */
  --success:         #1F9D6B;
  --success-tint:    #E2F3EC;
  --warning:         #C98A12;
  --warning-tint:    #F8EFD9;
  --error:           #E0574C;
  --error-tint:      #FBE7E5;
  --info:            var(--cosmos);

  /* ---- Focus ring ------------------------------------------------------ */
  --focus-ring:      0 0 0 3px rgba(46, 91, 255, 0.30);

  /* =====================================================================
     TYPOGRAPHY
     ===================================================================== */
  --font-sans:  'Onest', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Type scale — calm, generous. Display in sans; labels/meta in mono. */
  --t-display:  600 64px/1.04  var(--font-sans);   /* marketing hero */
  --t-h1:       600 44px/1.08  var(--font-sans);
  --t-h2:       600 32px/1.14  var(--font-sans);
  --t-h3:       550 24px/1.22  var(--font-sans);
  --t-title:    550 19px/1.3   var(--font-sans);   /* card / section title */
  --t-lead:     400 21px/1.5   var(--font-sans);   /* intro paragraph */
  --t-body:     400 16px/1.6   var(--font-sans);
  --t-small:    400 14px/1.55  var(--font-sans);

  /* Mono voice — the "system" register. Always tracked, often UPPERCASE. */
  --t-mono-label: 500 12px/1.2  var(--font-mono);  /* eyebrows, tags */
  --t-mono-meta:  400 13px/1.4  var(--font-mono);  /* metadata, numerals */
  --t-mono-data:  500 15px/1.3  var(--font-mono);  /* metrics, code */

  /* Tracking */
  --track-display: -0.02em;   /* tighten large sans */
  --track-tight:   -0.01em;
  --track-body:     0em;
  --track-label:    0.14em;   /* mono uppercase labels */
  --track-meta:     0.02em;

  /* =====================================================================
     SPACING — 4px base
     ===================================================================== */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;
  --s-10: 128px;
  --gutter: 24px;

  /* =====================================================================
     RADII — Apple-soft
     ===================================================================== */
  --r-xs:   6px;
  --r-sm:   10px;
  --r-md:   14px;   /* inputs, small cards */
  --r-lg:   20px;   /* cards, sheets */
  --r-xl:   28px;   /* hero panels, modals */
  --r-pill: 999px;

  /* =====================================================================
     SHADOWS — cool, soft, never harsh, never colored glows (except CTA)
     ===================================================================== */
  --shadow-1: 0 1px 2px rgba(10, 14, 28, 0.05),
              0 2px 8px rgba(10, 14, 28, 0.05);
  --shadow-2: 0 2px 6px rgba(10, 14, 28, 0.06),
              0 10px 26px rgba(10, 14, 28, 0.09);
  --shadow-3: 0 4px 14px rgba(10, 14, 28, 0.09),
              0 24px 60px rgba(10, 14, 28, 0.14);
  --shadow-cosmos: 0 8px 30px rgba(46, 91, 255, 0.28); /* azure CTA lift only */

  /* =====================================================================
     MOTION — slow, weighted, no bounce
     ===================================================================== */
  --dur-1: 140ms;
  --dur-2: 240ms;
  --dur-3: 420ms;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);

  /* =====================================================================
     BACK-COMPAT ALIASES (v1 → v2). Prefer the cosmos/solar names above.
     ===================================================================== */
  --iris:        var(--cosmos);
  --iris-deep:   var(--cosmos-deep);
  --iris-bright: var(--cosmos-bright);
  --iris-tint:   var(--cosmos-tint);
  --iris-tint-2: var(--cosmos-tint-2);
  --ember:       var(--solar);
  --ember-deep:  var(--solar-deep);
  --ember-tint:  var(--solar-tint);
  --shadow-iris: var(--shadow-cosmos);
}

/* =========================================================================
   SEMANTIC HELPERS — optional convenience classes
   ========================================================================= */
.orb-display { font: var(--t-display); letter-spacing: var(--track-display); color: var(--ink); }
.orb-h1      { font: var(--t-h1);  letter-spacing: var(--track-display); color: var(--ink); }
.orb-h2      { font: var(--t-h2);  letter-spacing: var(--track-tight); color: var(--ink); }
.orb-h3      { font: var(--t-h3);  letter-spacing: var(--track-tight); color: var(--ink); }
.orb-title   { font: var(--t-title); letter-spacing: var(--track-tight); color: var(--ink); }
.orb-lead    { font: var(--t-lead); color: var(--ink-2); }
.orb-body    { font: var(--t-body); color: var(--ink-2); }
.orb-small   { font: var(--t-small); color: var(--ink-3); }

.orb-label {
  font: var(--t-mono-label);
  letter-spacing: var(--track-label);
  text-transform: uppercase;
  color: var(--ink-3);
}
.orb-meta {
  font: var(--t-mono-meta);
  letter-spacing: var(--track-meta);
  color: var(--ink-3);
}
.orb-data {
  font: var(--t-mono-data);
  color: var(--ink);
  font-feature-settings: 'tnum' 1;
}

/* ---- desktop.css (components) ---- */
/* ORBE · Desktop app kit. Tokens from ../../colors_and_type.css */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: var(--paper); color: var(--ink); font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--n-200); border-radius: 999px; border: 3px solid var(--paper); }

.app { display: grid; grid-template-columns: var(--side-w, 248px) 1fr; height: 100vh; overflow: hidden; }

/* ---- starfield (any theme) ---- */
.stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.star { position: absolute; border-radius: 50%; background: #EDF0F8; }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 0.9; } }
/* ---- nebula glow (any theme) ---- */
.nebula { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 600px at 82% -10%, rgba(46,91,255,0.10), transparent 60%),
    radial-gradient(760px 520px at 8% 108%, rgba(31,166,194,0.08), transparent 60%),
    radial-gradient(620px 520px at 60% 50%, rgba(243,169,60,0.04), transparent 60%); }
html.orbe-dark .nebula { background:
    radial-gradient(1000px 680px at 84% -12%, rgba(110,140,255,0.22), transparent 60%),
    radial-gradient(820px 560px at 6% 110%, rgba(31,166,194,0.16), transparent 60%),
    radial-gradient(680px 560px at 58% 52%, rgba(243,169,60,0.07), transparent 62%); }

@property --side-w {
  syntax: '<length>';
  inherits: true;
  initial-value: 248px;
}
:root { transition: --side-w 480ms cubic-bezier(.22,1,.36,1); }

/* ---- dark-mode logo swap ---- */
.side-brand .logo-dark  { display: none; }
html.orbe-dark .side-brand .logo-light { display: none; }
html.orbe-dark .side-brand .logo-dark  { display: block; }

/* ---- sidebar ---- */
.side { background: var(--surface); border-right: 1px solid var(--rule); display: flex;
  flex-direction: column; padding: 22px 16px; position: relative; z-index: 1;
  width: var(--side-w); overflow: hidden; }
.side.closed { }
.side.closed:hover { width: 248px; z-index: 10; box-shadow: var(--shadow-3); position: relative;
  transition: width 480ms cubic-bezier(.22,1,.36,1); }
.side-text { opacity: 1; transition: opacity 280ms ease; white-space: nowrap; overflow: hidden; flex-shrink: 0; }
/* collapsed state — icons only, everything centered */
.side.closed:not(:hover) { padding-left: 0; padding-right: 0; align-items: center; }

.side.closed:not(:hover) .side-brand {
  justify-content: center; padding-left: 0; padding-right: 0; width: 100%;
}
.side.closed:not(:hover) .side-brand .wm { display: none; }

.side.closed:not(:hover) .nav-group { width: 100%; align-items: center; }
.side.closed:not(:hover) .nav-item {
  justify-content: center; gap: 0;
  padding: 10px 0; width: 40px;
}
.side.closed:not(:hover) .nav-item i { flex: none; }
.side.closed:not(:hover) .side-text { display: none; }
.side.closed:not(:hover) .count { display: none; }
.side.closed:not(:hover) .nav-cap { display: none; }

.side.closed:not(:hover) .side-user {
  justify-content: center; gap: 0; padding: 10px 0; width: 100%;
}
.side.closed:not(:hover) .side-user-info { display: none; }

.side.closed:not(:hover) .side-toggle { margin: 8px auto 0; }
.side-user-info { overflow: hidden; }
.side-toggle { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--rule);
  background: var(--surface-sunk); color: var(--ink-3); display: flex; align-items: center;
  justify-content: center; margin: 10px auto 0; cursor: pointer;
  transition: all var(--dur-1) var(--ease-out); }
.side-toggle:hover { background: var(--cosmos-tint); color: var(--cosmos); border-color: transparent; }
.side-toggle i { width: 13px; height: 13px; stroke-width: 2; }
.side-brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 22px; }
.side-brand img, .side-brand svg.logo-light, .side-brand svg.logo-dark { width: 26px; height: 26px; }
.side-brand .wm { font: var(--t-mono-data); font-weight: 600; font-size: 16px; letter-spacing: 0.28em; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-cap { font: var(--t-mono-label); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-4); font-size: 10px; padding: 16px 10px 8px; }
.nav-item { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: var(--r-sm);
  color: var(--ink-2); font: var(--t-body); font-size: 14.5px; border: none; background: none;
  width: 100%; text-align: left; transition: all var(--dur-1) var(--ease-out); }
.nav-item i { width: 18px; height: 18px; stroke-width: 1.5; }
.nav-item:hover { background: var(--surface-sunk); color: var(--ink); }
.nav-item.active { background: var(--cosmos-tint); color: var(--cosmos-deep); font-weight: 500; }
.nav-item .count { margin-left: auto; font: var(--t-mono-meta); font-size: 11px; color: var(--ink-3); }
.side-user { margin-top: auto; display: flex; align-items: center; gap: 11px; padding: 10px 8px;
  border-top: 1px solid var(--rule); }
.side-user .ava { width: 32px; height: 32px; border-radius: 10px; background: var(--cosmos);
  color: #fff; display: flex; align-items: center; justify-content: center; font: var(--t-mono-data);
  font-weight: 600; font-size: 13px; }
.side-user .nm { font: var(--t-body); font-size: 14px; font-weight: 500; }
.side-user .em { font: var(--t-mono-meta); font-size: 11px; color: var(--ink-3); }

/* ---- main ---- */
.main { overflow-y: auto; padding: 30px 40px 60px; position: relative; z-index: 1; background: transparent; }
.topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 30px; position: relative; overflow: hidden; }
.ask-glow {
  position: absolute;
  width: 1000px; height: 640px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(243,169,60,0.13) 0%,
    rgba(243,169,60,0.05) 30%,
    rgba(243,169,60,0.01) 55%,
    transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  will-change: left, top;
  filter: blur(80px);
}
.topbar .greet, .topbar .ask { position: relative; z-index: 1; }
.greet h1 { font: var(--t-h2); letter-spacing: var(--track-tight); }
.greet .date { font: var(--t-mono-meta); color: var(--ink-3); margin-top: 6px; letter-spacing: var(--track-meta); }
.ask { display: flex; align-items: center; gap: 10px; background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill); padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-1), 0 0 0 1px rgba(243,169,60,0.10), 0 8px 40px rgba(243,169,60,0.09);
  width: 360px; transition: box-shadow var(--dur-2) var(--ease-out), border-color var(--dur-2) var(--ease-out); }
.ask:focus-within { border-color: rgba(243,169,60,0.30);
  box-shadow: var(--shadow-1), 0 0 0 1px rgba(243,169,60,0.18), 0 10px 48px rgba(243,169,60,0.15); }
.ask input { flex: 1; border: none; outline: none; background: none; font: var(--t-body);
  font-size: 14.5px; color: var(--ink); }
.ask input::placeholder { color: var(--ink-4); }
.ask .go { width: 34px; height: 34px; border-radius: 50%; background: var(--solar); border: none;
  color: #fff; display: flex; align-items: center; justify-content: center; flex: none;
  transition: background var(--dur-1) var(--ease-out); box-shadow: 0 2px 12px rgba(243,169,60,0.35); }
.ask .go:hover { background: var(--solar-deep); }
.ask .go i { width: 16px; height: 16px; stroke-width: 2; }
.ask .attach { width: 36px; height: 36px; border-radius: 50%; background: none; border: none;
  color: var(--ink-3); display: flex; align-items: center; justify-content: center; flex: none;
  transition: all var(--dur-1) var(--ease-out); }
.ask .attach:hover { background: var(--surface-sunk); color: var(--cosmos); }
.ask .attach i { width: 19px; height: 19px; stroke-width: 1.5; }

.content { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

/* brief (deep, cinematic focal point) */
.brief { background: var(--deep); border-radius: var(--r-xl); padding: 30px 32px; color: var(--on-deep);
  position: relative; overflow: hidden; }
.brief::after { content: ''; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px;
  border-radius: 50%; background: radial-gradient(circle, rgba(110,140,255,0.22), transparent 65%); }
.brief .eb { font: var(--t-mono-label); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--cosmos-bright); font-size: 11px; position: relative; }
.brief h2 { font: var(--t-h3); color: var(--on-deep); margin-top: 14px; max-width: 26ch; position: relative;
  letter-spacing: var(--track-tight); }
.brief p { font: var(--t-body); color: var(--on-deep-2); margin-top: 12px; max-width: 46ch; position: relative; }
.brief-actions { display: flex; gap: 10px; margin-top: 22px; position: relative; }
.b-btn { border-radius: var(--r-pill); padding: 9px 16px; font: var(--t-body); font-size: 14px;
  font-weight: 500; border: none; transition: all var(--dur-2) var(--ease-out); }
.b-btn.p { background: var(--cosmos); color: #fff; }
.b-btn.p:hover { background: var(--cosmos-bright); }
.b-btn.g { background: rgba(237,240,248,0.1); color: var(--on-deep); }
.b-btn.g:hover { background: rgba(237,240,248,0.18); }

.section-row { display: flex; align-items: baseline; justify-content: space-between; margin: 34px 0 14px; }
.section-row h3 { font: var(--t-title); letter-spacing: var(--track-tight); }
.section-row .link { font: var(--t-small); color: var(--cosmos); font-weight: 500; background: none; border: none; }

/* agent rows */
.agent-list { display: flex; flex-direction: column; gap: 10px; }
.agent { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 14px 16px; transition: all var(--dur-2) var(--ease-out); cursor: pointer; }
.agent:hover { box-shadow: var(--shadow-1); border-color: transparent; }
.agent .av { width: 42px; height: 42px; border-radius: 12px; display: flex; align-items: center;
  justify-content: center; flex: none; }
.agent .av i { width: 20px; height: 20px; stroke-width: 1.5; }
.agent .info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.agent .nm { font: var(--t-body); font-weight: 500; font-size: 15px; }
.agent .st { font: var(--t-mono-meta); font-size: 12px; color: var(--ink-3); }
.badge { font: var(--t-mono-label); letter-spacing: var(--track-label); text-transform: uppercase;
  font-size: 10px; padding: 5px 10px; border-radius: var(--r-pill); display: inline-flex; align-items: center; gap: 6px; }
.dot { width: 6px; height: 6px; border-radius: 50%; }
.b-live { background: var(--solar-tint); color: var(--solar-deep); }
.b-on { background: var(--success-tint); color: var(--success); }
.b-pause { background: var(--surface-sunk); color: var(--ink-2); }
.add-agent { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 14px;
  border: 1px dashed var(--rule-strong); border-radius: var(--r-md); background: none; color: var(--ink-2);
  font: var(--t-body); font-size: 14.5px; font-weight: 500; width: 100%; transition: all var(--dur-2) var(--ease-out); }
.add-agent:hover { border-color: var(--cosmos); color: var(--cosmos-deep); background: var(--cosmos-tint); }
.add-agent i { width: 18px; height: 18px; stroke-width: 1.5; }
/* wide 2-col layout when agents span full width */
.agent-list.wide { display: grid; grid-template-columns: repeat(2, 1fr); }
.agent-list.wide .add-agent { grid-column: 1 / -1; }

/* right rail */
.rail { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 20px; }
.card h4 { font: var(--t-mono-label); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-3); font-size: 11px; margin-bottom: 16px; }
.metric { display: flex; flex-direction: column; gap: 2px; padding: 12px 0; border-top: 1px solid var(--rule); }
.metric:first-of-type { border-top: none; padding-top: 0; }
.metric .big { font: var(--t-mono-data); font-size: 26px; font-weight: 600; letter-spacing: -0.01em;
  font-feature-settings: 'tnum' 1; }
.metric .cap { font: var(--t-small); color: var(--ink-3); }
.todo { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); }
.todo:first-of-type { border-top: none; padding-top: 0; }
.todo .tk { width: 18px; height: 18px; border-radius: 6px; border: 1.5px solid var(--n-300); flex: none; margin-top: 1px; }
.todo .tx { font: var(--t-small); color: var(--ink); line-height: 1.4; }
.todo .mt { font: var(--t-mono-meta); font-size: 11px; color: var(--ink-3); margin-top: 3px; }
.todo.warn .tk { border-color: var(--solar); background: var(--solar-tint); }

/* ---- agent builder sheet ---- */
.scrim { position: fixed; inset: 0; background: rgba(10,14,28,0.42); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center; z-index: 100; animation: fade var(--dur-2) var(--ease-out); }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--paper); border-radius: var(--r-xl); width: 560px; max-height: 86vh; overflow-y: auto;
  box-shadow: var(--shadow-3); animation: rise var(--dur-3) var(--ease-out); }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 14px; padding: 26px 28px 20px; border-bottom: 1px solid var(--rule); }
.sheet-head .av { width: 44px; height: 44px; border-radius: 12px; background: var(--cosmos-tint);
  display: flex; align-items: center; justify-content: center; }
.sheet-head .av i { width: 22px; height: 22px; color: var(--cosmos); stroke-width: 1.5; }
.sheet-head h2 { font: var(--t-h3); letter-spacing: var(--track-tight); }
.sheet-head .sub { font: var(--t-mono-meta); font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.sheet-head .x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; border: none;
  background: var(--surface-sunk); color: var(--ink-2); display: flex; align-items: center; justify-content: center; }
.sheet-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 22px; }
.field label { font: var(--t-mono-label); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-3); font-size: 11px; display: block; margin-bottom: 8px; }
.field input, .field textarea { width: 100%; font: var(--t-body); font-size: 15px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-md);
  padding: 12px 14px; outline: none; resize: none; transition: all var(--dur-2) var(--ease-out); }
.field input:focus, .field textarea:focus { border-color: var(--cosmos); box-shadow: var(--focus-ring); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: var(--t-small); font-size: 13px; padding: 8px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong); background: var(--surface); color: var(--ink-2);
  transition: all var(--dur-1) var(--ease-out); }
.chip.on { background: var(--cosmos-tint); border-color: transparent; color: var(--cosmos-deep); font-weight: 500; }
.rule-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); }
.rule-row:first-of-type { border-top: none; }
.rule-row .rx { flex: 1; }
.rule-row .rt { font: var(--t-body); font-size: 14.5px; color: var(--ink); }
.rule-row .rd { font: var(--t-small); color: var(--ink-3); margin-top: 2px; }
.tg { width: 44px; height: 26px; border-radius: 999px; background: var(--cosmos); position: relative;
  flex: none; border: none; transition: background var(--dur-2) var(--ease-out); }
.tg.off { background: var(--n-300); }
.tg::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-1); transition: left var(--dur-2) var(--ease-out); }
.tg.on::after { left: 21px; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 20px 28px 26px; }
.btn { border-radius: var(--r-pill); padding: 11px 20px; font: var(--t-body); font-size: 14.5px;
  font-weight: 500; border: none; transition: all var(--dur-2) var(--ease-out); }
.btn.ghost { background: none; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-sunk); }
.btn.primary { background: var(--cosmos); color: #fff; box-shadow: var(--shadow-cosmos); }
.btn.primary:hover { background: var(--cosmos-deep); }

/* ---- needs section (borderless rail) ---- */
.needs-section { padding-top: 6px; }
.rail-head {
  font: var(--t-mono-label); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--ink-3); font-size: 11px; margin-bottom: 14px;
}

/* ---- habits ---- */
.habits-header .habits-meta {
  font: var(--t-mono-meta); font-size: 11px; color: var(--ink-4); letter-spacing: 0.04em;
}
.habits-list { display: flex; flex-direction: column; }
.habit-row {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--rule);
  transition: opacity var(--dur-2) var(--ease-out);
}
.habit-row:last-child { border-bottom: none; }
.habit-row.done { opacity: 0.48; }
.habit-check {
  width: 20px; height: 20px; border-radius: 50%;
  border: 1.5px solid var(--n-300);
  background: none; cursor: pointer; flex: none;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-2) var(--ease-out);
}
.habit-check:hover { border-color: var(--cosmos); background: var(--cosmos-tint); }
.habit-check.done { background: var(--cosmos); border-color: var(--cosmos); }
.habit-check i { width: 11px; height: 11px; stroke-width: 3; color: #fff; }
.habit-label {
  flex: 1; font: var(--t-body); font-size: 14.5px; color: var(--ink);
  transition: color var(--dur-2) var(--ease-out);
}
.habit-row.done .habit-label { color: var(--ink-4); }
.streak-dots { display: flex; gap: 4px; align-items: center; }
.sd { width: 5px; height: 5px; border-radius: 50%; background: var(--n-200); flex: none;
  transition: background var(--dur-2) var(--ease-out); }
.sd.lit { background: var(--cosmos); }
html.orbe-dark .sd     { background: var(--n-300); }
html.orbe-dark .sd.lit { background: var(--cosmos-bright); }
.habit-streak-count {
  font: var(--t-mono-meta); font-size: 11px; color: var(--ink-4);
  min-width: 24px; text-align: right; letter-spacing: 0.04em;
}

/* =========================================================================
   BRAIN GRAPH — always "spacy": deep cosmic canvas, minimal nodes, mouse drift
   ========================================================================= */
.brain { position: relative; margin-top: 34px; border-radius: var(--r-xl); overflow: hidden;
  background:
    radial-gradient(1200px 380px at 70% -40%, rgba(110,140,255,0.16), transparent 60%),
    radial-gradient(700px 300px at 15% 120%, rgba(243,169,60,0.07), transparent 60%),
    #080C18;
  height: 320px; box-shadow: var(--shadow-2); cursor: crosshair; }
/* faint static starfield behind the graph */
.brain::before { content: ''; position: absolute; inset: 0; opacity: 0.6; pointer-events: none;
  background-image:
    radial-gradient(1px 1px at 12% 24%, #EDF0F8 50%, transparent),
    radial-gradient(1px 1px at 28% 72%, #C9D2EC 50%, transparent),
    radial-gradient(1px 1px at 47% 38%, #EDF0F8 50%, transparent),
    radial-gradient(1px 1px at 63% 80%, #B7C2E4 50%, transparent),
    radial-gradient(1px 1px at 78% 30%, #EDF0F8 50%, transparent),
    radial-gradient(1px 1px at 88% 64%, #C9D2EC 50%, transparent),
    radial-gradient(1px 1px at 36% 12%, #EDF0F8 50%, transparent),
    radial-gradient(1px 1px at 56% 58%, #A9B5DC 50%, transparent);
  background-repeat: no-repeat; }
.brain-cap { position: absolute; top: 18px; left: 22px; right: 22px; z-index: 3; display: flex;
  align-items: baseline; justify-content: space-between; pointer-events: none; }
.brain-cap .eb { font: var(--t-mono-label); letter-spacing: var(--track-label); text-transform: uppercase;
  color: var(--cosmos-bright); font-size: 11px; }
.brain-cap .hint { font: var(--t-mono-meta); font-size: 11px; color: rgba(174,182,204,0.7); }
.brain-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.brain-svg .edges line { stroke: rgba(110,140,255,0.28); stroke-width: 1; }
.brain-svg .node .halo { fill: rgba(243,169,60,0.12); }
.brain-svg .node.is-core circle:not(.halo) { filter: drop-shadow(0 0 14px rgba(243,169,60,0.65)); }
.brain-svg .lab { font-family: var(--font-mono); font-size: 11px; fill: rgba(237,240,248,0.62);
  letter-spacing: 0.04em; }
.brain-svg .lab.core { font-size: 13px; font-weight: 600; fill: #fff; letter-spacing: 0.22em; }
.brain-svg .node.is-app .lab { fill: rgba(174,182,204,0.55); font-size: 10px; }

/* =========================================================================
   DARK · deep-space theme (toggled via Tweaks). Remaps tokens for descendants.
   ========================================================================= */
html.orbe-dark {
  --paper:        #070B16;
  --paper-2:      #0B1120;
  --surface:      #0F1424;
  --surface-2:    #131A2E;
  --surface-sunk: #1A2236;
  --ink:          #EDF0F8;
  --ink-2:        #AEB6CC;
  --ink-3:        #7B8398;
  --ink-4:        #565E76;
  --rule:         rgba(237, 240, 248, 0.10);
  --rule-strong:  rgba(237, 240, 248, 0.20);
  --cosmos-tint:  rgba(110, 140, 255, 0.16);
  --cosmos-tint-2:rgba(110, 140, 255, 0.26);
  --cosmos-deep:  var(--cosmos-bright);
  --solar-tint:   rgba(243, 169, 60, 0.16);
  --solar-deep:   #F3A93C;
  --success-tint: rgba(31, 157, 107, 0.18);
  --n-200:        #2A3350;
  --n-300:        #3A4564;
  --shadow-1:     0 1px 2px rgba(0,0,0,0.40), 0 2px 8px rgba(0,0,0,0.40);
  --shadow-2:     0 2px 6px rgba(0,0,0,0.45), 0 10px 26px rgba(0,0,0,0.50);
  --shadow-3:     0 4px 14px rgba(0,0,0,0.50), 0 24px 60px rgba(0,0,0,0.60);
  --shadow-cosmos:0 8px 30px rgba(46, 91, 255, 0.45);
}
/* brief reads as a raised card against the deep paper */
html.orbe-dark .brief { background: var(--surface-2); border: 1px solid var(--rule); }
html.orbe-dark .brief::after { background: radial-gradient(circle, rgba(110,140,255,0.28), transparent 65%); }
/* toggle off-state needs a touch more presence on dark */
html.orbe-dark .tg.off, html.orbe-dark .m-tg.off { background: var(--n-300); }


/* =========================================================================
   PRIORITY BAR — expandable chips above the brief
   ========================================================================= */
.pcr { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 26px; }

.pchip {
  flex: 1; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--r-md); cursor: pointer; user-select: none; position: relative;
  transition: border-color var(--dur-2) var(--ease-out), box-shadow var(--dur-2) var(--ease-out);
}
.pchip:hover      { border-color: var(--cosmos); }
.pchip.warn       { border-color: rgba(243,169,60,0.28); }
.pchip.warn:hover { border-color: var(--solar); }
.pchip.open       { border-color: var(--cosmos); box-shadow: var(--shadow-1); }
.pchip.warn.open  { border-color: var(--solar); }

.pchip-head { display: flex; align-items: center; gap: 9px; padding: 11px 14px; }
.pchip-ic   { display: flex; color: var(--cosmos); flex: none; }
.pchip-ic i { width: 15px; height: 15px; stroke-width: 1.5; }
.pchip.warn .pchip-ic { color: var(--solar-deep); }
.pchip-label { flex: 1; font: var(--t-body); font-size: 13px; font-weight: 500; color: var(--ink); }
.pchip-arr  { width: 14px; height: 14px; stroke-width: 1.5; color: var(--ink-4); flex: none;
  transition: transform var(--dur-2) var(--ease-out); }
.pchip.open .pchip-arr { transform: rotate(180deg); }

/* drawer floats below the chip header */
.pdrawer {
  border-top: 1px solid var(--rule);
  border-radius: 0 0 var(--r-md) var(--r-md);
  overflow: hidden;
  animation: drawer-float 260ms cubic-bezier(.22,1,.36,1);
  transform-origin: top center;
}
@keyframes drawer-float {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to   { opacity: 1; transform: translateY(0)   scale(1);    }
}

/* checklist item — single line */
.pitem {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 14px; border-bottom: 1px solid var(--rule);
  transition: background var(--dur-1) var(--ease-out);
  cursor: default;
}
.pitem:hover { background: var(--surface-sunk); }
.pitem:last-child { border-bottom: none; }

/* circle checkbox */
.pitem-check {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1px solid var(--n-300); background: transparent;
  flex: none; display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-2) var(--ease-out);
}
.pitem-check.warn  { border-color: rgba(243,169,60,0.55); }
button.pitem-check { cursor: pointer; }
button.pitem-check:hover { border-color: var(--cosmos); background: var(--cosmos-tint); }
.pitem-check.done  { background: var(--cosmos); border-color: var(--cosmos); }
.pitem-check i     { width: 8px; height: 8px; stroke-width: 3; color: #fff; }

/* single-line label */
.pitem-text {
  flex: 1; font-family: var(--font-sans); font-size: 12.5px; font-weight: 400;
  letter-spacing: 0.01em; color: var(--ink-2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pitem.warn .pitem-text { color: var(--ink); }

/* timestamp / count */
.pitem-time { font: var(--t-mono-meta); font-size: 10px; color: var(--ink-4); flex: none; }

/* habit items inside drawer */
.habit-item { transition: opacity var(--dur-2) var(--ease-out); }
.habit-item.done { opacity: 0.46; }
.habit-ic  { width: 13px; height: 13px; stroke-width: 1.5; color: var(--cosmos); flex: none; }
.habit-item.done .habit-ic { color: var(--ink-4); }

/* dark theme overrides */
html.orbe-dark .pchip       { background: var(--surface); border-color: var(--rule-strong); }
html.orbe-dark .pchip.open  { box-shadow: var(--shadow-2); }
html.orbe-dark .pchip.warn  { border-color: rgba(243,169,60,0.20); }
html.orbe-dark .ask {
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(243,169,60,0.12), 0 10px 50px rgba(243,169,60,0.10);
}
html.orbe-dark .ask:focus-within {
  box-shadow: var(--shadow-2), 0 0 0 1px rgba(243,169,60,0.22), 0 10px 56px rgba(243,169,60,0.18);
}


/* =========================================================================
   AGENT DETAIL PANEL
   ========================================================================= */

/* clickable agent rows */
.agent.clickable { cursor: pointer; }
.agent.clickable:hover { background: var(--surface-hover, var(--surface-sunk)); border-color: var(--cosmos); }
.agent-arr { width: 14px; height: 14px; stroke-width: 1.5; color: var(--ink-4); flex: none;
  opacity: 0; transition: opacity var(--dur-1) var(--ease-out); }
.agent.clickable:hover .agent-arr { opacity: 1; }

/* backdrop */
.ad-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(7,10,20,0.38);
  backdrop-filter: blur(2px);
  animation: ad-bg-in 220ms ease;
}
@keyframes ad-bg-in { from { opacity: 0; } }

/* panel */
.ad-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 41;
  width: 420px;
  background: var(--surface);
  border-left: 1px solid var(--rule-strong);
  display: flex; flex-direction: column;
  box-shadow: -8px 0 48px rgba(0,0,0,0.16);
  animation: ad-slide-in 320ms cubic-bezier(.22,1,.36,1);
}
@keyframes ad-slide-in {
  from { transform: translateX(32px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* header */
.ad-header {
  display: flex; align-items: center; gap: 14px;
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--rule);
}
.ad-av {
  width: 40px; height: 40px; border-radius: 12px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.ad-av i { width: 18px; height: 18px; stroke-width: 1.5; }
.ad-title { flex: 1; min-width: 0; }
.ad-name { font-size: 16px; font-weight: 600; letter-spacing: -0.014em; color: var(--ink); }
.ad-sub  { font-size: 12px; color: var(--ink-3); margin-top: 1px; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; }
.ad-close {
  width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--surface-sunk);
  color: var(--ink-3); display: flex; align-items: center; justify-content: center;
  flex: none; cursor: pointer; transition: all var(--dur-1) var(--ease-out);
}
.ad-close:hover { background: var(--cosmos-tint); color: var(--cosmos); border-color: transparent; }
.ad-close i { width: 13px; height: 13px; stroke-width: 2; }

/* stats strip */
.ad-stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--rule);
}
.ad-stat {
  display: flex; flex-direction: column; align-items: center;
  padding: 16px 8px; gap: 3px;
  border-right: 1px solid var(--rule);
}
.ad-stat:last-child { border-right: none; }
.ad-stat-v { font-family: var(--font-mono); font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); }
.ad-stat-l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); text-align: center; }

/* scrollable body */
.ad-body { flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 26px; }
.ad-section {}
.ad-section-label {
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-4); margin-bottom: 14px;
}

/* timeline */
.ad-timeline { display: flex; flex-direction: column; gap: 0; }
.ad-event {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.ad-event:last-child { border-bottom: none; }
.ad-event-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--n-200); flex: none; margin-top: 5px;
  transition: background var(--dur-1) ease;
}
.ad-event.needs-you .ad-event-dot { background: var(--solar); box-shadow: 0 0 6px rgba(243,169,60,0.4); }
.ad-event-content { flex: 1; display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.ad-event-txt {
  flex: 1; font-size: 13px; color: var(--ink-2); line-height: 1.45;
  font-weight: 400;
}
.ad-event.needs-you .ad-event-txt { color: var(--ink); font-weight: 500; }
.ad-event-t {
  font-family: var(--font-mono); font-size: 10px;
  color: var(--ink-4); flex: none; letter-spacing: 0.04em;
}

/* rules */
.ad-rules { display: flex; flex-direction: column; gap: 0; }
.ad-rule {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--rule);
}
.ad-rule:last-child { border-bottom: none; }
.ad-rule-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cosmos); flex: none; margin-top: 5px;
}
.ad-rule-txt { font-size: 13px; color: var(--ink-2); line-height: 1.45; }

/* footer */
.ad-footer {
  display: flex; gap: 10px; padding: 16px 20px;
  border-top: 1px solid var(--rule);
}
.ad-action {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 16px; border-radius: var(--r-pill); font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: none; transition: all var(--dur-1) var(--ease-out);
}
.ad-action i { width: 14px; height: 14px; stroke-width: 2; }
.ad-action.secondary {
  background: var(--surface-sunk); color: var(--ink-2);
}
.ad-action.secondary:hover { background: var(--cosmos-tint); color: var(--cosmos); }
.ad-action.primary {
  background: var(--cosmos); color: #fff;
  box-shadow: 0 2px 12px rgba(46,91,255,0.28);
}
.ad-action.primary:hover { opacity: 0.88; }
.ad-action.warn {
  background: rgba(243,169,60,0.10); color: var(--solar-deep);
  border: 1px solid rgba(243,169,60,0.22);
}
.ad-action.warn:hover { background: rgba(243,169,60,0.18); }


/* =========================================================================
   BRAIN GRAPH — zoom controls + node tooltip
   ========================================================================= */
.brain-zoom {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  display: flex; flex-direction: column; gap: 4px;
}
.bz-btn {
  width: 28px; height: 28px; border-radius: 8px;
  border: 1px solid var(--rule-strong); background: var(--surface);
  color: var(--ink-2); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all var(--dur-1) var(--ease-out);
  line-height: 1;
}
.bz-btn:hover { background: var(--cosmos-tint); color: var(--cosmos); border-color: transparent; }
.bz-btn.reset {
  font-size: 11px;
  display: flex; align-items: center; justify-content: center;
}

.brain-tooltip {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 12px; padding: 12px 16px; z-index: 3;
  box-shadow: var(--shadow-2);
  animation: tooltip-in 200ms cubic-bezier(.22,1,.36,1);
  cursor: pointer; min-width: 220px; max-width: 320px; text-align: center;
}
@keyframes tooltip-in {
  from { opacity: 0; transform: translateX(-50%) translateY(6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.bt-name { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.bt-desc { font-size: 12.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 8px; }
.bt-close { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--ink-4); }

/* dark variants */
html.orbe-dark .brain-tooltip { background: var(--surface); }
html.orbe-dark .bz-btn { background: var(--surface); }


/* =========================================================================
   PAGE CHROME — shared across all inner pages
   ========================================================================= */
.page-title-row {
  display: flex; align-items: flex-start; justify-content: space-between;
  margin-bottom: 32px; gap: 16px;
}
.page-eyebrow {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px;
}
.page-h1 {
  font-size: 28px; font-weight: 600; letter-spacing: -0.018em; color: var(--ink);
}
.cta-btn {
  display: flex; align-items: center; gap: 7px; padding: 10px 18px;
  background: var(--cosmos); color: #fff; border: none; border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500; cursor: pointer;
  box-shadow: 0 2px 12px rgba(46,91,255,0.28); flex-shrink: 0;
  transition: opacity var(--dur-1) ease;
}
.cta-btn:hover { opacity: 0.88; }
.cta-btn.saved { background: var(--success, #1F9D6B); box-shadow: none; }
.cta-btn i { width: 14px; height: 14px; stroke-width: 2; }
.ghost-btn {
  padding: 8px 14px; background: var(--surface-sunk); color: var(--ink-2);
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill);
  font-family: var(--font-sans); font-size: 13px; cursor: pointer;
  transition: all var(--dur-1) ease;
}
.ghost-btn:hover { background: var(--cosmos-tint); color: var(--cosmos); border-color: transparent; }
.ghost-btn.danger { color: #E05A4A; }
.ghost-btn.danger:hover { background: rgba(224,90,74,0.10); color: #E05A4A; }
.empty-state {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  padding: 60px 0; color: var(--ink-4);
}
.empty-state i { width: 36px; height: 36px; stroke-width: 1.2; }
.empty-state p { font-size: 15px; }

/* notification badge — always visible, morphs in collapsed state */
.nav-item-notif { position: relative; }
.notif-badge {
  min-width: 18px; height: 18px; border-radius: 999px;
  background: var(--solar, #F3A93C); color: #0E1322;
  font-family: var(--font-mono); font-size: 10px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px; flex-shrink: 0; letter-spacing: 0; margin-left: auto;
  transition: all 400ms cubic-bezier(.22,1,.36,1);
}
.side.closed:not(:hover) .notif-badge {
  min-width: 8px; width: 8px; height: 8px; padding: 0; font-size: 0;
  position: absolute; top: 5px; right: 5px; margin-left: 0;
}

/* =========================================================================
   AGENTS PAGE
   ========================================================================= */
.agents-full-list { display: flex; flex-direction: column; gap: 8px; }
.agent-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-md);
  cursor: pointer; transition: all var(--dur-1) var(--ease-out);
}
.agent-card:hover { border-color: var(--cosmos); background: var(--surface-sunk); }
.av.large { width: 44px; height: 44px; border-radius: 13px; flex: none;
  display: flex; align-items: center; justify-content: center; }
.av.large i { width: 20px; height: 20px; stroke-width: 1.5; }
.agent-card-body { flex: 1; min-width: 0; }
.agent-card-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.agent-card-desc { font-size: 13px; color: var(--ink-3); margin-bottom: 3px; line-height: 1.4; }
.agent-card-st { font-size: 12px; color: var(--ink-4); }
.agent-arr.always { opacity: 0.4; }
.agent-card:hover .agent-arr.always { opacity: 1; color: var(--cosmos); }
.add-agent-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px; background: none;
  border: 1.5px dashed var(--rule-strong); border-radius: var(--r-md);
  cursor: pointer; transition: all var(--dur-1) var(--ease-out); width: 100%;
}
.add-agent-card:hover { border-color: var(--cosmos); background: var(--cosmos-tint); }
.add-agent-ic {
  width: 44px; height: 44px; border-radius: 13px; flex: none;
  background: var(--surface-sunk); display: flex; align-items: center; justify-content: center;
}
.add-agent-ic i { width: 20px; height: 20px; stroke-width: 1.5; color: var(--ink-3); }
.add-agent-card:hover .add-agent-ic { background: var(--cosmos-tint); }
.add-agent-card:hover .add-agent-ic i { color: var(--cosmos); }
.add-agent-label { font-size: 14.5px; font-weight: 500; color: var(--ink-2); text-align: left; }
.add-agent-sub { font-size: 12px; color: var(--ink-4); margin-top: 2px; text-align: left; }

/* =========================================================================
   CONNECTED APPS PAGE
   ========================================================================= */
.apps-section-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px;
}
.apps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.app-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 16px; transition: all var(--dur-1) ease;
}
.app-card.connected { border-color: var(--rule-strong); }
.app-card-top { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.app-ic {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--cosmos-tint); display: flex; align-items: center; justify-content: center; flex: none;
}
.app-ic i { width: 16px; height: 16px; stroke-width: 1.5; color: var(--cosmos); }
.app-ic.muted { background: var(--surface-sunk); }
.app-ic.muted i { color: var(--ink-4); }
.app-info { flex: 1; min-width: 0; }
.app-name { font-size: 14px; font-weight: 500; color: var(--ink); }
.app-cat  { font-size: 11.5px; color: var(--ink-4); margin-top: 1px; }
.app-toggle {
  width: 34px; height: 20px; border-radius: 999px; border: none; cursor: pointer;
  position: relative; flex: none; transition: background 200ms ease;
}
.app-toggle.on  { background: var(--cosmos); }
.app-toggle.off { background: var(--n-200); }
.app-toggle-dot {
  position: absolute; width: 14px; height: 14px; border-radius: 50%; background: #fff;
  top: 3px; transition: left 200ms ease;
}
.app-toggle.on  .app-toggle-dot { left: 17px; }
.app-toggle.off .app-toggle-dot { left: 3px; }
.app-card-meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.app-agent-tag {
  display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  color: var(--cosmos); background: var(--cosmos-tint); padding: 3px 8px; border-radius: 999px;
}
.app-agent-tag i { width: 10px; height: 10px; stroke-width: 1.5; }
.app-sync { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); margin-left: auto; }
.app-perms { display: flex; gap: 5px; flex-wrap: wrap; }
.app-perm {
  font-family: var(--font-mono); font-size: 10px; padding: 3px 8px; border-radius: 999px;
  background: var(--surface-sunk); color: var(--ink-3);
}

/* =========================================================================
   ACTIVITY PAGE
   ========================================================================= */
.activity-filters { display: flex; gap: 6px; margin-bottom: 24px; flex-wrap: wrap; }
.act-filter {
  padding: 7px 14px; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: none; color: var(--ink-3); font-family: var(--font-sans); font-size: 13px;
  cursor: pointer; transition: all var(--dur-1) ease;
}
.act-filter:hover { border-color: var(--cosmos); color: var(--cosmos); }
.act-filter.active { background: var(--cosmos); color: #fff; border-color: var(--cosmos); }
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.act-group { margin-bottom: 28px; }
.act-time-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px; padding-left: 4px;
}
.act-event {
  display: flex; align-items: center; gap: 12px; padding: 10px 4px;
  border-bottom: 1px solid var(--rule); transition: background var(--dur-1) ease;
}
.act-event:last-child { border-bottom: none; }
.act-event:hover { background: var(--surface-sunk); border-radius: var(--r-sm); }
.act-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--n-200); flex: none;
}
.act-event.needs-you .act-dot { background: var(--solar); box-shadow: 0 0 5px rgba(243,169,60,0.4); }
.act-av {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.act-av i { width: 13px; height: 13px; stroke-width: 1.5; }
.act-body { flex: 1; display: flex; align-items: baseline; gap: 8px; min-width: 0; }
.act-agent {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-4); flex: none;
}
.act-txt { font-size: 13.5px; color: var(--ink-2); flex: 1; }
.act-event.needs-you .act-txt { color: var(--ink); font-weight: 500; }
.act-needs {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.10em;
  padding: 3px 9px; border-radius: 999px; flex: none;
  background: rgba(243,169,60,0.12); color: var(--solar-deep, #C47F10);
}

/* =========================================================================
   NOTIFICATIONS PAGE
   ========================================================================= */
.notif-section-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px;
}
.notif-approval-card {
  background: var(--surface); border: 1px solid rgba(243,169,60,0.28);
  border-radius: var(--r-md); padding: 20px; margin-bottom: 4px;
}
.nac-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.nac-av {
  width: 36px; height: 36px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.nac-av.solar { background: rgba(243,169,60,0.14); }
.nac-av i { width: 16px; height: 16px; stroke-width: 1.5; color: var(--solar, #F3A93C); }
.nac-body { flex: 1; }
.nac-agent { font-size: 12px; color: var(--ink-3); margin-bottom: 3px; }
.nac-txt { font-size: 15px; font-weight: 500; color: var(--ink); line-height: 1.4; }
.nac-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--solar);
  flex: none; margin-top: 6px;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse { 0%,100%{opacity:1} 50%{opacity:0.35} }
.nac-context {
  display: flex; gap: 8px; font-size: 12.5px; color: var(--ink-3);
  margin-bottom: 14px; flex-wrap: wrap;
}
.nac-hl { color: var(--solar-deep, #C47F10); font-weight: 500; }
.nac-actions { display: flex; gap: 8px; }
.nac-btn {
  display: flex; align-items: center; gap: 6px; padding: 9px 16px;
  border-radius: var(--r-pill); border: none; font-family: var(--font-sans);
  font-size: 13.5px; font-weight: 500; cursor: pointer; transition: all var(--dur-1) ease;
}
.nac-btn i { width: 13px; height: 13px; stroke-width: 2; }
.nac-btn.approve { background: var(--solar, #F3A93C); color: #0E1322; box-shadow: 0 2px 12px rgba(243,169,60,0.3); }
.nac-btn.approve:hover { opacity: 0.88; }
.nac-btn.decline { background: var(--surface-sunk); color: var(--ink-2); }
.nac-btn.decline:hover { background: rgba(224,90,74,0.10); color: #E05A4A; }
.nac-btn.ghost { background: none; color: var(--ink-3); border: 1px solid var(--rule-strong); }
.nac-btn.ghost:hover { border-color: var(--cosmos); color: var(--cosmos); }
.notif-resolved {
  display: flex; align-items: center; gap: 10px; padding: 14px 18px;
  background: var(--surface-sunk); border-radius: var(--r-md); margin-bottom: 4px;
  font-size: 14px; color: var(--ink-2);
}
.notif-resolved i { width: 18px; height: 18px; stroke-width: 1.5; color: var(--success, #1F9D6B); }
.notif-resolved .link { margin-left: auto; font-size: 12px; }
.notifs-list { display: flex; flex-direction: column; gap: 0; }
.notif-row {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px;
  border-bottom: 1px solid var(--rule);
}
.notif-row:last-child { border-bottom: none; }
.notif-av {
  width: 32px; height: 32px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.notif-av i { width: 14px; height: 14px; stroke-width: 1.5; }
.notif-body { flex: 1; min-width: 0; }
.notif-agent { font-size: 11.5px; color: var(--ink-4); margin-bottom: 2px; }
.notif-txt { font-size: 13.5px; color: var(--ink-2); }
.notif-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.notif-time { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); }
.notif-dismiss {
  width: 20px; height: 20px; border-radius: 50%; border: none; background: none;
  color: var(--ink-4); cursor: pointer; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity var(--dur-1) ease;
}
.notif-row:hover .notif-dismiss { opacity: 1; }
.notif-dismiss:hover { background: var(--surface-sunk); color: var(--ink); }
.notif-dismiss i { width: 11px; height: 11px; stroke-width: 2; }

/* =========================================================================
   SETTINGS PAGE
   ========================================================================= */
.settings-section { margin-bottom: 32px; }
.settings-section-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 10px;
}
.settings-group {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); overflow: hidden;
}
.settings-row {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--rule);
}
.settings-row:last-child { border-bottom: none; }
.settings-lbl { font-size: 14px; color: var(--ink-2); flex: none; }
.settings-input {
  background: var(--surface-sunk); border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm); padding: 7px 12px; font-family: var(--font-sans);
  font-size: 14px; color: var(--ink); max-width: 260px; width: 100%;
  transition: border-color var(--dur-1) ease;
}
.settings-input:focus { outline: none; border-color: var(--cosmos); }
.settings-select {
  background: var(--surface-sunk); border: 1px solid var(--rule-strong);
  border-radius: var(--r-sm); padding: 7px 12px; font-family: var(--font-sans);
  font-size: 14px; color: var(--ink); cursor: pointer;
}
.settings-toggle {
  width: 40px; height: 24px; border-radius: 999px; border: none; cursor: pointer;
  position: relative; transition: background 200ms ease; flex: none;
}
.settings-toggle.on  { background: var(--cosmos); }
.settings-toggle:not(.on) { background: var(--n-200); }
.toggle-knob {
  position: absolute; width: 18px; height: 18px; border-radius: 50%; background: #fff;
  top: 3px; transition: left 200ms ease;
}
.settings-toggle.on     .toggle-knob { left: 19px; }
.settings-toggle:not(.on) .toggle-knob { left: 3px; }
.settings-auto-item {
  display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px;
  border-bottom: 1px solid var(--rule); cursor: pointer;
  transition: background var(--dur-1) ease;
}
.settings-auto-item:last-child { border-bottom: none; }
.settings-auto-item:hover { background: var(--surface-sunk); }
.settings-auto-item.sel { background: var(--cosmos-tint); }
.auto-radio-sm {
  width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--n-300); flex: none; margin-top: 2px;
  display: flex; align-items: center; justify-content: center; transition: all 150ms ease;
}
.settings-auto-item.sel .auto-radio-sm { background: var(--cosmos); border-color: var(--cosmos); }
.radio-dot-sm { width: 5px; height: 5px; border-radius: 50%; background: #fff; }
.settings-auto-label { font-size: 14px; font-weight: 500; color: var(--ink); margin-bottom: 2px; }
.settings-auto-desc  { font-size: 12.5px; color: var(--ink-3); }
.settings-plan-card { padding: 18px; }
.plan-name  { font-size: 16px; font-weight: 600; color: var(--ink); }
.plan-meta  { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.plan-price { font-family: var(--font-mono); font-size: 22px; font-weight: 600; color: var(--ink); margin-top: 10px; }


/* =========================================================================
   PERSISTENT ASK BAR + MAIN SHELL
   ========================================================================= */
.main-shell {
  flex: 1; display: flex; flex-direction: column;
  overflow: hidden; position: relative;
}
.main-shell > .main,
.main-shell > main {
  flex: 1; overflow-y: auto; padding-bottom: 88px;
}
.persistent-ask {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 12px 32px 16px;
  z-index: 20;
  background: linear-gradient(to top, var(--bg) 60%, transparent);
}
.pa-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 700px 160px at 50% 100%,
    rgba(243,169,60,0.10) 0%,
    rgba(243,169,60,0.03) 50%,
    transparent 75%);
  filter: blur(20px);
}
.persistent-ask .ask {
  position: relative; z-index: 1; max-width: 640px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--rule-strong); border-radius: var(--r-pill);
  padding: 8px 8px 8px 18px;
  box-shadow: var(--shadow-2),
    0 0 0 1px rgba(243,169,60,0.10),
    0 8px 40px rgba(243,169,60,0.09);
  transition: border-color var(--dur-2) var(--ease-out),
              box-shadow var(--dur-2) var(--ease-out);
}
.persistent-ask .ask:focus-within {
  border-color: rgba(243,169,60,0.30);
  box-shadow: var(--shadow-2),
    0 0 0 1px rgba(243,169,60,0.18),
    0 10px 48px rgba(243,169,60,0.16);
}
.persistent-ask .ask input { flex:1; background:none; border:none; outline:none;
  font-family:var(--font-sans); font-size:14.5px; color:var(--ink); }
.persistent-ask .ask input::placeholder { color:var(--ink-4); }


/* =========================================================================
   GLOBAL SOLAR CURSOR GLOW
   ========================================================================= */
#solar-cursor {
  position: fixed;
  width: 900px; height: 700px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center,
    rgba(243,169,60,0.11) 0%,
    rgba(243,169,60,0.04) 30%,
    rgba(243,169,60,0.01) 55%,
    transparent 70%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 0;
  will-change: left, top;
  filter: blur(48px);
}


/* =========================================================================
   TOKEN CHART — activity page
   ========================================================================= */
.token-chart-wrap {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 20px 22px 14px; margin-bottom: 8px;
}

/* header */
.tc-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.tc-summary { display: flex; align-items: center; gap: 0; }
.tc-stat { display: flex; flex-direction: column; gap: 3px; padding: 0 18px 0 0; }
.tc-stat-v { font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1; }
.tc-stat-l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); }
.tc-divider { width: 1px; height: 28px; background: var(--rule); margin: 0 18px 0 0; flex: none; }

/* controls */
.tc-controls { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tc-toggle-group, .tc-view-group, .tc-range { display: flex; gap: 3px; }
.tc-tog {
  padding: 5px 11px; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-3); cursor: pointer; transition: all var(--dur-1) ease; white-space: nowrap;
}
.tc-tog:hover { border-color: var(--cosmos); color: var(--cosmos); }
.tc-tog.active { background: var(--cosmos); border-color: var(--cosmos); color: #fff; }
.tc-view-btn {
  width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--rule-strong);
  background: none; color: var(--ink-3); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-1) ease;
}
.tc-view-btn i { width: 13px; height: 13px; stroke-width: 1.5; }
.tc-view-btn:hover { border-color: var(--cosmos); color: var(--cosmos); }
.tc-view-btn.active { background: var(--cosmos-tint); border-color: var(--cosmos); color: var(--cosmos); }
.tc-range-btn {
  padding: 5px 10px; border-radius: 999px; border: 1px solid var(--rule-strong);
  background: none; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em;
  color: var(--ink-3); cursor: pointer; transition: all var(--dur-1) ease;
}
.tc-range-btn:hover { border-color: var(--cosmos); color: var(--cosmos); }
.tc-range-btn.active { background: var(--cosmos); border-color: var(--cosmos); color: #fff; }

/* legend */
.tc-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 6px; }
.tc-leg-item { display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); }
.tc-leg-dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.tc-leg-item.cosmos  .tc-leg-dot { background: var(--cosmos); }
.tc-leg-item.solar   .tc-leg-dot { background: var(--solar, #F3A93C); }
.tc-leg-item.success .tc-leg-dot { background: var(--success, #1F9D6B); }

/* SVG */
.tc-svg-wrap { position: relative; }
.tc-svg { width: 100%; height: auto; display: block; overflow: visible; }
.tc-axis-txt { font-family: var(--font-mono); font-size: 9.5px; fill: var(--ink-4); }
.tc-axis-hov { fill: var(--ink); }

/* tooltip */
.tc-tooltip {
  position: absolute; top: 12px;
  transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 10px; padding: 10px 13px;
  box-shadow: var(--shadow-2);
  min-width: 152px; pointer-events: none; z-index: 10;
  animation: tt-in 120ms cubic-bezier(.22,1,.36,1);
}
@keyframes tt-in { from { opacity:0; transform: translateX(-50%) translateY(-4px); } }
.tc-tt-day { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.10em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 8px; }
.tc-tt-row { display: flex; align-items: center; gap: 6px; margin-bottom: 4px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.tc-tt-row:last-child { margin-bottom: 0; }
.tc-tt-row.ratio { border-top: 1px solid var(--rule); padding-top: 4px; margin-top: 2px; }
.tc-tt-dot { width: 7px; height: 7px; border-radius: 2px; flex: none; }
.tc-tt-row.cosmos .tc-tt-dot { background: var(--cosmos); }
.tc-tt-row.solar  .tc-tt-dot { background: var(--solar, #F3A93C); }
.tc-tt-row.ratio  .tc-tt-dot { background: transparent; }
.tc-tt-v { margin-left: auto; font-weight: 600; color: var(--ink); }


/* =========================================================================
   ORBE INTELLIGENCE PAGE
   ========================================================================= */

/* animated mark */
@keyframes orbe-cw  { to { transform: rotate( 360deg); } }
@keyframes orbe-ccw { to { transform: rotate(-360deg); } }
.orbe-rot-cw  { transform-box: view-box; transform-origin: 50% 50%; animation: orbe-cw  var(--dur, 20s) linear infinite; }
.orbe-rot-ccw { transform-box: view-box; transform-origin: 50% 50%; animation: orbe-ccw var(--dur, 12s) linear infinite; }
@keyframes orbe-breathe { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.82;transform:scale(1.10)} }
.orbe-core-pulse { transform-box: fill-box; transform-origin: center; animation: orbe-breathe 5s ease-in-out infinite; }

/* nav pulse dot */
.nav-item-orbe { position: relative; }
.nav-item-orbe i { color: var(--solar,#F3A93C) !important; }
.nav-item-orbe.active { background: rgba(243,169,60,0.10) !important; color: var(--solar-deep,#D2851C) !important; }
.nav-item-orbe::after {
  content:''; position:absolute;
  left: calc(100% - 18px); top: 50%;
  transform: translateY(-50%);
  width:6px; height:6px; border-radius:50%; background:var(--solar,#F3A93C);
  animation: dot-pulse 2s ease-in-out infinite;
  transition: left 320ms cubic-bezier(.22,1,.36,1),
              top  320ms cubic-bezier(.22,1,.36,1),
              transform 320ms cubic-bezier(.22,1,.36,1);
}
.side.closed:not(:hover) .nav-item-orbe::after {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
}

/* header */
.page-orbe { padding-bottom: 96px; }
.orbe-sub { font-size:14px; color:var(--ink-3); margin-top:6px; margin-bottom:0; }
.orbe-signal-row {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
  color: var(--ink-4); display: flex; align-items: center; gap: 7px;
}
.orbe-sig-sep { color: var(--rule-strong); }

/* insight cards */
.orbe-insights { display: flex; flex-direction: column; gap: 6px; }
.orbe-insight-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 14px 18px; cursor: pointer;
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.orbe-insight-card:hover     { border-color: var(--rule-strong); }
.orbe-insight-card.open      { border-color: var(--cosmos); box-shadow: var(--shadow-1); }
.orbe-insight-card.accepted  { opacity: 0.50; cursor: default; }
.orbe-insight-card.thinking  { cursor: default; }

.oic-top { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.oic-type-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.oic-type-lbl { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; flex: none; font-weight: 500; }
.oic-agents { display: flex; gap: 5px; margin-left: 4px; }
.oic-agent-chip { display: flex; align-items: center; gap: 4px; padding: 2px 7px;
  border-radius: 999px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.oic-chevron { width: 13px; height: 13px; stroke-width: 1.5; color: var(--ink-4); margin-left: auto; flex: none; }

.oic-headline { font-size: 14.5px; font-weight: 600; color: var(--ink);
  letter-spacing: -0.010em; line-height: 1.35; }

.oic-expanded { margin-top: 12px; display: flex; flex-direction: column; gap: 12px; }
.oic-detail { font-size: 14px; color: var(--ink-2); line-height: 1.65; margin: 0; }
.oic-evidence { display: flex; align-items: center; gap: 0; padding: 12px 0 0; }
.oic-ev-item { display: flex; flex-direction: column; gap: 2px; padding-right: 20px; }
.oic-ev-sep { width: 1px; height: 28px; background: var(--rule); margin-right: 20px; flex: none; }
.oic-ev-v { font-family: var(--font-mono); font-size: 18px; font-weight: 600;
  letter-spacing: -0.02em; line-height: 1; }
.oic-ev-l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); }
.oic-sug { display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-2); background: var(--surface-sunk);
  padding: 10px 14px; border-radius: var(--r-sm); }
.oic-sug i { width: 13px; height: 13px; stroke-width: 1.5; color: var(--cosmos); flex: none; }
.oic-actions { display: flex; gap: 7px; align-items: center; }
.oic-accepted-msg { display: flex; align-items: center; gap: 7px;
  font-size: 13.5px; color: var(--success,#1F9D6B); }
.oic-accepted-msg i { width: 14px; height: 14px; stroke-width: 2; }

/* thinking skeleton */
.thinking-dots { display: flex; gap: 4px; margin-left: 4px; }
.thinking-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4);
  animation: thinking-dot 1.2s ease-in-out infinite; }
.thinking-dots span:nth-child(2){animation-delay:.15s}
.thinking-dots span:nth-child(3){animation-delay:.30s}
@keyframes thinking-dot{0%,80%,100%{transform:scale(0.7);opacity:0.4}40%{transform:scale(1);opacity:1}}
.thinking-lines { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.tl-line { height: 9px; border-radius: 4px; background: var(--surface-sunk);
  animation: tl-shimmer 1.8s ease-in-out infinite; }
.tl-w70{width:70%}.tl-w50{width:50%}.tl-w85{width:85%}
@keyframes tl-shimmer{0%,100%{opacity:0.5}50%{opacity:1}}

/* cut rows */
.orbe-cuts { display: flex; flex-direction: column; gap: 1px; }
.orbe-cut-row {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 16px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-sm); transition: background var(--dur-1) ease;
}
.orbe-cut-row:hover { background: var(--surface-sunk); }
.occ-icon { width: 28px; height: 28px; border-radius: 8px; flex: none;
  background: rgba(224,90,74,0.08); display: flex; align-items: center; justify-content: center; }
.occ-icon i { width: 13px; height: 13px; stroke-width: 1.5; color: #E05A4A; }
.occ-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.occ-name   { font-size: 14px; font-weight: 500; color: var(--ink); }
.occ-reason { font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.occ-save   { font-family: var(--font-mono); font-size: 11px; color: var(--success,#1F9D6B);
  flex: none; letter-spacing: 0.04em; }

/* new agent cards */
.orbe-new-agents { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.orbe-agent-opp {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 12px;
  transition: border-color var(--dur-1) ease;
}
.orbe-agent-opp:hover { border-color: var(--cosmos); }
.oao-head { display: flex; align-items: center; gap: 11px; }
.oao-av { width: 34px; height: 34px; border-radius: 10px; flex: none;
  background: var(--cosmos-tint); display: flex; align-items: center; justify-content: center; }
.oao-av i { width: 15px; height: 15px; stroke-width: 1.5; color: var(--cosmos); }
.oao-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.oao-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.06em;
  padding: 2px 7px; border-radius: 999px; background: var(--surface-sunk); color: var(--ink-4); }
.oao-pitch { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }
.oao-roi { display: grid; grid-template-columns: repeat(3,1fr) auto;
  gap: 6px 0; padding: 12px 14px; background: var(--surface-sunk); border-radius: var(--r-sm); }
.oao-roi-item { display: flex; flex-direction: column; gap: 3px; padding-right: 14px; }
.oao-roi-v { font-family: var(--font-mono); font-size: 16px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); }
.oao-roi-l { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); }
.oao-local { min-width: 90px; }
.oao-local-track { height: 5px; background: var(--n-200); border-radius: 3px;
  overflow: hidden; margin-bottom: 5px; }
.oao-local-fill { height: 100%; background: var(--cosmos); border-radius: 3px;
  transition: width 800ms cubic-bezier(.22,1,.36,1); }


/* =========================================================================
   TOKEN CHART — customize dropdown
   ========================================================================= */
.tc-customize-wrap { position: relative; flex-shrink: 0; }

.tc-customize-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 13px; border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong); background: var(--surface);
  font-family: var(--font-sans); font-size: 13px; font-weight: 500;
  color: var(--ink-2); cursor: pointer;
  transition: all var(--dur-1) ease;
}
.tc-customize-btn i { width: 13px; height: 13px; stroke-width: 1.5; }
.tc-customize-btn:hover { border-color: var(--cosmos); color: var(--cosmos); }
.tc-customize-btn.active {
  background: var(--cosmos-tint); border-color: var(--cosmos); color: var(--cosmos);
}

.tc-customize-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 14px; padding: 14px; width: 220px;
  box-shadow: var(--shadow-2);
  animation: tc-panel-in 180ms cubic-bezier(.22,1,.36,1);
}
@keyframes tc-panel-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.tcp-section-label {
  font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4);
  margin: 10px 0 6px; padding: 0;
}
.tcp-section-label:first-child { margin-top: 0; }

.tcp-options { display: flex; flex-wrap: wrap; gap: 4px; }
.tcp-opt {
  display: flex; align-items: center; gap: 5px;
  padding: 5px 10px; border-radius: 999px;
  border: 1px solid var(--rule-strong); background: none;
  font-family: var(--font-sans); font-size: 12.5px; color: var(--ink-3);
  cursor: pointer; transition: all var(--dur-1) ease;
}
.tcp-opt i { width: 11px; height: 11px; stroke-width: 1.5; }
.tcp-opt:hover { border-color: var(--cosmos); color: var(--cosmos); }
.tcp-opt.active { background: var(--cosmos); border-color: var(--cosmos); color: #fff; }


/* =========================================================================
   PROJECTS PAGE
   ========================================================================= */
.page-projects { padding-bottom: 96px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4); background: none; border: none;
  cursor: pointer; margin-bottom: 24px; padding: 0;
  transition: color var(--dur-1) ease;
}
.back-link:hover { color: var(--ink-2); }
.back-link i { width: 12px; height: 12px; stroke-width: 1.5; }

/* ── project card grid ── */
.projects-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

.project-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 18px 20px; cursor: pointer;
  display: flex; flex-direction: column; gap: 10px;
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.project-card:hover { border-color: var(--cosmos); box-shadow: var(--shadow-1); }

.pc-top { display: flex; align-items: center; gap: 12px; }
.pc-ring { position: relative; width: 44px; height: 44px; flex: none;
  display: flex; align-items: center; justify-content: center; }
.pc-pct { position: absolute; font-family: var(--font-mono); font-size: 10px;
  font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.pc-title-wrap { flex: 1; min-width: 0; }
.pc-name { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.014em; }
.pc-status { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 400; margin-top: 2px; }
.pc-status-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.pc-goal { font-size: 13.5px; color: var(--ink-3); line-height: 1.5; margin: 0; }

.pc-milestone { display: flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--ink-2); padding: 8px 10px;
  background: var(--surface-sunk); border-radius: var(--r-sm); }
.pc-milestone i { width: 12px; height: 12px; stroke-width: 1.5; color: var(--cosmos); flex: none; }
.pc-ms-date { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4);
  margin-left: auto; flex: none; }

.pc-footer { display: flex; align-items: center; gap: 10px; }
.pc-agents { display: flex; gap: 4px; flex: 1; }
.pc-task-count { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); flex: none; }
.pc-deadline { display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); flex: none; }
.pc-deadline i { flex: none; }

/* ── project detail hero ── */
.pd-hero {
  display: flex; align-items: flex-start; gap: 20px;
  padding-bottom: 24px; border-bottom: 1px solid var(--rule);
  margin-bottom: 0;
}
.pd-ring { position: relative; width: 72px; height: 72px; flex: none;
  display: flex; align-items: center; justify-content: center; }
.pd-ring-pct { position: absolute; font-family: var(--font-mono); font-size: 13px;
  font-weight: 600; color: var(--ink); }
.pd-hero-text { flex: 1; min-width: 0; }
.pd-goal { font-size: 14px; color: var(--ink-3); margin: 6px 0 0; line-height: 1.55; }
.pd-hero-meta { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; flex-shrink: 0; }
.pd-chips { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.pd-deadline-chip { display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  padding: 4px 10px; background: var(--surface-sunk); border-radius: 999px; }
.pd-deadline-chip i { width: 11px; height: 11px; stroke-width: 1.5; }
.pd-days { font-weight: 600; color: var(--ink); margin-left: 2px; }
.pd-status-chip { display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px; background: var(--surface-sunk); }
.pd-status-dot { width: 5px; height: 5px; border-radius: 50%; flex: none; }
.pd-agents { display: flex; gap: 5px; }

/* ── milestones timeline ── */
.pd-milestones { display: flex; align-items: flex-start; gap: 0; margin-top: 4px; }
.pd-ms-step { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; }
.pd-ms-node {
  width: 28px; height: 28px; border-radius: 50%; flex: none;
  border: 2px solid var(--rule-strong); background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  transition: all var(--dur-2) ease;
}
.pd-ms-node i { width: 13px; height: 13px; stroke-width: 2.5; color: #fff; }
.pd-ms-step.done  .pd-ms-node { background: var(--cosmos); border-color: var(--cosmos); }
.pd-ms-step.active .pd-ms-node { border-color: var(--cosmos); background: var(--surface); }
.pd-ms-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--cosmos);
  animation: dot-pulse 2s ease-in-out infinite; }
.pd-ms-line {
  position: absolute; top: 14px; left: 50%; width: 100%;
  height: 2px; background: var(--rule);
  z-index: 0;
}
.pd-ms-step.done + .pd-ms-step .pd-ms-line,
.pd-ms-step.done .pd-ms-line { background: var(--cosmos); }
.pd-ms-body { margin-top: 10px; text-align: center; padding: 0 4px; }
.pd-ms-label { font-size: 12.5px; color: var(--ink-2); line-height: 1.4; display: block; }
.pd-ms-step.done .pd-ms-label { color: var(--ink-3); }
.pd-ms-step.active .pd-ms-label { color: var(--ink); font-weight: 500; }
.pd-ms-date { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4);
  margin-top: 3px; display: block; }

/* ── metrics ── */
.pd-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pd-metric-card {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 14px 16px;
}
.pd-metric-top { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.pd-metric-v { font-family: var(--font-mono); font-size: 20px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); }
.pd-metric-target { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4);
  letter-spacing: 0.04em; }
.pd-metric-bar-wrap { height: 4px; background: var(--surface-sunk); border-radius: 2px;
  overflow: hidden; margin-bottom: 8px; }
.pd-metric-bar { height: 100%; border-radius: 2px;
  transition: width 600ms cubic-bezier(.22,1,.36,1); }
.pd-metric-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); }

/* ── sub-projects ── */
.pd-subprojects { display: flex; flex-direction: column; gap: 6px; }
.pd-sub {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-sm); overflow: hidden; cursor: pointer;
  transition: border-color var(--dur-1) ease;
}
.pd-sub:hover, .pd-sub.open { border-color: var(--cosmos); }
.pd-sub-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }
.pd-sub-name { font-size: 14px; font-weight: 500; color: var(--ink); min-width: 80px; }
.pd-sub-bar-wrap { flex: 1; height: 4px; background: var(--surface-sunk); border-radius: 2px; overflow: hidden; }
.pd-sub-bar { height: 100%; background: var(--cosmos); border-radius: 2px;
  transition: width 500ms cubic-bezier(.22,1,.36,1); }
.pd-sub-pct { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); flex: none; min-width: 34px; text-align: right; }
.pd-sub-tasks { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); flex: none; }
.pd-sub-detail { padding: 10px 16px 14px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--ink-4); font-style: italic; }

/* ── tasks ── */
.pd-tasks { display: flex; flex-direction: column; }
.pd-task {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 2px; border-bottom: 1px solid var(--rule);
  transition: opacity var(--dur-2) ease;
}
.pd-task:last-child { border-bottom: none; }
.pd-task.done { opacity: 0.46; }
.pd-task-check {
  width: 19px; height: 19px; border-radius: 50%;
  border: 1.5px solid var(--n-300); background: none; flex: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: all var(--dur-2) ease;
}
.pd-task-check:hover { border-color: var(--cosmos); background: var(--cosmos-tint); }
.pd-task-check.done { background: var(--cosmos); border-color: var(--cosmos); }
.pd-task-check i { width: 10px; height: 10px; stroke-width: 3; color: #fff; }
.pd-task-label { flex: 1; font-size: 14px; color: var(--ink-2); }
.pd-task.done .pd-task-label { color: var(--ink-4); }
.pd-task-agent { display: flex; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 10px; color: var(--cosmos);
  background: var(--cosmos-tint); padding: 2px 8px; border-radius: 999px; flex: none; }
.pd-task-date { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-4); flex: none; }

/* ── new project modal ── */
.np-backdrop {
  position: fixed; inset: 0; z-index: 50;
  background: rgba(7,10,20,0.45); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center;
  animation: ad-bg-in 200ms ease;
}
.np-modal {
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 20px; width: 520px; box-shadow: var(--shadow-3);
  animation: ad-slide-in 280ms cubic-bezier(.22,1,.36,1);
  overflow: hidden;
}
.np-header { display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px 16px; border-bottom: 1px solid var(--rule); }
.np-title { font-size: 17px; font-weight: 600; color: var(--ink); letter-spacing: -0.014em; }
.np-body { padding: 20px 24px; }
.np-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4); display: block; margin-bottom: 10px; }
.np-input {
  width: 100%; background: var(--surface-sunk); border: 1px solid var(--rule-strong);
  border-radius: var(--r-md); padding: 12px 14px; font-family: var(--font-sans);
  font-size: 14.5px; color: var(--ink); resize: none; outline: none;
  transition: border-color var(--dur-1) ease; line-height: 1.55;
}
.np-input:focus { border-color: var(--cosmos); }
.np-input::placeholder { color: var(--ink-4); }
.np-hint { font-size: 12.5px; color: var(--ink-4); margin-top: 10px; }
.np-footer { display: flex; justify-content: flex-end; gap: 8px;
  padding: 16px 24px; border-top: 1px solid var(--rule); }
.np-thinking { display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 44px 24px; }
.np-thinking-mark { animation: orbe-breathe 3s ease-in-out infinite; }
.np-thinking-txt { font-size: 14.5px; color: var(--ink-2); }
.np-result { padding: 16px 24px 0; max-height: 340px; overflow-y: auto; }
.np-result-goal { font-size: 14px; color: var(--ink-3); font-style: italic;
  margin-bottom: 16px; line-height: 1.5; }
.np-result-section { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4); margin: 14px 0 8px; }
.np-result-row { display: flex; align-items: center; gap: 10px; padding: 7px 0;
  border-bottom: 1px solid var(--rule); }
.np-result-row:last-of-type { border-bottom: none; }
.np-ms-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--n-300);
  flex: none; }
.np-ms-dot.active { background: var(--cosmos); }
.np-task-box { width: 14px; height: 14px; border-radius: 3px; border: 1.5px solid var(--n-300);
  flex: none; }
.np-ms-label { flex: 1; font-size: 13.5px; color: var(--ink-2); }
.np-ms-date { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); flex: none; }


/* =========================================================================
   GOALS — connected habits + signals
   ========================================================================= */
.pd-habits { display: flex; flex-direction: column; gap: 0; }
.pd-habit {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 2px; border-bottom: 1px solid var(--rule);
  transition: opacity var(--dur-2) ease;
}
.pd-habit:last-child { border-bottom: none; }
.pd-habit.done { opacity: 0.46; }
.pd-habit-ic { width: 15px; height: 15px; stroke-width: 1.5; color: var(--cosmos); flex: none; }
.pd-habit.done .pd-habit-ic { color: var(--ink-4); }
.pd-habit-label { flex: 1; font-size: 14px; color: var(--ink-2); }
.pd-habit-streak { display: flex; gap: 4px; }
.pd-habit-cnt { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); min-width: 24px; text-align: right; }

.pd-signals { display: flex; flex-direction: column; gap: 0; }
.pd-signal-row {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 2px; border-bottom: 1px solid var(--rule);
}
.pd-signal-row:last-child { border-bottom: none; }
.pd-signal-ic {
  width: 28px; height: 28px; border-radius: 8px; flex: none;
  display: flex; align-items: center; justify-content: center;
}
.pd-signal-ic.email { background: var(--cosmos-tint); }
.pd-signal-ic.email i { width: 13px; height: 13px; stroke-width: 1.5; color: var(--cosmos); }
.pd-signal-ic.agent { background: var(--solar-tint); }
.pd-signal-ic.agent i { width: 13px; height: 13px; stroke-width: 1.5; color: var(--solar-deep); }
.pd-signal-txt { flex: 1; font-size: 13.5px; color: var(--ink-2); }
.pd-signal-time { font-family: var(--font-mono); font-size: 10px; color: var(--ink-4); flex: none; }

/* =========================================================================
   FEEDBACK PAGE
   ========================================================================= */
.page-feedback { padding-bottom: 96px; }
.fb-agent-badge {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-3);
  background: var(--surface-sunk); border: 1px solid var(--rule);
  padding: 6px 12px; border-radius: 999px; letter-spacing: 0.04em;
}
.fb-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--success,#1F9D6B);
  animation: dot-pulse 2s ease-in-out infinite; flex: none;
}
.fb-sub { font-size: 14px; color: var(--ink-3); line-height: 1.65;
  max-width: 56ch; margin: 8px 0 28px; }

.fb-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; }

/* form */
.fb-form { display: flex; flex-direction: column; gap: 14px; }
.fb-type-row { display: flex; gap: 6px; }
.fb-type-btn {
  display: flex; align-items: center; gap: 6px; padding: 7px 13px;
  border-radius: 999px; border: 1px solid var(--rule-strong);
  background: none; font-family: var(--font-sans); font-size: 13px; color: var(--ink-3);
  cursor: pointer; transition: all var(--dur-1) ease;
}
.fb-type-btn i { width: 13px; height: 13px; stroke-width: 1.5; }
.fb-type-btn:hover { border-color: var(--cosmos); color: var(--cosmos); }
.fb-type-btn.active { background: var(--cosmos); border-color: var(--cosmos); color: #fff; }
.fb-input {
  width: 100%; background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: var(--r-md); padding: 14px 16px; font-family: var(--font-sans);
  font-size: 14.5px; color: var(--ink); resize: none; outline: none; line-height: 1.6;
  transition: border-color var(--dur-1) ease;
}
.fb-input:focus { border-color: var(--cosmos); }
.fb-input::placeholder { color: var(--ink-4); }
.fb-form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fb-hint { font-size: 12px; color: var(--ink-4); }
.fb-spinner {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff;
  animation: spin 600ms linear infinite; flex: none;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* sent state */
.fb-sent { display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 48px 24px; }
.fb-sent-ic { width: 52px; height: 52px; border-radius: 50%;
  background: rgba(31,157,107,0.12); display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px; }
.fb-sent-ic i { width: 24px; height: 24px; stroke-width: 1.5; color: var(--success,#1F9D6B); }
.fb-sent-h { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.fb-sent-s { font-size: 14px; color: var(--ink-3); max-width: 34ch; line-height: 1.55; }

/* right panel */
.fb-recent-label {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-4); margin-bottom: 12px;
}
.fb-recent { display: flex; flex-direction: column; gap: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  overflow: hidden; margin-bottom: 16px; }
.fb-recent-row { display: flex; align-items: center; gap: 9px; padding: 11px 14px;
  border-bottom: 1px solid var(--rule); }
.fb-recent-row:last-child { border-bottom: none; }
.fb-tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 999px; flex: none; font-weight: 500; }
.fb-recent-txt { flex: 1; font-size: 13px; color: var(--ink-2); }
.fb-recent-time { font-family: var(--font-mono); font-size: 9.5px; color: var(--ink-4); flex: none; }

.fb-stats { display: flex; gap: 0; }
.fb-stat { flex: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-sm); }
.fb-stat + .fb-stat { margin-left: 8px; }
.fb-stat-v { font-family: var(--font-mono); font-size: 22px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--cosmos); }
.fb-stat-l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-4); }

/* sidebar feedback item */
.nav-item-feedback i { color: var(--cosmos) !important; }
.nav-item-feedback.active { background: var(--cosmos-tint) !important; }


/* =========================================================================
   TOAST + PERSISTENT ASK REPLY
   ========================================================================= */
#orbe-toast-root {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%);
  z-index: 9000; display: flex; flex-direction: column; gap: 8px; align-items: center;
  pointer-events: none;
}
.orbe-toast {
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--surface);
  padding: 11px 18px; border-radius: 999px;
  font-family: var(--font-sans); font-size: 13.5px; font-weight: 500;
  box-shadow: 0 8px 32px rgba(0,0,0,0.28);
  opacity: 0; transform: translateY(12px) scale(0.96);
  transition: opacity 320ms cubic-bezier(.22,1,.36,1), transform 320ms cubic-bezier(.22,1,.36,1);
}
.orbe-toast.show { opacity: 1; transform: translateY(0) scale(1); }
.orbe-toast i { width: 15px; height: 15px; stroke-width: 2; color: var(--solar, #F3A93C); }
html.orbe-dark .orbe-toast { background: var(--surface); color: var(--ink); border: 1px solid var(--rule-strong); }

/* persistent ask reply bubble */
.pa-reply {
  position: relative; z-index: 1; max-width: 640px; margin: 0 auto 8px;
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 14px; padding: 11px 16px;
  font-size: 13.5px; color: var(--ink-2);
  box-shadow: var(--shadow-1);
  animation: pa-reply-in 220ms cubic-bezier(.22,1,.36,1);
}
@keyframes pa-reply-in { from { opacity: 0; transform: translateY(8px); } }
.pa-reply i { width: 15px; height: 15px; stroke-width: 1.5; color: var(--solar, #F3A93C); flex: none; }
.pa-reply-dots { display: flex; gap: 4px; }
.pa-reply-dots span { width: 5px; height: 5px; border-radius: 50%; background: var(--ink-4);
  animation: thinking-dot 1.2s ease-in-out infinite; }
.pa-reply-dots span:nth-child(2){animation-delay:.15s}
.pa-reply-dots span:nth-child(3){animation-delay:.30s}


/* =========================================================================
   TODAY — block feed (ORBE-arranged + nudge controls)
   ========================================================================= */
.context-line {
  display: flex; align-items: center; gap: 7px; margin-top: 10px;
  font-size: 13px; color: var(--ink-3);
}
.context-line i { width: 14px; height: 14px; stroke-width: 1.5; color: var(--solar, #F3A93C); flex: none; }
.context-line strong { color: var(--ink-2); font-weight: 500; }

.dblocks { display: flex; flex-direction: column; gap: 22px; }

.dblock { position: relative; }
.dblock.pinned > .dblock-head h3 { color: var(--solar-deep, #D2851C); }
.dblock-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dblock-head h3 { font-size: 15px; font-weight: 600; color: var(--ink); letter-spacing: -0.012em; }
.dblock-pin-ic { width: 12px; height: 12px; stroke-width: 2; color: var(--solar, #F3A93C); flex: none; }
.dblock-head .link { margin-left: auto; }
.dblock-menu-wrap { position: relative; margin-left: 4px; }
.dblock-head .link + .dblock-menu-wrap { margin-left: 8px; }
.dblock-menu-btn {
  width: 26px; height: 26px; border-radius: 7px; border: none; background: none;
  color: var(--ink-4); cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-1) ease;
}
.dblock-menu-btn:hover { background: var(--surface-sunk); color: var(--ink-2); }
.dblock-menu-btn i { width: 16px; height: 16px; stroke-width: 2; }
.dblock-menu {
  position: absolute; top: calc(100% + 4px); right: 0; z-index: 20;
  background: var(--surface); border: 1px solid var(--rule-strong);
  border-radius: 12px; padding: 5px; min-width: 150px;
  box-shadow: var(--shadow-2);
  animation: tc-panel-in 160ms cubic-bezier(.22,1,.36,1);
}
.dblock-menu button {
  display: flex; align-items: center; gap: 9px; width: 100%;
  padding: 8px 10px; border: none; background: none; border-radius: 8px;
  font-family: var(--font-sans); font-size: 13px; color: var(--ink-2);
  cursor: pointer; text-align: left; transition: background var(--dur-1) ease;
}
.dblock-menu button:hover { background: var(--surface-sunk); color: var(--ink); }
.dblock-menu button i { width: 14px; height: 14px; stroke-width: 1.5; color: var(--ink-3); flex: none; }

.restore-blocks {
  display: flex; align-items: center; gap: 7px; margin: 22px auto 0;
  padding: 9px 16px; border-radius: var(--r-pill);
  border: 1px dashed var(--rule-strong); background: none;
  font-family: var(--font-sans); font-size: 13px; color: var(--ink-3);
  cursor: pointer; transition: all var(--dur-1) ease;
}
.restore-blocks:hover { border-color: var(--cosmos); color: var(--cosmos); }
.restore-blocks i { width: 14px; height: 14px; stroke-width: 1.5; }

/* goal spotlight */
.spotlight-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 16px 20px; cursor: pointer;
  transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}
.spotlight-card:hover { border-color: var(--solar, #F3A93C); box-shadow: var(--shadow-1); }
.spot-ring { position: relative; width: 52px; height: 52px; flex: none;
  display: flex; align-items: center; justify-content: center; }
.spot-pct { position: absolute; font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--ink); }
.spot-body { flex: 1; min-width: 0; }
.spot-goal { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.014em; margin-bottom: 4px; }
.spot-next { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-3); }
.spot-next i { width: 13px; height: 13px; stroke-width: 1.5; color: var(--solar, #F3A93C); flex: none; }
.spot-next strong { color: var(--ink-2); font-weight: 500; }
.spot-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.spot-deadline { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.spot-agent { display: flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10px; color: var(--solar-deep, #D2851C);
  background: var(--solar-tint); padding: 3px 9px; border-radius: 999px; }
.spot-agent i { width: 11px; height: 11px; stroke-width: 1.5; }

/* signals */
.signals-list { display: flex; flex-direction: column; gap: 0;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; }
.signal-row { display: flex; align-items: center; gap: 12px; padding: 13px 18px;
  border-bottom: 1px solid var(--rule); }
.signal-row:last-child { border-bottom: none; }
.signal-av { width: 34px; height: 34px; border-radius: 10px; flex: none;
  display: flex; align-items: center; justify-content: center; }
.signal-av i { width: 15px; height: 15px; stroke-width: 1.5; }
.signal-body { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.signal-txt { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }
.signal-meta { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--ink-4); }

/* wide metrics row */
.metrics-row-wide { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.metric-wide {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px;
}
.metric-wide .big { font-family: var(--font-mono); font-size: 24px; font-weight: 600;
  letter-spacing: -0.02em; color: var(--ink); }
.metric-wide .cap { font-size: 12px; color: var(--ink-3); line-height: 1.4; }

/* ===========================================================================
   COMPAT ALIASES — legacy token names used by the pre-v0.2 Jinja templates
   (today/chat/area/dashboard/habits/inbox/projects). Mapped onto the v2
   design tokens so inheriting pages keep rendering during the migration.
   These reference var(--cosmos/--ink/...) so they follow html.orbe-dark too.
   =========================================================================== */
:root {
  --bg:            var(--paper);
  --bg-elev:       var(--surface);
  --bg-subtle:     var(--surface-sunk);
  --text:          var(--ink);
  --text-2:        var(--ink-2);
  --text-3:        var(--ink-3);
  --border:        var(--n-100);
  --border-2:      var(--n-200);
  --border-strong: var(--n-200);
  --accent:        var(--cosmos);
  --on-accent:     #FFFFFF;
  --accent-soft:   var(--cosmos-tint);
  --good:          var(--success);
  --good-soft:     var(--success-tint);
  --warn:          var(--warning);
  --warn-soft:     var(--warning-tint);
  --bad:           var(--error);
  --bad-soft:      var(--error-tint);
  --shadow:        var(--shadow-1);
  --shadow-md:     var(--shadow-2);
  --shadow-lg:     var(--shadow-2);
  --shadow-xl:     var(--shadow-3);
  --radius:        16px;
  --radius-sm:     10px;
  --font:          var(--font-sans);
}
html.orbe-dark {
  --border:        var(--rule-strong);
  --border-2:      var(--rule-strong);
  --border-strong: var(--rule-strong);
}

/* ---- Legacy layout utilities used by inheriting pages (habits/inbox/etc.) ---- */
.page-title   { font: var(--t-h2); letter-spacing: var(--track-tight); color: var(--ink); margin-bottom: 4px; }
.page-sub     { font-size: 13px; color: var(--ink-2); margin-bottom: 24px; }
.section      { margin-top: 24px; }
.section-title{ font: var(--t-mono-label); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.empty        { padding: 28px 18px; text-align: center; font-size: 13px; color: var(--ink-3); }
