/* 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; }
[hidden] { display: none !important; }   /* the hidden attribute always wins over layout classes (.col, .row …) */
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; }
/* links inside running text are underlined, not only coloured (WCAG 1.4.1); buttons and navigation stay as they are */
:is(p, .hint, .sub, .small, .xs, .check, .alert, label, .crumbs, .c-dl) a:not(.btn):not([class*="btn"]) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
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:not([type]), 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], 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; flex-shrink: 0; width: 36px; height: 20px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--border-strong); position: relative; cursor: pointer; transition: background .15s; margin: 0; }
.switch input::after { content: ""; position: absolute; top: 1px; left: 1px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: left .15s; }
.switch input:checked { background: var(--accent); border-color: 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);  flex-wrap: wrap; }
.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); } .delta.flat { color: var(--text-3); }

/* ---------- 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-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }   /* tabindex=0 set by app.js → scrollable with the keyboard */
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-text); 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-text); 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 scrollbar: thin and only visible while the pointer is over the menu (Windows showed a 15 px grey bar) */
.sidebar { scrollbar-width: thin; scrollbar-color: transparent transparent; }
.sidebar:hover, .sidebar:focus-within { scrollbar-color: var(--border-strong) transparent; }
.sidebar::-webkit-scrollbar { width: 8px; } .sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: transparent; border-radius: 8px; } .sidebar:hover::-webkit-scrollbar-thumb { background: var(--border-strong); }
/* low windows (laptops ~700 px high): a bit more compact so the menu needs less scrolling */
@media (max-height: 820px) { .nav a { padding-top: 6px; padding-bottom: 6px; } .nav .sec { padding-top: 10px; padding-bottom: 4px; } }
.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; }
.ws-wrap { position: relative; margin: 0 12px 10px; }
.ws-wrap .dd-menu { left: 0; right: 0; min-width: 0; }   /* company menu opens right below the box, same width */
.workspace[aria-expanded="true"] .ico:last-child { transform: rotate(180deg); }
.workspace .ico:last-child { transition: transform .15s; color: var(--text-3); }
.workspace { width: 100%; font: inherit; color: inherit; text-align: left; 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 .ico { color: var(--text-3); }
/* active page: solid brand pill (white text/icon on the accent colour, 5.9:1 for the brand violet) */
.nav a.active { background: var(--accent); color: var(--accent-contrast); font-weight: 600; box-shadow: 0 2px 6px color-mix(in srgb, var(--accent) 30%, transparent); }
.nav a.active .ico, .nav a.active .count { color: var(--accent-contrast); }
.nav a.active:hover { background: color-mix(in srgb, var(--accent) 88%, black); color: var(--accent-contrast); }   /* darker in both modes – white text stays readable */
.nav a.active:focus-visible { outline-color: var(--text); }
.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; flex: 0 1 360px; min-width: 0; }   /* shrinks first – the icons never wrap */
.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: 1600px; width: 100%; margin: 0; }   /* starts right next to the sidebar (centred 1360 px left a ~150 px gap on wide screens) */
.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; }
.dd-menu { position: absolute; right: 0; top: calc(100% + 6px); min-width: 220px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60; }
.dd-menu a, .dd-menu button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius-sm); background: none; border: 0; color: var(--text); font: var(--fs)/1.3 var(--font); cursor: pointer; text-align: left; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--surface-3); text-decoration: none; }
.dd-menu .sep { height: 1px; background: var(--border); margin: 6px 0; }

/* ---------- 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-text); }
.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-text); }
.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 .bar { fill: var(--accent); } .chart text { fill: var(--text-3); font-size: 11px; }
/* line chart (ui.js lineChart) */
.lc { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: var(--lc-h, 220px) auto; column-gap: 12px; padding: 6px 4px 0; }
.lc-y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 12px; line-height: 16px; color: var(--text-3); margin: -8px 0; font-variant-numeric: tabular-nums; }
.lc-plot { position: relative; }
.lc-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lc-grid { stroke: var(--border); stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; } .lc-grid.base { stroke: var(--border-strong); stroke-dasharray: none; }
.lc-line { fill: none; stroke: var(--accent-text); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.lc-s1 { stop-color: var(--accent); stop-opacity: .26; } .lc-s2 { stop-color: var(--accent); stop-opacity: 0; }
.lc-pt { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--surface); border: 2px solid var(--accent-text); opacity: 0; transition: opacity .12s, transform .12s; }
.lc-pt::before { content: ""; position: absolute; inset: -9px; }                 /* bigger hover area */
.lc-pt.last, .lc-pt:hover { opacity: 1; } .lc-pt:hover { transform: scale(1.25); z-index: 2; }
.lc-pt::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 5px 9px; border-radius: 8px;
  background: var(--text); color: var(--surface); font: 600 12px/1.2 var(--font); box-shadow: var(--shadow); pointer-events: none; display: none; }
.lc-pt:hover::after { display: block; }   /* only rendered on hover – hidden tooltips must not widen the page */
.lc-pt.tr::after { left: auto; right: -6px; transform: none; } .lc-pt.tl::after { left: -6px; transform: none; }   /* near the edges: open inwards */
.lc-x { grid-column: 2; position: relative; height: 26px; font-size: 12px; color: var(--text-3); }
.lc-x span { position: absolute; top: 8px; transform: translateX(-50%); white-space: nowrap; } .lc-x .first { transform: none; } .lc-x .last { transform: translateX(-100%); }
@media (max-width: 600px) { .lc { --lc-h: 170px !important; } .lc-x span:not(.first):not(.last):nth-child(even) { display: none; } }
.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; }
.codebox:has(> .btn) { padding-top: 46px; }   /* room for the copy button above the code */
.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; display: inline-block; padding: 4px 0; }   /* ≥ 24 px tap height */
.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-text); }
.admin-zone .sec svg { width: 14px; height: 14px; }
.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); }

/* ---------- 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, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 420px) { .auth-plan-teaser { grid-template-columns: minmax(0, 1fr); } }
.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: 1279px) { [data-dash-top] { grid-template-columns: 1fr !important; } }   /* setup list next to the chart was ~220 px at 1024 */

/* 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; } }

/* phone/tablet: one column, form first (at the end of the file: the redesign rules above override the earlier 900 px rule) */
@media (max-width: 900px) {
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-form { order: -1; padding: 72px 20px 32px; }
  .auth-hero { padding: 32px 20px; }
  .auth-hero h1 { font-size: 26px; }
}
/* phone: card headers stack, KPI tiles two per row, table action buttons stay visible, closed drawer casts no shadow */
@media (max-width: 600px) {
  .card-head { flex-wrap: wrap; }
  .card-head > :is(h3, div:first-child) { min-width: 0; }
  .card-head > .right, .card-head > .switch { margin-left: 0; }
  .grid.g4:has(> .kpi), .grid.g3:has(> .kpi) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .value { font-size: 22px; }
  .table-wrap td.actions { position: sticky; right: 0; background: var(--surface); box-shadow: -8px 0 8px -8px rgba(16, 27, 48, .18); }
}
@media (max-width: 900px) { body:not(.nav-open) .sidebar { box-shadow: none; } }
/* ---------- responsive details (review 13.10.2026: 320 / 768 / 1024 px) ---------- */
.topbar > .right, .topbar .right { flex: none; flex-wrap: nowrap; }
/* scroll hint for wide tables (inside cards): a soft shadow appears on the side where more columns are (pure CSS) */
.table-wrap { background:
  linear-gradient(to right, var(--surface), var(--surface)) left / 24px 100% no-repeat local,
  linear-gradient(to left, var(--surface), var(--surface)) right / 24px 100% no-repeat local,
  radial-gradient(farthest-side at 0 50%, rgba(16, 27, 48, .16), transparent) left / 12px 100% no-repeat scroll,
  radial-gradient(farthest-side at 100% 50%, rgba(16, 27, 48, .16), transparent) right / 12px 100% no-repeat scroll; }
.pager > * { white-space: nowrap; }
/* a lone last card in a two-column grid uses the full width */
@media (min-width: 701px) { .grid.g2 > .card:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 600px) { .grid:has(> .kpi) > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } }
@media (max-width: 420px) {
  .pager { flex-wrap: wrap; justify-content: center; }
  .content { padding: 12px; }
  .c-vtabs, .c-admin-nav { margin-left: -12px !important; margin-right: -12px !important; padding-left: 12px !important; padding-right: 12px !important; }   /* edge-to-edge scroll bars match the 12 px page padding */
  .page-head h1 { font-size: 22px; }
}

.frame-block { min-height: 100vh; display: grid; place-content: center; gap: 12px; text-align: center; padding: 24px; color: var(--text-2); }
