@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/space-grotesk-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --bg: #0b0b12;
  --surface: #15151f;
  --raised: #1c1c29;
  --border: #74748b;
  --soft-border: #26263a;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --violet: #7c3aed;
  --accent: #a855f7;
  --cyan: #22d3ee;
  --mint: #34d399;
  --warm: #fbbf24;
  --focus: var(--cyan);
  --gradient: linear-gradient(90deg, #a855f7, #22d3ee);
  --font-body: "Inter", system-ui, sans-serif;
  --font-heading: "Space Grotesk", "Inter", sans-serif;
  --font-label: "JetBrains Mono", ui-monospace, monospace;
  font-family: var(--font-body);
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.65; }
a { color: var(--cyan); text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button, a.button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--font-heading); }
h1 { font-size: clamp(2rem, 3.8vw, 3.2rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.12; margin-bottom: 18px; }
h2 { font-size: 21px; line-height: 1.35; font-weight: 700; letter-spacing: -.025em; }
h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
p { margin-bottom: 16px; }
.muted, .fine, .nav-note, .panel-note { color: var(--muted); }
.gradient-text, .brand-name { background: var(--gradient); background-clip: text; -webkit-background-clip: text; color: transparent; }
.eyebrow, .nav-label { font-family: var(--font-label); font-size: 10px; letter-spacing: .12em; font-weight: 500; line-height: 1.6; margin-bottom: 12px; }
.eyebrow { color: var(--cyan); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 36px; height: 36px; flex-shrink: 0; }
.brand-name { font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: .055em; }
.brand-product { color: var(--muted); font-family: var(--font-label); font-size: 10px; letter-spacing: .13em; border-left: 1px solid var(--soft-border); padding-left: 13px; margin-left: 2px; }
.topbar { min-height: 76px; border-bottom: 1px solid var(--soft-border); display: flex; align-items: center; justify-content: space-between; padding: 16px 32px; background: var(--bg); }
.top-actions { display: flex; align-items: center; gap: 24px; }
.local-badge { font-size: 12px; color: var(--muted); }
.dot { display: inline-block; width: 7px; height: 7px; background: var(--mint); border-radius: 50%; margin-right: 8px; }
.quiet { background: transparent; color: var(--text); border: 1px solid var(--border); padding: 9px 16px; border-radius: 12px; min-height: 44px; }
.quiet:hover, .secondary:hover { background: var(--raised); }
.workspace { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - 76px); }
.sidebar { padding: 36px 20px; border-right: 1px solid var(--soft-border); display: flex; flex-direction: column; }
.nav-label { color: var(--muted); }
.sidebar > a { display: flex; justify-content: space-between; background: linear-gradient(100deg, #251a3b, #15151f); border: 1px solid #493261; padding: 12px 14px; color: var(--text); font-size: 13px; font-weight: 600; border-radius: 12px; text-decoration: none; }
.sidebar > a span { color: var(--cyan); }
.project-context { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--soft-border); }
.project-context strong { display: block; font-size: 13px; font-weight: 600; margin-top: 10px; }
.nav-note { font-size: 11px; margin: 6px 0 0; }
.side-footer { margin-top: auto; padding-top: 80px; font-family: var(--font-label); font-size: 8px; letter-spacing: .02em; color: var(--muted); }
.side-footer > span:last-child { font-family: var(--font-body); font-size: 12px; display: inline-block; margin-top: 8px; }
.workspace main { min-width: 0; width: 100%; max-width: 1450px; padding: 40px 40px 24px; background: radial-gradient(ellipse 550px 300px at 8% 0, #7c3aed15, transparent), radial-gradient(ellipse 500px 260px at 95% 0, #22d3ee0b, transparent); }
.page-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.page-heading .muted { margin-bottom: 0; }
.tag { font-family: var(--font-label); font-size: 9px; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--soft-border); border-radius: 999px; padding: 7px 12px; white-space: nowrap; margin-top: 3px; }
.notice { display: flex; gap: 18px; border: 1px solid #544329; background: #1c1919; border-radius: 16px; padding: 24px; margin-bottom: 24px; }
.notice .eyebrow { color: var(--warm); margin-bottom: 6px; }
.notice h2 { color: var(--text); font-size: 21px; margin-bottom: 8px; }
.notice p:not(.eyebrow) { max-width: 880px; color: #c3b9a9; font-size: 13px; margin-bottom: 10px; }
.notice a { color: #fcd58b; font-size: 12px; }
.notice-icon { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid #806635; color: var(--warm); border-radius: 10px; font-weight: 600; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.metric, .panel { background: linear-gradient(180deg, var(--surface), #171721); border: 1px solid var(--soft-border); border-radius: 16px; padding: 24px; min-width: 0; }
.metric .eyebrow { color: var(--muted); font-size: 9px; }
.metric h2 { font-size: 19px; line-height: 1.35; margin-bottom: 12px; }
.metric p:last-child { font-size: 12px; color: var(--muted); margin: 0; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.section-heading h2 { font-size: 18px; margin: 0; }
.section-heading > span { font-size: 10px; }
.agent-row { display: flex; align-items: center; gap: 12px; padding: 18px 0; border-top: 1px solid var(--soft-border); }
.agent-row > div { flex: 1; min-width: 0; }
.agent-row p { font-size: 10px; color: var(--muted); margin: 0; }
.agent-mark { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: #2b1d3e; color: #d8b4fe; font-family: var(--font-label); font-size: 14px; }
.agent-mark.codex { background: #122d36; color: #67e8f9; }
.pill { font-family: var(--font-label); font-size: 9px; border: 1px solid #414158; border-radius: 999px; padding: 4px 8px; color: #b7bac5; }
.panel-note { font-size: 11px; line-height: 1.7; margin: 14px 0 0; }
.next-steps { list-style: none; padding: 0; margin: 0; }
.next-steps li { display: flex; gap: 16px; margin-top: 18px; }
.step-number { font-family: var(--font-label); font-size: 12px; color: var(--cyan); padding-top: 3px; }
.next-steps p { font-size: 11px; color: var(--muted); margin: 0; }
.roadmap { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin: 24px 0; padding: 24px; border: 1px solid #36304e; border-radius: 16px; background: linear-gradient(110deg, #25183770, #10242d50); }
.roadmap h2 { font-size: 22px; margin-bottom: 0; }
.roadmap p:last-child { max-width: 440px; font-size: 12px; color: var(--muted); margin-bottom: 0; }
.roadmap .eyebrow { margin-bottom: 8px; }
.page-footer { font-size: 10px; color: var(--muted); padding: 0 2px; }
.page-footer span { display: block; margin-top: 4px; }
.skip { position: absolute; top: -100px; left: 20px; padding: 10px 16px; z-index: 10; background: var(--cyan); color: var(--bg); border-radius: 12px; }
.skip:focus { top: 10px; }
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px 20px; background: radial-gradient(ellipse 600px 650px at 5% 5%, #7c3aed2e, transparent), radial-gradient(ellipse 550px 600px at 95% 5%, #22d3ee20, transparent), var(--bg); }
.auth-card { width: 100%; max-width: 550px; background: var(--surface); border: 1px solid #353047; padding: 44px; border-radius: 24px; box-shadow: 0 24px 80px #00000045; }
.auth-card .brand { margin-bottom: 36px; }
.auth-card h1 { font-size: 34px; margin-bottom: 18px; }
.auth-card label { display: block; font-size: 13px; font-weight: 600; margin: 26px 0 8px; }
.auth-card input[type=password] { width: 100%; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; color: var(--text); padding: 13px 16px; min-height: 50px; }
.primary, .secondary { display: flex; align-items: center; justify-content: space-between; text-decoration: none; border: 1px solid transparent; border-radius: 12px; padding: 13px 18px; min-height: 50px; font-size: 14px; font-weight: 600; }
.primary { background: var(--gradient); color: var(--bg); box-shadow: 0 8px 28px #7c3aed26; transition: transform .15s, box-shadow .15s; }
.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 30px #22d3ee26; }
.secondary { border-color: var(--border); background: transparent; color: var(--text); }
.auth-card button.primary { width: 100%; margin-top: 22px; }
.fine { font-size: 12px; line-height: 1.7; margin: 24px 0 0; }
.setup-steps { padding-left: 20px; font-size: 13px; }
.setup-steps li { margin-bottom: 16px; }
code { font-family: var(--font-label); font-size: .9em; }
.setup-steps pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg); padding: 12px; border: 1px solid var(--border); border-radius: 12px; font-size: 12px; }
.auth-card > .button { margin-top: 24px; }
@media (max-width: 1120px) {
  .workspace { grid-template-columns: 180px minmax(0, 1fr); }
  .workspace main { padding: 32px 24px; }
  .sidebar { padding: 30px 16px; }
  .detail-grid { grid-template-columns: 1fr; }
  .tag { display: none; }
  .summary-grid { gap: 12px; }
  .metric { padding: 18px; }
  .metric h2 { font-size: 17px; }
}
@media (max-width: 760px) {
  .topbar { padding: 18px 20px; gap: 16px; flex-wrap: wrap; }
  .top-actions { width: 100%; justify-content: space-between; gap: 16px; }
  .local-badge { font-size: 11px; }
  .workspace { display: block; }
  .sidebar { padding: 14px 20px; border-right: 0; border-bottom: 1px solid var(--soft-border); }
  .sidebar .nav-label, .project-context, .side-footer { display: none; }
  .sidebar > a { max-width: 180px; }
  .workspace main { padding: 28px 20px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading .muted { font-size: 13px; }
  .summary-grid { grid-template-columns: 1fr; gap: 16px; }
  .metric { padding: 22px; }
  .metric h2 { font-size: 20px; }
  .notice { padding: 20px; gap: 12px; }
  .notice-icon { width: 26px; height: 26px; border-radius: 8px; }
  .detail-grid { gap: 18px; }
  .roadmap { align-items: flex-start; flex-direction: column; gap: 16px; padding: 22px; }
  .auth-card { padding: 30px 24px; border-radius: 16px; }
  .auth-card h1 { font-size: 30px; }
  .brand { gap: 9px; }
  .brand-name { font-size: 20px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand-product { font-size: 9px; padding-left: 10px; }
  .agent-row { flex-wrap: wrap; }
  .section-heading { flex-wrap: wrap; }
  .panel { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .primary:hover { transform: none; }
}
@media (forced-colors: active) {
  .gradient-text, .brand-name { background: none; color: CanvasText; }
  .primary, .secondary, .quiet { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; box-shadow: none; }
  a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline-color: Highlight; }
  .brand-mark { forced-color-adjust: none; }
}

.sidebar > a + a { margin-top: 10px; }
.order-section { margin-bottom: 24px; }
.order-form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.order-form label { display: block; font-weight: 600; }
.order-form input:not([type=checkbox]), .order-form select, .order-form textarea { display: block; width: 100%; min-height: 48px; margin-top: 8px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); color: var(--text); }
.order-form textarea { resize: vertical; }
.order-form .wide { grid-column: 1 / -1; }
.order-form .order-check { display: flex; gap: 12px; align-items: flex-start; padding: 24px 0; }
.order-check input { flex-shrink: 0; width: 22px; height: 22px; accent-color: var(--cyan); }
.order-action { max-width: 320px; }
.order-actions { display: flex; gap: 16px; flex-wrap: wrap; }
.order-row { border-top: 1px solid var(--soft-border); padding: 20px 0; overflow-wrap: anywhere; }
.order-row p:last-child { margin-bottom: 0; }
.order-fields dt { font-weight: 600; color: var(--muted); margin-top: 16px; }
.order-fields dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.order-text { font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.order-state { color: var(--cyan); font-weight: 600; }
.order-hash { font-family: var(--font-label); font-size: 11px; }
.page-heading h1 { overflow-wrap: anywhere; }
@media (max-width: 760px) { .order-form-grid { grid-template-columns: 1fr; } }
