/* MyStoreLocator – components. Uses only tokens from theme.css. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: var(--fs)/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); } h4 { font-size: var(--fs-md); }
p { margin: 0 0 8px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.muted { color: var(--text-3); } .small { font-size: var(--fs-sm); } .xs { font-size: var(--fs-xs); }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }
.grow { flex: 1; } .right { margin-left: auto; } .center { text-align: center; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 700px) { .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--ctrl-h); padding: 0 14px;
  border-radius: var(--radius); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: 500 var(--fs)/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s; }
.btn:hover { background: var(--surface-3); text-decoration: none; }
.btn:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .nav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.btn-primary:hover { background: var(--accent-600); }
.btn-soft { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-700); }
[data-mode="dark"] .btn-soft { color: var(--text); }
.btn-soft:hover { background: var(--accent-100); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-danger { color: var(--err); }
.btn-danger:hover { background: var(--err-bg); }
.btn-sm { height: 30px; padding: 0 10px; font-size: var(--fs-sm); }
.btn-lg { height: 46px; padding: 0 20px; font-size: var(--fs-md); }
.btn-block { width: 100%; }
.btn-icon { width: var(--ctrl-h); padding: 0; }
.btn svg, .ico { width: 18px; height: 18px; flex: none; }

/* ---------- forms ---------- */
label.field { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-sm); font-weight: 500; color: var(--text-2); }
label.field .req { color: var(--err); }
.hint { font-size: var(--fs-xs); color: var(--text-3); font-weight: 400; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=url], input[type=tel], input[type=search],
input[type=time], input[type=date], input:not([type]), select, textarea {
  height: var(--ctrl-h); width: 100%; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius);
  background: var(--surface); color: var(--text); font: var(--fs)/1.4 var(--font); }
textarea { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); outline: none; }
input[type=color] { width: 44px; height: var(--ctrl-h); padding: 3px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface); }
.check { display: inline-flex; gap: 8px; align-items: center; cursor: pointer; font-size: var(--fs); color: var(--text); }
.check input { width: 16px; height: 16px; accent-color: var(--accent); }
.switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.switch input { appearance: none; width: 36px; height: 20px; border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: left .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { left: 18px; }
.input-icon { position: relative; }
.input-icon svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--text-3); }
.input-icon input { padding-left: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 700px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- cards / panels ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: calc(var(--pad) + 4px); }
.card-head { display: flex; align-items: center; gap: 12px; padding: var(--pad) calc(var(--pad) + 4px); border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: var(--fs-md); }
.card-body { padding: calc(var(--pad) + 4px); }
.card-foot { padding: 12px calc(var(--pad) + 4px); border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.kpi { padding: calc(var(--pad) + 2px); }
.kpi .label { color: var(--text-3); font-size: var(--fs-sm); display: flex; align-items: center; gap: 6px; }
.kpi .value { font-size: 26px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; }
.kpi .delta { font-size: var(--fs-xs); font-weight: 600; }
.delta.up { color: var(--ok); } .delta.down { color: var(--err); }

/* ---------- badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.err { background: var(--err-bg); color: var(--err); } .badge.info { background: var(--info-bg); color: var(--info); }
.badge.accent { background: var(--accent-50); color: var(--accent-700); }
[data-mode="dark"] .badge.accent { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; display: inline-block; }

/* ---------- table ---------- */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs); }
.tbl th { text-align: left; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); font-weight: 600; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 0 14px; height: var(--row-h); border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl tr.clickable { cursor: pointer; }
.tbl .actions { text-align: right; white-space: nowrap; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 12px calc(var(--pad) + 4px); border-bottom: 1px solid var(--border); }
.toolbar .input-icon { min-width: 240px; flex: 1; max-width: 360px; }
.toolbar select { width: auto; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; padding: 10px calc(var(--pad) + 4px); border-top: 1px solid var(--border); color: var(--text-3); font-size: var(--fs-sm); }

/* ---------- tabs / segmented ---------- */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; font: 500 var(--fs)/1 var(--font); color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.seg { display: inline-flex; background: var(--surface-3); border-radius: var(--radius); padding: 3px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: calc(var(--radius) - 3px); font: 500 var(--fs-sm)/1 var(--font); color: var(--text-2); cursor: pointer; }
.seg button.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- empty / alerts ---------- */
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .ico-wrap { width: 52px; height: 52px; border-radius: 14px; background: var(--accent-50); color: var(--accent); display: grid; place-items: center; margin: 0 auto 12px; }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.alert { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--radius); font-size: var(--fs-sm); border: 1px solid transparent; }
.alert.info { background: var(--info-bg); color: var(--info); } .alert.warn { background: var(--warn-bg); color: var(--warn); }
.alert.ok { background: var(--ok-bg); color: var(--ok); } .alert.err { background: var(--err-bg); color: var(--err); }
.alert.accent { background: var(--accent-50); color: var(--accent-700); border-color: var(--accent-100); }
[data-mode="dark"] .alert.accent { color: var(--text); }

/* ---------- progress / meter ---------- */
.meter { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--accent); border-radius: 99px; }
.meter.warn > span { background: var(--warn); } .meter.err > span { background: var(--err); }

/* ---------- avatar ---------- */
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--accent); flex: none; }
.avatar.lg { width: 56px; height: 56px; font-size: 18px; }

/* ================= APP SHELL ================= */
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; font-weight: 700; font-size: 16px; color: var(--text); }
.brand-mark { width: 30px; height: 30px; border-radius: 9px; background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); display: grid; place-items: center; color: #fff; }
.brand-mark svg { width: 18px; height: 18px; }
.workspace { margin: 0 12px 10px; padding: 8px 10px; border: 1px solid var(--border); border-radius: var(--radius); display: flex; align-items: center; gap: 10px; cursor: pointer; background: var(--surface-2); }
.workspace .name { font-weight: 600; font-size: var(--fs-sm); line-height: 1.2; }
.nav { padding: 4px 10px 16px; display: flex; flex-direction: column; gap: 1px; }
.nav .sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; padding: 14px 10px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); color: var(--text-2); font-weight: 500; }
.nav a:hover { background: var(--surface-3); text-decoration: none; color: var(--text); }
.nav a.active { background: var(--accent-50); color: var(--accent-700); }
[data-mode="dark"] .nav a.active { color: var(--text); }
.nav a .ico { color: var(--text-3); } .nav a.active .ico { color: var(--accent); }
.nav a .count { margin-left: auto; font-size: 11px; color: var(--text-3); }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--border); }
.plan-box { padding: 12px; border-radius: var(--radius); background: var(--accent-50); border: 1px solid var(--accent-100); font-size: var(--fs-sm); }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 24px; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.topbar .search { width: 360px; max-width: 40vw; }
.topbar .search input { background: var(--surface); }
.kbd { font: 11px ui-monospace, monospace; border: 1px solid var(--border-strong); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; color: var(--text-3); background: var(--surface); }
.content { padding: 24px; max-width: 1360px; width: 100%; margin: 0 auto; }
.page-head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head .sub { color: var(--text-3); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs { font-size: var(--fs-sm); color: var(--text-3); margin-bottom: 6px; }
.crumbs a { color: var(--text-3); }
.menu-btn { display: none; }
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 50; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open::after { content: ""; position: fixed; inset: 0; background: var(--overlay); z-index: 40; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 12px; } .topbar .search { display: none; }
  .content { padding: 16px; }
}

/* ---------- dropdown ---------- */
.dropdown { position: relative; }
/* menus (.dd-menu) live in css/menus.css */

/* ---------- modal / drawer / toast ---------- */
.overlay { position: fixed; inset: 0; background: var(--overlay); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 90vh; display: flex; flex-direction: column; animation: pop .15s; }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; }
.overlay.drawer { justify-content: flex-end; padding: 0; }
.overlay.drawer .modal { height: 100vh; max-height: 100vh; border-radius: 0; width: min(640px, 100%); animation: slide .2s; }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--text); color: var(--bg); padding: 10px 14px; border-radius: var(--radius); box-shadow: var(--shadow-lg); font-size: var(--fs-sm); display: flex; gap: 8px; align-items: center; animation: pop .15s; max-width: 360px; }
.toast.ok::before { content: "✓"; color: #4ade80; font-weight: 700; }
.toast.err::before { content: "!"; color: #f87171; font-weight: 700; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: scale(.97); } } @keyframes slide { from { transform: translateX(40px); opacity: 0; } }

/* ---------- command palette ---------- */
.palette { width: min(600px, 100%); align-self: flex-start; margin-top: 10vh; }
.palette input { height: 52px; border: 0; border-bottom: 1px solid var(--border); border-radius: var(--radius-lg) var(--radius-lg) 0 0; font-size: 16px; padding: 0 18px; box-shadow: none !important; }
.palette .list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.palette .item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: var(--radius-sm); cursor: pointer; }
.palette .item.sel, .palette .item:hover { background: var(--accent-50); }

/* ---------- auth (Lumen style split screen) ---------- */
.auth { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; background: var(--surface); }
.auth-hero { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(255,255,255,.12), transparent 60%), linear-gradient(160deg, var(--hero-from), var(--hero-to)); }
.auth-hero::before, .auth-hero::after { content: ""; position: absolute; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.auth-hero::before { width: 760px; height: 760px; right: -300px; bottom: -380px; }
.auth-hero::after { width: 520px; height: 520px; right: -180px; bottom: -260px; border-width: 40px; }
.auth-hero .brand { color: #fff; padding: 0; }
.auth-hero .brand-mark { background: #fff; color: var(--accent); }
.auth-hero h1 { font-size: 34px; line-height: 1.15; margin: auto 0 14px; max-width: 460px; position: relative; }
.auth-hero .lead { opacity: .85; font-size: 16px; max-width: 470px; position: relative; }
.quote { margin-top: 48px; padding: 20px; border-radius: var(--radius-lg); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); max-width: 460px; position: relative; backdrop-filter: blur(4px); }
.quote .who { display: flex; gap: 10px; align-items: center; margin-top: 14px; font-size: var(--fs-sm); }
.quote .avatar { background: #fff; color: var(--accent); }
.stats { display: flex; gap: 36px; margin-top: auto; padding-top: 40px; position: relative; }
.stats b { display: block; font-size: 24px; } .stats span { font-size: var(--fs-sm); opacity: .8; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-form .box { width: min(440px, 100%); display: flex; flex-direction: column; gap: 16px; }
.auth-form h2 { font-size: 24px; } .auth-form .sub { color: var(--text-2); margin-top: -8px; }
.or { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: var(--fs-sm); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.auth-top { position: absolute; top: 20px; right: 24px; display: flex; gap: 8px; }
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } }

/* ---------- misc widgets ---------- */
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: var(--radius); }
.step:hover { background: var(--surface-2); }
.step .num { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--border-strong); display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--text-3); flex: none; }
.step.done .num { background: var(--ok); border-color: var(--ok); color: #fff; }
.step.done .t { text-decoration: line-through; color: var(--text-3); }
.chart { width: 100%; height: 220px; display: block; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .area { fill: var(--accent-100); opacity: .7; } .chart .line { fill: none; stroke: var(--accent); stroke-width: 2.2; }
.chart .bar { fill: var(--accent); } .chart text { fill: var(--text-3); font-size: 11px; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.list-row:last-child { border-bottom: 0; }
.mapbox { height: 320px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); background: var(--surface-3); }
.thumb { border: 2px solid var(--border); border-radius: var(--radius); padding: 10px; cursor: pointer; background: var(--surface); transition: border-color .15s; }
.thumb:hover { border-color: var(--border-strong); } .thumb.active { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-100); }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border-strong); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--text); }
.codebox { background: #0f1220; color: #d7dcf0; border-radius: var(--radius); padding: 14px; font: 12.5px/1.55 ui-monospace, monospace; white-space: pre-wrap; word-break: break-all; position: relative; }
.codebox .btn { position: absolute; top: 8px; right: 8px; }
.demo-banner { background: linear-gradient(90deg, var(--hero-from), var(--hero-to)); color: #fff; font-size: var(--fs-sm); padding: 7px 24px; display: flex; gap: 10px; align-items: center; }
.demo-banner a { color: #fff; text-decoration: underline; }
.pill-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); padding: 36px; text-align: center; color: var(--text-3); background: var(--surface-2); cursor: pointer; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-50); }
.timeline { position: relative; padding-left: 18px; }
.timeline::before { content: ""; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--border); }
.timeline .ev { position: relative; padding: 0 0 14px; }
.timeline .ev::before { content: ""; position: absolute; left: -17px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent); }
.price-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; }
.price-card .price { font-size: 32px; font-weight: 700; letter-spacing: -.02em; }
.price-card ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--fs-sm); }
.price-card li::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.price-card.featured { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-50); }

/* dark mode: text links lighter so every accent stays readable */
[data-mode="dark"] a:not(.btn):not(.nav a):not(.brand) { color: color-mix(in srgb, var(--accent) 55%, white); }

/* ---------- brand (my-store-locator.com) ---------- */
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); line-height: 1; }
.logo svg { display: block; flex: none; }
.logo-word { width: auto; }
.brand { padding: 20px 18px 16px; }
.brand:hover { text-decoration: none; }
.btn-gradient { background: var(--brand-gradient); border: 0; color: #fff; }
.btn-gradient:hover { background: var(--brand-gradient); filter: brightness(1.06); color: #fff; }
.text-gradient { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.admin-zone { margin-top: 14px; padding-top: 4px; border-top: 1px dashed var(--border-strong); }
.admin-zone .sec { display: flex; align-items: center; gap: 6px; color: var(--accent); }
.admin-zone .sec svg { width: 14px; height: 14px; }
.nav a.active { box-shadow: inset 3px 0 0 var(--accent); }
.demo-banner { background: var(--brand-gradient); }
.auth-hero { background: radial-gradient(900px 500px at 0% 0%, rgba(255,255,255,.14), transparent 60%), var(--brand-gradient); }
.chart .area { fill: var(--accent-100); }

/* ---------- auth (brand / website look) ---------- */
.auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-hero { padding: 40px 56px; gap: 28px; }
.auth-hero::before, .auth-hero::after { border-color: rgba(255,255,255,.06); }
.auth-hero-body { position: relative; margin: auto 0; max-width: 560px; }
.auth-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); font-size: var(--fs-sm); font-weight: 600; }
.auth-kicker svg { width: 16px; height: 16px; }
.auth-hero h1 { margin: 18px 0 12px; font-size: 38px; line-height: 1.12; letter-spacing: -.02em; }
.auth-benefits { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
.auth-benefits li { display: flex; gap: 12px; align-items: flex-start; }
.auth-benefits b { display: block; font-size: var(--fs-md); margin-bottom: 2px; }
.auth-benefits span { font-size: var(--fs-sm); opacity: .85; line-height: 1.45; }
.b-ico { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.16); display: grid; place-items: center; flex: none; }
.b-ico svg { width: 18px; height: 18px; }
.auth-trust { position: relative; display: flex; gap: 22px; flex-wrap: wrap; font-size: var(--fs-sm); opacity: .9; }
.auth-trust span { display: inline-flex; align-items: center; gap: 6px; }
.auth-trust svg { width: 16px; height: 16px; }
.auth-form { position: relative; flex-direction: column; }
.auth-form .box { margin: auto 0; }
.auth-top { position: absolute; top: 20px; right: 24px; }
.auth-foot { padding-top: 24px; }
.auth-foot a { color: var(--text-3); }
.auth-mobile-logo { display: none; }
.auth-plan-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.auth-plan-teaser div { border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; background: var(--surface-2); }
.auth-plan-teaser b { display: block; font-size: var(--fs-sm); } .auth-plan-teaser span { font-size: var(--fs-xs); color: var(--text-3); }
@media (max-width: 1100px) { .auth-benefits { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .auth-hero { order: 2; padding: 32px 20px; } .auth-hero > .row { display: none; } .auth-hero h1 { font-size: 26px; margin-top: 14px; }
  .auth-mobile-logo { display: block; margin-bottom: 8px; }
  .auth-form { padding-top: 64px; }
}
@media (max-width: 1000px) { [data-dash-top] { grid-template-columns: 1fr !important; } }

/* mobile topbar: icons only, compact demo banner */
@media (max-width: 700px) {
  .topbar { gap: 4px; } .topbar .right { gap: 2px !important; }
  .topbar [data-new] span, .topbar [data-new] { font-size: 0; padding: 0 10px; } .topbar [data-new] svg { margin: 0; }
  .topbar [data-lang] b { display: none; } .topbar a[href="#/help"] { display: none; }
  .demo-banner { padding: 6px 12px; font-size: 12px; gap: 6px; } .demo-banner span { flex: 1; min-width: 0; }
}

/* environment banner (DEV / TEST) – never shown in production */
.env-banner { display: flex; align-items: center; gap: 10px; padding: 6px 24px; background: #b45309; color: #fff; font-size: var(--fs-sm); letter-spacing: .01em; }
.env-banner b { letter-spacing: .08em; } .env-banner svg { width: 16px; height: 16px; }
@media (max-width: 700px) { .env-banner { padding: 5px 12px; font-size: 12px; } .env-banner span { display: none; } }

/* ---------- Blog Automation: toggle standard ---------- */
.tgl { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.tgl input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.tgl-track { position: relative; display: inline-flex; align-items: center; width: 62px; height: 30px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); transition: background .15s, border-color .15s; flex: none; }
.tgl-knob { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(21,34,56,.3); transition: left .15s; }
.tgl-on, .tgl-off { position: absolute; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; transition: opacity .15s; }
.tgl-on { left: 9px; color: #fff; opacity: 0; } .tgl-off { right: 8px; color: var(--text-3); }
.tgl input:checked + .tgl-track { background: var(--accent); border-color: var(--accent); }
.tgl input:checked + .tgl-track .tgl-knob { left: 35px; }
.tgl input:checked + .tgl-track .tgl-on { opacity: 1; } .tgl input:checked + .tgl-track .tgl-off { opacity: 0; }
.tgl input:focus-visible + .tgl-track { outline: 2px solid var(--coral); outline-offset: 2px; }
.tgl.is-disabled { opacity: .55; cursor: not-allowed; }
.tgl-label { font-size: var(--fs-sm); color: var(--text); }
/* Blog Automation: no gradients – primary CTA is solid navy, coral only as accent */
.btn-gradient { background: var(--accent); color: #fff; }
.btn-gradient:hover { background: var(--accent-600); filter: none; }
.btn-coral { background: var(--coral); border-color: var(--coral); color: #152238; font-weight: 600; }
.btn-coral:hover { background: #ff7d66; }
.demo-banner { background: var(--accent); }
.auth-hero { background: var(--brand-primary); }
.text-gradient { background: none; color: var(--coral-700); -webkit-text-fill-color: currentColor; }
.nav a.active { box-shadow: inset 3px 0 0 var(--coral); }
