:root {
  color-scheme: light;
  --ink: #17201b;
  --ink-soft: #68736c;
  --paper: #f6f7f3;
  --surface: #ffffff;
  --surface-soft: #eef1ec;
  --line: #dde2db;
  --line-strong: #cbd3ca;
  --navy: #101713;
  --navy-2: #18211c;
  --green: #22c55e;
  --green-deep: #16a34a;
  --green-soft: #f0fdf4;
  --danger: #b83b42;
  --amber: #e9a23b;
  --shadow: 0 20px 55px rgba(19, 31, 23, .12);
  --shadow-soft: 0 8px 28px rgba(19, 31, 23, .07);
  --radius: 14px;
  --sidebar: 252px;
  font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html, body { width: 100%; min-height: 100%; margin: 0; }
body { background: var(--paper); color: var(--ink); overflow: auto; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button, label { -webkit-tap-highlight-color: transparent; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid rgba(36, 120, 71, .18); outline-offset: 2px; }
[hidden] { display: none !important; }
.svg-sprite { position: fixed; width: 0; height: 0; overflow: hidden; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Marketing homepage */
.landing-view {
  --landing-ink: #101b16;
  --landing-muted: #66736c;
  --landing-green: #16a34a;
  --landing-lime: #22c55e;
  background: #f8f9f5;
  color: var(--landing-ink);
  min-height: 100vh;
  overflow: clip;
}
.landing-nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(248,249,245,.88);
  border-bottom: 1px solid rgba(16,27,22,.09);
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 max(28px, calc((100vw - 1240px) / 2));
  position: sticky;
  top: 0;
  z-index: 15;
}
.landing-wordmark {
  align-items: baseline;
  color: var(--landing-ink);
  display: inline-flex;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.06em;
  line-height: 1;
  text-decoration: none;
}
.landing-wordmark > span { color: var(--landing-green); }
.landing-wordmark small { color: #76817b; font-size: 9px; font-weight: 750; letter-spacing: .08em; margin-left: 9px; text-transform: uppercase; }
.landing-nav nav { align-items: center; display: flex; gap: 3px; }
.landing-nav nav a { border-radius: 99px; color: #59665f; font-size: 13px; font-weight: 650; padding: 9px 14px; text-decoration: none; transition: background-color .16s ease, color .16s ease; }
.landing-nav nav a:hover { background: #edf0eb; color: var(--landing-ink); }
.landing-nav-actions { align-items: center; display: flex; gap: 8px; }
.landing-signin { background: transparent; border: 0; border-radius: 99px; cursor: pointer; font-size: 13px; font-weight: 700; padding: 10px 14px; }
.landing-signin:hover { background: #edf0eb; }
.landing-start {
  align-items: center;
  background: var(--landing-ink);
  border: 1px solid var(--landing-ink);
  border-radius: 99px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 750;
  gap: 20px;
  justify-content: space-between;
  min-height: 52px;
  padding: 0 18px 0 22px;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.landing-start:hover { background: #1b2b23; border-color: #1b2b23; transform: translateY(-1px); }
.landing-start svg { color: var(--landing-lime); transition: transform .16s ease; }
.landing-start:hover svg { transform: translateX(2px); }
.landing-start.small { font-size: 12px; gap: 12px; min-height: 40px; padding: 0 14px 0 17px; }
.landing-hero {
  background:
    radial-gradient(circle at 82% 16%, rgba(80,205,116,.1), transparent 27%),
    linear-gradient(rgba(16,27,22,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16,27,22,.035) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  display: grid;
  gap: clamp(54px, 7vw, 108px);
  grid-template-columns: minmax(0,.88fr) minmax(500px,1.12fr);
  margin: 0 auto;
  max-width: 1440px;
  min-height: 740px;
  padding: 94px max(32px, calc((100vw - 1240px) / 2)) 105px;
  position: relative;
}
.landing-hero::after { background: linear-gradient(90deg, transparent, rgba(16,27,22,.11), transparent); bottom: 0; content: ""; height: 1px; left: 50%; position: absolute; transform: translateX(-50%); width: min(1240px, calc(100% - 64px)); }
.landing-hero-copy { align-self: center; max-width: 600px; }
.landing-kicker { align-items: center; color: var(--landing-green); display: flex; font-size: 10px; font-weight: 800; gap: 10px; letter-spacing: .17em; text-transform: uppercase; }
.landing-kicker > span { background: currentColor; height: 1px; width: 28px; }
.landing-hero h1 { font-size: clamp(58px, 6.1vw, 92px); font-weight: 620; letter-spacing: -.072em; line-height: .91; margin: 26px 0 30px; }
.landing-hero h1 em { color: var(--landing-green); font-style: normal; }
.landing-hero-copy > p { color: var(--landing-muted); font-size: 17px; line-height: 1.7; margin: 0; max-width: 565px; }
.landing-hero-actions { align-items: center; display: flex; gap: 22px; margin-top: 38px; }
.landing-link { border-bottom: 1px solid #aab4ae; color: var(--landing-ink); font-size: 13px; font-weight: 750; padding: 8px 0 5px; text-decoration: none; transition: border-color .16s ease; }
.landing-link:hover { border-color: var(--landing-ink); }
.landing-trust { align-items: center; color: #718078; display: flex; flex-wrap: wrap; font-size: 10px; font-weight: 650; gap: 18px; margin-top: 34px; }
.landing-trust span { align-items: center; display: inline-flex; gap: 6px; }
.landing-trust svg { color: var(--landing-green); height: 13px; stroke-width: 2.3; width: 13px; }
.product-preview {
  align-self: center;
  background: #fafbf8;
  border: 1px solid #dce2dc;
  border-radius: 22px;
  box-shadow: 0 28px 80px rgba(21,39,29,.15), 0 3px 12px rgba(21,39,29,.06);
  min-height: 540px;
  overflow: hidden;
  position: relative;
}
.product-preview::before { border: 1px solid rgba(31,138,82,.22); border-radius: 26px; content: ""; inset: -10px; pointer-events: none; position: absolute; }
.preview-chrome { align-items: center; background: #fff; border-bottom: 1px solid #e1e6e0; color: var(--landing-ink); display: flex; height: 64px; justify-content: space-between; padding: 0 18px; }
.preview-brand { align-items: center; color: #69766f; display: flex; font-size: 11px; gap: 10px; }
.preview-brand b { color: var(--landing-ink); font-size: 12px; }
.preview-brand i { background: #dce2dc; height: 17px; width: 1px; }
.preview-mark, .preview-ai { align-items: center; background: #142119; border-radius: 8px; color: var(--landing-lime); display: flex; font-size: 12px; font-weight: 850; height: 30px; justify-content: center; letter-spacing: -.04em; width: 36px; }
.preview-ai { background: #def3e3; color: #17683a; }
.preview-source { align-items: center; background: #edf7ef; border: 1px solid #d3e9d8; border-radius: 99px; color: #39744e; display: flex; font-size: 9px; font-weight: 700; gap: 7px; padding: 7px 10px; }
.preview-source > span { background: #45b56c; border-radius: 50%; box-shadow: 0 0 0 3px rgba(69,181,108,.12); height: 5px; width: 5px; }
.preview-thread { padding: 34px 34px 88px; }
.preview-label { color: #8a958f; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.preview-question { background: #eef2ed; border-radius: 14px 14px 3px 14px; color: #26312b; font-size: 13px; line-height: 1.5; margin: 20px 0 28px auto; max-width: 74%; padding: 13px 15px; }
.preview-answer { display: grid; gap: 12px; grid-template-columns: 36px minmax(0,1fr); }
.preview-answer-head { align-items: center; display: flex; justify-content: space-between; margin: 0 0 8px; }
.preview-answer-head b { color: #1c2922; font-size: 11px; }
.preview-answer-head span { color: #77837c; font-size: 8px; }
.preview-answer p { color: #4d5b53; font-size: 11px; line-height: 1.68; margin: 1px 0 17px; }
.preview-answer p b { color: #16231c; font-weight: 750; }
.preview-findings { display: grid; gap: 6px; grid-template-columns: repeat(3,1fr); }
.preview-findings span { background: #fff; border: 1px solid #e0e5df; border-radius: 9px; color: #405047; display: grid; font-size: 9px; font-weight: 700; gap: 9px; padding: 11px; }
.preview-findings small { color: var(--landing-green); font-size: 8px; letter-spacing: .08em; }
.preview-citations { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.preview-citations span { border-bottom: 1px solid #bddcc5; color: #267444; font-size: 8px; font-weight: 700; padding: 4px 0 3px; }
.preview-composer { align-items: center; background: #fff; border: 1px solid #dce2dc; border-radius: 12px; bottom: 18px; box-shadow: 0 8px 22px rgba(21,39,29,.08); color: #929c96; display: flex; font-size: 10px; justify-content: space-between; left: 22px; min-height: 53px; padding: 0 8px 0 15px; position: absolute; right: 22px; }
.preview-composer button { align-items: center; background: #17241d; border: 0; border-radius: 9px; color: var(--landing-lime); display: flex; height: 37px; justify-content: center; width: 37px; }
.landing-proof { background: #111c17; color: white; padding: 30px max(32px, calc((100vw - 1240px) / 2)) 36px; }
.landing-proof > p { color: rgba(255,255,255,.42); font-size: 9px; font-weight: 800; letter-spacing: .16em; margin: 0 0 23px; text-transform: uppercase; }
.proof-grid { display: grid; grid-template-columns: repeat(4,1fr); }
.proof-grid > div { border-left: 1px solid rgba(255,255,255,.11); display: grid; gap: 4px; padding: 0 28px; }
.proof-grid > div:first-child { border-left: 0; padding-left: 0; }
.proof-grid strong { font-size: clamp(20px,2.2vw,29px); font-weight: 590; letter-spacing: -.04em; }
.proof-grid span { color: rgba(255,255,255,.48); font-size: 10px; }
.landing-section { margin: 0 auto; max-width: 1240px; padding: 120px 32px; }
.section-intro { display: grid; gap: 36px 70px; grid-template-columns: 1.1fr .9fr; margin-bottom: 58px; }
.section-intro .landing-kicker { grid-column: 1 / -1; }
.section-intro h2 { font-size: clamp(46px,5vw,70px); font-weight: 590; letter-spacing: -.065em; line-height: .98; margin: 0; }
.section-intro > p { align-self: end; color: var(--landing-muted); font-size: 15px; line-height: 1.72; margin: 0 0 5px; max-width: 455px; }
.intelligence-grid { display: grid; gap: 16px; grid-template-columns: 1.08fr .92fr; }
.intelligence-card { background: #fff; border: 1px solid #dfe4de; border-radius: 16px; min-height: 350px; overflow: hidden; padding: 30px; position: relative; }
.intelligence-card.wide-card { grid-column: 1 / -1; }
.card-index { color: #87938c; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.intelligence-card h3 { font-size: 28px; font-weight: 620; letter-spacing: -.045em; line-height: 1.08; margin: 24px 0 13px; max-width: 470px; }
.intelligence-card p { color: var(--landing-muted); font-size: 13px; line-height: 1.68; margin: 0; max-width: 520px; }
.dark-card { background: #111c17; color: #fff; display: grid; grid-template-columns: .8fr 1.2fr; min-height: 390px; padding: 42px; }
.dark-card .card-index { color: var(--landing-lime); grid-column: 1 / -1; }
.dark-card h3 { align-self: center; font-size: clamp(37px,4vw,56px); margin: 0; }
.dark-card > p { align-self: center; color: rgba(255,255,255,.54); font-size: 14px; justify-self: end; max-width: 420px; }
.logic-map { align-items: center; align-self: end; display: flex; grid-column: 1 / -1; margin-top: 50px; }
.logic-map span { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.14); border-radius: 8px; color: rgba(255,255,255,.72); flex: 1; font-size: 10px; padding: 14px 10px; text-align: center; }
.logic-map i { background: rgba(139,234,159,.42); height: 1px; width: 26px; }
.card-icon { align-items: center; background: #eaf6ed; border-radius: 12px; color: var(--landing-green); display: flex; height: 48px; justify-content: center; margin-top: 62px; width: 48px; }
.evidence-stack { bottom: 28px; display: flex; left: 30px; position: absolute; right: 30px; }
.evidence-stack span { background: #f4f6f2; border: 1px solid #dfe5df; border-radius: 7px; color: #5d6a63; flex: 1; font-size: 9px; margin-left: -7px; padding: 10px; text-align: center; }
.evidence-stack span:first-child { background: #e6f5e9; border-color: #c7e5ce; color: #237443; margin-left: 0; position: relative; z-index: 3; }
.evidence-stack span:nth-child(2) { position: relative; z-index: 2; }
.change-lines { align-items: end; bottom: 28px; display: flex; gap: 8px; height: 72px; left: 30px; position: absolute; right: 30px; }
.change-lines i { background: #dfe7df; border-radius: 3px 3px 0 0; flex: 1; height: 42%; }
.change-lines i:nth-child(2) { height: 65%; } .change-lines i:nth-child(3) { background: #8edba1; height: 54%; } .change-lines i:nth-child(4) { background: #3c9a60; height: 88%; } .change-lines i:nth-child(5) { height: 70%; }
.prompt-card { align-items: center; display: grid; gap: 70px; grid-template-columns: 1fr 1fr; min-height: 330px; padding: 42px; }
.prompt-card h3 { font-size: 34px; }
.prompt-list { display: grid; gap: 8px; }
.prompt-list span { align-items: center; background: #f5f7f3; border: 1px solid #e0e5df; border-radius: 9px; color: #536158; display: flex; font-size: 11px; justify-content: space-between; padding: 14px 15px; }
.prompt-list svg { color: var(--landing-green); height: 14px; width: 14px; }
.landing-manifesto { align-items: center; background: #dff3e4; display: grid; gap: 70px; grid-template-columns: auto minmax(0,1050px); justify-content: center; padding: 94px 32px; }
.manifesto-mark { align-items: center; background: #111c17; border-radius: 18px; color: var(--landing-lime); display: flex; font-size: 30px; font-weight: 850; height: 86px; justify-content: center; letter-spacing: -.08em; width: 100px; }
.landing-manifesto blockquote { color: #26372e; font-size: clamp(30px,3.4vw,48px); font-weight: 520; letter-spacing: -.045em; line-height: 1.16; margin: 0; }
.landing-manifesto em { color: #678071; font-style: normal; }
.landing-manifesto strong { color: var(--landing-green); font-weight: 650; }
.section-intro.compact { display: block; }
.section-intro.compact h2 { margin-top: 24px; }
.workflow-grid { border-bottom: 1px solid #dce2dc; border-top: 1px solid #dce2dc; display: grid; grid-template-columns: repeat(3,1fr); }
.workflow-grid article { min-height: 300px; padding: 31px 34px; position: relative; }
.workflow-grid article + article { border-left: 1px solid #dce2dc; }
.workflow-grid article > span { color: #8a958f; font-size: 9px; font-weight: 800; letter-spacing: .12em; position: absolute; right: 24px; top: 25px; }
.workflow-icon { align-items: center; background: #111c17; border-radius: 12px; color: var(--landing-lime); display: flex; height: 48px; justify-content: center; margin: 46px 0 43px; width: 48px; }
.workflow-grid h3 { font-size: 21px; letter-spacing: -.035em; margin: 0 0 10px; }
.workflow-grid p { color: var(--landing-muted); font-size: 12px; line-height: 1.65; margin: 0; max-width: 270px; }
.landing-final-cta { align-items: end; background: #111c17; border-radius: 20px; color: #fff; display: flex; justify-content: space-between; margin: 0 auto 26px; max-width: 1240px; overflow: hidden; padding: 62px; position: relative; }
.landing-final-cta::after { background: radial-gradient(circle, rgba(139,234,159,.18), transparent 66%); content: ""; height: 420px; pointer-events: none; position: absolute; right: -70px; top: -170px; width: 420px; }
.landing-kicker.light { color: var(--landing-lime); }
.landing-final-cta h2 { font-size: clamp(39px,4.7vw,64px); font-weight: 570; letter-spacing: -.06em; line-height: .98; margin: 25px 0 0; }
.light-button { background: var(--landing-lime); border-color: var(--landing-lime); color: #132319; min-width: 210px; position: relative; z-index: 1; }
.light-button svg { color: #132319; }
.light-button:hover { background: #a0f0af; border-color: #a0f0af; }
.landing-footer { align-items: center; display: grid; gap: 28px; grid-template-columns: 1fr auto 1fr; margin: 0 auto; max-width: 1240px; padding: 34px 0 42px; }
.landing-footer p { color: #7d8982; font-size: 10px; margin: 0; }
.landing-footer button { align-items: center; background: transparent; border: 0; color: #56645c; cursor: pointer; display: flex; font-size: 11px; gap: 7px; justify-self: end; }
.landing-footer button svg { color: var(--landing-green); height: 14px; width: 14px; }

.wordmark {
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
  font-family: "Arial Black", "Segoe UI Black", sans-serif;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -.095em;
  line-height: 1;
  text-decoration: none;
}
.wordmark-light { color: #f8fff9; }
.cici-wordmark { align-items: center; gap: 9px; letter-spacing: -.075em; }
.cici-wordmark img { display: block; height: 31px; width: 31px; }
.eyebrow { color: var(--green-deep); font-size: 10px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow.light { color: var(--green); }
.muted { color: var(--ink-soft); }

.auth-view { display: grid; min-height: 100vh; grid-template-columns: minmax(500px, .92fr) minmax(480px, 1.08fr); }
.auth-brand-panel {
  background:
    radial-gradient(circle at 78% 18%, rgba(126, 227, 154, .13), transparent 26%),
    linear-gradient(145deg, rgba(255,255,255,.025), transparent 45%),
    var(--navy);
  color: white;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  padding: 38px 48px 32px;
  position: relative;
}
.auth-brand-panel::before { background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 48px 48px; content: ""; inset: 0; mask-image: linear-gradient(to bottom, transparent, black 45%, transparent); position: absolute; }
.auth-brand-copy { margin: auto 0 34px; max-width: 590px; position: relative; z-index: 1; }
.auth-brand-copy h1 { font-size: clamp(46px, 4.4vw, 66px); font-weight: 650; letter-spacing: -.055em; line-height: .98; margin: 18px 0 22px; }
.auth-brand-copy p { color: rgba(255,255,255,.58); font-size: 16px; line-height: 1.65; margin: 0; max-width: 470px; }
.signal-card { align-self: flex-end; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; box-shadow: 0 18px 60px rgba(0,0,0,.17); margin-bottom: 22px; padding: 16px; width: min(360px, 76%); }
.signal-head, .signal-foot { align-items: center; display: flex; font-size: 12px; justify-content: space-between; }
.signal-head { color: rgba(255,255,255,.62); }
.signal-head .live-dot { align-items: center; display: flex; gap: 6px; }
.signal-head .live-dot::before { background: var(--green); border-radius: 50%; box-shadow: 0 0 0 4px rgba(71,232,124,.12); content: ""; height: 6px; width: 6px; }
.signal-bars { align-items: end; display: flex; gap: 7px; height: 64px; margin: 16px 0 12px; }
.signal-bars i { animation: signal-settle .55s both; background: linear-gradient(180deg, var(--green), rgba(126,227,154,.15)); border-radius: 3px 3px 1px 1px; flex: 1; height: var(--h); opacity: .78; transform-origin: bottom; }
.signal-bars i:nth-child(2) { animation-delay: .03s; } .signal-bars i:nth-child(3) { animation-delay: .06s; } .signal-bars i:nth-child(4) { animation-delay: .09s; } .signal-bars i:nth-child(5) { animation-delay: .12s; } .signal-bars i:nth-child(6) { animation-delay: .15s; } .signal-bars i:nth-child(7) { animation-delay: .18s; } .signal-bars i:nth-child(8) { animation-delay: .21s; }
.signal-foot { color: rgba(255,255,255,.72); }
.signal-foot b { color: var(--green); }
.auth-proof-card { align-self: flex-end; background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; margin-bottom: 22px; padding: 17px; width: min(430px,82%); }
.auth-proof-card > span { color: rgba(255,255,255,.38); font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.auth-proof-card > div { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; margin-top: 14px; }
.auth-proof-card b { background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.07); border-radius: 7px; color: rgba(255,255,255,.72); font-size: 10px; font-weight: 650; padding: 10px; }
.auth-legal { color: rgba(255,255,255,.34); font-size: 11px; margin: 0; }
.auth-form-panel { align-items: center; background: var(--paper); display: flex; justify-content: center; min-height: 100vh; padding: 56px; }
.auth-card { animation: surface-in .42s cubic-bezier(.2,.75,.25,1) both; max-width: 400px; width: 100%; }
.auth-card h2 { font-size: 34px; font-weight: 650; letter-spacing: -.04em; margin: 12px 0 8px; }
.auth-card > p { font-size: 14px; margin: 0 0 34px; }
.auth-mobile-logo { display: none; margin-bottom: 48px; }
.auth-form { display: grid; gap: 18px; }
label { color: #27332d; display: grid; font-size: 12px; font-weight: 700; gap: 8px; }
input, select, textarea { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); outline: none; transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease; }
input, select { height: 48px; padding: 0 14px; }
input:hover, select:hover, textarea:hover { border-color: #bdc8bf; }
input:focus, select:focus, textarea:focus { border-color: #7aa58a; box-shadow: 0 0 0 3px rgba(36,120,71,.09); }
.primary-button, .outline-button, .text-button { align-items: center; border-radius: 9px; cursor: pointer; display: inline-flex; font-weight: 700; justify-content: center; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.primary-button { background: var(--navy); border: 1px solid var(--navy); color: white; min-height: 44px; padding: 0 18px; }
.primary-button:hover { background: #1a2820; box-shadow: 0 5px 16px rgba(16,23,19,.14); }
.primary-button svg { color: var(--green); }
.primary-button.small { font-size: 12px; gap: 7px; min-height: 38px; }
.auth-submit { gap: 9px; justify-content: space-between; margin-top: 8px; padding: 0 17px; width: 100%; }
.outline-button { background: var(--surface); border: 1px solid var(--line); gap: 8px; min-height: 40px; padding: 0 13px; }
.outline-button:hover { background: var(--surface-soft); border-color: #c8d2ca; }
.text-button { background: transparent; border: 0; color: var(--green-deep); margin: 20px auto 0; }
.form-error { background: #fff1f1; border: 1px solid #f2c7c9; border-radius: 9px; color: var(--danger); font-size: 12px; line-height: 1.5; padding: 10px 12px; }
.managed-note { border-top: 1px solid var(--line); color: var(--ink-soft); font-size: 12px; line-height: 1.5; margin-top: 26px; padding-top: 22px; text-align: center; }

.app-view { display: flex; height: 100vh; width: 100%; }
.sidebar { background: var(--navy); border-right: 1px solid rgba(255,255,255,.045); color: #e9f3ed; display: flex; flex: 0 0 var(--sidebar); flex-direction: column; height: 100vh; position: relative; z-index: 30; }
.sidebar-head { align-items: center; display: flex; height: 64px; justify-content: space-between; padding: 0 18px; }
.sidebar-head .wordmark { font-size: 26px; }
.sidebar-close { display: none !important; }
.new-chat-button { align-items: center; background: rgba(126,227,154,.11); border: 1px solid rgba(126,227,154,.19); border-radius: 9px; color: #dff8e6; cursor: pointer; display: flex; font-size: 12px; font-weight: 700; gap: 9px; height: 40px; margin: 9px 11px 12px; padding: 0 12px; transition: background-color .16s ease, border-color .16s ease; }
.new-chat-button:hover { background: rgba(126,227,154,.17); border-color: rgba(126,227,154,.3); }
.new-chat-button svg { stroke-width: 2.3; }
.sidebar-nav { display: grid; gap: 3px; padding: 5px 10px 10px; }
.nav-item { align-items: center; background: transparent; border: 0; border-radius: 7px; color: rgba(233,243,237,.59); cursor: pointer; display: flex; font-size: 12px; font-weight: 600; gap: 10px; min-height: 38px; padding: 0 10px; text-align: left; transition: background-color .14s ease, color .14s ease; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.075); color: white; }
.nav-item.active svg { color: var(--green); }
.nav-item em { background: rgba(255,255,255,.09); border-radius: 20px; font-size: 10px; font-style: normal; margin-left: auto; min-width: 22px; padding: 3px 6px; text-align: center; }
.nav-item kbd { border: 1px solid rgba(255,255,255,.12); border-radius: 5px; color: rgba(255,255,255,.34); font-family: inherit; font-size: 8px; margin-left: auto; padding: 2px 5px; }
.sidebar-section-label { color: rgba(233,243,237,.32); font-size: 9px; font-weight: 800; letter-spacing: .17em; padding: 16px 21px 8px; }
.conversation-list { display: grid; gap: 2px; min-height: 0; overflow-y: auto; padding: 0 9px; }
.conversation-item { align-items: center; background: transparent; border: 0; border-radius: 7px; color: rgba(233,243,237,.55); cursor: pointer; display: grid; font-size: 11px; gap: 8px; grid-template-columns: 17px minmax(0,1fr) 24px; min-height: 36px; padding: 0 8px 0 9px; text-align: left; transition: background-color .14s ease, color .14s ease; }
.conversation-item:hover, .conversation-item.active { background: rgba(255,255,255,.065); color: white; }
.conversation-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-item .delete-conversation { align-items: center; background: transparent; border: 0; border-radius: 5px; color: rgba(255,255,255,.34); cursor: pointer; display: flex; justify-content: center; opacity: 0; padding: 3px; transition: opacity .14s ease, background-color .14s ease, color .14s ease; }
.conversation-item:hover .delete-conversation, .conversation-item:focus-within .delete-conversation { opacity: 1; }
.conversation-item .delete-conversation:hover { background: rgba(255,255,255,.08); color: #ff9fa4; }
.conversation-empty { color: rgba(233,243,237,.34); font-size: 11px; line-height: 1.6; padding: 10px 12px; }
.sidebar-footer { border-top: 1px solid rgba(255,255,255,.08); margin-top: auto; padding: 11px; position: relative; }
.account-button { align-items: center; background: transparent; border: 0; border-radius: 9px; color: white; cursor: pointer; display: flex; gap: 10px; min-height: 52px; padding: 5px 7px; text-align: left; width: 100%; }
.account-button:hover { background: rgba(255,255,255,.06); }
.avatar { align-items: center; background: linear-gradient(135deg, var(--green), #18a45a); border-radius: 9px; color: #07140d; display: flex; flex: 0 0 34px; font-size: 11px; font-weight: 800; height: 34px; justify-content: center; }
.account-copy { display: grid; min-width: 0; }
.account-copy b, .account-copy small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-copy b { font-size: 12px; }
.account-copy small { color: rgba(255,255,255,.42); font-size: 9px; margin-top: 3px; }
.account-button > svg { color: rgba(255,255,255,.42); margin-left: auto; width: 15px; }
.account-menu { background: #17231d; border: 1px solid rgba(255,255,255,.11); border-radius: 9px; bottom: 68px; box-shadow: 0 18px 44px rgba(0,0,0,.3); left: 12px; padding: 5px; position: absolute; right: 12px; }
.account-menu button { align-items: center; background: transparent; border: 0; border-radius: 6px; color: #e8f2ec; cursor: pointer; display: flex; font-size: 12px; gap: 9px; min-height: 36px; padding: 0 9px; width: 100%; }
.account-menu button:hover { background: rgba(255,255,255,.07); }

.workspace { background: radial-gradient(circle at 50% -18%, rgba(255,255,255,.95), transparent 38%), var(--paper); display: flex; flex: 1; flex-direction: column; height: 100vh; min-width: 0; }
.topbar { align-items: center; background: rgba(246,247,243,.88); border-bottom: 1px solid rgba(221,226,219,.82); display: flex; flex: 0 0 64px; justify-content: space-between; padding: 0 22px; backdrop-filter: blur(16px); z-index: 10; }
.topbar-left, .topbar-actions { align-items: center; display: flex; gap: 12px; }
.conversation-title { font-size: 12px; font-weight: 720; }
.conversation-subtitle { color: var(--ink-soft); font-size: 10px; margin-top: 2px; }
.icon-button { align-items: center; background: transparent; border: 0; border-radius: 8px; cursor: pointer; display: inline-flex; height: 38px; justify-content: center; width: 38px; }
.icon-button:hover { background: var(--surface-soft); }
.mobile-menu { display: none; }
.topbar .outline-button em { align-items: center; background: var(--navy); border-radius: 50%; color: var(--green); display: flex; font-size: 9px; font-style: normal; height: 20px; justify-content: center; min-width: 20px; }
.active-source-chip { align-items: center; background: rgba(255,255,255,.72); border: 1px solid var(--line); border-radius: 8px; display: flex; font-size: 10px; font-weight: 700; gap: 8px; height: 36px; max-width: 230px; padding: 0 10px 0 6px; }
.active-source-chip > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-chip { padding-left: 11px; }
.project-chip svg { color: var(--green-deep); width: 15px; }
.mini-source-mark { align-items: center; background: linear-gradient(135deg,#254a3a,#132a20); border-radius: 7px; color: rgba(255,255,255,.72); display: inline-flex; filter: saturate(.7) brightness(.85); font-size: 8px; font-weight: 800; height: 27px; justify-content: center; opacity: .7; width: 27px; }
.chat-scroll { flex: 1; min-height: 0; overflow-y: auto; position: relative; }
.empty-state { align-items: center; display: flex; flex-direction: column; margin: 0 auto; max-width: 720px; min-height: 100%; padding: clamp(54px,10vh,100px) 28px 190px; text-align: center; }
.empty-state > * { animation: surface-in .42s cubic-bezier(.2,.75,.25,1) both; }
.empty-state > :nth-child(2) { animation-delay: .04s; } .empty-state > :nth-child(3) { animation-delay: .08s; } .empty-state > :nth-child(4) { animation-delay: .12s; } .empty-state > :nth-child(5) { animation-delay: .16s; } .empty-state > :nth-child(6) { animation-delay: .2s; }
.cici-hero-mark { align-items: center; background: var(--navy); border: 1px solid rgba(255,255,255,.08); border-radius: 13px; box-shadow: 0 9px 30px rgba(16,23,19,.14); color: white; display: flex; font-family: "Arial Black","Segoe UI Black",sans-serif; font-size: 20px; font-weight: 900; height: 48px; justify-content: center; letter-spacing: -.09em; margin-bottom: 26px; position: relative; width: 72px; }
.cici-hero-mark::after { background: var(--green); border: 3px solid var(--paper); border-radius: 50%; bottom: -4px; content: ""; height: 11px; position: absolute; right: -3px; width: 11px; }
.empty-state h1 { font-size: clamp(38px,4vw,54px); font-weight: 620; letter-spacing: -.052em; line-height: 1.04; margin: 13px 0 17px; }
.empty-state > p { color: var(--ink-soft); font-size: 14px; line-height: 1.7; margin: 0; max-width: 540px; }
.source-cta { align-items: center; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; box-shadow: 0 3px 12px rgba(19,31,23,.04); color: var(--ink); cursor: pointer; display: flex; font-size: 11px; font-weight: 700; gap: 8px; margin-top: 27px; min-height: 43px; padding: 0 15px; transition: background-color .16s ease, border-color .16s ease, box-shadow .16s ease; }
.source-cta:hover { background: var(--green-soft); border-color: var(--green-deep); }
.prompt-suggestions { display: grid; gap: 8px; grid-template-columns: repeat(3,1fr); margin-top: 30px; width: 100%; }
.prompt-suggestions button { background: rgba(255,255,255,.58); border: 1px solid var(--line); border-radius: 10px; color: #56625b; cursor: pointer; font-size: 10px; line-height: 1.45; min-height: 56px; padding: 10px 12px; text-align: left; transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease; }
.prompt-suggestions button:hover { background: var(--surface); border-color: #b9c5bb; box-shadow: var(--shadow-soft); color: var(--ink); }
.messages { display: grid; gap: 34px; margin: 0 auto; max-width: 820px; padding: 48px 30px 220px; }
.message { animation: enter .32s cubic-bezier(.2,.75,.25,1); display: flex; gap: 13px; }
.message.user { justify-content: flex-end; }
.message.user .message-body { background: #e7ebe6; border: 1px solid #dbe1da; border-radius: 15px 15px 4px 15px; color: #26312b; max-width: 72%; padding: 11px 15px; }
.message.assistant .message-body { max-width: min(710px, calc(100% - 48px)); padding-top: 3px; }
.assistant-mark { align-items: center; background: var(--navy); border-radius: 9px; color: var(--green); display: flex; flex: 0 0 32px; height: 32px; justify-content: center; box-shadow: 0 5px 14px rgba(16,23,19,.11); }
.assistant-mark svg { height: 15px; width: 15px; }
.message-content { font-size: 14px; line-height: 1.72; overflow-wrap: anywhere; white-space: pre-wrap; }
.message.assistant .message-content { color: #28362f; }
.message-meta { align-items: center; color: #8b958f; display: flex; font-size: 8px; gap: 8px; letter-spacing: .05em; margin-top: 11px; text-transform: uppercase; }
.source-citations { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.source-citations span { background: rgba(255,255,255,.7); border: 1px solid var(--line); border-radius: 6px; color: var(--ink-soft); font-size: 8px; padding: 4px 7px; }
.typing .assistant-mark svg { animation: listening 1.35s ease-in-out infinite; }
.typing .message-content::after { animation: blink 1s infinite; background: var(--green-deep); border-radius: 2px; content: ""; display: inline-block; height: 13px; margin-left: 4px; vertical-align: -2px; width: 2px; }
.composer-zone { background: linear-gradient(180deg, rgba(246,247,243,0), rgba(246,247,243,.94) 28%, var(--paper) 56%); bottom: 0; left: var(--sidebar); padding: 38px 28px 14px; position: fixed; right: 0; z-index: 12; }
.composer { background: rgba(255,255,255,.96); border: 1px solid #cbd3ca; border-radius: 14px; box-shadow: 0 13px 38px rgba(19,31,23,.1); margin: 0 auto; max-width: 820px; overflow: hidden; transition: border-color .16s ease, box-shadow .16s ease; }
.composer:focus-within { border-color: #8bab95; box-shadow: 0 15px 42px rgba(19,31,23,.11), 0 0 0 3px rgba(36,120,71,.07); }
.composer textarea { border: 0; border-radius: 0; box-shadow: none; font-size: 13px; line-height: 1.55; max-height: 170px; min-height: 56px; padding: 15px 17px 7px; resize: none; width: 100%; }
.composer textarea:focus { box-shadow: none; }
.composer-footer { align-items: center; display: flex; justify-content: space-between; padding: 5px 9px 9px 11px; }
.composer-tools { align-items: center; color: #859188; display: flex; font-size: 10px; gap: 10px; }
.tool-button { align-items: center; border-radius: 7px; cursor: pointer; display: inline-flex; height: 31px; justify-content: center; width: 31px; }
.tool-button:hover { background: var(--surface-soft); color: var(--ink); }
.send-button { align-items: center; background: var(--navy); border: 0; border-radius: 8px; color: var(--green); cursor: pointer; display: flex; height: 34px; justify-content: center; transition: background-color .16s ease, transform .16s ease; width: 34px; }
.send-button:not(:disabled):hover { background: #1b2921; transform: scale(1.035); }
.send-button:disabled { background: #dbe1dc; color: #9da8a0; cursor: default; }
.composer-disclaimer { color: #929c96; font-size: 8px; margin: 8px auto 0; max-width: 820px; text-align: center; }
.selected-source-bar { align-items: center; color: var(--ink-soft); display: flex; font-size: 10px; gap: 6px; margin: 0 auto 7px; max-width: 850px; padding: 0 5px; }
.selected-source-bar b { color: var(--ink); }
.selected-source-bar button { background: transparent; border: 0; color: var(--green-deep); cursor: pointer; font-size: 10px; font-weight: 700; margin-left: auto; }

dialog { color: var(--ink); }
.panel-dialog, .mini-dialog { background: transparent; border: 0; height: 100%; margin: 0 0 0 auto; max-height: none; max-width: none; padding: 0; width: min(540px, 100%); }
.panel-dialog { overflow: hidden; }
.wide-dialog { width: min(860px, 100%); }
.panel-dialog::backdrop, .mini-dialog::backdrop { animation: fade .16s ease; background: rgba(8,14,10,.42); backdrop-filter: blur(2px); }
.dialog-shell { animation: slide-in .22s cubic-bezier(.2,.75,.25,1); background: var(--paper); border-left: 1px solid var(--line); box-shadow: -20px 0 70px rgba(6,16,11,.15); display: flex; flex-direction: column; height: 100vh; min-width: 0; overflow-x: hidden; width: 100%; }
.dialog-header { align-items: flex-start; background: var(--surface); border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; padding: 27px 28px 22px; }
.dialog-header h2 { font-family: "Syne",sans-serif; font-size: 29px; letter-spacing: -.045em; margin: 7px 0 5px; }
.dialog-header p { color: var(--ink-soft); font-size: 11px; margin: 0; }
.dialog-toolbar { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; display: flex; margin: 18px 22px 10px; padding: 0 12px; }
.dialog-toolbar svg { color: #8b978f; width: 16px; }
.dialog-toolbar input { background: transparent; border: 0; box-shadow: none; flex: 1; font-size: 12px; height: 42px; }
.dialog-toolbar input:focus { box-shadow: none; }
.source-tabs, .admin-tabs { border-bottom: 1px solid var(--line); display: flex; gap: 21px; padding: 0 24px; }
.source-tabs button, .admin-tabs button { background: transparent; border: 0; border-bottom: 2px solid transparent; color: var(--ink-soft); cursor: pointer; font-size: 11px; font-weight: 700; padding: 11px 1px; }
.source-tabs button.active, .admin-tabs button.active { border-bottom-color: var(--green-deep); color: var(--ink); }
.dataset-list { display: grid; gap: 9px; min-height: 0; overflow-y: auto; padding: 16px 22px 100px; }
.dataset-card { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 12px; grid-template-columns: 52px minmax(0,1fr) auto; padding: 12px; transition: border-color .16s ease, box-shadow .16s ease; }
.dataset-card:hover { border-color: #bdc9c0; box-shadow: var(--shadow-soft); }
.dataset-card.selected { border-color: #84dba5; box-shadow: inset 0 0 0 1px rgba(71,232,124,.18); }
.game-art { align-items: center; background: linear-gradient(135deg,#244d3a,#0f251b); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: white; display: flex; filter: saturate(.7) brightness(.85); font-family: "Syne",sans-serif; font-size: 15px; font-weight: 800; height: 52px; justify-content: center; opacity: .7; overflow: hidden; width: 52px; }
.game-art img { height: 100%; object-fit: cover; width: 100%; }
.dataset-copy { min-width: 0; }
.dataset-copy b { display: block; font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dataset-copy small { color: var(--ink-soft); display: block; font-size: 9px; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dataset-copy .dataset-meta { align-items: center; display: flex; gap: 7px; margin-top: 7px; }
.dataset-meta span { background: var(--surface-soft); border-radius: 5px; color: #6b786f; font-size: 8px; padding: 3px 5px; }
.dataset-toggle { align-items: center; background: var(--surface-soft); border: 1px solid var(--line); border-radius: 9px; cursor: pointer; display: flex; font-size: 10px; font-weight: 800; gap: 6px; min-height: 35px; padding: 0 10px; }
.dataset-toggle:hover { border-color: #9fb3a5; }
.dataset-card.selected .dataset-toggle { background: var(--green-soft); border-color: #a9e9bf; color: var(--green-deep); }
.dialog-footer { align-items: center; background: rgba(255,255,255,.92); border-top: 1px solid var(--line); bottom: 0; display: flex; justify-content: space-between; margin-top: auto; padding: 13px 22px; position: absolute; width: 100%; backdrop-filter: blur(10px); }
.dialog-footer span { color: var(--ink-soft); font-size: 10px; }
.dialog-footer .primary-button { min-height: 38px; }
.empty-list { color: var(--ink-soft); font-size: 12px; padding: 40px 20px; text-align: center; }
.catalog-state { align-items: center; align-self: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; gap: 12px; grid-template-columns: 42px minmax(0,1fr); margin-top: 4px; padding: 16px; }
.catalog-state.error { background: #fffaf4; border-color: #ead7bf; grid-template-columns: 42px minmax(0,1fr) auto; }
.catalog-state.compact { margin-bottom: 3px; padding: 11px 12px; }
.catalog-state-mark { align-items: center; background: var(--green-soft); border-radius: 11px; color: var(--green-deep); display: flex; height: 42px; justify-content: center; width: 42px; }
.catalog-state.error .catalog-state-mark { background: #f9ead8; color: #8d5f2c; }
.catalog-state-mark svg { width: 20px; }
.catalog-state b { display: block; font-size: 12px; }
.catalog-state p { color: var(--ink-soft); font-size: 10px; line-height: 1.5; margin: 4px 0 0; }
.catalog-state.loading .catalog-state-mark svg { animation: catalog-pulse 1.2s ease-in-out infinite; }
.catalog-retry { min-height: 34px; white-space: nowrap; }

.project-list, .search-results { display: grid; gap: 10px; min-height: 0; overflow-y: auto; padding: 18px 22px 100px; }
.project-card { align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; display: grid; gap: 12px; grid-template-columns: 46px minmax(0,1fr) auto; padding: 13px; transition: border-color .16s ease, box-shadow .16s ease; }
.project-card:hover { border-color: #b9c7bd; box-shadow: var(--shadow-soft); }
.project-card.active { border-color: #78d99a; box-shadow: inset 0 0 0 1px rgba(71,232,124,.14); }
.project-icon { align-items: center; background: var(--green-soft); border: 1px solid #c6efd4; border-radius: 12px; color: var(--green-deep); display: flex; height: 46px; justify-content: center; width: 46px; }
.project-copy { min-width: 0; }
.project-copy b, .project-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.project-copy b { font-size: 12px; }
.project-copy small { color: var(--ink-soft); font-size: 9px; margin-top: 4px; }
.project-meta { color: #7b8980; font-size: 8px; margin-top: 7px; text-transform: uppercase; }
.project-actions { display: flex; gap: 5px; }
.project-actions button { background: transparent; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 9px; min-height: 32px; padding: 0 9px; }
.project-actions button.primary { background: var(--navy); border-color: var(--navy); color: white; }
.project-actions button.danger { color: var(--danger); }

.search-results { gap: 4px; padding-top: 8px; }
.search-group-label { color: #8a968e; font-size: 9px; font-weight: 800; letter-spacing: .14em; padding: 15px 8px 6px; text-transform: uppercase; }
.search-result { align-items: center; background: transparent; border: 0; border-radius: 10px; cursor: pointer; display: grid; gap: 11px; grid-template-columns: 34px minmax(0,1fr) auto; padding: 9px; text-align: left; width: 100%; }
.search-result:hover { background: var(--surface); }
.search-result-icon { align-items: center; background: var(--surface-soft); border-radius: 9px; color: var(--green-deep); display: flex; height: 34px; justify-content: center; width: 34px; }
.search-result-copy { min-width: 0; }
.search-result-copy b, .search-result-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-result-copy b { font-size: 11px; }
.search-result-copy small { color: var(--ink-soft); font-size: 9px; margin-top: 3px; }
.search-result > small { color: #93a098; font-size: 8px; text-transform: uppercase; }

.admin-dialog-shell { overflow-y: auto; }
.admin-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit,minmax(120px,1fr)); padding: 18px 24px; }
.stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 13px; }
.stat-card span { color: var(--ink-soft); display: block; font-size: 9px; text-transform: uppercase; }
.stat-card b { display: block; font-family: "Syne",sans-serif; font-size: 24px; margin-top: 5px; }
.admin-section { padding: 22px 24px 40px; }
.section-heading { align-items: center; display: flex; justify-content: space-between; margin-bottom: 15px; }
.section-heading h3 { font-family: "Syne",sans-serif; font-size: 18px; margin: 0 0 4px; }
.section-heading p { color: var(--ink-soft); font-size: 10px; margin: 0; }
.admin-list { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.admin-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 12px; grid-template-columns: minmax(180px,1.4fr) minmax(120px,.8fr) auto; min-height: 62px; padding: 9px 13px; }
.admin-row:last-child { border-bottom: 0; }
.admin-person { align-items: center; display: flex; gap: 10px; min-width: 0; }
.admin-person .avatar { flex-basis: 32px; height: 32px; }
.admin-person-copy { min-width: 0; }
.admin-person-copy b, .admin-person-copy small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.admin-person-copy b { font-size: 11px; }
.admin-person-copy small { color: var(--ink-soft); font-size: 9px; margin-top: 3px; }
.role-badge { background: var(--surface-soft); border: 1px solid var(--line); border-radius: 999px; color: var(--ink-soft); display: inline-block; font-size: 8px; font-weight: 800; padding: 4px 7px; text-transform: uppercase; }
.role-badge.admin { background: var(--green-soft); border-color: #abe8c0; color: var(--green-deep); }
.row-actions { display: flex; gap: 5px; justify-content: flex-end; }
.row-actions button { background: transparent; border: 1px solid var(--line); border-radius: 7px; cursor: pointer; font-size: 9px; min-height: 30px; padding: 0 8px; }
.row-actions button:hover { background: var(--surface-soft); }
.row-actions button.danger { color: var(--danger); }
.provider-row { align-items: center; border-bottom: 1px solid var(--line); display: grid; gap: 14px; grid-template-columns: minmax(140px,.6fr) minmax(0,1.4fr); min-height: 48px; padding: 9px 13px; }
.provider-row:last-child { border-bottom: 0; }
.provider-row span { color: var(--ink-soft); font-size: 9px; text-transform: uppercase; }
.provider-row b { font-size: 10px; overflow-wrap: anywhere; }
.ai-provider-form { align-items: end; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); margin-top: 14px; }
.ai-provider-form label { color: var(--ink-soft); display: grid; font-size: 9px; font-weight: 700; gap: 5px; text-transform: uppercase; }
.ai-provider-form input, .ai-provider-form select { font-size: 10px; height: 38px; }
.ai-provider-form button { min-height: 38px; }
.dataset-admin-form { align-items: center; display: grid; gap: 8px; grid-template-columns: minmax(170px,1fr) 120px auto; padding: 11px; }
.dataset-admin-form input, .dataset-admin-form select { font-size: 10px; height: 36px; }
.dataset-admin-form .game-art { height: 42px; width: 42px; }
.dataset-admin-main { align-items: center; display: flex; gap: 9px; min-width: 0; }
.dataset-admin-fields { display: grid; gap: 6px; min-width: 0; }
.icon-upload { position: relative; }
.icon-upload input { cursor: pointer; inset: 0; opacity: 0; position: absolute; width: 100%; }

.mini-dialog { align-items: center; display: none; justify-content: center; margin: auto; padding: 20px; width: 100%; }
.mini-dialog[open] { display: flex; }
.mini-dialog-card { animation: pop .18s cubic-bezier(.2,.75,.25,1); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); display: grid; gap: 15px; max-width: 430px; padding: 22px; width: 100%; }
.mini-dialog-card header { align-items: flex-start; display: flex; justify-content: space-between; }
.mini-dialog-card h3 { font-family: "Syne",sans-serif; font-size: 22px; margin: 7px 0 0; }
.mini-dialog-card label small { color: var(--ink-soft); font-size: 9px; font-weight: 500; }
.mini-dialog-card textarea { min-height: 86px; padding: 12px 14px; resize: vertical; }
.mini-dialog-card footer { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }

.toast-region { bottom: 22px; display: grid; gap: 8px; pointer-events: none; position: fixed; right: 22px; z-index: 100; }
.toast { animation: toast-in .2s cubic-bezier(.2,.75,.25,1); background: var(--navy); border: 1px solid rgba(255,255,255,.1); border-radius: 9px; box-shadow: var(--shadow); color: white; font-size: 11px; max-width: 340px; padding: 12px 15px; }
.toast.error { background: #6e2428; }

@keyframes surface-in { from { opacity: 0; transform: translateY(7px); } }
@keyframes signal-settle { from { opacity: 0; transform: scaleY(.25); } }
@keyframes enter { from { opacity: 0; transform: translateY(7px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(35px); opacity: .6; } }
@keyframes pop { from { transform: scale(.98); opacity: .5; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes catalog-pulse { 50% { opacity: .35; transform: scale(.9); } }
@keyframes listening { 50% { opacity: .45; transform: scale(.86); } }

@media (max-width: 900px) {
  .landing-nav { padding: 0 22px; }
  .landing-nav nav { display: none; }
  .landing-hero { gap: 62px; grid-template-columns: 1fr; padding: 76px 28px 82px; }
  .landing-hero-copy { max-width: 700px; }
  .landing-hero h1 { font-size: clamp(58px,10vw,82px); }
  .product-preview { margin: 0 auto; max-width: 720px; width: 100%; }
  .landing-proof { padding-left: 28px; padding-right: 28px; }
  .proof-grid { gap: 0; grid-template-columns: repeat(2,1fr); }
  .proof-grid > div { padding: 18px 24px; }
  .proof-grid > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .landing-section { padding: 90px 28px; }
  .section-intro { grid-template-columns: 1fr; }
  .section-intro > p { max-width: 620px; }
  .dark-card { gap: 30px; grid-template-columns: 1fr; }
  .dark-card > p { justify-self: start; }
  .prompt-card { gap: 40px; }
  .landing-manifesto { gap: 34px; grid-template-columns: 1fr; justify-items: start; padding: 72px 28px; }
  .manifesto-mark { height: 64px; width: 74px; }
  .landing-final-cta { align-items: flex-start; flex-direction: column; gap: 42px; margin: 0 22px 24px; padding: 48px; }
  .landing-footer { padding-left: 28px; padding-right: 28px; }
  .auth-view { grid-template-columns: 1fr; }
  .auth-brand-panel { display: none; }
  .auth-form-panel { padding: 28px; }
  .auth-mobile-logo { display: inline-flex; }
  .sidebar { box-shadow: 18px 0 55px rgba(0,0,0,.25); left: 0; position: fixed; transform: translateX(-105%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .sidebar-close, .mobile-menu { display: inline-flex !important; }
  .sidebar-close { color: rgba(255,255,255,.7); }
  .mobile-scrim { background: rgba(6,16,11,.42); inset: 0; position: fixed; z-index: 20; }
  .composer-zone { left: 0; }
  .topbar { padding: 0 15px; }
  .active-source-chip { display: none !important; }
  .admin-stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 560px) {
  .landing-nav { height: 64px; padding: 0 16px; }
  .landing-wordmark { font-size: 20px; }
  .landing-wordmark small, .landing-signin { display: none; }
  .landing-start.small { min-height: 38px; }
  .landing-hero { gap: 46px; min-height: 0; padding: 62px 17px 68px; }
  .landing-hero h1 { font-size: clamp(52px,16vw,67px); line-height: .92; margin-bottom: 24px; }
  .landing-hero-copy > p { font-size: 15px; line-height: 1.62; }
  .landing-hero-actions { align-items: flex-start; flex-direction: column; gap: 12px; margin-top: 30px; }
  .landing-hero-actions .landing-start { width: 100%; }
  .landing-link { margin-left: 4px; }
  .landing-trust { align-items: flex-start; display: grid; gap: 9px; }
  .product-preview { border-radius: 15px; min-height: 550px; }
  .product-preview::before { display: none; }
  .preview-chrome { height: 56px; padding: 0 12px; }
  .preview-source { max-width: 148px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .preview-thread { padding: 26px 16px 82px; }
  .preview-question { max-width: 88%; }
  .preview-answer { grid-template-columns: 31px minmax(0,1fr); }
  .preview-ai { height: 28px; width: 31px; }
  .preview-findings { grid-template-columns: 1fr; }
  .preview-findings span { align-items: center; display: flex; gap: 9px; }
  .preview-composer { bottom: 12px; left: 12px; right: 12px; }
  .landing-proof { padding: 28px 18px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div { padding: 15px 12px; }
  .proof-grid strong { font-size: 25px; }
  .landing-section { padding: 76px 17px; }
  .section-intro { gap: 22px; margin-bottom: 40px; }
  .section-intro h2 { font-size: 43px; }
  .intelligence-grid { grid-template-columns: 1fr; }
  .intelligence-card.wide-card { grid-column: auto; }
  .intelligence-card { min-height: 340px; padding: 24px; }
  .dark-card { min-height: 510px; padding: 29px 24px; }
  .dark-card h3 { font-size: 38px; }
  .logic-map { align-items: stretch; flex-direction: column; gap: 5px; margin-top: 20px; }
  .logic-map i { height: 9px; margin: -5px auto; width: 1px; }
  .prompt-card { gap: 34px; grid-template-columns: 1fr; padding: 28px 24px; }
  .prompt-card h3 { font-size: 30px; }
  .landing-manifesto { padding: 60px 20px; }
  .landing-manifesto blockquote { font-size: 30px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid article { min-height: 240px; padding: 26px; }
  .workflow-grid article + article { border-left: 0; border-top: 1px solid #dce2dc; }
  .workflow-icon { margin: 32px 0 30px; }
  .landing-final-cta { border-radius: 14px; margin: 0 12px 16px; padding: 38px 24px; }
  .landing-final-cta h2 { font-size: 39px; }
  .light-button { width: 100%; }
  .landing-footer { gap: 18px; grid-template-columns: 1fr auto; padding: 26px 18px 34px; }
  .landing-footer p { display: none; }
  .topbar .outline-button > span { display: none; }
  .conversation-subtitle { display: none; }
  .empty-state { padding: 52px 19px 190px; }
  .empty-state h1 { font-size: 38px; }
  .cici-hero-mark { border-radius: 12px; font-size: 19px; height: 46px; width: 68px; }
  .prompt-suggestions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .messages { padding-left: 17px; padding-right: 17px; }
  .message.user .message-body { max-width: 88%; }
  .composer-zone { padding-left: 12px; padding-right: 12px; }
  .dialog-header { padding: 22px 20px 18px; }
  .dialog-toolbar { margin-left: 14px; margin-right: 14px; }
  .dataset-list { padding-left: 14px; padding-right: 14px; }
  .dataset-card { grid-template-columns: 46px minmax(0,1fr) auto; }
  .game-art { height: 46px; width: 46px; }
  .dataset-toggle span { display: none; }
  .project-list, .search-results { padding-left: 14px; padding-right: 14px; }
  .project-card { grid-template-columns: 42px minmax(0,1fr); }
  .project-icon { height: 42px; width: 42px; }
  .project-actions { grid-column: 2; justify-content: flex-start; }
  .admin-stats { padding: 14px; }
  .admin-section { padding-left: 14px; padding-right: 14px; }
  .admin-row { grid-template-columns: 1fr auto; }
  .admin-row > :nth-child(2) { display: none; }
  .dataset-admin-form { grid-template-columns: 1fr auto; }
  .dataset-admin-form > select { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
