:root{
  --bg:#f6f7fb;
  --surface:#ffffff;
  --surface-2:#fbfcff;
  --ink:#0f1424;
  --ink-2:#333b4f;
  --muted:#79839a;
  --line:#e8eaf1;
  --line-strong:#dbe0eb;
  --brand:#2f5bff;
  --brand-2:#7c5cff;
  --brand-ink:#1b3bd1;
  --brand-soft:#eef2ff;
  --success:#0f9f6e;
  --success-soft:#e7f8f1;
  --danger:#dc3545;
  --danger-soft:#fdecee;
  --warn:#c07a12;
  --shadow-sm:0 1px 2px rgba(15,20,36,.05);
  --shadow-md:0 10px 30px rgba(20,28,56,.08);
  --shadow-lg:0 26px 70px rgba(15,20,36,.16);
  --radius:16px;
  --radius-sm:11px;
  --sidebar:#0d1120;
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--ink);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
*{box-sizing:border-box}
html,body{margin:0;min-height:100%}
body{background:
  radial-gradient(1100px 500px at 85% -10%,rgba(124,92,255,.08),transparent 60%),
  radial-gradient(900px 460px at -10% 10%,rgba(47,91,255,.07),transparent 55%),
  var(--bg);}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
button:disabled{opacity:.55;cursor:not-allowed}
a{color:var(--brand);text-decoration:none}
a:hover{text-decoration:underline}
img{max-width:100%}
::selection{background:#c9d4ff;color:#101838}
:focus-visible{outline:3px solid rgba(47,91,255,.35);outline-offset:2px}
[hidden]{display:none!important}

/* ---------- shared atoms ---------- */
.eyebrow{display:inline-flex;align-items:center;gap:8px;font-size:11px;font-weight:750;letter-spacing:.14em;text-transform:uppercase;color:var(--brand)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid transparent;border-radius:11px;padding:11px 17px;font-size:14px;font-weight:650;line-height:1;transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease;white-space:nowrap}
.btn:hover{transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn-primary{background:linear-gradient(135deg,var(--brand),#4a6dff 55%,var(--brand-2));color:#fff;box-shadow:0 10px 24px rgba(47,91,255,.28)}
.btn-primary:hover{box-shadow:0 14px 30px rgba(47,91,255,.36)}
.btn-ghost{background:#fff;border-color:var(--line-strong);color:var(--ink-2)}
.btn-ghost:hover{border-color:#c3cbe0;background:#f8f9ff}
.btn-danger{background:var(--danger-soft);color:#a92330;border-color:#f6cdd2}
.btn-danger:hover{background:#fbdde1}
.btn-sm{padding:8px 12px;font-size:12.5px;border-radius:9px}
.btn-block{width:100%}
.btn-send{width:46px;height:46px;padding:0;border-radius:13px;flex:0 0 auto}
.btn-send svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.link-btn{border:0;background:none;color:var(--brand);font-size:12.5px;font-weight:650;padding:4px}
.link-btn:hover{text-decoration:underline}
.icon-btn{width:34px;height:34px;border-radius:10px;border:1px solid transparent;background:transparent;display:grid;place-items:center;color:inherit;transition:background .16s ease}
.icon-btn:hover{background:rgba(255,255,255,.1)}
.icon-btn svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tag{display:inline-flex;align-items:center;gap:6px;border-radius:999px;background:var(--brand-soft);color:var(--brand-ink);padding:5px 10px;font-size:10.5px;font-weight:750;letter-spacing:.03em;white-space:nowrap}
.tag.ok{background:var(--success-soft);color:#0b7c56}
.tag.muted{background:#f1f3f8;color:var(--muted)}
.muted{color:var(--muted);font-size:12.5px;line-height:1.55}
.code{background:#0d1322;color:#cdd8f4;border-radius:12px;padding:16px;font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:12px;line-height:1.65;overflow:auto;white-space:pre-wrap;word-break:break-word;border:1px solid #1e2740}
code{font-family:"SFMono-Regular",Consolas,"Liberation Mono",monospace;font-size:.92em;background:#eef1f8;color:#26304a;padding:2px 5px;border-radius:5px}

/* ---------- login ---------- */
.auth{min-height:100vh;display:grid;grid-template-columns:1.15fr .85fr;background:#fff}
.auth-visual{position:relative;overflow:hidden;background:
  radial-gradient(900px 500px at 78% 10%,#1d2c66 0%,transparent 60%),
  radial-gradient(700px 520px at 8% 95%,#22368a 0%,transparent 55%),
  linear-gradient(150deg,#0b0f1d,#101a3c 52%,#0b1024);color:#e9edff;padding:44px 52px;display:flex;flex-direction:column;isolation:isolate}
.auth-glow{position:absolute;border-radius:50%;filter:blur(70px);opacity:.55;z-index:-1;animation:float 12s ease-in-out infinite}
.auth-glow-a{width:420px;height:420px;background:#3a5cff;top:-120px;right:-80px}
.auth-glow-b{width:380px;height:380px;background:#8c57ff;bottom:-140px;left:-100px;animation-delay:-5s}
.auth-brand{display:inline-flex;align-items:center;gap:12px;color:#fff;font-size:25px;font-weight:800;letter-spacing:-.035em;width:max-content}
.auth-brand em{font-style:normal;color:#8fb0ff}
.auth-brand:hover{text-decoration:none}
.auth-copy{margin:auto 0;max-width:560px;position:relative;z-index:1}
.auth-copy h1{font-size:clamp(38px,4.6vw,62px);line-height:1.02;letter-spacing:-.045em;margin:18px 0 20px;font-weight:800}
.auth-copy p{color:#b7c2e6;font-size:16px;line-height:1.7;max-width:470px;margin:0}
.auth-points{list-style:none;padding:0;margin:30px 0 0;display:grid;gap:12px;color:#dfe6ff;font-size:14px}
.auth-points li{display:flex;align-items:center;gap:12px}
.tick{width:22px;height:22px;border-radius:50%;background:rgba(126,160,255,.18);border:1px solid rgba(148,178,255,.4);display:inline-grid;place-items:center;flex:0 0 auto}
.tick::after{content:"";width:6px;height:10px;border:2px solid #9bbcff;border-top:0;border-left:0;transform:rotate(42deg) translate(-1px,-1px)}
.auth-chat{position:relative;z-index:1;align-self:flex-end;width:min(330px,100%);margin:36px 0 0;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(14px);border-radius:20px;padding:16px;display:flex;flex-direction:column;gap:10px;animation:float 8s ease-in-out infinite}
.auth-chat-top{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#dce4ff}
.dot-live{width:8px;height:8px;border-radius:50%;background:#42e3a0;box-shadow:0 0 0 4px rgba(66,227,160,.15);animation:pulseDot 2s infinite}
.auth-bubble{font-size:12.5px;line-height:1.5;padding:10px 12px;border-radius:13px;max-width:88%}
.auth-bubble.user{background:#3c63ee;color:#fff;align-self:flex-end;border-bottom-right-radius:4px}
.auth-bubble.bot{background:rgba(255,255,255,.12);color:#eef2ff;align-self:flex-start;border-bottom-left-radius:4px}
.auth-bubble small{display:block;margin-top:6px;color:#9fb3ee;font-size:10px}
.auth-typing{display:flex;gap:4px;padding:8px 10px;width:max-content;background:rgba(255,255,255,.08);border-radius:12px}
.auth-typing span,.typing-dots span{width:6px;height:6px;border-radius:50%;background:#9fb3ee;animation:typing 1.2s infinite}
.auth-typing span:nth-child(2),.typing-dots span:nth-child(2){animation-delay:.15s}
.auth-typing span:nth-child(3),.typing-dots span:nth-child(3){animation-delay:.3s}
.auth-foot{position:relative;z-index:1;margin:28px 0 0;color:#8b9ac8;font-size:11px;letter-spacing:.06em;text-transform:uppercase}
.auth-panel{display:flex;align-items:center;justify-content:center;padding:40px 32px;background:
  radial-gradient(520px 360px at 100% 0%,rgba(47,91,255,.06),transparent 65%),#fff}
.auth-card{width:100%;max-width:400px;animation:fadeUp .6s ease both}
.auth-card-head h2{font-size:28px;letter-spacing:-.03em;margin:0 0 8px}
.auth-card-head p{margin:0 0 26px;color:var(--muted);font-size:14px}
.auth-hint{margin:18px 0 0;color:var(--muted);font-size:11.5px;line-height:1.6}
.form-error{background:var(--danger-soft);border:1px solid #f6cdd2;color:#a92330;border-radius:10px;padding:11px 13px;font-size:12.5px;margin-bottom:16px;animation:pop .25s ease both}

/* ---------- app shell ---------- */
.app{display:grid;grid-template-columns:250px minmax(0,1fr);min-height:100vh}
.sidebar{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;background:
  radial-gradient(420px 260px at 20% 0%,rgba(80,110,255,.22),transparent 65%),
  linear-gradient(180deg,#0d1120,#0a0e19);color:#b9c2d9;padding:22px 14px 14px;z-index:5}
.brand{display:flex;align-items:center;gap:10px;color:#fff;font-size:21px;font-weight:800;letter-spacing:-.035em;padding:4px 10px 24px}
.brand em{font-style:normal;color:#8aa7ff}
.brand:hover{text-decoration:none}
.nav{display:flex;flex-direction:column;gap:3px}
.navitem{position:relative;display:flex;align-items:center;gap:12px;width:100%;border:0;background:transparent;color:#9eabc7;padding:11px 12px;border-radius:10px;font-size:13.5px;font-weight:600;text-align:left;transition:background .16s ease,color .16s ease,transform .16s ease}
.navitem svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;opacity:.9;flex:0 0 auto}
.navitem:hover{background:rgba(255,255,255,.06);color:#eef1ff}
.navitem.is-active{background:linear-gradient(135deg,rgba(68,104,255,.95),rgba(124,92,255,.85));color:#fff;box-shadow:0 12px 26px rgba(28,50,160,.45)}
.navitem.is-active::before{content:"";position:absolute;left:-14px;top:9px;bottom:9px;width:3px;border-radius:0 4px 4px 0;background:#a8beff}
.nav-label{margin:20px 12px 8px;font-size:9.5px;font-weight:800;letter-spacing:.16em;text-transform:uppercase;color:#5d6b8d}
.sidebar-user{margin-top:auto;display:flex;align-items:center;gap:10px;padding:12px 10px 6px;border-top:1px solid rgba(255,255,255,.08);color:#aab5cf}
.avatar{width:36px;height:36px;border-radius:11px;background:linear-gradient(135deg,#3c63ee,#8c57ff);display:grid;place-items:center;color:#fff;font-weight:750;font-size:14px;flex:0 0 auto;box-shadow:inset 0 0 0 1px rgba(255,255,255,.2)}
.sidebar-user-copy{display:flex;flex-direction:column;min-width:0;flex:1}
.sidebar-user-copy strong{font-size:12.5px;color:#eef1ff;font-weight:650;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sidebar-user-copy span{font-size:11px;color:#76839f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.frame{min-width:0;display:flex;flex-direction:column}
.topbar{position:sticky;top:0;z-index:4;height:72px;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:0 34px;background:rgba(246,247,251,.82);backdrop-filter:blur(16px);border-bottom:1px solid rgba(224,227,238,.75)}
.topbar-title{display:flex;align-items:baseline;gap:10px;min-width:0;flex:1}
.crumb{font-size:12px;color:var(--muted);white-space:nowrap}
.topbar h1{font-size:19px;margin:0;letter-spacing:-.02em;font-weight:750;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.topbar-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto}
.status-pill{display:inline-flex;align-items:center;gap:7px;background:#fff;border:1px solid var(--line);border-radius:999px;padding:6px 11px;font-size:11.5px;font-weight:650;color:var(--ink-2);box-shadow:var(--shadow-sm);white-space:nowrap}
.status-pill .dot{width:7px;height:7px;border-radius:50%;background:var(--success);box-shadow:0 0 0 4px rgba(15,159,110,.12);animation:pulseDot 2.4s infinite}
.status-pill.off .dot{background:var(--warn);box-shadow:0 0 0 4px rgba(192,122,18,.12)}
.select,.field input,.field select,.field textarea,.searchbar input,.composer textarea{background:#fff;border:1px solid var(--line-strong);border-radius:10px;padding:10px 12px;font-size:13.5px;color:var(--ink);transition:border-color .16s ease,box-shadow .16s ease;min-width:0}
.select:hover,.field input:hover,.field select:hover,.field textarea:hover,.searchbar input:hover{border-color:#c5cde0}
.select:focus,.field input:focus,.field select:focus,.field textarea:focus,.searchbar input:focus,.composer textarea:focus{outline:none;border-color:#a9b8e8;box-shadow:0 0 0 4px rgba(47,91,255,.1)}
.topbar .select{max-width:220px;background:#fff}
.content{padding:30px 34px 56px;max-width:1320px;width:100%;margin:0 auto}
.section{animation:fadeUp .45s cubic-bezier(.2,.7,.3,1) both}
.section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:22px;flex-wrap:wrap}
.section-head h2{margin:0 0 6px;font-size:25px;letter-spacing:-.03em}
.section-head p{margin:0;color:var(--muted);font-size:13.5px;max-width:640px;line-height:1.55}
.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:22px;box-shadow:var(--shadow-sm);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;min-width:0}
.card:hover{box-shadow:var(--shadow-md);border-color:#e0e4ef}
.card-accent{background:linear-gradient(160deg,#ffffff,#f7f9ff 62%,#f2f5ff);border-color:#e2e8fb}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.card-head h3{margin:0;font-size:15.5px;letter-spacing:-.015em;font-weight:700}
.card>h3{font-size:15.5px;margin:0 0 12px}

/* ---------- hero & metrics ---------- */
.hero{position:relative;overflow:hidden;border-radius:22px;background:
  radial-gradient(560px 320px at 88% 20%,rgba(124,92,255,.24),transparent 62%),
  radial-gradient(460px 300px at 10% 100%,rgba(47,91,255,.2),transparent 58%),
  linear-gradient(135deg,#101733,#0d1226 55%,#141d44);color:#fff;padding:34px 36px;display:flex;align-items:center;justify-content:space-between;gap:28px;margin-bottom:18px;box-shadow:0 22px 56px rgba(20,30,70,.22)}
.hero-copy{max-width:600px;position:relative;z-index:1}
.hero .eyebrow{color:#9db4ff}
.hero h2{margin:12px 0 10px;font-size:clamp(26px,3vw,38px);letter-spacing:-.04em;line-height:1.08}
.hero p{margin:0;color:#b9c4e4;font-size:14px;line-height:1.65;max-width:480px}
.hero-actions{display:flex;gap:10px;margin-top:22px;flex-wrap:wrap}
.hero .btn-ghost{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:#e8ecff}
.hero .btn-ghost:hover{background:rgba(255,255,255,.14)}
.hero .btn-primary{background:linear-gradient(135deg,#4d6dff,#8a63ff);box-shadow:0 12px 28px rgba(70,100,255,.38)}
.hero-orbit{position:relative;width:190px;height:190px;flex:0 0 auto;display:grid;place-items:center}
.hero-orbit img{width:58px;height:58px;filter:drop-shadow(0 12px 24px rgba(90,130,255,.55));animation:float 6s ease-in-out infinite}
.hero-orbit span{position:absolute;inset:0;border:1px solid rgba(157,180,255,.22);border-radius:50%;animation:spin 20s linear infinite}
.hero-orbit span:nth-child(2){inset:22px;border-style:dashed;animation-direction:reverse;animation-duration:14s}
.hero-orbit span:nth-child(3){inset:48px;border-color:rgba(157,180,255,.35);animation-duration:9s}
.metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:18px}
.metric{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:18px 20px;display:flex;flex-direction:column;gap:4px;box-shadow:var(--shadow-sm);position:relative;overflow:hidden;transition:transform .2s ease,box-shadow .2s ease}
.metric:hover{transform:translateY(-3px);box-shadow:var(--shadow-md)}
.metric::after{content:"";position:absolute;right:-20px;top:-20px;width:70px;height:70px;border-radius:50%;background:radial-gradient(circle,rgba(47,91,255,.12),transparent 70%)}
.metric-label{font-size:11px;font-weight:750;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.metric strong{font-size:32px;letter-spacing:-.04em;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.metric small{color:var(--muted);font-size:11.5px}

/* ---------- lists ---------- */
.list{display:flex;flex-direction:column;gap:8px}
.list-scroll{max-height:330px;overflow:auto;padding-right:4px}
.list-card{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 14px;border:1px solid var(--line);border-radius:12px;background:var(--surface-2);transition:border-color .16s ease,background .16s ease,transform .16s ease}
.list-card:hover{border-color:#d3daea;background:#fff;transform:translateX(2px)}
.list-card .copy{min-width:0}
.list-card h3,.list-card h4{margin:0 0 3px;font-size:13.5px;font-weight:650;overflow-wrap:anywhere}
.list-card p{margin:0;color:var(--muted);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.list-card .meta{color:#98a1b5;font-size:11px}
.empty{padding:22px;text-align:center;color:var(--muted);font-size:12.5px;border:1px dashed var(--line-strong);border-radius:12px;background:#fcfcfe}
.checklist{list-style:none;margin:0;padding:0;display:grid;gap:10px}
.checklist li{display:flex;align-items:center;gap:11px;font-size:13.5px;color:var(--ink-2)}
.checklist .check{width:20px;height:20px;border-radius:6px;border:1.5px solid var(--line-strong);display:inline-grid;place-items:center;flex:0 0 auto;transition:background .2s ease,border-color .2s ease}
.checklist li.done .check{background:var(--success);border-color:var(--success)}
.checklist li.done .check::after{content:"";width:5px;height:9px;border:2px solid #fff;border-top:0;border-left:0;transform:rotate(42deg) translate(-1px,-1px)}
.checklist li.done{color:var(--muted);text-decoration:line-through;text-decoration-color:#b9c2d6}
.steps{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.steps li{display:grid;grid-template-columns:26px 1fr;gap:10px;align-items:start}
.steps li::before{content:counter(step);counter-increment:step;width:26px;height:26px;border-radius:8px;background:var(--brand-soft);color:var(--brand-ink);font-size:12px;font-weight:800;display:grid;place-items:center}
.steps{counter-reset:step}
.steps b{display:block;font-size:13.5px;margin-bottom:2px}
.steps span{color:var(--muted);font-size:12.5px;line-height:1.5}
.callout{background:linear-gradient(135deg,#f5f8ff,#eef2ff);border:1px solid #dfe7ff;border-radius:13px;padding:15px 16px;margin-top:18px}
.callout strong{font-size:12.5px}
.callout p{margin:4px 0 0;color:#5b6b93;font-size:12px;line-height:1.55}
.budget{display:flex;align-items:baseline;gap:8px;margin:4px 0 12px}
.budget strong{font-size:30px;letter-spacing:-.04em}
.budget span{color:var(--muted);font-size:12px}
.progress{height:9px;border-radius:999px;background:#eef1f8;overflow:hidden;margin-bottom:12px}
.progress-fill{height:100%;width:0;border-radius:999px;background:linear-gradient(90deg,var(--brand),var(--brand-2));transition:width .7s cubic-bezier(.2,.7,.3,1)}
.facts{margin:0;display:grid;gap:0}
.facts div{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 0;border-bottom:1px solid var(--line)}
.facts div:last-child{border-bottom:0}
.facts dt{color:var(--muted);font-size:12.5px}
.facts dd{margin:0;font-size:13px;font-weight:600;text-align:right;overflow-wrap:anywhere}

/* ---------- forms ---------- */
.form{display:grid;gap:14px}
.form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.field{display:grid;gap:6px;font-size:12px;font-weight:650;color:var(--ink-2)}
.field textarea{resize:vertical;min-height:120px;line-height:1.6}
.inline-field{display:flex;align-items:center;gap:9px;font-size:12px;font-weight:650;color:var(--muted)}
.inline-field .select{min-width:180px}
.searchbar{display:flex;gap:9px;margin-bottom:14px}
.searchbar input{flex:1}
.button-row{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}
.check-row{display:flex;align-items:center;gap:8px;font-size:12.5px;font-weight:600;color:var(--ink-2);padding:7px 0}
.check-row input{width:16px;height:16px;accent-color:var(--brand)}

/* ---------- chat ---------- */
.chat-shell{background:var(--surface);border:1px solid var(--line);border-radius:20px;box-shadow:var(--shadow-md);overflow:hidden;display:flex;flex-direction:column;min-height:620px}
.chat-bar{display:flex;align-items:center;gap:12px;padding:14px 18px;border-bottom:1px solid var(--line);background:linear-gradient(180deg,#fff,#fbfcff)}
.chat-bar-note{font-size:12px;color:var(--muted);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.chat-messages{flex:1;padding:24px;display:flex;flex-direction:column;gap:14px;overflow:auto;min-height:360px;max-height:60vh;background:
  radial-gradient(600px 280px at 100% 0%,rgba(124,92,255,.045),transparent 60%),#fff}
.chat-empty{margin:auto;text-align:center;max-width:360px;color:var(--muted);animation:fadeUp .45s ease both}
.chat-empty h3{margin:14px 0 6px;color:var(--ink);font-size:18px;letter-spacing:-.02em}
.chat-empty p{margin:0;font-size:13px;line-height:1.6}
.chat-empty img{opacity:.9;animation:float 5s ease-in-out infinite}
.bubble{max-width:min(620px,86%);padding:13px 15px;border-radius:16px;font-size:13.5px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;animation:pop .28s cubic-bezier(.2,.7,.3,1) both}
.bubble.user{align-self:flex-end;background:linear-gradient(135deg,var(--brand),#496cff);color:#fff;border-bottom-right-radius:5px;box-shadow:0 10px 22px rgba(47,91,255,.22)}
.bubble.bot{align-self:flex-start;background:#f5f7fc;color:var(--ink);border:1px solid var(--line);border-bottom-left-radius:5px}
.bubble.bot .cite{display:inline-flex;align-items:center;justify-content:center;min-width:18px;height:18px;padding:0 5px;margin:0 2px;border-radius:5px;background:#e3e9ff;color:var(--brand-ink);font-size:10px;font-weight:800;vertical-align:1px;cursor:help}
.bubble .bubble-sources{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px;padding-top:10px;border-top:1px dashed #dfe4ef;white-space:normal}
.source-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;background:#fff;border:1px solid #e0e5f1;border-radius:7px;padding:4px 8px;font-size:10.5px;color:#54607c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.source-chip b{font-weight:750;color:var(--brand-ink)}
.product-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:12px;padding-top:12px;border-top:1px dashed #dfe4ef;white-space:normal}
.product-card{display:flex;flex-direction:column;border:1px solid #e6eaf3;border-radius:11px;overflow:hidden;background:#fff;text-decoration:none;color:inherit;transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;min-width:0}
.product-card:hover{transform:translateY(-2px);border-color:#cbd6ef;box-shadow:0 10px 22px rgba(20,30,60,.1);text-decoration:none}
.product-media{display:block;aspect-ratio:1/1;background:linear-gradient(135deg,#eef2fb,#f8f9fd);overflow:hidden}
.product-media img{width:100%;height:100%;object-fit:cover;display:block}
.product-media.is-empty::after{content:"Fenix";display:grid;place-items:center;height:100%;font-size:10px;font-weight:800;letter-spacing:.12em;color:#9aa8cd}
.product-name{font-size:10.5px;line-height:1.35;padding:7px 8px 0;color:#27314a;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:28px}
.product-price{font-size:12px;font-weight:800;padding:4px 8px 0;color:#0f1424}
.product-stock{font-size:9.5px;color:#0b7c56;padding:2px 8px 8px}
.product-catalog{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.product-catalog .product-name{font-size:12.5px;min-height:34px}
.product-catalog .product-price{font-size:14px}
.product-catalog .product-media{aspect-ratio:1/1}
.typing-dots{display:inline-flex;gap:4px;align-items:center;padding:4px 0}
.typing-dots span{background:#9aa6c0}
.suggestions{display:flex;gap:8px;padding:12px 18px 0;flex-wrap:wrap}
.chip{border:1px solid var(--line-strong);background:#fff;color:var(--ink-2);border-radius:999px;padding:7px 12px;font-size:11.5px;font-weight:600;transition:border-color .16s ease,background .16s ease,transform .16s ease}
.chip:hover{border-color:#b9c6ea;background:#f6f8ff;transform:translateY(-1px)}
.composer{display:flex;gap:10px;align-items:flex-end;padding:14px 18px 18px;border-top:1px solid var(--line);background:#fff}
.composer textarea{flex:1;resize:none;min-height:46px;max-height:150px;line-height:1.55;padding:12px 14px;border-radius:13px}
.chat-meta{font-size:10.5px;color:#9aa5bd;margin-top:6px}
.error-text{color:var(--danger);font-size:12px}

/* ---------- toast ---------- */
.toast{position:fixed;z-index:50;right:24px;bottom:24px;background:#0f1424;color:#eef1ff;border:1px solid #2a3350;border-radius:12px;padding:13px 16px;font-size:12.5px;box-shadow:var(--shadow-lg);max-width:min(380px,calc(100vw - 32px));animation:toastIn .32s cubic-bezier(.2,.7,.3,1) both}
.toast.error{background:#2a1117;border-color:#5a2530;color:#ffd9de}
.toast.ok{background:#0b1024;border-color:#1d2c66;color:#d1fae5}

/* ---------- storefront demo ---------- */
.storefront-main{max-width:1080px;margin:0 auto;padding:56px 24px 90px}
.storefront-main .eyebrow{margin-bottom:14px}
.storefront-heading{font-size:clamp(34px,5vw,58px);letter-spacing:-.045em;line-height:1.04;margin:0 0 16px}
.storefront-lead{color:var(--muted);font-size:16px;max-width:560px;line-height:1.7;margin:0 0 32px}
.storefront-main .split-layout{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.storefront-main .surface{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow-sm)}
.assistant-symbol img{width:44px;height:44px;margin-bottom:10px}
.storefront-main a{display:inline-block;margin-top:26px;font-size:13px}

/* ---------- motion ---------- */
@keyframes fadeUp{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:translateY(0)}}
@keyframes pop{from{opacity:0;transform:translateY(6px) scale(.985)}to{opacity:1;transform:none}}
@keyframes toastIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes pulseDot{0%,100%{opacity:1}50%{opacity:.45}}
@keyframes typing{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-4px);opacity:1}}
@keyframes shimmer{to{background-position:200% 0}}

/* ---------- responsive ---------- */
@media (max-width:1180px){
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hero-orbit{width:150px;height:150px}
}
@media (max-width:980px){
  .app{grid-template-columns:212px minmax(0,1fr)}
  .content{padding:24px 22px 48px}
  .topbar{padding:0 22px}
  .crumb{display:none}
  .grid-2{grid-template-columns:1fr}
  .product-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}
  .auth{grid-template-columns:1fr}
  .auth-visual{display:none}
}
@media (max-width:720px){
  .app{display:block}
  .sidebar{position:static;height:auto;padding:12px 12px 8px;border-radius:0 0 18px 18px}
  .brand{padding:4px 8px 12px;font-size:19px}
  .brand img{width:28px;height:28px}
  .nav{flex-direction:row;overflow-x:auto;padding-bottom:6px;gap:4px;scrollbar-width:none}
  .nav::-webkit-scrollbar{display:none}
  .navitem{padding:9px 11px;font-size:12px;white-space:nowrap;flex:0 0 auto}
  .navitem.is-active::before{display:none}
  .navitem svg{width:16px;height:16px}
  .nav-label{display:none}
  .sidebar-user{display:none}
  .topbar{height:62px;padding:0 16px;gap:8px}
  .topbar .crumb{display:none}
  .topbar h1{font-size:16px}
  .topbar-actions{gap:6px}
  .topbar .select{max-width:130px;font-size:12px}
  #topLogout{display:none}
  .content{padding:20px 16px 44px}
  .hero{padding:24px;flex-direction:column;align-items:flex-start}
  .hero-orbit{display:none}
  .metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .metric{padding:14px}
  .metric strong{font-size:25px}
  .form-row{grid-template-columns:1fr}
  .section-head{align-items:flex-start}
  .chat-shell{min-height:560px;border-radius:16px}
  .chat-messages{padding:16px;max-height:52vh}
  .bubble{max-width:94%;font-size:13px}
  .product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .product-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}
  .storefront-main .split-layout{grid-template-columns:1fr}
  .toast{right:16px;left:16px;bottom:16px}
  .auth-panel{padding:28px 20px}
}
@media (max-width:400px){
  .metrics{grid-template-columns:1fr}
  .topbar .select{max-width:110px}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}
}

/* Fenix commerce workspace — restrained surfaces, operational density. */
:root{--bg:#f6f7fb;--surface:#fff;--surface-2:#fbfcff;--ink:#0f1424;--ink-2:#333b4f;--muted:#79839a;--line:#e8eaf1;--line-strong:#dbe0eb;--brand:#2f5bff;--brand-2:#7c5cff;--brand-ink:#1b3bd1;--brand-soft:#eef2ff;--success:#0f9f6e;--success-soft:#e7f8f1;--danger:#dc3545;--danger-soft:#fdecee;--warn:#c07a12;--radius:8px;--radius-sm:5px;--shadow-sm:none;--shadow-md:none;font-family:Inter,"Segoe UI",-apple-system,BlinkMacSystemFont,Arial,sans-serif;font-synthesis:none}
body{background:var(--bg);font-size:14px}h1,h2,h3,h4,p{overflow-wrap:anywhere}::selection{background:#cbd6ef;color:#101838}:focus-visible{outline:3px solid #a9b8e8;outline-offset:3px}.skip-link{position:fixed;left:16px;top:-60px;z-index:100;background:var(--brand);color:white;padding:12px 20px;border-radius:4px}.skip-link:focus{top:12px}
.eyebrow{display:block;font-size:10px;line-height:1.5;font-weight:650;letter-spacing:.14em;color:var(--muted)}.btn{gap:12px;border-radius:5px;padding:10px 15px;font-size:12px;font-weight:600;line-height:1.4;transition:background .14s,border-color .14s}.btn:hover,.btn:active{transform:none}.btn-primary,.hero .btn-primary{background:var(--brand);color:#fff;border-color:var(--brand);box-shadow:none}.btn-primary:hover,.hero .btn-primary:hover{background:#2447d9;border-color:#2447d9;box-shadow:none}.btn-ghost,.hero .btn-ghost{background:#fff;border-color:var(--line-strong);color:var(--ink-2)}.btn-ghost:hover,.hero .btn-ghost:hover{background:#f5f7fc;border-color:#c3cbe0}.btn-danger{border-color:#f2d4cd}.btn-danger:hover{background:#fce3dd}.btn-sm{padding:7px 11px;font-size:11px;border-radius:5px}.btn-send{width:43px;height:43px;padding:0}.link-btn{font-size:11px;font-weight:600;white-space:nowrap}.icon-btn{width:32px;height:32px;border-radius:5px;flex:0 0 auto}.icon-btn:hover{background:#eef1f8}.icon-btn svg{width:17px;height:17px;stroke-width:1.7}.tag{border-radius:4px;padding:4px 7px;font-size:10px;font-weight:550;line-height:1.3;letter-spacing:0}.tag.ok{color:#0b7c56}.tag.muted{background:#f1f3f8;color:#64748b}.muted{font-size:11px;line-height:1.65}.code{background:#0d1322;color:#cdd8f4;border-radius:5px;line-height:1.7;border-color:#0d1322}code{background:#eef1f8;color:#26304a;border-radius:3px}
.auth{grid-template-columns:1.12fr 1fr;background:#fbfcff}.auth-visual{background:#101a3c;color:#fbfcff;padding:48px 64px;min-height:100vh}.auth-visual::after{content:"F";position:absolute;right:-47px;bottom:40px;font-family:Georgia,serif;font-size:600px;font-weight:400;line-height:1;color:#1e2a5a;pointer-events:none;z-index:0}.auth-brand{gap:10px;font-size:24px;font-weight:650;letter-spacing:-.055em;position:relative;z-index:1}.auth-brand img{width:32px;height:32px}.auth-brand em{font-weight:400;color:#c3cbe0;margin-left:4px}.auth-copy{max-width:570px;padding:64px 0}.auth-copy>.eyebrow{color:#c3cbe0}.auth-copy h1{font-family:Georgia,"Times New Roman",serif;font-size:clamp(44px,4.6vw,73px);line-height:1.06;letter-spacing:-.045em;margin:24px 0 27px;font-weight:400}.auth-copy h1 span{color:#c3cbe0}.auth-copy p{color:#c3cbe0;font-size:14px;line-height:1.8;max-width:390px}.auth-points{margin:40px 0 0;gap:0;color:#e0e5f1;font-size:12px;max-width:390px}.auth-points li{gap:16px;padding:13px 0;border-top:1px solid #64748b}.auth-number{font-family:Consolas,monospace;font-size:10px;color:#b9c2d6}.auth-foot{display:flex;justify-content:space-between;gap:20px;color:#b9c2d6;font-size:9px;letter-spacing:.09em;text-transform:none;margin:0}.auth-panel{padding:48px 40px;background:#fbfcff}.auth-card{max-width:350px;display:grid;gap:21px;animation:none}.auth-card-head>.eyebrow{margin-bottom:22px}.auth-card-head h2{font-size:32px;font-weight:500;letter-spacing:-.045em;margin:0 0 10px}.auth-card-head p{margin:0 0 12px;font-size:12px;line-height:1.6}.auth-card .field{gap:9px}.auth-card .field input{padding:12px 13px;background:#fff}.auth-card .btn{padding:13px 16px;justify-content:space-between}.auth-hint{margin:0;font-size:10px;line-height:1.8;max-width:320px}.form-error{border-color:#f2d4cd;color:#973c34;border-radius:5px;font-size:12px;margin:0;animation:none}
.app{grid-template-columns:236px minmax(0,1fr)}.sidebar{background:#fbfcff;color:var(--ink-2);padding:25px 16px 12px;border-right:1px solid var(--line);overflow-y:auto}.brand{gap:9px;color:#1b3bd1;font-size:23px;font-weight:650;letter-spacing:-.06em;padding:0 9px 27px}.brand img{width:29px;height:29px}.brand em{color:#64748b;font-size:20px;font-weight:400;margin-left:3px}.workspace-switch{display:grid;gap:6px;border:1px solid var(--line);padding:10px 11px;background:#f5f7fc;border-radius:6px;margin:0 2px 13px}.workspace-label{font-size:8px;font-weight:650;letter-spacing:.12em;color:#64748b}.workspace-switch select{border:0;background:transparent;width:100%;font-size:11px;font-weight:600;min-width:0;cursor:pointer;padding:0;color:#26304a}.nav{gap:2px}.navitem{gap:10px;color:#64748b;padding:10px 11px;border-radius:5px;font-size:11.5px;font-weight:500;transition:background .14s,color .14s}.navitem svg{width:17px;height:17px;stroke-width:1.6}.navitem:hover{background:#f1f3f8;color:#2447d9}.navitem.is-active{background:#eef2ff;color:#1b3bd1;font-weight:600;box-shadow:none}.navitem.is-active::before{display:none}.navitem.is-active::after{content:"";width:5px;height:5px;border-radius:50%;margin-left:auto;background:#0f9f6e}.navitem.is-active .nav-new{display:none}.nav-new{font-size:7px;letter-spacing:.05em;padding:2px 4px;border:1px solid #e0e5f1;color:#64748b;border-radius:3px;margin-left:auto}.nav-label{margin:18px 11px 7px;font-size:8px;font-weight:650;letter-spacing:.12em;color:#b9c2d6}.sidebar-note{margin-top:auto;padding:30px 9px 19px;display:flex;align-items:center;gap:10px}.sidebar-mark{font-family:Georgia,serif;font-size:27px;color:#b9c2d6}.sidebar-note div{display:grid;gap:3px}.sidebar-note strong{font-size:9px;color:#64748b;font-weight:600}.sidebar-note div>span{font-size:9px;color:#b9c2d6}.sidebar-user{margin-top:0;gap:9px;padding:13px 7px 4px;border-top:1px solid var(--line);color:#64748b}.avatar{width:31px;height:31px;border-radius:5px;background:#eef1f8;color:#64748b;font-weight:600;font-size:10px;box-shadow:none}.sidebar-user-copy{gap:3px}.sidebar-user-copy strong{font-size:10px;color:#26304a;font-weight:600}.sidebar-user-copy span{font-size:9px;color:#b9c2d6}.topbar{position:static;height:66px;padding:0 36px;background:var(--bg);border-bottom:1px solid var(--line);backdrop-filter:none}.topbar-title{align-items:center;gap:12px}.crumb{font-size:11px;color:#98a1b5}.crumb>span{margin-left:12px;color:#c3cbe0}.topbar h1{font-size:11px;letter-spacing:0;font-weight:550}.topbar-actions{gap:9px}#topLogout{display:none}.status-pill{gap:7px;border-radius:5px;padding:6px 9px;font-size:10px;font-weight:500;color:#64748b;background:#fbfcff;box-shadow:none}.status-pill .dot{width:5px;height:5px;background:#0f9f6e;box-shadow:none;animation:none}.status-pill.off .dot{box-shadow:none}.select,.field input,.field select,.field textarea,.searchbar input,.composer textarea{border-radius:5px;padding:10px 11px;font-size:12px;transition:border-color .14s}.select:hover,.field input:hover,.field select:hover,.field textarea:hover,.searchbar input:hover{border-color:#b9c2d6}.select:focus,.field input:focus,.field select:focus,.field textarea:focus,.searchbar input:focus,.composer textarea:focus{border-color:#64748b;box-shadow:0 0 0 3px #eef2ff}.content{padding:35px 36px 50px;max-width:1600px}.section{animation:none}.section-head{margin-bottom:25px}.section-head .eyebrow{margin-bottom:13px}.section-head h2{margin:0 0 9px;font-size:29px;letter-spacing:-.045em;font-weight:500;line-height:1.2}.section-head p{font-size:12px;line-height:1.65}.section-actions{display:flex;align-items:flex-end;gap:10px;flex-wrap:wrap}.section-actions .inline-field{display:grid;gap:5px;font-size:10px}.section-caption{display:flex;justify-content:space-between;gap:12px;margin:0 0 13px;font-size:9px;color:#98a1b5}.grid-2{gap:20px;margin-bottom:20px}.card{padding:23px;box-shadow:none;transition:none}.card:hover{box-shadow:none;border-color:var(--line)}.section>.card{margin-bottom:20px}.card-accent{background:#fbfcff;border-color:var(--line)}.card-head{margin-bottom:20px}.card-head h3{font-size:13px;letter-spacing:-.01em;font-weight:600}.card-head p{margin:5px 0 0}.card>h3{font-size:13px}.hero{background:transparent;color:var(--ink);padding:0;border:0;border-radius:0;box-shadow:none;margin-bottom:34px;overflow:visible}.hero-copy{max-width:620px}.hero .eyebrow{color:#98a1b5}.hero h2{margin:15px 0 10px;font-size:clamp(25px,2.6vw,38px);letter-spacing:-.055em;font-weight:500;line-height:1.15}.hero p{color:var(--muted);font-size:12px;line-height:1.65;max-width:none}.hero-actions{gap:9px;align-items:center;padding-top:12px;margin:0}.metrics{gap:0;margin-bottom:26px;background:#fff;border:1px solid var(--line);border-radius:8px;overflow:hidden}.metric{padding:23px 22px;gap:12px;border:0;border-right:1px solid var(--line);border-radius:0;min-width:0;box-shadow:none;transition:none}.metric:last-child{border:0}.metric:hover{transform:none;box-shadow:none}.metric::after{display:none}.metric-label{display:flex;justify-content:space-between;gap:7px;font-size:10px;font-weight:500;color:#64748b;text-transform:none;letter-spacing:0}.metric-label>span{font-size:8px;color:#b9c2d6;font-family:Consolas,monospace}.metric strong{font-size:31px;letter-spacing:-.055em;font-weight:500;overflow-wrap:anywhere}.metric small{color:#98a1b5;font-size:9px;line-height:1.4}.workspace-paths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid var(--line);margin-top:28px;padding-top:25px;gap:25px}.workspace-paths button{display:grid;gap:10px;border:0;padding:0 15px 0 0;background:transparent;text-align:left}.path-number{font-size:8px;letter-spacing:.1em;color:#98a1b5}.workspace-paths strong{font-size:13px;font-weight:550;display:flex;justify-content:space-between}.workspace-paths strong>span{color:#98a1b5}.workspace-paths button>span:last-child{color:#98a1b5;font-size:10px;line-height:1.7;max-width:250px}.workspace-paths button:hover strong{color:var(--brand)}
.list{gap:0}.list-scroll{max-height:350px;padding:0}.list-card{padding:15px 0;border:0;border-bottom:1px solid #eef1f8;border-radius:0;background:transparent;min-width:0;transition:none}.list-card:first-child{padding-top:2px}.list-card:last-child{border-bottom:0;padding-bottom:2px}.list-card:hover{border-color:#eef1f8;transform:none;background:transparent}.list-card h3,.list-card h4{margin:0 0 5px;font-size:12px;font-weight:550}.list-card p{font-size:10px;line-height:1.7}.list-card .meta{color:#98a1b5;font-size:9px;margin-top:4px}.list-card .button-row{margin:0;justify-content:flex-end;flex-shrink:0}.list-card .btn{font-size:9px;padding:6px 8px}.empty{margin:0;padding:38px 20px;color:#98a1b5;font-size:11px;line-height:1.8;border-color:#e0e5f1;border-radius:5px;background:#fbfcff}.checklist{gap:14px}.checklist li{font-size:11px;color:#64748b}.checklist .check{width:16px;height:16px;border-radius:50%;border:1px solid #d3daea}.checklist li.done .check{background:#e0e5f1;border-color:#d3daea}.checklist li.done .check::after{width:4px;height:7px;border-width:1.5px;border-color:#0f9f6e}.checklist li.done{color:#98a1b5;text-decoration:none}.card-accent>.muted{border-top:1px solid var(--line);padding-top:15px;margin:20px 0 0}.steps{gap:20px}.steps li{gap:7px 10px}.steps li::before{width:25px;height:25px;border-radius:4px;font-size:11px;font-weight:500;grid-row:span 2}.steps b{font-size:12px}.steps span{font-size:11px;line-height:1.6;grid-column:2}.callout{background:#f5f7fc;border-color:#e0e5f1;border-radius:5px;margin-top:24px}.callout strong{font-size:11px}.callout p{margin:5px 0 0;color:#64748b;font-size:11px;line-height:1.65}.budget{margin:8px 0 18px}.budget strong{font-size:31px;letter-spacing:-.045em;font-weight:500}.budget span{font-size:11px}.progress{height:5px;border-radius:4px;background:#eef1f8;margin-bottom:15px}.progress-fill{border-radius:4px;background:#64748b;transition:width .3s}.facts div{padding:13px 0}.facts dt{font-size:11px}.facts dd{font-size:11px;font-weight:550}.form{gap:16px}.form>.btn{justify-self:start}.form-row{gap:16px}.field{gap:7px;font-size:11px;font-weight:550;color:#64748b}.field small{color:#98a1b5;font-size:10px;line-height:1.6;font-weight:400}.field textarea{line-height:1.7}.inline-field{font-size:11px;font-weight:500}.inline-field .select{min-width:155px;max-width:280px}.searchbar{margin-bottom:22px}.button-row{margin-top:18px}.check-row{font-size:11px;font-weight:500;padding:5px 0}.check-row input{width:15px;height:15px}#documentList{max-height:620px;overflow:auto}#knowledgeSearchResults:empty{display:none}.notice-strip{display:flex;align-items:center;gap:15px;padding:17px 20px;border:1px solid #e0e5f1;border-radius:6px;background:#f5f7fc;margin-bottom:22px}.notice-icon{width:29px;height:29px;border:1px solid #d3daea;border-radius:5px;display:grid;place-items:center;color:#64748b;flex:0 0 auto}.notice-strip>div{display:grid;gap:5px;flex:1}.notice-strip strong{font-size:11px;font-weight:550;color:#64748b}.notice-strip div>span{font-size:10px;line-height:1.6;color:#98a1b5}
.policy-layout{display:grid;grid-template-columns:minmax(0,1fr) 255px;gap:27px}.policy-main{display:grid;gap:18px;min-width:0}.step-number{display:inline-block;font:10px Consolas,monospace;color:#b9c2d6;margin-right:14px}.choice-group{border:0;padding:0;margin:0;display:grid;gap:10px}.choice-group legend{font-size:10px;color:var(--muted);padding:0 0 12px}.choice-card{display:flex;align-items:flex-start;gap:11px;border:1px solid var(--line);border-radius:5px;padding:17px;cursor:pointer;background:#fff}.choice-card:has(input:checked){border-color:#b9c2d6;background:#fbfcff}.choice-card input{accent-color:var(--brand);margin:2px 0 0}.choice-card>span{display:grid;gap:8px}.choice-card strong{font-size:11px;font-weight:550;display:flex;align-items:center;gap:10px}.choice-card small{font-size:10px;line-height:1.7;color:#98a1b5;font-weight:400}.policy-scope{margin-top:23px}.policy-main .card>.muted{margin:14px 0 0}.toggle-row{display:flex;align-items:center;justify-content:space-between;gap:30px;cursor:pointer}.toggle-row>span{display:grid;gap:9px}.toggle-row strong{font-size:11px;font-weight:550}.toggle-row small{font-size:10px;line-height:1.7;color:#98a1b5;font-weight:400;max-width:500px}.toggle-row input{appearance:none;position:relative;width:36px;height:21px;background:#e0e5f1;border:1px solid #d3daea;border-radius:14px;flex:0 0 auto;cursor:pointer;margin:0}.toggle-row input::after{content:"";position:absolute;top:3px;left:3px;width:13px;height:13px;background:#fff;border-radius:50%;box-shadow:0 1px 2px #101a3c26;transition:transform .15s}.toggle-row input:checked{background:#0f9f6e;border-color:#0f9f6e}.toggle-row input:checked::after{transform:translateX(15px)}.policy-limits{margin-top:23px}.save-bar{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:7px 0}.save-bar>div{display:grid;gap:5px}.save-bar strong{font-size:11px;font-weight:550}.save-bar span{font-size:10px;color:var(--muted)}.policy-aside{padding:21px 0}.policy-aside h3{font-size:20px;font-family:Georgia,serif;font-weight:400;letter-spacing:-.025em;margin:12px 0 26px}.policy-path{list-style:none;padding:0;margin:0;counter-reset:policy}.policy-path li{position:relative;display:grid;gap:5px;padding:0 0 24px 33px;border-left:1px solid #d3daea;margin-left:8px}.policy-path li:last-child{border:0}.policy-path li::before{counter-increment:policy;content:counter(policy);position:absolute;left:-9px;top:-1px;width:18px;height:18px;border-radius:50%;background:#f6f7fb;border:1px solid #d3daea;color:#64748b;font-size:9px;display:grid;place-items:center}.policy-path b{font-size:10px;font-weight:550}.policy-path span{font-size:10px;line-height:1.7;color:#98a1b5}.policy-aside>p{font-size:10px;line-height:1.8;color:#98a1b5;border-top:1px solid var(--line);padding-top:20px;margin:6px 0 20px}.policy-aside .btn{font-size:10px}.policy-layout.is-loading{opacity:.55;pointer-events:none}
.activity-card{margin-bottom:20px}.chart-legend{display:flex;align-items:center;gap:7px;font-size:9px;color:#98a1b5}.chart-legend i{display:block;width:7px;height:7px;border-radius:2px;background:#64748b}.activity-chart{height:167px;display:flex;align-items:flex-end;gap:6px;border-bottom:1px solid #e0e5f1;padding:20px 2px 0;background:repeating-linear-gradient(to top,transparent 0,transparent 48px,#eef1f8 49px,#eef1f8 50px)}.activity-chart>.empty{width:100%;height:100%;display:grid;place-items:center;border:0;background:#fff}.chart-bar{position:relative;display:block;flex:1;min-width:2px;max-width:62px;background:#b9c2d6;border-radius:3px 3px 0 0;height:0;transition:height .2s}.chart-bar:nth-last-child(-n+7){background:#0f9f6e}.chart-bar:hover{background:#1b3bd1}.chart-bar>span{position:absolute;bottom:calc(100% + 5px);left:50%;transform:translateX(-50%);font-size:8px;color:#98a1b5;white-space:nowrap}.chart-axis{display:flex;justify-content:space-between;margin-top:10px;font-size:8px;color:#b9c2d6}.table-unit{font-size:8px;letter-spacing:.08em;color:#b9c2d6}.rank-list{display:grid;gap:0}.rank-row{display:flex;align-items:center;gap:12px;min-height:46px;border-top:1px solid #eef1f8;padding:10px 0}.rank-row:first-child{border:0}.rank-index{font:9px Consolas,monospace;color:#b9c2d6;width:16px;flex:0 0 auto}.rank-copy{display:grid;gap:4px;min-width:0;flex:1}.rank-copy strong{font-size:11px;line-height:1.6;font-weight:500;overflow-wrap:anywhere}.rank-copy small{font-size:9px;color:#b9c2d6;line-height:1.6}.rank-count{font-size:11px;font-variant-numeric:tabular-nums;color:#64748b;background:#f5f7fc;padding:4px 7px;border-radius:4px;min-width:28px;text-align:center}.decision-summary{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line);padding-top:18px;margin-top:15px;gap:12px}.decision-summary>div{display:grid;gap:9px}.decision-summary span{font-size:9px;color:#b9c2d6}.decision-summary strong{font-size:23px;font-weight:500;letter-spacing:-.04em}.data-footnote{font-size:10px;line-height:1.8;color:#98a1b5;max-width:850px}
.chat-shell{border-radius:8px;box-shadow:none}.chat-bar{background:#fbfcff}.chat-bar-note{font-size:10px}.chat-messages{padding:26px;gap:19px;background:#fff}.chat-empty{max-width:330px;animation:none}.chat-empty h3{margin:18px 0 8px;font-size:20px;letter-spacing:-.03em;font-weight:500}.chat-empty p{font-size:11px;line-height:1.8}.chat-empty img{opacity:.7;width:34px;height:34px;animation:none}.bubble{max-width:min(640px,86%);padding:14px 17px;border-radius:8px;font-size:12px;line-height:1.8;animation:none}.bubble.user{background:#2f5bff;border-bottom-right-radius:2px;box-shadow:none}.bubble.bot{background:#f5f7fc;border-color:#e0e5f1;border-bottom-left-radius:2px}.bubble.bot .cite{min-width:16px;height:16px;border-radius:3px;background:#e0e5f1;color:#64748b;font-size:9px;font-weight:600}.bubble .bubble-sources{margin-top:12px;border-top:1px solid #e0e5f1}.source-chip{border-color:#e0e5f1;border-radius:4px;padding:4px 7px;font-size:9px;color:#64748b}.source-chip b{font-weight:500;color:#1b3bd1}.product-grid{border-top:1px solid #e0e5f1}.product-card{border-color:var(--line);border-radius:6px;padding-bottom:8px;transition:border-color .14s}.product-card:hover{border-color:#b9c2d6;transform:none;box-shadow:none}.product-media{background:#f5f7fc}.product-media img{object-fit:contain}.product-media.is-empty::after{content:"No image";font-size:9px;color:#b9c2d6;font-weight:400;letter-spacing:0}.product-name{font-size:10px;line-height:1.5;padding:11px 12px 0;color:#26304a;min-height:30px}.product-price{font-size:12px;font-weight:550;padding:7px 12px 0;color:#26304a}.product-stock{font-size:9px;color:#64748b;padding:5px 12px 4px}.product-catalog{gap:16px}.product-catalog .product-name{font-size:11px;min-height:36px}.typing-dots span{width:5px;height:5px;background:#98a1b5}.suggestions{padding:12px 18px}.chip{color:#64748b;border-radius:4px;padding:7px 10px;font-size:10px;font-weight:400;transition:background .14s}.chip:hover{background:#f5f7fc;border-color:#b9c2d6;transform:none}.composer{padding:15px 18px}.composer textarea{min-height:43px;line-height:1.65;padding:11px 13px}.chat-meta{font-size:9px;color:#98a1b5;margin-top:9px}.error-text{font-size:11px}
.conversation-dialog{width:min(780px,calc(100vw - 32px));max-height:85vh;border:1px solid var(--line);border-radius:10px;padding:0;background:#fff;color:var(--ink);box-shadow:0 24px 80px #101a3c33}.conversation-dialog::backdrop{background:#101a3c66;backdrop-filter:blur(2px)}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:23px 25px;border-bottom:1px solid var(--line);position:sticky;top:0;background:#fff}.dialog-header h2{font-size:16px;letter-spacing:-.025em;font-weight:550;margin:8px 0 0;overflow-wrap:anywhere}.conversation-detail{padding:24px;display:flex;flex-direction:column;gap:14px}.conversation-detail .bubble{max-width:92%}.record-meta{padding:12px 0;color:var(--muted);font-size:10px;line-height:1.8;border-bottom:1px solid var(--line)}.record-label{font-size:9px;color:#98a1b5;text-transform:uppercase;letter-spacing:.08em;margin-bottom:6px}.record-telemetry{border-top:1px solid var(--line);padding-top:18px}.record-telemetry h3{font-size:12px;font-weight:550;margin:0 0 14px}.record-telemetry .list-card p{font-size:10px}.toast{background:#0b1024;color:#eef1f8;border-color:#64748b;border-radius:6px;padding:14px 18px;font-size:11px;line-height:1.6;box-shadow:0 8px 30px #101a3c26;animation:none}.toast.error{background:#fff3ef;border-color:#dba99c;color:#934331}.toast.ok{background:#f5f7fc;border-color:#c3cbe0;color:#1b3bd1}
@media(min-width:1600px){.content{padding-top:44px}.hero{margin-bottom:41px}.card{padding:26px}.metric{padding:26px}.activity-chart{height:195px}}
@media(min-width:1001px){.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1220px){.app{grid-template-columns:218px minmax(0,1fr)}.sidebar{padding-left:12px;padding-right:12px}.content{padding:28px}.topbar{padding:0 28px}.hero{align-items:flex-start}.hero-actions{padding-top:28px}.hero h2{font-size:30px}.metric{padding:20px 16px}.metric strong{font-size:27px}.policy-layout{grid-template-columns:minmax(0,1fr) 210px;gap:20px}.policy-aside{padding-top:16px}.section-actions{gap:8px}.intelligence-metrics .metric{padding:20px 13px}}
@media(max-width:1000px){.app{grid-template-columns:200px minmax(0,1fr)}.sidebar{padding-left:9px;padding-right:9px}.navitem{font-size:10px;gap:8px}.navitem svg{width:15px;height:15px}.content{padding:26px 22px}.topbar{padding:0 22px}.hero{flex-direction:column;gap:15px}.hero-actions{padding-top:0}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.metric:nth-child(2){border-right:0}.metric:nth-child(-n+2){border-bottom:1px solid var(--line)}.grid-2{gap:16px}.card{padding:19px}.policy-layout{grid-template-columns:1fr}.policy-aside{display:none}.workspace-paths{gap:18px}.workspace-paths strong{font-size:11px}.workspace-paths button>span:last-child{font-size:9px}.product-catalog{grid-template-columns:repeat(3,minmax(0,1fr))}.auth-visual{padding:40px}.auth-copy h1{font-size:53px}.auth-foot{flex-direction:column;gap:6px}.notice-strip{flex-wrap:wrap}.notice-strip .link-btn{margin-left:44px}.activity-chart{gap:4px}.list-card .button-row{max-width:100px}.inline-field .select{min-width:130px}.policy-main .card{padding:23px}}
@media(max-width:800px){.grid-2{grid-template-columns:1fr}.auth{grid-template-columns:1fr}.auth-visual{display:none}.auth-panel{min-height:100vh}.auth-card{max-width:360px}.workspace-paths{grid-template-columns:1fr;gap:24px}.workspace-paths button>span:last-child{max-width:none}.workspace-paths strong{font-size:13px}.workspace-paths button>span:last-child{font-size:10px}.hero h2{font-size:28px}.section-head h2{font-size:26px}.topbar .crumb{display:none}.topbar-actions .status-pill{display:none}.product-catalog{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:621px) and (max-width:720px){.app{display:grid}.sidebar{position:sticky;height:100vh;border-radius:0;padding-top:25px}.nav{flex-direction:column;overflow:visible}.navitem{width:100%}.nav-label,.sidebar-user{display:flex}.nav-label{margin-top:18px}.brand{padding-bottom:27px}.sidebar-user{margin-top:0}}
@media(max-width:620px){.app{display:block}.sidebar{position:static;height:auto;padding:17px 15px 0;overflow:visible;border-right:0;border-bottom:1px solid var(--line);border-radius:0}.brand{padding:0 0 18px;font-size:22px}.brand img{width:26px;height:26px}.workspace-switch{position:absolute;right:15px;top:12px;margin:0;max-width:190px;padding:7px 10px}.workspace-label{font-size:7px}.workspace-switch select{font-size:10px}.nav{flex-direction:row;overflow-x:auto;padding:3px 0 11px;gap:4px;scrollbar-width:thin;scrollbar-color:#d3daea transparent}.navitem{padding:9px 10px;font-size:10px;white-space:nowrap;flex:0 0 auto;width:auto}.navitem.is-active::after,.nav-new,.nav-label,.sidebar-user,.sidebar-note{display:none}.navitem svg{width:15px;height:15px}.topbar{height:53px;padding:0 17px}.topbar h1{font-size:10px}.topbar .btn{font-size:9px;padding:6px 9px}.content{padding:25px 17px 40px}.hero{gap:18px;margin-bottom:26px;padding:0}.hero h2{font-size:29px}.hero .eyebrow{font-size:8px}.hero p{font-size:11px}.section-caption{font-size:8px}.metric{padding:20px 16px;gap:12px}.metric strong{font-size:28px}.metric-label{font-size:9px}.metric small{font-size:8px}.card{padding:20px}.section-head{align-items:flex-start;gap:17px}.section-head h2{font-size:27px}.section-head p{font-size:11px}.section-head .eyebrow{font-size:8px}.section-actions{width:100%;align-items:flex-end}.section-actions .inline-field{flex:1}.section-actions .select{max-width:100%;font-size:10px}.section-actions>.btn{font-size:10px}.form-row{grid-template-columns:1fr}.inline-field .select{max-width:200px}.notice-strip{padding:15px;gap:10px}.notice-strip strong{font-size:10px}.notice-strip div>span{font-size:9px}.notice-strip .link-btn{margin-left:38px;font-size:9px}.notice-icon{width:26px;height:26px}.policy-main .card{padding:19px}.policy-main .card-head{margin-bottom:17px}.policy-limits{margin-top:16px}.toggle-row{gap:15px}.save-bar{align-items:flex-start}.save-bar span{font-size:9px}.save-bar .btn{font-size:11px}.chart-bar>span{display:none}.activity-chart{gap:3px;height:145px}.chat-shell{min-height:560px;border-radius:8px}.chat-messages{padding:18px;max-height:52vh}.chat-bar{padding:12px;gap:8px}.chat-bar-note{display:none}.chat-bar>.btn{margin-left:auto}.bubble{max-width:94%;font-size:12px}.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.product-catalog{gap:12px}.composer{padding:12px}.suggestions{padding:12px}.chip{font-size:9px}.auth-panel{padding:30px}.conversation-dialog{max-height:90vh}.dialog-header{padding:20px}.conversation-detail{padding:18px}.rank-copy strong{font-size:10px}.list-card .button-row{max-width:none}.workspace-paths{margin-top:24px;padding-top:24px}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Keep dense controls readable at standard desktop and mobile zoom. */
:root{--muted:#64748b}.navitem{font-size:12px}.nav-label,.workspace-label{font-size:9px;color:#64748b}.workspace-switch select{font-size:12px}.metric-label{font-size:11px}.metric small,.section-caption,.data-footnote,.field small,.save-bar span,.rank-copy small,.chart-axis,.chart-legend,.table-unit,.path-number,.workspace-paths button>span:last-child,.sidebar-user-copy span,.sidebar-note div>span,.list-card .meta{color:#64748b;font-size:10px}.sidebar-user-copy strong{font-size:11px}.list-card h3,.list-card h4{font-size:13px}.list-card p{font-size:11px}.card-head h3{font-size:14px}.rank-copy strong{font-size:12px}.field{font-size:12px}.select,.field input,.field select,.field textarea,.searchbar input{font-size:13px}.choice-card strong,.toggle-row strong{font-size:12px}.choice-card small,.toggle-row small,.policy-path span,.policy-aside>p,.notice-strip div>span{font-size:11px;color:#64748b}.policy-path b{font-size:11px}.policy-main .card>.muted{font-size:11px}.notice-strip strong{font-size:12px}.checklist li{font-size:12px}.checklist li.done{color:#64748b}.eyebrow,.hero .eyebrow,.section-head .eyebrow{color:#64748b;font-size:10px}.auth-copy>.eyebrow{color:#c3cbe0}.auth-hint{font-size:11px}.auth-card-head p{font-size:13px}.hero p,.section-head p{font-size:13px}.chart-bar:focus-visible{outline:2px solid var(--brand);outline-offset:2px}.record-label,.chat-meta{color:#64748b}.bubble.user .record-label,.bubble.user .chat-meta{color:#cbd6ef}.status-pill.off{color:#64748b}.decision-summary span{font-size:10px;color:#64748b}.rank-index{color:#64748b}.empty{color:#64748b}.section-actions .inline-field{font-size:11px}.list-card .btn{font-size:10px}.product-stock{color:#64748b}.product-catalog .product-name{font-size:12px}.auth-card .field input{font-size:14px}
@media(max-width:1000px){.navitem{font-size:11px}.workspace-switch select{font-size:11px}.rank-copy strong{font-size:11px}.section-head p,.hero p{font-size:12px}}
@media(max-width:620px){.navitem{font-size:11px}.workspace-switch{max-width:180px}.workspace-switch select{font-size:11px}.workspace-label{font-size:8px}.section-caption{font-size:9px}.metric small{font-size:10px}.section-actions .select{font-size:12px}.notice-strip strong{font-size:11px}.notice-strip div>span{font-size:10px}.field input,.field select,.field textarea,.searchbar input,.composer textarea{font-size:16px}.field select{font-size:13px}.topbar h1{font-size:11px}.topbar .btn{font-size:10px}}

/* Assistant behavior & models */
.prompt-card{align-items:flex-start}.prompt-card .copy{flex:1}.prompt-card .copy p{white-space:pre-wrap}.prompt-card .button-row{margin-top:2px;flex-wrap:nowrap}
.prompt-draft{display:grid;gap:10px;border:1px dashed var(--line-strong);border-radius:8px;padding:14px;background:var(--surface-2)}.prompt-draft input,.prompt-draft textarea{width:100%;background:#fff;border:1px solid var(--line-strong);border-radius:6px;padding:9px 10px;font-size:12px;color:var(--ink)}.prompt-draft textarea{resize:vertical;min-height:80px}
.list-card.is-active-model{border-color:var(--brand);background:var(--brand-soft)}
