/* fable.market drop pages (/stake, /api, /api/docs, /api/dashboard, /update, owner panel).
   Additive only: every token, radius, surface and type ramp comes from the live style.css; the pieces below
   reuse the live components' exact values (cm-card and cm-in from submit.css, i-note and is-c from install.css,
   d-tbl and d-note from docs.css, .stats from style.css). */
.nav .links a.on { color: #fff; }
.links .soon { font-style: normal; }
[hidden] { display: none !important; }

/* page shell */
.dp { max-width: 1120px; margin: 0 auto; padding: 140px 24px 80px; }
.dp-narrow { max-width: 760px; }
.dp-head { text-align: center; max-width: 760px; margin: 0 auto; }
.dp-head h1 { font: 500 clamp(42px, 6.2vw, 80px)/1.01 var(--disp); letter-spacing: -.05em; text-wrap: balance; }
.dp-head p { margin: 22px auto 0; max-width: 580px; color: var(--mut); font-size: 18px; line-height: 1.55; text-wrap: balance; }
.dp-head .h-cta { margin-top: 32px; }
.dp-sec { margin-top: 110px; }
.dp-sec > .is-head, .dp-sec-head { max-width: 640px; }
.dp-sec-head h2 { font-size: clamp(32px, 4vw, 48px); }
.dp-sec-head p { margin-top: 16px; color: var(--mut); font-size: 17px; line-height: 1.55; }
.dp-sec-head.c { margin: 0 auto; text-align: center; }

/* card: the live submit card */
.dp-card { padding: 30px; border-radius: 26px; background: var(--s1); box-shadow: 0 0 0 1px var(--line), 0 50px 100px -60px rgba(0, 0, 0, .9); min-width: 0; }
.dp-card.glow { box-shadow: 0 0 0 1px rgba(169, 187, 255, .22), 0 50px 100px -60px rgba(0, 0, 0, .9); background: linear-gradient(180deg, rgba(47, 91, 255, .07), var(--s1) 46%); }
.dp-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.dp-card-h b { font: 500 20px/1.2 var(--disp); letter-spacing: -.02em; }
.dp-card-h small { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); }
.dp-lbl { display: block; font-size: 14px; font-weight: 500; color: var(--tx); margin-bottom: 10px; }
.dp-hint { margin: 10px 0 0; font-size: 13px; color: var(--mut); }
.dp-err { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: #ff8a9b; }
.dp-ok { margin: 12px 0 0; font-size: 13.5px; line-height: 1.5; color: #a8e9cf; }
.dp-mut { color: var(--mut); }

/* amount box: the live cm-in field with a MAX pill and a unit */
.dp-amt { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 10px 0 18px; border-radius: 16px; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line2); transition: box-shadow .2s, background .2s; }
.dp-amt:focus-within { box-shadow: inset 0 0 0 1.5px var(--co2); background: rgba(255, 255, 255, .05); }
.dp-amt.bad { box-shadow: inset 0 0 0 1.5px #ff6b81; }
.dp-amt input { flex: 1; min-width: 0; height: 62px; background: none; border: 0; outline: 0; color: var(--tx); font: 500 26px var(--disp); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dp-amt input::placeholder { color: var(--mut2); }
.dp-amt .u { font: 500 14px var(--mono); color: var(--mut); }
.dp-max { height: 34px; padding: 0 13px; border-radius: 17px; font: 500 12px var(--mono); letter-spacing: .08em; color: var(--co2); background: rgba(169, 187, 255, .1); box-shadow: inset 0 0 0 1px rgba(169, 187, 255, .25); transition: background .2s; }
.dp-max:hover { background: rgba(169, 187, 255, .18); }
.dp-bal { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; font-size: 13.5px; color: var(--mut); }
.dp-bal b { color: var(--tx); font-weight: 500; font-variant-numeric: tabular-nums; }

/* the one big button */
.btn.big { height: 58px; font-size: 16px; justify-content: center; width: 100%; margin-top: 18px; }
.btn[disabled], .btn.busy { opacity: .5; pointer-events: none; }
.btn.blue { background: var(--co); color: #fff; }
.btn.blue:hover { background: #4469ff; }
.btn .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: dp-spin .8s linear infinite; }
@keyframes dp-spin { to { transform: rotate(360deg); } }

/* key/value rows (the popup's .kv, larger) */
.dp-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 15px; color: var(--mut); }
.dp-kv:first-child { border-top: 0; padding-top: 0; }
.dp-kv b { color: var(--tx); font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; overflow-wrap: anywhere; }
.dp-kv b.big { font: 500 28px/1 var(--disp); letter-spacing: -.035em; }
.dp-kv b em { font-style: normal; color: var(--mut); font-size: .62em; letter-spacing: 0; margin-left: 4px; }

/* big numbers row: the live .stats strip */
.stats.dp-stats { grid-template-columns: repeat(var(--n, 3), 1fr); }
.stats.dp-stats b { font-size: 38px; }
.stats.dp-stats small { display: block; margin-top: 4px; font-size: 12.5px; color: var(--mut2); }

/* guided steps (the install stepper's numbered circles) */
.dp-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.dp-steps li { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .025); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; color: var(--mut); transition: background .3s, color .3s, box-shadow .3s; }
.dp-steps .n { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 500 13px var(--mono); color: var(--mut); box-shadow: inset 0 0 0 1px var(--line2); transition: all .35s var(--ease); }
.dp-steps li.on { color: var(--tx); background: rgba(47, 91, 255, .08); box-shadow: inset 0 0 0 1px rgba(169, 187, 255, .28); }
.dp-steps li.on .n { background: var(--co); color: #fff; box-shadow: none; }
.dp-steps li.done { color: var(--tx); }
.dp-steps li.done .n { color: #0a0a0a; background: var(--green); box-shadow: none; }
.dp-steps li.fail .n { color: #fff; background: var(--red); box-shadow: none; }
.dp-steps li small { font: 12px var(--mono); color: var(--mut); white-space: nowrap; }
.dp-steps li a { color: var(--co2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(169, 187, 255, .35); }

/* status banner (no wallet, wrong network, paused, success) */
.dp-banner { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; border-radius: 18px; background: linear-gradient(180deg, rgba(47, 91, 255, .09), rgba(47, 91, 255, .03)); box-shadow: inset 0 0 0 1px rgba(169, 187, 255, .2); }
.dp-banner .ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--co); color: #fff; }
.dp-banner .ic svg { width: 19px; height: 19px; }
.dp-banner > div { flex: 1; min-width: 200px; }
.dp-banner b { display: block; font: 500 15.5px var(--disp); letter-spacing: -.01em; }
.dp-banner span { display: block; margin-top: 2px; font-size: 13.5px; line-height: 1.45; color: var(--mut); }
.dp-banner .btn { height: 42px; flex: none; }
.dp-banner.warn { background: linear-gradient(180deg, rgba(243, 169, 59, .1), rgba(243, 169, 59, .03)); box-shadow: inset 0 0 0 1px rgba(243, 169, 59, .28); }
.dp-banner.warn .ic { background: var(--amber); color: #0a0a0a; }
.dp-banner.good { background: linear-gradient(180deg, rgba(31, 194, 138, .1), rgba(31, 194, 138, .03)); box-shadow: inset 0 0 0 1px rgba(31, 194, 138, .3); }
.dp-banner.good .ic { background: #1fc28a; }
.dp-banner.good span { color: #a8e9cf; }
.dp-banner.bad { background: linear-gradient(180deg, rgba(255, 90, 110, .1), rgba(255, 90, 110, .03)); box-shadow: inset 0 0 0 1px rgba(255, 90, 110, .3); }
.dp-banner.bad .ic { background: var(--red); }
.dp-banner a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }

/* wallet chip in a card header */
.dp-acct { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 17px; font: 500 12.5px var(--mono); color: var(--tx); background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line2); }
.dp-acct i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(79, 209, 139, .16); }
.dp-acct.off i { background: var(--mut2); box-shadow: none; }

/* contract address line (the docs copy/explorer row) */
.dp-ca { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 10px 10px 16px; border-radius: 14px; background: var(--s1); box-shadow: inset 0 0 0 1px rgba(169, 187, 255, .3); }
.dp-ca span { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); }
.dp-ca code { flex: 1; min-width: 0; font: 500 14px var(--mono); color: #fff; overflow-wrap: anywhere; }
.dp-ca button { height: 34px; padding: 0 14px; border-radius: 17px; background: var(--tx); color: #0a0a0a; font-size: 13.5px; font-weight: 500; }
.dp-ca a { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 17px; font-size: 13.5px; color: var(--co2); box-shadow: inset 0 0 0 1px var(--line2); }

/* tabs (code samples, dashboard sections): the popup's pp-tabs */
.dp-tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.dp-tabs button { font-size: 13px; padding: 7px 12px; border-radius: 9px; color: var(--mut); transition: background .2s, color .2s; }
.dp-tabs button:hover { color: var(--tx); }
.dp-tabs button.on { background: var(--s3); color: var(--tx); }

/* code */
.dp-code { position: relative; margin-top: 12px; border-radius: 16px; background: #0b0c10; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.dp-code-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 12px; border-bottom: 1px solid var(--line); }
.dp-code pre { margin: 0; padding: 16px 18px; overflow: auto; font: 13px/1.65 var(--mono); color: #d7dae3; tab-size: 2; white-space: pre; }
.dp-code pre .k { color: var(--co2); } .dp-code pre .s { color: #9fe2bf; } .dp-code pre .c { color: var(--mut2); } .dp-code pre .n { color: #f3c98b; }
.dp-copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 15px; font-size: 12.5px; color: var(--mut); box-shadow: inset 0 0 0 1px var(--line2); transition: color .2s, background .2s; }
.dp-copy:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.dp-copy svg { width: 13px; height: 13px; }
.da code, .dp-note code, .i-note code, .dp-card code.in { font: 12.5px var(--mono); color: var(--tx); background: rgba(255, 255, 255, .06); padding: 2px 6px; border-radius: 6px; }

/* tables: the docs d-tbl */
.dp-tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.dp-tbl th { text-align: left; padding: 10px 14px 10px 0; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); border-bottom: 1px solid var(--line2); white-space: nowrap; }
.dp-tbl td { padding: 14px 14px 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: #b9b9b5; line-height: 1.5; }
.dp-tbl td b { color: var(--tx); font-weight: 500; }
.dp-tbl td code { font: 12.5px var(--mono); color: var(--co2); overflow-wrap: anywhere; }
.dp-tbl .r { text-align: right; padding-right: 0; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dp-tbl tbody tr { transition: background .2s; } .dp-tbl tbody tr:hover { background: rgba(255, 255, 255, .02); }
.dp-tbl-wrap { overflow-x: auto; margin: 0 -2px; padding: 0 2px; }
.dp-free { font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 4px 6px; border-radius: 6px; background: rgba(79, 209, 139, .14); color: var(--green); margin-left: 8px; vertical-align: 2px; }
.m { display: inline-block; min-width: 46px; text-align: center; font: 600 10.5px/1 var(--mono); letter-spacing: .06em; padding: 5px 6px; border-radius: 6px; background: rgba(169, 187, 255, .14); color: var(--co2); }
.m.post { background: rgba(79, 209, 139, .14); color: var(--green); }
.m.delete { background: rgba(255, 90, 110, .15); color: var(--red); }

/* note: the docs d-note */
.dp-note { padding: 16px 18px; border-radius: 14px; background: rgba(47, 91, 255, .07); box-shadow: inset 0 0 0 1px rgba(47, 91, 255, .22); font-size: 15px; line-height: 1.65; color: #c8cff0; }
.dp-note b { color: #fff; }
.dp-note a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .35); }

/* "how it works" lines */
.dp-how { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.dp-how li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 18px 0; border-top: 1px solid var(--line); font-size: 16px; line-height: 1.55; color: #d6d6d2; }
.dp-how li:first-child { border-top: 0; padding-top: 4px; }
.dp-how .n { font: 500 13px/1.9 var(--mono); color: var(--co2); }
.dp-how b { color: var(--tx); font-weight: 600; }

/* toast */
.dp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; max-width: calc(100% - 32px); display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px; background: rgba(12, 12, 16, .92); backdrop-filter: blur(18px); box-shadow: 0 0 0 1px var(--line2), 0 24px 60px -20px rgba(0, 0, 0, .8); font-size: 14px; transition: opacity .3s, transform .4s var(--ease); }
.dp-toast.on { opacity: 1; transform: translate(-50%, 0); }
.dp-toast svg { width: 16px; height: 16px; color: var(--green); }

/* skeleton numbers while loading */
.dp-sk { display: inline-block; min-width: 64px; height: .9em; border-radius: 6px; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .11), rgba(255, 255, 255, .05)); background-size: 200% 100%; animation: dp-sk 1.4s linear infinite; vertical-align: -1px; }
@keyframes dp-sk { to { background-position: -200% 0; } }

@media (max-width: 720px) {
  .dp { padding: 110px 16px 60px; }
  .dp-head p { font-size: 16.5px; }
  .dp-card { padding: 22px 18px; border-radius: 22px; }
  .dp-sec { margin-top: 80px; }
  .stats.dp-stats { grid-template-columns: 1fr 1fr; }
  .stats.dp-stats > div:nth-child(3) { border-left: 0; }
  .stats.dp-stats > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .07); }
  .stats.dp-stats b { font-size: 28px; }
  .dp-amt input { font-size: 22px; }
  .dp-kv b.big { font-size: 24px; }
  .dp-ca code { font-size: 12.5px; }
}
@media (prefers-reduced-motion: reduce) { .dp-sk, .btn .spin { animation: none; } }

/* ---------- /stake ---------- */
.stk .dp-head h1 { font-size: clamp(42px, 6vw, 76px); }
.stk-banner { max-width: 1000px; margin: 40px auto 0; }
.stk-grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: 16px; max-width: 1000px; margin: 48px auto 0; align-items: start; }
.stk-banner:not([hidden]) + .stk-grid { margin-top: 16px; }
.stk-card { display: flex; flex-direction: column; }
.stk-acts { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.stk-acts .btn { flex: 1; justify-content: center; min-width: 140px; }
.stk-un { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.stk-un .dp-amt { min-height: 54px; } .stk-un .dp-amt input { height: 52px; font-size: 20px; }
.stk-done { margin-top: 16px; }
.stk-stats { max-width: 1000px; margin: 16px auto 0; }
.stk-how { max-width: 1000px; margin-left: auto; margin-right: auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: 40px 56px; align-items: start; }
.stk-how .dp-how { padding: 6px 30px; border-radius: 26px; background: rgba(16, 17, 24, .62); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 100px -40px rgba(0, 0, 0, .8); }
.stk-how .dp-how li { padding: 22px 0; }
.stk-how .dp-how li:first-child { padding-top: 22px; }
.stk-ca { grid-column: 1 / -1; display: grid; gap: 10px; }
.stk-safe { margin-top: 6px; font-size: 13.5px; color: var(--mut); text-align: center; }
.stk-safe b { color: var(--tx); font-weight: 500; }
@media (max-width: 900px) {
  .stk-grid { grid-template-columns: 1fr; }
  .stk-how { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 720px) {
  .stk-grid { margin-top: 32px; }
  .stk-banner { margin-top: 28px; }
  .stk-how .dp-how { padding: 4px 20px; }
  .stk-stats > div:nth-child(3) { grid-column: 1 / -1; }
}

/* the install page's numbered cards (install.css .is-grid / .is-c, same values) */
.is-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; }
.is-c { display: flex; flex-direction: column; background: var(--s1); border-radius: 22px; padding: 26px; box-shadow: 0 0 0 1px var(--line); }
.is-n { font: 500 12px var(--mono); color: var(--co2); letter-spacing: .08em; }
.is-c b { margin-top: 16px; font: 500 19px/1.25 var(--disp); letter-spacing: -.02em; }
.is-c p { margin: 10px 0 18px; color: var(--mut); font-size: 14.5px; line-height: 1.55; flex: 1; }
.is-c a { align-self: flex-start; font: 12.5px var(--mono); color: var(--tx); padding: 6px 10px; border-radius: 8px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; overflow-wrap: anywhere; }
.is-c a:hover { background: rgba(255, 255, 255, .1); }
@media (max-width: 980px) { .is-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .is-grid { grid-template-columns: 1fr; } }

/* ---------- /api ---------- */
.api .dp-sec-head { margin-bottom: 36px; }
.api-try { padding: 22px; }
.api-q { display: flex; gap: 10px; }
.api-in { flex: 1; min-height: 56px; padding: 0 16px 0 6px; }
.api-in select { height: 44px; padding: 0 10px; border: 0; border-radius: 11px; background: var(--s3); color: var(--tx); font: 500 13.5px Inter, sans-serif; cursor: pointer; outline: 0; }
.api-in select option { background: #161616; }
.api-in input { height: 54px; font: 500 15px var(--mono); letter-spacing: 0; }
.api-q .btn { height: 56px; flex: none; }
.api-view { margin-top: 18px; }
.api-out { margin-top: 14px; min-height: 120px; }
.api-res { display: grid; gap: 14px; }
.api-res-h { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.api-res-h b { font: 500 22px var(--disp); letter-spacing: -.025em; }
.api-res-h code { font: 12.5px var(--mono); color: var(--mut); overflow-wrap: anywhere; }
.api-nums { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.api-nums div { padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.api-nums b { display: block; font: 500 24px/1.1 var(--disp); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.api-nums span { display: block; margin-top: 6px; font-size: 12.5px; color: var(--mut); }
.api-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.api-facts li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.5; color: #d6d6d2; }
.api-facts li::before { content: ''; width: 6px; height: 6px; margin-top: 8px; flex: none; border-radius: 50%; background: var(--c, var(--co2)); }
.api-out .dp-tbl td, .api-out .dp-tbl th { font-size: 13.5px; }
.api-out .dp-tbl a { color: var(--co2); }
.api-out pre, .api-pre { margin: 0; max-height: 460px; overflow: auto; padding: 16px 18px; border-radius: 14px; background: #0b0c10; box-shadow: inset 0 0 0 1px var(--line); font: 12.5px/1.65 var(--mono); color: #d7dae3; white-space: pre; }
.api-start .dp-card { padding: 0; overflow: hidden; }
.api-start .api-pre { border-radius: 0; box-shadow: none; background: transparent; padding: 20px 22px 24px; font-size: 13.5px; }
.api-price { display: grid; grid-template-columns: .75fr 1.25fr; gap: 16px; align-items: start; }
.api-free > b { display: block; margin-top: 18px; font: 500 26px/1.15 var(--disp); letter-spacing: -.03em; }
.api-free > p { margin-top: 10px; color: var(--mut); font-size: 15px; line-height: 1.55; }
.api-lim { margin-top: 18px; display: grid; gap: 0; }
.api-lim .dp-kv { font-size: 14px; }
.api-pay { margin-top: 0; }
.api-pay .step code { font: 12.5px var(--mono); }
.api-stake { margin-top: 36px; }
.api-end { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 90px; }
@media (max-width: 900px) { .api-price { grid-template-columns: 1fr; } .api-nums { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) {
  .api-q { flex-direction: column; }
  .api-q .btn { justify-content: center; }
  .api-nums { grid-template-columns: 1fr 1fr; }
  .api-nums b { font-size: 20px; }
  .api-out .dp-tbl th:nth-child(3), .api-out .dp-tbl td:nth-child(3) { display: none; }
}
.api-grp { padding: 22px 0 8px !important; font: 500 11px var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--co2) !important; border-bottom: 1px solid var(--line2) !important; }
.dp-tbl td.r + td { padding-left: 16px; }

/* ---------- /api/dashboard ---------- */
.dash { max-width: 1080px; }
.dash-head h1 { font-size: clamp(38px, 5vw, 64px); }
.dash-in { max-width: 520px; margin: 48px auto 0; text-align: center; display: grid; justify-items: center; }
.dash-in > b { margin-top: 18px; font: 500 26px/1.2 var(--disp); letter-spacing: -.03em; }
.dash-in > p:not(.dp-err):not(.dp-hint) { margin-top: 10px; color: var(--mut); font-size: 15.5px; line-height: 1.55; max-width: 380px; }
.dash-in .dp-hint a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.dash-in .dp-hint { margin-top: 16px; }
.dash-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--co); box-shadow: 0 20px 50px -16px rgba(47, 91, 255, .7); }
.dash-ic svg { width: 22px; height: 26px; }
.dash-app { margin-top: 44px; display: grid; gap: 16px; }
.dash-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dash-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 16px; align-items: stretch; }
.dash-big { margin: 4px 0 18px; }
.dash-big b { display: block; font: 500 52px/1 var(--disp); letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.dash-big span { display: block; margin-top: 8px; color: var(--mut); font-size: 14px; }
.dash-credits .btn.big { margin-top: 20px; }
.dash-tot { display: flex; gap: 36px; }
.dash-tot b { display: block; font: 500 30px/1 var(--disp); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.dash-tot span { display: block; margin-top: 6px; font-size: 13px; color: var(--mut); }
.dash-chart { position: relative; margin-top: 20px; height: 170px; }
.dash-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.dash-chart .bar { fill: var(--co); transition: fill .15s; }
.dash-chart .bar:hover, .dash-chart .bar.hl { fill: var(--co2); }
.dash-chart .ax { font: 11px var(--mono); fill: var(--mut2); }
.dash-chart .gl { stroke: rgba(255, 255, 255, .06); }
.dash-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); pointer-events: none; padding: 7px 10px; border-radius: 10px; background: rgba(12, 12, 16, .95); box-shadow: 0 0 0 1px var(--line2); font-size: 12.5px; white-space: nowrap; }
.dash-tip b { font-weight: 600; }
.dash-tip span { color: var(--mut); }
.dash-new { display: flex; gap: 10px; }
.dash-field { flex: 1; min-width: 0; min-height: 50px; padding: 0 16px; border: 0; border-radius: 14px; outline: 0; background: rgba(255, 255, 255, .04); box-shadow: inset 0 0 0 1px var(--line2); color: var(--tx); font-size: 15px; font-family: inherit; transition: box-shadow .2s; }
.dash-field:focus { box-shadow: inset 0 0 0 1.5px var(--co2); }
.dash-field::placeholder { color: var(--mut2); }
.dash-field.mono { font: 13.5px var(--mono); }
.dash-new .btn { height: 50px; flex: none; }
.dash-secret { margin-top: 16px; padding: 16px; border-radius: 16px; background: linear-gradient(180deg, rgba(31, 194, 138, .1), rgba(31, 194, 138, .03)); box-shadow: inset 0 0 0 1px rgba(31, 194, 138, .3); display: grid; gap: 10px; }
.dash-secret > b { font: 500 15px var(--disp); color: #a8e9cf; }
.dash-keys .dp-tbl-wrap { margin-top: 18px; }
.dash-ktbl td code { color: var(--tx); }
.dash-ktbl .dead td { opacity: .45; }
.dash-ktbl .act { display: inline-flex; gap: 6px; }
.dash-ktbl .act button { height: 30px; padding: 0 11px; border-radius: 15px; font-size: 12.5px; color: var(--mut); box-shadow: inset 0 0 0 1px var(--line2); transition: color .2s, background .2s; }
.dash-ktbl .act button:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.dash-ktbl .act button.rv0 { color: #ff8a9b; }
.dash-assets { display: flex; gap: 8px; margin-bottom: 18px; }
.dash-assets label { cursor: pointer; }
.dash-assets input { position: absolute; opacity: 0; pointer-events: none; }
.dash-assets span { display: inline-flex; align-items: center; height: 40px; padding: 0 20px; border-radius: 20px; font-size: 14px; font-weight: 500; color: #cfcfcb; box-shadow: inset 0 0 0 1px var(--line2); transition: background .2s, color .2s; }
.dash-assets input:checked + span { color: #0a0a0a; background: var(--tx); box-shadow: none; }
.dash-assets input:focus-visible + span { box-shadow: inset 0 0 0 2px var(--co2); }
.dash-quick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.dash-quick button { height: 32px; padding: 0 12px; border-radius: 16px; font: 500 12.5px var(--mono); color: var(--mut); box-shadow: inset 0 0 0 1px var(--line2); }
.dash-quick button:hover { color: var(--tx); background: rgba(255, 255, 255, .04); }
.dash-paste { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.dash-paste summary { cursor: pointer; font-size: 14px; color: var(--mut); }
.dash-paste summary:hover { color: var(--tx); }
.dash-paste .dash-new { margin-top: 12px; }
.dash-top .dp-hint a { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .3); }
.dash-top > div > .dp-hint:last-child { margin-top: 18px; }
.dash-top .dp-hint code.in { overflow-wrap: anywhere; }
@media (max-width: 860px) { .dash-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .dash-new { flex-direction: column; }
  .dash-new .btn { justify-content: center; }
  .dash-big b { font-size: 42px; }
  .dash-ktbl th:nth-child(3), .dash-ktbl td:nth-child(3), .dash-ktbl th:nth-child(4), .dash-ktbl td:nth-child(4) { display: none; }
}

/* ---------- /update ---------- */
.upd { max-width: 1180px; }
.upd .dp-head h1 { font-size: clamp(52px, 8vw, 104px); letter-spacing: -.055em; }
.upd-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 34px; }
.upd-toc a { display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 19px; font-size: 14px; color: #cfcfcb; box-shadow: inset 0 0 0 1px var(--line2); transition: background .2s, color .2s; }
.upd-toc a:hover { color: var(--tx); background: rgba(255, 255, 255, .05); }
.upd-sec { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 32px 64px; align-items: start; padding-top: 110px; scroll-margin-top: 40px; }
.upd-sec + .upd-sec { margin-top: 0; }
.upd-l { position: sticky; top: 110px; }
.upd-n { display: block; font: 500 13px var(--mono); color: var(--mut2); margin-bottom: 18px; }
.upd-l .eyebrow { margin-bottom: 16px; }
.upd-l h2 { font-size: clamp(34px, 3.6vw, 48px); text-wrap: balance; }
.upd-l p { margin-top: 18px; color: var(--mut); font-size: 17px; line-height: 1.6; max-width: 440px; }
.upd-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.upd-tag { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 18px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); background: rgba(243, 169, 59, .1); box-shadow: inset 0 0 0 1px rgba(243, 169, 59, .28); }
.upd-tag i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px rgba(243, 169, 59, .14); }
.upd-tag.live { color: var(--green); background: rgba(79, 209, 139, .1); box-shadow: inset 0 0 0 1px rgba(79, 209, 139, .3); }
.upd-r { display: grid; gap: 16px; min-width: 0; }
.upd-list { list-style: none; margin: 0; padding: 6px 30px; border-radius: 26px; background: rgba(16, 17, 24, .62); box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), inset 0 1px 0 rgba(255, 255, 255, .04), 0 40px 100px -40px rgba(0, 0, 0, .8); }
.upd-list li { padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .07); font-size: 15.5px; line-height: 1.6; color: var(--mut); }
.upd-list li:first-child { border-top: 0; }
.upd-list b { color: var(--tx); font-weight: 600; }
.upd-stats { margin: 0; }
.upd-stats.stats > div { padding: 28px 26px; }
.upd-stats.stats b { font-size: 40px; }
.upd-stats.stats[style*="--n:2"] > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .07); }
.upd-stats.stats[style*="--n:2"] > div:nth-child(3) { border-left: 0; }
.upd-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upd-kinds .is-c p { margin-bottom: 0; }
.upd-asof { font-size: 12.5px; color: var(--mut2); padding: 0 6px; }
.mk { display: inline-grid; place-items: center; width: 20px; height: 20px; margin: 0 2px; border-radius: 50%; font: 700 11px/1 Inter, sans-serif; font-style: normal; color: #0a0a0a; vertical-align: 1px; }
.mk.d { background: #f3a93b; } .mk.s { background: #ff7ab8; } .mk.b { background: #a98bff; } .mk.i { background: #4fd6e8; } .mk.l { background: #ff5a6e; }
.upd-end { margin-top: 150px; text-align: center; }
.upd-end h2 { font-size: clamp(46px, 7vw, 96px); letter-spacing: -.055em; }
.upd-end .h-cta { margin-top: 32px; }
@media (max-width: 980px) {
  .upd-sec { grid-template-columns: 1fr; padding-top: 90px; }
  .upd-l { position: static; }
  .upd-l p { max-width: none; }
}
@media (max-width: 720px) {
  .upd-sec { padding-top: 76px; gap: 26px; }
  .upd-list { padding: 4px 20px; }
  .upd-list li { padding: 16px 0; font-size: 15px; }
  .upd-kinds { grid-template-columns: 1fr; }
  .upd-stats.stats b { font-size: 30px; }
  .upd-stats.stats > div { padding: 22px 18px; }
  .upd-end { margin-top: 110px; }
}
.upd-when { display: inline-block; margin-left: 4px; font: 500 11px var(--mono); letter-spacing: .04em; color: var(--mut2); white-space: nowrap; }

/* ---------- /api/docs (inside the live docs layout) ---------- */
.apid .da { max-width: 800px; }
.apid .da h3 { margin: 28px 0 10px; font: 500 12px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); }
.apid-tag { margin-top: 72px; padding-top: 6px; }
.apid-tag .da-crumb { font-size: 13px; }
.apid-tag p { margin-top: 10px; }
.apid-op { scroll-margin-top: 96px; }
.apid-op h2 { scroll-margin-top: 96px; }
.apid-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: -2px 0 16px; padding: 10px 12px; border-radius: 12px; background: var(--s1); box-shadow: inset 0 0 0 1px var(--line); }
.apid-line > code { font: 500 14px var(--mono); color: #fff; overflow-wrap: anywhere; min-width: 0; }
.apid-cost { margin-left: auto; font: 500 12px var(--mono); color: var(--co2); }
.apid-line .dp-free { margin-left: 0; }
.apid-tbl td:first-child { width: 34%; }
.apid-tbl td code { color: var(--tx); }
.apid-tbl td p { margin: 0; font-size: 14px; line-height: 1.55; color: #b9b9b5; }
.apid-t { font: 12px var(--mono); color: var(--co2); }
.apid-req { font: 500 10px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); }
.apid-code { margin-top: 22px; }
.apid-code pre, .apid-ex pre { max-height: 420px; }
.apid-exl { font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mut2); }
.apid-codes { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; font-size: 13.5px; color: var(--mut); }
.apid-codes b { font: 500 12.5px var(--mono); color: var(--tx); margin-right: 6px; }
.apid-base { margin: 6px 0 10px; }
.ds-g a .m { min-width: 40px; padding: 3px 4px; font-size: 9.5px; margin-right: 4px; vertical-align: 1px; }
.da .dp-ca code { font-size: 13.5px; }
.da .dp-ca button { color: #0a0a0a; }
@media (max-width: 860px) { .apid-tbl td:first-child { width: auto; } .apid-cost { margin-left: 0; } }

/* ---------- owner panel ---------- */
.adm { max-width: 1040px; }
.adm-head h1 { font-size: clamp(38px, 5vw, 60px); }
.adm-head p { font-size: 16px; }
.adm-gate { max-width: 560px; margin: 40px auto 0; }
.adm-checks { margin-top: 0; }
.adm-deploy { max-width: 640px; margin: 16px auto 0; }
.adm-p { color: var(--mut); font-size: 15px; line-height: 1.6; margin-bottom: 18px; }
.adm-p b { color: var(--tx); font-weight: 500; }
.adm-form { display: grid; grid-template-columns: 1fr 180px; gap: 12px; }
.adm-form .dash-field { width: 100%; }
.adm-app { margin-top: 40px; display: grid; gap: 16px; }
.adm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.adm-grid .dp-card-h { flex-wrap: wrap; }
.adm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.adm-two .dp-max { font-size: 10.5px; }
.adm-note { display: block; margin-top: 16px; }
.adm-note .dash-field { width: 100%; }
.adm-confirm { margin-top: 18px; padding: 18px; border-radius: 18px; background: rgba(47, 91, 255, .08); box-shadow: inset 0 0 0 1px rgba(169, 187, 255, .3); display: grid; gap: 6px; }
.adm-confirm > b { font: 500 18px var(--disp); letter-spacing: -.02em; }
.adm-confirm > span { color: var(--mut); font-size: 14px; }
.adm-confirm > span b { color: var(--tx); font-weight: 500; }
.adm-ctl-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.adm .dp-kv b a { color: var(--co2); }
.adm .dp-tbl a { color: var(--co2); }
@media (max-width: 820px) { .adm-grid, .adm-two, .adm-form { grid-template-columns: 1fr; } }
.adm-two > div { min-width: 0; } .dp-amt input { width: 100%; }
.apid .da { overflow-wrap: anywhere; } .apid .da pre { overflow-wrap: normal; }
.apid .da { min-height: calc(100vh - 112px); }
.dp-tbl th.r + th { padding-left: 16px; }
.stk-one { display: block; margin-top: 6px; color: var(--mut); } .stk-one button { color: var(--tx); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.3); font-size: 13.5px; }
