/* WSPRO — light daytime workspace.
   Layout concept: a bright paper-grey ground with flat white work surfaces;
   the only glass is the floating header, the only depth is on buttons. */
:root {
  color-scheme: light;
  /* Core neutrals (3) */
  --bg: #F2F3F0;
  --surface: #FFFFFF;
  --ink: #14161A;
  /* Neutral steps derived from ink */
  --ink-2: #4A5058;
  --ink-3: #737982;
  --line: #E1E3DE;
  --line-2: #CFD2CC;
  --inset: #F7F8F6;
  /* Single accent: cobalt */
  --accent: #2B5BDA;
  --accent-top: #5B84F0;
  --accent-deep: #1E45B6;
  --accent-base: #15338A;
  --accent-soft: #EAF0FD;
  /* Semantic (state only, not decoration) */
  --ok: #157A3D;
  --ok-soft: #E5F3E9;
  --bad: #BE3328;
  --bad-soft: #FBEAE7;
  --warn: #99580A;
  --warn-soft: #FCF0DC;
  --shadow-ink: rgba(20, 22, 26, 0.22);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist", "Segoe UI", system-ui, sans-serif;
  --font-mono: "SF Mono", "Geist Mono", ui-monospace, Menlo, Consolas, monospace;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --gutter: 16px;
  --maxw: 1180px;
}
@media (min-width: 720px) { :root { --gutter: 28px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.02em; color: var(--ink); }
p { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
img, svg, canvas { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 15px; height: 15px; }
.ico-lg { width: 22px; height: 22px; }

/* ---------- Liquid-glass header (the one glass surface) ---------- */
.glass {
  position: relative;
  background: rgba(255, 255, 255, 0.58);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(20, 22, 26, 0.04),
    0 1px 1px rgba(20, 22, 26, 0.04),
    0 10px 28px -14px rgba(20, 22, 26, 0.22);
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 46%),
    radial-gradient(120% 90% at 12% -30%, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0) 55%);
}
.glass > * { position: relative; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, 0.94); }
}

/* ---------- 3D tactile buttons ---------- */
.btn {
  --btn-h: 40px;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--btn-h);
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.1;
  white-space: nowrap;
  cursor: pointer;
  text-decoration: none !important;
  user-select: none;
  transform: translateY(0);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn::before { /* top light band */
  content: "";
  position: absolute;
  left: 1px; right: 1px; top: 1px;
  height: 48%;
  border-radius: 11px 11px 7px 7px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0.06) 100%);
}
.btn > * { position: relative; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, var(--accent-top) 0%, var(--accent) 52%, var(--accent-deep) 100%);
  text-shadow: 0 -1px 0 rgba(10, 25, 80, 0.35);
  box-shadow:
    0 0 0 1px rgba(16, 38, 110, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    0 3px 0 var(--accent-base),
    0 5px 10px -2px var(--shadow-ink);
}
.btn-secondary {
  color: var(--ink);
  background: linear-gradient(180deg, #FFFFFF 0%, #F6F7F5 55%, #ECEEEA 100%);
  box-shadow:
    0 0 0 1px rgba(20, 22, 26, 0.13),
    inset 0 1px 0 #fff,
    0 3px 0 #CDD0CA,
    0 5px 10px -3px rgba(20, 22, 26, 0.16);
}
.btn-secondary::before { background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0)); }
.btn-danger {
  color: #fff;
  background: linear-gradient(180deg, #DB5A4E 0%, var(--bad) 55%, #A22A20 100%);
  text-shadow: 0 -1px 0 rgba(80, 10, 5, 0.3);
  box-shadow:
    0 0 0 1px rgba(110, 22, 14, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 3px 0 #7E1F17,
    0 5px 10px -2px var(--shadow-ink);
}
@media (hover: hover) {
  .btn:hover { transform: translateY(1px); }
  .btn-primary:hover { box-shadow: 0 0 0 1px rgba(16, 38, 110, 0.55), inset 0 1px 0 rgba(255,255,255,.35), 0 2px 0 var(--accent-base), 0 3px 7px -2px var(--shadow-ink); }
  .btn-secondary:hover { box-shadow: 0 0 0 1px rgba(20,22,26,.13), inset 0 1px 0 #fff, 0 2px 0 #CDD0CA, 0 3px 7px -3px rgba(20,22,26,.16); }
  .btn-danger:hover { box-shadow: 0 0 0 1px rgba(110,22,14,.55), inset 0 1px 0 rgba(255,255,255,.3), 0 2px 0 #7E1F17, 0 3px 7px -2px var(--shadow-ink); }
}
.btn:active { transform: translateY(3px); transition-duration: 0.05s; }
.btn-primary:active { box-shadow: 0 0 0 1px rgba(16,38,110,.6), inset 0 1px 2px rgba(10,25,80,.35), 0 0 0 var(--accent-base), 0 1px 2px -1px var(--shadow-ink); filter: brightness(0.97); }
.btn-secondary:active { box-shadow: 0 0 0 1px rgba(20,22,26,.16), inset 0 1px 2px rgba(20,22,26,.12), 0 0 0 #CDD0CA, 0 1px 2px -1px rgba(20,22,26,.16); background: linear-gradient(180deg, #F1F2EF, #F6F7F5); }
.btn-danger:active { box-shadow: 0 0 0 1px rgba(110,22,14,.6), inset 0 1px 2px rgba(80,10,5,.35), 0 0 0 #7E1F17, 0 1px 2px -1px var(--shadow-ink); }
.btn[disabled], .btn.is-loading { cursor: not-allowed; filter: saturate(0.3); opacity: 0.6; transform: none !important; }
.btn.is-loading { opacity: 0.85; filter: none; }
.btn-sm { --btn-h: 32px; padding: 0 12px; font-size: 13.5px; border-radius: 10px; }
.btn-sm::before { border-radius: 9px 9px 6px 6px; }
.btn-lg { --btn-h: 50px; padding: 0 22px; font-size: 16px; border-radius: 14px; }
.btn-lg::before { border-radius: 13px 13px 8px 8px; }
.btn-block { width: 100%; }
.btn-icon { padding: 0; width: var(--btn-h); }
.spinner { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Flat text-style controls (not buttons in the visual sense) */
.link-btn { background: none; border: 0; padding: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: inherit; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.link-btn.danger { color: var(--bad); }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px;
  border: 0; border-radius: 11px;
  background: transparent; color: var(--ink);
  cursor: pointer; position: relative;
}
.icon-btn:hover { background: rgba(20, 22, 26, 0.06); }
.count-badge {
  position: absolute; top: 3px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--bad); color: #fff;
  font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px #fff;
}

/* ---------- Form controls ---------- */
.field { display: grid; gap: 6px; min-width: 0; }
.field > label, .field > div > label, .label { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--ink-3); }
.err { font-size: 12.5px; color: var(--bad); font-weight: 500; }
.input, .select, .textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 13px;
  border: 1px solid var(--line-2);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink);
  font-size: 15px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input::placeholder { color: #9A9FA6; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.input-group { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 11px; background: var(--surface); overflow: hidden; }
.input-group:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-group.invalid { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; background: var(--inset); color: var(--ink-2); font-weight: 600; font-size: 14px; border-right: 1px solid var(--line); }
.input-group .input { border: 0; box-shadow: none !important; border-radius: 0; min-width: 0; }
.input-group .trail { display: grid; place-items: center; padding: 0 8px; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23737982' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-2); cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); flex: none; }

/* iOS-style switch. On-state is ink by default; semantic variants for modes. */
.switch { position: relative; display: inline-flex; flex: none; width: 46px; height: 28px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { position: absolute; inset: 0; border-radius: 14px; background: #D9DBD6; transition: background 0.2s; box-shadow: inset 0 1px 2px rgba(20,22,26,.12); }
.switch .thumb { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 1px rgba(20,22,26,.12), 0 2px 6px rgba(20,22,26,.18); transition: transform 0.22s cubic-bezier(.3,.7,.3,1.2); }
.switch input:checked ~ .track { background: var(--ink); }
.switch.safe input:checked ~ .track { background: var(--ok); }
.switch.brutal input:checked ~ .track { background: var(--bad); }
.switch input:checked ~ .thumb { transform: translateX(18px); }
.switch input:focus-visible ~ .track { outline: 2px solid var(--accent); outline-offset: 2px; }
.switch input:disabled ~ .track { opacity: 0.45; }

input[type="range"] { width: 100%; accent-color: var(--ink); height: 22px; margin: 0; }
input[type="range"]:disabled { opacity: 0.35; }

.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: rgba(20, 22, 26, 0.06); }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,22,26,.1), 0 0 0 1px rgba(20,22,26,.06); }
.seg-sm button { padding: 4px 9px; font-size: 12.5px; }

/* ---------- Surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.card-pad { padding: 20px; }
@media (min-width: 720px) { .card-pad { padding: 24px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.card-title { font-size: 17px; font-weight: 650; letter-spacing: -0.015em; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; line-height: 1.4; white-space: nowrap;
  background: rgba(20, 22, 26, 0.06); color: var(--ink-2);
}
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.soon { background: transparent; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); font-size: 11.5px; padding: 1px 8px; }
.state-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.state-dot.live { animation: live 1.6s ease-in-out infinite; }
@keyframes live { 50% { opacity: 0.35; } }

.bar { position: relative; height: 6px; border-radius: 3px; background: #E8EAE5; overflow: hidden; }
.bar > span { position: absolute; inset: 0 auto 0 0; border-radius: 3px; background: var(--ink); transition: width 0.6s ease; }
.bar.ok > span { background: var(--ok); }
.bar.muted > span { background: #A7ABA4; }
.bar.open > span { background: repeating-linear-gradient(135deg, #C9CDD3 0 6px, #DDE0E4 6px 12px); background-size: 17px 17px; }
.bar.open.run > span { background-image: repeating-linear-gradient(135deg, var(--ink) 0 6px, #5B616A 6px 12px); animation: openRun 1.2s linear infinite; }
@keyframes openRun { to { background-position: 17px 0; } }

.empty { padding: 36px 20px; text-align: center; color: var(--ink-2); display: grid; gap: 8px; justify-items: center; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; z-index: 90; left: 50%; top: calc(12px + env(safe-area-inset-top, 0px)); transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
@media (min-width: 900px) { .toasts { left: auto; right: 24px; transform: none; top: auto; bottom: 24px; } }
.toast {
  pointer-events: auto;
  display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: var(--ink); color: #F4F5F2;
  box-shadow: 0 12px 30px -10px rgba(20,22,26,.45);
  font-size: 14px;
  animation: toastIn 0.28s cubic-bezier(.2,.8,.3,1.1);
}
.toast.out { animation: toastOut 0.2s ease forwards; }
.toast .t-title { font-weight: 650; }
.toast .t-body { color: #B9BDC3; font-size: 13px; margin-top: 1px; }
.toast .t-ico { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; margin-top: 1px; }
.toast.success .t-ico { background: #2E9B57; }
.toast.error .t-ico { background: #D9483C; }
.toast.info .t-ico { background: #4A5058; }
.toast .t-ico .ico { width: 13px; height: 13px; color: #fff; stroke-width: 2.6; }
.toast .t-close { background: none; border: 0; color: #9EA3AA; cursor: pointer; padding: 2px; border-radius: 6px; display: grid; }
.toast .t-close:hover { color: #fff; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
@media (min-width: 900px) { @keyframes toastIn { from { opacity: 0; transform: translateY(10px) scale(.98); } } }
@keyframes toastOut { to { opacity: 0; transform: translateY(6px); } }

/* ---------- Modals ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(20, 22, 26, 0.38); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.18s ease; }
@media (min-width: 640px) { .overlay { align-items: center; padding: 24px; } }
@keyframes fade { from { opacity: 0; } }
.modal {
  width: 100%; max-width: 520px; max-height: min(92dvh, 820px);
  display: flex; flex-direction: column;
  background: var(--surface);
  border-radius: 22px 22px 0 0;
  box-shadow: 0 24px 60px -20px rgba(20,22,26,.45);
  animation: sheetIn 0.26s cubic-bezier(.2,.8,.3,1);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.modal.wide { max-width: 640px; }
@media (min-width: 640px) { .modal { border-radius: 20px; } }
@keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } }
.modal-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 20px 0; }
.modal-head h2 { font-size: 19px; flex: 1; min-width: 0; }
.modal-head .sub { font-size: 14px; color: var(--ink-2); margin-top: 4px; letter-spacing: 0; font-family: var(--font); font-weight: 400; }
.modal-body { padding: 16px 20px; overflow-y: auto; display: grid; gap: 16px; min-height: 0; }
.modal-foot { display: flex; gap: 12px; justify-content: flex-end; padding: 12px 20px 20px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.modal-foot .btn { flex: 1 1 auto; }
@media (min-width: 640px) { .modal-foot .btn { flex: 0 0 auto; } }
.modal-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; background: rgba(20,22,26,.06); color: var(--ink); }
.modal-ico.bad { background: var(--bad-soft); color: var(--bad); }
.modal-ico.warn { background: var(--warn-soft); color: var(--warn); }

.summary-list { display: grid; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.summary-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; font-size: 14px; }
.summary-list > div + div { border-top: 1px solid var(--line); }
.summary-list dt, .summary-list .k { color: var(--ink-2); }
.summary-list .v { font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.summary-list .total { background: var(--inset); }
.summary-list .total .v { font-size: 16px; }
.note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 13.5px; background: var(--inset); color: var(--ink-2); }
.note.warn { background: var(--warn-soft); color: #6E4006; }
.note.bad { background: var(--bad-soft); color: #86231B; }
.note .ico { margin-top: 1px; }

/* ================= PUBLIC SITE ================= */
.site-nav-wrap { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 50; padding-inline: 10px; margin-top: 10px; }
.site-nav { max-width: 1140px; margin-inline: auto; border-radius: 18px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-display); font-weight: 750; font-size: 17px; letter-spacing: 0.01em; color: var(--ink); text-decoration: none !important; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); display: grid; place-items: center; flex: none; }
.brand-mark svg { width: 17px; height: 17px; }
.site-links { display: none; gap: 4px; margin-left: 12px; }
.site-links a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 7px 11px; border-radius: 9px; text-decoration: none; }
.site-links a:hover { color: var(--ink); background: rgba(20,22,26,.05); }
.site-nav .spacer { flex: 1; }
.site-nav .login-link { display: none; }
@media (min-width: 900px) { .site-links { display: flex; } }
@media (min-width: 560px) { .site-nav .login-link { display: inline-flex; } }

.lang-switch { display: inline-flex; padding: 2px; border-radius: 9px; background: rgba(20,22,26,.06); }
.lang-switch button { border: 0; background: transparent; font-size: 12.5px; font-weight: 650; color: var(--ink-3); padding: 4px 8px; border-radius: 7px; cursor: pointer; }
.lang-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(20,22,26,.12); }

.hero { padding-block: 56px 40px; display: grid; gap: 44px; align-items: center; }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); padding-block: 88px 64px; gap: 56px; } }
.hero h1 { font-size: clamp(36px, 5.6vw, 58px); line-height: 1.03; letter-spacing: -0.035em; font-weight: 700; max-width: 16ch; }
.hero .lede { margin-top: 20px; font-size: clamp(16.5px, 1.6vw, 19px); color: var(--ink-2); max-width: 46ch; line-height: 1.55; }
.hero-cta { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-meta { margin-top: 26px; font-size: 13.5px; color: var(--ink-3); display: flex; gap: 6px 18px; flex-wrap: wrap; }
.hero-meta span { display: inline-flex; gap: 6px; align-items: center; }

/* Hero product mock */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 30px 60px -36px rgba(20,22,26,.35); overflow: hidden; min-width: 0; }
.mock-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--inset); }
.mock-top .dots { display: flex; gap: 6px; }
.mock-top .dots i { width: 10px; height: 10px; border-radius: 50%; background: #DADCD7; }
.mock-top .addr { flex: 1; text-align: center; font-size: 12px; color: var(--ink-3); }
.mock-summary { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.mock-summary > div { background: var(--surface); padding: 14px 16px; min-width: 0; }
.mock-summary .k { font-size: 12px; color: var(--ink-3); }
.mock-summary .v { font-size: clamp(17px, 4.8vw, 22px); white-space: nowrap; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mock-summary .v small { font-size: 13px; color: var(--ink-3); font-weight: 500; }
.mock-row { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px; font-size: 13px; }
.mock-row + .mock-row { border-top: 1px solid var(--line); }
.mock-row .ph { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-row .st { font-size: 12px; display: flex; gap: 5px; align-items: center; margin-top: 2px; }
.mock-row .cnt { font-size: 12px; color: var(--ink-3); margin-top: 5px; font-variant-numeric: tabular-nums; }
.mock-row .earn { font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; }
@media (max-width: 420px) { .mock-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .mock-row .earn { display: none; } }

.figures { border-block: 1px solid var(--line); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .figures { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }
.figure { padding: 22px 18px 22px 0; min-width: 0; }
.figure + .figure { padding-left: 18px; border-left: 1px solid var(--line); }
@media (max-width: 899px) { .figure:nth-child(3) { padding-left: 0; border-left: 0; } .figure:nth-child(n+3) { border-top: 1px solid var(--line); } }
.figure .v { font-size: clamp(22px, 3vw, 30px); font-weight: 700; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.figure .k { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }

.section { padding-block: 72px; }
@media (min-width: 900px) { .section { padding-block: 104px; } }
.section-head { display: grid; gap: 14px; max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.03em; }
.section-head p { font-size: 17px; color: var(--ink-2); }
.kicker { font-size: 14px; font-weight: 600; color: var(--ink-3); }

.feature-grid { display: grid; gap: 16px; }
@media (min-width: 900px) { .feature-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); } .fg-wide { grid-column: span 12; } .fg-7 { grid-column: span 7; } .fg-5 { grid-column: span 5; } }
.feature { padding: 26px; display: grid; gap: 18px; align-content: start; }
.feature h3 { font-size: 21px; letter-spacing: -0.02em; }
.feature p { color: var(--ink-2); max-width: 52ch; }
.fg-wide.feature { gap: 28px; }
@media (min-width: 900px) { .fg-wide.feature { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; padding: 36px; } }
.link-demo { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; padding: 20px; background: var(--inset); border-radius: 14px; }
@media (max-width: 480px) { .link-demo { grid-template-columns: 1fr; justify-items: start; } }
.link-demo canvas { width: 132px; height: 132px; border-radius: 8px; background: #fff; border: 1px solid var(--line); }
.code-boxes { display: flex; gap: 5px; flex-wrap: wrap; align-items: center; }
.code-boxes span { width: 30px; height: 38px; display: grid; place-items: center; border-radius: 8px; background: var(--surface); border: 1px solid var(--line-2); font-family: var(--font-mono); font-size: 17px; font-weight: 600; }
.code-boxes em { font-style: normal; color: var(--ink-3); padding-inline: 2px; }
.code-boxes.big span { width: 38px; height: 48px; font-size: 22px; }
@media (max-width: 400px) { .code-boxes.big span { width: 32px; height: 44px; font-size: 19px; } }
.pace-demo { display: grid; gap: 12px; padding: 18px; background: var(--inset); border-radius: 14px; }
.pace-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; font-size: 13.5px; }
.pace-line .bar { grid-column: 1 / -1; }
.feature-list { display: grid; gap: 0; }
.feature-list > div { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.feature-list > div:first-child { border-top: 0; padding-top: 0; }
.feature-list .fi { width: 36px; height: 36px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); display: grid; place-items: center; }
.feature-list h4 { font-size: 15.5px; letter-spacing: -0.01em; }
.feature-list p { font-size: 14px; color: var(--ink-2); margin-top: 2px; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; min-width: 560px; font-size: 14.5px; }
.compare th, .compare td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { font-size: 13px; color: var(--ink-3); font-weight: 600; background: var(--inset); }
.compare tbody th { font-weight: 600; color: var(--ink-2); width: 26%; }
.compare .col-title { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 15px; }

.steps { display: grid; gap: 0; counter-reset: step; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }
.step { position: relative; padding: 0 0 28px 52px; min-width: 0; }
.step::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; z-index: 1; }
.step::after { content: ""; position: absolute; left: 16.5px; top: 34px; bottom: 0; width: 1px; background: var(--line-2); }
.step:last-child::after { display: none; }
@media (min-width: 900px) {
  .step { padding: 52px 0 0; }
  .step::after { left: 34px; right: -24px; top: 17px; bottom: auto; width: auto; height: 1px; }
}
.step h3 { font-size: 17px; letter-spacing: -0.01em; }
.step p { font-size: 14.5px; color: var(--ink-2); margin-top: 6px; }

.calc { display: grid; gap: 0; overflow: hidden; }
@media (min-width: 900px) { .calc { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.calc-in { padding: 28px; display: grid; gap: 26px; }
.calc-out { padding: 28px; background: var(--inset); border-top: 1px solid var(--line); display: grid; gap: 18px; align-content: start; }
@media (min-width: 900px) { .calc-out { border-top: 0; border-left: 1px solid var(--line); } }
.range-row { display: grid; gap: 8px; }
.range-row .top { display: flex; justify-content: space-between; gap: 12px; font-size: 14.5px; }
.range-row .top b { font-variant-numeric: tabular-nums; }
.calc-big { font-size: clamp(34px, 5vw, 46px); font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1; }

.payout-names { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.payout-names span { padding: 7px 13px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font-weight: 650; font-size: 14px; color: var(--ink-2); }

.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform 0.2s; color: var(--ink-3); margin-top: 2px; }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .ans { padding: 0 0 20px; color: var(--ink-2); max-width: 68ch; }

.cta-band { display: grid; gap: 24px; padding: 36px 28px; border-radius: 22px; background: var(--ink); color: #F2F3F0; }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -0.03em; }
.cta-band p { color: #B6BAC0; margin-top: 10px; max-width: 52ch; }
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 48px; } }

.footer { padding-block: 44px 36px; display: grid; gap: 28px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 900px) { .footer { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }
.footer h4 { font-size: 13.5px; color: var(--ink); margin-bottom: 10px; font-family: var(--font); letter-spacing: 0; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--ink-2); }
.footer-bottom { border-top: 1px solid var(--line); padding-block: 18px 28px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; color: var(--ink-3); }

/* ================= AUTH ================= */
.auth { min-height: 100dvh; display: grid; grid-template-rows: auto 1fr; }
.auth-main { display: grid; gap: 28px; padding-block: 36px 56px; align-items: start; }
@media (min-width: 980px) { .auth-main { grid-template-columns: minmax(0, 460px) minmax(0, 1fr); gap: 72px; padding-block: 64px; align-items: center; } }
.auth-form { display: grid; gap: 18px; }
.auth-form h1 { font-size: clamp(28px, 4vw, 36px); letter-spacing: -0.03em; }
.auth-form .lede { color: var(--ink-2); margin-top: 8px; }
.auth-aside { padding: 28px; display: grid; gap: 20px; }
.auth-aside h2 { font-size: 20px; }
.row-2 { display: grid; gap: 14px; }
@media (min-width: 520px) { .row-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pw-meter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.pw-meter i { height: 4px; border-radius: 2px; background: #E4E6E1; }
.pw-meter[data-s="1"] i:nth-child(-n+1) { background: var(--bad); }
.pw-meter[data-s="2"] i:nth-child(-n+2) { background: var(--warn); }
.pw-meter[data-s="3"] i:nth-child(-n+3) { background: var(--ok); }
.pw-meter[data-s="4"] i { background: var(--ok); }
.needs { display: grid; gap: 14px; }
.needs > div { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 14.5px; }
.needs .tick { width: 30px; height: 30px; border-radius: 50%; background: var(--inset); border: 1px solid var(--line); display: grid; place-items: center; }
.needs b { display: block; }
.needs span { color: var(--ink-2); }
.or { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Onboarding */
.onb { max-width: 760px; margin-inline: auto; padding-block: 40px 64px; display: grid; gap: 28px; }
.onb-steps { display: grid; gap: 12px; }
.onb-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 20px; }
.onb-step .n { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.onb-step.done .n { background: var(--ok); border-color: var(--ok); color: #fff; }
.onb-step.current { border-color: var(--ink); }
.onb-step h3 { font-size: 17px; }
.onb-step .body { display: grid; gap: 14px; }
.mode-pick { display: grid; gap: 10px; }
@media (min-width: 620px) { .mode-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pick { position: relative; display: grid; gap: 4px; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; background: var(--surface); }
.pick input { position: absolute; opacity: 0; }
.pick b { font-size: 14.5px; }
.pick span { font-size: 13px; color: var(--ink-2); }
.pick:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pick:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ================= APP SHELL ================= */
.app { display: grid; min-height: 100dvh; }
@media (min-width: 1024px) { .app { grid-template-columns: 248px minmax(0, 1fr); } }
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 70; width: min(290px, 86vw);
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 6px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) 14px calc(16px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-102%); transition: transform 0.25s cubic-bezier(.2,.8,.3,1);
}
.sidebar.open { transform: none; box-shadow: 20px 0 50px -20px rgba(20,22,26,.35); }
@media (min-width: 1024px) {
  .sidebar { position: sticky; top: 0; height: 100dvh; width: auto; transform: none; transition: none; }
}
.side-scrim { position: fixed; inset: 0; z-index: 65; background: rgba(20,22,26,.32); animation: fade .2s; }
@media (min-width: 1024px) { .side-scrim { display: none; } .menu-btn { display: none !important; } }
.sidebar .brand { padding: 4px 8px 18px; }
.nav { display: grid; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--ink-2); font-weight: 550; font-size: 14.5px; text-decoration: none;
}
.nav a:hover { background: rgba(20,22,26,.045); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-deep); font-weight: 650; }
.nav a .chip { margin-left: auto; font-size: 11.5px; padding: 1px 7px; flex: none; }
.nav a > span:not(.chip) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-label { font-size: 12px; color: var(--ink-3); font-weight: 600; padding: 16px 12px 6px; }
.side-foot { margin-top: auto; display: grid; gap: 10px; }
.side-balance { padding: 14px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); display: grid; gap: 2px; }
.side-balance .k { font-size: 12.5px; color: var(--ink-3); }
.side-balance .v { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.side-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #E3E6EE; color: var(--ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.side-user .who { min-width: 0; flex: 1; line-height: 1.3; }
.side-user .who b { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-user .who span { font-size: 12.5px; color: var(--ink-3); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar-wrap { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 8px); z-index: 40; padding-inline: 10px; margin-top: 8px; }
@media (min-width: 720px) { .topbar-wrap { padding-inline: 18px; } }
.topbar { border-radius: 16px; display: flex; align-items: center; gap: 8px; padding: 7px 8px 7px 10px; }
.topbar h1 { font-size: 17px; letter-spacing: -0.015em; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .avatar { width: 32px; height: 32px; }
.topbar .lang-switch { display: none; }
@media (min-width: 480px) { .topbar .lang-switch { display: inline-flex; } }
.page { padding-block: 22px 64px; display: grid; gap: 20px; align-content: start; width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }
.page-intro { display: flex; justify-content: space-between; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.page-intro h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; }
.page-intro p { color: var(--ink-2); margin-top: 4px; }

/* ---------- Devices ---------- */
.ops { display: grid; gap: 0; overflow: hidden; }
@media (min-width: 1100px) { .ops { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr); } }
@media (min-width: 720px) and (max-width: 1099px) { .ops { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ops .ops-actions { grid-column: 1 / -1; } }
.ops > section { padding: 20px; min-width: 0; display: grid; gap: 8px; align-content: start; }
.ops > section + section { border-top: 1px solid var(--line); }
@media (min-width: 720px) {
  .ops > section + section { border-top: 0; border-left: 1px solid var(--line); }
  .ops .ops-actions { border-top: 1px solid var(--line) !important; border-left: 0 !important; }
}
@media (min-width: 1100px) { .ops .ops-actions { border-top: 0 !important; border-left: 1px solid var(--line) !important; } }
.ops .k { font-size: 13.5px; color: var(--ink-2); font-weight: 550; }
.ops .big { font-size: clamp(28px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ops .sub { font-size: 13.5px; color: var(--ink-2); display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ops .delta { color: var(--ok); font-weight: 600; font-variant-numeric: tabular-nums; }
.readiness { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin-top: 6px; }
.readiness i { display: block; height: 100%; min-width: 4px; }
.readiness .r-sending { background: var(--ink); }
.readiness .r-ready { background: #8E949B; }
.readiness .r-done { background: var(--ok); }
.readiness .r-offline { background: repeating-linear-gradient(135deg, #E9A79F 0 3px, var(--bad-soft) 3px 6px); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; font-variant-numeric: tabular-nums; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: block; }
.legend .r-offline { background: repeating-linear-gradient(135deg, #E9A79F 0 3px, var(--bad-soft) 3px 6px); }
.ops-actions { display: grid !important; gap: 12px !important; align-content: center !important; }
.ops-actions .btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ops-actions .btn-primary { grid-column: 1 / -1; }
.ops-actions .gp-open { grid-column: 1 / -1; }
@media (min-width: 1180px) { .ops-actions .gp-open { display: none; } }
.gp-sheet { display: grid; gap: 18px; }
.job-line { font-size: 13px; color: var(--ink-2); display: grid; gap: 2px; }

.dev-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1180px) { .dev-layout { grid-template-columns: minmax(0, 1fr) 320px; } .global-panel { position: sticky; top: 84px; } }
.dev-toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.dev-toolbar .seg { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.search { position: relative; flex: 1 1 200px; max-width: 280px; min-width: 0; }
.search .ico { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.search .input { min-height: 36px; padding: 6px 12px 6px 34px; font-size: 14px; border-radius: 10px; }
@media (max-width: 560px) { .search { max-width: none; flex-basis: 100%; } }

.dev-head { display: none; }
.dev-card { container-type: inline-size; overflow: hidden; }
.dev { border-bottom: 1px solid var(--line); }
.dev:last-child { border-bottom: 0; }
.dev-row { display: grid; gap: 14px 16px; padding: 16px; align-items: center; grid-template-columns: minmax(0, 1fr) auto; }
.dev-id { min-width: 0; display: grid; gap: 3px; }
.dev-id .ph { font-weight: 650; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dev-id .meta { display: flex; gap: 4px 8px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--ink-3); min-width: 0; }
.dev-id .meta .sec { min-width: 0; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dev-status { font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.st-sending { color: var(--ink); }
.st-ready { color: var(--ink-2); }
.st-offline { color: var(--bad); }
.st-done { color: var(--ok); }
.dev-prog { display: grid; gap: 6px; min-width: 0; }
.dev-prog .t { display: flex; justify-content: space-between; gap: 8px; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.dev-prog .t span { white-space: nowrap; }
.dev-stat { font-variant-numeric: tabular-nums; font-size: 14.5px; font-weight: 600; }
.dev-stat .lbl { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.dev-stat.fail { color: var(--bad); }
.dev-acts { display: flex; gap: 8px; justify-content: flex-end; align-items: center; }
.dev-acts .icon-btn[aria-expanded="true"] { background: rgba(20,22,26,.07); }
@container (max-width: 759px) {
  .dev-row { grid-template-areas: "id acts" "prog prog" "stats stats"; }
  .dev-id { grid-area: id; }
  .dev-acts { grid-area: acts; }
  .dev-prog { grid-area: prog; }
  .dev-stats-m { grid-area: stats; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .dev-stats-m .dev-stat { padding: 8px 10px; border-radius: 10px; background: var(--inset); }
}
@container (min-width: 760px) {
  .dev-head, .dev-row { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) 70px 54px 98px 158px; }
  .dev-head { display: grid; gap: 16px; padding: 10px 16px; font-size: 12.5px; color: var(--ink-3); font-weight: 600; border-bottom: 1px solid var(--line); background: var(--inset); }
  .dev-head .r { text-align: right; }
  .dev-stats-m { display: contents; }
  .dev-stat { text-align: right; }
  .dev-stat .lbl { display: none; }
}
.dev-acts .btn-sm { min-width: 0; }
@container (max-width: 360px) { .dev-acts .btn-sm { padding: 0 10px; } .dev-acts .btn-sm .btn-label { display: none; } }

.dev-settings { padding: 4px 16px 18px; display: grid; gap: 16px; background: var(--inset); border-top: 1px solid var(--line); padding-top: 16px; }
@container (min-width: 560px) {
  .dev-settings { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 18px 28px; }
  .dev-settings .ctl.modes { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px !important; padding-top: 14px; border-top: 1px solid var(--line); }
}
.ctl { display: grid; gap: 8px; min-width: 0; }
.ctl .top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; font-weight: 600; }
.ctl .top output { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ctl .input { min-height: 38px; padding: 7px 11px; font-size: 14px; }
.mode-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; }
.mode-row b { font-size: 14px; }
.mode-row span { font-size: 12.5px; color: var(--ink-3); grid-column: 1; }
.mode-row .switch { grid-row: 1 / span 2; grid-column: 2; }
.dev-settings-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; grid-column: 1 / -1; font-size: 13px; }

.global-panel { display: grid; gap: 0; }
.global-panel > .gp-sec { padding: 18px 20px; display: grid; gap: 14px; }
.global-panel > .gp-sec + .gp-sec { border-top: 1px solid var(--line); }
.global-panel summary { list-style: none; cursor: pointer; }
.global-panel summary::-webkit-details-marker { display: none; }
.gp-toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; }
.gp-toggle .ico { transition: transform .2s; color: var(--ink-3); }
details[open] > summary.gp-toggle .ico { transform: rotate(180deg); }
details.gp-details > summary.gp-toggle { border-bottom: 1px solid transparent; }
details.gp-details[open] > summary.gp-toggle { border-bottom-color: var(--line); }

/* Add device */
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.tabs-line button { border: 0; background: none; padding: 10px 4px; margin-right: 18px; font-weight: 600; font-size: 14.5px; color: var(--ink-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tabs-line button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.qr-stage { display: grid; gap: 18px; align-items: center; }
@media (min-width: 560px) { .qr-stage { grid-template-columns: 200px minmax(0, 1fr); } }
.qr-box { position: relative; width: 200px; max-width: 100%; aspect-ratio: 1; border-radius: 14px; border: 1px solid var(--line); background: #fff; padding: 12px; justify-self: center; }
.qr-box canvas { width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.qr-expired { position: absolute; inset: 0; border-radius: 14px; background: rgba(255,255,255,.93); display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 12px; font-size: 14px; font-weight: 600; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.howto b { color: var(--ink); font-weight: 600; }
.timer { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.timer b { color: var(--ink); }
.timer.low b { color: var(--bad); }
.timer-bar { height: 4px; border-radius: 2px; background: #E8EAE5; overflow: hidden; }
.timer-bar span { display: block; height: 100%; background: var(--ink); transition: width 1s linear; }
.timer.low + .timer-bar span, .timer-bar.low span { background: var(--bad); }
.pair-code-wrap { display: grid; gap: 14px; justify-items: start; padding: 18px; border-radius: 14px; background: var(--inset); }

.review-devices { display: grid; border: 1px solid var(--line); border-radius: 12px; max-height: 210px; overflow-y: auto; }
.review-devices > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 9px 14px; font-size: 13.5px; align-items: center; }
.review-devices > div + div { border-top: 1px solid var(--line); }
.review-devices .ph { font-weight: 600; font-variant-numeric: tabular-nums; }
.review-devices .r { color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; }

/* ---------- Withdraw ---------- */
.wd-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1080px) { .wd-layout { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.bal-line { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; align-items: flex-end; }
.bal-line .big { font-size: clamp(30px, 4vw, 40px); font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.05; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.quick button { border: 1px solid var(--line-2); background: var(--surface); border-radius: 9px; padding: 5px 11px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.quick button:hover { border-color: var(--ink-3); color: var(--ink); }
.methods { display: grid; gap: 8px; }
.method { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
label.method { cursor: pointer; }
label.method:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
label.method input { position: absolute; opacity: 0; pointer-events: none; }
label.method:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.method .logo { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: 11px; letter-spacing: 0.02em; background: var(--inset); border: 1px solid var(--line); color: var(--ink-2); }
.method .nm { font-weight: 600; font-size: 14.5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.method .ac { font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.method .radio { width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line-2); display: grid; place-items: center; }
label.method:has(input:checked) .radio { border-color: var(--ink); }
label.method:has(input:checked) .radio::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
.method-acts { display: flex; gap: 12px; font-size: 13px; }

.table-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12.5px; color: var(--ink-3); font-weight: 600; padding: 10px 16px; background: var(--inset); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 720px) { .tbl .st { text-align: left; } }
.tbl .sub { font-size: 12.5px; color: var(--ink-3); }
.m-only { display: none !important; }
@media (max-width: 719px) { .m-only { display: inline !important; } }
section[id] { scroll-margin-top: 90px; }
@media (max-width: 719px) {
  .tbl.stack thead { display: none; }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; width: 100%; }
  .tbl.stack tr { padding: 12px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  .tbl.stack tr:last-child { border-bottom: 0; }
  .tbl.stack td { padding: 0; border: 0; }
  .tbl.stack td.r { text-align: right; }
  .tbl.stack td.hide-m { display: none; }
}

/* ---------- Referral ---------- */
.ref-top { display: grid; gap: 20px; }
@media (min-width: 980px) { .ref-top { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); } }
.code-display { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.code-display .code { font-family: var(--font-mono); font-size: clamp(24px, 3.6vw, 32px); font-weight: 600; letter-spacing: 0.06em; }
.copy-line { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 11px; padding: 4px 4px 4px 12px; background: var(--inset); min-width: 0; }
.copy-line input { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 14px; color: var(--ink-2); outline: none; }
.ref-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border-radius: 12px; overflow: hidden; border: 1px solid var(--line); }
.ref-stats > div { background: var(--surface); padding: 14px 16px; min-width: 0; }
.ref-stats .k { font-size: 12.5px; color: var(--ink-3); }
.ref-stats .v { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ref-stats .main-stat { grid-column: 1 / -1; }
.ref-stats .main-stat .v { font-size: 30px; }
.rules { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--ink-2); font-size: 14px; }

/* ---------- Settings ---------- */
.set-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 900px) { .set-layout { grid-template-columns: 210px minmax(0, 1fr); } }
.set-nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
@media (min-width: 900px) { .set-nav { flex-direction: column; position: sticky; top: 84px; } }
.set-nav button { display: flex; gap: 10px; align-items: center; border: 0; background: transparent; padding: 9px 12px; border-radius: 10px; font-weight: 550; font-size: 14.5px; color: var(--ink-2); cursor: pointer; white-space: nowrap; text-align: left; }
.set-nav button:hover { background: rgba(20,22,26,.045); color: var(--ink); }
.set-nav button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 0 0 1px var(--line); font-weight: 650; }
.set-sec { display: grid; gap: 18px; }
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.set-row:first-child { border-top: 0; }
.set-row b { font-size: 14.5px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.set-row span.d { display: block; font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.session { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.session:first-child { border-top: 0; }
.session .dev-ico { width: 38px; height: 38px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); }
.session b { font-size: 14.5px; }
.session span { display: block; font-size: 13px; color: var(--ink-3); }
.lang-cards { display: grid; gap: 10px; }
@media (min-width: 560px) { .lang-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.danger-zone { border-color: #EFC9C4; }

/* ---------- Help ---------- */
.help-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 1000px) { .help-layout { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.contact-line { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-line:first-child { border-top: 0; padding-top: 0; }
.contact-line .fi { width: 36px; height: 36px; border-radius: 10px; background: var(--inset); border: 1px solid var(--line); display: grid; place-items: center; }
.contact-line b { font-size: 14.5px; }
.contact-line span { display: block; font-size: 13.5px; color: var(--ink-2); user-select: all; overflow-wrap: anywhere; }

/* ---------- Notifications drawer ---------- */
.drawer { position: fixed; z-index: 85; top: 0; right: 0; bottom: 0; width: min(400px, 100vw); background: var(--surface); border-left: 1px solid var(--line); display: flex; flex-direction: column; animation: drawerIn .25s cubic-bezier(.2,.8,.3,1); padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); box-shadow: -20px 0 50px -24px rgba(20,22,26,.35); }
@keyframes drawerIn { from { transform: translateX(30px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 16px 16px 12px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 18px; flex: 1; }
.drawer-body { overflow-y: auto; flex: 1; }
.notif { display: grid; grid-template-columns: 34px minmax(0, 1fr) 10px; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.notif .ni { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--inset); border: 1px solid var(--line); color: var(--ink-2); }
.notif .ni.bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.notif .ni.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.notif b { font-size: 14px; font-weight: 600; display: block; }
.notif p { font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.notif time { font-size: 12px; color: var(--ink-3); display: block; margin-top: 4px; }
.notif .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-top: 6px; }

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

/* ================= BERANDA / OVERVIEW ================= */
:root { --viz-main: var(--accent); --viz-muted: #C7CCD6; --viz-bar: #8791A3; --viz-grid: #ECEDEA; }
.ov-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.ov-intro h2 { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; }
.ov-intro p { margin-top: 4px; }
.ov-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.ov-grid { display: grid; gap: 20px; }
.ov-grid > .card { padding: 20px; min-width: 0; display: grid; gap: 14px; align-content: start; }
@media (min-width: 720px) { .ov-grid > .card { padding: 24px; } }
@media (min-width: 1100px) {
  .ov-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .ov-earn { grid-column: span 8; } .ov-today { grid-column: span 4; }
  .ov-hours { grid-column: span 7; } .ov-topc { grid-column: span 5; }
  .ov-goalc { grid-column: span 5; } .ov-feedc { grid-column: span 7; }
}
.ov-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.ov-k { font-size: 14px; font-weight: 650; color: var(--ink); }
.ov-hero { font-size: clamp(32px, 4.4vw, 46px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.05; margin-top: 6px; font-variant-numeric: normal; }
.ov-sub { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-3); margin-top: 6px; min-height: 22px; }
.delta-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 650; background: rgba(20,22,26,.06); color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }
.delta-chip.ok { background: var(--ok-soft); color: var(--ok); }
.delta-chip.bad { background: var(--bad-soft); color: var(--bad); }

.viz-box { position: relative; width: 100%; min-height: 220px; }
@media (max-width: 719px) { .viz-box svg { height: auto; } }
.viz { display: block; max-width: 100%; height: auto; overflow: visible; }
.viz-grid { stroke: var(--viz-grid); stroke-width: 1; }
.viz-base { stroke: var(--line-2); stroke-width: 1; }
.viz-tick { fill: var(--ink-3); font-size: 11.5px; font-family: var(--font); font-variant-numeric: tabular-nums; }
.viz-end { fill: var(--ink); font-size: 12.5px; font-weight: 650; font-family: var(--font); font-variant-numeric: tabular-nums; }
.viz-line { fill: none; stroke: var(--viz-main); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.viz-area { fill: var(--viz-main); opacity: 0.1; }
.viz-dot { fill: var(--viz-main); stroke: var(--surface); stroke-width: 2; }
.viz-cross { stroke: var(--line-2); stroke-width: 1; }
.viz-bar { fill: var(--viz-muted); transition: fill .15s; }
.viz-col.hi .viz-bar { fill: var(--viz-main); }
.viz-col.hover .viz-bar { fill: var(--viz-bar); }
.viz-col.hi.hover .viz-bar { fill: var(--accent-deep); }
.viz-tip { position: absolute; z-index: 5; pointer-events: none; display: grid; gap: 1px; padding: 8px 11px; border-radius: 10px; background: var(--ink); color: #F2F3F0; font-size: 12.5px; white-space: nowrap; box-shadow: 0 8px 20px -8px rgba(20,22,26,.4); }
.viz-tip span { color: #B6BAC0; }
.viz-tip b { font-size: 14px; font-variant-numeric: tabular-nums; }
.viz-tip .fail { color: #F0A59C; }
.spark { display: block; }
.spark-line { fill: none; stroke: var(--viz-bar); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.ov-table summary { cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--accent); width: fit-content; }
.ov-table .table-wrap { margin-top: 10px; max-height: 260px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; }

.ov-trow { display: grid; grid-template-columns: minmax(0, 1fr) auto 96px; grid-template-areas: "k c s" "v v s"; gap: 0 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.ov-trow:first-child { border-top: 0; padding-top: 4px; }
.ov-trow .k { grid-area: k; font-size: 13px; color: var(--ink-2); }
.ov-trow .v { grid-area: v; font-size: 21px; font-weight: 700; letter-spacing: -0.02em; }
.ov-trow .v small { font-size: 14px; color: var(--ink-3); font-weight: 550; }
.ov-trow .c { grid-area: c; justify-self: end; }
.ov-trow > svg, .ov-trow > span:last-child { grid-area: s; justify-self: end; }

.ov-top { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ov-top li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.ov-top .rk { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--inset); border: 1px solid var(--line); color: var(--ink-2); }
.ov-top li:first-child .rk { background: var(--ink); color: #fff; border-color: var(--ink); }
.ov-top .nm { min-width: 0; display: grid; gap: 3px; }
.ov-top .nm b { font-size: 14px; }
.ov-top .nm > span { font-size: 12px; color: var(--ink-3); }
.hbar { height: 6px; border-radius: 3px; background: #EEF0EC; overflow: hidden; margin-top: 3px; }
.hbar span { display: block; height: 100%; border-radius: 0 3px 3px 0; background: var(--viz-bar); transition: width .6s ease; }
.ov-top li:first-child .hbar span { background: var(--viz-main); }
.ov-top .val { font-weight: 650; font-size: 14px; }

.ov-goal { display: grid; gap: 12px; }
.ov-goal-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.ov-goal .k { font-size: 14px; font-weight: 650; }
.ov-goal .v { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; margin-top: 4px; }
.ov-goal .v small { white-space: nowrap; font-size: 13.5px; color: var(--ink-3); font-weight: 550; }
.ov-pct { font-size: 15px; font-weight: 700; color: var(--accent-deep); }
.meter { position: relative; height: 12px; border-radius: 6px; background: var(--accent-soft); }
.meter > span { position: absolute; inset: 0 auto 0 0; border-radius: 6px; background: var(--accent); transition: width .8s cubic-bezier(.3,.7,.3,1); }
.meter > i { position: absolute; top: -4px; bottom: -4px; width: 2px; border-radius: 1px; background: var(--ink); margin-left: -1px; }
.ov-att, .ov-feed { list-style: none; margin: 0; padding: 0; display: grid; }
.ov-att li, .ov-feed li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ov-att li:first-child, .ov-feed li:first-child { border-top: 0; padding-top: 0; }
.ov-att a { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.ov-att .ni, .ov-feed .ni { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--inset); border: 1px solid var(--line); color: var(--ink-2); }
.ov-att .ni.bad, .ov-feed .ni.bad { color: var(--bad); background: var(--bad-soft); border-color: transparent; }
.ov-att .ni.ok, .ov-feed .ni.ok { color: var(--ok); background: var(--ok-soft); border-color: transparent; }
.ov-feed li { grid-template-columns: 30px minmax(0, 1fr); }
.ov-feed b { font-weight: 600; display: block; overflow-wrap: anywhere; }
.ov-feed time { font-size: 12.5px; color: var(--ink-3); }

/* ---------- Announcements ---------- */
.ann-list { display: grid; gap: 10px; }
.ann { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 12px 12px 14px; border-radius: 14px; background: var(--accent-soft); color: #1B3372; }
.ann.warn { background: var(--warn-soft); color: #5E3805; }
.ann-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.7); }
.ann-tx { display: grid; gap: 2px; font-size: 13.5px; min-width: 0; padding-top: 1px; }
.ann-tx b { font-size: 14px; }
.ann .icon-btn { width: 32px; height: 32px; color: inherit; }

/* ---------- Devices: schedule, waiting status ---------- */
.st-waiting { color: var(--warn); }
.sched-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 8px; align-items: center; }
.sched-row .select { min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
.sched-row > span { color: var(--ink-3); }

/* ---------- Delivery report ---------- */
.rp-tools { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; min-width: 0; max-width: 100%; }
.rp-sel { width: auto; max-width: 100%; min-width: 0; min-height: 38px; padding-top: 6px; padding-bottom: 6px; font-size: 14px; }
@media (max-width: 719px) { .rp-tools, .rp-tools .seg, .rp-sel { width: 100%; } .rp-tools .seg button { flex: 1; } }
.rp-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rp-kpis > div { padding: 16px 18px; display: grid; gap: 2px; border-left: 1px solid var(--line); min-width: 0; }
.rp-kpis > div:first-child { border-left: 0; }
.rp-kpis .k { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.rp-kpis .v { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.rp-kpis .s { font-size: 12.5px; color: var(--ink-3); }
@media (max-width: 719px) {
  .rp-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-kpis > div:nth-child(3) { border-left: 0; }
  .rp-kpis > div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .rp-kpis .v { font-size: 20px; }
}
.bad-t { color: var(--bad); }
.rp-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .rp-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.rs { display: grid; gap: 14px; }
.rs-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
.rs-top b { font-weight: 600; min-width: 0; }
.rs-row .hint { margin-top: 4px; }
.rp-tbl td.adv { font-size: 13px; color: var(--ink-2); }
.rp-tbl td.adv > span { display: block; }
.rp-tbl td.adv .btn { margin-top: 6px; }
@media (max-width: 719px) { .rp-tbl.stack td.adv { grid-column: 1 / -1; } }

/* ---------- Support tickets ---------- */
.tk2 { display: grid; grid-template-columns: 320px minmax(0, 1fr); min-height: 520px; overflow: hidden; }
@media (max-width: 899px) { .tk2 { grid-template-columns: 1fr; } .tk2 .tk-list { border-right: 0 !important; border-bottom: 1px solid var(--line); max-height: 260px; overflow-y: auto; } }
.tk-list { border-right: 1px solid var(--line); min-width: 0; }
.tk-item { display: grid; gap: 6px; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 13px 16px; cursor: pointer; font: inherit; color: inherit; }
.tk-item:hover { background: var(--inset); }
.tk-item[aria-selected="true"] { background: var(--accent-soft); }
.tk-item .row1 { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; font-size: 14px; }
.tk-item .row1 b { font-weight: 600; min-width: 0; }
.tk-item .row2 { display: flex; justify-content: space-between; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); flex-wrap: wrap; }
.tk-item .unread, .notif .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 6px; }
.tk-detail { display: flex; flex-direction: column; min-width: 0; }
.tk-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.tk-head h3 { font-size: 17px; margin-bottom: 4px; }
.tk-head .meta { font-size: 13px; color: var(--ink-3); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tk-msgs { flex: 1; padding: 18px; display: grid; gap: 12px; align-content: start; background: var(--inset); }
.tk-msg { max-width: 560px; padding: 10px 13px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.tk-msg.user { justify-self: end; background: var(--accent-soft); border-color: transparent; }
.tk-msg .who { font-size: 12.5px; font-weight: 600; margin-bottom: 3px; }
.tk-msg .txt { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.tk-msg time { display: block; font-size: 11.5px; color: var(--ink-3); margin-top: 4px; }
.tk-wait { display: flex; gap: 6px; align-items: center; justify-self: end; }
.tk-reply { padding: 12px 18px 16px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.tk-reply .acts { display: flex; justify-content: flex-end; }

/* ---------- Balance history ---------- */
.hist-tabs { padding: 0 16px; }
.hist-tabs button { padding-top: 16px; }
.lg-tbl .pos { color: var(--ok); font-weight: 650; }
.lg-tbl .neg { color: var(--ink); font-weight: 650; }
.nw { white-space: nowrap; }

/* ---------- 2FA codes ---------- */
.otp { font-size: 20px; letter-spacing: 0.2em; max-width: 220px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 14px; border-radius: 12px; background: var(--inset); border: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.codes span { text-align: center; padding: 4px 0; }

/* ---------- Referral tiers ---------- */
.tier-card { display: grid; gap: 14px; }
.tier-card .k { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.tier-name { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tier-tbl { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; border-collapse: separate; border-spacing: 0; }
.tier-tbl th, .tier-tbl td { padding: 9px 12px; }
.tier-tbl th { white-space: normal; vertical-align: bottom; }
.tier-tbl tr.cur td { background: var(--accent-soft); }
@media (max-width: 480px) { .tier-tbl th:last-child, .tier-tbl td:last-child { display: none; } }

/* ---------- Notifications drawer filter ---------- */
.drawer-filter { padding: 10px 16px; border-bottom: 1px solid var(--line); }
.drawer-filter .seg { flex-wrap: wrap; }
button.notif { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; }
button.notif:hover { background: var(--inset); }
#lg-filter, #wd-filter { flex-wrap: wrap; max-width: 100%; }
.hist-tabs { overflow: hidden; }
.hist-tabs button { white-space: nowrap; }
