/* =============================================================
   xDrones — white console layout
   Pure white · sidebar navigation · sliding tab indicator
   ============================================================= */

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f7f7f5;
  --line: #e8e8e4;
  --line-2: #d8d8d2;

  --text: #101210;
  --text-2: #3a3d39;
  --muted: #6d716b;
  --muted-2: #9a9d97;

  --lime: #c6f135;
  --lime-tint: #eef9c8;
  --lime-ink: #587a0c;

  --green: #2f8a2a;  --green-bg: #e6f4e4;
  --amber: #b8770f;  --amber-bg: #fbf0d6;
  --red:   #d13b34;  --red-bg:   #fbe5e3;
  --blue:  #2b62a8;  --blue-bg:  #e6eefb;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --r: 10px;
  --r-sm: 7px;
  --side: 224px;
  --top: 60px;
  --ease: cubic-bezier(.2,.7,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 14.5px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--lime); color: #111; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ------------------------------------------------------------- */
/* top bar                                                       */
/* ------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 50; height: var(--top); background: var(--bg); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; padding: 0 20px; gap: 10px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 15px; margin-right: 6px; }
.brand .glyph { width: 26px; height: 26px; border-radius: 7px; background: var(--text); display: grid; place-items: center; }
.brand .glyph svg { width: 17px; height: 17px; }
.top .grow { flex: 1; }

.ca-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm);
  padding: 7px 11px; font-size: 12.5px; color: var(--text-2); cursor: pointer; transition: border-color .15s, background-color .15s; white-space: nowrap; }
.ca-pill:hover { border-color: var(--line-2); background: var(--surface-2); }
.ca-pill .sym { font-weight: 600; color: var(--text); }
.ca-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.ca-pill svg { width: 14px; height: 14px; color: var(--muted); }

.icon-btn { width: 34px; height: 34px; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); display: grid; place-items: center;
  color: var(--text-2); transition: background-color .15s, border-color .15s; }
.icon-btn:hover { background: var(--surface-2); border-color: var(--line-2); }
.icon-btn svg { width: 15px; height: 15px; }

.btn { display: inline-flex; align-items: center; gap: 8px; justify-content: center; font-size: 13.5px; font-weight: 600; padding: 9px 14px;
  border-radius: var(--r-sm); border: 1px solid transparent; transition: background-color .15s, border-color .15s, color .15s, transform .15s var(--ease); white-space: nowrap; }
.btn svg { width: 14px; height: 14px; }
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--text); color: #fff; }
.btn-primary:hover { background: #2a2d29; }
.btn-lime { background: var(--lime); color: #111; }
.btn-lime:hover { background: #b9e52a; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--line-2); }
.btn-sm { padding: 7px 11px; font-size: 12.5px; }
.link { color: var(--text); font-weight: 500; font-size: 13.5px; border-bottom: 1px solid var(--line-2); transition: border-color .15s; }
.link:hover { border-color: var(--text); }

/* ------------------------------------------------------------- */
/* shell: sidebar + content                                      */
/* ------------------------------------------------------------- */
.shell { display: grid; grid-template-columns: var(--side) 1fr; min-height: calc(100vh - var(--top)); max-width: 100%; }
.shell > * { min-width: 0; }            /* grid items must be allowed to shrink, or the tab strip forces overflow */
.dash > * { min-width: 0; }
.side { border-right: 1px solid var(--line); padding: 18px 12px; position: sticky; top: var(--top); height: calc(100vh - var(--top)); display: flex; flex-direction: column; }
.side-nav { position: relative; display: flex; flex-direction: column; gap: 2px; }
.side-nav .ind { position: absolute; left: 0; width: 3px; border-radius: 2px; background: var(--lime); transition: top .28s var(--ease), height .28s var(--ease), left .28s var(--ease), width .28s var(--ease); }
.tab { position: relative; background: transparent; border: 0; text-align: left; color: var(--muted); font-size: 13.5px; font-weight: 500; padding: 9px 12px 9px 16px;
  border-radius: var(--r-sm); transition: color .15s, background-color .15s; display: flex; align-items: center; gap: 10px; }
.tab .k { font-family: var(--mono); font-size: 10.5px; color: var(--muted-2); width: 18px; }
.tab:hover { color: var(--text); background: var(--surface-2); }
.tab.active { color: var(--text); font-weight: 600; }
.tab.active .k { color: var(--lime-ink); }
.side .foot { margin-top: auto; padding: 12px 12px 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.side .foot a:hover { color: var(--text); }
.side .status { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 10px 12px; margin-bottom: 8px; border: 1px solid var(--line); border-radius: var(--r-sm); }
.side .status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-bg); }

.content { padding: 28px 32px 48px; min-width: 0; max-width: 1180px; }

/* ------------------------------------------------------------- */
/* views + transitions                                           */
/* ------------------------------------------------------------- */
.view { display: none; }
.view.active { display: block; animation: viewIn .32s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.page-head { margin-bottom: 22px; }
.page-head .eyebrow { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.page-head .eyebrow::before { content: ""; width: 14px; height: 2px; background: var(--lime); border-radius: 2px; }
.page-head h1, .page-head h2 { font-size: 26px; line-height: 1.15; font-weight: 600; letter-spacing: -.02em; margin: 0 0 8px; }
.page-head .lead { color: var(--text-2); font-size: 15px; max-width: 620px; margin: 0; }
.page-head .cta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.page-head .note { margin: 14px 0 0; font-size: 13px; color: var(--muted); max-width: 620px; }
.page-head .note b { color: var(--text-2); font-weight: 600; }
.count { font-size: 11.5px; font-weight: 600; background: var(--surface-2); color: var(--text-2); padding: 2px 7px; border-radius: 999px; margin-left: 8px; vertical-align: middle; }

/* ------------------------------------------------------------- */
/* cards / chips                                                 */
/* ------------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.card-pad { padding: 18px 20px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.card-head h3 { font-size: 14px; font-weight: 600; margin: 0; }
.card-head .sub { font-size: 12.5px; color: var(--muted); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); white-space: nowrap; }
.chip.lime { background: var(--lime-tint); color: var(--lime-ink); }
.chip.green { background: var(--green-bg); color: var(--green); }
.chip.blue { background: var(--blue-bg); color: var(--blue); }
.chip.amber { background: var(--amber-bg); color: var(--amber); }
.chip.red { background: var(--red-bg); color: var(--red); }
.chip.dark { background: var(--text); color: #fff; }

/* ------------------------------------------------------------- */
/* dashboard layout                                              */
/* ------------------------------------------------------------- */
.dash { display: grid; grid-template-columns: 1fr 320px; gap: 16px; align-items: start; }
.dash-side { display: grid; gap: 16px; }
.section-title { display: flex; align-items: center; margin: 0 0 10px; font-size: 14px; font-weight: 600; }
.section-title .sub { font-weight: 400; color: var(--muted); margin-left: 8px; font-size: 13px; }

/* stat list */
.statlist { display: grid; }
.statlist .row { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.statlist .row:last-child { border-bottom: 0; }
.statlist .k { font-size: 13px; color: var(--muted); }
.statlist .v { font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.statlist .v .u { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 2px; }

/* latest deploy */
.feat-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.feat-id { display: flex; align-items: center; gap: 10px; }
.av { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); color: var(--text); display: grid; place-items: center; font-weight: 700; font-size: 11.5px; flex-shrink: 0; }
.feat-name { font-weight: 600; font-size: 14px; line-height: 1.2; }
.feat-sub { font-size: 12px; color: var(--muted); }
.feat-big { font-size: 26px; font-weight: 600; letter-spacing: -.01em; line-height: 1; }
.feat-big.pos { color: var(--green); }
.feat-big.neg { color: var(--red); }
.feat-since { font-size: 12px; color: var(--muted); margin-top: 3px; }
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.feat-grid .k { font-size: 11.5px; color: var(--muted); }
.feat-grid .v { font-size: 13.5px; font-weight: 600; margin-top: 1px; }
.feat-spark { margin-top: 12px; }
.feat-spark svg { width: 100%; height: 40px; display: block; }

/* mini roadmap */
.mini-rm .row { display: grid; grid-template-columns: 58px 1fr; gap: 10px; padding: 11px 18px; border-bottom: 1px solid var(--line); align-items: start; }
.mini-rm .row:last-child { border-bottom: 0; }
.mini-rm h4 { font-size: 13px; font-weight: 600; margin: 0 0 1px; }
.mini-rm p { font-size: 12.5px; color: var(--muted); margin: 0; }

/* ------------------------------------------------------------- */
/* tables                                                        */
/* ------------------------------------------------------------- */
.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; }
table.tokens { width: 100%; border-collapse: collapse; min-width: 700px; }
table.tokens th { text-align: left; font-size: 11.5px; font-weight: 500; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
table.tokens td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13.5px; vertical-align: middle; }
table.tokens tr:last-child td { border-bottom: 0; }
table.tokens tbody tr { transition: background-color .12s; }
table.tokens tbody tr:hover { background: #fbfbf9; }
.tk { display: flex; align-items: center; gap: 10px; }
.tk .av { width: 28px; height: 28px; font-size: 10.5px; }
.tk .s { font-weight: 600; }
.tk .n { font-size: 11.5px; color: var(--muted); font-family: var(--mono); }
.roi { font-weight: 600; }
.roi.pos { color: var(--green); }
.roi.neg { color: var(--red); }
.evbar { display: flex; align-items: center; gap: 8px; }
.evbar .track { width: 56px; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; }
.evbar .fill { height: 100%; border-radius: 999px; background: var(--green); }
.evbar .fill.mid { background: var(--amber); }
.evbar .fill.low { background: var(--red); }
.evbar .num { font-size: 12.5px; width: 20px; }
.status { font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.status.WIN { background: var(--green-bg); color: var(--green); }
.status.OPEN { background: var(--blue-bg); color: var(--blue); }
.status.PASSED { background: var(--surface-2); color: var(--muted); }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.search { flex: 1; min-width: 220px; display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 12px; transition: border-color .15s; }
.search:focus-within { border-color: var(--text); }
.search svg { width: 14px; height: 14px; color: var(--muted); }
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-family: inherit; font-size: 13.5px; padding: 9px 0; color: var(--text); }
.filters { display: flex; gap: 4px; background: var(--surface-2); padding: 3px; border-radius: var(--r-sm); }
.fchip { background: transparent; border: 0; border-radius: 5px; padding: 6px 11px; font-size: 12.5px; color: var(--muted); transition: all .15s; }
.fchip:hover { color: var(--text); }
.fchip.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* skeleton */
.sk { position: relative; overflow: hidden; background: var(--surface-2); border-radius: 5px; }
.sk::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.8), transparent); animation: shimmer 1.1s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-line { height: 11px; }
.chart-box .sk { position: absolute; inset: 12px 0 0; }

/* ------------------------------------------------------------- */
/* charts                                                        */
/* ------------------------------------------------------------- */
.chart-card { padding: 16px 18px; }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ch-head h3 { font-size: 14px; font-weight: 600; margin: 0; }
.ch-head .sub { font-size: 12px; color: var(--muted); }
.range { display: flex; gap: 2px; background: var(--surface-2); padding: 2px; border-radius: 6px; }
.range button { background: transparent; border: 0; border-radius: 4px; padding: 4px 9px; font-size: 12px; color: var(--muted); transition: all .15s; }
.range button.active { background: var(--surface); color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.chart-box { position: relative; height: 270px; margin-top: 10px; }
.chart-box.sm { height: 200px; }
.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: 1fr 1fr; }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.kpi { padding: 14px 16px; }
.kpi .k { font-size: 12px; color: var(--muted); }
.kpi .v { font-size: 22px; font-weight: 600; margin-top: 4px; letter-spacing: -.01em; }
.kpi .v.pos { color: var(--green); }

/* ------------------------------------------------------------- */
/* steps / roadmap                                               */
/* ------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.step { padding: 16px 18px; }
.step .no { font-family: var(--mono); font-size: 11px; color: var(--lime-ink); }
.step h3 { font-size: 14px; font-weight: 600; margin: 8px 0 3px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.explain h3 { font-size: 17px; font-weight: 600; margin: 0 0 6px; letter-spacing: -.01em; }
.explain p { color: var(--muted); font-size: 13.5px; margin: 0; }
.explain ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 7px; }
.explain li { display: flex; gap: 10px; align-items: baseline; font-size: 13.5px; color: var(--text-2); }
.explain li .mk { font-family: var(--mono); font-size: 11px; color: var(--lime-ink); }

.timeline { position: relative; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl-item { position: relative; padding: 0 0 22px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -20px; top: 6px; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-2); }
.tl-item.done::before { background: var(--lime); border-color: var(--lime); }
.tl-item.now::before { background: var(--text); border-color: var(--text); }
.tl-item .when { font-size: 11.5px; color: var(--muted); font-weight: 500; margin-bottom: 2px; }
.tl-item h3 { font-size: 15px; font-weight: 600; margin: 0 0 3px; }
.tl-item p { font-size: 13.5px; color: var(--muted); margin: 0; max-width: 620px; }
.tl-item.highlight .card-pad { border-color: var(--lime); background: linear-gradient(90deg, #fafdf0, #fff 55%); }

/* ------------------------------------------------------------- */
/* demo                                                          */
/* ------------------------------------------------------------- */
.demo-grid { display: grid; grid-template-columns: 360px 1fr; gap: 14px; align-items: start; }
.demo-in h3, .demo-out h3 { font-size: 14px; font-weight: 600; margin: 0 0 4px; }
.demo-in p { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.field { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; transition: border-color .15s; }
.field:focus-within { border-color: var(--text); }
.field.err { border-color: var(--red); }
.field .pre { font-family: var(--mono); font-size: 11.5px; color: var(--muted); padding: 0 10px; border-right: 1px solid var(--line); align-self: stretch; display: grid; place-items: center; background: var(--surface-2); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--mono); font-size: 12.5px; padding: 11px; color: var(--text); }
.demo-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.samples { margin-top: 16px; }
.samples .lbl { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.samples .row { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 5px 10px; font-size: 12px; color: var(--text-2); transition: all .15s; }
.pill:hover { border-color: var(--text); color: var(--text); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 16px; font-size: 11.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }

.demo-out { min-height: 320px; display: flex; flex-direction: column; }
.demo-idle { flex: 1; display: grid; place-items: center; color: var(--muted); font-size: 13.5px; text-align: center; min-height: 260px; }
.scan-steps { display: grid; gap: 9px; margin-top: 8px; }
.scan-steps .st { display: grid; grid-template-columns: 14px 1fr auto; gap: 10px; align-items: center; font-size: 13px; color: var(--muted-2); transition: color .2s; }
.scan-steps .st .box { width: 11px; height: 11px; border-radius: 3px; border: 1px solid var(--line-2); transition: background-color .2s, border-color .2s; }
.scan-steps .st.done { color: var(--text-2); }
.scan-steps .st.done .box { background: var(--lime); border-color: var(--lime); }
.scan-steps .st .stat { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

.verdict-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.verdict-flag { font-size: 12.5px; font-weight: 600; padding: 6px 11px; border-radius: 6px; }
.verdict-flag.deploy { background: var(--green-bg); color: var(--green); }
.verdict-flag.skip { background: var(--red-bg); color: var(--red); }
.verdict-ev { text-align: right; }
.verdict-ev .num { font-size: 30px; font-weight: 600; line-height: 1; letter-spacing: -.01em; }
.verdict-ev .lbl { font-size: 11.5px; color: var(--muted); }

/* segmented level meters */
.levels { display: grid; gap: 12px; }
.lvl .top { display: flex; justify-content: space-between; align-items: baseline; font-size: 12.5px; margin-bottom: 6px; }
.lvl .top b { font-weight: 600; color: var(--text); }
.lvl .top .tier { font-weight: 600; font-size: 11.5px; padding: 2px 7px; border-radius: 5px; }
.lvl .top .tier.g { background: var(--green-bg); color: var(--green); }
.lvl .top .tier.a { background: var(--amber-bg); color: var(--amber); }
.lvl .top .tier.r { background: var(--red-bg); color: var(--red); }
.seg { display: flex; gap: 3px; }
.seg i { flex: 1; height: 9px; border-radius: 2px; background: var(--line); transition: background-color .25s ease, transform .25s ease; }
.seg i.on.g { background: var(--green); }
.seg i.on.a { background: var(--amber); }
.seg i.on.r { background: var(--red); }
.lvl .val { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.verdict-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ------------------------------------------------------------- */
/* connect / referral / faq / legal / 404                        */
/* ------------------------------------------------------------- */
.uplink { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); transition: background-color .12s; }
.uplink:hover { background: #fbfbf9; }
.uplink:last-child { border-bottom: 0; }
.uplink .mark { width: 32px; height: 32px; border-radius: 8px; background: var(--surface-2); display: grid; place-items: center; color: var(--text-2); }
.uplink .mark svg { width: 16px; height: 16px; }
.uplink h3 { font-size: 14px; font-weight: 600; margin: 0 0 1px; }
.uplink p { font-size: 12.5px; color: var(--muted); margin: 0; }
.uplink .right { display: flex; align-items: center; gap: 10px; }
.referral { margin-top: 14px; display: grid; grid-template-columns: 1.3fr 1fr; }
.referral .l { padding: 18px 20px; border-right: 1px solid var(--line); }
.referral .r { padding: 18px 20px; display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.referral h3 { font-size: 15px; font-weight: 600; margin: 0 0 4px; }
.referral p { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.ref-code { display: flex; gap: 8px; }
.ref-code .code { flex: 1; font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ref-x { display: flex; align-items: center; gap: 10px; }
.ref-x .h { font-weight: 600; font-size: 13.5px; }
.ref-x .at { font-size: 12px; color: var(--muted); }

.faq .qa { border-bottom: 1px solid var(--line); }
.faq .qa:last-child { border-bottom: 0; }
.qa button.q { width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); padding: 14px 18px; font-size: 14px; font-weight: 500; display: flex; justify-content: space-between; gap: 12px; }
.qa .plus { color: var(--muted); font-size: 18px; line-height: 1; transition: transform .2s var(--ease); }
.qa.open .plus { transform: rotate(45deg); }
.qa .a { max-height: 0; overflow: hidden; transition: max-height .25s var(--ease); }
.qa.open .a { max-height: 260px; }
.qa .inner { padding: 0 18px 14px; font-size: 13.5px; color: var(--muted); }

.legal { max-width: 760px; }
.legal h3 { font-size: 14px; font-weight: 600; margin: 20px 0 5px; }
.legal h3:first-child { margin-top: 0; }
.legal p, .legal li { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.legal ul { padding-left: 18px; }
.updated { font-size: 12.5px; color: var(--muted-2); }

.notfound { padding: 36px; display: grid; gap: 6px; justify-items: start; }
.nf-code { font-size: 52px; font-weight: 600; letter-spacing: -.02em; color: var(--muted-2); line-height: 1; }

/* ------------------------------------------------------------- */
/* footer                                                        */
/* ------------------------------------------------------------- */
.footer { border-top: 1px solid var(--line); padding: 18px 20px 26px; display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted-2); }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer .links { display: flex; gap: 14px; flex-wrap: wrap; }

/* ------------------------------------------------------------- */
/* toasts                                                        */
/* ------------------------------------------------------------- */
.toasts { position: fixed; right: 16px; bottom: 16px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(340px, calc(100vw - 32px)); }
.toast { display: grid; grid-template-columns: 3px 1fr auto; gap: 12px; align-items: center; background: var(--text); color: #fff; border-radius: var(--r-sm); padding: 11px 12px; font-size: 13px;
  opacity: 0; transform: translateY(6px); transition: opacity .18s, transform .18s var(--ease); }
.toast.in { opacity: 1; transform: none; }
.toast .bar { align-self: stretch; border-radius: 2px; }
.toast.ok .bar { background: var(--lime); }
.toast.err .bar { background: #ff7b73; }
.toast.info .bar { background: #8fb3ea; }
.toast .msg b { display: block; font-weight: 600; margin-bottom: 1px; }
.toast .msg span { color: rgba(255,255,255,.7); }
.toast .x { background: transparent; border: 0; color: rgba(255,255,255,.6); font-size: 15px; padding: 0 2px; }
.toast .x:hover { color: #fff; }

/* ------------------------------------------------------------- */
/* responsive                                                    */
/* ------------------------------------------------------------- */
@media (max-width: 1000px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: sticky; top: var(--top); height: auto; border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 12px; background: var(--bg); z-index: 40; }
  .side-nav { flex-direction: row; gap: 2px; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; }
  .side-nav::-webkit-scrollbar { display: none; }
  .side-nav .ind { left: 0; top: auto; bottom: 0; height: 2px; width: 40px; }
  .tab { padding: 8px 12px; white-space: nowrap; }
  .tab .k { display: none; }
  .side .foot, .side .status { display: none; }
  .content { padding: 20px 20px 40px; }
  .dash { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .two, .g-2, .demo-grid, .referral { grid-template-columns: 1fr; }
  .g-4 { grid-template-columns: 1fr 1fr; }
  .referral .l { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .top { padding: 0 14px; }
  .ca-pill { display: none; }
  .top .btn-primary { display: none; }
  .steps { grid-template-columns: 1fr; }
  .page-head h1, .page-head h2 { font-size: 22px; }
  .uplink { grid-template-columns: 32px 1fr; }
  .uplink .right { grid-column: 1 / -1; justify-content: space-between; }
  .notfound { padding: 24px; }
}
