/* Inner pages: pricing, stats, start, sign in, dashboard */

/* ================= PRICING ================= */
.quote { display: grid; grid-template-columns: 1fr 1.25fr; gap: 40px 64px; align-items: start; }
@media (max-width: 960px) { .quote { grid-template-columns: 1fr; } }
.quote__side { position: sticky; top: 110px; display: grid; gap: 20px; }
.quote__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.quote__list li { display: flex; gap: 12px; font-size: 15px; color: var(--muted); }
.quote__list li b { color: var(--text); display: block; }
.quote__list li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 3px; background: var(--mustard); }
.quote form { display: grid; gap: 18px; }
.quote .card { padding: clamp(22px, 3vw, 36px); }

.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 32px; }
.addon { display: grid; gap: 10px; align-content: start; }
.addon h3 { font-size: 18px; }
.addon p { font-size: 14px; color: var(--muted); }
.addon__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-family: var(--f-mono); font-size: 13px; color: var(--faint); }

.table-wrap { overflow-x: auto; margin-top: 32px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--line); background: var(--surface); }
.compare { width: 100%; min-width: 980px; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare thead th { font-family: var(--f-display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: 18px; }
.compare thead th.is-hot { color: var(--accent-text); }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare tbody tr:hover { background: var(--surface-2); }
.compare tbody tr:last-child td { border-bottom: 0; }
.yes { color: var(--accent-text); font-weight: 800; }
.no { color: var(--faint); }

.faq { display: grid; gap: 10px; margin-top: 32px; max-width: 860px; }
.faq details { border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; font-weight: 700; font-size: 17px; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--f-mono); font-size: 20px; color: var(--accent-text); transition: transform .4s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq__a { padding: 0 24px 22px; color: var(--muted); max-width: 70ch; }
.section-head { display: grid; gap: 0; }

/* ================= STATS ================= */
.bignums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); }
.bignum { background: var(--surface); padding: 28px; display: grid; gap: 8px; align-content: start; }
.bignum b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: clamp(36px, 4.4vw, 60px); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.bignum b small { font-size: .45em; color: var(--accent-text); margin-left: 4px; letter-spacing: 0; }
.bignum span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .bignums { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .bignums { grid-template-columns: 1fr; } }

.chart-card { margin-top: 32px; }
.chart-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-bottom: 18px; }
.chart-top .note { max-width: 52ch; }
.chart-card .flag { font-family: var(--f-mono); font-size: 11px; fill: var(--orange); font-weight: 600; }
:root:not([data-theme="dark"]) .chart-card .flag { fill: #b36b00; }
.chart-card .good-zone { fill: color-mix(in srgb, var(--mustard) 10%, transparent); }
@media (max-width: 640px) { .chart-top .seg { width: 100%; } .chart-top .seg button { flex: 1; padding: 0 8px; font-size: 13px; } }
.explain { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 16px; }
@media (max-width: 860px) { .explain { grid-template-columns: 1fr; } }
.explain > div { padding: 20px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.explain__k { display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; padding: 4px 8px; border-radius: 6px; background: var(--mustard); color: var(--char); margin-bottom: 10px; }
.explain b { display: block; font-size: 17px; }
.explain p { font-size: 14px; color: var(--muted); margin-top: 4px; }
.explain em { font-style: normal; font-weight: 700; color: var(--text); }
.chart-card svg { width: 100%; height: auto; overflow: visible; }
.chart-card text { font-family: var(--f-mono); font-size: 11px; fill: var(--faint); }
.chart-card .grid { stroke: var(--line); }
.chart-card .limit { stroke: var(--text); stroke-dasharray: 6 6; opacity: .55; }
.chart-card .limit-label { fill: var(--text); }
.chart-card .over { fill: color-mix(in srgb, var(--orange) 12%, transparent); }
.chart-card .l-us { fill: none; stroke: var(--mustard); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.chart-card .l-leaf { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-dasharray: 2 0; }
.chart-card .p { cursor: pointer; transition: r .25s; stroke-width: 2.5; }
.chart-card .p:hover { r: 9; }
.chart-card .p-us { fill: var(--surface); stroke: var(--mustard); }
.chart-card .p-leaf { fill: var(--orange); stroke: none; }
.chart-card .p-paper { fill: var(--slate); stroke: none; }
:root[data-theme="dark"] .chart-card .p-paper { fill: var(--cream); }
.chart-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.chart-legend i { display: inline-block; width: 16px; height: 4px; border-radius: 3px; background: var(--c); margin-right: 8px; vertical-align: middle; }
.chart-tip { position: absolute; pointer-events: none; padding: 8px 12px; border-radius: 10px; background: var(--invert-bg); color: var(--invert-text); font-size: 13px; white-space: nowrap; opacity: 0; transform: translate(-50%, -120%); transition: opacity .2s; }
.chart-wrap { position: relative; }

.threads { display: grid; gap: 10px; margin-top: 32px; }
.thread-row { display: grid; grid-template-columns: 110px 1fr 80px; gap: 16px; align-items: center; }
.thread-row span { font-family: var(--f-mono); font-size: 13px; color: var(--muted); }
.thread-row span small { display: block; font-size: 11px; color: var(--faint); }
.thread-row b { font-family: var(--f-display); font-stretch: 125%; text-align: right; font-variant-numeric: tabular-nums; }
.thread-row .bar { height: 28px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.thread-row .bar i { display: block; height: 100%; background: var(--mustard); border-radius: 8px; transform-origin: 0 50%; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.eng-list { display: grid; gap: 0; margin-top: 32px; border-top: 1px solid var(--line); }
.eng { display: grid; grid-template-columns: 1.3fr 1fr auto; gap: 16px 32px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.eng b { font-weight: 700; }
.eng small { display: block; color: var(--faint); font-size: 13px; }
.eng__vals { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.eng__vals s { color: var(--faint); margin-right: 8px; }
.eng__vals strong { color: var(--text); font-family: var(--f-display); font-stretch: 125%; font-size: 20px; }
.eng__x { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic; background: var(--mustard); color: var(--char); padding: 4px 10px; border-radius: 8px; }
@media (max-width: 640px) { .eng { grid-template-columns: 1fr auto; } .eng > div:first-child { grid-column: 1 / -1; } }

.live { background: var(--invert-bg); color: var(--invert-text); border-radius: 32px; padding: clamp(28px, 5vw, 56px); position: relative; overflow: hidden; }
.live .eyebrow { color: var(--mustard); }
:root[data-theme="dark"] .live .eyebrow { color: #9a6c00; }
.live .lede { color: var(--invert-muted); }
.live__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 32px; }
@media (max-width: 900px) { .live__grid { grid-template-columns: 1fr 1fr; } }
.live__card { padding: 22px; border-radius: 18px; background: color-mix(in srgb, var(--invert-text) 7%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--invert-text) 12%, transparent); display: grid; gap: 10px; }
.live__card span { font-size: 14px; color: var(--invert-muted); }
.live__card b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 36px; font-variant-numeric: tabular-nums; }
.live__dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--invert-muted); }
.live__dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); animation: pulse 1.6s infinite; }
.live.is-live .live__dot::before { background: #7bd88f; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--orange) 60%, transparent); } }
.live__chart { margin-top: 12px; padding: 22px; border-radius: 18px; background: color-mix(in srgb, var(--invert-text) 7%, transparent); }
.live__chart svg { width: 100%; height: 140px; }
.live__chart .ln { fill: none; stroke: var(--mustard); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.live__chart .ar { fill: color-mix(in srgb, var(--mustard) 20%, transparent); }
.live__chart header { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; color: var(--invert-muted); margin-bottom: 10px; }

.caveats { list-style: none; counter-reset: c; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px 32px; }
.caveats li { counter-increment: c; padding-top: 16px; border-top: 2px solid var(--line); color: var(--muted); font-size: 15px; }
.caveats li::before { content: counter(c, decimal-leading-zero); display: block; font-family: var(--f-mono); font-size: 12px; color: var(--accent-text); margin-bottom: 8px; }
.caveats b { color: var(--text); }

/* ================= START WIZARD ================= */
.wizard { max-width: 920px; margin: 0 auto; }
.wizard__progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 40px; }
.wizard__progress li { list-style: none; display: grid; gap: 10px; font-size: 13px; color: var(--faint); font-weight: 600; }
.wizard__progress li::before { content: ''; height: 4px; border-radius: 4px; background: var(--line); transition: background .5s var(--ease); }
.wizard__progress li.is-done::before, .wizard__progress li.is-current::before { background: var(--mustard); }
.wizard__progress li.is-current { color: var(--text); }
.wizard__progress { padding: 0; margin-top: 0; }
.wizard__step h2 { font-size: clamp(30px, 4.4vw, 56px); font-style: italic; font-weight: 900; }
.wizard__step > p { color: var(--muted); margin-top: 12px; }
.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-top: 32px; }
.choice { position: relative; text-align: left; display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .3s, transform .4s var(--ease), background .3s; cursor: pointer; }
.choice:hover { transform: translateY(-4px); }
.choice[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--mustard), var(--shadow); }
.choice__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--surface-2); display: grid; place-items: center; transition: background .3s; }
.choice__icon svg { width: 28px; height: 28px; color: var(--text); }
.choice[aria-checked="true"] .choice__icon { background: var(--mustard); }
.choice[aria-checked="true"] .choice__icon svg { color: var(--char); }
.choice b { font-family: var(--f-display); font-stretch: 125%; font-size: 22px; font-style: italic; font-weight: 900; }
.choice span { color: var(--muted); font-size: 15px; }
.choice__check { position: absolute; top: 20px; right: 20px; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); display: grid; place-items: center; transition: background .3s; }
.choice[aria-checked="true"] .choice__check { background: var(--mustard); box-shadow: none; }
.choice[aria-checked="true"] .choice__check::after { content: '✓'; font-weight: 900; font-size: 14px; color: var(--char); }
.wizard__form { display: grid; gap: 18px; margin-top: 32px; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.review { display: grid; gap: 0; margin-top: 28px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.review div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.review div:last-child { border-bottom: 0; }
.review dt { color: var(--muted); }
.review dd { margin: 0; font-weight: 700; text-align: right; }
.fixed-field { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-radius: 14px; background: var(--surface-2); font-weight: 600; }

/* ================= SIGN IN ================= */
.auth { min-height: 100svh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth__art { display: none; } }
.auth__art { position: relative; overflow: hidden; background: var(--mustard); color: var(--char); display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(32px, 5vw, 64px); }
.auth__art h2 { font-size: clamp(40px, 5vw, 76px); font-style: italic; font-weight: 900; max-width: 10ch; position: relative; z-index: 1; }
.auth__art p { max-width: 36ch; margin-top: 16px; position: relative; z-index: 1; }
.auth__track { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth__track .lane { fill: none; stroke: var(--char); stroke-width: 40; opacity: .1; }
.auth__track .dash { fill: none; stroke: var(--char); stroke-width: 3; stroke-dasharray: 14 18; opacity: .35; }
.auth__track .runner { fill: var(--char); }
.auth__main { display: grid; place-items: center; padding: calc(var(--nav-h) + 48px) var(--gutter) 48px; }
.auth__box { width: 100%; max-width: 440px; display: grid; gap: 22px; }
.auth__box h1 { font-size: clamp(34px, 4vw, 48px); font-style: italic; font-weight: 900; }
.auth__box form { display: grid; gap: 16px; }
.auth__row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.auth__row a { color: var(--accent-text); font-weight: 600; }
.auth__alt { text-align: center; font-size: 14px; color: var(--muted); }
.auth__alt button { color: var(--accent-text); font-weight: 700; }
.auth__box .seg { width: 100%; }
.auth__ui, .auth__signed { display: grid; gap: 18px; }
.auth__sub { color: var(--muted); margin-top: -8px; }
.oauth { display: grid; gap: 10px; }
.oauth__btn { display: flex; align-items: center; justify-content: center; gap: 12px; height: 52px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; font-size: 15px; transition: box-shadow .25s, transform .3s var(--ease), background .25s; }
.oauth__btn:hover { box-shadow: inset 0 0 0 1.5px var(--mustard); transform: translateY(-1px); }
.oauth__btn:disabled { opacity: .6; cursor: progress; transform: none; }
.oauth__btn svg { width: 20px; height: 20px; flex: none; }
.divider { display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--faint); }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.linkish { color: var(--accent-text); font-weight: 600; font-size: 14px; }
.linkish:hover { text-decoration: underline; }
.auth__signed { justify-items: start; }
.auth__who { color: var(--muted); margin-top: -8px; overflow-wrap: anywhere; }
.avatar.avatar--lg { width: 64px; height: 64px; font-size: 26px; }
.btn[aria-busy="true"] { cursor: progress; opacity: .75; }
.form-msg.is-ok { color: var(--accent-text); }
.form-msg.is-err { color: #b3261e; }
:root[data-theme="dark"] .form-msg.is-err { color: #ff8a80; }
.auth__box .seg button { flex: 1; }

/* ================= DASHBOARD ================= */
body[data-page="dashboard"] { background: var(--bg-2); }
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100svh; padding-top: 88px; }
@media (max-width: 900px) { .app { grid-template-columns: 1fr; } }
.side { position: sticky; top: 88px; align-self: start; padding: 16px; display: grid; gap: 4px; }
@media (max-width: 900px) { .side { position: static; display: flex; overflow-x: auto; padding: 0 var(--gutter) 8px; gap: 6px; } }
.side button { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; color: var(--muted); text-align: left; white-space: nowrap; transition: background .25s, color .25s; }
.side button svg { width: 18px; height: 18px; flex: none; }
.side button:hover { background: var(--surface); color: var(--text); }
.side button[aria-current="true"] { background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.side button[aria-current="true"] svg { color: var(--accent-text); }
.side__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); padding: 18px 14px 6px; }
@media (max-width: 900px) { .side__label { display: none; } }
.app__main { padding: 16px var(--gutter) 64px 8px; display: grid; gap: 16px; align-content: start; min-width: 0; }
@media (max-width: 900px) { .app__main { padding-left: var(--gutter); } }
.app__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.app__head h1 { font-size: clamp(28px, 3.4vw, 40px); font-style: italic; font-weight: 900; }
.demo-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; color: var(--muted); padding: 12px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 1100px) { .tiles { grid-template-columns: 1fr 1fr; } }
.tile { padding: 20px; display: grid; gap: 6px; }
.tile span { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.tile span small { font-family: var(--f-mono); font-size: 11px; color: var(--faint); }
.tile b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 30px; font-variant-numeric: tabular-nums; }
.tile svg { width: 100%; height: 36px; }
.tile .ln { fill: none; stroke: var(--mustard); stroke-width: 2; vector-effect: non-scaling-stroke; }
.panels { display: grid; grid-template-columns: 1.4fr 1fr; gap: 12px; }
@media (max-width: 1100px) { .panels { grid-template-columns: 1fr; } }
.panel { padding: 22px; display: grid; gap: 16px; align-content: start; }
.panel h2 { font-size: 18px; font-stretch: 110%; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.server-card { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.server-card h2 { font-size: 24px; font-style: italic; font-weight: 900; }
.server-card p { color: var(--muted); font-size: 14px; margin-top: 6px; }
.server-card__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.addr { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-family: var(--f-mono); font-size: 14px; }
.addr button { font-family: var(--f-body); font-size: 13px; font-weight: 700; color: var(--accent-text); }
.rows { display: grid; gap: 8px; }
.rows label { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); font-size: 15px; font-weight: 600; }
.rows label small { display: block; font-weight: 400; color: var(--faint); font-size: 12px; }
.rows select { height: 36px; border-radius: 10px; border: 0; padding: 0 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.app .console { height: 220px; overflow: hidden; padding: 14px 16px; border-radius: 14px; background: #1d262a; color: #fff3cd; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.75; display: flex; flex-direction: column; justify-content: flex-end; }
.app .console span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app .console .c-ok { color: #fbc02d; } .app .console .c-dim { color: rgba(255,243,205,.5); }
.console-input { display: flex; gap: 8px; }
.console-input .input { font-family: var(--f-mono); height: 44px; }
.soon { display: grid; place-items: center; text-align: center; gap: 14px; padding: 72px 24px; }
.soon h2 { font-size: 28px; font-style: italic; font-weight: 900; }
.soon p { color: var(--muted); max-width: 44ch; }
.pro-only { display: none; }
.app.is-pro .pro-only { display: grid; }
.app.is-pro .simple-only { display: none; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--on { background: color-mix(in srgb, var(--mustard) 25%, transparent); color: var(--accent-text); }
.pill--busy::before { animation: pulse 1s infinite; }

/* app variant of the header */
.nav--app .nav__links { display: none; }
.nav--app .nav__actions .nav__link { display: inline-flex; }
@media (max-width: 480px) { .nav--app .nav__actions .nav__link[href="index.html"] { display: none; } }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--mustard); color: var(--char); display: grid; place-items: center; font-weight: 800; font-family: var(--f-display); font-stretch: 125%; }

/* ---------- dashboard: real-data states ---------- */
.view { display: grid; gap: 16px; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--mustard); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.soon__ctas { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.picker { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.picker label { font-size: 14px; font-weight: 600; color: var(--muted); }
.picker select { height: 42px; min-width: 220px; max-width: 100%; border: 0; border-radius: 12px; padding: 0 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); font-weight: 600; }
.server-card__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.server-card__title p { flex-basis: 100%; }
.input--title { height: 44px; max-width: 360px; font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 20px; }
.server-card__note { grid-column: 1 / -1; font-size: 14px; color: var(--muted); padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.tile__wait { font-size: 12px; color: var(--faint); }
.tile b { color: var(--faint); }
.console--idle { height: auto; min-height: 120px; justify-content: center; }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--invert-bg); color: var(--invert-text); font-size: 14px; font-weight: 600; box-shadow: var(--shadow); transition: opacity .3s, transform .4s var(--ease); z-index: 150; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.pill--wait { background: color-mix(in srgb, var(--orange) 22%, transparent); color: #9a5a00; }
:root[data-theme="dark"] .pill--wait { color: var(--orange); }

/* ================= DASHBOARD · Cockpit layout ================= */
.side__server { display: grid; gap: 4px; }
@media (max-width: 900px) { .side__server { display: contents; } .side__server[hidden] { display: none; } }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.crumbs a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.crumbs span { margin: 0 4px; color: var(--faint); }

/* all servers */
.group { display: grid; gap: 14px; }
.group + .group { margin-top: 12px; }
.group__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.group__head h2 { font-size: 20px; font-style: italic; font-weight: 900; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.srv { position: relative; display: grid; gap: 10px; align-content: start; padding: 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: left; text-decoration: none; cursor: pointer; transition: transform .4s var(--ease), box-shadow .3s; }
.srv:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 1.5px var(--mustard), var(--shadow); }
.srv__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.srv__name { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-style: italic; font-size: 18px; line-height: 1.1; }
.srv__role { font-size: 13px; color: var(--muted); }
.srv__stats { display: flex; gap: 18px; }
.srv__stats span { display: grid; font-size: 12px; color: var(--faint); }
.srv__stats b { font-family: var(--f-display); font-stretch: 125%; font-size: 18px; color: var(--text); font-variant-numeric: tabular-nums; }
.srv__act { font-size: 12.5px; color: var(--muted); padding-top: 10px; border-top: 1px solid var(--line); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv__act b { color: var(--text); }
.srv--new { place-content: center; justify-items: center; text-align: center; min-height: 150px; box-shadow: inset 0 0 0 1.5px var(--line); background: transparent; border: 2px dashed var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--faint); flex: none; }
.dot--on { background: #2e9d57; box-shadow: 0 0 0 4px color-mix(in srgb, #2e9d57 20%, transparent); }
.dot--paused { background: var(--orange); }
.dot--wait { background: var(--mustard); }
.lagword { font-weight: 700; }
.lag--idle { color: var(--muted); }
.lag--smooth { color: #2e7d4f; } .lag--busy { color: #9a5a00; } .lag--laggy { color: #b3261e; }
:root[data-theme="dark"] .lag--smooth { color: #7bd88f; } :root[data-theme="dark"] .lag--busy { color: var(--orange); } :root[data-theme="dark"] .lag--laggy { color: #ff8a80; }

/* one server */
.statusbar { display: grid; grid-template-columns: 1fr auto; gap: 14px 20px; align-items: center; }
@media (max-width: 760px) { .statusbar { grid-template-columns: 1fr; } }
.statusbar__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.statusbar__title h2 { font-size: clamp(22px, 2.6vw, 30px); font-style: italic; font-weight: 900; }
.statusbar__facts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; margin-top: 10px; }
.fact { display: grid; }
.fact small { font-size: 11.5px; color: var(--faint); }
.fact b { font-size: 15px; font-variant-numeric: tabular-nums; }
.statusbar__side { display: grid; justify-items: end; gap: 8px; }
@media (max-width: 760px) { .statusbar__side { justify-items: start; } }
.fresh { font-size: 12px; color: var(--faint); }
.fresh.is-stale { color: #b3261e; }
.statusbar .server-card__note { grid-column: 1 / -1; margin: 0; }
.sv { display: grid; gap: 16px; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.chart { display: grid; gap: 8px; padding: 18px 18px 14px; }
.chart__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.chart__now { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 22px; font-variant-numeric: tabular-nums; }
.chart svg { width: 100%; height: 80px; overflow: visible; }
.chart__line { fill: none; stroke: var(--mustard); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.chart__area { fill: color-mix(in srgb, var(--mustard) 18%, transparent); }
.chart__foot { font-size: 12px; color: var(--faint); }
.chart.is-empty svg { opacity: .25; }
.lagsrc { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; counter-reset: l; }
.lagsrc li { counter-increment: l; display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.lagsrc li::before { content: counter(l); width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; background: var(--mustard); color: var(--char); font-weight: 800; font-size: 12px; }
.lagsrc b { font-size: 14.5px; }
.lagsrc small { display: block; font-size: 12px; color: var(--faint); font-family: var(--f-mono); }
.lagsrc .cost { font-family: var(--f-mono); font-size: 13px; font-weight: 600; text-align: right; }
.lagsrc .empty { grid-template-columns: 1fr; color: var(--muted); font-size: 14px; }
.lagsrc .empty::before { display: none; }
.alerts { display: grid; gap: 8px; }
.alert { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.alert__ic { grid-row: span 2; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 900; font-size: 14px; }
.alert b { font-size: 14.5px; }
.alert p { font-size: 13.5px; color: var(--muted); }
.alert--good .alert__ic { background: color-mix(in srgb, #2e9d57 18%, transparent); color: #2e7d4f; }
.alert--info .alert__ic { background: color-mix(in srgb, var(--mustard) 25%, transparent); color: var(--accent-text); }
.alert--warn .alert__ic { background: color-mix(in srgb, var(--orange) 25%, transparent); color: #9a5a00; }
.alert--bad .alert__ic { background: color-mix(in srgb, #b3261e 16%, transparent); color: #b3261e; }
:root[data-theme="dark"] .alert--good .alert__ic { color: #7bd88f; } :root[data-theme="dark"] .alert--warn .alert__ic { color: var(--orange); } :root[data-theme="dark"] .alert--bad .alert__ic { color: #ff8a80; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td { padding: 9px 10px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; font-variant-numeric: tabular-nums; }
.dtable th:first-child, .dtable td:first-child { text-align: left; }
.dtable th { font-size: 12px; font-weight: 600; color: var(--faint); }
.dtable tr:last-child td { border-bottom: 0; }
.dtable .muted { color: var(--faint); text-align: center; }
.panel .table-wrap { margin-top: 0; box-shadow: none; background: transparent; border-radius: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.input--filter { height: 38px; max-width: 220px; font-size: 14px; }

/* ================= DASHBOARD · layouts A / B / C ================= */
.layoutbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.layoutbar__label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.lay { display: grid; gap: 16px; }
.lay[hidden] { display: none !important; }

/* Assistant cards (shared by all layouts) */
.feed { display: grid; gap: 10px; }
.acard { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.feed--compact .acard { background: var(--surface-2); box-shadow: none; padding: 12px 14px; }
.acard__ic { grid-row: span 4; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 900; font-size: 15px; }
.acard--error .acard__ic { background: color-mix(in srgb, #b3261e 16%, transparent); color: #b3261e; }
.acard--warn .acard__ic { background: color-mix(in srgb, var(--orange) 25%, transparent); color: #9a5a00; }
.acard--info .acard__ic { background: color-mix(in srgb, var(--mustard) 25%, transparent); color: var(--accent-text); }
.acard--good .acard__ic { background: color-mix(in srgb, #2e9d57 18%, transparent); color: #2e7d4f; }
:root[data-theme="dark"] .acard--error .acard__ic { color: #ff8a80; } :root[data-theme="dark"] .acard--warn .acard__ic { color: var(--orange); } :root[data-theme="dark"] .acard--good .acard__ic { color: #7bd88f; }
.acard__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.acard__top b { font-size: 15px; }
.acard__when { font-size: 12px; color: var(--faint); white-space: nowrap; }
.acard p { font-size: 14px; color: var(--muted); max-width: 70ch; }
.acard__ev { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); background: var(--surface-2); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 90px; overflow: auto; }
.feed--compact .acard__ev { background: var(--surface); }
.acard__acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; }
.acard__by { font-size: 11.5px; font-weight: 700; color: var(--accent-text); }
.acard__acts .btn { height: 34px; padding: 0 12px; font-size: 13px; }

/* A · Pit Wall */
.pit { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 960px) { .pit { grid-template-columns: 1fr; } }
.pit__feed { display: grid; gap: 10px; }
.pit__h { font-size: 18px; font-style: italic; font-weight: 900; }
.pit__rail { display: grid; gap: 12px; }
.pit__charts { display: grid; gap: 12px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }

/* B · Tiles */
.banner { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 18px 20px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 2px var(--mustard); }
.banner .acard__ic { grid-row: span 3; }
.tiles-b { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.tileb { display: flex; flex-direction: column; gap: 10px; min-height: 170px; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.tileb h3 { font-family: var(--f-mono); font-stretch: 100%; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.tileb__big { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 32px; line-height: 1; letter-spacing: -.02em; }
.tileb__big small { font-size: 16px; color: var(--faint); }
.tileb p { font-size: 13.5px; color: var(--muted); }
.tileb .btn { margin-top: auto; align-self: flex-start; height: 36px; padding: 0 14px; font-size: 13px; }
.lagbar { position: relative; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #d0453b 0 20%, var(--orange) 20% 45%, #3aa35f 45%); }
.lagbar i { position: absolute; top: -4px; width: 5px; height: 18px; border-radius: 3px; background: var(--text); transform: translateX(-50%); transition: left .8s var(--ease); }

/* map + lag sources (all layouts) */
.panels--map { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 1100px) { .panels--map { grid-template-columns: 1fr; } }
.mapbox { display: grid; gap: 12px; }
.map__body { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 12px; align-items: start; }
.mapbox--narrow .map__body, [data-map="C"] .map__body { grid-template-columns: 1fr; }
@media (max-width: 760px) { .map__body { grid-template-columns: 1fr; } }
.map__canvas { position: relative; border-radius: 14px; overflow: hidden; background: #0a1a45; aspect-ratio: 16 / 10; }
.map__canvas canvas { display: block; width: 100%; height: 100%; cursor: crosshair; }
.map__empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: rgba(255, 243, 205, .75); font-size: 14px; }
.map__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--faint); }
.map__scale { width: 140px; height: 8px; border-radius: 4px; background: linear-gradient(90deg, #2b4cff, #20c6e8, #3ccf6e, #ffd84a, #ff8a1f, #e0362c); }
.map__side { display: grid; gap: 8px; max-height: 420px; overflow: auto; }
.map__side h3 { font-size: 14px; font-stretch: 100%; }
.map__drill { padding: 12px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; font-size: 13.5px; }
.map__drill table { width: 100%; border-collapse: collapse; font-size: 13px; }
.map__drill td { padding: 4px 0; border-bottom: 1px solid var(--line); }
.map__drill td:last-child { text-align: right; font-family: var(--f-mono); }
.map__row { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); cursor: pointer; text-align: left; }
.map__row:hover, .map__row.is-on { box-shadow: inset 0 0 0 1.5px var(--mustard); }
.map__row b { font-size: 13.5px; }
.map__row small { font-size: 11.5px; color: var(--faint); font-family: var(--f-mono); }

/* ---------- uptime history ---------- */
[data-uptime] { display: grid; gap: 12px; align-content: start; }
.uptime__nums { display: flex; gap: 28px; }
.uptime__nums span { display: grid; }
.uptime__nums b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 26px; font-variant-numeric: tabular-nums; }
.uptime__nums small { font-size: 12px; color: var(--faint); }
.uptime__strip { display: grid; grid-template-columns: repeat(48, 1fr); gap: 2px; height: 28px; }
.uptime__strip i { border-radius: 3px; background: var(--line); }
.up--up { background: #3aa35f !important; } .up--busy { background: var(--mustard) !important; }
.up--down { background: #d0453b !important; } .up--paused { background: var(--orange) !important; opacity: .6; }
.uptime__axis { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: -6px; }
.uptime__log { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 13.5px; }
.uptime__log li { display: flex; align-items: center; gap: 8px; }
.uptime__log small { margin-left: auto; color: var(--faint); font-size: 12px; }

/* ---------- players panel ---------- */
[data-players-panel] { display: grid; gap: 10px; align-content: start; }
.plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.plist li { display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: var(--surface-2); }
.plist img { width: 24px; height: 24px; border-radius: 5px; image-rendering: pixelated; background: #c69c6d; }
.plist b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.plist small { font-size: 12px; color: var(--faint); }
.plist--recent li { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.plist__h { font-size: 13px; font-stretch: 100%; color: var(--muted); margin-top: 4px; }

/* ---------- notifications bell ---------- */
.bell { position: relative; }
.bell__btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .25s; }
.bell__btn:hover { background: var(--surface-2); }
.bell__btn svg { width: 21px; height: 21px; }
.bell__count { position: absolute; top: 6px; right: 5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #d0453b; color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.bell__panel { position: absolute; right: -8px; top: 52px; width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; padding: 12px; border-radius: 18px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow); z-index: 120; display: grid; gap: 8px; }
.bell__head { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 6px; }
.bell__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.bell__item { width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; text-align: left; padding: 8px; border-radius: 12px; }
.bell__item:hover { background: var(--surface-2); }
.bell__item.is-new { background: color-mix(in srgb, var(--mustard) 14%, transparent); }
.bell__item .acard__ic { width: 30px; height: 30px; font-size: 13px; }
.bell__item b { display: block; font-size: 13.5px; }
.bell__item small { font-size: 12px; color: var(--faint); }
.bell__empty { padding: 10px 6px; }
@media (max-width: 520px) { .bell__panel { position: fixed; right: 16px; left: 16px; top: 76px; width: auto; } }

/* ================= DASHBOARD · Simple / Classic / Advanced ================= */
.srvhead { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; align-items: center; }
.srvhead__title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.srvhead__title h2 { font-size: clamp(24px, 3vw, 34px); font-style: italic; font-weight: 900; }
.srvhead__meta { grid-column: 1 / -1; font-size: 14px; color: var(--muted); }
.srvhead .server-card__note { grid-column: 1 / -1; margin: 0; }
@media (max-width: 760px) { .srvhead { grid-template-columns: 1fr; } }

/* Classic: a hosting panel's console page */
.powerbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 20px; }
.powerbar__addr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.powerbar__addr small { color: var(--faint); font-size: 12px; }
.powerbar__addr code { font-family: var(--f-mono); font-size: 15px; font-weight: 600; }
.powerbar__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.classic { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .classic { grid-template-columns: 1fr; } }
.classic__console { display: grid; gap: 12px; padding: 18px; }
.app .console--big { height: 420px; overflow-y: auto; justify-content: flex-start; }
.app .console--big span { flex-shrink: 0; white-space: pre-wrap; overflow: visible; text-overflow: clip; }
.app .console .c-err { color: #ff8a80; } .app .console .c-warn { color: #ffd27a; }
.classic__side { display: grid; gap: 10px; }
@media (max-width: 1000px) { .classic__side { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); } }
.res { display: grid; gap: 6px; padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.res__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.res__top small { font-size: 12px; color: var(--faint); }
.res__top b { font-size: 16px; font-variant-numeric: tabular-nums; display: inline-flex; align-items: center; gap: 6px; }
.res__top b small { font-size: 12px; color: var(--faint); font-weight: 500; }
.res svg { width: 100%; height: 28px; }
.res__line { fill: none; stroke: var(--mustard); stroke-width: 2; vector-effect: non-scaling-stroke; }
.res__area { fill: color-mix(in srgb, var(--mustard) 18%, transparent); }

/* Advanced: an in-depth board */
.board { gap: 12px; }
.board__row { font-family: var(--f-mono); font-stretch: 100%; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-top: 8px; }
.bstats { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.bstat { display: grid; gap: 4px; align-content: center; padding: 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); text-align: center; min-height: 96px; }
.bstat small { font-size: 12px; color: var(--faint); }
.bstat b { font-family: var(--f-display); font-stretch: 125%; font-weight: 900; font-size: 22px; line-height: 1.1; overflow-wrap: anywhere; }
.bstat__status { font-size: 38px !important; }
.bstat--on { color: #2e9d57; } .bstat--wait, .bstat--paused { color: #c98a00; } .bstat--off { color: #d0453b; }
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.gpanel { min-width: 0; padding: 12px 14px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.gpanel--wide { grid-column: span 2; }
@media (max-width: 700px) { .gpanel--wide { grid-column: span 1; } }
.gpanel h3 { font-size: 13px; font-stretch: 100%; font-weight: 700; text-align: center; }
.gchart svg { display: block; width: 100%; height: auto; overflow: visible; }
.gchart text { font-family: var(--f-mono); font-size: 10px; fill: var(--faint); }
.gchart .g-grid { stroke: var(--line); }
.gchart .g-budget { stroke: #d0453b; stroke-dasharray: 4 4; }
.gchart .g-budget-l { fill: #d0453b; }
.gchart__empty { display: grid; place-items: center; height: 150px; font-size: 13px; color: var(--faint); }
.glegend { width: 100%; border-collapse: collapse; font-size: 11.5px; font-variant-numeric: tabular-nums; }
.glegend th { font-weight: 600; color: var(--faint); text-align: right; padding: 2px 6px; }
.glegend td { text-align: right; padding: 2px 6px; }
.glegend td:first-child { text-align: left; display: flex; align-items: center; gap: 6px; }
.glegend i { width: 10px; height: 3px; border-radius: 2px; display: inline-block; }
.bgrid--tables { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.board .kv { font-size: 13px; }

/* Console: the inline "are you sure?" bar for risky commands */
.console-confirm { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 12px 14px; border-radius: 12px; background: rgba(251,192,45,.16); border: 1px solid rgba(251,192,45,.55); }
.console-confirm p { margin: 0; font-size: 14px; }
.console-confirm code { font-family: var(--f-mono); font-weight: 600; }
.console-confirm > div { display: flex; gap: 8px; }
.console-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ---------- checkout step of the wizard ---------- */
.checkout { display: grid; gap: 22px; margin-top: 28px; }
.checkout .field__label { font-size: 14px; font-weight: 600; padding: 0; }
.checkout fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.seg-mini { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); width: fit-content; }
.seg-mini button { height: 38px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); }
.seg-mini button[aria-checked="true"] { background: var(--mustard); color: var(--char); }
.addon-row { display: grid; grid-template-columns: 1fr auto auto; gap: 8px 16px; align-items: center; padding: 14px 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; }
.addon-row b { display: block; }
.addon-row span { font-size: 13px; color: var(--muted); }
.addon-row__price { font-family: var(--f-mono); font-size: 13px; white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; gap: 4px; }
.stepper button { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); font-weight: 700; box-shadow: inset 0 0 0 1px var(--line); }
.stepper output { min-width: 24px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.agree { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; cursor: pointer; }
.agree input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--mustard); flex: none; }
.agree a { text-decoration: underline; }
.capacity { padding: 18px 20px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--orange); }
.capacity p { margin: 4px 0 12px; font-size: 14px; color: var(--muted); }
.capacity__acts { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 560px) { .addon-row { grid-template-columns: 1fr auto; } .addon-row__price { grid-column: 1; } }

/* ---------- order progress ---------- */
.order { max-width: 640px; margin: 0; padding: 8px 0 40px; display: grid; gap: 22px; }
.order h2 { font-size: clamp(26px, 4vw, 36px); }
.order__lead { color: var(--muted); }
.order__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.order__steps li { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 0 12px 0; font-weight: 600; color: var(--faint); }
.order__steps li::before { content: ""; width: 26px; height: 26px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line); background: var(--surface); }
.order__steps li:not(:last-child)::after { content: ""; position: absolute; left: 12px; top: 40px; width: 2px; height: calc(100% - 26px); background: var(--line); }
.order__steps li.is-done { color: var(--text); }
.order__steps li.is-done::before { background: var(--mustard); box-shadow: none; content: "✓"; display: grid; place-items: center; color: var(--char); font-size: 14px; }
.order__steps li.is-now { color: var(--text); }
.order__steps li.is-now::before { box-shadow: inset 0 0 0 2px var(--mustard); border-top-color: transparent; animation: orderspin 1s linear infinite; }
@keyframes orderspin { to { transform: rotate(360deg); } }
.order__ready { display: grid; gap: 14px; padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--mustard); }
.order__addr { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.order__addr code { font-family: var(--f-mono); font-size: 18px; font-weight: 600; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); overflow-wrap: anywhere; }
.order__how { font-size: 14px; color: var(--muted); }
.order__how ol { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.order__note { padding: 16px 18px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--orange); }
.order__acts { display: flex; gap: 10px; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .order__steps li.is-now::before { animation: none; } }

/* ---------- policy pages ---------- */
.legal { max-width: 68ch; display: grid; gap: 14px; font-size: 16px; line-height: 1.65; color: var(--muted); }
.legal h2 { font-size: clamp(20px, 2.6vw, 26px); color: var(--text); margin-top: 18px; }
.legal ul, .legal ol { padding-left: 1.3em; display: grid; gap: 6px; }
.legal a { color: var(--text); }
.legal__pending { padding: 16px 18px; border-radius: 14px; background: var(--card, rgba(251,192,45,.14)); border: 1px solid var(--line); }
.legal__pending b { color: var(--text); }
.legal-nav { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.legal-nav a { color: var(--muted); text-decoration: none; }
.legal-nav a:hover, .legal-nav a[aria-current] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- billing page + billing banners ---------- */
.bbanners { display: grid; gap: 12px; }
.bbanners:empty { display: none; }
.bbanner { display: flex; gap: 14px 20px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 20px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 2px var(--orange); }
.bbanner--bad { box-shadow: inset 0 0 0 2px #b3261e; }
.bbanner b { display: block; font-size: 17px; }
.bbanner p { margin: 4px 0 0; color: var(--muted); max-width: 60ch; }
.bbanner__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.bills { display: grid; gap: 18px; max-width: 760px; }
.bill { display: grid; gap: 18px; padding: 24px; text-align: left; }
.bill__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bill__head h2 { font-size: 26px; font-style: italic; font-weight: 900; margin: 0; }
.bill__srv { margin: 2px 0 0; color: var(--muted); }
.bill__rows { margin: 0; display: grid; gap: 0; }
.bill__rows > div { display: grid; grid-template-columns: 130px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.bill__rows dt { color: var(--muted); font-size: 14px; }
.bill__rows dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.bill__pend { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }
.bill__acts { display: flex; gap: 10px; flex-wrap: wrap; }
.bill__hint { margin: 0; font-size: 14px; color: var(--muted); }
.bill__err { margin: 0; color: #b3261e; font-weight: 600; }
:root[data-theme="dark"] .bill__err { color: #ff8a80; }
.bill__mock { margin: 0; font-size: 13px; color: var(--faint); }
.bill__panel { display: grid; gap: 14px; padding: 20px; border-radius: var(--r); background: var(--surface-2); box-shadow: inset 0 0 0 1.5px var(--mustard); }
.bill__panel h3 { margin: 0; font-size: 20px; }
.bill__panel p { margin: 0; }
.bill__list { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.bill__plans { display: grid; gap: 8px; }
.bill__plan { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; }
.bill__plan:has(input:checked) { box-shadow: inset 0 0 0 2px var(--mustard); }
.bill__plan input { margin-top: 4px; accent-color: var(--mustard); }
.bill__plan small { color: var(--muted); }
.bill__note { padding: 12px 14px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); }
.bill__note--warn { box-shadow: inset 0 0 0 1.5px var(--orange); }
@media (max-width: 560px) { .bill__rows > div { grid-template-columns: 1fr; gap: 2px; } .bill { padding: 18px; } }

.compare__tiers th { text-align: center; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; font-style: normal; color: var(--muted); background: var(--surface-2); }
.compare__tiers td { border-bottom: 0; }

/* reserve step + done screen */
.reserve { margin-top: 20px; padding: 22px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.reserve h3 { margin: 0; font-size: 20px; }
.reserve p { margin: 0; color: var(--muted); }
.checkout.is-locked { opacity: .55; pointer-events: none; }
.wizard__done { display: grid; gap: 18px; padding: 8px 0; }
.wizard__done h2 { margin: 0; }
.refbox { display: grid; gap: 8px; }
.refbox__row { display: flex; gap: 10px; flex-wrap: wrap; }
.refbox__row .input { flex: 1 1 260px; font-family: var(--f-mono); font-size: 14px; }

/* Founder place (dashboard) */
.founder { display: grid; gap: 16px; max-width: 720px; }
.bbanner--info { box-shadow: inset 0 0 0 2px var(--accent); }
.founder__hero { display: grid; gap: 10px; justify-items: start; background: var(--bg-2); }
.founder__place { display: flex; align-items: baseline; gap: 10px; }
.founder__place span { font-family: var(--f-display); font-stretch: 125%; font-style: italic; font-weight: 900; font-size: clamp(56px, 10vw, 96px); line-height: 1; font-variant-numeric: tabular-nums; }
.founder__place small { font-size: 16px; color: var(--muted); }
.founder__hero p, .founder__ref p, .founder__cancel p { margin: 0; color: var(--muted); }
.founder__ref, .founder__cancel { display: grid; gap: 10px; }

/* ---------- Get help: tickets ---------- */
.help, .tkform, .tkthread { display: grid; gap: 16px; max-width: 760px; }
.help__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.help__head p { margin: 0; color: var(--muted); max-width: 46ch; }
.help__empty { display: grid; gap: 12px; justify-items: start; }
.help__empty p { margin: 0; color: var(--muted); max-width: 56ch; }
.tk { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tk__row { width: 100%; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; text-align: left; padding: 16px 18px; border-radius: var(--r); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .3s var(--ease); }
.tk__row:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--mustard); }
.tk__main { display: grid; gap: 2px; min-width: 0; }
.tk__main b { overflow-wrap: anywhere; }
.tk__main small, .tk__when { color: var(--muted); font-size: 13px; }
.tk__when { min-width: 64px; text-align: right; }
@media (max-width: 560px) { .tk__row { grid-template-columns: 1fr auto; } .tk__when { display: none; } }

.tkform__sec { display: grid; gap: 14px; }
.tkform__sec h2 { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 20px; }
.tkform__sec .step { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--mustard); color: var(--char); font-size: 14px; font-weight: 800; }
.tkform__lead { margin: 0; color: var(--muted); }
.tkform textarea.input { min-height: 140px; resize: vertical; }
.tkform__foot { display: grid; gap: 10px; }
.tkform__foot .hint { margin: 0; color: var(--muted); font-size: 13px; }
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.cat { display: grid; gap: 4px; align-content: start; text-align: left; padding: 14px 16px; border-radius: 14px; background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .25s, background .25s; }
.cat small { color: var(--muted); font-size: 13px; line-height: 1.35; }
.cat:hover { box-shadow: inset 0 0 0 1.5px var(--faint); }
.cat[aria-checked="true"] { box-shadow: inset 0 0 0 2.5px var(--mustard); background: var(--bg-2); }
.diag { display: grid; gap: 8px; }
.diag__row { display: grid; gap: 6px; padding: 12px 14px; border-radius: 14px; background: var(--bg-2); }
.diag__row.is-off { opacity: .55; }
.diag__check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.diag__check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--mustard); flex: none; }
.diag__check span { display: grid; gap: 1px; }
.diag__check small { color: var(--muted); font-size: 13px; }
.diag__peek { margin-left: 30px; font-size: 13px; }
.diag__peek summary { cursor: pointer; color: var(--accent-text); font-weight: 600; }
.diag__peek pre { margin: 8px 0 0; max-height: 180px; overflow: auto; padding: 10px 12px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font: 12px/1.5 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.linkish--btn { justify-self: start; padding: 0; background: none; border: 0; cursor: pointer; font-family: inherit; }

.tkthread__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tkthread__head h2 { margin: 0; font-size: 24px; overflow-wrap: anywhere; }
.tkthread__meta { margin: -8px 0 0; color: var(--muted); font-size: 14px; }
.msgs { display: grid; gap: 12px; }
.msg { display: grid; gap: 6px; width: min(100%, 620px); padding: 14px 16px; border-radius: 16px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); justify-self: start; }
.msg--me { justify-self: end; background: var(--bg-2); }
.msg header { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.msg header time { color: var(--muted); font-variant-numeric: tabular-nums; }
.msg p { margin: 0; overflow-wrap: anywhere; }
.msg__att { font-size: 12.5px; color: var(--muted); padding-top: 6px; border-top: 1px solid var(--line); }
.reply { display: grid; gap: 10px; }
.reply textarea.input { min-height: 96px; resize: vertical; }
.reply__label { font-weight: 700; font-size: 14px; }

/* quote form: honeypot, optional hints, confirmation */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.hint-inline { font-weight: 400; color: var(--muted); font-size: 12px; }
.quote__done { margin: 0; padding: 16px 18px; border-radius: 14px; background: var(--card-2, rgba(251,192,45,.18)); color: var(--text); font-size: 15px; line-height: 1.5; }
.quote__done b { display: block; font-size: 17px; margin-bottom: 2px; }
.tkclosed { display: grid; gap: 12px; justify-items: start; margin-top: 12px; } .tkclosed p { margin: 0; color: var(--muted); }

.legal__draft { padding: 12px 16px; border-radius: 12px; background: rgba(251,192,45,.22); border: 1px solid #fbc02d; color: var(--text); font-size: 14px; line-height: 1.5; }
.legal__date { font-size: 13px; color: var(--muted); }
.legal__short { padding: 16px 18px; border-radius: 14px; background: var(--card, rgba(251,192,45,.14)); border: 1px solid var(--line); }
.legal__short b { color: var(--text); }
.legal h3 { font-size: 17px; color: var(--text); margin-top: 6px; }
.legal mark { background: rgba(251,192,45,.35); color: var(--text); padding: 0 4px; border-radius: 4px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--text); }

/* ---------- Staff console (admin.html) ---------- */
.adm { display: grid; gap: 18px; min-width: 0; }
.adm-note { color: var(--muted); font-size: 14px; margin: 0; max-width: 72ch; }
.adm-empty { color: var(--faint); font-size: 14px; margin: 0; }
.adm-neg { color: #c62828; font-weight: 600; }
.adm-pos { color: #2e7d32; font-weight: 600; }
:root[data-theme="dark"] .adm-neg { color: #ef9a9a; }
:root[data-theme="dark"] .adm-pos { color: #a5d6a7; }
.side__count { margin-left: auto; min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; text-align: center; }
.btn--danger { background: #c62828; color: #fff; }
.adm-check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.adm-cat { display: block; color: var(--faint); font-size: 12px; }
.adm-search .input { width: 100%; max-width: 420px; }
.adm-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-chips .pill { cursor: pointer; }

.adm-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.adm-kpi { display: grid; gap: 2px; padding: 14px 16px; border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 14px; background: var(--surface); }
.adm-kpi small { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.adm-kpi b { font-family: var(--f-display); font-size: 30px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.adm-kpi span { font-size: 13px; color: var(--muted); }
.adm-kpi em { font-size: 12px; font-style: normal; color: var(--faint); }
.adm-kpi--good { border-left-color: #43a047; }
.adm-kpi--warn { border-left-color: var(--mustard); }
.adm-kpi--bad { border-left-color: #e53935; }

.adm-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.adm-chart { width: 100%; height: auto; display: block; }
.adm-line { fill: none; stroke-width: 2.4; stroke-linejoin: round; stroke-linecap: round; }
.adm-line--a { stroke: var(--accent-text); }
.adm-line--b { stroke: var(--slate); }
:root[data-theme="dark"] .adm-line--b { stroke: #90a4ae; }
.adm-grid { stroke: var(--line); stroke-width: 1; }
.adm-axis { fill: var(--muted); font-size: 11px; font-family: var(--f-mono); }
.adm-legend { display: inline-flex; gap: 12px; align-items: center; font-size: 13px; color: var(--muted); }
.adm-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.adm-dot--a { background: var(--accent-text); }
.adm-dot--b { background: var(--slate); }
:root[data-theme="dark"] .adm-dot--b { background: #90a4ae; }

.adm-caps { display: grid; gap: 16px; }
.adm-cap { display: grid; gap: 6px; }
.adm-cap__top { display: flex; justify-content: space-between; gap: 12px; }
.adm-cap__top span { color: var(--muted); font-size: 13px; }
.adm-cap__meta { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--muted); }
.adm-meter { position: relative; height: 16px; border-radius: 8px; background: var(--line); overflow: hidden; }
.adm-meter i { position: absolute; inset: 0 auto 0 0; border-radius: 8px; background: #43a047; }
.adm-meter--low i { background: var(--mustard); }
.adm-meter--bad i { background: #e53935; }
.adm-meter__band { position: absolute; top: 0; bottom: 0; border-left: 2px dashed var(--text); border-right: 2px dashed var(--text); opacity: .35; pointer-events: none; }
.adm-acts { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.adm-acts--col { flex-direction: column; align-items: stretch; }
.dtable td.adm-acts { display: table-cell; white-space: nowrap; }

.adm-sla { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; background: var(--line); }
.adm-sla--ok { background: rgba(67, 160, 71, .18); color: #2e7d32; }
.adm-sla--warn { background: rgba(251, 192, 45, .3); color: var(--text); }
.adm-sla--bad { background: #e53935; color: #fff; }
.adm-sla--done { color: var(--muted); }
:root[data-theme="dark"] .adm-sla--ok { color: #a5d6a7; }
.adm-row { cursor: pointer; }
.adm-row:hover, .adm-row:focus-visible { background: var(--line); outline: none; }

.adm-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: 18px; align-items: start; }
.adm-split > div, .adm-side { display: grid; gap: 18px; min-width: 0; }
@media (max-width: 900px) { .adm-split { grid-template-columns: 1fr; } }
.adm-meta { color: var(--muted); font-size: 14px; margin: 0 0 12px; }
.adm-thread { display: grid; gap: 10px; margin-bottom: 16px; }
.adm-msg { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); max-width: 92%; }
.adm-msg p { margin: 4px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.adm-msg__top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.adm-msg--staff { margin-left: auto; background: rgba(251, 192, 45, .18); }
.adm-msg--note { background: repeating-linear-gradient(135deg, transparent 0 8px, var(--line) 8px 9px); border-style: dashed; }
.adm-reply { display: grid; gap: 10px; }
.adm-reply textarea, .adm-dlg textarea { width: 100%; resize: vertical; font: inherit; }
.adm-status { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; font-size: 14px; }
.adm-mini { margin: 0 0 10px; font-size: 14px; }
.adm-mini small { color: var(--muted); }
.adm-cards { margin: 0 0 10px; padding-left: 18px; font-size: 14px; }
.adm-log { margin: 0; padding: 12px; max-height: 260px; overflow: auto; border-radius: 12px; background: var(--invert-bg); color: var(--invert-text); font: 12px/1.5 var(--f-mono); white-space: pre-wrap; overflow-wrap: anywhere; }

.adm-board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.adm-col { display: grid; align-content: start; gap: 10px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.adm-col h3 { display: flex; justify-content: space-between; margin: 0; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.adm-ev { display: grid; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); font-size: 13px; }
.adm-ev b { font-size: 14px; }
.adm-ev em { font-style: normal; color: var(--faint); }
.adm-ev__acts { display: flex; gap: 6px; margin-top: 6px; }
.adm-ev__acts select { flex: 1; min-width: 0; }

.adm-dlg { border: 1px solid var(--line); border-radius: 18px; padding: 0; width: min(480px, calc(100vw - 32px)); background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.adm-dlg::backdrop { background: rgba(38, 50, 56, .55); }
.adm-dlg__form { display: grid; gap: 12px; padding: 22px; margin: 0; }
.adm-dlg__form h2 { margin: 0; font-size: 22px; }
.adm-dlg__lead { margin: 0; color: var(--muted); font-size: 14px; }
.adm-dlg__err { margin: 0; color: #c62828; font-size: 14px; font-weight: 600; }
:root[data-theme="dark"] .adm-dlg__err { color: #ef9a9a; }
.adm-dlg__btns { display: flex; justify-content: flex-end; gap: 8px; }

/* Help centre */
.hc-search { margin-top: 22px; max-width: 520px; }
.hc-search .input { width: 100%; height: 50px; font-size: 16px; }
.hc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 36px; align-items: start; }
.hc__cats { display: grid; gap: 4px; position: sticky; top: 96px; }
.hc__cats button { display: flex; justify-content: space-between; gap: 10px; text-align: left; padding: 10px 14px; border-radius: 12px; border: 0; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.hc__cats button span { font-variant-numeric: tabular-nums; opacity: .7; }
.hc__cats button:hover { background: var(--card, rgba(251,192,45,.14)); color: var(--text); }
.hc__cats button[aria-current] { background: var(--mustard, #fbc02d); color: #263238; }
.hc__list { list-style: none; padding: 0; display: grid; gap: 10px; }
.hc__list a { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); text-decoration: none; color: var(--muted); }
.hc__list a:hover { border-color: var(--text); }
.hc__list b { color: var(--text); font-size: 17px; }
.hc__list i { font-style: normal; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.hc__none { padding: 22px; border-radius: 14px; border: 1px dashed var(--line); display: grid; gap: 8px; }
.hc__art { max-width: 68ch; }
.hc__art pre { padding: 12px 14px; border-radius: 12px; background: var(--card, rgba(251,192,45,.14)); font-family: var(--f-mono); font-size: 14px; overflow-x: auto; }
.hc__art code { font-family: var(--f-mono); font-size: .92em; background: var(--card, rgba(251,192,45,.14)); padding: 1px 6px; border-radius: 6px; }
.hc__art pre code { background: none; padding: 0; }
.hc__still { padding: 16px 18px; border-radius: 14px; background: var(--card, rgba(251,192,45,.14)); border: 1px solid var(--line); }
.hc__still b { color: var(--text); }
.hc__back, .hc__more { font-size: 14px; }
@media (max-width: 800px) {
  .hc { grid-template-columns: 1fr; gap: 20px; }
  .hc__cats { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .hc__cats button { white-space: nowrap; border: 1px solid var(--line); }
}

/* Switch campaign */
.switch { display: grid; gap: 10px; padding: 14px 16px; border-radius: 14px; border: 1px dashed var(--line); }
.switch__more { display: grid; gap: 8px; padding-top: 4px; }
.switch__more label { font-weight: 600; font-size: 14px; }
.promo__steps { padding-left: 1.3em; display: grid; gap: 10px; margin: 12px 0; }
.promo__form { display: grid; gap: 8px; max-width: 460px; margin-bottom: 12px; }
.promo__form label { font-weight: 600; font-size: 14px; }
