:root {
  color-scheme: dark;
  --bg: #050908;
  --panel: rgba(11, 18, 17, .88);
  --panel-2: rgba(17, 28, 26, .82);
  --line: rgba(179, 217, 208, .13);
  --line-strong: rgba(220, 233, 0, .25);
  --text: #f4f7f3;
  --muted: #8ea39e;
  --lime: #dce900;
  --teal: #00616f;
  --aqua: #74b1ba;
  --danger: #ff8b8b;
  --radius: 22px;
  --font-display: Poppins, Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--text); font-family: var(--font-body); }
body { overflow-x: hidden; }
button, input, textarea { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
[hidden] { display: none !important; }

.ambient { position: fixed; z-index: 0; pointer-events: none; filter: blur(80px); opacity: .33; border-radius: 50%; }
.ambient-a { width: 55vw; height: 55vw; left: -25vw; top: 18vh; background: #00616f; }
.ambient-b { width: 40vw; height: 40vw; right: -18vw; bottom: -20vw; background: #667100; }

.brand-mark { position: relative; display: inline-flex; align-items: baseline; font: 800 34px/1 var(--font-display); letter-spacing: -2px; }
.brand-mark span { font-weight: 400; }
.brand-mark i { width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 20px var(--lime); }
.brand-mark.compact { font-size: 23px; letter-spacing: -1.2px; }
.brand-mark.compact i { width: 6px; height: 6px; }
.eyebrow { margin: 0 0 8px; color: var(--lime); text-transform: uppercase; letter-spacing: .16em; font-size: 10px; font-weight: 800; }

.login-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 28px; }
.login-card { width: min(600px, 100%); padding: clamp(30px, 6vw, 70px); background: linear-gradient(145deg, rgba(16, 29, 27, .94), rgba(5, 9, 8, .93)); border: 1px solid var(--line); border-radius: 32px; box-shadow: 0 40px 120px rgba(0,0,0,.45); backdrop-filter: blur(22px); }
.login-card .eyebrow { margin-top: 56px; }
.login-card h1 { margin: 0; font: 500 clamp(48px, 10vw, 82px)/.93 var(--font-display); letter-spacing: -.06em; }
.login-card h1 span { color: transparent; -webkit-text-stroke: 1px var(--lime); text-shadow: 0 0 40px rgba(220,233,0,.11); }
.login-copy { color: var(--muted); margin: 26px 0 34px; font-size: 16px; }
.login-card label { display: block; margin-bottom: 9px; font-size: 12px; color: #c4d1ce; font-weight: 700; }
.field-row { display: flex; gap: 10px; }
.field-row input { min-width: 0; flex: 1; height: 50px; border-radius: 13px; border: 1px solid var(--line); background: rgba(255,255,255,.055); color: white; padding: 0 16px; }
.button { border: 0; border-radius: 13px; padding: 0 22px; min-height: 50px; font-weight: 800; cursor: pointer; }
.button.primary { background: var(--lime); color: #111600; }
.form-error { min-height: 20px; color: var(--danger); font-size: 13px; }
.security-note { margin: 28px 0 0; color: var(--muted); font-size: 11px; }
.recovery-form { margin-top: 24px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.09); }
.recovery-form .button { white-space: nowrap; }
.security-note span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #6ee7b7; margin-right: 7px; }

.app-shell { position: relative; z-index: 1; min-height: 100vh; display: grid; grid-template-columns: 238px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; border-right: 1px solid var(--line); background: rgba(4, 8, 7, .77); backdrop-filter: blur(28px); padding: 28px 20px 22px; display: flex; flex-direction: column; }
.workspace-label { margin: 13px 4px 34px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.workspace-label b { color: var(--lime); margin-left: 4px; }
.main-nav { display: grid; gap: 6px; }
.nav-item { position: relative; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; width: 100%; min-height: 44px; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--muted); text-align: left; padding: 0 12px; cursor: pointer; font-size: 13px; }
.nav-item span { font-size: 18px; }
.nav-item b { background: rgba(220,233,0,.14); color: var(--lime); border-radius: 20px; min-width: 22px; padding: 3px 7px; text-align: center; font-size: 10px; }
.nav-item:hover, .nav-item.active { background: rgba(255,255,255,.055); border-color: var(--line); color: white; }
.nav-item.active::before { content: ''; position: absolute; left: -21px; width: 3px; height: 22px; border-radius: 4px; background: var(--lime); box-shadow: 0 0 16px rgba(220,233,0,.5); }
.sidebar-bottom { margin-top: auto; display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; }
.owner-chip { display: flex; align-items: center; gap: 10px; }
.owner-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(135deg, var(--teal), #263d35); font-size: 10px; font-weight: 800; }
.owner-chip strong, .owner-chip small { display: block; }
.owner-chip strong { font-size: 12px; }.owner-chip small { color: var(--muted); font-size: 10px; }
.icon-button { width: 38px; height: 38px; border: 1px solid var(--line); background: rgba(255,255,255,.035); border-radius: 11px; cursor: pointer; }

.workspace { min-width: 0; height: 100vh; overflow: auto; }
.topbar { min-height: 86px; padding: 20px 28px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: rgba(5, 9, 8, .61); backdrop-filter: blur(25px); position: sticky; top: 0; z-index: 20; }
.topbar h1 { margin: 0; font: 500 24px/1 var(--font-display); letter-spacing: -.04em; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.live-pill { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; border: 1px solid var(--line); border-radius: 20px; padding: 0 13px; color: var(--muted); font-size: 10px; font-weight: 700; }
.live-pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.view { display: none; }.view.active { display: grid; }
.command-layout { grid-template-columns: minmax(0, 1fr) 320px; min-height: calc(100vh - 87px); }
.conversation-panel { min-width: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.conversation-head { min-height: 67px; display: flex; align-items: center; gap: 13px; padding: 12px 28px; border-bottom: 1px solid var(--line); }
.conversation-head strong, .conversation-head small { display: block; }.conversation-head strong { font-size: 13px; }.conversation-head small { color: var(--muted); font-size: 10px; margin-top: 3px; }
.team-stack { display: flex; padding-left: 8px; }
.mini-avatar { width: 30px; height: 30px; display: grid; place-items: center; margin-left: -8px; border: 2px solid #0b1211; border-radius: 50%; background: #15221f; font-size: 14px; }
.messages { flex: 1; overflow: auto; padding: 26px clamp(18px, 4vw, 48px) 14px; scroll-behavior: smooth; }
.message { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 23px; max-width: 78%; }
.message.owner { margin-left: auto; flex-direction: row-reverse; }
.message-avatar { flex: 0 0 auto; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #101b19; font-size: 16px; }
.message.owner .message-avatar { background: linear-gradient(135deg, var(--teal), #283c35); font-size: 10px; font-weight: 800; }
.message-meta { display: flex; gap: 7px; align-items: baseline; margin: 0 0 5px 3px; }
.message.owner .message-meta { justify-content: flex-end; }
.message-meta strong { font-size: 11px; }.message-meta time { color: #61736f; font-size: 9px; }
.bubble { border: 1px solid var(--line); border-radius: 5px 17px 17px 17px; background: rgba(18, 29, 27, .86); padding: 12px 15px; font-size: 13px; line-height: 1.55; white-space: pre-wrap; box-shadow: 0 12px 40px rgba(0,0,0,.14); }
.message.owner .bubble { border-radius: 17px 5px 17px 17px; background: linear-gradient(140deg, rgba(0,97,111,.66), rgba(25,58,51,.8)); }
.message.blocked .bubble { border-color: rgba(255,139,139,.25); }.message.result .bubble { border-color: var(--line-strong); }
.composer { margin: 0 clamp(18px, 4vw, 48px); border: 1px solid var(--line); border-radius: 18px; background: rgba(15, 25, 23, .96); display: flex; align-items: flex-end; gap: 10px; padding: 11px; box-shadow: 0 -25px 70px rgba(5,9,8,.7); }
.composer textarea { flex: 1; resize: none; min-height: 40px; max-height: 150px; border: 0; outline: 0; background: transparent; color: white; padding: 10px 8px; font-size: 13px; }
.composer-actions { display: flex; gap: 7px; }
.composer-button, .send-button { min-height: 40px; border: 0; border-radius: 11px; cursor: pointer; }
.composer-button { width: 40px; background: rgba(255,255,255,.06); color: var(--muted); }
.composer-button.listening { color: var(--lime); box-shadow: inset 0 0 0 1px var(--lime); }
.send-button { width: 40px; background: var(--lime); color: #111600; font-weight: 800; padding: 0; font-size: 18px; }.send-button span { margin: 0; }
.composer-status { min-height: 25px; margin: 6px clamp(18px, 4vw, 48px) 0; color: var(--muted); font-size: 10px; }

.command-rail { padding: 20px; display: flex; flex-direction: column; gap: 13px; background: rgba(6,11,10,.42); }
.rail-card { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17,29,26,.8), rgba(8,14,13,.8)); padding: 18px; }
.rail-card h2 { margin: 0; font: 500 15px/1.2 var(--font-display); }.rail-card p { color: var(--muted); font-size: 12px; line-height: 1.5; }
.focus-card { overflow: hidden; position: relative; min-height: 170px; background: radial-gradient(circle at 90% 15%, rgba(220,233,0,.17), transparent 38%), linear-gradient(145deg, rgba(0,97,111,.26), rgba(8,14,13,.9)); }
.focus-card small { display: block; color: #aebebb; font-size: 9px; margin-top: 12px; }
.progress-line { height: 3px; border-radius: 5px; background: rgba(255,255,255,.07); margin-top: 22px; }.progress-line i { display: block; width: 16%; height: 100%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }
.rail-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 13px; }.rail-title button { border: 0; background: transparent; color: var(--lime); font-size: 9px; cursor: pointer; }
.preview-item { display: grid; grid-template-columns: 8px 1fr; gap: 9px; padding: 10px 0; border-top: 1px solid var(--line); }.preview-item:first-child { border-top: 0; }.preview-item i { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; background: var(--aqua); }.preview-item.warn i { background: var(--lime); }.preview-item strong, .preview-item small { display: block; }.preview-item strong { font-size: 10px; line-height: 1.35; }.preview-item small { color: var(--muted); margin-top: 3px; font-size: 9px; }
.empty { padding: 18px 0; color: var(--muted); font-size: 11px; }

.content-view { padding: 36px clamp(22px, 5vw, 62px) 90px; align-content: start; }
.section-intro { max-width: 680px; margin-bottom: 28px; }.section-intro h2 { margin: 0; font: 500 clamp(36px, 5vw, 58px)/1 var(--font-display); letter-spacing: -.055em; }.section-intro > p:last-child { color: var(--muted); line-height: 1.6; font-size: 13px; }
.card-grid, .team-grid, .status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.content-card, .team-card, .status-card, .project-card, .table-row { border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(145deg, rgba(17,29,26,.8), rgba(8,14,13,.78)); padding: 20px; }
.content-card h3, .project-card h3 { margin: 0 0 8px; font-size: 15px; }.content-card p, .project-card p { color: var(--muted); font-size: 12px; line-height: 1.55; }.content-card footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }.small-button { border: 1px solid var(--line); background: rgba(255,255,255,.05); min-height: 34px; border-radius: 9px; padding: 0 12px; cursor: pointer; font-size: 10px; }.small-button.retry { color: var(--lime); }
.state { display: inline-flex; align-items: center; min-height: 23px; padding: 0 9px; border-radius: 20px; background: rgba(116,177,186,.1); color: var(--aqua); font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }.state.blocked, .state.needs_owner { background: rgba(220,233,0,.1); color: var(--lime); }.state.completed { background: rgba(110,231,183,.1); color: #6ee7b7; }.state.failed { color: var(--danger); background: rgba(255,139,139,.1); }
.project-list { display: grid; gap: 13px; }.project-card { display: grid; grid-template-columns: 1fr auto; gap: 18px; }.project-card .next { color: #c5d1ce; }.subheading { margin: 35px 0 14px; font: 500 17px var(--font-display); }.table-list { display: grid; gap: 8px; }.table-row { border-radius: 14px; display: grid; grid-template-columns: minmax(160px, 1.6fr) .8fr .7fr .9fr auto; gap: 13px; align-items: center; padding: 14px 16px; }.table-row strong, .table-row small { display: block; }.table-row strong { font-size: 11px; }.table-row small { color: var(--muted); font-size: 9px; margin-top: 4px; }
.team-card { position: relative; overflow: hidden; min-height: 250px; }.team-card::after { content: ''; position: absolute; width: 130px; height: 130px; right: -50px; top: -60px; border-radius: 50%; background: var(--role); filter: blur(55px); opacity: .18; }.team-avatar { width: 48px; height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: #101b19; font-size: 24px; }.team-card h3 { margin: 18px 0 2px; font: 500 19px var(--font-display); }.team-card .title { color: var(--role); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }.team-card p { color: var(--muted); font-size: 11px; line-height: 1.5; }.team-card ul { margin: 15px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 5px; }.team-card li { border: 1px solid var(--line); border-radius: 20px; padding: 5px 8px; font-size: 8px; color: #becbc8; }
.status-card { min-height: 135px; }.status-card header { display: flex; justify-content: space-between; align-items: flex-start; }.status-card h3 { margin: 0; text-transform: capitalize; font-size: 12px; }.status-card p { color: var(--muted); font-size: 11px; line-height: 1.5; }.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #6ee7b7; box-shadow: 0 0 12px rgba(110,231,183,.45); }.status-dot.warn { background: var(--lime); box-shadow: 0 0 12px rgba(220,233,0,.35); }.status-dot.neutral { background: var(--aqua); box-shadow: none; }.status-legend { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; color: var(--muted); font-size: 10px; }.status-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; }.status-legend .good { background: #6ee7b7; }.status-legend .warn { background: var(--lime); }.status-legend .neutral { background: var(--aqua); }
.mobile-nav { display: none; }

@media (max-width: 1050px) {
  .command-layout { grid-template-columns: minmax(0, 1fr) 270px; }
  .table-row { grid-template-columns: 1.5fr .7fr .7fr auto; }.table-row > div:nth-child(4) { display: none; }
}

@media (max-width: 800px) {
  .app-shell { display: block; }.sidebar { display: none; }.workspace { height: auto; min-height: 100vh; padding-bottom: 72px; }.topbar { min-height: 70px; padding: 16px 17px; }.topbar .eyebrow { display: none; }.topbar h1 { font-size: 20px; }.live-pill { display: none; }
  .command-layout { display: block !important; }.conversation-panel { border: 0; min-height: calc(100vh - 142px); }.conversation-head { padding: 11px 17px; min-height: 59px; }.command-rail { display: none; }.messages { padding: 20px 14px 10px; min-height: 0; max-height: calc(100vh - 275px); }.message { max-width: 90%; margin-bottom: 18px; }.message-avatar { width: 30px; height: 30px; font-size: 14px; }.bubble { font-size: 13px; padding: 11px 13px; }.composer { position: sticky; bottom: 72px; margin: 0 12px; border-radius: 16px; padding: 8px; }.composer-status { margin: 4px 15px 0; }
  .content-view { padding: 27px 15px 95px; }.section-intro h2 { font-size: 38px; }.card-grid, .team-grid, .status-grid { grid-template-columns: 1fr; }.project-card { grid-template-columns: 1fr; }.table-row { grid-template-columns: 1fr auto; }.table-row > div:nth-child(2), .table-row > div:nth-child(4) { display: none; }
  .mobile-nav { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; height: calc(66px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: rgba(5,9,8,.94); backdrop-filter: blur(24px); }.mobile-nav button { border: 0; background: transparent; color: var(--muted); font-size: 9px; display: grid; place-content: center; gap: 3px; }.mobile-nav button span { font-size: 19px; }.mobile-nav button.active { color: var(--lime); }
}

@media (max-width: 520px) {
  .login-shell { padding: 13px; }.login-card { padding: 30px 22px; border-radius: 24px; }.login-card .eyebrow { margin-top: 45px; }.field-row { display: grid; }.button { width: 100%; }.login-card h1 { font-size: 52px; }
}

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