/* Press 1 panel — matrix terminal. */
:root {
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, "SF Mono", "Cascadia Code", Menlo, Consolas, monospace;
  --font: var(--mono);

  --bg: #050a07;
  --text: #baffc9;
  --text-2: rgba(150, 255, 180, .62);
  --text-3: rgba(150, 255, 180, .36);
  --hair: rgba(80, 255, 140, .16);

  --glass-top: rgba(40, 90, 55, .30);
  --glass-bottom: rgba(4, 12, 7, .55);
  --glass-edge: rgba(80, 255, 140, .32);
  --glass-edge-low: rgba(80, 255, 140, .10);
  --glass-shadow: 0 0 0 1px rgba(0, 255, 110, .05), 0 16px 50px rgba(0, 0, 0, .65);
  --sheen: rgba(80, 255, 140, .10);
  --fill: rgba(80, 255, 140, .07);
  --fill-2: rgba(80, 255, 140, .14);

  --accent: #00ff6a;
  --accent-2: #00d1ff;
  --green: #00ff6a;
  --orange: #ffcc00;
  --red: #ff3b5c;
  --teal: #00e0c6;
  --pink: #ff2bd6;

  --radius: 26px;
  --radius-sm: 16px;
  --spring: cubic-bezier(.32, 1.25, .5, 1);
  --ease: cubic-bezier(.25, .8, .25, 1);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: dark;
}

/* "Light" is a paler CRT-amber terminal, not a return to the old iOS theme. */
:root[data-theme="light"] {
  --bg: #eef3ea;
  --text: #0c3a1c;
  --text-2: rgba(12, 58, 28, .68);
  --text-3: rgba(12, 58, 28, .42);
  --hair: rgba(12, 58, 28, .12);
  --glass-top: rgba(255, 255, 255, .55);
  --glass-bottom: rgba(210, 235, 210, .35);
  --glass-edge: rgba(12, 58, 28, .22);
  --glass-edge-low: rgba(12, 58, 28, .08);
  --glass-shadow: 0 10px 40px rgba(20, 60, 30, .14), 0 2px 6px rgba(20, 60, 30, .06);
  --sheen: rgba(255, 255, 255, .5);
  --fill: rgba(12, 58, 28, .06);
  --fill-2: rgba(12, 58, 28, .12);
  --accent: #0a8a3f;
  --accent-2: #0088a8;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.35;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
code { font-family: var(--mono); font-size: .88em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.error { color: var(--red); font-size: 14px; min-height: 0; margin: 6px 2px 0; }
.error:empty { display: none; }

/* ---------- living background: digital rain ---------- */
.backdrop { position: fixed; inset: 0; overflow: hidden; z-index: -1; background: var(--bg); }
#rain { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .5; }
:root[data-theme="light"] #rain { opacity: .22; }
.scanlines {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(to bottom, rgba(0, 255, 110, .05) 0px, rgba(0, 255, 110, .05) 1px, transparent 2px, transparent 3px);
}
.vignette {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(130% 90% at 50% 0%, transparent 55%, color-mix(in srgb, var(--bg) 85%, transparent) 100%);
}

/* ---------- panels (solid, no blur — backdrop-filter over the animated rain was the lag) ---------- */
.glass {
  position: relative;
  background: linear-gradient(160deg, var(--glass-top), var(--glass-bottom)), var(--bg);
  border: 1px solid var(--glass-edge-low);
  border-top-color: var(--glass-edge);
  box-shadow: var(--glass-shadow), inset 0 1px 0 var(--glass-edge), inset 0 -1px 1px var(--glass-edge-low);
  border-radius: var(--radius);
  isolation: isolate;
}
/* specular sheen: the light catching the curved edge */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 60% at 10% 0%, var(--sheen), transparent 55%),
    radial-gradient(80% 50% at 100% 100%, var(--glass-edge-low), transparent 60%);
  opacity: .9;
}

/* ---------- login ---------- */
.login { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.login-card { width: min(380px, 100%); padding: 36px 26px 26px; text-align: center; animation: rise .6s var(--spring) both; }
.login-card h1 { margin: 14px 0 2px; font-size: 30px; letter-spacing: -.01em; text-shadow: 0 0 18px color-mix(in srgb, var(--accent) 55%, transparent); }
.login-card .muted { margin: 0 0 22px; }
.login-card .field { display: block; margin-bottom: 4px; }
.login-card .btn { margin-top: 14px; }
.login-card #login-disabled { margin-top: 16px; }
.app-icon {
  width: 76px; height: 76px; margin: 0 auto; border-radius: 22px; display: grid; place-items: center;
  background: linear-gradient(140deg, #00c853, #00b8d4);
  box-shadow: 0 0 28px color-mix(in srgb, var(--accent) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.app-icon svg { width: 38px; height: 38px; fill: #03140a; stroke: none; }
.shake { animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.97); } }

/* ---------- inputs & buttons ---------- */
input[type=text], input[type=password], input[type=tel], input[type=url], input[type=number], input:not([type]), textarea {
  width: 100%; height: 50px; padding: 0 16px; border-radius: 14px;
  background: var(--fill); border: 1px solid var(--hair); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  font-size: 17px; /* >=16px: no iOS zoom on focus */
}
textarea { height: auto; padding: 12px 16px; resize: vertical; font-family: inherit; line-height: 1.4; }
input:focus, textarea:focus { border-color: var(--accent); background: var(--fill-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
input.invalid, textarea.invalid { border-color: var(--red); }
input::placeholder, textarea::placeholder { color: var(--text-3); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 16px;
  font-family: var(--mono); letter-spacing: .01em;
  background: var(--fill-2); transition: transform .25s var(--spring), filter .2s, opacity .2s, box-shadow .2s;
  -webkit-user-select: none; user-select: none; position: relative;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn.primary {
  color: #03140a; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 50%, transparent), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn.primary:hover { box-shadow: 0 0 32px color-mix(in srgb, var(--accent) 75%, transparent), inset 0 1px 0 rgba(255,255,255,.4); }
.btn.danger { color: #fff; background: linear-gradient(135deg, #ff5a4f, #ff2d55); box-shadow: 0 0 20px rgba(255, 59, 48, .45), inset 0 1px 0 rgba(255,255,255,.3); }
.btn.glassy { background: var(--fill); border: 1px solid var(--hair); }
@media (hover: hover) {
  .btn:not(:disabled):hover { animation: glitch .22s steps(2, jump-none); }
}
@keyframes glitch {
  0% { transform: translate(0, 0); }
  20% { transform: translate(-1px, 1px); text-shadow: -1px 0 var(--pink), 1px 0 var(--accent-2); }
  40% { transform: translate(1px, -1px); text-shadow: 1px 0 var(--pink), -1px 0 var(--accent-2); }
  60% { transform: translate(-1px, 0); text-shadow: none; }
  100% { transform: translate(0, 0); text-shadow: none; }
}
.btn.wide { width: 100%; }
.btn.sm { height: 38px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 19px; height: 19px; }
.btn.loading { pointer-events: none; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1 1 140px; }

.icon-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: transform .3s var(--spring); }
.icon-btn:active { transform: scale(.9); }
.icon-btn.spin svg { animation: spin .8s var(--ease); }

/* ---------- app frame ---------- */
#app { max-width: 760px; margin: 0 auto; padding: calc(var(--safe-t) + 18px) 16px calc(var(--safe-b) + 120px); }
.topbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 8px 4px 18px; }
.topbar h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 0 16px color-mix(in srgb, var(--accent) 35%, transparent); }
.topbar h1::after { content: "_"; color: var(--accent); animation: caret 1s steps(2) infinite; margin-left: 2px; }
.eyebrow { margin: 0 0 2px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--text-2); }
.eyebrow::before { content: "> "; color: var(--accent); }
@keyframes caret { 50% { opacity: 0; } }
.view { animation: viewIn .45s var(--spring) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }

/* ---------- floating tab bar ---------- */
.tabbar {
  position: fixed; z-index: 20; left: 50%; bottom: calc(var(--safe-b) + 14px); transform: translateX(-50%);
  display: grid; grid-template-columns: repeat(5, 1fr); width: min(460px, calc(100% - 24px));
  padding: 6px; border-radius: 999px;
}
.tabbar button {
  position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
  height: 56px; justify-content: center; border-radius: 999px; color: var(--text-2);
  font-size: 10.5px; font-weight: 600; transition: color .3s, transform .3s var(--spring);
}
.tabbar button svg { width: 24px; height: 24px; }
.tabbar button:active { transform: scale(.9); }
.tabbar button.active { color: var(--accent); }
.lens {
  position: absolute; z-index: 0; top: 6px; left: 6px; height: 56px; border-radius: 999px;
  width: calc((100% - 12px) / 5);
  background: linear-gradient(160deg, var(--glass-top), var(--fill));
  border: 1px solid var(--glass-edge-low); border-top-color: var(--glass-edge);
  box-shadow: inset 0 1px 0 var(--glass-edge), 0 4px 14px rgba(0, 0, 0, .08);
  transition: transform .55s var(--spring);
}

/* ---------- cards & lists ---------- */
.card { padding: 20px; margin-bottom: 16px; }
.card h2 { margin: 0 0 4px; font-size: 20px; letter-spacing: -.01em; }
.card > p.muted { margin: 0 0 16px; font-size: 15px; }
.section-label { margin: 22px 18px 8px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); }
.footnote { margin: 8px 18px 18px; font-size: 13px; color: var(--text-2); }

.list { padding: 4px 0; margin-bottom: 8px; overflow: hidden; }
.row {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 16px;
  text-align: left; position: relative; transition: background .2s;
}
.row + .row::before { content: ""; position: absolute; top: 0; left: 62px; right: 0; border-top: 1px solid var(--hair); }
button.row:active { background: var(--fill); }
.row .ico { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255,255,255,.35); }
.row .ico svg { width: 18px; height: 18px; stroke-width: 2; }
.row .label { flex: 1; min-width: 0; }
.row .label b { display: block; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .label small { display: block; color: var(--text-2); font-size: 13px; margin-top: 1px; }
.row .val { color: var(--text-2); max-width: 48%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; text-align: right; }
.row .val.unset { color: var(--orange); }
.row .chev { width: 16px; height: 16px; color: var(--text-3); stroke-width: 2.4; }

.c-blue { background: linear-gradient(140deg, #00d1ff, #0088c4); box-shadow: 0 0 14px rgba(0, 209, 255, .5), inset 0 1px 0 rgba(255,255,255,.3); }
.c-purple { background: linear-gradient(140deg, #c86bff, #8a2bff); box-shadow: 0 0 14px rgba(170, 70, 255, .5), inset 0 1px 0 rgba(255,255,255,.3); }
.c-green { background: linear-gradient(140deg, #4dff9e, #00c853); box-shadow: 0 0 14px rgba(0, 255, 110, .55), inset 0 1px 0 rgba(255,255,255,.3); }
.c-orange { background: linear-gradient(140deg, #ffe066, #ffb000); box-shadow: 0 0 14px rgba(255, 190, 0, .5), inset 0 1px 0 rgba(255,255,255,.3); }
.c-red { background: linear-gradient(140deg, #ff6b7a, #ff1f45); box-shadow: 0 0 14px rgba(255, 50, 80, .5), inset 0 1px 0 rgba(255,255,255,.3); }
.c-teal { background: linear-gradient(140deg, #4dffe6, #00bfa5); box-shadow: 0 0 14px rgba(0, 230, 200, .5), inset 0 1px 0 rgba(255,255,255,.3); }
.c-pink { background: linear-gradient(140deg, #ff6bd6, #e619c0); box-shadow: 0 0 14px rgba(255, 60, 220, .5), inset 0 1px 0 rgba(255,255,255,.3); }
.c-gray { background: linear-gradient(140deg, #8fa89a, #4d6a5a); box-shadow: 0 0 10px rgba(130, 170, 150, .35), inset 0 1px 0 rgba(255,255,255,.25); }
.c-indigo { background: linear-gradient(140deg, #8d8dff, #4b45e6); box-shadow: 0 0 14px rgba(110, 110, 255, .5), inset 0 1px 0 rgba(255,255,255,.3); }

/* ---------- home ---------- */
.hero { display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; padding: 22px; margin-bottom: 16px; }
.ring { position: relative; width: 132px; height: 132px; }
.ring svg { width: 132px; height: 132px; transform: rotate(-90deg); stroke-linecap: round; }
.ring .track { stroke: var(--fill-2); stroke-width: 12; }
.ring .meter { stroke: url(#ringGrad); stroke-width: 12; transition: stroke-dashoffset .9s var(--ease); }
.ring .center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring .center b { font-size: 34px; font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.ring .center span { font-size: 12px; color: var(--text-2); margin-top: 4px; }
.hero-side h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.02em; }
.hero-side p { margin: 0 0 14px; color: var(--text-2); font-size: 15px; }
.bar { height: 10px; border-radius: 99px; background: var(--fill-2); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--teal)); transition: width .9s var(--ease); }
.bar-label { display: flex; justify-content: space-between; font-size: 13px; color: var(--text-2); margin: 0 0 6px; }

.tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.tile { padding: 16px; text-align: left; min-height: 112px; display: flex; flex-direction: column; justify-content: space-between; transition: transform .3s var(--spring); }
.tile:active { transform: scale(.97); }
.tile .top { display: flex; justify-content: space-between; align-items: center; }
.tile .ico { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; }
.tile .ico svg { width: 20px; height: 20px; stroke-width: 2; }
.tile b { display: block; font-size: 17px; margin-top: 10px; }
.tile small { color: var(--text-2); font-size: 13px; }
.dot { display: inline-block; vertical-align: middle; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); box-shadow: 0 0 0 4px var(--fill); }
.dot.ok { background: var(--green); box-shadow: 0 0 0 4px color-mix(in srgb, var(--green) 20%, transparent); }
.dot.bad { background: var(--orange); box-shadow: 0 0 0 4px color-mix(in srgb, var(--orange) 20%, transparent); }
.dot.live { background: var(--green); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 60%, transparent); } 100% { box-shadow: 0 0 0 12px transparent; } }

.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; margin-bottom: 16px; }
.alert svg { color: var(--orange); margin-top: 1px; }
.alert p { margin: 0; font-size: 15px; }
.alert b { display: block; margin-bottom: 2px; }

/* ---------- checks ---------- */
.checks { list-style: none; margin: 12px 0 0; padding: 0; }
.checks li { display: flex; gap: 10px; padding: 9px 2px; font-size: 15px; border-top: 1px solid var(--hair); animation: viewIn .4s var(--spring) both; }
.checks li:first-child { border-top: 0; }
.checks li svg { width: 20px; height: 20px; stroke-width: 2.2; margin-top: 1px; }
.checks .ok svg { color: var(--green); }
.checks .warn svg { color: var(--orange); }
.checks .error svg { color: var(--red); }
.checks .info svg { color: var(--accent); }
.checks .group { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); padding-top: 14px; border: 0; }

/* ---------- segmented control (provider / routing picker) ---------- */
.segmented { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--fill); }
.segmented button {
  flex: 1; border: 0; background: transparent; padding: 9px 10px; border-radius: 12px; font: inherit;
  font-weight: 600; font-size: 14px; color: var(--text-2); cursor: pointer; transition: background .2s var(--ease), color .2s var(--ease);
}
.segmented button.on { background: var(--glass-top); color: var(--text); box-shadow: 0 2px 8px rgba(40, 52, 90, .12); }
.segmented button:active { transform: scale(.97); }

/* ---------- 3CX wizard ---------- */
.wizard { display: grid; gap: 10px; }
.wizard .pair { display: grid; grid-template-columns: 1fr 120px; gap: 10px; }
.uri-preview { padding: 12px 14px; border-radius: 14px; background: var(--fill); font-family: var(--mono); font-size: 14px; word-break: break-all; color: var(--text-2); }
.uri-preview b { color: var(--text); font-weight: 600; }

/* ---------- campaign ---------- */
.status-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.status-head h2 { margin: 0; }
.status-head .muted { font-size: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 14px; }
.chip { padding: 7px 12px; border-radius: 999px; background: var(--fill); font-size: 14px; font-variant-numeric: tabular-nums; }
.chip b { font-weight: 700; margin-right: 4px; }
.drop {
  display: grid; place-items: center; gap: 6px; text-align: center; padding: 26px 16px; border-radius: 20px;
  border: 1.5px dashed var(--fill-2); background: var(--fill); cursor: pointer; transition: border-color .2s, background .2s, transform .3s var(--spring);
}
.drop:active { transform: scale(.98); }
.drop.over { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.drop svg { width: 34px; height: 34px; color: var(--accent); }
.drop b { font-size: 16px; }
.drop small { color: var(--text-2); }
.drop input { display: none; }
.inline-form { display: flex; gap: 10px; }
.inline-form input { flex: 1; min-width: 0; }
.inline-form .btn { flex: none; }

/* ---------- sheet ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; display: flex; align-items: flex-end; justify-content: center; }
.sheet-dim { position: absolute; inset: 0; background: rgba(0, 0, 0, .28); animation: fade .3s both; }
.sheet {
  position: relative; width: min(560px, 100%); max-height: 88vh; max-height: 88dvh; overflow: auto;
  padding: 10px 20px calc(var(--safe-b) + 22px); border-radius: 30px 30px 0 0;
  background: linear-gradient(160deg, var(--glass-top), var(--glass-bottom)), var(--bg);
  animation: sheetUp .5s var(--spring) both;
}
.sheet.closing { animation: sheetDown .25s var(--ease) both; }
.sheet-dim.closing { animation: fade .25s reverse both; }
.grabber { width: 38px; height: 5px; border-radius: 9px; background: var(--fill-2); margin: 0 auto 14px; }
.sheet h3 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.015em; }
.sheet .hint { margin: 0 0 16px; color: var(--text-2); font-size: 15px; }
.sheet .current { margin: -6px 0 14px; font-size: 14px; color: var(--text-2); }
.sheet .actions { display: flex; gap: 10px; margin-top: 18px; }
.sheet .actions .btn { flex: 1; }
.sheet input[type=range] { width: 100%; margin: 18px 0 2px; accent-color: var(--accent); height: 28px; }
.sheet .range-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); }
.pick { display: grid; gap: 8px; margin: 6px 0 4px; }
.pick button { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 16px; background: var(--fill); border: 1px solid transparent; text-align: left; transition: transform .25s var(--spring); }
.pick button:active { transform: scale(.98); }
.pick button.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.pick button small { color: var(--text-2); }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }

@media (min-width: 700px) {
  .sheet-wrap { align-items: center; }
  .sheet { border-radius: 30px; padding-bottom: 24px; animation-name: pop; }
  .sheet.closing { animation: popOut .2s var(--ease) both; }
  .grabber { display: none; }
  @keyframes pop { from { opacity: 0; transform: scale(.92) translateY(10px); } }
  @keyframes popOut { to { opacity: 0; transform: scale(.95); } }
  .tiles { grid-template-columns: repeat(4, 1fr); }
  .topbar h1 { font-size: 40px; }
}

/* ---------- toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 50%; top: calc(var(--safe-t) + 14px); transform: translateX(-50%);
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px; font-weight: 600; font-size: 15px;
  display: flex; align-items: center; gap: 8px; animation: toastIn .5s var(--spring) both;
}
.toast svg { width: 20px; height: 20px; stroke-width: 2.4; }
.toast.ok svg { color: var(--green); }
.toast.bad svg { color: var(--red); }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -30px) scale(.9); } }

@media (max-width: 380px) {
  .hero { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .hero-side { width: 100%; }
  .wizard .pair { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
