:root {
    --bg: #0b1220;
    --bg-soft: #121a2b;
    --surface: rgba(21, 29, 46, 0.78);
    --surface-solid: #151d2e;
    --line: rgba(148, 163, 184, 0.16);
    --text: #e8eef6;
    --muted: #93a0b5;
    --accent: #2dd4bf;
    --accent-2: #14b8a6;
    --danger: #fb7185;
    --warn: #fbbf24;
    --ok: #34d399;
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
    --radius: 22px;
    --header-h: 72px;
}

html[data-theme="light"] {
    --bg: #f3f6f9;
    --bg-soft: #ffffff;
    --surface: rgba(255, 255, 255, 0.78);
    --surface-solid: #ffffff;
    --line: rgba(15, 23, 42, 0.08);
    --text: #142033;
    --muted: #5b6b82;
    --accent: #0f766e;
    --accent-2: #0d9488;
    --danger: #e11d48;
    --warn: #d97706;
    --ok: #059669;
    --shadow: 0 14px 40px rgba(15, 23, 42, 0.08);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

html { scroll-behavior: smooth; }

body {
    font-family: "Vazirmatn", Tahoma, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.7;
    overflow-x: hidden;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    -webkit-tap-highlight-color: transparent;
}

img, svg { max-width: 100%; display: block; }

a { color: var(--accent); text-decoration: none; }

.skip-link {
    position: absolute;
    right: 12px;
    top: -48px;
    background: var(--accent);
    color: #042f2e;
    padding: 8px 12px;
    border-radius: 10px;
    z-index: 20;
}

.skip-link:focus { top: 12px; }

.app-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(900px 420px at 10% -10%, rgba(45, 212, 191, 0.16), transparent 55%),
        radial-gradient(700px 380px at 110% 10%, rgba(56, 189, 248, 0.08), transparent 50%),
        linear-gradient(180deg, var(--bg), var(--bg-soft));
    z-index: -2;
}

.orb {
    position: fixed;
    border-radius: 50%;
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.45;
}

.orb-a {
    width: 220px;
    height: 220px;
    background: #2dd4bf;
    top: 12%;
    right: -60px;
    animation: drift 12s ease-in-out infinite;
}

.orb-b {
    width: 180px;
    height: 180px;
    background: #38bdf8;
    bottom: 8%;
    left: -50px;
    animation: drift 16s ease-in-out infinite reverse;
}

.wrap {
    width: min(1120px, calc(100% - 32px));
    margin-inline: auto;
}

.wrap.narrow { width: min(640px, calc(100% - 32px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    backdrop-filter: blur(16px);
    background: color-mix(in srgb, var(--bg) 72%, transparent);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: var(--header-h);
    display: flex;
    align-items: center;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: inherit;
    min-width: 0;
}

.brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(160deg, var(--accent), #38bdf8);
    color: #042f2e;
    flex: 0 0 auto;
}

.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-text strong { font-size: 0.98rem; }
.brand-text small {
    color: var(--muted);
    font-size: 0.7rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav {
    display: none;
    gap: 6px;
    margin-inline-start: auto;
}

.nav a {
    color: var(--muted);
    padding: 8px 12px;
    border-radius: 999px;
    font-weight: 500;
}

.nav a.is-active,
.nav a:hover { color: var(--text); background: var(--line); }

.theme-toggle {
    margin-inline-start: auto;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    border-radius: 12px;
    cursor: pointer;
}

html[data-theme="dark"] .theme-icon-light,
html[data-theme="light"] .theme-icon-dark { display: none; }

.main { min-height: calc(100dvh - 180px); }

.hero {
    padding: 56px 0 72px;
    text-align: center;
}

.hero h1 { animation: fadeUp 0.55s ease both; }
.hero .lede { animation: fadeUp 0.7s ease both; }

.eyebrow {
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: var(--accent);
    margin: 0 0 12px;
}

h1 { font-size: clamp(1.8rem, 6vw, 3.2rem); line-height: 1.25; margin: 0 0 12px; }
h2 { font-size: 1.2rem; margin: 0 0 10px; }

.lede {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 34rem;
    margin: 0 auto 36px;
}

.action-grid {
    display: grid;
    gap: 16px;
}

.action-card {
    display: block;
    padding: 32px 22px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    color: inherit;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
    animation: fadeUp 0.6s ease both;
}

.action-card.action-send { animation-delay: 0.08s; }

.action-card:hover,
.action-card:focus-visible {
    transform: translateY(-4px);
    border-color: color-mix(in srgb, var(--accent) 50%, var(--line));
}

.action-icon { font-size: 2.2rem; display: block; margin-bottom: 10px; }
.action-card p { margin: 0; color: var(--muted); }

.trust-row {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    color: var(--muted);
    font-size: 0.92rem;
}

.page-shell,
.flow { padding: 36px 0 64px; }
.page-head { margin-bottom: 22px; }
.page-head p { color: var(--muted); margin: 8px 0 0; }

.flow-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    color: var(--accent);
}
.flow-kicker::before {
    content: "";
    width: 20px;
    height: 1px;
    background: currentColor;
}
.flow-intro h1 { letter-spacing: -0.03em; }
.flow-intro p { max-width: 34rem; }

.sheet {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 22px 20px 20px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    animation: fadeUp 0.5s ease both;
}
.sheet-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
}
.step { font-weight: 800; font-size: 0.95rem; }
.step-meta { color: var(--muted); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.sheet-cta { margin-top: 6px; }

.field { margin-bottom: 18px; }
.field > label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.field-shell {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 56px;
    padding: 0 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg) 78%, var(--surface-solid));
    border: 1px solid var(--line);
    transition: border-color 0.18s ease, background 0.18s ease;
}
.field-shell:focus-within {
    border-color: var(--accent);
    background: var(--surface-solid);
}
.field-shell input {
    flex: 1;
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    margin: 0;
    padding: 14px 0;
    min-height: 54px;
    outline: none;
}
.field-count {
    color: var(--muted);
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
    flex: 0 0 auto;
}
.field-hint {
    margin: 8px 2px 0;
    font-size: 0.82rem;
    color: var(--muted);
}

.field-code { position: relative; }
.otp-source {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.otp {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 8px;
    direction: ltr;
}
.otp-cell {
    width: 100%;
    aspect-ratio: 0.78;
    min-height: 52px;
    border: 1px solid var(--line);
    background: color-mix(in srgb, var(--bg) 78%, var(--surface-solid));
    color: var(--text);
    border-radius: 14px;
    text-align: center;
    font: inherit;
    font-size: 1.35rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    padding: 0;
    caret-color: var(--accent);
}
.otp-cell:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    border-color: var(--accent);
    background: var(--surface-solid);
}
.otp-cell.is-filled {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.panel,
.dash-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
    animation: fadeUp 0.5s ease both;
}

.stack { display: grid; gap: 16px; }

label {
    display: block;
    margin: 0 0 8px;
    font-weight: 600;
}

label + input + label { margin-top: 16px; }

input[type="text"],
input[type="number"] {
    width: 100%;
    border: 1px solid var(--line);
    background: var(--bg-soft);
    color: var(--text);
    border-radius: 14px;
    padding: 14px 16px;
    font: inherit;
    margin-bottom: 16px;
}

input:focus {
    outline: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
    border-color: var(--accent);
}

.field-shell input[type="text"],
.field-shell input[type="number"] {
    border: 0;
    background: transparent;
    margin: 0;
    padding: 14px 0;
    border-radius: 0;
    min-height: 54px;
}
.field-shell input:focus { outline: none; }

.btn {
    appearance: none;
    border: 0;
    border-radius: 14px;
    padding: 13px 18px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    min-height: 48px;
    transition: transform 0.18s cubic-bezier(.2,1.4,.3,1), opacity 0.15s ease, background 0.15s ease, box-shadow 0.18s ease;
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(1px) scale(0.98); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary { box-shadow: 0 8px 22px rgba(45, 212, 191, 0.22); }
.btn-block { width: 100%; }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #042f2e; }
.btn-secondary { background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
.btn-danger { background: color-mix(in srgb, var(--danger) 16%, var(--surface-solid)); color: var(--danger); }
.btn-ghost { background: transparent; color: var(--muted); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-row .btn { flex: 1; }

.hello { font-size: 1.25rem; font-weight: 800; margin: 0 0 6px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 0.95rem; }

.code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    background: var(--bg);
    border: 1px dashed color-mix(in srgb, var(--accent) 40%, var(--line));
    margin: 12px 0;
}

.code-value {
    font-size: clamp(2rem, 8vw, 2.8rem);
    font-weight: 800;
    letter-spacing: 0.18em;
    font-variant-numeric: tabular-nums;
    animation: pop 0.45s cubic-bezier(.2,1.4,.3,1);
}

.dash-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-top: 16px;
}

.timer {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    color: var(--accent);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--ok) 14%, transparent);
    color: var(--ok);
    font-size: 0.88rem;
}

.status-pill i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 0 currentColor;
    animation: pulse 1.6s infinite;
}

.status-pill.is-wait { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.status-pill.is-bad { color: var(--danger); background: color-mix(in srgb, var(--danger) 14%, transparent); }

.state-box, .success-box, .request-card { text-align: center; }
.pulse-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--warn);
    display: inline-block;
    animation: pulse 1.6s infinite;
}

.hidden { display: none !important; }
.center { text-align: center; }

.file-list { display: grid; gap: 10px; margin-top: 14px; }

.file-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
}

.file-item b { display: block; word-break: break-word; }
.file-item small { color: var(--muted); }
.file-ico {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--accent) 14%, var(--surface-solid));
}

.progress {
    height: 10px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
    margin: 8px 0;
}

.progress > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-2), var(--accent));
    transition: width 0.35s ease;
}

.live-card {
    background: var(--surface);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.live-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 16px;
    align-items: center;
}

.live-ring {
    --p: 0;
    width: 88px;
    height: 88px;
    border-radius: 50%;
    background: conic-gradient(var(--accent) calc(var(--p) * 1%), color-mix(in srgb, var(--line) 80%, transparent) 0);
    display: grid;
    place-items: center;
    position: relative;
    flex: 0 0 auto;
}

.live-ring::after {
    content: "";
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--surface-solid);
}

.live-ring span {
    position: relative;
    z-index: 1;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    font-size: 1.15rem;
}

.live-copy h2 { margin: 4px 0 6px; }
.live-meta { margin: 0; color: var(--muted); font-size: 0.92rem; }

.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #042f2e;
    background: var(--accent);
}

.live-badge.is-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #042f2e;
    animation: pulse 1.2s infinite;
}

.live-badge.is-done {
    background: color-mix(in srgb, var(--ok) 20%, var(--surface-solid));
    color: var(--ok);
}

.live-overall {
    height: 8px;
    border-radius: 999px;
    background: var(--line);
    overflow: hidden;
    margin: 16px 0 4px;
}

.live-overall > span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--accent-2), #5eead4, var(--accent));
    background-size: 200% 100%;
    animation: shimmer 1.6s linear infinite;
    transition: width 0.35s ease;
}

.live-file {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 14px;
    border-radius: 16px;
    background: var(--bg);
    border: 1px solid var(--line);
    transition: border-color 0.2s ease, transform 0.2s ease;
    animation: fadeUp 0.35s ease both;
}

.live-file.is-uploading {
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 18%, transparent);
}

.live-file.is-ready { border-color: color-mix(in srgb, var(--ok) 35%, var(--line)); }
.live-file.is-downloaded { opacity: 0.78; }

.live-file-top {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: baseline;
}

.live-file-top b { word-break: break-word; }
.live-pct {
    font-variant-numeric: tabular-nums;
    font-size: 1.15rem;
    color: var(--accent);
    flex: 0 0 auto;
}

.live-file .progress { margin: 8px 0 6px; }
.live-file-sub { color: var(--muted); font-size: 0.86rem; }

@keyframes shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

.dropzone {
    border: 1.5px dashed color-mix(in srgb, var(--accent) 45%, var(--line));
    border-radius: var(--radius);
    padding: 42px 18px;
    text-align: center;
    background: color-mix(in srgb, var(--accent) 6%, var(--surface));
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    animation: fadeUp 0.45s ease both;
}

.dropzone:hover { transform: translateY(-2px); }
.drop-icon { font-size: 2.2rem; display: inline-block; animation: bob 2.4s ease-in-out infinite; }

.dropzone.is-over {
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, var(--surface));
    transform: scale(1.02);
}

.prose { max-width: 68ch; }
.prose p { color: var(--muted); }

.restart-card {
    text-align: center;
    border-color: color-mix(in srgb, var(--accent) 28%, var(--line));
}

.restart-card h2 { margin-bottom: 6px; }

.btn-install {
    margin: 22px auto 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--accent) 16%, var(--surface-solid));
    color: var(--accent);
    border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
    font-weight: 800;
}

.install-tip {
    margin: 16px auto 0;
    max-width: 28rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.dock {
    display: none;
}

.site-footer {
    border-top: 1px solid var(--line);
    padding: 24px 0 32px;
    color: var(--muted);
    text-align: center;
    font-size: 0.88rem;
}

.footer-inner p { margin: 4px 0; }

.toasts {
    position: fixed;
    inset-inline: 16px;
    bottom: 16px;
    z-index: 40;
    display: grid;
    gap: 8px;
}

.toast {
    background: var(--surface-solid);
    border: 1px solid var(--line);
    color: var(--text);
    border-radius: 14px;
    padding: 12px 14px;
    box-shadow: var(--shadow);
    animation: rise 0.24s ease;
}

.toast.is-error { border-color: color-mix(in srgb, var(--danger) 40%, var(--line)); }
.toast.is-ok { border-color: color-mix(in srgb, var(--ok) 40%, var(--line)); }

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 50%, transparent); }
    70% { box-shadow: 0 0 0 8px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

@keyframes rise {
    from { transform: translateY(8px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes fadeUp {
    from { transform: translateY(16px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes pop {
    from { transform: scale(0.86); opacity: 0; }
    to { transform: none; opacity: 1; }
}

@keyframes drift {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(-24px, 18px); }
}

@keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.reveal { animation: fadeUp 0.55s ease both; }
.page-head h1 { animation: fadeUp 0.45s ease both; }
.live-card { animation: fadeUp 0.4s ease both; }
.request-card { animation: pop 0.4s cubic-bezier(.2,1.4,.3,1); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
    }
}

@media (min-width: 720px) {
    .nav { display: flex; }
    .theme-toggle { margin-inline-start: 0; }
    .action-grid { grid-template-columns: 1fr 1fr; }
    .hero { padding-top: 80px; }
    .toasts { inset-inline: auto 24px; top: 88px; bottom: auto; width: min(360px, calc(100vw - 32px)); }
    .brand-text small { white-space: normal; }
    .dock { display: none !important; }
}

@media (max-width: 719px) {
    :root { --header-h: 58px; --dock-h: 68px; }

    .nav { display: none; }
    .header-inner { min-height: var(--header-h); padding: 6px 0; }
    .brand-mark { width: 34px; height: 34px; border-radius: 10px; }
    .brand-text strong { font-size: 0.88rem; }
    .brand-text small { font-size: 0.64rem; }
    .theme-toggle { width: 40px; height: 40px; }

    .main {
        min-height: calc(100dvh - var(--header-h) - var(--dock-h) - env(safe-area-inset-bottom));
        padding-bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 12px);
    }

    .hero { padding: 28px 0 20px; }
    .hero h1 { font-size: clamp(1.7rem, 8vw, 2.3rem); }
    .lede { font-size: 0.98rem; margin-bottom: 22px; }
    .action-grid { gap: 12px; }
    .action-card {
        padding: 22px 18px;
        border-radius: 20px;
        display: flex;
        align-items: center;
        gap: 14px;
        text-align: right;
    }
    .action-card h2 { margin: 0 0 4px; font-size: 1.1rem; }
    .action-icon { font-size: 1.8rem; margin: 0; }
    .trust-row { margin-top: 20px; font-size: 0.82rem; gap: 8px 12px; }

    .page-shell,
    .flow { padding: 18px 0 24px; }
    .page-head { margin-bottom: 14px; }
    .page-head h1 { font-size: 1.55rem; }
    .page-head p { font-size: 0.94rem; }

    .sheet { padding: 18px 16px 16px; border-radius: 24px; }
    .otp { gap: 6px; }
    .otp-cell { min-height: 48px; font-size: 1.2rem; border-radius: 12px; }

    .panel, .dash-card, .live-card { padding: 16px; border-radius: 20px; }
    .code-box { flex-direction: column; padding: 14px; }
    .code-value { letter-spacing: 0.14em; }
    .btn { min-height: 50px; border-radius: 16px; }
    .btn-row { flex-direction: column; }
    .live-head { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .live-ring { width: 76px; height: 76px; }
    .live-file, .file-item { grid-template-columns: auto 1fr; }
    .live-file .file-actions, .file-item .file-actions { grid-column: 1 / -1; }
    .dropzone { padding: 28px 14px; }

    input[type="text"],
    input[type="number"] {
        font-size: 16px;
        min-height: 52px;
        border-radius: 16px;
    }

    .dock {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        position: fixed;
        inset-inline: 0;
        bottom: 0;
        z-index: 30;
        min-height: calc(var(--dock-h) + env(safe-area-inset-bottom));
        padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
        background: color-mix(in srgb, var(--bg) 82%, transparent);
        backdrop-filter: blur(18px);
        border-top: 1px solid var(--line);
    }
    .dock:has(#dockInstall:not(.hidden)) { grid-template-columns: repeat(4, 1fr); }
    .dock-item {
        appearance: none;
        border: 0;
        background: transparent;
        color: var(--muted);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        font: inherit;
        font-size: 0.72rem;
        font-weight: 700;
        min-height: 48px;
        border-radius: 14px;
        cursor: pointer;
    }
    .dock-item span { font-size: 1.15rem; line-height: 1; }
    .dock-item.is-active {
        color: var(--accent);
        background: color-mix(in srgb, var(--accent) 12%, transparent);
    }

    .toasts { bottom: calc(var(--dock-h) + env(safe-area-inset-bottom) + 12px); }
    .site-footer { display: none; }

    input.otp-source {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        min-height: 0 !important;
        margin: -1px !important;
        padding: 0 !important;
        border: 0 !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0);
    }
}

html.is-standalone .site-header {
    padding-top: env(safe-area-inset-top);
}
html.is-standalone .orb { opacity: 0.22; }
