/* ============================================================================
   Shop Lenore — one stylesheet, no framework, no runtime CSS.
   Roughly 12KB uncompressed, ~3KB over the wire. Deliberate: the store has to
   feel instant on a mobile connection in the atolls.
   ========================================================================== */

:root {
  --ink: #14110f;
  --ink-soft: #4a4340;
  --ink-faint: #8a807a;
  --line: #e4dfd9;
  --line-strong: #cfc7bf;
  --paper: #fbf9f7;
  --card: #ffffff;
  --accent: #a71013;        /* LENORE red, sampled from the logo */
  --accent-dark: #7e0c0f;
  --sale: #a71013;
  --good: #2f6b4f;
  --shadow: 0 1px 2px rgba(20, 17, 15, .04), 0 8px 24px rgba(20, 17, 15, .05);
  --radius: 2px;
  --max: 1240px;
  /* No web font is downloaded: on mobile data every kilobyte is a delay, and a
     swapping headline is worse than a good local one. This stack resolves to a
     proper old-style serif on every platform we serve — Hoefler Text or Iowan on
     macOS/iOS, Palatino Linotype or Book Antiqua on Windows, Georgia elsewhere —
     rather than falling through to Times, which is what naming an unloaded face
     actually gets you. */
  --font-display: "Hoefler Text", "Iowan Old Style", "Palatino Linotype", Palatino,
                  "Book Antiqua", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: .01em; margin: 0 0 .5em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }

.wrap { max-width: var(--max); margin: 0 auto; padding-inline: 20px; }
.narrow { max-width: 720px; }
.stack > * + * { margin-top: 1rem; }

/* ---------------------------------------------------------------- header -- */
.announce {
  background: var(--ink); color: #f3ece5; text-align: center;
  font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  padding: 9px 16px;
}
.announce a { text-decoration: underline; text-underline-offset: 2px; }

header.site {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251, 249, 247, .94);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.headbar { display: flex; align-items: center; gap: 20px; height: 62px; }
.brand {
  font-family: var(--font-display); font-size: 26px; letter-spacing: .32em;
  text-transform: uppercase; margin-right: auto; padding-right: .32em;
  display: inline-flex; align-items: center;
}
.brand:hover { text-decoration: none; }
.brand img { display: block; width: auto; height: 23px; }
footer.site .brand img { height: 19px; }
@media (max-width: 860px) { .brand img { height: 17px; } }
nav.main { display: flex; gap: 22px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
nav.main a.active { border-bottom: 1px solid var(--ink); }
.headtools { display: flex; align-items: center; gap: 16px; font-size: 13px; letter-spacing: .06em; }
.bag-count {
  display: inline-grid; place-items: center; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 10px; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: 0;
}
.menu-toggle { display: none; background: none; border: 0; font: inherit; cursor: pointer; padding: 6px; }

@media (max-width: 860px) {
  nav.main {
    display: none; position: absolute; top: 62px; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--paper);
    border-bottom: 1px solid var(--line); padding: 8px 20px 16px;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .menu-toggle { display: block; order: -1; margin-left: -6px; }
  .brand { font-size: 21px; letter-spacing: .26em; }
}

/* ------------------------------------------------------------------ hero -- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: stretch;
  border-bottom: 1px solid var(--line); background: var(--card);
}
.hero-copy { padding: clamp(36px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.hero-copy p { color: var(--ink-soft); font-size: 1.02rem; max-width: 46ch; }
.hero-art { min-height: 340px; background: #efe9e2; }
.hero-art img, .hero-art svg { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 820px) { .hero { grid-template-columns: 1fr; } .hero-art { min-height: 240px; order: -1; } }

.eyebrow {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 14px;
}

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--ink); background: var(--ink); color: #fff;
  padding: 13px 26px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase;
  border-radius: var(--radius); cursor: pointer; font-family: inherit;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); text-decoration: none; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: #fff; }
.btn.small { padding: 8px 14px; font-size: 11px; letter-spacing: .1em; }
.btn.full { width: 100%; }
.btn.danger { background: var(--sale); border-color: var(--sale); }
.btn.link { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; padding: 4px; letter-spacing: 0; text-transform: none; font-size: 13px; }

/* ---------------------------------------------------------------- grids --- */
.section { padding-block: clamp(40px, 6vw, 76px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head p { margin: 0; color: var(--ink-faint); font-size: 13px; }

.grid { display: grid; gap: 28px 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px)  { .grid { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; } }

.card figure { margin: 0; background: #efe9e2; aspect-ratio: 3 / 4; overflow: hidden; position: relative; }
.card figure img, .card figure svg { width: 100%; height: 100%; object-fit: cover; }
.card h3 { font-family: var(--font-body); font-size: 14px; font-weight: 500; margin: 12px 0 2px; letter-spacing: .01em; }
.card .sub { color: var(--ink-faint); font-size: 12.5px; margin: 0 0 6px; }
.card .price { font-size: 14px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.was { color: var(--ink-faint); text-decoration: line-through; font-size: 12.5px; }
.off { color: var(--sale); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.badge {
  position: absolute; top: 10px; left: 10px; background: var(--ink); color: #fff;
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 4px 8px;
}
.badge.sale { background: var(--sale); }

/* ------------------------------------------------------------------ pdp --- */
.pdp { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 64px); align-items: start; padding-block: 36px 72px; }
@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; }
  /* Keep "Add to bag" near the fold on a phone rather than a full-height image. */
  .pdp figure { aspect-ratio: 4 / 5; max-height: 56vh; }
}
.pdp figure { margin: 0; background: #efe9e2; aspect-ratio: 3 / 4; overflow: hidden; }
.pdp figure img, .pdp figure svg { width: 100%; height: 100%; object-fit: cover; display: block; }
.pdp .price-row { display: flex; align-items: baseline; gap: 12px; margin: 4px 0 18px; font-size: 1.3rem; }
.opts { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt span {
  display: inline-block; border: 1px solid var(--line-strong); padding: 9px 16px;
  font-size: 13px; cursor: pointer; border-radius: var(--radius); background: #fff;
}
.opt input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.opt input:disabled + span { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.promise { border: 1px solid var(--line); background: #fff; padding: 16px 18px; margin-top: 24px; font-size: 13.5px; }
.promise strong { display: block; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 6px; }
.promise ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }

/* ----------------------------------------------------------------- forms -- */
label.f { display: block; margin-bottom: 14px; }
label.f > span { display: block; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=datetime-local], input[type=file], input[type=url], input[type=search],
input:not([type]), select, textarea {
  width: 100%; padding: 12px 13px; border: 1px solid var(--line-strong); background: #fff;
  font: inherit; font-size: 15px; border-radius: var(--radius); color: var(--ink);
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
textarea { min-height: 84px; resize: vertical; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 620px) { .row { grid-template-columns: 1fr; } }
.hint { font-size: 12.5px; color: var(--ink-faint); margin: -8px 0 14px; }
.fieldwrap { min-width: 0; }
.fieldwrap .f { margin-bottom: 6px; }
.fieldwrap .hint { margin: 0 0 14px; }
.err { color: var(--sale); font-size: 12.5px; margin: -8px 0 12px; }
.field-err input, .field-err select { border-color: var(--sale); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin-bottom: 14px; }
.check input { width: auto; margin-top: 3px; }

.phone-input { display: grid; grid-template-columns: 118px 1fr; gap: 8px; }
.otp-input { letter-spacing: .55em; font-size: 22px; text-align: center; font-variant-numeric: tabular-nums; }

.notice { border-left: 3px solid var(--accent); background: #fff; padding: 12px 16px; font-size: 13.5px; margin-bottom: 18px; }
.notice.error { border-color: var(--sale); }
.notice.good { border-color: var(--good); }

/* ------------------------------------------------------------------ bag -- */
.bag-layout { display: grid; grid-template-columns: 1.5fr .9fr; gap: 40px; align-items: start; padding-block: 32px 72px; }
@media (max-width: 900px) { .bag-layout { grid-template-columns: 1fr; } }
.line { display: grid; grid-template-columns: 84px 1fr auto; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line figure { margin: 0; background: #efe9e2; aspect-ratio: 3/4; overflow: hidden; }
.line figure img { width: 100%; height: 100%; object-fit: cover; }
.line .meta { font-size: 13px; color: var(--ink-faint); }
.qty { display: inline-flex; border: 1px solid var(--line-strong); background: #fff; }
.qty button { width: 32px; height: 32px; border: 0; background: none; font: inherit; cursor: pointer; }
.qty span { min-width: 34px; display: grid; place-items: center; font-size: 14px; }

.summary { border: 1px solid var(--line); background: #fff; padding: 22px; position: sticky; top: 84px; }
.summary dl { display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; margin: 0 0 16px; font-size: 14px; }
.summary dt { color: var(--ink-soft); }
.summary dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; font-size: 17px; }
.summary .total dt, .summary .total dd { font-weight: 600; color: var(--ink); }
.tax-note { font-size: 12px; color: var(--ink-faint); margin-top: -8px; }

/* ------------------------------------------------------------- checkout -- */
.steps { display: flex; gap: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 26px; flex-wrap: wrap; }
.steps .on { color: var(--ink); }
.steps span::after { content: "·"; margin-left: 6px; }
.steps span:last-child::after { content: ""; }

.choice { display: block; border: 1px solid var(--line-strong); background: #fff; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; border-radius: var(--radius); }
.choice:has(input:checked) { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.choice input { width: auto; margin-right: 10px; }
.choice .t { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.choice .t strong { font-weight: 500; }
.choice .d { color: var(--ink-faint); font-size: 13px; margin: 4px 0 0 24px; }
.choice .free { color: var(--good); }

/* ------------------------------------------------------------- tracking -- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 26px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.timeline li::before {
  content: ""; position: absolute; left: 12px; top: 22px; bottom: 0; width: 1px; background: var(--line-strong);
}
.timeline li:last-child::before { display: none; }
.dot { width: 13px; height: 13px; border-radius: 50%; border: 2px solid var(--line-strong); background: #fff; margin: 5px auto 0; }
.timeline li.done .dot { background: var(--good); border-color: var(--good); }
.timeline li.current .dot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 4px rgba(20,17,15,.1); }
.timeline .when { font-size: 12.5px; color: var(--ink-faint); }
.timeline li.upcoming .lbl { color: var(--ink-faint); }

/* ---------------------------------------------------------------- table -- */
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 500; }
table.data tr:hover td { background: #fffdfb; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

.pill { display: inline-block; font-size: 11px; letter-spacing: .06em; padding: 3px 9px; border: 1px solid var(--line-strong); border-radius: 999px; background: #fff; white-space: nowrap; }
.pill.warn { border-color: #c9a227; color: #7a6212; background: #fdf9ec; }
.pill.good { border-color: var(--good); color: var(--good); background: #f0f6f2; }
.pill.bad { border-color: var(--sale); color: var(--sale); background: #fdf1ef; }

/* ---------------------------------------------------------------- admin -- */
.admin-shell { display: grid; grid-template-columns: 216px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #d9d1c9; padding: 20px 0; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.admin-side .brand { color: #fff; font-size: 19px; display: block; padding: 0 20px 18px; }
.admin-side a { display: block; padding: 9px 20px; font-size: 13.5px; color: #d9d1c9; }
.admin-side a:hover, .admin-side a.active { background: rgba(255,255,255,.09); color: #fff; text-decoration: none; }
.admin-side .grouplbl { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: #8d8178; padding: 16px 20px 6px; }
.admin-main { padding: 26px 28px 80px; max-width: 1180px; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.admin-head h1 { font-family: var(--font-body); font-size: 21px; font-weight: 500; margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 26px; }
.stat { border: 1px solid var(--line); background: #fff; padding: 16px 18px; }
.stat .k { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }
.stat .v { font-size: 24px; font-family: var(--font-display); margin-top: 4px; }
.panel { border: 1px solid var(--line); background: #fff; padding: 20px 22px; margin-bottom: 22px; }
.panel > h2 { font-family: var(--font-body); font-size: 15px; font-weight: 600; letter-spacing: .02em; margin: 0 0 14px; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; }
.toolbar input, .toolbar select { width: auto; min-width: 180px; }

/* --------------------------------------------------------------- footer -- */
footer.site { border-top: 1px solid var(--line); background: #fff; padding: 48px 0 60px; margin-top: 40px; font-size: 13.5px; }
.footcols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
@media (max-width: 860px) { .footcols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footcols { grid-template-columns: 1fr; } }
footer.site h4 { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 12px; font-weight: 500; }
footer.site ul { list-style: none; margin: 0; padding: 0; }
footer.site li { margin-bottom: 8px; color: var(--ink-soft); }
.legal { border-top: 1px solid var(--line); margin-top: 34px; padding-top: 20px; color: var(--ink-faint); font-size: 12.5px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ------------------------------------------------------------- whatsapp -- */
.wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 50;
  display: inline-flex; align-items: center; gap: 9px;
  background: #1f7a4d; color: #fff; padding: 11px 16px; border-radius: 999px;
  box-shadow: var(--shadow); font-size: 13.5px; letter-spacing: .02em;
}
.wa:hover { background: #18653f; text-decoration: none; }
.wa svg { width: 18px; height: 18px; fill: currentColor; }
@media (max-width: 600px) { .wa span { display: none; } .wa { padding: 13px; } }

/* --------------------------------------------------------------- invoice -- */
.invoice { background: #fff; max-width: 820px; margin: 24px auto; padding: 44px; border: 1px solid var(--line); }
.invoice-head { display: flex; justify-content: space-between; gap: 24px; margin-bottom: 32px; }
.invoice-head .brand { font-size: 24px; margin: 0 0 8px; }
.invoice table { width: 100%; border-collapse: collapse; margin: 22px 0; font-size: 14px; }
.invoice th { text-align: left; border-bottom: 1px solid var(--ink); padding: 8px 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.invoice td { padding: 9px 0; border-bottom: 1px solid var(--line); }
.invoice tfoot td { border: 0; padding: 5px 0; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
  .invoice { border: 0; margin: 0; padding: 0; max-width: none; }
}

.empty { text-align: center; padding: 64px 20px; color: var(--ink-faint); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --------------------------------------------------- images & the library */

.flabel { display: block; font-size: 12px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-faint); margin-bottom: 8px; }

.imgprev { display: grid; place-items: center; background: #f4f1ec; border: 1px solid var(--line);
  aspect-ratio: 3 / 4; overflow: hidden; }
.imgprev img { width: 100%; height: 100%; object-fit: cover; display: block; }
.imgnone { font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); }
.imgnone.sm { font-size: 11px; letter-spacing: 0; text-transform: none; }

.imgfield { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: start; margin-bottom: 10px; }
.imgctl { display: grid; gap: 8px; min-width: 0; }
.imgctl input[type=file] { font-size: 13px; }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, 168px); gap: 18px; }
.gitem { display: grid; gap: 8px; align-content: start; min-width: 0; }
.gitem input[type=text] { font-size: 12.5px; }
.gitem .check { margin-bottom: 0; }
.gitem .hint { margin: 0; }
.check.small { font-size: 12.5px; }

.medialib { display: grid; grid-template-columns: repeat(auto-fill, 176px); gap: 20px; }
.mediaitem { margin: 0; display: grid; gap: 8px; align-content: start; min-width: 0; }
.mediaitem figcaption { display: grid; gap: 4px; min-width: 0; }
.mediaitem form { margin: 0; }
.pathbox { font-size: 11.5px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: #faf8f5; color: var(--ink-soft); }
.mediaitem .hint { margin: 0; }

.thumbcell { width: 52px; }
.thumbcell img { width: 44px; height: 58px; object-fit: cover; display: block; border: 1px solid var(--line); }

/* ----------------------------------------------------------- stock table */

.stocktable td { vertical-align: middle; }
.stocktable td.num { white-space: nowrap; }
.stockbox { width: 84px; text-align: right; margin: 0; padding: 7px 8px; }
tr.rowbad td { background: #fdf2f2; }
tr.rowwarn td { background: #fdfaf1; }

@media (max-width: 620px) {
  .imgfield { grid-template-columns: 72px 1fr; }
  .stockbox { width: 68px; }
}

/* A checkbox in a toolbar must not inherit the search box's min-width. */
.toolbar input[type=checkbox] { min-width: 0; width: auto; }
.toolbar .check { margin-bottom: 0; align-items: center; }

@media (max-width: 620px) {
  .gallery, .medialib { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* ------------------------------------------------ admin on a small screen */
@media (max-width: 900px) {
  /* On a phone the sidebar would be a whole screen of links before any
     content, so it becomes a scrolling strip pinned to the top instead —
     stock-taking on a phone starts at the stock table, not at a menu. */
  .admin-shell { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .admin-side {
    position: sticky; top: 0; z-index: 20; height: auto; align-self: start; padding-block: 0;
    display: flex; align-items: center; gap: 0;
    padding-inline: 12px; overflow-x: auto; overflow-y: hidden;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    border-bottom: 1px solid rgba(255,255,255,.12);
  }
  .admin-side::-webkit-scrollbar { display: none; }
  .admin-side .brand { padding: 12px 14px 12px 0; flex: 0 0 auto; }
  .admin-side .brand img { height: 15px; width: auto; }
  .admin-side a { padding: 14px 12px; white-space: nowrap; flex: 0 0 auto; }
  .admin-side .grouplbl { display: none; }
  /* The account block moves out of the strip — it is not day-to-day nav. */
  .admin-side form, .admin-side > div:not(.grouplbl) { flex: 0 0 auto; padding: 0 8px !important; }
  .admin-main { padding: 18px 16px 64px; min-width: 0; }

  /* A wide table scrolls inside its own panel rather than widening the page. */
  .admin-shell, .admin-main, .panel { min-width: 0; max-width: 100%; }
  .panel { overflow-x: auto; }
  table.data { min-width: 560px; }
  .stocktable { min-width: 640px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .toolbar input:not([type=checkbox]), .toolbar select { min-width: 0; flex: 1 1 150px; }
  .toolbar .check { flex: 0 1 auto; gap: 8px; }
  .toolbar { flex-wrap: wrap; }
}
