/* Added for the real page (the mockups drew with script and inline styles; the CSP allows neither). */
.sprite { position: absolute; width: 0; height: 0; }
.langs { display: inline-flex; gap: 2px; font-size: var(--fs-12); }
.langs a { padding: 3px 7px; border-radius: var(--r-sm); color: var(--mute); }
.langs a[aria-current="true"] { color: var(--strong); background: var(--surface-2); }
.langs a:hover, .nav a:hover, .seg a:hover, .chip:hover, .btn:hover { text-decoration: none; }
.logout { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.logout .btn { color: var(--mute); }
.navlink { text-decoration: none; }
.page.narrow { max-width: 520px; padding-top: var(--s-10); }
.plain-top { display: flex; justify-content: flex-end; margin-bottom: var(--s-4); }
.card.auth h1 { margin: 6px 0 8px; font-size: var(--fs-24); color: var(--strong); letter-spacing: var(--tracking-head); }
.card.auth .lead { color: var(--dim); margin: 0 0 var(--s-5); }
.callout.readonly { margin-bottom: var(--s-5); }
.token-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin-bottom: var(--s-4); }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); margin: var(--s-4) 0; }
.card + .card { margin-top: var(--s-4); }
.token-grid .card + .card, .two .card + .card, .journal-top .card + .card, .stats .card + .card, .kpis .card + .card, .charts .card + .card, .states .card + .card { margin-top: 0; }
.health-status { height: 28px; padding: 0 12px 0 10px; }
.foot-hint { margin-top: var(--s-4); }
.mute { color: var(--mute); }
.nav a { text-decoration: none; }
.nav a:hover { text-decoration: none; }
.hint.foot-hint { color: var(--mute); }
.kpis + .card, .kpis + .charts { margin-top: var(--s-4); }
.page-head + .callout, .callout + .stats { margin-top: var(--s-2); }
/* bars of a given share (a style attribute would break the CSP) */
.pct0 { width: 0%; }
.pct1 { width: 1%; }
.pct2 { width: 2%; }
.pct3 { width: 3%; }
.pct4 { width: 4%; }
.pct5 { width: 5%; }
.pct6 { width: 6%; }
.pct7 { width: 7%; }
.pct8 { width: 8%; }
.pct9 { width: 9%; }
.pct10 { width: 10%; }
.pct11 { width: 11%; }
.pct12 { width: 12%; }
.pct13 { width: 13%; }
.pct14 { width: 14%; }
.pct15 { width: 15%; }
.pct16 { width: 16%; }
.pct17 { width: 17%; }
.pct18 { width: 18%; }
.pct19 { width: 19%; }
.pct20 { width: 20%; }
.pct21 { width: 21%; }
.pct22 { width: 22%; }
.pct23 { width: 23%; }
.pct24 { width: 24%; }
.pct25 { width: 25%; }
.pct26 { width: 26%; }
.pct27 { width: 27%; }
.pct28 { width: 28%; }
.pct29 { width: 29%; }
.pct30 { width: 30%; }
.pct31 { width: 31%; }
.pct32 { width: 32%; }
.pct33 { width: 33%; }
.pct34 { width: 34%; }
.pct35 { width: 35%; }
.pct36 { width: 36%; }
.pct37 { width: 37%; }
.pct38 { width: 38%; }
.pct39 { width: 39%; }
.pct40 { width: 40%; }
.pct41 { width: 41%; }
.pct42 { width: 42%; }
.pct43 { width: 43%; }
.pct44 { width: 44%; }
.pct45 { width: 45%; }
.pct46 { width: 46%; }
.pct47 { width: 47%; }
.pct48 { width: 48%; }
.pct49 { width: 49%; }
.pct50 { width: 50%; }
.pct51 { width: 51%; }
.pct52 { width: 52%; }
.pct53 { width: 53%; }
.pct54 { width: 54%; }
.pct55 { width: 55%; }
.pct56 { width: 56%; }
.pct57 { width: 57%; }
.pct58 { width: 58%; }
.pct59 { width: 59%; }
.pct60 { width: 60%; }
.pct61 { width: 61%; }
.pct62 { width: 62%; }
.pct63 { width: 63%; }
.pct64 { width: 64%; }
.pct65 { width: 65%; }
.pct66 { width: 66%; }
.pct67 { width: 67%; }
.pct68 { width: 68%; }
.pct69 { width: 69%; }
.pct70 { width: 70%; }
.pct71 { width: 71%; }
.pct72 { width: 72%; }
.pct73 { width: 73%; }
.pct74 { width: 74%; }
.pct75 { width: 75%; }
.pct76 { width: 76%; }
.pct77 { width: 77%; }
.pct78 { width: 78%; }
.pct79 { width: 79%; }
.pct80 { width: 80%; }
.pct81 { width: 81%; }
.pct82 { width: 82%; }
.pct83 { width: 83%; }
.pct84 { width: 84%; }
.pct85 { width: 85%; }
.pct86 { width: 86%; }
.pct87 { width: 87%; }
.pct88 { width: 88%; }
.pct89 { width: 89%; }
.pct90 { width: 90%; }
.pct91 { width: 91%; }
.pct92 { width: 92%; }
.pct93 { width: 93%; }
.pct94 { width: 94%; }
.pct95 { width: 95%; }
.pct96 { width: 96%; }
.pct97 { width: 97%; }
.pct98 { width: 98%; }
.pct99 { width: 99%; }
.pct100 { width: 100%; }
/* charts drawn on the server */
.cv { display: block; width: 100%; height: auto; margin: 6px 0 4px; overflow: visible; }
.cv .tick { fill: var(--tick); font-size: 11px; font-family: var(--font-sans); font-variant-numeric: tabular-nums; }
.cv .grid { stroke: var(--grid); stroke-width: 1; shape-rendering: crispEdges; }
.cv .axis { stroke: var(--axis); stroke-width: 1; shape-rendering: crispEdges; }
.cv .ref { stroke: var(--warn); stroke-width: 1; stroke-dasharray: 4 4; }
.cv .ref-label { fill: var(--warn); font-size: 11px; }
.cv .restart { stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 2 3; }
.cv .hit { fill: transparent; }
.cv .hit:hover { fill: rgba(255,255,255,.04); }
.cv .line { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cv .line.dash { stroke-dasharray: 5 4; }
.cv .line.q50 { stroke-width: 2.25; }
.cv .area { stroke: none; opacity: .18; }
.cv .dot { stroke: var(--surface-1); stroke-width: 2; }
.line.s1 { stroke: var(--series-1); } .line.s2 { stroke: var(--series-2); } .line.s3 { stroke: var(--series-3); }
.line.s4 { stroke: var(--series-4); } .line.s5 { stroke: var(--series-5); }
.line.q50 { stroke: var(--q50); } .line.q90 { stroke: var(--q90); } .line.q99 { stroke: var(--q99); }
.line.bad { stroke: var(--bad); }
.f-s1 { fill: var(--series-1); } .f-s2 { fill: var(--series-2); } .f-s3 { fill: var(--series-3); }
.f-s4 { fill: var(--series-4); } .f-s5 { fill: var(--series-5); }
.f-q50 { fill: var(--q50); } .f-q90 { fill: var(--q90); } .f-q99 { fill: var(--q99); }
.f-bad { fill: var(--bad); }
.legend i { fill: none; }
.legend i.f-s1 { background: var(--series-1); } .legend i.f-s2 { background: var(--series-2); } .legend i.f-s3 { background: var(--series-3); }
.legend i.f-s4 { background: var(--series-4); } .legend i.f-s5 { background: var(--series-5); }
.legend i.f-q50 { background: var(--q50); } .legend i.f-q90 { background: var(--q90); } .legend i.f-q99 { background: var(--q99); }
.legend i.f-bad { background: var(--bad); }
.chart-empty { display: grid; place-items: center; min-height: 140px; color: var(--mute); font-size: var(--fs-13); }
.chart-card { padding-bottom: var(--s-3); }
.chart-card > .cv, .chart-card > .chart-empty { margin-left: var(--s-4); margin-right: var(--s-4); width: calc(100% - 2 * var(--s-4)); }
.chart-card > .legend, .chart-card > .chart-table { margin-left: var(--s-5); margin-right: var(--s-5); }
.chart-table summary { list-style: none; display: inline-flex; }
.chart-table summary::-webkit-details-marker { display: none; }
.chart-table-scroll { max-height: 260px; overflow: auto; margin-top: var(--s-2); }
.chart-table table { width: 100%; border-collapse: collapse; font-size: var(--fs-12); }
.chart-table th, .chart-table td { text-align: right; padding: 4px 8px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.charts-nav { display: flex; gap: var(--s-3); align-items: center; margin: var(--s-4) 0 var(--s-3); flex-wrap: wrap; }
@media (max-width: 760px) { .token-grid, .two { grid-template-columns: 1fr; } }

/* ---------- changes of tokens (step 3) ---------- */
.callout.ok { color: var(--text); background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.callout.ok .ico { color: var(--ok); }
.page-head + .callout, .callout + .callout, .callout + .card, .callout + form, .callout + .token-grid { margin-top: var(--s-3); }
.page-head .actions .btn { white-space: nowrap; }
.page-head .actions .btn .ico { margin-right: 6px; }
form.manage { margin-top: var(--s-4); }
.manage .label { display: block; }
.manage .hint { display: block; }
.manage .hint .ico { margin-right: 4px; vertical-align: -2px; }
.narrow-input { width: 120px; }
.form-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.inline-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: center; margin-top: var(--s-2); }
.btn .ico { margin-right: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 4px 0 var(--s-4); cursor: pointer; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--accent); }
.manage .callout { margin-top: var(--s-4); }
.secret-card .card-body > * + * { margin-top: var(--s-4); }
.secret-row { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; }
.secret { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: var(--ok-bg); color: var(--strong); font-size: var(--fs-14); user-select: all; }
.callout.backup { margin-top: var(--s-3); margin-bottom: var(--s-3); }
