/* Sales Watch: styled after the Momants dashboard (Sora, white + slate, accent #559D16, black pill buttons). */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --panel: #ffffff;
  --tint: #f8fafc;
  --tint-2: #f1f5f9;
  --border: #e5e7eb;
  --border-2: #e2e8f0;
  --divider: #f3f4f6;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --green: #559d16;
  --green-tint: #e2f5c9;
  --green-soft: #ddf7c6;
  --green-dark: #15803d;
  --red: #b91c1c;
  --red-bg: #fee2e2;
  --red-solid: #dc2626;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --violet: #a78bfa;
  --radius: 12px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .05);
  --shadow-pop: 0 25px 50px -12px rgba(0, 0, 0, .25);
  --sidebar: 224px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 400 14px/1.5 "Sora", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, select, input { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
svg.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* --- shell -------------------------------------------------------------------------------------------- */
.shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar); z-index: 20;
  display: flex; flex-direction: column; gap: 20px; padding: 20px 12px 16px;
  background: #fff; border-right: 1px solid var(--border-2);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand img { border-radius: 8px; }
.brand b { display: block; font-size: 20px; font-weight: 500; letter-spacing: -.01em; line-height: 1.1; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.nav { display: grid; gap: 2px; }
.nav-item {
  display: flex; align-items: center; gap: 16px; min-height: 44px; padding: 0 12px; border-radius: 6px;
  color: var(--text-2); font-size: 14px; position: relative;
}
.nav-item svg.i { color: var(--muted); }
.nav-item:hover { background: var(--tint); }
.nav-item.on { background: var(--tint-2); color: var(--text); font-weight: 500; }
.nav-item.on svg.i { color: var(--text); }
.nav-item .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--red-solid); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; text-align: center; }
.nav-section { padding: 14px 12px 4px; font-size: 10px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.live-pill { display: flex; align-items: center; gap: 8px; margin: 10px 12px 0; font-size: 12px; color: var(--faint); }
.live-pill i, .live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
body.live .live-pill { color: var(--muted); }
body.live .live-pill i, body.live .live-dot { background: var(--green); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(85, 157, 22, .45); } 70% { box-shadow: 0 0 0 6px rgba(85, 157, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(85, 157, 22, 0); } }
.chart .day.fresh .bar, .reason.fresh { animation: fresh 1.8s ease-out; }
.sidebar-foot { margin-top: auto; display: grid; gap: 6px; border-top: 1px solid var(--border-2); padding-top: 12px; }
.agent-switch { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; cursor: pointer; }
.agent-switch:hover { background: var(--tint); }
.agent-switch select { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-tint); color: var(--green); font-weight: 600; box-shadow: 0 0 0 2px var(--border-2); flex: none; }
.agent-text { min-width: 0; }
.agent-text b { display: block; font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-text small { color: var(--muted); font-size: 12px; }

.main { margin-left: var(--sidebar); padding: 28px 24px 40px 40px; min-height: 100vh; }
.topbar, .tabbar { display: none; }

@media (max-width: 767px) {
  .sidebar { display: none; }
  .main { margin-left: 0; padding: calc(3.5rem + env(safe-area-inset-top) + 16px) 16px calc(84px + env(safe-area-inset-bottom)); }
  .topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    position: fixed; inset: 0 0 auto 0; z-index: 20; height: calc(3.5rem + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 16px 0;
    background: #fff; border-bottom: 1px solid var(--border-2);
  }
  .topbar .brand { padding: 0; }
  .topbar .brand b { font-size: 16px; }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset: auto 0 0 0; z-index: 20;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--border-2);
  }
  .tabbar a { position: relative; display: grid; justify-items: center; gap: 3px; padding: 6px 0; font-size: 11px; color: var(--muted); border-radius: 10px; }
  .tabbar a svg.i { width: 22px; height: 22px; }
  .tabbar a.on { color: var(--text); font-weight: 500; }
  .tabbar a.on svg.i { color: var(--green); }
  .tabbar .count { position: absolute; top: 0; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--red-solid); color: #fff; font-size: 10px; font-weight: 600; line-height: 18px; text-align: center; }
}
.agent-chip { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--border-2); border-radius: 999px; font-size: 13px; font-weight: 500; max-width: 55vw; }
.agent-chip span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agent-chip svg.i { width: 14px; height: 14px; color: var(--muted); }
.agent-chip select { position: absolute; inset: 0; opacity: 0; }

/* --- page header ------------------------------------------------------------------------------------- */
.page { display: grid; gap: 24px; max-width: 1280px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.page-head p { color: var(--muted); margin-top: 4px; max-width: 640px; }
.head-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@media (max-width: 767px) { .page-head h1 { font-size: 20px; } .page { gap: 16px; } }

/* --- buttons, chips, segmented ----------------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--border-2); background: #fff; font-weight: 500; font-size: 13px; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--tint); }
.btn.primary { background: #000; color: #fff; border-color: #000; }
.btn.primary:hover { background: #1f2937; }
.btn.green { background: var(--green); border-color: var(--green); color: #fff; }
.btn:disabled { opacity: .5; cursor: default; }
.btn svg.i { width: 16px; height: 16px; }
.btn.sm { min-height: 32px; padding: 0 12px; font-size: 12px; }

.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--tint-2); color: var(--text-2); white-space: nowrap; }
.chip.high { background: var(--red-bg); color: var(--red); }
.chip.medium { background: var(--amber-bg); color: var(--amber); }
.chip.low { background: var(--tint-2); color: var(--muted); }
.chip.green { background: var(--green-tint); color: var(--green); }
.chip.link { background: #dbeafe; color: #1d4ed8; }
.chip.outline { background: #fff; box-shadow: inset 0 0 0 1px var(--border-2); color: var(--muted); }

.segmented { display: inline-flex; padding: 3px; gap: 2px; background: var(--tint-2); border-radius: 999px; }
.segmented button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.segmented button[aria-pressed="true"] { background: #fff; color: var(--text); font-weight: 500; box-shadow: var(--shadow-sm); }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.filters button { border: 1px solid #d4d4d8; background: #fff; padding: 5px 12px; border-radius: 999px; font-size: 12px; cursor: pointer; white-space: nowrap; color: var(--text-2); }
.filters button[aria-pressed="true"] { background: #f4f4f5; border-color: #f4f4f5; color: var(--text); font-weight: 500; }

/* --- cards, KPIs ------------------------------------------------------------------------------------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-head h2 { font-size: 16px; font-weight: 500; }
.card-head a { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 2px; }
.card-head a:hover { color: var(--text); }
.label { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi .kpi-label { display: flex; align-items: center; gap: 8px; color: var(--muted); }
.kpi .kpi-label svg.i { width: 16px; height: 16px; }
.kpi .kpi-value { font-size: 30px; font-weight: 500; letter-spacing: -.02em; margin-top: 12px; font-variant-numeric: tabular-nums; }
.kpi .kpi-sub { font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi.alert .kpi-value { color: var(--red-solid); }
@media (max-width: 767px) { .kpis { gap: 10px; } .kpi { padding: 16px; } .kpi .kpi-value { font-size: 24px; margin-top: 8px; } }

.grid-2 { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
@media (max-width: 1000px) { .grid-2 { grid-template-columns: minmax(0, 1fr); } }

.chart { display: flex; align-items: flex-end; gap: 8px; height: 180px; padding-top: 8px; border-bottom: 1px solid var(--border); }
.chart .day { flex: 1 1 0; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.chart .bar { position: relative; width: min(36px, 70%); height: var(--h); background: var(--tint-2); border-radius: 6px 6px 0 0; }
.chart .bar i { position: absolute; left: 0; right: 0; bottom: 0; height: var(--m); background: var(--red-solid); border-radius: 6px 6px 0 0; opacity: .85; }
.chart-x { display: flex; gap: 8px; margin-top: 6px; }
.chart-x span { flex: 1 1 0; text-align: center; font-size: 12px; color: #6b7280; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.reasons { display: grid; gap: 14px; }
.reason .row1 { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.reason .row1 b { font-weight: 500; }
.reason .track { height: 4px; border-radius: 2px; background: var(--tint-2); margin-top: 6px; overflow: hidden; }
.reason .fill { height: 100%; background: var(--green); border-radius: 2px; }

/* --- inbox-style list + detail ----------------------------------------------------------------------- */
.inbox { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; min-height: calc(100vh - 170px); background: #fff; }
.inbox-list { border-right: 1px solid var(--border); display: flex; flex-direction: column; min-width: 0; max-height: calc(100vh - 170px); }
.inbox-tools { padding: 12px 16px; border-bottom: 1px solid var(--border); display: grid; gap: 10px; }
.rows { overflow-y: auto; flex: 1; }
.inbox-detail { min-width: 0; overflow-y: auto; max-height: calc(100vh - 170px); }
@media (max-width: 1023px) {
  .inbox { grid-template-columns: minmax(0, 1fr); min-height: 0; border: 0; border-radius: 0; }
  .inbox-list { border-right: 0; max-height: none; }
  .inbox-tools { padding: 0 0 12px; border: 0; }
  .inbox.has-detail .inbox-list { display: none; }
  .inbox:not(.has-detail) .inbox-detail { display: none; }
  .inbox-detail { max-height: none; }
  .page.detail-open > .page-head { display: none; }
}
.row-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding: 14px 16px; border-bottom: 1px solid var(--divider); border-left: 3px solid transparent; cursor: pointer; }
.row-item:hover { background: var(--tint); }
.row-item.on { background: var(--green-tint); border-left-color: var(--green); }
.row-item.fresh { animation: fresh 1.8s ease-out; }
@keyframes fresh { from { background: var(--green-soft); } }
.row-item .t { font-weight: 500; font-size: 14px; overflow-wrap: anywhere; }
.row-item .s { grid-column: 1 / -1; font-size: 12px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.row-item .when { font-size: 12px; color: var(--faint); white-space: nowrap; }
@media (max-width: 1023px) { .row-item { border: 1px solid var(--border); border-radius: 12px; margin-bottom: 8px; } .row-item.on { border-left-width: 3px; } }

.detail { padding: 28px 32px; display: grid; gap: 20px; }
@media (max-width: 1023px) { .detail { padding: 0; } }
.detail-head { display: grid; gap: 10px; }
.detail-head h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 12px; }
.back { display: none; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
@media (max-width: 1023px) { .back { display: inline-flex; } }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.step { display: grid; gap: 6px; font-size: 12px; color: var(--faint); }
.step .bar { height: 4px; border-radius: 2px; background: var(--tint-2); }
.step.done { color: var(--text-2); }
.step.done .bar { background: var(--green); }
.step.now { color: var(--text); font-weight: 500; }
.step.now .bar { background: linear-gradient(90deg, var(--green) 50%, var(--tint-2) 50%); }
.step.skip .bar { background: var(--faint); }

.box { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; display: grid; gap: 12px; }
.box h3 { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.box h3 svg.i { width: 16px; height: 16px; color: var(--muted); }
.box.green { background: #f7fcf1; border-color: #cfe9b0; }
.box.warn { background: #fffbeb; border-color: #fde68a; color: #92400e; }
.quote { padding: 10px 14px; border-radius: 10px; background: var(--tint); color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.quote.good { background: var(--green-tint); color: #2f5a0b; }
.reasons-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.reasons-list li { display: flex; gap: 10px; align-items: flex-start; }
.reasons-list li::before { content: ""; width: 6px; height: 6px; margin-top: 8px; border-radius: 50%; background: var(--red-solid); flex: none; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

details.more { border: 1px solid var(--border); border-radius: var(--radius); }
details.more summary { cursor: pointer; padding: 14px 20px; font-weight: 500; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.more summary::-webkit-details-marker { display: none; }
details.more[open] summary { border-bottom: 1px solid var(--border); }
details.more .inner { padding: 16px 20px; }
dl.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 16px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; overflow-wrap: anywhere; }

.chat { display: grid; gap: 8px; }
.msg { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.customer { justify-self: start; background: var(--tint-2); border-bottom-left-radius: 4px; }
.msg.agent { justify-self: end; background: var(--green-tint); border-bottom-right-radius: 4px; }
.msg.flag { box-shadow: 0 0 0 2px var(--red-solid); }
.msg .n { display: block; font-size: 10.5px; color: var(--faint); margin-bottom: 2px; }
.msg .k { color: var(--green); font-weight: 600; }

.change { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.change-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 16px; background: var(--tint); border-bottom: 1px solid var(--border); }
.change-head .num { width: 22px; height: 22px; border-radius: 50%; background: #000; color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.change-head .target { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.change-body { padding: 16px; display: grid; gap: 12px; }
pre.code { margin: 0; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px; font: 12px/1.55 ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
pre.code.old { color: var(--muted); text-decoration: line-through; text-decoration-color: #fca5a5; }
.diff-add { color: var(--green-dark); } .diff-del { color: var(--red); }

/* --- fix impact, daily summary ---------------------------------------------------------------------- */
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ibars { display: grid; gap: 8px; }
.ib { display: grid; grid-template-columns: 52px minmax(0, 1fr) 44px 56px; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.ib b { color: var(--text); font-weight: 600; text-align: right; }
.ib small { color: var(--faint); }
.ib-track { height: 8px; border-radius: 4px; background: var(--tint-2); overflow: hidden; }
.ib-track i { display: block; height: 100%; border-radius: 4px; }
.impact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card.impact { display: grid; gap: 10px; padding: 20px; }
.card.impact:hover { border-color: #cbd5e1; }
.card.impact .t { font-weight: 600; font-size: 15px; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.mini-kpis div { background: var(--tint); border-radius: 10px; padding: 12px; display: grid; gap: 2px; }
.mini-kpis b { font-size: 22px; font-weight: 500; }
.mini-kpis span { font-size: 12px; color: var(--muted); }
@media (max-width: 600px) { .mini-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.digest-head { font-size: 16px; font-weight: 500; }
.seg-a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 999px; color: var(--muted); }
.seg-a:hover { background: #fff; color: var(--text); }
.seg-label { padding: 0 10px; align-self: center; font-size: 13px; font-weight: 500; white-space: nowrap; }
.quick-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 900px) { .quick-links { grid-template-columns: minmax(0, 1fr); gap: 10px; } }
.card.quick { display: flex; align-items: center; gap: 14px; padding: 16px 20px; }
.card.quick:hover { border-color: #cbd5e1; }
.card.quick > svg.i:first-child { color: var(--green); }
.card.quick span { flex: 1; display: grid; }
.card.quick small { color: var(--muted); font-size: 12px; }
.card.quick > svg.i:last-child { color: var(--faint); }
textarea.note { width: 100%; border: 1px solid var(--border-2); border-radius: 10px; padding: 10px 12px; font: inherit; resize: vertical; }
textarea.note:focus { outline: 2px solid var(--green-soft); border-color: var(--green); }

.tr-bar { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.tr-bar svg.i { width: 14px; height: 14px; }

/* --- misc -------------------------------------------------------------------------------------------- */
.empty { display: grid; justify-items: center; gap: 12px; text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .tile { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(#f8fafc, #f1f5f9); border: 1px solid var(--border-2); color: var(--muted); }
.empty .tile svg.i { width: 26px; height: 26px; }
.empty b { color: var(--text-2); font-weight: 600; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; font-size: 13px; }
.banner.warn { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.banner.info { background: var(--tint); border: 1px solid var(--border-2); color: var(--text-2); }
.banner svg.i { width: 16px; height: 16px; margin-top: 2px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.skeleton { height: 72px; border-radius: 12px; background: linear-gradient(90deg, #f1f5f9, #f8fafc, #f1f5f9); background-size: 200% 100%; animation: sk 1.2s infinite linear; }
@keyframes sk { to { background-position: -200% 0; } }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--divider); }
.setting:last-child { border-bottom: 0; }
.setting small { display: block; color: var(--muted); font-size: 12px; }
.select { border: 1px solid var(--border-2); border-radius: 999px; padding: 7px 30px 7px 14px; background: #fff; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; }
.switch { position: relative; width: 40px; height: 24px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; border-radius: 12px; background: #d4d4d8; transition: .2s; cursor: pointer; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--green); }
.switch input:checked + span::after { transform: translateX(16px); }
.steps-howto { margin: 0; padding-left: 18px; display: grid; gap: 6px; color: var(--text-2); }

.login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--bg-soft); }
.login-card { width: 100%; max-width: 400px; background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 36px 32px; display: grid; gap: 18px; justify-items: center; text-align: center; }
.login-card h1 { font-size: 22px; font-weight: 600; }
.login-card p { color: var(--muted); }
.gbtn { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; background: #000; color: #fff; font-weight: 500; }
.gbtn:hover { background: #1f2937; }
.gbtn span.g { width: 20px; height: 20px; border-radius: 50%; background: #fff; display: grid; place-items: center; }

#toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); opacity: 0; transition: .25s; background: rgba(15, 23, 42, .92); backdrop-filter: blur(8px); color: #f1f5f9; padding: 10px 18px; border-radius: 999px; font-size: 13px; pointer-events: none; max-width: calc(100vw - 32px); z-index: 50; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 767px) { #toast { bottom: calc(88px + env(safe-area-inset-bottom)); } }
