/* MERGEN TAXI — рабочая панель. Токены из tokens.json дизайна v1.1 */
@font-face { font-family: Manrope; src: url('../fonts/Manrope-Regular.ttf'); font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url('../fonts/Manrope-Bold.ttf'); font-weight: 700; font-display: swap; }

:root {
  --primary: #0a5148; --primary-hover: #16675c; --primary-soft: #e8f0de; --accent: #cce9b3;
  --bg: #f6f7f2; --surface: #fffefa; --surface-2: #f1f3ed; --line: #e2e8d9; --line-soft: #edf0e7;
  --text: #172d28; --muted: #7a8982; --faint: #9aa58e;
  --error: #bd493b; --error-soft: #f8e3dd; --warning: #b77b26; --warning-soft: #f7ecd8;
  --info: #2f6f9f; --info-soft: #e2edf5;
  --r-input: 10px; --r-button: 11px; --r-card: 15px;
  --sidebar: 228px;
  --shadow: 0 15px 35px #203c2010;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: Manrope, Arial, sans-serif; font-size: 14px; color: var(--text); background: var(--bg); line-height: 1.45; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 28px; line-height: 1.2; letter-spacing: -.8px; }
h2 { font-size: 18px; letter-spacing: -.3px; }
h3 { font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid #b9dba0; outline-offset: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.eyebrow { font-size: 11px; letter-spacing: 1.8px; font-weight: 700; color: #75867b; text-transform: uppercase; }
.grow { flex: 1; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- layout ---------- */
.workspace { display: flex; min-height: 100vh; min-width: 1200px; }
.work-sidebar { width: var(--sidebar); flex-shrink: 0; background: var(--surface); border-right: 1px solid #e5eadd;
  display: flex; flex-direction: column; padding: 14px 12px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: block; padding: 0 4px; }
.brand img { display: block; width: 100%; height: auto; object-fit: contain; object-position: left center; border-radius: 8px; }
.work-role { display: block; text-align: center; font-size: 11px; color: #8c9981; margin: 2px 0 18px; letter-spacing: .5px; }
.nav-group { font-size: 10px; font-weight: 700; letter-spacing: 1.4px; color: #9aa596; margin: 14px 10px 6px; text-transform: uppercase; }
.work-sidebar nav { display: flex; flex-direction: column; gap: 2px; }
.work-sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px; font-size: 13px; border-radius: 8px; color: var(--text); }
.work-sidebar nav a:hover { background: #f1f4ec; text-decoration: none; }
.work-sidebar nav a .ico { font-size: 16px; width: 20px; text-align: center; color: #8f9c85; }
.work-sidebar nav a.active { background: var(--primary-soft); color: var(--primary); font-weight: 700; }
.work-sidebar nav a.active .ico { color: var(--primary); }
.work-sidebar nav a b { margin-left: auto; background: var(--error-soft); color: var(--error); border-radius: 5px; padding: 1px 7px; font-size: 11px; }
.work-user { border-top: 1px solid #e9edde; margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 10px; font-size: 13px; }
.work-user small { display: block; font-size: 11px; color: #8c9981; margin-top: 2px; }
.work-user form { margin-left: auto; }
.work-user button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: 18px; padding: 6px; border-radius: 6px; }
.work-user button:hover { background: var(--surface-2); color: var(--error); }

.work-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.work-top { height: 58px; border-bottom: 1px solid var(--line); background: var(--surface); padding: 0 28px;
  display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #849178; position: sticky; top: 0; z-index: 30; }
.work-top .status { display: flex; align-items: center; gap: 8px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #72a267; box-shadow: 0 0 0 4px #72a26720; }
.status-dot.off { background: var(--warning); box-shadow: 0 0 0 4px #b77b2620; }
.work-top .bell { border-left: 1px solid #dfe8d4; padding-left: 14px; margin-left: 6px; color: var(--text); }
.work-content { padding: 28px; flex: 1; }
.work-heading { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 24px; gap: 16px; }
.work-heading h1 { margin: 6px 0 4px; }
.work-heading p { font-size: 13px; color: #8a977f; }
.desktop-disclaimer { font-size: 11px; color: var(--faint); text-align: center; margin: 28px 0 0; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 10px 18px;
  border-radius: var(--r-button); font-weight: 700; font-size: 13px; border: 0; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-secondary { background: #eef1e8; color: #214b40; }
.btn-secondary:hover { background: #e3e9da; }
.btn-danger { background: var(--error-soft); color: var(--error); }
.btn-danger:hover { background: #f2d2c9; }
.btn-ghost { background: none; color: var(--primary); padding: 8px 10px; min-height: 0; }
.btn-sm { min-height: 32px; padding: 6px 12px; font-size: 12px; border-radius: 8px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .45; cursor: default; }

/* ---------- cards ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.stat { padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); min-width: 0; position: relative; }
.stat span { display: block; font-size: 12px; color: var(--muted); }
.stat strong { display: block; font-size: 26px; letter-spacing: -.8px; margin: 8px 0 4px; }
.stat small { font-size: 12px; color: #6c8a5d; }
.stat.alert small { color: var(--error); }
.stat.alert::before { content: ''; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 3px; background: var(--error); }
.panel { border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-card); padding: 20px; margin-bottom: 18px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-size: 16px; }
.desktop-two { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; align-items: start; }
.desktop-two.even { grid-template-columns: 1fr 1fr; }
.desktop-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.note { background: #eef3e6; border-radius: 10px; padding: 12px 14px; font-size: 12px; color: #5b6f58; line-height: 1.6; }
.note.warn { background: var(--warning-soft); color: #7d5418; }
.note.err { background: var(--error-soft); color: #8b3226; }
.empty { text-align: center; padding: 34px 10px; color: var(--muted); }
.empty .ico { font-size: 34px; color: #b9c6b0; display: block; margin-bottom: 8px; }

/* ---------- chips ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-size: 11px; padding: 4px 9px; border-radius: 6px; font-weight: 700;
  background: #e8f1df; color: #3c6142; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip-green { background: #e3f0da; color: #2f6a3a; }
.chip-amber { background: var(--warning-soft); color: #8a5a14; }
.chip-red { background: var(--error-soft); color: #a23d2f; }
.chip-gray { background: #eceee8; color: #5f6b62; }
.chip-blue { background: var(--info-soft); color: #245b84; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; margin: 0 -20px -20px; }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th { text-align: left; font-size: 11px; font-weight: 700; color: #8a977f; letter-spacing: .4px; text-transform: uppercase;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: #fbfcf7; white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr.link { cursor: pointer; }
table.data tbody tr:hover td { background: #f8faf3; }
table.data td.route { max-width: 280px; }
table.data td.route div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
table.data td small { display: block; color: var(--muted); font-size: 12px; }
.cell-user { display: flex; align-items: center; gap: 10px; }

.avatar { background: #e3ecd7; border-radius: 50%; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: #4e704b; font-size: 12px; font-weight: 700; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }
.avatar.sm { width: 30px; height: 30px; font-size: 11px; }

/* ---------- filters / tabs ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.search { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-input);
  padding: 0 12px; min-width: 300px; height: 42px; }
.search input { border: 0; background: none; outline: none; width: 100%; font-size: 13px; }
.toolbar select, .toolbar input[type=date] { height: 42px; border: 1px solid var(--line); border-radius: var(--r-input); background: var(--surface); padding: 0 12px; font-size: 13px; }
.tabs { display: inline-flex; border: 1px solid #dfe5da; background: #f0f2e9; padding: 4px; border-radius: 10px; gap: 3px; margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { font-size: 13px; padding: 8px 14px; border-radius: 7px; color: var(--text); }
.tabs a:hover { text-decoration: none; background: #e7eadf; }
.tabs a.selected { background: #fff; box-shadow: 0 1px 5px #142c1810; font-weight: 700; }
.tabs a span { color: var(--muted); margin-left: 4px; font-weight: 400; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 12px; color: #6e7f74; margin-bottom: 6px; font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #e1e7dc; border-radius: var(--r-input); padding: 12px 13px;
  background: #f6f7f1; font-size: 14px; min-width: 0; }
.field textarea { min-height: 84px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); outline: 2px solid #dceccc; background: #fff; }
.field .err, .field-error { color: var(--error); font-size: 12px; margin-top: 5px; display: block; }
.field.has-error input { border-color: var(--error); }
.field small.hint { color: var(--muted); font-size: 12px; margin-top: 5px; display: block; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line-soft); font-size: 14px; }
.check input { accent-color: var(--primary); width: 18px; height: 18px; }
.inline-form { display: inline; }

/* ---------- summary rows ---------- */
.line { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.line:last-child { border-bottom: 0; }
.line span:first-child { color: var(--muted); }
.line b, .line a { text-align: right; }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 26px; font-size: 13px; }
.timeline li::before { content: ''; position: absolute; left: 5px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: #b8c9ad; }
.timeline li::after { content: ''; position: absolute; left: 9px; top: 16px; bottom: 0; width: 1px; background: #dde5d4; }
.timeline li:last-child::after { display: none; }
.timeline li.current::before { background: var(--primary); box-shadow: 0 0 0 4px #0a514820; }
.timeline li b { font-size: 12px; color: var(--muted); margin-right: 8px; }
.timeline li small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------- dispatch ---------- */
.dispatch-layout { display: grid; grid-template-columns: 1fr 360px; gap: 18px; margin-bottom: 18px; }
.map { height: 460px; border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); background: #e7ece1; position: relative; z-index: 0; }
.map.sm { height: 300px; }
.map.lg { height: calc(100vh - 260px); min-height: 480px; }
.map-legend { display: flex; gap: 8px; margin-top: 10px; }
.queue-card { display: block; width: 100%; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px;
  background: #fff; color: var(--text); }
.queue-card:hover { border-color: #c5d6b9; text-decoration: none; background: #fbfdf7; }
.queue-card p { font-size: 13px; margin: 6px 0; }
.queue-card .row { justify-content: space-between; }
.queue-card small { color: var(--muted); }
.queue-card .go { display: block; font-size: 12px; font-weight: 700; color: var(--primary); margin-top: 6px; }
.route-summary > div { display: flex; gap: 12px; padding: 10px 0; align-items: flex-start; font-size: 14px; }
.route-summary .pin { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-size: 11px; flex-shrink: 0; }
.route-summary .pin.dest { background: var(--accent); color: var(--primary); }
.route-summary small { display: block; color: var(--muted); font-size: 12px; }
.detail-top { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.assign-row { display: flex; align-items: center; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.assign-row:hover { border-color: #c5d6b9; }
.assign-row input { accent-color: var(--primary); width: 18px; height: 18px; }
.assign-row strong { display: block; }
.assign-row small { color: var(--muted); }
.assign-row.busy { opacity: .5; cursor: not-allowed; }
.quote-option { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; cursor: pointer; background: #fff; }
.quote-option:has(input:checked) { border-color: var(--primary); background: #f3f8ec; }
.quote-option input { accent-color: var(--primary); }
.quote-option strong { font-size: 18px; }
.small-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.small-stats div { background: var(--surface-2); border-radius: 10px; padding: 12px; }
.small-stats strong { display: block; font-size: 18px; }
.small-stats small { color: var(--muted); font-size: 12px; }

.chat-stream { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; padding: 4px 2px 12px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; }
.bubble small { display: block; font-size: 11px; opacity: .65; margin-top: 4px; }
.bubble.incoming { background: #f0f3ea; align-self: flex-start; border-bottom-left-radius: 4px; }
.bubble.outgoing { background: var(--primary); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.bubble.internal { background: var(--warning-soft); color: #6c4a12; align-self: stretch; max-width: 100%; border-radius: 10px; }

/* ---------- admin ---------- */
.chart { display: flex; align-items: flex-end; gap: 8px; height: 200px; padding-top: 10px; }
.chart .bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; min-width: 0; }
.chart .bar i { display: block; width: 100%; max-width: 44px; background: linear-gradient(180deg, #2b7a6d, var(--primary)); border-radius: 6px 6px 3px 3px; min-height: 4px; }
.chart .bar span { font-size: 11px; color: var(--muted); }
.chart .bar b { font-size: 11px; }
.funnel div { background: var(--primary-soft); border-radius: 8px; padding: 11px 14px; margin-bottom: 8px; display: flex; justify-content: space-between; font-size: 13px; color: var(--primary); }
.bar-row { display: grid; grid-template-columns: 130px 1fr 48px; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13px; }
.bar-row .track { height: 8px; background: #edf1e6; border-radius: 6px; overflow: hidden; }
.bar-row .track i { display: block; height: 100%; background: var(--primary); border-radius: 6px; }
.document-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.document { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.document .thumb { height: 82px; border-radius: 8px; background: #eef2e7; display: grid; place-items: center; font-size: 26px; color: #9bb08f; overflow: hidden; }
.document .thumb img { width: 100%; height: 100%; object-fit: cover; }
.document strong { font-size: 13px; }
.document small { color: var(--muted); font-size: 12px; }
.document label { font-size: 12px; display: flex; gap: 6px; align-items: center; color: var(--error); }
.balance-card { background: var(--primary); color: #f7f7ef; border-radius: var(--r-card); padding: 20px; margin: 12px 0; }
.balance-card span { font-size: 12px; opacity: .75; }
.balance-card strong { display: block; font-size: 32px; letter-spacing: -1px; margin: 6px 0; }
.balance-card small { opacity: .7; font-size: 12px; }
.pagination { display: flex; gap: 6px; justify-content: flex-end; align-items: center; padding: 14px 0 0; font-size: 13px; }
.pagination a, .pagination span { padding: 6px 11px; border-radius: 7px; border: 1px solid var(--line); background: #fff; }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }
.role-tag { display: inline-flex; align-items: center; gap: 4px; background: var(--surface-2); border-radius: 6px; padding: 3px 8px; font-size: 12px; margin: 2px; }
.role-tag button { border: 0; background: none; cursor: pointer; color: var(--muted); padding: 0 2px; }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: #173d33; color: #fff; padding: 13px 20px; border-radius: 11px; font-size: 13px; box-shadow: 0 8px 30px #112d2030; max-width: 90vw; animation: toast-in .25s ease; }
.toast.error { background: #8b3226; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- auth ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 32px; background-image: radial-gradient(#c9d3c0 1px, transparent 1px); background-size: 18px 18px; }
.staff-auth { display: grid; grid-template-columns: 1fr 1fr; max-width: 1100px; width: 100%; min-height: 640px; border: 1px solid #dfe6d6; border-radius: 18px;
  overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.staff-auth > aside { background: var(--primary); color: #f7f7ef; padding: 50px; display: flex; flex-direction: column; justify-content: center; }
.staff-auth aside img { width: 100%; height: auto; object-fit: contain; object-position: left center; background: #f7f7ef; border-radius: 12px; margin-bottom: 36px; }
.staff-auth aside h1 { font-size: 40px; margin-bottom: 20px; letter-spacing: -1.4px; }
.staff-auth aside p { font-size: 16px; opacity: .75; line-height: 1.6; }
.staff-auth aside > span { margin-top: 60px; font-size: 12px; opacity: .55; letter-spacing: .5px; }
.staff-auth > section { padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.staff-auth section h1 { font-size: 30px; margin: 14px 0 8px; }
.staff-auth section > p { margin-bottom: 28px; font-size: 14px; }
.staff-auth .btn-primary { min-height: 52px; font-size: 15px; margin-top: 8px; }
@media (max-width: 860px) {
  .auth-page { padding: 16px; align-items: start; }
  .staff-auth { grid-template-columns: 1fr; min-height: 0; }
  .staff-auth > aside, .staff-auth > section { padding: 28px 22px; }
  .staff-auth aside h1 { font-size: 30px; margin-bottom: 12px; }
  .staff-auth aside img { margin-bottom: 22px; }
  .staff-auth aside > span { margin-top: 22px; }
}
.illustration { height: 160px; display: grid; place-items: center; margin: 10px 0 20px; background: radial-gradient(circle, #e9f1df 0 42%, transparent 43%); }
.illustration span { font-size: 64px; color: var(--primary); }

/* Leaflet markers */
.drv-marker { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 14px; border: 3px solid #fff; box-shadow: 0 2px 8px #0003; }
.drv-free { background: var(--primary); }
.drv-busy { background: var(--warning); }
.drv-offline { background: #9aa596; }
.pin-marker { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: var(--primary); border: 4px solid #fff; box-shadow: 0 3px 10px #0004; }
.pin-marker.dest { background: #fff; color: var(--primary); border-color: var(--primary); }

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

/* ---------- способы входа ---------- */
.auth-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.auth-card { border: 1px solid var(--line); border-radius: var(--r-card); padding: 16px 16px 8px; background: var(--surface-2); }
.auth-card.is-on { background: var(--surface); border-color: #b7d7a8; box-shadow: inset 0 0 0 1px #e5f0da; }
.auth-card header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.auth-card h3 { margin-top: 4px; }
.auth-card .hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 4px 0 12px; }
.primary-pick { display: flex; align-items: center; gap: 8px; padding: 8px 0 12px; border-bottom: 1px solid var(--line-soft); margin-bottom: 12px; font-size: 13px; }
.primary-pick input { accent-color: var(--primary); }
.primary-pick .chip { margin-left: auto; }
.tiny-clear { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); font-weight: 400; }
.tiny-clear input { accent-color: var(--primary); }
.auth-save { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.switch { position: relative; width: 44px; height: 26px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #c9d0c6; border-radius: 99px; transition: background .15s; cursor: pointer; }
.switch span:before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .15s; }
.switch input:checked + span { background: var(--primary); }
.switch input:checked + span:before { transform: translateX(18px); }
.switch input:focus-visible + span { outline: 3px solid #b9dba0; outline-offset: 2px; }
@media (max-width: 1100px) { .auth-grid { grid-template-columns: 1fr; } }
