/* The platform's website. Deliberately independent of the stores' Tailwind build (static/css/app.css).
   Black, white and greys, mostly white. */
:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f7f7f7;
  --softer: #fbfbfb;
  --text: #0a0a0a;
  --muted: #6b6b6b;
  --faint: #a3a3a3;
  --line: #e9e9e9;
  --line-strong: #d4d4d4;
  --ink: #0a0a0a;
  --ink-text: #ffffff;
  --ok: #1f6f43;
  --ok-soft: #eef6f1;
  --danger: #a1261b;
  --danger-soft: #fbefed;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.04), 0 24px 60px rgba(0, 0, 0, 0.08);
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
a:hover { text-decoration-color: var(--text); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 32px; } }

/* ---------- shared bits ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); text-decoration: none; }
.brand-mark {
  display: grid; place-items: center; width: 26px; height: 26px; border-radius: 7px;
  background: var(--ink); color: var(--ink-text); font-size: 13px; font-weight: 700;
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--ink);
  background: var(--ink); color: var(--ink-text); font: inherit; font-weight: 550; font-size: 15px;
  text-decoration: none; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: #2a2a2a; border-color: #2a2a2a; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--soft); border-color: var(--line-strong); }
.btn-light { background: #fff; color: var(--ink); border-color: #fff; }
.btn-light:hover { background: #ececec; border-color: #ececec; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 14px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--text); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }

/* ---------- staff area ---------- */
.topbar { border-bottom: 1px solid var(--line); background: var(--bg); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.nav { display: flex; align-items: center; gap: 18px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--text); }
.nav form { margin: 0; }
.badge-platform {
  font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); padding: 2px 8px; border-radius: 999px;
}
main.staff { padding: 40px 0 72px; }
h1 { font-size: 30px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -0.02em; font-weight: 650; }
h2 { font-size: 20px; margin: 0 0 12px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 18px; margin: 0 0 28px; max-width: 640px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 24px;
}
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.narrow { max-width: 480px; margin: 0 auto; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--text); font: inherit;
}
.field input:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.help { color: var(--muted); font-size: 13px; margin-top: 6px; }
.errors { color: var(--danger); font-size: 14px; margin: 6px 0 0; padding: 0; list-style: none; }
.alert { border-radius: 10px; padding: 12px 14px; margin-bottom: 18px; font-size: 15px; }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-success { background: var(--ok-soft); color: var(--ok); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.domains { margin: 0; padding: 0; list-style: none; }
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.staff-footer { border-top: 1px solid var(--line); padding: 22px 0; color: var(--muted); font-size: 14px; }

/* ---------- marketing page ---------- */
.mk-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.mk-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.mk-nav { display: flex; align-items: center; gap: 28px; font-size: 15px; }
.mk-nav a { text-decoration: none; color: var(--muted); }
.mk-nav a:hover { color: var(--text); }
.mk-nav .btn { color: var(--ink-text); }
@media (max-width: 1080px) { .mk-nav { gap: 20px; } }
@media (max-width: 860px) { .mk-nav .mk-link { display: none; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; background: var(--softer);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }

.hero { position: relative; isolation: isolate; padding: 72px 0 40px; text-align: center; }
.hero > .wrap { position: relative; }

/* Animated background: a fine grid drifting slowly, with soft grey glows floating under it. Decoration only
   (aria-hidden), pure CSS, transforms only (no layout work), and still for visitors who prefer reduced motion. */
.hero-bg { position: absolute; inset: 0 0 auto; height: min(100%, 900px); z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent); mask-image: linear-gradient(to bottom, #000 55%, transparent); }
.hero-grid { position: absolute; inset: -56px 0 0;
  background-image: linear-gradient(to right, var(--line-strong) 1px, transparent 1px), linear-gradient(to bottom, var(--line-strong) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%);
  animation: hero-grid 6s linear infinite; }
.hero-bg i { position: absolute; display: block; border-radius: 50%; filter: blur(50px); will-change: transform; }
.hero-bg i:nth-of-type(1) { width: 520px; height: 520px; left: -140px; top: -160px; background: radial-gradient(circle, rgba(0,0,0,.22), transparent 70%); animation: hero-float-a 12s ease-in-out infinite alternate; }
.hero-bg i:nth-of-type(2) { width: 460px; height: 460px; right: -120px; top: 40px; background: radial-gradient(circle, rgba(0,0,0,.18), transparent 70%); animation: hero-float-b 14s ease-in-out infinite alternate; }
.hero-bg i:nth-of-type(3) { width: 380px; height: 380px; left: 38%; top: 260px; background: radial-gradient(circle, rgba(0,0,0,.14), transparent 70%); animation: hero-float-c 16s ease-in-out infinite alternate; }
@keyframes hero-grid { to { transform: translate3d(0, 56px, 0); } }
@keyframes hero-float-a { to { transform: translate3d(420px, 180px, 0) scale(1.25); } }
@keyframes hero-float-b { to { transform: translate3d(-460px, 200px, 0) scale(.85); } }
@keyframes hero-float-c { to { transform: translate3d(-320px, -200px, 0) scale(1.3); } }
@media (max-width: 640px) { .hero-bg i { filter: blur(40px); } .hero-bg i:nth-of-type(3) { display: none; } }
@media (prefers-reduced-motion: reduce) { .hero-grid, .hero-bg i { animation: none; } }
.hero h1 {
  font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 700;
  margin: 22px auto 20px; max-width: 900px;
}
.hero h1 span { color: var(--faint); }
.hero p.sub { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 640px; margin: 0 auto 32px; line-height: 1.55; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-notes { display: flex; gap: 10px 22px; justify-content: center; flex-wrap: wrap; margin: 28px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero-notes li { display: inline-flex; align-items: center; gap: 8px; }
.hero-notes svg { flex: none; }

/* the storefront drawn in CSS */
.mock { margin: 56px auto 0; max-width: 980px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: var(--shadow-lg); overflow: hidden; text-align: left; }
.mock-bar { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--softer); }
.mock-dots { display: flex; gap: 6px; }
.mock-dots i { width: 10px; height: 10px; border-radius: 50%; background: #dcdcdc; display: block; }
.mock-url { flex: 1; max-width: 360px; margin: 0 auto; text-align: center; font-size: 12px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.mock-body { padding: 22px 24px 28px; }
.mock-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.mock-logo { font-weight: 700; letter-spacing: -0.02em; font-size: 15px; }
.mock-links { display: flex; gap: 14px; }
.mock-links i, .line { display: block; height: 8px; border-radius: 4px; background: #ececec; }
.mock-links i { width: 44px; }
.mock-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; background: var(--soft); border-radius: 12px; padding: 26px; margin-bottom: 20px; }
.mock-hero .line { margin-bottom: 10px; background: #dedede; }
.mock-hero .line.big { height: 16px; width: 82%; background: #1c1c1c; }
.mock-hero .line.big + .line.big { width: 60%; }
.mock-pill { display: inline-block; margin-top: 8px; width: 96px; height: 28px; border-radius: 999px; background: var(--ink); }
.mock-photo { aspect-ratio: 4 / 3; border-radius: 10px; background: linear-gradient(145deg, #e9e9e9, #d6d6d6); position: relative; overflow: hidden; }
.mock-photo::after { content: ""; position: absolute; inset: 22% 28%; border-radius: 50%; background: linear-gradient(145deg, #f5f5f5, #e2e2e2); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.mock-item .img { aspect-ratio: 1; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); margin-bottom: 10px; }
.mock-item .line { margin-bottom: 6px; }
.mock-item .line.w1 { width: 80%; }
.mock-item .line.w2 { width: 40%; background: #cfcfcf; }
@media (max-width: 640px) {
  .mock-hero { grid-template-columns: 1fr; }
  .mock-photo { display: none; }
  .mock-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-links { display: none; }
}

.section { padding: 96px 0; }
.section.alt { background: var(--softer); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.section h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 18px; margin: 0; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feature { background: #fff; padding: 32px 28px; }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 20px; background: var(--softer); }
.feature h3 { font-size: 17px; letter-spacing: -0.01em; margin: 0 0 8px; font-weight: 650; }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }
.also { margin: 28px 0 0; color: var(--muted); font-size: 15px; text-align: center; }
.also strong { color: var(--text); font-weight: 600; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.checks li { background: #fff; padding: 20px 22px; display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.checks strong { display: block; font-weight: 600; margin-bottom: 2px; }
.checks span { color: var(--muted); font-size: 15px; }
.check { width: 22px; height: 22px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; margin-top: 2px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }
.step { border-top: 1px solid var(--ink); padding-top: 22px; }
.step .num { font-size: 13px; font-weight: 600; color: var(--faint); letter-spacing: .06em; }
.step h3 { font-size: 20px; letter-spacing: -0.02em; margin: 10px 0 8px; font-weight: 650; }
.step p { margin: 0; color: var(--muted); }

.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 0; font-size: 18px; font-weight: 600; letter-spacing: -0.01em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 400; color: var(--muted); font-size: 22px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); max-width: 680px; }

.cta { padding: 0 0 96px; }
.cta-box { background: var(--ink); color: #fff; border-radius: 24px; padding: 72px 32px; text-align: center; }
.cta-box h2 { color: #fff; font-size: clamp(30px, 4.4vw, 48px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 700; margin: 0 0 14px; }
.cta-box p { color: #a8a8a8; font-size: 18px; margin: 0 auto 30px; max-width: 520px; }

.mk-footer { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
/* ---------- the marketing pages' frame and their own blocks ---------- */
.mk-nav a[aria-current="page"] { color: var(--text); }
.mk-footer .wrap.mk-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; align-items: start; }
.mk-footer-grid nav { display: grid; gap: 10px; }
.mk-footer-grid h2 { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 4px; }
.mk-footer-grid p { margin: 8px 0 0; }
.mk-footer-grid a[aria-current="true"] { color: var(--text); }
@media (max-width: 760px) { .mk-footer .wrap.mk-footer-grid { grid-template-columns: 1fr 1fr; } .mk-footer-grid > div { grid-column: 1 / -1; } }

.page-hero { padding: 88px 0 56px; border-bottom: 1px solid var(--line); background: var(--softer); }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -0.04em; font-weight: 700; margin: 0 0 16px; max-width: 820px; }
.page-hero p.sub { color: var(--muted); font-size: 19px; max-width: 680px; margin: 0; }
.page-hero .hero-cta { margin-top: 28px; justify-content: flex-start; }
.crumbs { font-size: 14px; color: var(--faint); margin: 0 0 18px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.section.tight { padding: 64px 0; }
.section-title { font-size: clamp(26px, 3.2vw, 34px); line-height: 1.12; letter-spacing: -0.03em; font-weight: 700; margin: 0 0 10px; }
.section-intro { color: var(--muted); font-size: 17px; max-width: 640px; margin: 0 0 32px; }

.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .cards, .cards.three { grid-template-columns: 1fr; } }
.card-block { border: 1px solid var(--line); border-radius: 18px; padding: 30px 28px; background: #fff; }
.card-block h3 { font-size: 20px; letter-spacing: -0.02em; margin: 0 0 8px; font-weight: 650; }
.card-block p { margin: 0 0 12px; color: var(--muted); }
.card-block ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 15px; display: grid; gap: 6px; }
.card-block .for { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }

.compare-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; }
table.compare { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
table.compare th, table.compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
table.compare th:first-child, table.compare td:first-child { text-align: left; }
table.compare thead th { background: var(--softer); font-weight: 650; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare .yes { color: var(--text); font-weight: 600; }
table.compare .no { color: var(--faint); }

.help-groups { display: grid; gap: 56px; }
.help-group h2 { font-size: 24px; letter-spacing: -0.025em; margin: 0 0 8px; }
.help-group .faq { margin: 0; max-width: none; }
.help-toc { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 48px; padding: 0; list-style: none; }
.help-toc a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; font-size: 14px; color: var(--muted); }
.help-toc a:hover { color: var(--text); border-color: var(--line-strong); }

.prose { max-width: 760px; font-size: 17px; }
.prose h2 { font-size: 26px; letter-spacing: -0.025em; line-height: 1.2; margin: 44px 0 12px; }
.prose h3 { font-size: 20px; letter-spacing: -0.015em; margin: 32px 0 10px; }
.prose p, .prose li { color: #2b2b2b; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li + li { margin-top: 6px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 18px 0; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.prose blockquote { margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--ink); background: var(--softer); color: var(--muted); }

.mk-footer .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.mk-footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
.mk-footer a { color: var(--muted); text-decoration: none; }
.mk-footer a:hover { color: var(--text); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }

/* ---------- template gallery: each Bos Commerce version drawn in its own colours (--fm-*, apps/pages/boscommerce.py) ---------- */
.tpl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .tpl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .tpl-grid { grid-template-columns: 1fr; } }
.tpl-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; scroll-margin-top: 96px; }
.tpl-body { flex: 1; display: flex; flex-direction: column; align-items: flex-start; padding: 22px 24px 26px; }
.tpl-body .for { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.tpl-body h2 { font-size: 19px; letter-spacing: -0.02em; margin: 0 0 6px; font-weight: 650; }
.tpl-body p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }
.tpl-body .btn { margin-top: auto; }
.tpl-more { justify-content: center; background: var(--softer); border-style: dashed; }
.tpl-more .tpl-body { flex: 0; padding: 32px 28px; }
.shot { aspect-ratio: 16 / 11; display: flex; flex-direction: column; background: var(--fm-body); border-bottom: 1px solid var(--line); }
.shot .s-top { height: 5%; background: var(--fm-topbar); border-bottom: 1px solid var(--fm-topbar-line); }
.shot .s-head { height: 15%; display: flex; align-items: center; gap: 5%; padding: 0 5%; background: var(--fm-header); }
.shot .s-logo { width: 16%; height: 32%; border-radius: 3px; background: var(--fm-header-fg); opacity: .85; }
.shot .s-search { flex: 1; height: 38%; display: flex; justify-content: flex-end; overflow: hidden; border: 1px solid var(--fm-search-line); border-radius: 3px; background: var(--fm-search); }
.shot .s-search i { width: 14%; background: var(--fm-search-btn); }
.shot .s-cart { width: 9%; height: 42%; border-radius: 3px; background: var(--fm-cart); }
.shot .s-navrow { height: 9%; display: flex; padding: 0 5%; background: var(--fm-navrow); border-bottom: 2px solid var(--fm-navrow-line); }
.shot .s-nav { flex: 1; display: flex; align-items: center; gap: 5%; padding-right: 4%; background: var(--fm-nav); }
.shot .s-nav i { width: 9%; height: 22%; border-radius: 2px; background: var(--fm-nav-fg); opacity: .8; }
.shot .s-nav i:first-child { width: 13%; height: 100%; border-radius: 0; background: var(--fm-nav-active); opacity: 1; }
.shot .s-nav b { width: 15%; height: 44%; margin-left: auto; border-radius: 2px; background: var(--fm-accent); }
.shot[data-style="light"] .s-nav { margin-top: 1.2%; border-radius: 5px 5px 0 0; overflow: hidden; }
.shot .s-page { flex: 1; min-height: 0; display: flex; gap: 3%; padding: 3% 5%; }
.shot[data-sidebar="right"] .s-page { flex-direction: row-reverse; }
.shot .s-box { border-radius: 3px; background: #fff; }
.shot[data-style="magenta"] .s-box, .shot[data-style="magenta"] .s-slide { border: 1px solid #e3e3e3; }
.shot .s-side { width: 26%; display: flex; flex-direction: column; gap: 6%; }
.shot .s-cats { flex: 1.6; background: linear-gradient(var(--fm-accent) 0 14%, #fff 14%); }
.shot .s-deal { flex: 1; }
.shot .s-banner { flex: 1; background: linear-gradient(135deg, var(--fm-brand-100), var(--fm-brand-50)); }
.shot .s-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4%; }
.shot .s-slide { flex: 1.4; display: flex; flex-direction: column; justify-content: center; gap: 9%; padding: 0 8%; border-radius: 3px; background: linear-gradient(120deg, var(--fm-brand-100), var(--fm-brand-50) 70%, #fff); }
.shot[data-sidebar="none"] .s-slide { flex: 2; }
.shot .s-title { width: 48%; height: 11%; border-radius: 2px; background: #333; opacity: .75; }
.shot .s-btn { width: 20%; height: 12%; border-radius: 2px; background: var(--fm-slide-btn); }
.shot .s-info { height: 10%; display: flex; gap: 3%; }
.shot .s-info i { flex: 1; border-radius: 2px; background: var(--fm-info); border: 1px solid var(--fm-info-line); }
.shot .s-products { flex: 1.3; display: flex; gap: 3%; }
.shot .s-products .s-box { flex: 1; display: flex; flex-direction: column; gap: 8%; padding: 4%; }
.shot .s-products i { flex: 1; border-radius: 2px; background: #ececec; }
.shot .s-products b { width: 50%; height: 10%; border-radius: 2px; background: var(--fm-link); }

/* ---------- blog: the list and an article (apps/tenants/blog.py) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 760px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { position: relative; border: 1px solid var(--line); border-radius: 18px; padding: 28px; background: #fff; transition: border-color .15s; }
.post-card:hover { border-color: var(--line-strong); }
.post-card h2 { font-size: 21px; letter-spacing: -0.02em; line-height: 1.25; margin: 0 0 10px; font-weight: 650; }
.post-card h2 a { text-decoration: none; }
.post-card h2 a::after { content: ""; position: absolute; inset: 0; border-radius: 18px; }
.post-card p { margin: 0; color: var(--muted); }
.post-meta { font-size: 14px; color: var(--faint); margin: 0 0 10px; }
.page-hero .post-meta { margin: 18px 0 0; }
.draft-note { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 8px; background: #fff4d6; color: #6b4e00; font-size: 14px; }
.article-layout.has-toc { display: grid; grid-template-columns: minmax(0, 760px) 240px; grid-template-areas: "body toc"; gap: 64px; align-items: start; }
.article-layout .prose { grid-area: body; }
.article-toc { grid-area: toc; position: sticky; top: 96px; font-size: 14px; border-left: 1px solid var(--line); padding-left: 18px; }
.article-toc h2 { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 0 0 10px; }
.article-toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.article-toc ul ul { padding: 8px 0 0 12px; }
.article-toc a { color: var(--muted); text-decoration: none; }
.article-toc a:hover { color: var(--text); }
@media (max-width: 1000px) {
  .article-layout.has-toc { grid-template-columns: 1fr; grid-template-areas: "toc" "body"; gap: 28px; }
  .article-toc { position: static; border-left: 0; padding: 18px 20px; border-radius: 14px; background: var(--softer); border: 1px solid var(--line); }
}
.prose > :first-child { margin-top: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 40px 0; }
.prose code { font-size: .9em; background: var(--soft); padding: 1px 6px; border-radius: 5px; }
.prose h2[id], .prose h3[id] { scroll-margin-top: 96px; }

/* ---------- staff dashboard ---------- */
.admin { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 28px;
  padding: 22px 16px; border-right: 1px solid var(--line); background: #fff;
}
.sidebar .brand { padding: 4px 10px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a {
  display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px;
  color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500;
}
.side-nav a:hover { background: var(--soft); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--soft); color: var(--text); font-weight: 600; }
.side-nav a[aria-current="page"] svg { color: var(--text); }
.side-foot { margin-top: auto; display: grid; gap: 12px; padding: 0 6px; }
.side-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.side-link:hover { color: var(--text); }
.side-user { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
.avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.side-email { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-signout { width: 100%; }
.admin-main { background: var(--softer); min-width: 0; }
.admin-inner { max-width: 1320px; padding: 36px 40px 64px; }

.crumb { margin: 0 0 6px; font-size: 13px; color: var(--faint); }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--text); }
.page-sub { margin: 6px 0 0; }
.admin .page-head { margin-bottom: 28px; align-items: flex-end; }
.admin h1 { font-size: 28px; margin: 0; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 24px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: grid; gap: 4px; }
.kpi-label { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi-value { font-size: 34px; font-weight: 650; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi-note { font-size: 13px; color: var(--faint); }
.kpi-of { font-size: 0.6em; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.kpi a { color: inherit; text-decoration: none; }
.kpi a:hover { text-decoration: underline; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 16px; margin: 0; letter-spacing: -0.01em; }
.panel-link { font-size: 14px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.panel-link:hover { color: var(--text); }

.toolbar { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.search { flex: 1; max-width: 420px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); background: #fff; }
.search:focus-within { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.search input { flex: 1; min-height: 40px; border: 0; outline: 0; font: inherit; font-size: 15px; background: transparent; color: var(--text); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

table.data th { background: var(--softer); padding: 11px 16px; white-space: nowrap; }
table.data td { padding: 14px 16px; vertical-align: middle; }
table.data th:first-child, table.data td:first-child { padding-left: 22px; }
table.data th:last-child, table.data td:last-child { padding-right: 22px; }
table.data tbody tr:hover td { background: var(--softer); }
table.data .num { text-align: right; font-variant-numeric: tabular-nums; }
table.data .actions { text-align: right; white-space: nowrap; }
table.data .nowrap { white-space: nowrap; }
.store-cell { display: flex; align-items: center; gap: 12px; }
.store-cell .sub { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.store-mark { flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 600; font-size: 14px; }
.tag-quiet { background: transparent; }
.row-actions { display: inline-flex; gap: 6px; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: 13px; font-weight: 500; }
.empty-state { text-align: center; padding: 56px 24px; }
.empty-state .empty-title { font-weight: 600; font-size: 17px; margin: 0 0 6px; }
.empty-state .muted { margin: 0 0 20px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.form-span { grid-column: 1 / -1; }
.form-section { padding: 24px; overflow: visible; }
.form-section-head { margin-bottom: 20px; }
.form-section-head h2 { font-size: 17px; margin: 0 0 4px; }
.form-section-head p { margin: 0; font-size: 14px; }
.field.has-error input { border-color: var(--danger); }
.preview { display: grid; gap: 10px; margin-top: 4px; padding: 14px 16px; border-radius: 10px; background: var(--softer); border: 1px dashed var(--line-strong); }
.preview div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.preview-label { font-size: 13px; color: var(--muted); }
.preview-value { font-size: 14px; font-weight: 600; word-break: break-all; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.btn[disabled] { opacity: .6; cursor: progress; }

@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) {
  .admin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; align-content: start; gap: 12px 20px; padding: 14px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav { display: flex; gap: 4px; overflow-x: auto; flex: 1 1 100%; order: 3; }
  .side-nav a { white-space: nowrap; padding: 8px 10px; }
  .side-foot { margin: 0 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 0; }
  .side-link, .side-email { display: none; }
  .side-user { padding: 0; border: 0; }
  .side-signout { width: auto; }
  .admin-inner { padding: 24px 16px 48px; }
  .form-grid { grid-template-columns: 1fr; }
  table.data th, table.data td { padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 560px) { .kpis { grid-template-columns: 1fr 1fr; gap: 10px; } .kpi-value { font-size: 26px; } }

/* ---------- sign-in ---------- */
.auth {
  min-height: 100vh; display: grid; place-items: center; padding: 48px 16px;
  background: radial-gradient(1200px 600px at 50% -10%, #f3f3f3, #ffffff 60%);
}
.auth-box { width: 100%; max-width: 400px; text-align: center; }
.auth-mark { display: inline-flex; text-decoration: none; margin-bottom: 28px; }
.auth-mark .brand-mark { width: 44px; height: 44px; border-radius: 12px; font-size: 20px; }
.auth h1 { font-size: 26px; letter-spacing: -0.025em; margin: 0 0 8px; }
.auth-sub { color: var(--muted); font-size: 15px; margin: 0 auto 28px; max-width: 320px; }
.auth-card {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  box-shadow: var(--shadow-lg); padding: 28px;
}
.auth-card .field:last-of-type { margin-bottom: 24px; }
.btn-block { width: 100%; }
.auth-back { display: inline-block; margin-top: 24px; font-size: 14px; color: var(--muted); text-decoration: none; }
.auth-back:hover { color: var(--text); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.label-row label { margin-bottom: 6px; }
.label-link { font-size: 13px; color: var(--muted); text-decoration: none; }
.label-link:hover { color: var(--text); }
.stack { display: grid; gap: 20px; }
.inline-form { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 280px; margin: 0; }
.inline-form .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tag-ok { background: var(--ink); color: #fff; border-color: var(--ink); }
.auth-card .alert { margin-bottom: 18px; }
.side-user { text-decoration: none; color: inherit; border-radius: 9px; }
.side-user:hover .side-email, .side-user.is-current .side-email { color: var(--text); }

/* ---------- store detail ---------- */
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.title-row .tag { font-size: 12px; font-weight: 500; letter-spacing: 0; }
.tag-warn { background: #fff; color: var(--text); border: 1px dashed var(--text); }
.notice { border: 1px dashed var(--line-strong); background: #fff; border-radius: var(--radius); padding: 14px 18px; margin-bottom: 20px; font-size: 15px; color: var(--muted); }
.notice strong { color: var(--text); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .detail-grid { grid-template-columns: 1fr; } }
.facts { margin: 20px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; padding-bottom: 0; }
.facts dt { color: var(--muted); font-size: 14px; }
.facts dd { margin: 0; font-size: 14px; text-align: right; word-break: break-all; }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.list li:last-child { border-bottom: 0; }
.list .sub { display: block; font-size: 12px; color: var(--faint); }
.list-empty { padding: 18px 22px; margin: 0; }
.kpis-2 { grid-template-columns: 1fr 1fr; margin-bottom: 0; }
.danger { border-color: #e7c9c5; }
.btn-danger { background: var(--danger); border-color: var(--danger); }
.btn-danger:hover { background: #7f1d15; border-color: #7f1d15; }
.row-link { color: var(--text); text-decoration: none; }
.row-link:hover { text-decoration: underline; }
.field select {
  width: 100%; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); font: inherit;
}
.field select:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.field textarea {
  display: block; width: 100%; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: #fff; color: var(--text); font: inherit; line-height: 1.55; resize: vertical;
}
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: 1px; border-color: transparent; }
.field textarea[name="body"] { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.field-gap { height: 18px; }
.preview-note { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.btn-google { background: #fff; color: var(--text); border-color: var(--line-strong); gap: 10px; }
.btn-google:hover { background: var(--soft); border-color: var(--line-strong); }
.google-note { margin: 14px 0 0; text-align: center; }
.store-choices { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.auth-note { margin: 18px auto 0; font-size: 13px; color: var(--muted); max-width: 340px; }
.auth-box:has(.preview) { max-width: 440px; }
.cta-contact { margin: 22px 0 0 !important; color: #8a8a8a; }
.cta-contact a { color: #fff; text-decoration-color: #666; }
.list-form { padding: 16px 22px 0; border-top: 1px solid var(--line); }
.list-note { padding: 10px 22px 18px; margin: 0; }
.lang-switch { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 999px; }
.lang-switch a { font-size: 12px; font-weight: 600; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--ink); color: #fff; }
.auth-lang { display: flex; width: max-content; margin: 16px auto 0; }

/* ---------- billing ---------- */
.subnav { display: flex; gap: 6px; margin: -8px 0 20px; flex-wrap: wrap; }
.subnav a { font-size: 14px; padding: 7px 14px; border-radius: 999px; color: var(--muted); text-decoration: none; border: 1px solid transparent; }
.subnav a:hover { color: var(--text); }
.subnav a[aria-current="page"] { background: #fff; border-color: var(--line); color: var(--text); font-weight: 600; }
.tabs { display: flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.tabs a { font-size: 14px; padding: 6px 12px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.tabs a[aria-current="page"] { background: var(--soft); color: var(--text); font-weight: 600; }
.tabs .count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; text-align: center; }
table.data .sub { display: block; font-size: 12px; color: var(--faint); font-family: inherit; }
.field input[type="checkbox"], .field input[type="radio"] { width: auto; min-height: 0; height: auto; padding: 0; }
.wrap-actions { flex-wrap: wrap; margin-top: 14px; }
.compact-list { margin: 16px -24px -24px; border-top: 1px solid var(--line); }
.compact-list li { padding: 10px 24px; }
.lang-banner { background: var(--ink); color: #fff; font-size: 14px; padding: 9px 0; text-align: center; }
.lang-banner a { color: #fff; font-weight: 600; text-decoration-color: #777; margin-left: 6px; }
.feature-tags { display: flex; flex-wrap: wrap; gap: 4px; max-width: 360px; }
.feature-tags .tag { white-space: nowrap; }
.feature-picks { border: 0; padding: 0; margin: 0 0 18px; }
.feature-picks legend { font-weight: 600; font-size: 14px; margin-bottom: 4px; padding: 0; }
.feature-picks .pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); font-weight: 400; cursor: pointer; }
.feature-picks .pick input { margin-top: 3px; accent-color: var(--ink); }
.feature-picks .pick strong { display: block; font-size: 14px; }
.feature-picks .pick .sub { display: block; font-size: 13px; color: var(--muted); }

/* ---------- billing: plans ---------- */
.plan-head > div { flex: 1 1 520px; }
.kpi-text { font-size: 22px; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 24px; }
.plan-card { display: flex; flex-direction: column; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 24px; }
.plan-card:target, .plan-card.is-editing { border-color: var(--ink); box-shadow: var(--shadow); }
.plan-card.is-hidden { background: var(--softer); border-style: dashed; }
.plan-card.is-hidden h2, .plan-card.is-hidden .plan-price strong { color: var(--muted); }
.plan-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.plan-card-head h2 { margin: 0; font-size: 17px; letter-spacing: -0.01em; }
.plan-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px; }
.plan-price { margin: 0; }
.plan-price strong { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.plan-price span { color: var(--muted); font-size: 14px; }
.plan-desc { margin: -6px 0 0; color: var(--muted); font-size: 14px; }
.plan-limits { margin: 0; border-top: 1px solid var(--line); }
.plan-limits div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.plan-limits dt { color: var(--muted); }
.plan-limits dd { margin: 0; font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.plan-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.plan-features li { display: flex; gap: 8px; }
.plan-features li::before { flex: none; width: 16px; text-align: center; font-weight: 700; }
.plan-features li.yes::before { content: "✓"; }
.plan-features li.no { color: var(--faint); }
.plan-features li.no::before { content: "–"; }
.plan-card-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-editor { scroll-margin-top: 24px; overflow: visible; }
.plan-editor-body { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; padding: 24px; align-items: start; }
.plan-group { border: 0; padding: 0 0 4px; margin: 0 0 22px; border-bottom: 1px solid var(--line); min-width: 0; }
.plan-group legend, .plan-group.feature-picks legend { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 0; margin-bottom: 14px; }
.plan-group.feature-picks { margin-bottom: 22px; }
.plan-group.feature-picks .help { margin: -6px 0 10px; }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.check-field .pick { display: flex; gap: 10px; align-items: flex-start; margin: 30px 0 0; font-weight: 400; cursor: pointer; }
.check-field .pick input { margin-top: 3px; accent-color: var(--ink); }
.check-field .pick strong { display: block; font-size: 14px; }
.check-field .pick .sub { display: block; font-size: 13px; color: var(--muted); }
.plan-preview { position: sticky; top: 24px; display: grid; gap: 10px; }
.plan-preview .section-label { margin: 0; }
.plan-preview .price-card { padding: 26px 24px; }
.plan-preview .btn { pointer-events: none; }
@media (max-width: 1100px) { .plan-editor-body { grid-template-columns: 1fr; } .plan-preview { position: static; max-width: 380px; } }
@media (max-width: 600px) { .pick-grid { grid-template-columns: 1fr; } .plan-editor-body { padding: 18px; } .check-field .pick { margin-top: 0; } }

/* ---------- pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.price-card { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; }
.price-card.featured { border-color: var(--ink); box-shadow: var(--shadow-lg); }
.price-badge { position: absolute; top: -12px; left: 28px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 999px; }
.price-card h3 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.02em; }
.price-desc { color: var(--muted); font-size: 15px; margin: 0; }
.price { margin: 22px 0 22px; }
.price strong { font-size: 34px; letter-spacing: -0.035em; font-weight: 700; }
.price span { color: var(--muted); font-size: 15px; }
.price .price-local { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.price-list { list-style: none; margin: 24px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; font-size: 15px; }
.price-list li { display: flex; gap: 10px; align-items: flex-start; }
.price-list li::before { flex: none; width: 18px; text-align: center; font-weight: 700; }
.price-list li.yes::before { content: "✓"; color: var(--text); }
.price-list li.no { color: var(--faint); }
.price-list li.no::before { content: "–"; color: var(--faint); }
.section-label { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 8px 0 12px; }
.kpi-money { display: grid; gap: 2px; font-size: 26px; }
.kpi-money span + span { font-size: 18px; color: var(--muted); }
.two-panels { grid-template-columns: 1fr 1fr; margin-bottom: 28px; }
@media (max-width: 1000px) { .two-panels { grid-template-columns: 1fr; } }
.notice-link { display: block; text-decoration: none; margin-bottom: 20px; }
.notice-link:hover { border-color: var(--text); }

/* ---------- a store's labels and notes (its page, the store list) ---------- */
.label-row { display: flex; flex-wrap: wrap; gap: 6px; padding: 16px 22px 0; }
.label-row form { display: inline; }
.tag-btn { cursor: pointer; font: inherit; font-size: 12px; }
.tag-btn:hover { border-color: var(--text); color: var(--text); }
.note-form { padding-bottom: 6px; }
.note-form textarea[name="body"] { font-family: inherit; font-size: 15px; }
.notes { border-top: 1px solid var(--line); }
.label-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.label-filter .tag { text-decoration: none; }
.label-filter .count { font-size: 11px; opacity: .7; }

/* ---------- staff: what each member may change; two-factor sign-in ---------- */
.section-picks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; flex-basis: 100%; }
.section-picks legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.section-picks label { display: inline-flex; gap: 6px; align-items: center; font-size: 14px; cursor: pointer; }
.section-picks input { accent-color: var(--ink); }
.section-picks .help { flex-basis: 100%; margin: 0; }
.staff-sections summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 4px; }
.staff-sections form { display: grid; gap: 8px; padding-top: 8px; }
form.inline { display: inline; }
.qr { margin: 4px 0 12px; }
.qr svg { width: 200px; height: 200px; display: block; }
.recovery-codes { list-style: none; padding: 0; margin: 0 0 20px; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 32px; font-size: 16px; }

/* ---------- search everything; act on many stores at once ---------- */
.side-search input { width: 100%; min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 9px; font: inherit; font-size: 14px; background: var(--softer); color: var(--text); }
.side-search input:focus { outline: 2px solid var(--ink); outline-offset: 1px; background: #fff; }
kbd { font: inherit; font-size: 12px; padding: 0 6px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 5px; background: #fff; }
.results { display: grid; gap: 20px; margin-top: 20px; }
.panel-head .count { margin-left: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--softer); }
.bulk-bar select, .bulk-bar input[type="text"] { min-height: 32px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; color: var(--text); }
.bulk-bar .btn[disabled] { cursor: not-allowed; }
table.data .pick { width: 1%; padding-right: 0; }
table.data .pick input { width: 16px; height: 16px; margin: 0; vertical-align: middle; accent-color: var(--ink); }
@media (max-width: 900px) { .side-search { order: 2; flex: 1 1 100%; } }

/* ---------- the System page ---------- */
.tag-bad { background: var(--danger); color: #fff; border-color: var(--danger); }
.system-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.system-wide { margin-top: 20px; }
.system-facts { margin: 0; padding: 0 22px 16px; border-top: 0; }
.system-facts dd .sub { display: block; margin-top: 2px; font-size: 12px; color: var(--faint); }
.system-facts progress { display: block; width: 160px; margin: 6px 0 0 auto; accent-color: var(--ink); }
.system-flags li { padding: 10px 22px; font-size: 14px; }
.system-flags { border-top: 1px solid var(--line); }
@media (max-width: 900px) { .system-grid { grid-template-columns: 1fr; } }

/* ---------- Trends: charts (apps/tenants/charts.py) ---------- */
.trend-range { margin: -8px 0 20px; border-bottom: 0; padding: 0; }
.trends-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.chart { --series-1: #2a78d6; --series-1-hover: #5598e7; margin: 0; padding: 18px 22px 14px; overflow: visible; }
.chart h2 { font-size: 16px; margin: 0; letter-spacing: -0.01em; }
.chart .about { margin: 4px 0 14px; font-size: 13px; color: var(--muted); }
.columns { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.columns .grid { stroke: var(--line); stroke-width: 1; shape-rendering: crispEdges; }
.columns .tick { fill: var(--faint); font-size: 11px; text-anchor: end; dominant-baseline: middle; font-variant-numeric: tabular-nums; }
.columns .label { fill: var(--muted); font-size: 11px; text-anchor: middle; }
.columns .cap { fill: var(--text); font-size: 12px; font-weight: 600; text-anchor: middle; }
.columns .bar { fill: var(--series-1); }
.columns .hit { fill: transparent; }
.columns .band { outline: none; }
.columns .band:hover .bar, .columns .band:focus .bar { fill: var(--series-1-hover); }
.columns .band:focus-visible .hit { stroke: var(--ink); stroke-width: 1; }
.chart-empty { margin: 36px 0; text-align: center; color: var(--muted); font-size: 14px; }
.chart-table summary { cursor: pointer; font-size: 13px; color: var(--muted); margin-top: 10px; }
.chart-table table { margin-top: 8px; }
.chart-table th { font-weight: 500; text-align: left; }
.chart-tip { position: absolute; z-index: 50; transform: translate(-50%, calc(-100% - 8px)); padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; line-height: 1.3; pointer-events: none; white-space: nowrap; box-shadow: var(--shadow); }
.plan-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan-bars li { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; align-items: center; gap: 12px; outline: none; }
.plan-bars li:focus-visible { box-shadow: 0 0 0 1px var(--ink); border-radius: 6px; }
.plan-bars-name { font-size: 14px; font-weight: 500; }
.plan-bars-name .sub { display: block; font-size: 12px; font-weight: 400; color: var(--faint); }
.plan-bars-track { display: block; height: 16px; }
.plan-bars-bar { display: block; height: 100%; min-width: 2px; border-radius: 0 4px 4px 0; background: var(--series-1); }
.plan-bars li:hover .plan-bars-bar, .plan-bars li:focus .plan-bars-bar { background: var(--series-1-hover); }
.plan-bars-value { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .trends-grid { grid-template-columns: 1fr; } }

/* ---------- a store's deal: trial, free months, its own price, a discount ---------- */
.deal { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.deal-forms { display: grid; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.deal-forms .inline-form { align-items: flex-end; }
.deal-forms .field { margin: 0; }
.with-unit { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.with-unit input[type="number"] { width: 84px; }
