@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("/assets/atkinson-hyperlegible-next-latin-wght-normal-c30cdd7a.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --canvas: #0b131c;
  --panel: #111b26;
  --raised: #17222e;
  --line: #26333f;
  --ink: #eef5f6;
  --muted: #9aabb8;
  --mint: #70e5cb;
  --lime: #c0f78d;
}
.app-body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Atkinson Hyperlegible Next", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
.app-body *, .app-body *::before, .app-body *::after { box-sizing: border-box; }
.app-body a, .app-body button, .app-body input { transition: background-color .15s, border-color .15s, color .15s; }
.app-body :focus-visible { outline: 2px solid var(--mint); outline-offset: 4px; }
.app-body button, .app-body summary, .app-body input[type="submit"] { cursor: pointer; }
.app-body a { text-underline-offset: 4px; }
.app-body a:hover { color: var(--lime); }
.app-workspace { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.has-sidebar .app-workspace { margin-left: 252px; }
.app-sidebar { position: fixed; inset: 0 auto 0 0; width: 252px; padding: 28px 18px; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line); }
.sidebar-brand { display: flex; align-items: center; justify-content: space-between; padding: 0 12px 28px; }
.app-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 28px; font-weight: 650; letter-spacing: -.05em; }
.app-brand svg { stroke: var(--mint); }
.product-label { color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.workspace-picker { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 25px; flex-wrap: wrap; }
.workspace-avatar, .user-avatar { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; background: #23352f; color: var(--lime); font-weight: 600; }
.workspace-name { min-width: 0; flex: 1; }
.workspace-name strong { display: block; font-size: 13px; overflow-wrap: anywhere; }
.eyebrow { display: block; color: var(--muted); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.workspace-switch { color: var(--mint); font-size: 12px; }
.nav-group + .nav-group { margin-top: 20px; }
.nav-group-label { margin: 0 12px 6px; font-size: 10px; font-weight: 600; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.nav-group > summary { padding-block: 7px; }
.nav-group > summary::marker { color: var(--mint); }
.nav-link { display: flex; align-items: center; gap: 11px; padding: 8px 12px; min-height: 39px; margin: 2px 0; border-radius: 8px; color: #b4c2cd; text-decoration: none; font-size: 13px; }
.nav-link:hover { background: #1a2933; }
.nav-link[aria-current="page"] { background: #24362d; color: var(--lime); box-shadow: inset 2px 0 var(--lime); }
.ui-icon { width: 19px; height: 19px; flex-shrink: 0; }
.app-topbar { display: flex; align-items: center; gap: 24px; min-height: 80px; padding: 16px 40px; border-bottom: 1px solid var(--line); }
.topbar-context { color: var(--muted); font-size: 13px; }
.topbar-search { display: flex; align-items: center; gap: 10px; width: min(360px, 40vw); padding: 8px 14px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); font-size: 13px; text-decoration: none; }
.account-menu { position: relative; margin-left: auto; }
.account-menu > summary { display: flex; align-items: center; gap: 10px; font-size: 13px; list-style: none; }
.account-menu > summary::after { content: "⌄"; color: var(--muted); }
.account-panel { position: absolute; z-index: 20; right: 0; top: calc(100% + 12px); display: grid; gap: 16px; padding: 20px; width: max-content; max-width: calc(100vw - 32px); border: 1px solid var(--line); border-radius: 12px; background: var(--raised); box-shadow: 0 12px 40px #0005; overflow-wrap: anywhere; }
.account-panel > span { font-size: 12px; color: var(--muted); }
.account-panel > a { color: var(--mint); font-size: 13px; }
.app-main { width: 100%; max-width: 1440px; margin: 0 auto; padding: 38px 40px 64px; flex: 1; min-width: 0; }
.page-heading { margin-bottom: 32px; }
.page-heading h1 { margin-top: 6px; font-size: 30px; font-weight: 550; letter-spacing: -.04em; line-height: 1.2; }
.app-main h2 { letter-spacing: -.025em; }
.app-main td, .app-main th { padding-block: 14px; }
.app-main table { line-height: 1.5; }
.app-main pre { overflow-x: auto; }
.ui-input { border: 1px solid #3a4f5e; border-radius: 9px; background: var(--panel); color: var(--ink); min-height: 42px; }
.ui-input:focus { border-color: var(--mint); }
.ui-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 9px 17px; min-height: 42px; border: 1px solid transparent; border-radius: 9px; font-size: 13px; font-weight: 600; text-decoration: none; }
.ui-button-primary { background: var(--lime); color: var(--canvas); }
.app-body .ui-button-primary:hover { background: #d7ffb5; color: var(--canvas); }
.ui-button-secondary { border-color: #3a4f5e; background: var(--raised); color: var(--ink); }
.ui-button-secondary:hover { background: #22313e; }
.ui-button-danger { border-color: #713f45; background: #2c1b23; color: #ffb5bc; }
.app-footer { display: flex; justify-content: space-between; gap: 20px; margin: 0 40px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.footer-brand { font-weight: 650; letter-spacing: -.04em; }
.deployment-details { text-align: right; }
.deployment-facts { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 10px; font-family: ui-monospace, monospace; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 10px 16px; border-radius: 8px; background: var(--lime); color: var(--canvas); }
.skip-link:focus { top: 12px; }
.standalone .app-main { max-width: 1050px; padding-top: 70px; }
.standalone .app-topbar { padding-inline: max(24px, calc((100vw - 970px) / 2)); }
.auth-card { padding: 32px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); }
.auth-card .ui-button { width: 100%; }
.auth-heading { color: var(--mint); margin-bottom: 14px; }
.auth-intro { color: var(--muted); margin-top: 10px; font-size: 14px; }
.overview-hero { position: relative; padding: 32px; border: 1px solid #30433d; border-radius: 18px; background: linear-gradient(115deg, #182b2b, #142126 60%, #192921); overflow: hidden; }
.overview-hero::after { content: "✳"; position: absolute; right: 32px; top: -40px; font-size: 230px; line-height: 1.4; color: #70e5cb0d; pointer-events: none; }
.overview-hero .eyebrow { color: var(--mint); }
.overview-hero h2 { margin-top: 12px; font-size: clamp(26px, 3vw, 40px); line-height: 1.15; font-weight: 500; max-width: 600px; }
.overview-hero p:not(.eyebrow) { margin: 14px 0 24px; max-width: 510px; color: #b4c6cc; font-size: 14px; }
.overview-hero .ui-button { position: relative; z-index: 1; }
.overview-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.metric { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px 24px; }
.metric dt { font-size: 12px; color: var(--muted); }
.metric dd { font-size: 26px; font-weight: 550; margin: 6px 0 0; letter-spacing: -.03em; }
.metric:first-child dd { color: var(--mint); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin: 36px 0 16px; }
.section-heading h2 { font-size: 18px; font-weight: 550; }
.section-heading span { font-size: 12px; color: var(--muted); }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.quick-link { display: flex; flex-direction: column; align-items: flex-start; padding: 24px; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.quick-link:hover { border-color: #587b70; background: #14232b; }
.quick-icon { display: grid; place-items: center; height: 40px; width: 40px; border: 1px solid #35504b; border-radius: 11px; color: var(--mint); background: #1c3030; margin-bottom: 22px; }
.quick-link strong { font-size: 16px; font-weight: 550; }
.quick-link p { font-size: 13px; color: var(--muted); margin-top: 8px; flex: 1; }
.quick-link > .ui-icon { align-self: flex-end; color: var(--mint); margin-top: 24px; }
.workspace-note { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 16px 20px; color: var(--muted); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; }
.workspace-note .ui-icon { color: var(--mint); }
.trial-banner { margin: -16px 0 24px; padding: 10px 16px; border: 1px solid #35504b; border-radius: 10px; background: #14232b; color: #b4c6cc; font-size: 13px; }
.trial-banner.is-ended { border-color: #6b5a2c; background: #241f12; color: #f3dfa2; }
.start-steps { padding: 32px; border: 1px solid #30433d; border-radius: 18px; background: linear-gradient(115deg, #182b2b, #142126 60%, #192921); }
.start-heading .eyebrow { color: var(--mint); }
.start-heading h2 { margin-top: 10px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; font-weight: 500; }
.start-heading > p:not(.eyebrow) { margin-top: 10px; max-width: 640px; color: #b4c6cc; font-size: 14px; }
.start-progress { display: flex; align-items: center; gap: 12px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.start-progress progress { width: min(260px, 50vw); height: 8px; accent-color: var(--lime); }
.start-model { font-size: 12px; }
.start-model a { color: var(--mint); margin-left: 6px; }
.start-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; padding: 0; list-style: none; }
.start-step { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); font-size: 13px; }
.start-step.is-done { border-color: #587b70; }
.start-step > * + * { margin-top: 12px; }
.start-step-head { display: flex; align-items: center; gap: 12px; }
.start-step-head h3 { font-size: 16px; font-weight: 550; }
.step-number { display: grid; place-items: center; width: 30px; height: 30px; flex-shrink: 0; border: 1px solid #35504b; border-radius: 9px; color: var(--mint); background: #1c3030; font-weight: 600; }
.is-done .step-number { color: var(--canvas); background: var(--lime); border-color: var(--lime); }
.copy-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.copy-row code { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--canvas); font-size: 12px; overflow-wrap: anywhere; }
.start-guide summary { color: var(--mint); }
.start-guide ol { margin: 8px 0 0 18px; list-style: decimal; }
.start-guide pre { margin-top: 8px; padding: 10px; border-radius: 8px; background: var(--canvas); font-size: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.start-label { color: var(--muted); }
.start-prompts { margin-left: 18px; list-style: disc; color: #b4c6cc; }
.start-found { padding: 8px 10px; border-radius: 8px; background: #1c3030; color: var(--lime); }
.start-found a { color: var(--ink); }
.mobile-navigation { display: none; }
@media (min-width: 1600px) { .app-main { padding-top: 48px; } }
@media (max-width: 1100px) {
  .app-sidebar { width: 224px; padding-inline: 12px; }
  .has-sidebar .app-workspace { margin-left: 224px; }
  .app-main { padding-inline: 24px; }
  .app-topbar { padding-inline: 24px; }
  .quick-link { padding: 20px; }
  .start-list { grid-template-columns: 1fr; }
  .account-name { display: none; }
}
@media (max-width: 760px) {
  .app-sidebar { display: none; }
  .has-sidebar .app-workspace { margin-left: 0; }
  .app-topbar { gap: 14px; min-height: 70px; padding: 14px 20px; position: relative; }
  .topbar-context { display: none; }
  .topbar-search { width: auto; flex: 1; }
  .topbar-search span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .mobile-navigation { display: block; }
  .mobile-navigation > summary { list-style: none; border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font-size: 13px; }
  .mobile-navigation[open] > summary { color: var(--lime); border-color: var(--lime); }
  .mobile-navigation-panel { position: absolute; left: 0; right: 0; top: 100%; max-height: 75dvh; overflow-y: auto; z-index: 30; background: var(--panel); border-bottom: 1px solid var(--line); box-shadow: 0 16px 24px #0006; padding: 20px; }
  .mobile-navigation-panel .nav-link { min-height: 44px; }
  .app-main { padding: 26px 20px 44px; }
  .page-heading { margin-bottom: 24px; }
  .page-heading h1 { font-size: 27px; }
  .overview-hero { padding: 25px; }
  .overview-hero::after { right: -60px; }
  .overview-metrics { gap: 10px; }
  .metric { padding: 16px 12px; }
  .metric dd { font-size: 21px; }
  .quick-links { grid-template-columns: 1fr; }
  .start-steps { padding: 22px; }
  .start-list { grid-template-columns: 1fr; }
  .quick-link { position: relative; padding: 22px 52px 22px 80px; }
  .quick-icon { position: absolute; left: 22px; top: 24px; }
  .quick-link > .ui-icon { position: absolute; right: 20px; top: 28px; margin: 0; }
  .section-heading span { display: none; }
  .app-footer { margin-inline: 20px; }
  .standalone .app-main { padding-top: 35px; }
  .auth-card { padding: 25px; }
}
@media (max-width: 380px) {
  .overview-metrics { grid-template-columns: 1fr; }
  .metric { display: flex; align-items: center; justify-content: space-between; }
  .metric dd { margin: 0; }
}
@media (prefers-reduced-motion: reduce) { .app-body * { transition: none !important; } }
