/* GGUFCOIN Remote · iPhone web app. Brand: Ember #E8590C, Ink #111110, Paper #F6F3EC, Carbon #0E0E0D. */
:root {
  --ember: #E8590C;
  --ink: #111110;
  --bg: #F2F1ED;
  --bg-elev: #FFFFFF;
  --bg-fill: rgba(120, 116, 108, 0.12);
  --bg-fill-2: rgba(120, 116, 108, 0.08);
  --text: #111110;
  --text-2: rgba(17, 17, 16, 0.58);
  --text-3: rgba(17, 17, 16, 0.32);
  --sep: rgba(17, 17, 16, 0.10);
  --accent: #B4420A;      /* accent text on light */
  --accent-g: #E8590C;    /* accent graphics */
  --accent-tint: rgba(232, 89, 12, 0.12);
  --ok: #1F8A4C;
  --ok-tint: rgba(31, 138, 76, 0.12);
  --wait: #77746C;
  --bad: #C8321F;
  --bad-tint: rgba(200, 50, 31, 0.10);
  --bar: rgba(246, 245, 241, 0.78);
  --shadow: 0 1px 2px rgba(17, 17, 16, 0.04), 0 8px 24px rgba(17, 17, 16, 0.06);
  --sheet-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  --r: 16px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif;
  --rounded: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0E0D; --bg-elev: #1B1B19; --bg-fill: rgba(241, 238, 230, 0.10); --bg-fill-2: rgba(241, 238, 230, 0.06);
    --text: #F1EEE6; --text-2: rgba(241, 238, 230, 0.58); --text-3: rgba(241, 238, 230, 0.30); --sep: rgba(241, 238, 230, 0.10);
    --accent: #FF8A3D; --accent-g: #FF8A3D; --accent-tint: rgba(255, 138, 61, 0.16);
    --ok: #4CC38A; --ok-tint: rgba(76, 195, 138, 0.16); --wait: #8E8B83; --bad: #FF6B5A; --bad-tint: rgba(255, 107, 90, 0.14);
    --bar: rgba(22, 22, 21, 0.78); --shadow: none; --sheet-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
  }
}
:root[data-theme="dark"] {
  --bg: #0E0E0D; --bg-elev: #1B1B19; --bg-fill: rgba(241, 238, 230, 0.10); --bg-fill-2: rgba(241, 238, 230, 0.06);
  --text: #F1EEE6; --text-2: rgba(241, 238, 230, 0.58); --text-3: rgba(241, 238, 230, 0.30); --sep: rgba(241, 238, 230, 0.10);
  --accent: #FF8A3D; --accent-g: #FF8A3D; --accent-tint: rgba(255, 138, 61, 0.16);
  --ok: #4CC38A; --ok-tint: rgba(76, 195, 138, 0.16); --wait: #8E8B83; --bad: #FF6B5A; --bad-tint: rgba(255, 107, 90, 0.14);
  --bar: rgba(22, 22, 21, 0.78); --shadow: none; --sheet-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}

[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.35; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
body { overflow: hidden; }
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
textarea, input { font: inherit; color: inherit; }
svg { display: block; }
.app { position: fixed; inset: 0; overflow: hidden; }

/* ---------- screens and navigation ---------- */
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--bg); transition: transform 0.42s var(--spring), opacity 0.42s var(--spring); will-change: transform; }
.screen.under { transform: translateX(-28%); opacity: 0.6; pointer-events: none; }
.screen.off-right { transform: translateX(100%); }
.scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--safe-t) + 8px) 16px calc(var(--safe-b) + 96px); }
.scroll.with-composer { padding-bottom: calc(var(--safe-b) + 24px); }

.topbar { display: flex; align-items: center; gap: 8px; min-height: 44px; }
.macbtn { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; margin-left: -6px; border-radius: 999px; transition: background 0.2s; max-width: 70%; }
.macbtn:active { background: var(--bg-fill); }
.macbtn .mk { width: 26px; height: 26px; flex: none; }
.macbtn .nm { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.macbtn .chev { width: 12px; height: 12px; color: var(--text-3); flex: none; }
.spacer { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--bg-fill); color: var(--text-2); white-space: nowrap; }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-tint); color: var(--ok); }
.pill.warn { background: var(--accent-tint); color: var(--accent); }
.pill.bad { background: var(--bad-tint); color: var(--bad); }
.pill.live .dot { animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.35; transform: scale(0.8); } }

h1.large { font-size: 34px; line-height: 41px; font-weight: 700; letter-spacing: 0.37px; margin: 6px 0 14px; }
.section-h { font-size: 13px; text-transform: uppercase; letter-spacing: 0.4px; color: var(--text-2); margin: 26px 16px 7px; font-weight: 500; }
.foot { font-size: 13px; color: var(--text-2); margin: 7px 16px 0; line-height: 1.38; }

/* ---------- cards and grouped lists ---------- */
.card { background: var(--bg-elev); border-radius: var(--r); box-shadow: var(--shadow); }
.group { background: var(--bg-elev); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.row { display: flex; align-items: center; gap: 12px; min-height: 50px; padding: 10px 16px; position: relative; width: 100%; text-align: left; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 52px; right: 0; height: 0.5px; background: var(--sep); }
.row.plain + .row.plain::before { left: 16px; }
button.row:active { background: var(--bg-fill-2); }
.row .ic { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; flex: none; color: #fff; }
.row .ic svg { width: 17px; height: 17px; }
.row .lbl { flex: 1; min-width: 0; }
.row .lbl .t { font-size: 17px; }
.row .lbl .s { font-size: 13px; color: var(--text-2); margin-top: 1px; }
.row .val { color: var(--text-2); font-variant-numeric: tabular-nums; text-align: right; max-width: 55%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.danger { color: var(--bad); justify-content: center; font-weight: 500; }
.row .chev { width: 8px; height: 13px; color: var(--text-3); flex: none; }

/* iOS switch */
.switch { position: relative; width: 51px; height: 31px; flex: none; border-radius: 999px; background: var(--bg-fill); transition: background 0.25s; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, 0.15), 0 1px 1px rgba(0, 0, 0, 0.16); transition: transform 0.3s var(--spring); }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(20px); }
.switch:disabled { opacity: 0.4; }

/* ---------- status hero ---------- */
.hero { padding: 20px 18px 18px; display: flex; align-items: center; gap: 18px; }
.ring { width: 112px; height: 112px; position: relative; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .track { stroke: var(--bg-fill); }
.ring .prog { stroke: var(--accent-g); transition: stroke-dashoffset 1s linear; }
.ring .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .center .k { font-size: 11px; color: var(--text-2); }
.ring .center .v { font: 600 20px/1.1 var(--rounded); font-variant-numeric: tabular-nums; }
.ring.spin .mk-spin { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.bal .k { font-size: 13px; color: var(--text-2); }
.bal { min-width: 0; }
.bal .v { font: 600 30px/1.05 var(--rounded); white-space: nowrap; letter-spacing: -0.5px; font-variant-numeric: tabular-nums; margin: 2px 0 2px; }
.bal .v small { font: 600 13px var(--font); color: var(--text-2); letter-spacing: 0; margin-left: 3px; }
.bal .sub { font-size: 13px; color: var(--text-2); }
.bal .pts { margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; font-size: 15px; font-weight: 600; }
.bal .pts svg { width: 15px; height: 15px; color: var(--accent-g); }
.modeline { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 0.5px solid var(--sep); font-size: 15px; color: var(--text-2); }
.modeline svg { width: 18px; height: 18px; flex: none; }
.modeline.mining { color: var(--accent); }
.modeline.confirming { color: var(--ok); }

.bigbtn { width: 100%; height: 56px; border-radius: 16px; font-size: 17px; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; transition: transform 0.15s, opacity 0.2s, background 0.3s; }
.bigbtn:active:not(:disabled) { transform: scale(0.97); }
.bigbtn svg { width: 20px; height: 20px; }
.bigbtn.primary { background: var(--ember); color: var(--ink); }
.bigbtn.secondary { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow); }
.bigbtn.tinted { background: var(--accent-tint); color: var(--accent); }
.bigbtn.plain { background: transparent; color: var(--bad); height: 48px; margin-top: 4px; }
.bigbtn:disabled { opacity: 0.4; }

/* ---------- banners ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); margin-bottom: 14px; background: var(--bg-elev); box-shadow: var(--shadow); animation: drop 0.4s var(--spring); }
.banner svg { width: 22px; height: 22px; flex: none; margin-top: 1px; }
.banner .t { font-weight: 600; font-size: 15px; }
.banner .s { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.banner.off svg { color: var(--wait); }
.banner.sleep svg { color: #5E5CE6; }
.banner.warn svg { color: var(--accent-g); }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }
.disabled-all { opacity: 0.45; pointer-events: none; filter: saturate(0.4); transition: opacity 0.3s; }

/* ---------- tasks ---------- */
.composer { padding: 12px 12px 12px 16px; display: flex; gap: 10px; align-items: flex-end; }
.composer textarea { flex: 1; border: 0; outline: 0; background: transparent; resize: none; min-height: 24px; max-height: 140px; padding: 5px 0; line-height: 1.35; }
.composer textarea::placeholder { color: var(--text-3); }
.sendbtn { width: 34px; height: 34px; border-radius: 50%; background: var(--ember); color: var(--ink); display: grid; place-items: center; flex: none; transition: transform 0.15s, opacity 0.2s; }
.sendbtn svg { width: 18px; height: 18px; }
.sendbtn:disabled { background: var(--bg-fill); color: var(--text-3); }
.sendbtn:active:not(:disabled) { transform: scale(0.9); }

.task { align-items: flex-start; padding-top: 13px; padding-bottom: 13px; }
.task .st { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; margin-top: 1px; }
.task .st svg { width: 16px; height: 16px; }
.st.working { background: var(--accent-tint); color: var(--accent); }
.st.waiting { background: var(--ember); color: var(--ink); animation: glow 1.8s ease-in-out infinite; }
.st.queued, .st.idle { background: var(--bg-fill); color: var(--text-2); }
.st.done { background: var(--ok-tint); color: var(--ok); }
.st.stopped { background: var(--bg-fill); color: var(--text-2); }
.st.failed { background: var(--bad-tint); color: var(--bad); }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 89, 12, 0.45); } 50% { box-shadow: 0 0 0 6px rgba(232, 89, 12, 0); } }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.8s linear infinite; }
.task .lbl .t { font-size: 16px; font-weight: 500; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task .lbl .s { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.task .when { font-size: 13px; color: var(--text-3); flex: none; margin-top: 2px; }
.needs { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; padding: 3px 9px; border-radius: 999px; background: var(--accent-tint); color: var(--accent); font-size: 12px; font-weight: 600; }
.empty { text-align: center; color: var(--text-2); padding: 34px 24px; font-size: 15px; }
.empty svg { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--text-3); }

/* task detail */
.navbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 6px; padding: calc(var(--safe-t) + 4px) 8px 6px; background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 0.5px solid var(--sep); }
.back { display: inline-flex; align-items: center; gap: 2px; color: var(--accent); font-size: 17px; height: 44px; padding: 0 8px 0 2px; }
.back svg { width: 22px; height: 22px; }
.navbar .ttl { flex: 1; text-align: center; font-weight: 600; font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-right: 60px; }
.stopbtn { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; background: var(--bad-tint); color: var(--bad); font-size: 15px; font-weight: 600; position: absolute; right: 12px; bottom: 12px; }
.stopbtn svg { width: 12px; height: 12px; }
.detail-scroll { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 14px 16px calc(var(--safe-b) + 40px); }
.dtitle { font-size: 24px; line-height: 1.22; font-weight: 700; margin: 4px 2px 8px; }
.dmeta { display: flex; gap: 8px; align-items: center; margin: 0 2px 16px; flex-wrap: wrap; }

.plan { padding: 6px 0; margin-bottom: 18px; }
.plan .ph { display: flex; justify-content: space-between; padding: 8px 16px 4px; font-size: 13px; color: var(--text-2); font-weight: 600; text-transform: uppercase; letter-spacing: 0.4px; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 16px; font-size: 16px; transition: color 0.3s; }
.step .cb { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--text-3); flex: none; display: grid; place-items: center; transition: all 0.35s var(--spring); margin-top: 1px; }
.step .cb svg { width: 13px; height: 13px; opacity: 0; transform: scale(0.4); transition: all 0.35s var(--spring); }
.step.done .cb { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.done .cb svg { opacity: 1; transform: none; }
.step.done .x { color: var(--text-2); }
.step.skipped .x { color: var(--text-3); text-decoration: line-through; }
.step.active .cb { border-color: var(--accent-g); border-width: 2px; }
.step.active .cb svg, .step.pending .cb svg { display: none; }
.step.active .cb::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent-g); animation: pulse 1.4s ease-in-out infinite; }
.step.active .x { font-weight: 600; }

.turn-user { display: flex; justify-content: flex-end; margin: 6px 0 14px; }
.turn-user .b { max-width: 84%; background: var(--accent-tint); color: var(--text); padding: 10px 14px; border-radius: 20px 20px 6px 20px; font-size: 16px; white-space: pre-wrap; word-wrap: break-word; }
.turn-ai { margin: 0 2px 18px; }
.md { font-size: 16px; line-height: 1.5; word-wrap: break-word; }
.md p { margin: 0 0 10px; }
.md ul { margin: 0 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md code { font-family: var(--mono); font-size: 14px; background: var(--bg-fill); padding: 1px 5px; border-radius: 5px; }
.md pre { font-family: var(--mono); font-size: 13px; background: var(--bg-elev); padding: 12px; border-radius: 12px; overflow-x: auto; margin: 0 0 10px; box-shadow: var(--shadow); }
.md pre code { background: none; padding: 0; }
.caret::after { content: ""; display: inline-block; width: 8px; height: 17px; margin-left: 2px; vertical-align: -3px; border-radius: 2px; background: var(--accent-g); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.think { font-size: 14px; color: var(--text-2); margin: 0 0 10px; display: flex; gap: 6px; align-items: center; }
.think svg { width: 15px; height: 15px; }
.note { font-size: 13px; color: var(--text-2); margin: 4px 0 8px; }
.tool { background: var(--bg-elev); border-radius: 14px; padding: 11px 14px; margin: 0 0 10px; box-shadow: var(--shadow); animation: drop 0.35s var(--spring); border: 1px solid transparent; }
.tool.needsApproval { border-color: var(--accent-g); }
.tool .th { display: flex; align-items: center; gap: 10px; }
.tool .ti { width: 30px; height: 30px; border-radius: 9px; background: var(--bg-fill); display: grid; place-items: center; flex: none; color: var(--text-2); }
.tool .ti svg { width: 16px; height: 16px; }
.tool .tt { flex: 1; min-width: 0; }
.tool .tt .a { font-size: 15px; font-weight: 600; }
.tool .tt .b { font-size: 13px; color: var(--text-2); font-family: var(--mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tool .ts { flex: none; }
.tool .ts svg { width: 18px; height: 18px; }
.tool .ts.done { color: var(--ok); } .tool .ts.denied, .tool .ts.failed { color: var(--bad); } .tool .ts.running { color: var(--accent); }
.tool .res { margin-top: 9px; padding-top: 9px; border-top: 0.5px solid var(--sep); font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: pre-wrap; word-break: break-all; max-height: 150px; overflow: hidden; }
.outputs { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 2px 16px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; background: var(--bg-elev); font-size: 13px; box-shadow: var(--shadow); }
.chip svg { width: 13px; height: 13px; color: var(--accent); }

/* ---------- tab bar ---------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; padding: 7px 0 calc(var(--safe-b) + 6px); background: var(--bar); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-top: 0.5px solid var(--sep); transition: transform 0.42s var(--spring); }
.tabbar.hidden { transform: translateY(110%); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; font-weight: 500; color: var(--text-3); position: relative; }
.tab svg { width: 26px; height: 26px; }
.tab.on { color: var(--accent); }
.tab .badge { position: absolute; top: -2px; left: calc(50% + 6px); min-width: 18px; height: 18px; border-radius: 9px; background: var(--ember); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; padding: 0 5px; }

/* ---------- sheets ---------- */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.32); z-index: 40; opacity: 0; transition: opacity 0.35s; }
.backdrop.show { opacity: 1; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--bg); border-radius: 22px 22px 0 0; padding: 8px 16px calc(var(--safe-b) + 16px); box-shadow: var(--sheet-shadow); transform: translateY(105%); transition: transform 0.45s var(--spring); max-height: 88vh; overflow-y: auto; }
.sheet.show { transform: none; }
.grabber { width: 36px; height: 5px; border-radius: 3px; background: var(--text-3); margin: 0 auto 14px; opacity: 0.6; }
.sheet h2 { font-size: 22px; font-weight: 700; margin: 4px 4px 4px; }
.sheet .lead { color: var(--text-2); font-size: 15px; margin: 0 4px 16px; }
.appr-ic { width: 56px; height: 56px; border-radius: 16px; background: var(--accent-tint); color: var(--accent); display: grid; place-items: center; margin: 8px 4px 14px; }
.appr-ic svg { width: 28px; height: 28px; }
.appr-box { background: var(--bg-elev); border-radius: 14px; padding: 12px 14px; margin-bottom: 6px; box-shadow: var(--shadow); }
.appr-box .a { font-weight: 600; }
.appr-box .b { font-family: var(--mono); font-size: 13px; color: var(--text-2); margin-top: 3px; word-break: break-all; }
.appr-box pre { font-family: var(--mono); font-size: 12px; color: var(--text-2); background: var(--bg-fill-2); border-radius: 9px; padding: 9px 10px; margin: 10px 0 0; white-space: pre-wrap; max-height: 160px; overflow: hidden; }
.appr-task { font-size: 13px; color: var(--text-2); margin: 10px 4px 4px; }
.action-sheet .grp { background: var(--bg-elev); border-radius: 14px; overflow: hidden; margin-bottom: 8px; }
.action-sheet .msg { padding: 14px 16px; text-align: center; font-size: 13px; color: var(--text-2); border-bottom: 0.5px solid var(--sep); }
.action-sheet .msg b { display: block; color: var(--text); font-size: 15px; margin-bottom: 3px; }
.action-sheet button { display: block; width: 100%; height: 56px; font-size: 19px; color: var(--accent); }
.action-sheet button.destructive { color: var(--bad); }
.action-sheet button.cancel { font-weight: 600; background: var(--bg-elev); border-radius: 14px; }

/* ---------- pair ---------- */
.pair { min-height: 100%; display: flex; flex-direction: column; padding: calc(var(--safe-t) + 40px) 24px calc(var(--safe-b) + 24px); overflow-y: auto; }
.pair .logo { width: 84px; height: 84px; border-radius: 22px; background: #0E0E0D; display: grid; place-items: center; margin: 0 auto 22px; box-shadow: 0 10px 30px rgba(232, 89, 12, 0.18); animation: rise 0.7s var(--spring); }
.pair .logo svg { width: 56px; height: 56px; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(0.94); } }
.pair h1 { text-align: center; font-size: 28px; line-height: 1.18; font-weight: 700; margin: 0 0 8px; letter-spacing: 0.2px; }
.pair .lead { text-align: center; color: var(--text-2); font-size: 16px; margin: 0 8px 26px; }
.steps { counter-reset: s; margin-bottom: 22px; }
.steps .st2 { display: flex; gap: 14px; align-items: flex-start; padding: 12px 16px; }
.steps .st2 + .st2 { border-top: 0.5px solid var(--sep); }
.steps .n { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-tint); color: var(--accent); font-weight: 700; font-size: 14px; display: grid; place-items: center; flex: none; }
.steps .tx { font-size: 15px; padding-top: 2px; }
.steps .tx b { font-weight: 600; }
.paste { display: flex; gap: 8px; padding: 6px 6px 6px 14px; align-items: center; }
.paste input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; height: 40px; font-size: 15px; }
.paste input::placeholder { color: var(--text-3); }
.paste button { height: 40px; padding: 0 16px; border-radius: 12px; background: var(--ember); color: var(--ink); font-weight: 600; font-size: 15px; }
.paste button:disabled { background: var(--bg-fill); color: var(--text-3); }
.code-big { font: 600 40px/1 var(--mono); letter-spacing: 4px; text-align: center; margin: 18px 0 8px; color: var(--text); }
.waiting { text-align: center; padding: 22px 18px 20px; }
.waiting .spin-lg { width: 36px; height: 36px; margin: 0 auto 14px; color: var(--accent-g); }
.waiting .spin-lg .spinner { width: 36px; height: 36px; border-width: 3px; }
.hint { display: flex; gap: 12px; align-items: center; padding: 14px 16px; margin-top: 14px; }
.hint svg { width: 24px; height: 24px; color: var(--accent); flex: none; }
.hint .t { font-size: 14px; color: var(--text-2); }
.hint .t b { color: var(--text); font-weight: 600; }
.privacy { display: flex; gap: 8px; align-items: center; justify-content: center; color: var(--text-2); font-size: 13px; margin-top: auto; padding-top: 24px; }
.privacy svg { width: 14px; height: 14px; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; top: calc(var(--safe-t) + 10px); z-index: 60; transform: translate(-50%, -150%); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; transition: transform 0.45s var(--spring); max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18); }
.toast.show { transform: translate(-50%, 0); }

.fade-in { animation: fadein 0.35s ease; }
@keyframes fadein { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.still *, .still *::before, .still *::after { animation: none !important; transition: none !important; }
