/* Portal's house stylesheet.

   This IS Shopmorphic's static/css/main.css, taken whole at Charlie's
   instruction on 4 September 2026: "the whole layout, the style, buttons,
   workflow must be the same. The only difference is that your colour is
   yellow and they are blue." Only the accent lines differ - see the :root
   blocks. Do not edit anything else here: a change is made in Shopmorphic
   first and this file is copied across again (tests/test_chat_pages_same_
   shape.py checks the accent lines are the only difference).

   Portal's older stylesheets still load after this one for the screens
   Shopmorphic has no equivalent of; the block at the very end points their
   colour names at these tokens so those screens sit on the same ladder of
   surfaces and shadows. */
/* Shopmorphic platform pages. Lightmorphic house style: solid panels,
   one accent, self-hosted Manrope, no framework, nothing loaded from
   outside this origin. */

html { scrollbar-gutter: stable; }   /* the page never jumps sideways when a scrollbar appears */

@font-face {
  font-family: "Manrope";
  /* Portal keeps the file one folder deeper than Shopmorphic does. With
     Shopmorphic's path this face pointed at nothing, and because this
     sheet is the last one loaded on the customer's portal and the Inbox it
     beat the working declaration in the other sheets - so those screens
     waited on a font that was never coming and then redrew themselves in
     a fallback, on every single page. */
  src: url("../fonts/manrope/Manrope-Variable.woff2") format("woff2-variations"),
       url("../fonts/manrope/Manrope-Variable.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  /* optional, not swap. Charlie saw the page "shake for a second" when
     changing menu items - that is the fallback text reflowing as Manrope
     arrives. The font is preloaded and same-origin, so on every visit but
     the very first it is already there and optional never costs anything;
     when it is not, the page settles in the fallback and stays settled
     rather than jumping. A reflow you can see is worse than a typeface you
     cannot tell apart at a glance. Helpmorphic made the same change on the
     desk, 8 September 2026.

     Deliberately NOT changed on the public marketing pages, which have
     their own @font-face: those are somebody's first and often only visit,
     and the house typeface arriving late is better than never. */
  font-display: optional;
}

/* One appearance: dark. Charlie, 6 September 2026 - "completely remove the
   light mode and light mode switcher... keep it dark as standard. Remove
   all reference to it in the code." So there is no second palette and
   nothing that switches between palettes: these are simply the colours,
   and tests/test_one_appearance.py holds every sheet to that. */
:root {
  color-scheme: dark;
  /* Surfaces are a ladder you can see: the page, a panel on it, a well
     inside the panel, and a card raised out of the well. Every step and
     every edge is contrast-checked (see docs/colour-contrast.md). */
  --bg: #0e0f14;  --fg: #f5f6f8;
  --panel: #1e2028;  --panel-border: transparent;   /* no line round a card: the shadow says where it is */
  --well: #141519;  --raised: #282b34;  --field: #141519;
  --scroll-thumb: #3a3e4a;  --scroll-thumb-hover: #4d5261;
  --border: #333744;  --muted: #272a33;  --muted-fg: #b9bbc2;  --btn-border: #4b5063;
  /* Depth comes from shadow alone: a close one to seat the card and a wide
     soft one beneath it. No light edge anywhere. */
  --shadow-panel: 0 2px 6px rgba(0,0,0,.45), 0 22px 44px -26px rgba(0,0,0,.95);

  /* Portal's accent: the Lightmorphic brand yellow. (Shopmorphic is blue,
     Castmorphic is orange; each product gets one colour.) */
  --accent: #fbc711;  --accent-hover: #ffd42e;  --on-accent: #1c1300;
  --accent-container: #3a2e00;  --on-accent-container: #ffe58a;

  --brand-navy: #111827;
  --link: #fbc711;
  --danger: #f34236;   --danger-bg: #350f0c;
  --success: #4bae4f;  --success-bg: #102611;
  --warning: #ffc006;  --warning-bg: #382a01;
  --info: #2295f1;     --info-bg: #072135;

  --radius: var(--shape-radius, min(10px, 25%));
  --panel-radius: var(--shape-radius, min(10px, 25%));
}


* { box-sizing: border-box; }
html { font-size: 100%; }
body {
  margin: 0;
  font-family: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--fg);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--link); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.skip-link {
  position: absolute; left: -999px; top: 0.5rem;
  background: var(--panel); color: var(--fg); padding: .5rem .75rem;
  border-radius: var(--shape-radius, min(10px, 25%)); border: 1px solid var(--panel-border);
}
.skip-link:focus { left: 0.5rem; z-index: 10; }

.site-header, .site-main, .site-footer {
  width: min(100% - 2.5rem, 68rem);
  margin-inline: auto;
}
.site-header { padding: 1.5rem 0; }
.brand {
  display: inline-flex; align-items: center; gap: .625rem;
  text-decoration: none; color: var(--fg); font-weight: 700; font-size: 1.125rem;
}
.brand-mark { width: 1.75rem; height: 1.75rem; color: var(--brand-navy); fill: var(--accent); }
.brand-mark { color: var(--accent); }

.site-main { flex: 1; padding: 2rem 0 4rem; }
.site-footer { padding: 1.5rem 0 2.5rem; color: var(--muted-fg); font-size: .8125rem; }

.hero { max-width: 44rem; padding: 2rem 0 2.5rem; }
.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  padding: .25rem .75rem; border-radius: var(--shape-radius, min(10px, 25%));
  background: var(--accent-container); color: var(--on-accent-container);
  font-size: .8125rem; font-weight: 600;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 1rem; }
.lede { font-size: 1.125rem; color: var(--muted-fg); margin: 0; max-width: 40rem; }

.points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--shape-radius, min(10px, 25%));
  box-shadow: var(--shadow-panel);
  padding: 1.5rem;
}
/* A card inside a panel lifts off it, the way the panel lifts off the page. */
.panel .panel, .content .panel { background: var(--raised); }
.panel h2 { font-size: 1.0625rem; font-weight: 600; margin: 0 0 .5rem; }
.panel p { margin: 0; color: var(--muted-fg); }

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

/* ---------- App shell (dashboard and platform admin) ----------
   Same shape as Lightmorphic Portal: floating sidebar panel, an optional
   second column for the section's pages, and the content panel, all
   sitting on the page background with air between them. */
body.shell { display: block; }
.app { display: flex; align-items: stretch; gap: 20px; padding: 20px; min-height: 100vh; box-sizing: border-box; }
@media (min-width: 900px) { .app { max-width: 96rem; margin: 0 auto; } }
.sidebar {
  flex-shrink: 0; width: 240px; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--shape-radius, min(10px, 25%)); box-shadow: var(--shadow-panel);
  padding: 16px 12px; position: sticky; top: calc(20px + var(--bar-h, 0px)); height: calc(100vh - 40px - var(--bar-h, 0px)); overflow-y: auto; box-sizing: border-box; z-index: 100;
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; margin: 4px 4px 12px 8px; }
.brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--fg); font-weight: 700; font-size: 1.0625rem; }
.brand-mark { width: 1.5rem; height: 1.5rem; color: var(--brand-navy); fill: var(--accent); }
.nav-burger { display: none; font-size: 1.25rem; cursor: pointer; padding: .25rem .5rem; border-radius: var(--shape-radius, min(10px, 25%)); }
.nav-toggle { position: absolute; opacity: 0; width: 0; height: 0; }
.sidebar-menu { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.sidenav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { margin: 14px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-fg); }
.sidenav .nav-group:first-child { margin-top: 2px; }
.nav-link {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; width: 100%; box-sizing: border-box;
  border-radius: var(--shape-radius, min(10px, 25%)); color: var(--muted-fg); text-decoration: none; font-size: 14px; font-weight: 500;
  background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left;
}
.nav-link:hover { background: var(--muted); color: var(--fg); }
.nav-link.is-active { background: var(--accent-container); color: var(--on-accent-container); font-weight: 600; }
.nav-icon { width: 18px; height: 18px; flex: none; }
.nav-badge { margin-left: auto; min-width: 18px; padding: 1px 6px; border-radius: var(--shape-radius, min(10px, 25%)); font-size: 11px; font-weight: 700; line-height: 16px; text-align: center; background: var(--accent-container); color: var(--on-accent-container); }
.sidebar-bottom { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 2px; }
.sidebar-shop { margin: 0 10px 8px; font-size: .8125rem; color: var(--muted-fg); word-break: break-word; }
.sidebar-shop a { color: var(--muted-fg); }
.avail { margin: 0 4px 6px; }
.avail-switch { margin: 0; min-height: 2.5rem; font-size: 14px; color: var(--fg); }
.subnav {
  flex-shrink: 0; width: 18rem; display: flex; flex-direction: column; gap: 2px; padding: 10px; position: sticky; top: calc(20px + var(--bar-h, 0px));
  height: calc(100vh - 40px - var(--bar-h, 0px)); box-sizing: border-box; overflow-y: auto;
}
.subnav a { display: block; padding: 9px 12px; border-radius: var(--shape-radius, min(10px, 25%)); color: var(--fg); text-decoration: none; font-size: 15px; font-weight: 500; }
.subnav a:hover { background: var(--muted); }
.subnav a[aria-current="page"] { background: var(--accent-container); color: var(--on-accent-container); font-weight: 600; }
.content { flex: 1; min-width: 0; padding: clamp(1.25rem, 3vw, 2rem); }
.content.panel { border-radius: var(--shape-radius, min(10px, 25%)); }
@media (max-width: 900px) {
  .app { flex-direction: column; padding: 12px; gap: 12px; }
  .sidebar { position: static; height: auto; width: auto; }
  .nav-burger { display: inline-block; }
  .sidebar-menu { display: none; }
  .nav-toggle:checked ~ .sidebar .sidebar-menu { display: flex; }
  .subnav { position: static; width: auto; height: auto; flex-direction: row; flex-wrap: wrap; }
}

.page-title { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 1.5rem; }
.panel-title { font-size: 1.0625rem; font-weight: 600; margin: 0 0 1rem; }
.panel + .panel, .form-panel + .panel { margin-top: 1.25rem; }
/* ...but panels standing side by side must not take that stacking margin,
   or the second one sits lower than the first. */
.app > .panel + .panel,
.grid-2-1 > .panel + .panel, .grid-2-1 > .form-panel + .panel, .grid-2-1 > .panel + .form-panel,
.bento > .panel + .panel, .inbox > .panel + .panel, .row-2 > .panel + .panel,
.stats > .panel + .panel, .check-grid > .panel + .panel, .image-grid > .panel + .panel { margin-top: 0; }
.panel-title + .panel-title, .field + .panel-title { margin-top: 1.5rem; }
.lede-small { color: var(--muted-fg); max-width: 60ch; margin: -0.75rem 0 1.5rem; }
.narrow { max-width: 28rem; margin: 2rem auto; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 1.25rem; align-items: start; }
/* Two columns need real room: with a sidebar and a second column there is
   not enough until the window is wide, so below that they stack. */
@media (max-width: 1250px) { .grid-2-1 { grid-template-columns: 1fr; } }
.stats { display: grid; align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.stat { display: flex; flex-direction: column; gap: .25rem; }
.stat-n { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; }
.stat-l { color: var(--muted-fg); font-size: .875rem; }
.stat-bad .stat-n { color: var(--danger); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Forms ---------- */
.field { margin: 0 0 1.125rem; }
.field label { display: block; font-size: .9375rem; font-weight: 600; margin-bottom: .375rem; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select, .field textarea {
  display: block; width: 100%; box-sizing: border-box;
  font: inherit; color: var(--fg); background: var(--field);
  border: 1.5px solid var(--border); border-radius: var(--shape-radius, min(10px, 25%));
  padding: .625rem .875rem; min-height: 2.75rem;
}
.field textarea { min-height: 7rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--danger); }
.hint { font-size: .8125rem; color: var(--muted-fg); margin: .375rem 0 0; }
.hint-inline { font-size: .8125rem; color: var(--muted-fg); font-weight: 400; }
.error { font-size: .8125rem; color: var(--danger); margin: .375rem 0 0; font-weight: 600; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin-top: 1.25rem; }
.secret-row { display: flex; gap: .75rem; align-items: center; }
.secret-row input { flex: 1; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .875em; background: var(--muted); padding: .1em .35em; border-radius: var(--shape-radius, min(10px, 25%)); }

/* Anything carrying the hidden attribute stays hidden. Our own display
   rules (.btn, .badge, .icon-btn) would otherwise beat the browser's, which
   is how a "Need more time?" button meant for later ends up on screen. */
[hidden] { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font: inherit; font-weight: 600; cursor: pointer; text-decoration: none;
  padding: .625rem 1.125rem; min-height: 2.75rem; border-radius: var(--shape-radius, min(10px, 25%));
  border: 1px solid transparent; transition: background .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(0,0,0,.25), 0 6px 14px -8px var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { background: var(--muted); color: var(--fg); border-color: var(--btn-border); }
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: var(--danger); color: #fff; border-color: transparent; }
/* Armed and waiting five seconds for a second click. */
.btn.is-armed, .icon-btn.is-armed { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn-small { padding: .375rem .75rem; min-height: 2.25rem; font-size: .875rem; }
.btn-link { background: none; border: 0; color: var(--link); font: inherit; cursor: pointer; padding: 0; }

.switch { display: inline-flex; align-items: center; gap: .625rem; cursor: pointer; min-height: 2.75rem; margin-bottom: .75rem; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .track { flex: none; width: 2.75rem; height: 1.5rem; background: var(--border); border: 1px solid var(--panel-border); border-radius: var(--shape-radius, min(10px, 25%)); position: relative; transition: background .15s ease; }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 1.125rem; height: 1.125rem; border-radius: var(--shape-radius, min(10px, 25%)); background: #fff; box-shadow: 0 1px 2px rgba(24,24,40,.3); transition: transform .15s ease; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(1.25rem); }
.switch input:focus-visible + .track { outline: 2px solid var(--accent); outline-offset: 2px; }
input[type="checkbox"]:not(.switch input), input[type="radio"] { width: 1.125rem; height: 1.125rem; flex: none; accent-color: var(--accent); cursor: pointer; }
.field-check { display: flex; align-items: center; gap: .625rem; min-height: 2.75rem; cursor: pointer; }

/* ---------- Feedback ---------- */
.flashes { display: none; }
.notes { display: flex; flex-direction: column; gap: .5rem; }
.notes-inline { width: 100%; margin-top: .75rem; }
.notes-fixed { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200; max-width: 22rem; }
.note { display: flex; align-items: flex-start; gap: .625rem; padding: .625rem .875rem; border-radius: var(--shape-radius, min(10px, 25%)); background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--shadow-panel); font-size: .9375rem; transition: opacity .4s ease; }
.note.is-fading { opacity: 0; }
.note-mark { flex: none; width: 1.25rem; height: 1.25rem; border-radius: var(--shape-radius, min(10px, 25%)); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; background: var(--success-bg); color: var(--success); }
.note-error .note-mark { background: var(--danger-bg); color: var(--danger); }
.note-warning .note-mark { background: var(--warning-bg); color: var(--warning); }
.note-info .note-mark { background: var(--info-bg); color: var(--info); }
.note-close { margin-left: auto; background: none; border: 0; font: inherit; font-size: 1.125rem; line-height: 1; color: var(--muted-fg); cursor: pointer; padding: 0 .125rem; }
.note-close:hover { color: var(--fg); }
/* Standing notices on a page: a neutral panel with a coloured mark, never a painted box. */
.alert { padding: .75rem 1rem; border-radius: var(--shape-radius, min(10px, 25%)); font-weight: 500; background: var(--panel); border: 1px solid var(--panel-border); box-shadow: var(--shadow-panel); margin-bottom: 1rem; display: flex; gap: .625rem; align-items: flex-start; }
.alert::before { content: "i"; flex: none; width: 1.25rem; height: 1.25rem; border-radius: var(--shape-radius, min(10px, 25%)); display: inline-flex; align-items: center; justify-content: center; font-size: .75rem; font-weight: 700; background: var(--info-bg); color: var(--info); }
.alert-success::before { content: "✓"; background: var(--success-bg); color: var(--success); }
.alert-error::before { content: "!"; background: var(--danger-bg); color: var(--danger); }
.alert-warning::before { content: "!"; background: var(--warning-bg); color: var(--warning); }
.alert a { color: var(--link); }
.badge { display: inline-block; padding: .15rem .6rem; border-radius: var(--shape-radius, min(10px, 25%)); font-size: .8125rem; font-weight: 600; background: var(--muted); color: var(--muted-fg); white-space: nowrap; }
.badge-ok { background: var(--success-bg); color: var(--success); }
.badge-bad { background: var(--danger-bg); color: var(--danger); }
.badge-warn { background: var(--warning-bg); color: var(--warning); }

/* ---------- Tables and lists ---------- */
.table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.table th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted-fg); padding: .5rem .75rem; border-bottom: 1px solid var(--border); }
.table td { padding: .75rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table .wrap { max-width: 24rem; word-break: break-word; font-size: .8125rem; color: var(--muted-fg); }
.table form { display: inline; }
.panel:has(> .table) { overflow-x: auto; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .625rem; }
.checklist li { display: flex; gap: .625rem; align-items: baseline; }
.checklist .mark { width: 1.25rem; text-align: center; color: var(--muted-fg); font-weight: 700; }
.checklist li.done { color: var(--muted-fg); }
.checklist li.done .mark { color: var(--success); }
.checklist a { color: var(--fg); }

/* ---------- Catalogue ---------- */
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.title-row .page-title { margin: 0; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .row-2 { grid-template-columns: 1fr; } }
.subform { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border); }
.thumb { width: 3rem; height: 3rem; object-fit: cover; border-radius: var(--shape-radius, min(10px, 25%)); display: block; background: var(--muted); }
.thumb-empty { border: 1px dashed var(--border); }
.thumb-cell { width: 3.5rem; }
.theme-shot { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border-radius: var(--shape-radius, min(10px, 25%)); background: var(--muted); margin-bottom: .75rem; }
.theme-shot-empty { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--border); color: var(--muted-fg); font-size: .8125rem; }
.image-grid { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .75rem; }
.image-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--shape-radius, min(10px, 25%)); background: var(--muted); display: block; }
.image-actions { display: flex; gap: .375rem; flex-wrap: wrap; margin-top: .375rem; align-items: center; }
.cell { width: 6rem; font: inherit; padding: .375rem .5rem; border: 1.5px solid var(--border); border-radius: var(--shape-radius, min(10px, 25%)); background: var(--field); color: var(--fg); }
.cell-s { width: 4.5rem; }
.plain-list { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.plain-list li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .25rem 1rem; margin-bottom: .5rem; }
.field input[type="file"] { padding: .5rem; }

/* ---------- Design page ---------- */
.swatches { display: flex; flex-wrap: wrap; gap: .5rem; }
.swatch { position: relative; width: 2.25rem; height: 2.25rem; cursor: pointer; }
.swatch input { position: absolute; opacity: 0; width: 0; height: 0; }
.swatch .dot { display: block; width: 100%; height: 100%; border-radius: var(--shape-radius, min(10px, 25%)); border: 3px solid transparent; }
.swatch input:checked + .dot { border-color: var(--fg); box-shadow: 0 0 0 2px var(--bg) inset; }
.swatch input:focus-visible + .dot { outline: 2px solid var(--accent); outline-offset: 2px; }
.dot-red{background:#f34236}.dot-pink{background:#e8207e}.dot-purple{background:#9b26ae}.dot-deep_purple{background:#6639ab}.dot-indigo{background:#3d51b4}.dot-blue{background:#2295f1}.dot-light_blue{background:#03a8f3}.dot-cyan{background:#00bcd3}.dot-teal{background:#019587}.dot-green{background:#4bae4f}.dot-light_green{background:#8ac248}.dot-lime{background:#cbdc38}.dot-yellow{background:#fbc711}.dot-amber{background:#ffc006}.dot-orange{background:#fe9700}.dot-deep_orange{background:#ff5721}.dot-brown{background:#795649}.dot-grey{background:#9e9d9e}.dot-blue_grey{background:#607c8b}
.logo-preview { max-width: 100%; max-height: 6rem; margin-bottom: .75rem; background: var(--muted); padding: .5rem; border-radius: var(--shape-radius, min(10px, 25%)); }

/* ---------- Docs ---------- */
.doc { max-width: 70ch; }
.doc h1 { font-size: 2rem; letter-spacing: -0.02em; }
.doc h2 { font-size: 1.375rem; margin-top: 2rem; }
.doc pre { background: var(--muted); padding: 1rem; border-radius: var(--shape-radius, min(10px, 25%)); overflow-x: auto; font-size: .875rem; }
.doc code { font-size: .875em; }
.doc pre code { background: none; padding: 0; }
.doc li { margin: .25rem 0; }

/* ---------- Orders ---------- */
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin-bottom: 1rem; }
.tabs a { text-decoration: none; color: var(--muted-fg); padding: .5rem .875rem; border-radius: var(--shape-radius, min(10px, 25%)); font-weight: 500; }
.tabs a[aria-current="page"] { background: var(--accent-container); color: var(--on-accent-container); font-weight: 600; }
.totals-list { list-style: none; margin: 1rem 0 0; padding: 0; max-width: 24rem; margin-left: auto; }
.totals-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.totals-list .grand { border-top: 1px solid var(--border); margin-top: .5rem; padding-top: .5rem; font-weight: 700; }
.row-actions { white-space: nowrap; }
/* The buttons at the end of a row are icons, side by side, each in its own
   little form. They sit right so the eye finds them in the same place on
   every row. */
.row-actions { text-align: right; }
.row-actions > form, .row-actions > details { display: inline-block; vertical-align: middle; }
.row-actions > form + form, .row-actions > details + form, .row-actions > form + details { margin-left: .375rem; }
/* .icon-danger removed 12 September 2026: every delete button now
   carries .icon-btn--danger, styled once in icons.css. */
a.stat { text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--accent); }

/* ---------- Analytics ---------- */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 8rem; padding-top: .5rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.bar { width: 100%; background: var(--accent); border-radius: var(--shape-radius, min(10px, 25%)) var(--shape-radius, min(10px, 25%)) 0 0; min-height: 2px; }
.bar-dot { position: absolute; top: -.25rem; width: .375rem; height: .375rem; border-radius: var(--shape-radius, min(10px, 25%)); background: var(--success); }

/* ---------- Inbox ---------- */
.inbox { display: grid; grid-template-columns: minmax(16rem, 1fr) 2fr; gap: 1.25rem; align-items: start; }
@media (max-width: 900px) { .inbox { grid-template-columns: 1fr; } }
.inbox-list { padding: .5rem; max-height: 75vh; overflow-y: auto; }
.inbox-row { display: grid; grid-template-columns: 1fr auto; gap: .875rem; align-items: center; padding: .625rem .75rem; border-radius: var(--shape-radius, min(10px, 25%)); text-decoration: none; color: inherit; }
.inbox-row .dot-pair { order: 2; }   /* on the right, where the eye ends up */
.inbox-row > .dot { order: 2; }        /* a lone dot goes there too, before any script runs */
.inbox-row:hover { background: var(--muted); }
.inbox-row.is-current { background: var(--muted); }
.inbox-who { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot { width: .625rem; height: .625rem; border-radius: var(--shape-radius, min(10px, 25%)); background: var(--border); }
.dot-wait { background: var(--accent); }   /* needs a reply, in the product's own colour */
.dot-said { background: var(--muted-fg); opacity: .5; }   /* answered: waiting on them, not on us */
/* The bot read it and could not answer: nobody is on the hook, but it is
   worth picking up. A third thing, so a third colour - --info from the
   house palette, not a paler version of waiting. */
.dot-stuck { background: var(--info, #2295f1); }
.dot-spam { background: var(--danger); }   /* somebody has called it spam */
.dot-pair, .subnav .inbox-row .dot-pair { display: flex; align-items: center; gap: .3125rem; }   /* spam first, then the state */
.dot-pair .dot { flex: 0 0 auto; }
.thread-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: center; margin-bottom: 1rem; }
.thread { display: flex; flex-direction: column; gap: .625rem; max-height: 50vh; overflow-y: auto; padding: 1rem; background: var(--well); border: 1px solid var(--panel-border); border-radius: var(--shape-radius, min(10px, 25%)); box-shadow: inset 0 2px 6px rgba(0,0,0,.25); margin-bottom: 1rem; }
/* Message rows: a row is mine (tmsg-operator, right) or theirs
   (tmsg-visitor, left), and the time it was sent sits inside the bubble. On
   our own side only, a message we have sent is a plain colour until they read
   it, then it turns the accent colour and says when underneath. The customer
   never sees any of that. */
.tmsg { display: flex; flex-direction: column; align-items: flex-start; }
.tmsg-operator, .tmsg-ai, .tmsg-system { align-items: flex-end; }   /* everything from our side, including what goes out automatically */
.tbubble { max-width: min(38rem, 78%); padding: .6rem .8rem; border-radius: var(--shape-radius, min(10px, 25%)); border: 1px solid var(--panel-border); background: var(--raised); white-space: pre-wrap; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
.tmsg-operator .tbubble, .tmsg-ai .tbubble, .tmsg-system .tbubble { background: var(--accent-container); border-color: var(--accent); color: var(--on-accent-container); }
.tmsg-operator .tbubble.is-sent { background: var(--raised); border-color: var(--accent); color: var(--fg); }
.tmsg-system .tbubble { border-style: dashed; }   /* automatic, but still ours */
.tmeta { font-size: .75rem; color: var(--muted-fg); margin-top: .25rem; white-space: normal; }
.tmsg-operator .tbubble:not(.is-sent) .tmeta, .tmsg-ai .tmeta, .tmsg-system .tmeta { color: inherit; opacity: .75; }
.tread { font-size: .75rem; color: var(--muted-fg); margin: .2rem .2rem 0; }
.tmsg .edit-form { flex-basis: 100%; }
.codes { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(8rem, 1fr)); gap: .375rem; }

/* ---------- Emails screen ---------- */
.subnav .email-list { display: flex; flex-direction: column; gap: .125rem; }
.email-list a { display: block; padding: .5rem .75rem; border-radius: var(--shape-radius, min(10px, 25%)); color: var(--fg); text-decoration: none; font-size: .9375rem; }
.email-list a:hover { background: var(--muted); }
.email-list a[aria-current="page"] { background: var(--accent-container); color: var(--on-accent-container); font-weight: 600; }
.email-preview { width: 100%; height: 30rem; border: 1px solid var(--border); border-radius: var(--shape-radius, min(10px, 25%)); background: #f4f4f5; }
.digest-form { padding: .5rem .75rem; }
.thread-tall { max-height: 60vh; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-size: inherit; color: var(--link); cursor: pointer; }
.edit-form { margin-top: .5rem; display: flex; gap: .5rem; align-items: flex-start; }
.edit-form textarea { flex: 1; font: inherit; padding: .5rem; border: 1.5px solid var(--border); border-radius: var(--shape-radius, min(10px, 25%)); background: var(--field); color: var(--fg); }
.fields li { align-items: baseline; }
.btn-reset { margin-left: .5rem; min-height: 1.75rem; padding: .1rem .5rem; font-size: .75rem; font-weight: 600; vertical-align: middle; }

body.public { background: var(--panel); }

/* ---------- Public site (shopmorphic.com) ---------- */
body.public .site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: .25rem 1rem; flex-wrap: wrap; }
.site-nav a:not(.btn) { color: var(--muted-fg); text-decoration: none; font-weight: 500; padding: .375rem .25rem; }
.site-nav a:not(.btn):hover, .site-nav a[aria-current="page"] { color: var(--fg); }
.site-nav a[aria-current="page"] { font-weight: 600; }
body.public .hero .actions { margin-top: 1.5rem; }
.section { padding: 1.5rem 0; }
.section-title { font-size: 1.5rem; letter-spacing: -0.01em; margin: 0 0 .75rem; }
.section-lede { color: var(--muted-fg); max-width: 60ch; margin: .75rem 0 0; }
body.public .points .panel { background: var(--bg); }
.price { font-size: 1.5rem; color: var(--fg); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; max-width: 44rem; }
.plan { background: var(--bg); }
.plan .price-big { font-size: 2.25rem; font-weight: 700; letter-spacing: -0.02em; color: var(--fg); margin: 0 0 .5rem; }
.plan .price-big span { font-size: 1rem; font-weight: 500; color: var(--muted-fg); letter-spacing: 0; }
.plan .plain { margin: 1rem 0 0; padding-left: 1.125rem; color: var(--muted-fg); }
.plan .plain li { margin: .25rem 0; }
.faq { max-width: 60ch; margin: 0; }
.faq dt { font-weight: 600; margin-top: 1rem; }
.faq dd { margin: .25rem 0 0; color: var(--muted-fg); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem 2.5rem; }
.feature h2 { font-size: 1.125rem; margin: .75rem 0 .375rem; }
.feature ul { margin: 0; padding-left: 1.125rem; color: var(--muted-fg); }
.feature li { margin: .3rem 0; }
.legal { max-width: 66ch; }
.legal h2 { font-size: 1.25rem; margin-top: 1.75rem; }
.legal p, .legal li { color: var(--fg); }
.site-footer .foot-links a { margin-right: 1rem; }
.site-footer p { margin: 0 0 .375rem; }

/* ---------- System page ---------- */
.health__verdict { margin: 0 0 .75rem; }
.health__warnings { margin: 0 0 1rem; padding-left: 1.25rem; }
.health__charts { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: flex-start; margin: 1rem 0; }
.health__ring, .health__pie { margin: 0; display: flex; flex-direction: column; align-items: center; gap: .25rem; width: 8.5rem; }
.ring, .pie { width: 7.5rem; height: 7.5rem; }
.ring__track { stroke: var(--border); }
.ring__big { font-size: 22px; font-weight: 700; fill: var(--fg); font-family: inherit; }
.ring__small { font-size: 11px; fill: var(--muted-fg); }
.ring__label { font-size: .8125rem; color: var(--muted-fg); text-align: center; }
.pie__legend { list-style: none; margin: 0; padding: 0; font-size: .8125rem; color: var(--muted-fg); }
.health__strips { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.25rem; margin: 1rem 0; }
.health__h3 { font-size: .9375rem; margin: 0 0 .5rem; }
.hbar { display: grid; grid-template-columns: 6rem 1fr; gap: .625rem; align-items: center; margin: .35rem 0; font-size: .8125rem; color: var(--muted-fg); }
.hbar svg { height: .625rem; width: 100%; }
.hbar__track { fill: var(--border); }
.jobdots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .375rem; font-size: .9375rem; }
.jobdots .dot { display: inline-block; margin-right: .5rem; vertical-align: middle; }
.dot-ok { background: var(--success); } .dot-bad { background: var(--danger); }
.health__facts summary, .health__facts { margin-top: .5rem; }
.health__facts summary { cursor: pointer; font-weight: 600; }
.health__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; margin-top: .75rem; }
.health__group { margin: 0; }
.health__group dt { font-weight: 600; margin-bottom: .25rem; }
.health__group dd { margin: 0 0 .25rem; font-size: .9375rem; color: var(--muted-fg); }
.search-inline { display: flex; gap: .5rem; align-items: center; }
.search-inline input[type="search"] { font: inherit; padding: .4rem .7rem; border: 1.5px solid var(--border); border-radius: var(--shape-radius, min(10px, 25%)); background: var(--field); color: var(--fg); min-width: 14rem; }
.tabs-top { margin-bottom: 1rem; }

/* Second column with a conversation list under a separator (Ask us, Enquiries) */
.subnav-wide { width: 18rem; }   /* every second column is this wide, on every page, so nothing ever moves */
.subnav-sep { border: 0; border-top: 1px solid var(--border); margin: .5rem 0; }
.subnav .inbox-list { padding: 0; max-height: none; overflow: visible; display: flex; flex-direction: column; gap: 2px; }
/* The second column's plain links are blocks, but a conversation row is a
   grid: without this the dot has no width and disappears. */
.subnav .inbox-row { display: grid; padding: .5rem .625rem; }
.inbox-thread-only { grid-template-columns: 1fr; }
@media (max-width: 900px) { .subnav-wide { width: auto; } .subnav .inbox-list { width: 100%; } }

.impersonation-banner { justify-content: space-between; align-items: center; }
.impersonation-banner form { margin-left: auto; }

/* Dots on conversation lists: the accent means somebody is waiting on us. */
.dot-held { background: var(--muted-fg); opacity: .5; }

.perm { display: inline-block; position: relative; }
.perm summary { list-style: none; display: inline-flex; }
.perm-form { position: absolute; z-index: 5; right: 0; top: 2.5rem; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--shape-radius, min(10px, 25%)); box-shadow: var(--shadow-panel); padding: .75rem 1rem; width: 22rem; display: flex; flex-direction: column; }
.perm-form .switch { margin: 0; }

/* ---------- Bento (Settings) ---------- */
/* Charlie's rule: a bento packs the most information into the least space.
   Every card is a regular width (three per row); bento-pack.js measures each
   card and sets its row span over 8px rows, so dense flow slots a short card
   under a short one and no hole is left. Start alignment: nothing stretches. */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 8px; grid-auto-flow: dense; gap: 1.25rem; align-items: start; }
.bento > .panel { margin: 0; }
@media (max-width: 1100px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .bento { grid-template-columns: 1fr; grid-auto-rows: auto; } }
.bento .panel + .panel { margin-top: 0; }

img.qr { display: block; margin: .5rem 0; border-radius: var(--shape-radius, min(10px, 25%)); border: 1.5px solid var(--border); background: #fff; }

/* ---------- Message box (Ask us and Enquiries, both sides) ---------- */
.compose { display: flex; gap: .6rem; align-items: flex-end; margin-top: .75rem; }
.compose-left { display: flex; flex-direction: column; gap: .4rem; }
.compose-box { flex: 1; min-width: 0; }
.compose textarea { display: block; width: 100%; box-sizing: border-box; font: inherit; font-size: .95rem; line-height: 1.45; padding: .6rem .8rem; border: 1.5px solid var(--border); border-radius: var(--shape-radius, min(10px, 25%)); background: var(--field); color: var(--fg); resize: none; max-height: 15rem; overflow-y: auto; min-height: calc(3 * 1.45 * .95rem + 1.2rem + 3px); }
.compose-btn { flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: var(--shape-radius, min(10px, 25%)); border: 1.5px solid var(--border); background: var(--panel); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; list-style: none; }
.compose-btn::-webkit-details-marker { display: none; }
.compose-btn:hover { background: var(--muted); }
.compose-send { background: var(--accent); border-color: var(--accent); color: var(--on-accent, #fff); }
.compose-send:hover { filter: brightness(1.08); }
.compose-plus, .compose-quick { position: relative; }
.compose-quick .nav-icon { width: 1.15rem; height: 1.15rem; }
/* Both pop up over the conversation, above the button that opens them. */
.compose-menu, .compose-picker { position: absolute; z-index: 6; bottom: 3.1rem; left: 0; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--shape-radius, min(10px, 25%)); box-shadow: var(--shadow-panel); padding: .5rem; display: flex; flex-direction: column; }
.compose-menu { min-width: 16rem; max-width: 22rem; max-height: 20rem; overflow-y: auto; gap: .125rem; }
.compose-menu hr { border: 0; border-top: 1px solid var(--panel-border); margin: .375rem 0; }
.compose-picker { width: 24rem; max-width: min(24rem, 78vw); gap: .35rem; }
.compose-picker .qr-search { font: inherit; padding: .45rem .6rem; border: 1.5px solid var(--border); border-radius: var(--shape-radius, min(10px, 25%)); background: var(--field); color: var(--fg); }
.compose-picker .qr-list { display: flex; flex-direction: column; gap: .125rem; max-height: 18rem; overflow-y: auto; }
.compose-picker .qr-item { text-align: left; font: inherit; background: none; border: 0; padding: .5rem .625rem; border-radius: var(--shape-radius, min(10px, 25%)); cursor: pointer; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compose-picker .qr-item:hover { background: var(--muted); }
.compose-picker .qr-pin { color: var(--accent); }
.compose-picker .qr-none, .compose-picker .qr-empty { margin: .25rem .5rem; white-space: normal; }
.compose-item { display: block; text-align: left; font: inherit; background: none; border: 0; padding: .5rem .625rem; border-radius: var(--shape-radius, min(10px, 25%)); cursor: pointer; color: var(--fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.compose-item:hover { background: var(--muted); }
.compose-file { display: block; margin: .25rem .5rem 0; }
.compose-hint { margin: .375rem 0 0; }

/* The right-hand end of a thread's title row: the question when the fifteen
   minutes are up, then round icon buttons whose names show on hover. */
.thread-tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn { width: 2.25rem; height: 2.25rem; border-radius: var(--shape-radius, min(10px, 25%)); border: 1.5px solid var(--btn-border); background: var(--panel); color: var(--fg); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.icon-btn:hover { background: var(--muted); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.icon-btn.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }   /* the flag flies while it is spam, in our own colour */
.icon-btn .nav-icon { width: 1.125rem; height: 1.125rem; }
.icon-tiny { width: 1.75rem; height: 1.75rem; vertical-align: middle; margin-left: .375rem; }
.icon-tiny .nav-icon { width: .875rem; height: .875rem; }

/* A conversation somebody else has open: greyed out and not clickable until
   they move on. A finished one greys out too, but still reads. */
.inbox-row.is-locked { opacity: .45; cursor: not-allowed; }
.inbox-row.is-locked:hover { background: none; }
.inbox-row.is-done { opacity: .5; }              /* finished with, but still there to read */
.inbox-row.is-done:hover { opacity: .8; }
.inbox-thread.is-done .thread, .inbox-thread.is-done .thread-head { opacity: .55; }

/* A conversation page on shopmorphic.com: the same message row as everywhere
   else (a plus for a photo or a document, a growing box, Send). */
.chat-links { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: .5rem 0 0; }

/* Kept off screen rather than hidden with a style attribute, which a strict
   content policy would drop (leaving the honeypot field on show). */
.offscreen { position: absolute; left: -9999px; }

/* The row under the message box: any note on the left, and a small icon on
   the right, under Send, that emails the conversation. Its name shows on hover. */
/* Just outside the panel's bottom right corner, lined up under Send. */
.chat-outside { display: flex; justify-content: flex-end; padding: .35rem 2rem 0 0; }
.chat-tiny { flex: 0 0 auto; width: 1.6rem; height: 1.6rem; margin-right: .5rem; border: 0; border-radius: var(--shape-radius, min(10px, 25%)); background: none; color: inherit; opacity: .55; display: inline-flex; align-items: center; justify-content: center; padding: 0; cursor: pointer; }
.chat-tiny:hover { opacity: 1; }
.chat-tiny[disabled] { opacity: .35; cursor: default; }

/* ---------- A conversation on its own, not inside a web page ---------- */
/* The window is glued to the screen itself, not to the page: fixed to all
   four edges, so no phone can push the message box below what you can see.
   Only the conversation scrolls. */
.chatpage { margin: 0; height: 100vh; height: 100dvh; overflow: hidden; }
.chatpage-inner { position: fixed; inset: 0; margin: 0 auto; display: flex; flex-direction: column; width: 100%; max-width: 46rem; padding: 1rem 1rem calc(1.25rem + env(safe-area-inset-bottom, 0px)); box-sizing: border-box; }
.chatpage .thread, .chatpage .chat-thread { flex: 1; min-height: 0; max-height: none; margin-bottom: .75rem; overflow-y: auto; }
.chatpage #compose-wrap { flex: none; }
.chatpage-foot { flex: none; display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; margin: .5rem .25rem 0; }
@media (max-width: 600px) { .chatpage-inner { padding: .75rem .625rem calc(.75rem + env(safe-area-inset-bottom, 0px)); } .chatpage-head .hint, .chatpage-head .small { display: none; } .chatpage-foot { margin-top: .25rem; } }

/* ---------- Scrollbars ----------
   A slim pill that sits inside its own padding, not the browser's grey slab.
   A touch screen gets none at all: a finger does not need one. */
@media (any-pointer: fine) {
  * { scrollbar-width: thin; scrollbar-color: var(--scroll-thumb) transparent; }
  ::-webkit-scrollbar { width: 10px; height: 10px; }
  ::-webkit-scrollbar-track { background: transparent; }
  ::-webkit-scrollbar-thumb { background-color: var(--scroll-thumb); border-radius: var(--shape-radius, min(10px, 25%)); border: 3px solid transparent; background-clip: content-box; }
  ::-webkit-scrollbar-thumb:hover { background-color: var(--scroll-thumb-hover); }
  ::-webkit-scrollbar-corner { background: transparent; }
}
@media not all and (any-pointer: fine) {
  * { scrollbar-width: none; }
  ::-webkit-scrollbar { width: 0; height: 0; }
}

/* ---------- A conversation fills the screen ----------
   The panel is exactly as tall as the space it has, the messages scroll
   inside it, and the message box sits in its own card at the bottom, in the
   same place whether there are two messages or two hundred. */
.content-fill { height: calc(100vh - 40px - var(--bar-h, 0px)); box-sizing: border-box; display: flex; flex-direction: column; overflow-y: auto; }
.content-fill > .title-row, .content-fill > .tabs { flex: none; }
.content-fill .inbox { flex: 1; min-height: 0; }
/* No box round the box: the conversation and the message box sit straight
   on the page's own panel, with nothing drawn between them. */
.content-fill .inbox-thread { display: flex; flex-direction: column; min-height: 0; height: 100%; background: none; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.content-fill .thread { flex: 1; min-height: 0; max-height: none; margin-bottom: .75rem; }
/* The message box sits in its own small card, the same on our side and the customer's. */
#compose-wrap { background: var(--raised); border-radius: var(--shape-radius, min(10px, 25%)); padding: .75rem; box-shadow: 0 1px 3px rgba(0,0,0,.3); }   /* a card of its own, even all round */
.content-fill #compose-wrap { flex: none; }
.content-fill #compose-wrap .compose { margin-top: 0; }
@media (max-width: 900px) { .content-fill { height: auto; overflow: visible; } .content-fill .thread { max-height: 50vh; } }

/* Who wrote a reply. On our side the name opens a chat with that person, or
   your own notes if it is you. */
.tmeta-who { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.tmeta-who:hover { text-decoration-thickness: 2px; }

/* ---------- The i beside a title ---------- */
.info { position: relative; display: inline-block; vertical-align: middle; margin-left: .5rem; }
.info-btn { list-style: none; display: inline-flex; align-items: center; justify-content: center; width: 1.5rem; height: 1.5rem; border-radius: var(--shape-radius, min(10px, 25%)); border: 1.5px solid var(--border); color: var(--muted-fg); background: var(--panel); font-size: .875rem; font-weight: 700; font-style: italic; line-height: 1; cursor: pointer; }
.info-btn::-webkit-details-marker { display: none; }
.info-btn:hover, .info[open] .info-btn { border-color: var(--accent); color: var(--accent); }
.info-note { position: absolute; z-index: 8; top: 2.1rem; left: 0; width: min(30rem, calc(100vw - 3rem)); max-height: min(60vh, 28rem); overflow-y: auto; background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--shape-radius, min(10px, 25%)); box-shadow: var(--shadow-panel); padding: .875rem 1rem; font-size: .9375rem; font-weight: 400; font-style: normal; line-height: 1.5; color: var(--fg); }

/* Pop-ups never hang off the screen. On a narrow one they stop being little
   panels hanging off a button and become a sheet across the bottom, which
   cannot be cut off however near an edge the button sits. */
@media (max-width: 700px) {
  .info-note, .compose-menu, .compose-picker, .perm-form {
    position: fixed; inset: auto .75rem calc(.75rem + env(safe-area-inset-bottom, 0px)) .75rem;
    width: auto; max-width: none; min-width: 0; max-height: 65vh; overflow-y: auto;
  }
  .info-note { top: auto; }
}

@media (max-width: 700px) {
  /* A wide table slides sideways inside its own card instead of being cut. */
  .panel > .table, .panel > table { display: block; overflow-x: auto; }
}

/* Armed. A button waiting for a second press fills with the product's own
   colour and stays filled under the pointer, so there is no doubt which one
   is armed. Last in the file so nothing later can quietly take it off. */
.btn.is-armed, .btn.is-armed:hover,
.icon-btn.is-armed, .icon-btn.is-armed:hover { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* Settings save themselves, so where the Save button stood there is a quiet
   word instead. It keeps the button's height, so nothing on the page jumps
   when it appears or goes. */
.autosave-mark { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .9375rem; color: var(--muted-fg); }
.autosave-mark[data-state="ok"] { color: var(--success); }
.autosave-mark[data-state="bad"] { color: var(--danger); }

/* ---------- The conversation page's head ---------- */
/* A card at the top: who you are talking to on one line with the envelope
   that emails you the conversation, and under it a band in the shop's colour
   carrying the greeting. It is the first thing a customer sees, so it says
   the name and nothing else. */
.chat-top { flex: none; background: var(--panel); border-radius: var(--shape-radius, min(10px, 25%)); overflow: hidden; box-shadow: var(--shadow-panel); margin-bottom: .75rem; }
.chatpage-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .875rem 1rem; }
.chat-brand { display: flex; align-items: center; gap: .625rem; min-width: 0; }
.chat-logo { width: 1.75rem; height: 1.75rem; border-radius: var(--shape-radius, min(10px, 25%)); object-fit: cover; flex: 0 0 auto; }
.chat-mark { width: 1.75rem; height: 1.75rem; flex: 0 0 auto; color: var(--accent); }
.chat-name { font-size: 1.0625rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head-tools { display: flex; align-items: center; gap: .375rem; flex: 0 0 auto; }
.chat-banner { margin: 0; padding: .875rem 1rem; background: var(--accent); color: var(--on-accent); font-size: 1.0625rem; font-weight: 700; }
/* The envelope beats three times while it goes, then a tick sits beside it
   for a moment so you know it has gone. */
.chat-sent { color: var(--success); font-weight: 700; font-size: 1.125rem; line-height: 1; }
@keyframes chat-pulse { 0%, 100% { transform: scale(1); opacity: .7; } 50% { transform: scale(1.35); opacity: 1; } }
.chat-tiny.is-sending { animation: chat-pulse .5s ease 3; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .chat-tiny.is-sending { animation: none; } }

/* ---------- The ring ---------- */
/* A quiet panel on a form: the circle on the left, one line beside it. It has
   to look like the rest of the site, so it takes the same card colours and
   the same accent as everything else. */
.checkring { display: flex; align-items: center; gap: 1rem; padding: .875rem 1rem; margin: 0 0 1.125rem;
        width: 100%; box-sizing: border-box; align-self: stretch;
        background: var(--well); border: 1px solid var(--panel-border); border-radius: var(--shape-radius, min(10px, 25%)); }
.checkring canvas { flex: 0 0 auto; cursor: pointer; border-radius: var(--shape-radius, min(10px, 25%)); }
.checkring canvas:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.checkring-words { flex: 1 1 auto; min-width: 0; }
.checkring-say { margin: 0; font-weight: 600; }
.checkring-note { margin: .25rem 0 0; min-height: 1.25rem; }
.checkring.is-done .checkring-say { color: var(--muted-fg); }
.checkring.is-done canvas { cursor: default; }


/* ---------- Portal's own colour names, pointed at the house tokens ----------
   Portal's older rules (admin/main.css, shell.css, inbox.css) use --sm-* and
   --aw-* names. They are aliases now, so a panel, a field or a shadow drawn
   by an old rule is the same panel, field and shadow as a new one. Portal's
   addition; not in Shopmorphic. */
:root {
  --sm-background: var(--bg);        --aw-bg: var(--bg);
  --sm-foreground: var(--fg);        --aw-text: var(--fg);
  --sm-panel: var(--panel);          --aw-panel: var(--panel);      --sm-card: var(--panel);
  --sm-panel-border: var(--panel-border); --aw-panel-border: var(--panel-border);
  --sm-panel-radius: var(--shape-radius, min(10px, 25%)); --aw-panel-radius: var(--shape-radius, min(10px, 25%));
  --sm-shadow-panel: var(--shadow-panel); --aw-shadow-panel: var(--shadow-panel);
  --sm-radius: var(--shape-radius, min(10px, 25%));        --aw-radius: var(--shape-radius, min(10px, 25%));
  --sm-muted-foreground: var(--muted-fg); --aw-text-muted: var(--muted-fg);
  --sm-secondary: var(--muted);      --aw-surface-variant: var(--muted); --aw-surface: var(--panel);
  --sm-field-border: var(--border);  --aw-outline: var(--border);    --aw-field: var(--field);
  --sm-border: var(--border);        --aw-border: var(--border);
  --sm-destructive: var(--danger);
  --sm-primary: var(--accent);       --sm-primary-foreground: var(--on-accent);
  --aw-primary-container: var(--accent-container); --aw-on-primary-container: var(--on-accent-container);
}

/* Portal's brand is a picture, not their mark + name: one for each theme.
   Portal's addition; not in Shopmorphic. */
.brand img { height: 24px; width: auto; }
.aw-logo { display: inline; }   /* one appearance, one logo */

/* A customer's own logo at the top of their column (Charlie, 12 September
   2026). Capped both ways: a wide wordmark must not push the burger off
   the row, and a tall square one must not make the header taller than
   every other screen's. */
.aw-logo--theirs { max-height: 30px; max-width: 11rem; height: auto; width: auto; object-fit: contain; }

/* Ours at the foot of that column when theirs has the top: half the size,
   to the right, quiet. */
.sidebar-by { margin: .75rem 0 0; padding-top: .5rem; text-align: right; line-height: 0; }
.sidebar-by img { height: 12px; width: auto; opacity: .55; }
.sidebar-tools { display: inline-flex; align-items: center; gap: .25rem; }

/* The columns never change size. Charlie, 5 September 2026: the menu and
   the second column each have one width and keep it on every page, so
   nothing grows or shrinks as you go from one menu item to the next. Where
   a page has no second column the main panel takes that room as well - his
   words: "the main panel can be as wide as the main panel and the second
   menu column together".
     - the main panel is at least a screen tall, so a short page and a long
       one draw the same panel instead of a stub and a slab;
     - a scrollbar appearing inside a column moves nothing sideways. */
.sidebar, .subnav { scrollbar-gutter: stable; }
@media (min-width: 901px) { .content { min-height: calc(100vh - 40px - var(--bar-h, 0px)); } }
/* The keep/download/delete strip is a fixed strip, so the thread above it
   is what grows and the message box stays on the bottom. */
.content-fill > .thread-manage { flex: none; }

/* The burger's hidden checkbox. Portal's admin stylesheet turns every
   input[type=checkbox] into a 2.5rem switch, and that beat the house rule
   on specificity - so the hidden toggle was a real 18px box standing at the
   front of the row, pushing the whole shell sideways. Portal's addition;
   Shopmorphic has no such rule to fight. */
input.nav-toggle[type="checkbox"] {
  position: absolute; opacity: 0; width: 0; height: 0;
  margin: 0; padding: 0; border: 0; background: none; appearance: none; -webkit-appearance: none;
}
input.nav-toggle[type="checkbox"]::before, input.nav-toggle[type="checkbox"]::after { content: none; }

/* The switch's own checkbox, for the same reason. house.css hides it and
   draws .track instead, but ".switch input" and the admin sheet's
   "input[type=checkbox]" carry the same weight - so on the admin the
   later one won and the raw box was drawn as a second 2.5rem switch
   beside the real one. That made the availability row fifteen pixels
   taller there than on the Inbox, and Account and Log out sat at
   different heights on the two halves. */
.switch input[type="checkbox"], .switch input[type="radio"] {
  position: absolute; opacity: 0; width: 0; height: 0; min-height: 0;
  margin: 0; padding: 0; border: 0; background: none;
  appearance: none; -webkit-appearance: none;
}
.switch input[type="checkbox"]::before, .switch input[type="checkbox"]::after { content: none; }

/* --- appearance picker ------------------------------------------------
   Portal's addition; Shopmorphic has no such control. It lives here, not
   in shell.css, because the sidebar is shared by all three shells and only
   two of them load that sheet - so the button came out 36px on one half
   and a browser default on the other, and the menu under it moved. */
/* The one light/dark + accent control, anchored in the sidebar rather than
   floating over the page: it used to be position:fixed and Inbox-only,
   which put it in the same corner as the mobile hamburger and left the
   admin half with a different control entirely. Colours come from the
   shared accent system (accents.css), so a choice here repaints
   everything. */
.aw-theme-picker { position: relative; }
.aw-theme-toggle {
  display: flex; align-items: center; justify-content: center;
  /* min- and max- as well as height: the Inbox's own sheet gives every
     bare button a 2.5rem minimum, which made this one 40px there and 36px
     on the admin - and the whole menu under it moved by the difference. */
  width: 36px; height: 36px; min-height: 36px; max-height: 36px;
  padding: 0; border-radius: var(--shape-radius, min(10px, 25%)); cursor: pointer;
  background: transparent; color: var(--muted-fg);
  border: 1px solid var(--border);
}
.aw-theme-toggle:hover { color: var(--fg); background: var(--muted); }
.aw-theme-panel {
  position: absolute; top: 44px; right: 0; width: 220px; z-index: 1100;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--shape-radius, min(10px, 25%)); box-shadow: var(--shadow-panel);
  padding: 12px; text-align: left;
}
.aw-theme-label {
  margin: 0 0 6px; font-size: 11px; font-weight: 500; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--muted-fg);
}
.aw-theme-modes { display: flex; gap: 6px; margin-bottom: 14px; }
.aw-theme-mode {
  flex: 1; padding: 6px 0; font-size: 13px; border: none;
  border-radius: var(--shape-radius, min(10px, 25%)); cursor: pointer;
  background: var(--muted); color: var(--fg); font-weight: 500;
}
.aw-theme-mode:hover { filter: brightness(0.95); }
.aw-theme-mode.aw-active { background: var(--accent); color: var(--on-accent); }
.aw-theme-accents { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.aw-swatch {
  width: 28px; height: 28px; padding: 0; border-radius: var(--shape-radius, min(10px, 25%));
  border: 2px solid transparent; box-shadow: none; cursor: pointer;
}
.aw-swatch:hover { filter: brightness(1.08); }
.aw-swatch.aw-active { border-color: var(--fg); }

/* The panel hangs from the right edge of its button on every screen. It
   used to swing out to the left on a phone, from the days when the button
   sat at the LEFT of the bar; now that it sits beside the hamburger, that
   sent a 220px panel straight off the right of the screen. The cap keeps
   it on a narrow phone whatever the button's position. */
.aw-theme-panel { max-width: calc(100vw - 24px); }

/* An example email, framed. It is a whole HTML document with its own
   styles - inlining it would let those loose on the settings page. */
.email-example { margin: 14px 0; }
.email-example summary { cursor: pointer; font-weight: 600; }

.email-example__frame {
  width: 100%;
  /* A starting height only - email-example.js measures the email and grows
     the frame to it, so the whole thing is on the page with no scrollbar
     of its own. */
  height: 520px;
  border: 1px solid var(--panel-border);
  border-radius: var(--shape-radius, min(10px, 25%));
  background: #fff;
  margin-top: 10px;
  overflow: hidden;
  display: block;
}

/* --- the legal sub-footer -----------------------------------------------
   Who we are on the left, the five legal pages hard right and level with
   the last line. Below 640px it stacks with the links first, so the thing
   somebody actually wants to tap is not under three lines of company
   registration. Shopmorphic 1.8.1's shape; see
   docs/house-kit/one-look-and-the-legal-footer.md. */
.subfooter { display: flex; align-items: flex-end; gap: 1.5rem; flex-wrap: wrap;
  max-width: 1160px; margin: 0 auto; padding: 1.5rem 2rem 5rem;
  font-size: .875rem; color: var(--muted-fg); }
/* 5rem at the bottom, not 2.5: the chat bubble is fixed 20px off the
   corner and 38px tall, and sat squarely on "Complaints" without it. */
.subfooter-who { min-width: 0; }
.subfooter-who p { margin: 0 0 .25rem; }
.subfooter .foot-links { margin-left: auto; text-align: right; }
.subfooter .foot-links a { margin: 0 0 0 1rem; color: var(--muted-fg); text-decoration: none; }
.subfooter .foot-links a:hover { color: var(--fg); text-decoration: underline; }
@media (max-width: 640px) {
  .subfooter { flex-direction: column-reverse; align-items: stretch; gap: 1rem; }
  .subfooter .foot-links { margin-left: 0; text-align: left; }
  .subfooter .foot-links a { margin: 0 1rem 0 0; display: inline-block; }
}

/* --- our own websites ----------------------------------------------------
   The public pages use the panels, features and buttons above; these are
   the two shapes they need that the product itself does not: a numbered
   run of stages, and a plain bulleted list of what a job covers. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: var(--shape-radius, min(10px, 25%));
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-container); color: var(--on-accent-container);
  font-weight: 700; font-size: .9375rem;
}
.steps h3 { margin: .25rem 0 .375rem; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--muted-fg); }
.site-main ul.plain { margin: 0 0 1rem; padding-left: 1.125rem; color: var(--muted-fg); }
.site-main ul.plain li { margin: .375rem 0; }
.site-main img { max-width: 100%; height: auto; border-radius: var(--shape-radius, min(10px, 25%)); display: block; }
.site-main blockquote { margin: 0 0 .75rem; font-size: 1.0625rem; line-height: 1.6; }

/* --- the header of our own website --------------------------------------
   Two rows. The top one - logo, switch, Get in touch - is identical on both
   sides of the switch, so nothing above the menu moves when you flip. The
   menu is centred underneath and is the only thing that changes, and it is
   held to one height so the bar cannot grow or shrink either. */
body.public .site-header { display: block; padding: 1.25rem 0 0; }
.site-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem;
}
.site-bar .brand { justify-self: start; }
.site-bar .strand-switch { justify-self: center; margin: 0; }
.site-bar .site-cta { justify-self: end; }
body.public .site-nav {
  display: flex; justify-content: center; align-items: center;
  gap: .25rem 1.5rem; flex-wrap: wrap;
  min-height: 3.25rem;          /* one height, whichever menu is in it */
  margin-top: .25rem;
}
@media (max-width: 760px) {
  .site-bar { grid-template-columns: auto auto; row-gap: .75rem; }
  .site-bar .strand-switch { grid-column: 1 / -1; order: 3; justify-self: stretch; }
  .site-bar .site-cta { justify-self: end; }
  body.public .site-nav { min-height: 0; margin-top: .75rem; }
}

/* --- the strand switch ---------------------------------------------------
   Two sides, Code and Web design, and the whole site changes under it. Two
   links rather than a script and a stored preference: it works with scripts
   off, and a shared address always shows the person who opens it the same
   thing you saw.

   The moving part is a tile, not a plain knob. It slides to the side you
   are on and turns over as it goes - the code face on one side, a browser
   window on the other - so the control reads as an object somebody built
   rather than a checkbox with the corners rounded off. Charlie asked for
   something people would talk about. */
.strand-switch {
  position: relative; display: inline-flex; align-items: stretch;
  background: var(--well); border: 1px solid var(--border);
  border-radius: var(--shape-radius, min(10px, 25%)); padding: 4px;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35);
  transition: box-shadow .2s ease;
}
.strand-switch:hover {
  box-shadow: inset 0 1px 3px rgba(0,0,0,.35), 0 0 0 3px var(--accent-container);
}
.strand-tile {
  position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: var(--shape-radius, min(10px, 25%)); perspective: 700px;
  transition: transform .42s cubic-bezier(.34, 1.4, .5, 1);
}
.strand-tile[data-on="web"] { transform: translateX(100%); }
.strand-tile-inner {
  position: absolute; inset: 0; border-radius: var(--shape-radius, min(10px, 25%));
  transform-style: preserve-3d;
  transition: transform .42s cubic-bezier(.34, 1.4, .5, 1);
}
.strand-tile[data-on="web"] .strand-tile-inner { transform: rotateY(180deg); }
.strand-face {
  position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: flex-start; padding-left: .85rem;
  border-radius: var(--shape-radius, min(10px, 25%)); backface-visibility: hidden;
  background: var(--accent); color: var(--on-accent);
  box-shadow: 0 1px 2px rgba(0,0,0,.4), 0 0 18px -6px var(--accent);
}
.strand-face svg { width: 1.15rem; height: 1.15rem; }
.strand-face--web { transform: rotateY(180deg); }

.strand-side {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  justify-content: center; min-width: 8.5rem;
  padding: .35rem 1rem .35rem 2.6rem;   /* room for the tile's icon */
  border-radius: var(--shape-radius, min(10px, 25%)); text-decoration: none; text-align: left;
  color: var(--muted-fg); line-height: 1.15;
  transition: color .2s ease;
}
.strand-side:hover { color: var(--fg); }
.strand-side.is-on { color: var(--on-accent); }
.strand-label { font-weight: 700; font-size: .9375rem; }
.strand-blurb { font-size: .6875rem; opacity: .8; }
.strand-side.is-on .strand-blurb { opacity: .75; }
.strand-switch.is-turning .strand-side { transition: color .3s ease; }
.strand-switch.is-turning .strand-side.is-on { color: var(--muted-fg); }
.strand-switch.is-turning .strand-side:not(.is-on) { color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) {
  .strand-tile, .strand-tile-inner { transition: none; }
}
@media (max-width: 700px) {
  .strand-switch { width: 100%; }
  .strand-side { flex: 1; min-width: 0; }
}

/* --- our own websites ----------------------------------------------------
   The public pages use the panels, features and buttons above; these are
   the two shapes they need that the product itself does not: a numbered
   run of stages, and a plain bulleted list of what a job covers. */
.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
.steps li { counter-increment: step; position: relative; padding-left: 3rem; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 2rem; height: 2rem; border-radius: var(--shape-radius, min(10px, 25%));
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-container); color: var(--on-accent-container);
  font-weight: 700; font-size: .9375rem;
}
.steps h3 { margin: .25rem 0 .375rem; font-size: 1.0625rem; }
.steps p { margin: 0; color: var(--muted-fg); }
.site-main ul.plain { margin: 0 0 1rem; padding-left: 1.125rem; color: var(--muted-fg); }
.site-main ul.plain li { margin: .375rem 0; }
.site-main img { max-width: 100%; height: auto; border-radius: var(--shape-radius, min(10px, 25%)); display: block; }
.site-main blockquote { margin: 0 0 .75rem; font-size: 1.0625rem; line-height: 1.6; }

/* --- the header of our own website --------------------------------------
   Two rows. The top one - logo, switch, Get in touch - is identical on both
   sides of the switch, so nothing above the menu moves when you flip. The
   menu is centred underneath and is the only thing that changes, and it is
   held to one height so the bar cannot grow or shrink either. */
body.public .site-header { display: block; padding: 1.25rem 0 0; }
.site-bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 1rem;
}
.site-bar .brand { justify-self: start; }
.site-bar .strand-switch { justify-self: center; margin: 0; }
.site-bar .site-cta { justify-self: end; }
body.public .site-nav {
  display: flex; justify-content: center; align-items: center;
  gap: .25rem 1.5rem; flex-wrap: wrap;
  min-height: 3.25rem;          /* one height, whichever menu is in it */
  margin-top: .25rem;
}
@media (max-width: 760px) {
  .site-bar { grid-template-columns: auto auto; row-gap: .75rem; }
  .site-bar .strand-switch { grid-column: 1 / -1; order: 3; justify-self: stretch; }
  .site-bar .site-cta { justify-self: end; }
  body.public .site-nav { min-height: 0; margin-top: .75rem; }
}

/* --- the strand switch ---------------------------------------------------
   Two sides, Code and Web design, and the whole site changes under it. Two
   links rather than a script and a stored preference: it works with scripts
   off, and a shared address always shows the person who opens it the same
   thing you saw.

   The knob is the moving part - it sits under whichever side is on and
   slides when you land on the other, which is what makes it read as one
   control rather than two buttons. */
.strand-switch {
  position: relative; display: inline-flex; align-items: stretch;
  background: var(--well); border: 1px solid var(--border);
  border-radius: var(--shape-radius, min(10px, 25%)); padding: 3px; margin-right: .75rem;
}
.strand-knob {
  position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  background: var(--accent); border-radius: var(--shape-radius, min(10px, 25%));
  box-shadow: 0 1px 2px rgba(0,0,0,.35);
  transition: transform .28s cubic-bezier(.4, 1.3, .5, 1);
}
.strand-knob[data-on="web"] { transform: translateX(100%); }
.strand-side {
  position: relative; z-index: 1; display: flex; flex-direction: column;
  justify-content: center; min-width: 8.5rem; padding: .35rem 1rem;
  border-radius: var(--shape-radius, min(10px, 25%)); text-decoration: none; text-align: center;
  color: var(--muted-fg); line-height: 1.15;
}
.strand-side:hover { color: var(--fg); }
.strand-side.is-on { color: var(--on-accent); }
.strand-label { font-weight: 700; font-size: .9375rem; }
.strand-blurb { font-size: .6875rem; opacity: .8; }
.strand-side.is-on .strand-blurb { opacity: .75; }
.strand-switch.is-turning .strand-side { transition: color .26s ease; }
.strand-switch.is-turning .strand-side.is-on { color: var(--muted-fg); }
.strand-switch.is-turning .strand-side:not(.is-on) { color: var(--on-accent); }
@media (prefers-reduced-motion: reduce) { .strand-knob { transition: none; } }
@media (max-width: 700px) {
  .strand-switch { width: 100%; }
  .strand-side { flex: 1; min-width: 0; }
}
.site-main .face {
  width: 2rem; height: 2rem; border-radius: var(--shape-radius, min(10px, 25%)); object-fit: cover;
  display: inline-block; vertical-align: middle; margin-right: .5rem;
}
.site-main .panel img { margin-bottom: .75rem; }

/* The eye in a circle: information folded away until somebody wants it.
   Charlie, 8 September 2026 - a screen says what it is and what you do;
   everything explaining why goes behind this. Sits on .icon-btn above, so
   it is the same round button as everywhere else, one size smaller and
   quieter until it is open. */
.icon-btn--info { width: 1.875rem; height: 1.875rem; opacity: .65; }
.icon-btn--info:hover, .icon-btn--info:focus-visible { opacity: 1; }
.icon-btn--info .icon { width: 1rem; height: 1rem; }
/* Open, it wears the product's own colour, so at a glance you can see which
   of several on a page you left open. */
.icon-btn--info.is-on { opacity: 1; background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
/* What it reveals: set apart from the screen's own words, so it reads as a
   note rather than as more interface. */
.info-panel { margin: .625rem 0 0; padding: .75rem .875rem; border-left: 2px solid var(--btn-border);
  background: var(--soft, transparent); border-radius: 0 var(--shape-radius, min(10px, 25%)) var(--shape-radius, min(10px, 25%)) 0; }
.info-panel > :first-child { margin-top: 0; }
.info-panel > :last-child { margin-bottom: 0; }

/* What a button says when it has done its job: a tick and a word, beside
   it, gone in a moment. Charlie's rule for all four products, 8 September
   2026 - no message at the top of the page, and no jumping back up there
   to read it. See quiet-action.js. */
.quiet-said { display: inline-flex; align-items: center; gap: .35rem; margin-left: .625rem;
  font-size: .875rem; font-weight: 600; vertical-align: middle;
  opacity: 0; transition: opacity .25s ease; }
.quiet-said.is-done { opacity: 1; color: var(--success, #4BAE4F); }
.quiet-said.is-going { opacity: 0; }
/* A failure is not quiet and does not fade: it stays until the next press. */
.quiet-said.is-wrong { opacity: 1; color: var(--danger, #F34236); font-weight: 600; }
.quiet-said .icon { width: 1.125rem; height: 1.125rem; }
/* Nothing beside the tick, so it does not need the room a word did. */
.quiet-said.is-done { gap: 0; }
/* The forms in a button-row are inline, so the word sits beside its own
   button rather than pushing the row apart. */
.button-row form { display: inline-flex; align-items: center; }

/* A Cancel that would throw work away asks twice: the first press arms it
   and it says so, in the product's own warning colour. Not a dialog - this
   product does not use window.confirm anywhere, and a native one would
   block the tab so a timed question behind it could never be answered. */
#cancel-request { margin-left: auto; }
#cancel-request.is-armed { background: var(--danger, #F34236); border-color: var(--danger, #F34236); color: #fff; }

}
