/* A customer storefront. How a store looks arrives in theme.css as variables
   (lib/storefront-design-tokens.js) and as a few class names on <body>; the
   values below are the plain store, for a page that loads before theme.css.
   No scripts anywhere. */
:root {
  --accent: #1c1c1c; --on-accent: #ffffff;
  --bg: #ffffff; --surface: #ffffff; --text: #2b2b2b; --muted: #6b6b6b; --faint: #9a9a9a;
  --line: #d6d6d6; --line-soft: #ededed; --soft: #f6f6f6;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif; --font-head: var(--font-body);
  --head-weight: 400; --scale: 1;
  --radius-sm: 6px; --radius: 9px; --radius-lg: 14px;
  --page-w: 880px; --cols: 3; --pic-ratio: 1 / 1; --pic-fit: contain; --logo-h: 56px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, .store-body { margin: 0; font-family: var(--font-body); font-size: calc(16px * var(--scale)); line-height: 1.55; color: var(--text); background: var(--bg); }
h1, h2, h3, .brand .name { font-family: var(--font-head); }
.head-upper h1, .head-upper h2, .head-upper h3, .head-upper .brand .name { text-transform: uppercase; letter-spacing: .06em; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* ─ Telescope super admin bar (customers never see it) ─ */
.staff-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 8px 16px; background: #1c1c1c; color: #ffffff; font-size: 13px; }
.staff-bar strong { font-weight: 600; }
.staff-bar form { margin: 0; }
.staff-bar button { font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 6px; border: 1px solid rgba(255,255,255,.4); background: transparent; color: #ffffff; cursor: pointer; }

/* ─ layout: colour rail + page ─ */
.shell { display: flex; min-height: 100vh; }
.staff-bar + .shell { min-height: calc(100vh - 40px); }
.rail { flex: 0 0 260px; background: var(--accent); color: var(--on-accent); padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 4px; }
.rail a { display: block; padding: 10px 0; font-size: 19px; text-decoration: none; opacity: .92; }
.rail a:hover, .rail a.on { opacity: 1; text-decoration: underline; text-underline-offset: 5px; }
.rail .who { margin-top: auto; padding-top: 28px; font-size: 13px; line-height: 1.5; opacity: .9; overflow-wrap: anywhere; }
.rail .who form { margin: 10px 0 0; }
.rail .who button { font: inherit; font-size: 13px; padding: 0; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; }
.main { flex: 1 1 auto; min-width: 0; padding: 36px 32px 72px; }
.brand { text-align: center; margin-bottom: 56px; }
.bar .brand { margin-bottom: 0; }
.brand img { max-height: var(--logo-h); max-width: min(100%, 420px); }
.logo-left .brand { text-align: left; }
.brand .name { font-size: 26px; font-weight: 600; letter-spacing: -.01em; }
.page { max-width: var(--page-w); margin: 0 auto; }
h1.title { font-size: 26px; font-weight: 600; margin-bottom: 6px; }
.lede { color: var(--muted); font-size: 15px; margin-bottom: 26px; }
h2 { font-size: 17px; font-weight: 600; margin: 36px 0 12px; }

/* ─ messages ─ */
.note { padding: 11px 14px; border-radius: var(--radius); font-size: 14px; margin: 0 0 18px; background: #f3f6f1; border: 1px solid #cfdcc6; }
.note.error { background: #fbf1ee; border-color: #e8c4ba; }

/* ─ forms ─ */
label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
input[type=email], input[type=text], select { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: inherit; }
input:focus, select:focus, button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn { font: inherit; font-size: 15px; font-weight: 600; padding: 11px 18px; border-radius: var(--radius); border: 1px solid transparent; background: var(--accent); color: var(--on-accent); cursor: pointer; }
.btn.quiet { background: transparent; color: inherit; border-color: var(--line); font-weight: 400; font-size: 13px; padding: 7px 11px; }
.row { display: grid; grid-template-columns: 2fr 2fr 1.4fr auto; gap: 12px; align-items: end; }
.roles { margin: 14px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--muted); }
.roles strong { color: var(--text); font-weight: 600; }

/* ─ people table ─ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; vertical-align: middle; padding: 11px 14px; border-bottom: 1px solid var(--line-soft); }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: var(--soft); }
tr:last-child td { border-bottom: 0; }
td .sub { display: block; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
td form { display: flex; gap: 8px; align-items: center; margin: 0; }
td select { width: auto; padding: 6px 8px; font-size: 13px; }
tr.off td { color: var(--faint); }
.tag { display: inline-block; font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }

/* ─ sign-in card ─ */
.gate { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: var(--soft); }
.card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 36px; border-top: 6px solid var(--accent); }
.card .brand { margin-bottom: 28px; }
.card h1 { font-size: 19px; font-weight: 600; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); }
.card p + p { margin-top: 12px; }
.card form { margin-top: 22px; }
.card .btn { width: 100%; margin-top: 16px; }
.card .foot { margin-top: 24px; font-size: 13px; color: var(--muted); }

@media (max-width: 760px) {
  .main { padding: 24px 16px 56px; }
  .brand { margin-bottom: 32px; }
  .row { grid-template-columns: 1fr; }
  .card { padding: 32px 22px; }
}

/* ─ products ─ */
.grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 40px 28px; }
.tile { display: block; text-align: center; text-decoration: none; }
.tile-title { display: block; margin-top: 14px; font-style: italic; font-size: 17px; }
.tile:hover .tile-title { text-decoration: underline; text-underline-offset: 4px; }
.tile .tag { margin-top: 6px; }
.pic { display: block; aspect-ratio: var(--pic-ratio); background: var(--soft); border-radius: var(--radius); overflow: hidden; }
.pic img { width: 100%; height: 100%; object-fit: var(--pic-fit); display: block; }
.pic.small, .pic.big { aspect-ratio: 1 / 1; }
.pic.small img, .pic.big img { object-fit: contain; }
.pic.small { flex: 0 0 44px; width: 44px; border-radius: var(--radius-sm); }
.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.product h2 { margin-top: 26px; }
.description { white-space: pre-line; margin-top: 14px; }
.sizes { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.sizes li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 14px; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.sizes li:last-child { border-bottom: 0; }
.sizes li.gone { color: var(--faint); }
.low-note { text-align: center; max-width: 640px; margin: 28px auto 0; }

/* ─ stock ─ */
.stock { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px; margin: 0 0 18px; }
.stock.is-low { border-color: #e2b76a; }
.stock header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.stock header h2 { margin: 0; font-size: 17px; }
.stock .on-hand { margin-left: auto; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.tag.low { border-color: #d9a441; color: #8a5a00; background: #fdf6e7; }
th.num, td.num { text-align: right; font-variant-numeric: tabular-nums; }
input.level { width: 110px; font: inherit; font-size: 14px; padding: 7px 9px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface); color: inherit; }
.stock-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 12px; }
.stock-foot label { margin: 0; }
.stock details { margin-top: 14px; border-top: 1px solid var(--line-soft); padding-top: 12px; }
.stock summary { cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.stock details form { margin-top: 14px; }
.restock { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.stock details input[type=text] { margin-bottom: 14px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
  .product { grid-template-columns: 1fr; gap: 20px; }
  .stock { padding: 14px; }
  .stock .on-hand { margin-left: 0; }
}

/* ─ cart, checkout, orders ─ */
.buy { margin-top: 24px; }
.buy fieldset { border: 0; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.buy legend { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; padding: 0; }
.pick { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 15px; text-transform: none; letter-spacing: 0; color: inherit; cursor: pointer; }
.pick.gone { color: var(--faint); cursor: default; }
.sub-inline { font-size: 12px; }
.buy-row { display: flex; align-items: flex-end; gap: 12px; }
.actions { margin-top: 22px; display: flex; align-items: center; gap: 18px; }
a.btn { display: inline-block; text-decoration: none; }
td .sub.warn { color: #a3541a; }
.checkout h2:first-child { margin-top: 0; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.fields .wide { grid-column: 1 / -1; }
.field-error { display: block; margin-top: 4px; font-size: 13px; color: #a33a21; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px 24px; margin: 26px 0; }
.facts div { margin: 0; }
.facts dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 4px; }
.facts dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
h1.title .tag { vertical-align: middle; margin-left: 8px; font-weight: 400; }

@media (max-width: 760px) {
  .fields { grid-template-columns: 1fr; }
}

/* ─ gift links ─ */
.choose { border: 0; margin: 18px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.choose legend { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; padding: 0; }
textarea { width: 100%; font: inherit; font-size: 15px; padding: 10px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: inherit; resize: vertical; }
input[type=date] { width: 100%; font: inherit; font-size: 15px; padding: 9px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: inherit; }
input.link-url { width: 100%; min-width: 220px; font: inherit; font-size: 12px; padding: 6px 8px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--soft); color: var(--muted); }
.quote { font-style: italic; color: var(--muted); margin: 0 0 18px; white-space: pre-line; }
.gate.gift { align-items: flex-start; padding-top: 40px; padding-bottom: 40px; }
.card.wide { max-width: 640px; }
.card.wide h2 { margin: 28px 0 12px; }
.card.wide .btn { margin-top: 20px; }
.offer { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.offer .pic.small { flex: 0 0 72px; width: 72px; }
.offer-title { font-weight: 600; margin-bottom: 4px; }
.offer-sizes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.card .facts { margin: 18px 0; }

/* ─ budgets and approvals ─ */
.tile-value { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.value { font-size: 17px; color: var(--muted); margin: 0 0 12px; }
.note.warn { background: #fdf6e7; border-color: #e2b76a; }
.decide { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; margin-top: 12px; }
.decide form { display: flex; gap: 8px; align-items: center; margin: 0; }
.decide input[type=text] { width: 220px; font-size: 14px; padding: 8px 10px; }
form.checkout + .note { margin-top: 18px; }

/* ─ billing and reports ─ */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 22px; }
.tabs a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; text-decoration: none; }
.tabs a.on { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.actions.tight { margin: 0 0 14px; }
.facts.totals { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }

/* ─ single sign-on ─ */
.card a.btn.sso { display: block; text-align: center; margin: 18px 0 6px; }
.card .btn.quiet { width: 100%; font-size: 14px; padding: 10px; }

/* ─ the look a team chose (Settings → Design) ─ */
.btn-outline .btn:not(.quiet) { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline .tone-accent .btn, .btn-outline .tone-dark .btn, .btn-outline .tone-image .btn { color: inherit; border-color: currentColor; }
.card-line .tile, .card-line .box { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px; background: var(--surface); }
.card-lift .tile, .card-lift .box { border-radius: var(--radius-lg); padding: 14px; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 8px 24px rgba(0,0,0,.07); }

/* the menu across the top instead of down the side */
.nav-top .shell { flex-direction: column; }
.nav-top .rail { flex: 0 0 auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 26px; padding: 14px 32px; }
.nav-top .rail a { padding: 6px 0; font-size: 16px; }
.nav-top .rail .who { margin: 0 0 0 auto; padding: 0; text-align: right; line-height: 1.35; }
.nav-top .rail .who form { margin: 2px 0 0; }

/* ─ home page sections ─ */
.sec { margin: 0 0 44px; }
.sec h2 { font-size: calc(24px * var(--scale)); font-weight: var(--head-weight); margin: 0 0 14px; }
.sec p { white-space: pre-line; }
.hero { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.hero-in { max-width: 640px; }
.hero h1 { font-size: calc(34px * var(--scale)); font-weight: var(--head-weight); line-height: 1.2; margin-bottom: 18px; }
.hero.size-m h1 { font-size: calc(42px * var(--scale)); }
.hero.size-l h1 { font-size: calc(54px * var(--scale)); }
.hero-go { margin-top: 24px; }
.hero.align-center { text-align: center; }
.hero.align-center .hero-in { margin: 0 auto; }
.hero.tone-plain h1 { color: var(--accent); }
.hero.tone-accent, .hero.tone-dark, .hero.tone-image { padding: 56px 40px; }
.hero.size-m.tone-accent, .hero.size-m.tone-dark, .hero.size-m.tone-image { padding: 84px 40px; }
.hero.size-l.tone-accent, .hero.size-l.tone-dark, .hero.size-l.tone-image { padding: 124px 40px; }
.hero.tone-accent { background: var(--accent); color: var(--on-accent); }
.hero.tone-dark { background: var(--text); color: var(--bg); }
.hero.tone-accent .btn { background: var(--on-accent); color: var(--accent); }
.hero.tone-dark .btn { background: var(--bg); color: var(--text); }
.hero.tone-image { color: #ffffff; background: #1c1c1c; }
.hero.tone-image .hero-pic { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .62; }
.hero.tone-image .hero-in { position: relative; }
.hero.tone-image .btn { background: #ffffff; color: #1c1c1c; }
/* a picture beside the words, when the picture is not the background */
.hero.has-pic:not(.tone-image) { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; text-align: left; }
.hero.has-pic:not(.tone-image) .hero-pic { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); order: 2; }
.hero.has-pic:not(.tone-image) .hero-in { margin: 0; }
.words { max-width: 680px; }
.words.align-center { text-align: center; margin-left: auto; margin-right: auto; }
.shelf .grid { margin-top: 0; }
.more { margin-top: 18px; font-size: 15px; }
.more a { text-underline-offset: 4px; }
.figure { margin-left: 0; margin-right: 0; }
.figure img { display: block; width: 100%; max-height: 520px; object-fit: cover; border-radius: var(--radius-lg); }
.figure:not(.wide) { max-width: 680px; margin-left: auto; margin-right: auto; }
.figure figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); text-align: center; }
.box-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 26px; }
.box h3 { font-size: calc(18px * var(--scale)); font-weight: var(--head-weight); margin: 14px 0 6px; }
.box p { font-size: 15px; color: var(--muted); }
.box-pic { display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--soft); }
.box-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.banner { padding: 14px 20px; border-radius: var(--radius); text-align: center; font-size: 16px; }
.banner.tone-accent { background: var(--accent); color: var(--on-accent); }
.banner.tone-soft { background: var(--soft); border: 1px solid var(--line-soft); }
.space.size-s { height: 8px; } .space.size-m { height: 40px; } .space.size-l { height: 88px; }

/* ─ settings ─ */
.plain { list-style: none; margin: 0 0 8px; padding: 0; }
table.matrix th.tick, table.matrix td.tick { text-align: center; width: 92px; }
table.matrix input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--accent); }
td form input[type=text] { min-width: 180px; padding: 7px 10px; font-size: 13px; }

@media (max-width: 760px) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .nav-top .rail { padding: 12px 16px; gap: 4px 18px; }
  .hero.has-pic:not(.tone-image) { grid-template-columns: 1fr; gap: 20px; }
  .hero.has-pic:not(.tone-image) .hero-pic { order: 0; }
  .hero.tone-accent, .hero.tone-dark, .hero.tone-image,
  .hero.size-m.tone-accent, .hero.size-m.tone-dark, .hero.size-m.tone-image,
  .hero.size-l.tone-accent, .hero.size-l.tone-dark, .hero.size-l.tone-image { padding: 44px 22px; }
  .hero h1, .hero.size-m h1, .hero.size-l h1 { font-size: calc(30px * var(--scale)); }
  .sec { margin-bottom: 32px; }
}

/* messages keep their own paper, whatever colours a store chose */
.note, .tag.low { color: #2b2b2b; }

/* ─ the bar across the top of every page: the menu button, the brand, your profile, the cart ─ */
.nav-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; margin: -6px 0 48px; min-height: 44px; }
.bar-menu { justify-self: start; display: none; padding: 9px; margin-left: -9px; border-radius: 999px; color: var(--accent); cursor: pointer; }
.bar-menu:hover, .rail-close:hover { background: var(--soft); }
.nav-toggle:focus-visible ~ .shell .bar-menu { outline: 2px solid var(--accent); outline-offset: 2px; }
.bar-brand { grid-column: 2; justify-self: center; text-decoration: none; min-width: 0; }
.logo-left .bar { grid-template-columns: auto 1fr auto; }
.logo-left .bar-brand { justify-self: start; }
.bar-tools { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 2px; }
.bar-tools a { position: relative; display: inline-flex; padding: 9px; border-radius: 999px; color: var(--accent); }
.bar-tools a:hover, .bar-tools a.on { background: var(--soft); }
.bar-tools svg, .bar-menu svg, .rail-close svg { display: block; }
.bar-tools .count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 11px; font-weight: 600; line-height: 17px; text-align: center; }
.rail-close { display: none; position: absolute; top: 16px; right: 14px; padding: 8px; border-radius: 999px; color: inherit; cursor: pointer; }
.rail-close:hover { background: rgba(127, 127, 127, .22); }
.scrim { display: none; }

/* the menu tucked away until it is asked for; opening it moves the page over, and its × sits in its own corner */
.nav-drawer .bar-menu { display: inline-flex; }
.nav-drawer .rail { position: relative; flex: 0 0 0; width: 0; padding: 72px 0 32px; overflow: hidden; white-space: nowrap; transition: flex-basis .24s ease, padding .24s ease; }
.nav-drawer .nav-toggle:checked ~ .shell .rail { flex-basis: 260px; padding: 72px 28px 32px; }
.nav-drawer .nav-toggle:checked ~ .shell .rail-close { display: inline-flex; }
.nav-drawer .nav-toggle:checked ~ .shell .bar-menu { visibility: hidden; }
.nav-top .rail .who { display: block; }

@media (max-width: 760px) {
  .bar { margin-bottom: 28px; gap: 8px; }
  /* across the top: the links wrap into a row above the page */
  .nav-top .rail { padding: 12px 16px; gap: 4px 18px; }
  .nav-top .rail a { padding: 4px 0; }
  /* down the side, or tucked away: on a phone the menu is a panel that slides over the page */
  body:not(.nav-top) .bar-menu { display: inline-flex; }
  body:not(.nav-top) .rail { position: fixed; z-index: 30; top: 0; bottom: 0; left: 0; width: min(84vw, 320px); flex: none; padding: 72px 28px 32px; overflow-y: auto; white-space: normal; transform: translateX(-102%); transition: transform .24s ease; }
  body:not(.nav-top) .nav-toggle:checked ~ .shell .rail { transform: none; flex-basis: auto; padding: 72px 28px 32px; }
  body:not(.nav-top) .nav-toggle:checked ~ .shell .rail-close { display: inline-flex; }
  body:not(.nav-top) .nav-toggle:checked ~ .shell .scrim { display: block; position: fixed; z-index: 20; inset: 0; background: rgba(0, 0, 0, .38); } /* theme-ignore: a dim over a customer's store page, whatever its colours */
  body:not(.nav-top) .nav-toggle:checked ~ .shell .bar-menu { visibility: visible; }
}

/* ─ profile, saved addresses ─ */
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin: 0 0 16px; }
.address { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 16px; background: var(--surface); }
.address-head { margin-bottom: 6px; }
.address-lines { font-size: 14px; color: var(--muted); }
.address-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.address-acts form { margin: 0; }
.address details, .add-address { margin-top: 12px; }
.address summary, .add-address summary { cursor: pointer; font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.address details form, .add-address form { margin-top: 14px; }
.address .fields { grid-template-columns: 1fr; }
.cap { text-transform: capitalize; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin: 0 0 8px; }
.choice { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; font-size: 14px; background: var(--surface); }
.choice span { color: var(--muted); font-size: 13px; }
.choice .tag { align-self: flex-start; margin-top: 4px; }
.choice:hover { border-color: var(--text); }
.choice.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.save-address { margin: 22px 0 0; padding: 14px 16px; border: 1px solid var(--line-soft); border-radius: var(--radius); background: var(--soft); }
label.tick { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 15px; text-transform: none; letter-spacing: 0; color: inherit; cursor: pointer; }
label.tick input { width: 17px; height: 17px; accent-color: var(--accent); }

/* a saved place: only the questions its kind needs (every field shows where :has() is not understood) */
.kinds { border: 0; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.kinds legend { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 8px; padding: 0; }
.kinds .pick:has(input:checked) { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.place:has(.kind-home:checked) .when-office, .place:has(.kind-home:checked) .when-other, .place:has(.kind-home:checked) .when-not-home,
.place:has(.kind-office:checked) .when-other, .place:has(.kind-other:checked) .when-office { display: none; }

/* a product's pictures: the big one, and the rest to choose from */
.gallery { min-width: 0; }
.thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.thumbs .pic.small { flex: 0 0 64px; width: 64px; border: 1px solid var(--line-soft); }
.thumbs .pic.small.on { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* ─ signing in: passkeys, the second step, a person's sign-in page ─ */
[hidden] { display: none !important; }
.passkey .or, .card .or { text-align: center; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 16px 0 10px; }
.passkey .note { margin: 12px 0 0; }
.card .sub-inline { margin-top: 14px; }
.crumb { font-size: 13px; margin: 0 0 10px; }
.crumb a::before { content: '\2190\00a0'; }
.row.two { grid-template-columns: minmax(0, 320px) auto; justify-content: start; }
.passkey-add { margin: 14px 0 0; }
.passkey-add .note { margin: 12px 0 0; }
.cap-first::first-letter { text-transform: uppercase; }
.actions form { margin: 0; }
.cell-acts { display: flex; gap: 8px; align-items: center; justify-content: flex-end; }
td .sub.uses { margin-top: 5px; }
.cell-acts form { margin: 0; }
a.btn { display: inline-block; text-decoration: none; }
.btn[disabled] { opacity: .45; cursor: default; }
label.tick.invite-tick { margin: 14px 0 4px; }
.steps { margin: 0 0 24px; padding-left: 22px; display: grid; gap: 22px; max-width: 560px; }
.steps li { padding-left: 4px; }
.steps form { margin-top: 12px; }
.qr { margin: 14px 0; padding: 10px; display: block; width: fit-content; background: #ffffff; border: 1px solid var(--line); border-radius: var(--radius); line-height: 0; }
.key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .04em; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); display: inline-block; overflow-wrap: anywhere; }
.codes { list-style: none; margin: 0 0 8px; padding: 18px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 160px)); gap: 10px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 16px; letter-spacing: .04em; width: fit-content; }
.help-list { display: grid; gap: 10px; margin: 0 0 14px; }
.help { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); font-size: 14px; }
.help .sub { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; }
.help form { margin: 0; flex: 0 0 auto; }
.mail-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.mail-edit h2 { margin-top: 0; }
.mail-preview iframe { width: 100%; height: 640px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #f4f3f0; }
@media (max-width: 860px) { .mail-edit { grid-template-columns: 1fr; } .help { flex-direction: column; align-items: flex-start; } .row.two { grid-template-columns: 1fr; } }
@media print { .rail, .bar, .staff-bar, .actions, .scrim { display: none !important; } .main { padding: 0; } }

/* ─ the store switcher: a person's other stores, under an icon in the top bar ─ */
.switch { position: relative; }
.switch summary { list-style: none; display: inline-flex; padding: 9px; border-radius: 999px; color: var(--accent); cursor: pointer; }
.switch summary::-webkit-details-marker { display: none; }
.switch summary:hover, .switch[open] summary { background: var(--soft); }
.switch summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* open: a click anywhere else lands on the summary and closes it */
.switch[open] summary::before { content: ''; position: fixed; inset: 0; z-index: 40; cursor: default; }
.switch-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 41; width: min(320px, calc(100vw - 32px)); max-height: min(70vh, 480px); overflow-y: auto; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12); }
.switch-head { padding: 8px 10px 6px; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.switch-item, .bar-tools .switch-menu a.switch-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 10px; border-radius: var(--radius); font-size: 14px; color: var(--text); text-decoration: none; }
.bar-tools .switch-menu a.switch-item:hover { background: var(--soft); }
.switch-item svg { flex: 0 0 auto; color: var(--muted); }
.switch-item.on { color: var(--muted); }
.switch-name { min-width: 0; overflow-wrap: anywhere; }
.switch-name .sub { display: block; font-size: 12px; color: var(--muted); }

/* ─ a demo store: the bar that says so on every page, and practice orders ─ */
.demo-bar { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; justify-content: space-between; padding: 8px 16px; background: #fdf6e7; border-bottom: 1px solid #e2b76a; color: #2b2b2b; font-size: 13px; }
.demo-bar strong { font-weight: 600; }
.demo-bar a { color: inherit; font-weight: 600; white-space: nowrap; text-underline-offset: 3px; }
.tag.practice { border-color: #d9a441; color: #8a5a00; background: #fdf6e7; }
@media print { .demo-bar { display: none !important; } }

/* ─ how the store is doing: the figures an external store's Admins see on the home page (a section of it) ─ */
.stats { --stat-line: var(--line-soft); }
@supports (color: color-mix(in srgb, red, blue)) { .stats { --stat-line: color-mix(in srgb, var(--text) 11%, transparent); } }
.stats-when { position: relative; display: inline-block; margin: 0 0 12px; }
.stats-when summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border: 1px solid var(--stat-line); border-radius: 999px; background: var(--surface); font-size: 13px; font-weight: 500; cursor: pointer; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.stats-when summary::-webkit-details-marker { display: none; }
.stats-when summary:hover, .stats-when[open] summary { background: var(--soft); }
.stats-when summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.stats-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 30; min-width: 180px; padding: 6px; background: var(--surface); border: 1px solid var(--stat-line); border-radius: 12px; box-shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 16px 40px -12px rgba(16, 24, 40, .22); }
.stats-menu a { display: block; padding: 8px 10px; border-radius: 8px; font-size: 14px; color: var(--text); text-decoration: none; }
.stats-menu a:hover { background: var(--soft); }
.stats-menu a.on { font-weight: 600; }
/* the block: a hairline, a soft lift, and dividers that fade out at both ends */
.stats-row { display: flex; flex-wrap: wrap; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--stat-line); border-radius: 16px;
  box-shadow: 0 1px 1px rgba(16, 24, 40, .03), 0 2px 4px rgba(16, 24, 40, .03), 0 14px 32px -18px rgba(16, 24, 40, .18); }
.stat { position: relative; flex: 1 1 150px; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 20px 20px; text-align: center; }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 18%; bottom: 18%; width: 1px; background: linear-gradient(to bottom, transparent, var(--stat-line) 28%, var(--stat-line) 72%, transparent); }
.stat-words { min-width: 0; }
.stat dt { display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 12px; letter-spacing: .02em; color: var(--muted); margin: 0 0 6px; white-space: nowrap; }
.stat dd { display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 4px 8px; margin: 0; }
.stat-n { font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.stat-moved { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; }
.stat-moved.up { color: #0a7a3b; }
.stat-moved.down { color: #a3342b; }
.stat-moved.none { color: var(--faint); }
.stat-moved .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.stat-line { flex: 0 0 72px; width: 72px; height: 24px; color: var(--accent); opacity: .85; overflow: visible; }
.stat-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.stat-dot.on { background: #0a7a3b; box-shadow: 0 0 0 3px rgba(10, 122, 59, .16); }
.stats-note { margin: 10px 2px 0; font-size: 12px; color: var(--muted); text-align: center; }
/* once the small charts are there, the words move left to make room for them */
.stats.has-charts .stat { justify-content: space-between; text-align: left; }
.stats.has-charts .stat dt, .stats.has-charts .stat dd { justify-content: flex-start; }
.stats.has-charts .stats-note { text-align: left; }
.stats.has-charts .stat-words { flex: 0 0 auto; }
.stats.has-charts .stat-line { flex: 0 1 72px; min-width: 0; }
/* where the block is too narrow for a chart beside each figure, the chart goes under it */
.stats { container-type: inline-size; }
@container (max-width: 940px) {
  .stats.has-charts .stat { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 10px; }
  .stats.has-charts .stat-line { flex: 0 0 24px; width: 100%; height: 24px; }
}
@media (max-width: 640px) {
  .stat { flex-basis: 50%; padding: 16px 14px; }
  .stat + .stat::before { display: none; }
  .stat-live { flex-basis: 100%; }
  .stat-line { flex-basis: 56px; width: 56px; }
}
@media print { .stats { display: none !important; } }

/* ─ a second row of tabs, inside a Settings tab (Financial: Budgets, Order rules, Sales, Credits) ─ */
.subtabs { display: flex; flex-wrap: wrap; gap: 22px; margin: -6px 0 22px; border-bottom: 1px solid var(--line-soft); }
.subtabs a { padding: 0 2px 10px; margin-bottom: -1px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; }
.subtabs a:hover { color: var(--text); }
.subtabs a.on { color: var(--text); font-weight: 600; border-bottom-color: var(--accent); }

/* ─ gifts: choosing the items of a gift, and a surprise on the recipient's page ─ */
.choose .sub-inline { flex: 1 1 100%; margin: 0 0 4px; }
.gift-items { flex: 1 1 100%; border-top: 1px solid var(--line-soft); }
.gift-item { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 2px 0; border-bottom: 1px solid var(--line-soft); }
.gift-item .pick { margin: 0; padding: 9px 2px; border: 0; border-radius: 0; flex: 1 1 auto; min-width: 0; }
.gift-item .pick.quiet { flex: 0 0 auto; font-size: 13px; color: var(--muted); white-space: nowrap; }
.offer.surprise .pic { display: flex; align-items: center; justify-content: center; background: var(--soft); }
.mystery { font-size: 26px; font-weight: 600; color: var(--muted); }

/* ─ the menu: Collections is one entry, with the collections under it ─ */
.rail-group { margin: 0; }
.rail-group summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; font-size: 19px; opacity: .92; cursor: pointer; }
.rail-group summary::-webkit-details-marker { display: none; }
.rail-group summary:hover, .rail-group summary.on { opacity: 1; }
.rail-group summary:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; border-radius: 4px; }
.rail-group summary::after { content: ""; flex: 0 0 auto; width: 7px; height: 7px; margin: -4px 4px 0 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform .2s ease; opacity: .8; }
.rail-group[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.rail-sub { display: flex; flex-direction: column; margin: 0 0 8px 2px; padding: 0 0 0 16px; border-left: 1px solid rgba(127, 127, 127, .45); }
.rail .rail-sub a { padding: 6px 0; font-size: 16px; opacity: .84; }
.rail .rail-sub a:hover, .rail .rail-sub a.on { opacity: 1; }
/* across the top the collections drop down from their entry */
.nav-top .rail-group { position: relative; }
.nav-top .rail-group summary { padding: 6px 0; font-size: 16px; gap: 8px; }
.nav-top .rail-sub { position: absolute; z-index: 40; top: calc(100% + 6px); left: -16px; min-width: 220px; max-height: 70vh; overflow-y: auto; margin: 0; padding: 10px 16px; border: 0; border-radius: var(--radius); background: var(--accent); box-shadow: 0 12px 32px rgba(0, 0, 0, .22); } /* theme-ignore: a shadow under a menu, whatever the store's colours */

/* ─ the menu stays as it was left: on a wide screen opening and closing it are links that remember (GET /menu/open, /menu/closed) ─ */
.bar-start { justify-self: start; display: flex; align-items: center; }
.bar-start .bar-menu { margin-left: -9px; }
a.bar-keep, .rail a.rail-keep { display: none; }
a.bar-keep { padding: 9px; margin-left: -9px; border-radius: 999px; color: var(--accent); }
a.bar-keep:hover { background: var(--soft); }
a.bar-keep svg { display: block; }
.rail a.rail-keep { position: absolute; top: 16px; right: 14px; padding: 8px; border-radius: 999px; color: inherit; opacity: 1; }
.rail a.rail-keep:hover { background: rgba(127, 127, 127, .22); text-decoration: none; }
.rail a.rail-keep svg { display: block; }
@media (min-width: 761px) {
  .nav-drawer label.bar-menu, .nav-drawer label.rail-close { display: none !important; }
  .nav-drawer a.bar-keep { display: inline-flex; }
  .nav-drawer.nav-kept a.bar-keep { visibility: hidden; }
  .nav-drawer.nav-kept .rail { flex-basis: 260px; padding: 72px 28px 32px; overflow-y: auto; white-space: normal; }
  .nav-drawer.nav-kept .rail a.rail-keep { display: inline-flex; }
}

/* ─ an invoice: the way back to the list, and paying its balance ─ */
.back { margin: 0 0 14px; font-size: 14px; }
.back a { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px 6px 9px; margin-left: -9px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.back a:hover { background: var(--soft); color: var(--text); }
.back svg { flex: 0 0 auto; }
.pay-box { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin: 0 0 28px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.pay-box .sub-inline { margin: 2px 0 0; }
.pay-box.off { border-style: dashed; color: var(--muted); }
@media print { .back, .pay-box { display: none !important; } }

/* ─ integrations: a card for each one ready to set up, and each integration's own page ─ */
.int-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin: 0 0 32px; }
.int-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); color: inherit; text-decoration: none; }
.int-card:hover { border-color: var(--text); }
.int-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 16px; }
.int-card-words { font-size: 14px; color: var(--muted); }
.int-card-go { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; font-weight: 600; }
.int-name { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.int-sec { margin: 0 0 40px; scroll-margin-top: 16px; }
.int-steps { margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; }
.int-steps > li { position: relative; margin: 0 0 22px; padding: 0 0 0 44px; counter-increment: step; }
.int-steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 13px; font-weight: 600; }
.int-steps h3 { margin: 0 0 6px; font-size: 16px; }
.int-steps p { margin: 0 0 10px; }
.int-copy { display: grid; grid-template-columns: minmax(150px, 220px) minmax(0, 1fr); gap: 8px 16px; margin: 0 0 14px; }
.int-copy > div { display: contents; }
.int-copy dt { align-self: center; font-size: 13px; color: var(--muted); }
.int-copy dd { margin: 0; min-width: 0; }
.int-copy input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; background: var(--soft); }
.int-attrs td { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.int-attrs td.plain { font-family: inherit; font-size: 13px; color: var(--muted); }
.int-form > fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.int-form fieldset:disabled { opacity: .6; }
.choose.stack { flex-direction: column; align-items: flex-start; }
.int-read { margin: 4px 0 26px; }
.int-more { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 26px; }
.int-url { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; overflow-wrap: anywhere; }
.int-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px 28px; }
.int-list li { position: relative; padding: 0 0 12px 22px; border-bottom: 1px solid var(--line-soft); }
.int-list li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.int-list.not li::before { background: transparent; border: 1.5px solid var(--muted); width: 7px; height: 7px; }
.int-list strong { display: block; margin: 0 0 3px; font-size: 15px; }
.int-list span { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .int-copy { grid-template-columns: minmax(0, 1fr); gap: 2px 0; } .int-copy dd { margin-bottom: 10px; } }
