/* IDYL app v3 — Credits, Buy credits, Pro, Idle Points, the attestation viewer, and the shell additions they need.
   Tokens come from idyl.css; nothing here redefines them. Chat-specific v3 styles live in chat.css.
   One idea carries the privacy grades: the Standby Sun's ring. Open ring = Community, closed ring = Sealed relay,
   double ring = Sealed end-to-end, dashed ring = simulated. */

/* ---------- Shell ---------- */
.side { overflow-y: auto; scrollbar-width: none; }
.side::-webkit-scrollbar { display: none; }
.nav { margin-top: 26px; }
.nav a { height: 36px; flex: none; }
.nav-sep { flex: none; margin: 8px 10px; }
.side-status { margin-top: 18px; flex: none; }
.nav + .side-status { margin-top: auto; }
@media (max-height: 860px) and (min-width: 961px) {
  .nav a { height: 34px; }
  .nav-sep { margin: 6px 10px; }
  .side-foot { display: none; }
}

.bal-chip {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-strong); color: var(--bone-2); font-size: 12.5px; white-space: nowrap; transition: border-color .2s, color .2s;
}
.bal-chip:hover { border-color: var(--bone-2); color: var(--bone); }
.bal-chip svg { width: 15px; height: 15px; fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; }
.bal-chip .mono { color: var(--bone); font-size: 12.5px; }
.wallet-menu a {
  display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; border-radius: 7px; font-size: 13.5px; color: var(--bone-2);
}
.wallet-menu a:hover, .wallet-menu a:focus-visible { background: var(--ink-800); color: var(--bone); outline-offset: -2px; }
.wm-bal { margin-left: auto; font-size: 12px; color: var(--bone); }

/* ---------- Shared pieces ---------- */
.v3-body { min-height: 420px; }
.v3-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, 1fr); gap: 20px; align-items: start; }
.v3-grid .panel + .panel { margin-top: 0; }
.v3-body > .panel, .v3-body > .tiers, .v3-body > .v3-banner { margin-bottom: 20px; }
.v3-mark { width: 30px; height: 30px; flex: none; color: var(--bone-2); }
.sk-row-l { display: block; height: 14px; margin: 0 0 14px; border-radius: 6px; }
.sk-row-l:last-child { margin-bottom: 0; }
.v3-skel.h-bal { min-height: 268px; }
.v3-skel.h-season { min-height: 148px; }

.v3-state { display: flex; gap: 16px; align-items: flex-start; }
.v3-state > .ico { width: 20px; height: 20px; margin-top: 1px; color: var(--bone-2); }
.v3-state.is-error > .ico { color: var(--ember); }
.v3-state-c { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.v3-state-t { font-size: 15px; font-weight: 600; color: var(--bone); letter-spacing: -0.005em; }
.v3-state-d { font-size: 13.5px; color: var(--bone-2); line-height: 1.55; max-width: 58ch; }
.v3-state .btn-row { margin-top: 8px; }
.v3-empty { padding: 36px 24px; }
.v3-empty .empty-sun { width: 34px; height: 34px; color: var(--faint); }
.v3-err { font-size: 13px; line-height: 1.5; color: #FFB3A1; }
.v3-err::before { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 8px 1px 0; border-radius: 50%; background: var(--ember); }
.v3-disc { font-size: 12px; line-height: 1.6; color: var(--mute); padding: 0 4px; }
.v3-wait { display: flex; align-items: center; gap: 12px; padding: 22px 0 10px; color: var(--bone-2); font-size: 14px; }
.spin { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: var(--gold); animation: v3-spin .8s linear infinite; }
@keyframes v3-spin { to { transform: rotate(360deg); } }
.pulse { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(242,184,91,.5); animation: v3-pulse 1.8s var(--ease) infinite; }
.pulse.is-seen, .is-seen > .pulse { background: var(--meadow); box-shadow: 0 0 0 0 rgba(127,227,160,.5); animation-name: v3-pulse-g; }
@keyframes v3-pulse { 70% { box-shadow: 0 0 0 8px rgba(242,184,91,0); } 100% { box-shadow: 0 0 0 0 rgba(242,184,91,0); } }
@keyframes v3-pulse-g { 70% { box-shadow: 0 0 0 8px rgba(127,227,160,0); } 100% { box-shadow: 0 0 0 0 rgba(127,227,160,0); } }

.copy-mini {
  display: inline-grid; place-items: center; width: 26px; height: 26px; margin-left: 6px; vertical-align: middle; border: 0; border-radius: 6px;
  background: transparent; color: var(--mute); cursor: pointer; transition: background .15s, color .15s;
}
.copy-mini:hover { background: var(--ink-800); color: var(--bone); }
.copy-mini svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.copy-mini.is-copied, .copy-btn.is-copied { color: var(--meadow); }
.v3-body .code-block, .dialog .code-block { margin-top: 0; }
.v3-body .code-block pre, .dialog .code-block pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.icon-x { flex: none; margin-left: auto; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 7px; background: transparent; color: var(--mute); cursor: pointer; }
.icon-x:hover { background: var(--ink-800); color: var(--bone); }
.icon-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.tag.paid { color: var(--meadow); border-color: rgba(127,227,160,.35); }
.tag.metered { color: var(--bone-2); }
.tier-sealed { color: #B8C1FF; border-color: rgba(142,156,255,.36); }
.tier-flag { color: var(--gold-2); border-color: rgba(242,184,91,.36); }
.pt-board .tier, .pt-top .tier { margin-left: 6px; }
.node-sub { flex-wrap: wrap; row-gap: 4px; }
.tc-you { display: inline-block; margin-left: 8px; padding: 3px 6px; border-radius: 5px; background: rgba(242,184,91,.12); color: var(--gold-2); font: 500 10px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; vertical-align: middle; }

.btn-danger { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; background: var(--ember); color: var(--ink-950); font: 500 14.5px/1 var(--font-ui); cursor: pointer; white-space: nowrap; transition: background .2s; }
.btn-danger:hover { background: #FF937A; }
.btn-ghost.btn-danger-line { color: #FFB3A1; border-color: rgba(255,122,92,.34); }
.btn-ghost.btn-danger-line:hover { border-color: var(--ember); }

.v3-banner { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--ink-900); font-size: 13.5px; color: var(--bone-2); line-height: 1.5; }
.v3-banner strong { color: var(--bone); font-weight: 600; }
.v3-banner > .ico { color: var(--gold); }
.v3-banner.is-ok { border-color: rgba(127,227,160,.32); }
.v3-banner.is-ok > .ico { color: var(--meadow); }

/* ---------- Dialogs ---------- */
.dialog { max-height: calc(100dvh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.dialog[open] { animation: dlg-in .22s var(--ease); }
.dialog[open]::backdrop { animation: dlg-fade .22s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes dlg-fade { from { opacity: 0; } }
.dialog-t:focus { outline: none; }
.dialog-buy { width: min(620px, calc(100vw - 24px)); }
.dialog-grade { width: min(580px, calc(100vw - 24px)); }
.dialog-relay, .dialog-vault, .dialog-stake { width: min(500px, calc(100vw - 24px)); }
.dlg-body { min-width: 0; display: grid; gap: 16px; }
.dlg-body .dialog-actions { margin-top: 4px; }
.dialog .facts dd { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-width: 0; }
.dialog .facts dt { flex: none; }
.buy-lede { font-size: 14.5px; line-height: 1.6; color: var(--bone-2); }

/* ---------- Overview and Ledger ---------- */
.s0-strip {
  display: flex; align-items: center; gap: 14px; min-height: 46px; padding: 8px 14px 8px 16px; margin-bottom: 20px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--ink-900); font-size: 13.5px; color: var(--bone-2); transition: border-color .2s;
}
.s0-strip:hover { border-color: var(--line-strong); }
.s0-n { font-weight: 600; color: var(--bone); white-space: nowrap; }
.s0-day { font-size: 12px; color: var(--gold-2); white-space: nowrap; }
.s0-bar { flex: 0 1 140px; min-width: 48px; height: 4px; border-radius: 4px; background: var(--line-strong); overflow: hidden; }
.s0-bar span { display: block; height: 100%; border-radius: 4px; background: var(--gold); }
.s0-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.s0-cta { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; color: var(--bone); font-weight: 500; }
.s0-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Overview once the gateway reports paid figures: a full-width chart at a fixed height, then the Treasury in
   three columns (paid, metered, how revenue splits). Without paid figures the v2 layout stays as it was. */
.ov-grid.is-paid { grid-template-columns: minmax(0, 1fr); }
.ov-grid.is-paid .chart-panel .chart { flex: none; height: 260px; min-height: 0; }
.ov-grid.is-paid .treasury { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ov-grid.is-paid .treasury .panel-h { grid-column: 1 / -1; }
.ov-grid.is-paid .treasury .t-group { border-bottom: 0; border-right: 1px solid var(--line); }
.ov-grid.is-paid .treasury .split { margin-top: 0; border-top: 0; border-left: 0; align-content: start; }
@media (max-width: 960px) {
  .ov-grid.is-paid .treasury { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-grid.is-paid .treasury .t-group:nth-of-type(2) { border-right: 0; }
  .ov-grid.is-paid .treasury .split { grid-column: 1 / -1; border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .ov-grid.is-paid .treasury { display: flex; }
  .ov-grid.is-paid .treasury .t-group { border-right: 0; border-bottom: 1px solid var(--line); }
  .ov-grid.is-paid .chart-panel .chart { height: 208px; }
}
.t-group { border-bottom: 1px solid var(--line); }
.t-group:last-of-type { border-bottom: 0; }
.t-k { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 20px 0; font-size: 12.5px; color: var(--mute); line-height: 1.4; }
.t-k .tag { flex: none; }
.t-group .treasury-dl { padding-top: 2px; }
/* Short states (sign-in, skeleton, empty) keep the footer below the fold, so it does not jump when the content arrives. */
[data-bind="credits-body"], [data-bind="pro-body"], [data-bind="points-body"] { min-height: calc(100vh - 260px); }
.t-behind { color: #FFB3A1; }
.lp-also { display: block; margin-top: 4px; font: 400 12px/1.3 var(--font-mono); color: var(--mute); white-space: normal; overflow-wrap: anywhere; }
.paid-strip { margin-bottom: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-900); }
.paid-strip .t-k { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.paid-strip dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.paid-strip dl > div { padding: 14px 20px 15px; border-left: 1px solid var(--line); min-width: 0; }
.paid-strip dl > div:first-child { border-left: 0; }
.paid-strip dt { font-size: 12.5px; color: var(--bone-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.paid-strip dd { margin: 8px 0 0; font-size: 20px; line-height: 26px; color: var(--bone); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Credits ---------- */
.bal-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.bal-top .calc-l { display: flex; align-items: center; gap: 10px; font-weight: 400; font-family: var(--font-ui); }
.bal-v { margin-top: 10px; font-size: 64px; line-height: 1; letter-spacing: -0.045em; color: var(--bone); font-variant-numeric: tabular-nums; }
.bal-exp { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: var(--bone-2); }
.bal-exp .mono { color: var(--gold-2); }
.bal-spend { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.bal-spend > div { padding: 11px 14px 12px; border-left: 1px solid var(--line); min-width: 0; }
.bal-spend > div:first-child { border-left: 0; }
.bal-spend dt { font-size: 12px; color: var(--mute); }
.bal-spend dd { margin: 3px 0 0; font-size: 16px; color: var(--bone); font-variant-numeric: tabular-nums; }
.bal-usage { margin-top: 20px; }
.bal-usage .usage-s { line-height: 1.55; }
/* Long allowances ("1,000,000 of 1,000,000 left") drop below their label instead of squeezing it. */
.v3-body .usage-l { flex-wrap: wrap; row-gap: 2px; }
.v3-body .usage-l > span:first-child { flex: 1 0 auto; }
.pay-table td:first-child { color: var(--bone); }
.pend-b { display: flex; align-items: center; gap: 16px; }
.pend-c { min-width: 0; flex: 1; }
.pend-t { font-size: 14px; font-weight: 500; color: var(--bone); }
.pend-d { margin-top: 2px; font-size: 13px; color: var(--mute); }
.pend { border-color: rgba(242,184,91,.28); }

/* ---------- Buy credits ---------- */
.buy-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-right: 40px; }
.buy-head .dialog-t { padding-right: 0; }
.buy-head .tag { margin-top: 10px; }
.buy-reason { padding: 10px 14px; border-radius: var(--r-md); border: 1px solid rgba(142,156,255,.26); background: rgba(142,156,255,.06); font-size: 13.5px; line-height: 1.5; color: var(--bone-2); }
.buy-fs { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: 10px; }
.buy-l { padding: 0; font-size: 12.5px; color: var(--bone-2); }
.buy-amounts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.buy-amt {
  height: 46px; border-radius: 11px; border: 1px solid var(--line-strong); background: transparent; color: var(--bone-2);
  font: 500 15px/1 var(--font-ui); cursor: pointer; transition: border-color .15s, background .15s, color .15s;
}
.buy-amt.mono { font-family: var(--font-mono); font-size: 15px; }
.buy-amt:hover { border-color: var(--bone-2); color: var(--bone); }
.buy-amt[aria-pressed="true"] { border-color: var(--gold); background: rgba(242,184,91,.09); color: var(--bone); }
.buy-custom { position: relative; }
.buy-custom .input { height: 46px; padding-left: 30px; font-size: 16px; }
.buy-cur { position: absolute; left: 13px; top: 13px; font-size: 16px; color: var(--mute); }
.buy-custom .hint { margin-top: 6px; }
.buy-methods { display: grid; gap: 1px; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; background: var(--line); transition: opacity .2s; }
.buy-methods.is-loading { opacity: .6; }
.buy-m { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px 13px; background: var(--ink-900); cursor: pointer; transition: background .12s; }
.buy-m:hover { background: var(--ink-850); }
.buy-m.is-on { background: rgba(242,184,91,.06); }
.buy-m.is-off { cursor: not-allowed; }
.buy-m.is-off:hover { background: var(--ink-900); }
.buy-m input { position: absolute; opacity: 0; width: 18px; height: 18px; margin: 0; left: 14px; top: 13px; cursor: inherit; }
.bm-dot { flex: none; width: 18px; height: 18px; margin-top: 1px; border-radius: 50%; border: 1.5px solid var(--line-strong); display: grid; place-items: center; transition: border-color .15s; }
.buy-m.is-on .bm-dot { border-color: var(--gold); }
.buy-m.is-on .bm-dot::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.buy-m.is-off .bm-dot { border-style: dashed; }
.bm-why { margin-top: 2px; color: var(--bone-2); }
.buy-m input:focus-visible + .bm-dot { outline: 2px solid var(--gold); outline-offset: 3px; }
.bm-main { min-width: 0; display: grid; gap: 2px; }
.bm-name { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 500; color: var(--bone); }
.bm-sub { font-size: 12.5px; line-height: 1.45; color: var(--mute); }
.buy-m.is-off .bm-name { color: var(--mute); }
.buy-sum { margin: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.buy-sum > div { padding: 11px 14px 12px; border-left: 1px solid var(--line); min-width: 0; }
.buy-sum > div:first-child { border-left: 0; }
.buy-sum dt { font-size: 12px; color: var(--mute); }
.buy-sum dd { margin: 3px 0 0; font-size: 15px; line-height: 1.35; color: var(--bone-2); overflow-wrap: anywhere; }
.buy-sum dd.strong { color: var(--bone); }
.buy-foot { font-size: 12px; line-height: 1.55; color: var(--mute); }

.buy-pay { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: start; }
.buy-qr { display: grid; gap: 8px; justify-items: center; }
.qr-tile { position: relative; width: var(--qr-w, 236px); max-width: 100%; border-radius: 14px; overflow: hidden; background: #F3EEE4; line-height: 0; }
.qr-tile svg { display: block; width: 100%; height: auto; }
.qr-tile.is-demo::after {
  content: "DEMO"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-14deg); padding: 9px 14px 8px;
  border-radius: 8px; background: #F3EEE4; color: #07090D; font: 500 22px/1 var(--font-mono); letter-spacing: .2em; box-shadow: 0 0 0 2px #07090D;
}
.qr-cap { font-size: 12px; color: var(--mute); line-height: 1.4; text-align: center; }
.buy-side { min-width: 0; display: grid; gap: 14px; }
.buy-status { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--ink-950); font-size: 13.5px; color: var(--bone); }
.buy-status.is-seen { border-color: rgba(127,227,160,.34); }
.buy-status.is-seen .pulse { background: var(--meadow); animation-name: v3-pulse-g; }
.buy-status.is-retry .pulse { background: var(--mute); animation: none; }
.buy-exp { margin-left: auto; font-size: 12.5px; color: var(--gold-2); }
.buy-facts div { padding: 8px 0; }
.buy-links .btn, .buy-links .btn-gold, .buy-links .btn-ghost { flex: 1 1 auto; }
.buy-manual summary { cursor: pointer; font-size: 13px; color: var(--mute); width: max-content; max-width: 100%; }
.buy-manual summary:hover { color: var(--bone-2); }
.buy-manual-b { margin-top: 12px; display: grid; gap: 8px; }
.buy-why summary { cursor: pointer; font-size: 12.5px; color: var(--mute); width: max-content; max-width: 100%; }
.buy-why summary:hover { color: var(--bone-2); }
.buy-why ul { margin: 8px 0 0; padding: 10px 12px; list-style: none; display: grid; gap: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--ink-950); }
.buy-why li { font-size: 11.5px; color: var(--bone-2); overflow-wrap: anywhere; }
.buy-done, .wipe-done { display: grid; gap: 12px; justify-items: start; padding-top: 4px; }
.buy-done-mark { width: 40px; height: 40px; color: var(--bone); }
.buy-done-v { font-size: 46px; line-height: 1; letter-spacing: -0.04em; color: var(--meadow); font-variant-numeric: tabular-nums; }

/* ---------- Pro ---------- */
.tiers { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--ink-900); overflow: hidden; }
.tr { margin: 0; display: grid; grid-template-columns: minmax(150px, .9fr) repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.tr:first-child { border-top: 0; }
.tr > * { margin: 0; padding: 14px 20px; min-width: 0; border-left: 1px solid var(--line); font-size: 13.5px; line-height: 1.45; color: var(--bone-2); }
.tr > :first-child { border-left: 0; }
.tr dt { color: var(--mute); font-size: 13px; }
.tr .mono { color: var(--bone); }
.tr-head > * { padding-top: 18px; padding-bottom: 16px; }
.tr-head .tc { font-family: var(--font-display); font-size: 30px; line-height: 1; letter-spacing: -0.01em; color: var(--bone); }
.tr-head .tc .tc-you { font-family: var(--font-mono); vertical-align: 5px; }
.tc.is-you { background: rgba(242,184,91,.045); box-shadow: inset 1px 0 0 rgba(242,184,91,.2), inset -1px 0 0 rgba(242,184,91,.2); }
.tr-head .tc.is-you { box-shadow: inset 1px 0 0 rgba(242,184,91,.2), inset -1px 0 0 rgba(242,184,91,.2), inset 0 2px 0 var(--gold); }
.pro-you-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 18px; }
.pro-you .calc-l { display: flex; align-items: center; gap: 10px; }
.pro-tier { margin-top: 8px; font-family: var(--font-display); font-size: 52px; line-height: 1; letter-spacing: -0.02em; color: var(--bone); }
.pro-staked { text-align: right; }
.pro-staked-v { margin-top: 8px; font-size: 24px; color: var(--bone); }
.pro-staked-v .u, .pt-tps-v .u { margin-left: 6px; font-size: 12px; color: var(--mute); }
.pro-you .usage { padding-top: 0; border-top: 0; }
.pro-you .usage-s { margin-top: 10px; line-height: 1.55; }
.pool-how { display: grid; gap: 10px; }
.pool-how p { font-size: 14px; line-height: 1.6; color: var(--bone-2); max-width: 64ch; }
.pool-how .muted { font-size: 13px; }
.pool-last { border-top: 1px solid var(--line); padding-top: 6px; padding-bottom: 8px; }
.stake-live { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--bone); }
.stake-fs[disabled] .stake-btn { cursor: not-allowed; }

/* ---------- Points ---------- */
.season-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.season-t { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: -0.02em; color: var(--bone); }
.season-day { font-size: 12.5px; letter-spacing: 0; color: var(--gold-2); padding: 6px 9px; border-radius: 6px; border: 1px solid rgba(242,184,91,.3); }
.season-t .tag { font-family: var(--font-mono); }
.season-s { margin-top: 8px; font-size: 13px; color: var(--mute); }
.season-tot { margin: 0; display: flex; gap: 28px; }
.season-tot dt { font-size: 12px; color: var(--mute); }
.season-tot dd { margin: 3px 0 0; font-size: 20px; color: var(--bone); font-variant-numeric: tabular-nums; }
.season-bar { position: relative; height: 8px; margin-top: 22px; border-radius: 8px; background: var(--ink-800); overflow: hidden; }
.season-bar span { display: block; height: 100%; border-radius: 8px; background: var(--gold); }
.season-bar i { position: absolute; top: 0; bottom: 0; width: 2px; margin-left: -1px; background: var(--ink-900); }
.season-ax { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--faint); }

.pt-out { padding: 0 20px 20px; }
.pt-out:empty { display: none; }
.panel-h + .pt-out { padding-top: 20px; }
.pt-out > .find-msg { padding: 0; }
.pt-out > .v3-empty { padding: 20px 0 8px; }
.pt-card { display: grid; gap: 20px; }
.pt-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pt-top .calc-l { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pt-top .calc-l .mono { color: var(--bone); font-size: 12.5px; }
.pt-v { margin-top: 10px; font-size: 56px; line-height: 1; letter-spacing: -0.04em; color: var(--bone); font-variant-numeric: tabular-nums; }
.pt-top .small { margin-top: 8px; }
.pt-tps { text-align: right; }
.pt-tps-v { margin-top: 8px; font-size: 24px; color: var(--bone); }
.pt-flags { display: flex; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--ink-950); font-size: 13px; line-height: 1.5; color: var(--bone-2); }
.pt-flags .ico { flex: none; width: 16px; height: 16px; color: var(--mute); margin-top: 2px; }
.pt-flags.is-flag { border-color: rgba(242,184,91,.3); background: rgba(242,184,91,.05); }
.pt-flags.is-flag .ico { color: var(--gold); }
.pt-earn { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 13px; color: var(--bone-2); }
.pt-earn .dot { background: var(--mute); box-shadow: none; }
.pt-earn.is-on { color: var(--bone); }
.pt-earn.is-on .dot { background: var(--meadow); box-shadow: 0 0 0 3px rgba(127,227,160,.15); }
.pt-checks { margin: 0; }
.pt-who { color: var(--bone-2); }
.pt-flags-t { font-weight: 600; color: var(--bone); }
.pt-flags ul { margin: 4px 0 0; padding-left: 1.2em; }
.pt-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.pt-bars li { display: grid; grid-template-columns: minmax(120px, 1fr) minmax(60px, 1.4fr) minmax(56px, auto); gap: 14px; align-items: center; }
.pb-l { font-size: 13.5px; color: var(--bone); display: grid; gap: 1px; }
.pb-d { font-size: 12px; color: var(--mute); }
.pb-bar { height: 6px; border-radius: 6px; background: var(--ink-800); overflow: hidden; }
.pb-bar span { display: block; height: 100%; min-width: 2px; border-radius: 6px; background: var(--gold); }
.pb-v { text-align: right; font-size: 14px; color: var(--bone); }
.pb-forfeit .pb-v { color: #FFB3A1; }
.pt-factors { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.pt-factors > div { padding: 12px 14px; border-left: 1px solid var(--line); min-width: 0; }
.pt-factors > div:first-child { border-left: 0; }
.pt-factors dt { font-size: 12px; color: var(--mute); }
.pt-factors dd { margin: 4px 0 0; font-size: 18px; color: var(--bone); }
.pt-factors p { margin-top: 4px; font-size: 11.5px; line-height: 1.4; color: var(--mute); }
.pt-vest { display: grid; gap: 10px; padding-top: 18px; border-top: 1px solid var(--line); }
.pt-vest-t { font-size: 13.5px; font-weight: 600; color: var(--bone); }
.vest-bar { display: flex; gap: 2px; height: 8px; }
.vb-a { border-radius: 8px; background: var(--gold); min-width: 6px; }
.vb-b { border-radius: 8px; background: repeating-linear-gradient(90deg, rgba(242,184,91,.5) 0 3px, transparent 3px 6px); }
.vest-dl { margin: 0; display: grid; grid-template-columns: 1fr 3fr; gap: 2px; }
.vest-dl dt { font-size: 12px; color: var(--mute); }
.vest-dl dd { margin: 2px 0 0; font-size: 14px; color: var(--bone); }
.pt-seg button { cursor: pointer; }
.pt-seg button:hover { color: var(--bone-2); }
.link-row { border: 0; padding: 0; background: none; color: var(--bone); font-size: 12.5px; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.link-row:hover { text-decoration-color: var(--bone-2); }
.pt-board tr.is-you td { background: rgba(242,184,91,.045); }
.pt-board td:first-child, .pt-board th:first-child { width: 1%; }
.rules { margin: 0; display: grid; gap: 16px; }
.rules dt { font-size: 13.5px; font-weight: 600; color: var(--bone); }
.rules dd { margin: 4px 0 0; font-size: 13px; line-height: 1.6; color: var(--bone-2); }
.rules-no { padding: 16px 20px; border-top: 1px solid var(--line); }
.rules-k { font-family: var(--font-ui); font-size: 13.5px; font-weight: 600; color: var(--bone); }
.rules-no ul { margin: 8px 0 0; padding-left: 1.2em; display: grid; gap: 6px; font-size: 13px; line-height: 1.55; color: var(--bone-2); }
.rules-no li::marker { color: var(--faint); }
.ref-g { display: grid; gap: 6px; }
.ref-g + .ref-g { margin-top: 12px; }
.ref-l { font-size: 12px; color: var(--mute); }

/* ---------- Privacy grade and attestation viewer ---------- */
.gr-head { display: flex; align-items: center; gap: 16px; padding-right: 40px; }
.gr-ico { flex: none; width: 44px; height: 44px; fill: none; stroke: var(--bone); stroke-width: 1.3; stroke-linecap: round; }
.gr-ico.g-sealed-relay, .gr-ico.g-sealed-e2e { stroke: #B8C1FF; }
.gr-ico.is-sim { stroke-dasharray: 2 2.4; }
.gr-head .dialog-t { padding-right: 0; }
.gr-sim { margin-top: 6px; font-size: 11px; letter-spacing: .18em; color: var(--gold-2); }
.gr-sub { margin-top: 4px; font-size: 12.5px; color: var(--mute); }
.gr-text { font-size: 15px; line-height: 1.6; color: var(--bone); }
.gr-note { font-size: 13px; line-height: 1.55; color: var(--bone-2); }
.gr-warn { display: flex; gap: 10px; align-items: flex-start; padding: 11px 14px; border-radius: var(--r-md); border: 1px solid rgba(242,184,91,.3); background: rgba(242,184,91,.05); font-size: 13px; line-height: 1.5; color: var(--bone-2); }
.gr-warn .ico { color: var(--gold); margin-top: 2px; }
.ver { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.ver li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); opacity: .5; }
.ver li:first-child { border-top: 0; }
.ver-n { font-size: 13px; font-weight: 600; color: var(--bone-2); }
.ver-d { font-size: 12.5px; line-height: 1.5; color: var(--mute); }
.ver li.is-on { opacity: 1; background: var(--ink-950); }
.ver li.is-on .ver-n { color: var(--bone); }
.ver li.is-on .ver-n::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--meadow); vertical-align: 1px; }
.ver li.is-on.is-hardware .ver-n::before { background: var(--gold); }
.ver li.is-on.is-simulated .ver-n::before { background: none; box-shadow: inset 0 0 0 1.5px var(--gold-2); }
.ver li.is-on .ver-d { color: var(--bone-2); }
.gr-facts div { align-items: flex-start; }
.gr-facts dt { flex: none; }
.gr-facts dd { max-width: 46ch; line-height: 1.5; text-align: right; overflow-wrap: anywhere; }
.dialog .gr-facts dd { flex-wrap: wrap; }
.gr-wrap { word-break: break-all; font-size: 11.5px; line-height: 1.5; }
.dialog .gr-facts dd.gr-two { display: grid; justify-items: end; gap: 2px; }
.gr-sub2 { font-size: 12px; line-height: 1.45; color: var(--mute); }
.gr-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--meadow); }
.gr-bad { display: inline-flex; align-items: center; gap: 6px; color: #FFB3A1; }
.gr-ok .ico, .gr-bad .ico { width: 14px; height: 14px; }
.gr-k { font-size: 13.5px; font-weight: 600; color: var(--bone); }
.gr-hashes, .gr-verify, .gr-limits { display: grid; gap: 8px; }
.gr-p { font-size: 13px; line-height: 1.55; color: var(--bone-2); }
.gr-limits ul { margin: 0; padding-left: 1.15em; display: grid; gap: 5px; font-size: 12.5px; line-height: 1.5; color: var(--bone-2); }
.gr-limits li::marker { color: var(--faint); }
.gr-hash { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 6px 8px 12px; border-radius: 9px; border: 1px solid var(--line); background: var(--ink-950); }
.gr-hash-l { font-size: 12px; color: var(--mute); }
.gr-hash code { font-size: 11px; line-height: 1.5; color: var(--bone-2); word-break: break-all; }
.gr-hash .copy-mini { margin: 0; }

/* ---------- Delete everything, stake ---------- */
.wipe-d { display: grid; gap: 10px; font-size: 14px; line-height: 1.55; color: var(--bone-2); }
.wipe-list { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; color: var(--bone); }
.wipe-list li::marker { color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .v3-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .bal-chip { height: 32px; padding: 0 10px 0 8px; }
}
@media (max-width: 720px) {
  .v3-body { min-height: 320px; }
  .bal-v { font-size: 52px; }
  .bal-top .btn-gold { width: 100%; }
  .pend-b { flex-wrap: wrap; }
  .pay-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .pay-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .pay-table tbody tr:last-child { border-bottom: 0; }
  .pay-table td { padding: 0 !important; border: 0; white-space: nowrap; }
  .pay-table td.num { text-align: right; }
  .pay-table td:nth-child(3) { font-size: 12.5px; color: var(--mute); }
  .pay-table td:nth-child(4) { text-align: right; }
  .pend-b .btn-ghost { width: 100%; }
  .s0-strip { flex-wrap: wrap; gap: 6px 12px; padding: 12px 14px; }
  .s0-t { flex-basis: 100%; white-space: normal; order: 4; }
  .s0-bar { flex: 1 1 60px; }
  .s0-cta { order: 5; margin-left: 0; }
  .t-k { padding: 12px 16px 0; }
  .paid-strip dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .paid-strip dl > div { padding: 12px 16px; border-top: 1px solid var(--line); }
  .paid-strip dl > div:nth-child(odd) { border-left: 0; }
  .paid-strip dl > div:nth-child(-n + 2) { border-top: 0; }
  .tr { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-head { display: none; }
  .tr > * { padding: 10px 12px 12px; font-size: 13px; }
  .tr dt { grid-column: 1 / -1; border-left: 0; padding: 12px 12px 0; font-size: 12.5px; color: var(--bone); font-weight: 500; }
  .tr dd:nth-of-type(1) { border-left: 0; }
  .tr dd::before { content: attr(data-l); display: block; margin-bottom: 3px; font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
  .tr dd.is-you::before { color: var(--gold-2); }
  .tc.is-you { box-shadow: none; }
  .pro-tier { font-size: 44px; }
  .season-t { font-size: 32px; }
  .season-tot { gap: 20px; width: 100%; }
  .pt-out { padding: 0 16px 16px; }
  .pt-v { font-size: 46px; }
  .pt-tps { text-align: left; }
  .pt-bars li { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .pt-bars .pb-bar { grid-column: 1 / -1; grid-row: 2; }
  .pt-factors { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-factors > div:nth-child(odd) { border-left: 0; }
  .pt-factors > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .vest-dl { grid-template-columns: 1fr; gap: 8px; }
  .rules-no { padding: 14px 16px; }
  .dialog-in { padding: 22px 20px 20px; }
  .dialog-t { font-size: 28px; }
  .buy-pay { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .buy-qr { order: 2; }
  .qr-tile { width: min(var(--qr-w, 236px), 76vw); }
  .buy-amt { height: 44px; }
  .dialog-actions .btn, .dialog-actions .btn-gold, .dialog-actions .btn-ghost, .dialog-actions .btn-danger { flex: 1 1 auto; }
  .ver li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .gr-hash { grid-template-columns: minmax(0, 1fr) auto; }
  .gr-hash-l { grid-column: 1 / -1; }
  .gr-ico { width: 38px; height: 38px; }
}
@media (max-width: 420px) {
  .bal-chip svg { display: none; }
  .bal-chip { padding: 0 10px; }
  .buy-amounts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .spin { animation: none; border-top-color: var(--line-strong); border-right-color: var(--gold); }
  .pulse, .buy-status .pulse { animation: none; }
  .dialog[open], .dialog[open]::backdrop { animation: none; }
}
@media (forced-colors: active) {
  .pb-bar span, .season-bar span, .vb-a, .vb-b, .bm-dot::after, .pulse { forced-color-adjust: none; }
}
