/* ************************************************************************************************
 * Shell — the one hub chrome, shared by every hub, loaded by Pages/Shell/_HubShell.cshtml after
 * tokens.css. Mobile-first: an off-canvas drawer (CSS-only toggle), persistent from 1024px. The per-hub
 * ACCENT is the only variable bit: the shell sets body[data-accent="…"] and this file maps it to
 * --hub/--hub-deep/--hub-tint. Also the shared page primitives every hub uses: page head, card,
 * buttons, empty state, the native dialog, toasts, the hub switcher, and the table that turns into
 * cards on a phone.
 * ********************************************************************************************** */

/* ---- Per-hub accent (the one per-hub variable; set via body[data-accent]) ---- */
body { --hub: var(--sc-green); --hub-deep: var(--sc-green-deep); --hub-tint: var(--sc-green-tint); }
body[data-accent="green"]  { --hub: var(--sc-green);  --hub-deep: var(--sc-green-deep);  --hub-tint: var(--sc-green-tint); }
body[data-accent="blue"]   { --hub: var(--sc-blue);   --hub-deep: var(--sc-blue-deep);   --hub-tint: var(--sc-blue-tint); }
body[data-accent="teal"]   { --hub: var(--sc-teal);   --hub-deep: var(--sc-teal-deep);   --hub-tint: var(--sc-teal-tint); }
body[data-accent="violet"] { --hub: var(--sc-violet); --hub-deep: var(--sc-violet-deep); --hub-tint: var(--sc-violet-tint); }
body[data-accent="indigo"] { --hub: var(--sc-indigo); --hub-deep: var(--sc-indigo-deep); --hub-tint: var(--sc-indigo-tint); }
body[data-accent="amber"]  { --hub: var(--sc-amber);  --hub-deep: var(--sc-amber-deep);  --hub-tint: var(--sc-amber-tint); }
body[data-accent="coral"]  { --hub: var(--sc-coral);  --hub-deep: var(--sc-coral-deep);  --hub-tint: var(--sc-coral-tint); }

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

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

/* The hidden attribute must win over component display rules (e.g. .sc-btn's inline-flex),
   or inform()'s hidden Cancel button still renders. */
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--sc-font-body);
  font-size: var(--sc-text-md);
  color: var(--sc-ink);
  background: var(--sc-bg);
  line-height: 1.5;
}

h1, h2, h3 { font-family: var(--sc-font-display); margin: 0; }

a { color: inherit; text-decoration: none; }

.material-icons { font-size: 22px; line-height: 1; }

/* ---- Icon button ---- */
.sc-iconbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  transition: background var(--sc-dur) var(--sc-ease);
}
.sc-iconbtn:hover { background: rgba(0, 0, 0, .08); }

/* ---- Top app bar (frosted, washed in the hub's accent): menu + spacer + actions + hubs button ---- */
.sc-topbar {
  position: fixed;
  inset: 0 0 auto 0;
  display: flex;
  flex-direction: column;
  background: color-mix(in srgb, var(--hub) 10%, rgba(255, 255, 255, .86));
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  color: var(--hub-deep);
  border-bottom: 1px solid var(--sc-line);
  z-index: var(--sc-z-topbar);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .sc-topbar { background: color-mix(in srgb, var(--hub) 10%, #fff); }
}
.sc-topbar__bar {
  display: flex;
  align-items: center;
  gap: var(--sc-space-2);
  height: var(--sc-topbar-h);
  padding: 0 var(--sc-space-3);
}
.sc-topbar__spacer { flex: 1; min-width: 0; }

/* The QuickBooks sync indicator (the /sync-status island): a top-bar icon button, quiet until the
   sync has something to say. In step is the bar's own ink, steady; only a whole read moves (a slow turn,
   none under reduced motion); paused is a pause mark; needs attention keeps the mark and adds an amber
   dot; not heard from greys it out (calm, not amber); not connected is crossed out. */
.sc-sync { position: relative; color: var(--sc-ink-soft); }
.sc-sync--instep { color: var(--hub-deep); }
.sc-sync--syncing { color: var(--sc-blue-deep); }
.sc-sync--syncing .material-icons { animation: sc-sync-turn 2.4s linear infinite; }
@keyframes sc-sync-turn { to { transform: rotate(-360deg); } }
.sc-sync--attention { color: var(--hub-deep); }
.sc-sync__dot { position: absolute; top: 7px; right: 6px; width: 10px; height: 10px; border-radius: 999px;
  background: var(--sc-amber); box-shadow: 0 0 0 2px var(--sc-surface); }
.sc-sync--silent, .sc-sync--off { color: var(--sc-ink-faint); }
.sc-sync--silent .material-icons { opacity: .55; }
@media (prefers-reduced-motion: reduce) { .sc-sync--syncing .material-icons { animation: none; } }

/* ---- Drawer ----
   Off-canvas under 1024px, opened by the top bar's menu button (site.js sets body.sc-drawer-open).
   Closed, it is visibility:hidden, so out of the tab order; the visibility flips only after the
   slide-out ends (the transition delay), so the closing slide still shows. */
.sc-drawer {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sc-drawer-w);
  max-width: 86vw;
  display: flex;
  flex-direction: column;
  background: var(--sc-surface);
  border-right: 1px solid var(--sc-line);
  transform: translateX(-100%);
  visibility: hidden;
  transition: transform var(--sc-dur-slow) var(--sc-ease), visibility 0s linear var(--sc-dur-slow);
  z-index: var(--sc-z-drawer);
}
.sc-drawer-open .sc-drawer { transform: translateX(0); visibility: visible; transition: transform var(--sc-dur-slow) var(--sc-ease); }

.sc-scrim {
  position: fixed;
  inset: 0;
  background: rgba(36, 54, 64, .45);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--sc-dur) var(--sc-ease), visibility var(--sc-dur);
  z-index: calc(var(--sc-z-drawer) - 1);
  cursor: pointer;
}
.sc-drawer-open .sc-scrim { opacity: 1; visibility: visible; }

.sc-drawer__header {
  display: flex;
  align-items: center;
  gap: var(--sc-space-3);
  flex: none;   /* pegged: stays put while the nav scrolls under it */
  padding: var(--sc-space-5) var(--sc-space-4) var(--sc-space-4);
  border-bottom: 1px solid var(--sc-line);
  /* The hub's accent wash — the drawer header says which hub you're standing in. */
  background: linear-gradient(180deg, var(--hub-tint), transparent);
}
.sc-drawer__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--hub);
  color: #fff;
  font-size: 24px;
}
.sc-drawer__id { display: flex; flex-direction: column; min-width: 0; }
/* The name block is the way to Your sign-in: the whole header row answers the press. */
.sc-drawer__header { position: relative; }
.sc-drawer__me { flex: 1; color: inherit; text-decoration: none; }
.sc-drawer__me::after { content: ""; position: absolute; inset: 0; }
.sc-drawer__me:hover .sc-drawer__name { text-decoration: underline; text-underline-offset: 3px; }
.sc-drawer__chev { flex: none; color: var(--sc-ink-faint); }
.sc-drawer__name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-drawer__hub { font-size: var(--sc-text-xs); font-weight: 700; color: var(--hub-deep); text-transform: uppercase; letter-spacing: .04em; }

/* Only the nav scrolls; min-height:0 lets a flex item shrink below content height so its
   own overflow engages (the flex-column gotcha). Header + footer stay pegged. */
.sc-drawer__nav { flex: 1; min-height: 0; overflow-y: auto; padding: var(--sc-space-2) var(--sc-space-2) var(--sc-space-4); }
.sc-drawer__subheader {
  font-family: var(--sc-font-body);
  font-size: var(--sc-text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--sc-ink-soft);
  padding: var(--sc-space-4) var(--sc-space-3) var(--sc-space-1);
}
.sc-drawer__footer {
  flex: none;   /* pegged at the bottom — Leave Hub always reachable */
  padding: var(--sc-space-2);
  border-top: 1px solid var(--sc-line);
}

/* ---- Nav item (accent active state) ---- */
.sc-navitem {
  display: flex;
  align-items: center;
  gap: var(--sc-space-3);
  padding: var(--sc-space-3);
  border-radius: var(--sc-radius-sm);
  color: var(--sc-ink-soft);
  font-weight: 600;
  font-size: var(--sc-text-sm);
  transition: background var(--sc-dur) var(--sc-ease), color var(--sc-dur) var(--sc-ease);
}
.sc-navitem .material-icons { color: var(--sc-ink-faint); }
.sc-navitem:hover { background: var(--sc-surface-alt); color: var(--sc-ink); }
.sc-navitem.is-active { background: var(--hub-tint); color: var(--hub-deep); }
.sc-navitem.is-active .material-icons { color: var(--hub-deep); }
.sc-navitem.is-disabled { opacity: .5; cursor: not-allowed; }
.sc-navitem--danger:hover { background: var(--sc-danger-bg); color: var(--sc-danger); }
.sc-navitem--danger:hover .material-icons { color: var(--sc-danger); }
/* The drawer's Log Out is a POST form styled as a nav item. */
.sc-navitem--form { margin: 0; }
.sc-navitem--form button {
  display: flex;
  align-items: center;
  gap: var(--sc-space-3);
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

/* ---- Main content ---- */
.sc-main {
  padding-top: calc(var(--sc-topbar-h) + var(--sc-space-4));
  padding-bottom: var(--sc-space-7);
  min-height: 100vh;
}
.sc-main__inner {
  width: 100%;
  max-width: var(--sc-content-max);
  margin: 0 auto;
  padding: 0 var(--sc-space-4);
}

/* ---- Page header ---- */
.sc-pagehead { margin-bottom: var(--sc-space-4); }
.sc-pagehead h1 { font-size: var(--sc-text-2xl); }
.sc-pagehead p { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); margin: var(--sc-space-1) 0 0; }

/* ---- Surface / card ---- */
.sc-card {
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  padding: var(--sc-space-5);
  margin-bottom: var(--sc-space-4);
}
/* A card heading stands clear of the first field; a sentence under it stays close, then the fields. */
.sc-card__title { font-size: var(--sc-text-xl); margin-bottom: var(--sc-space-4); }
.sc-card__title:has(+ .sc-card__sub) { margin-bottom: var(--sc-space-1); }
.sc-card__sub { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); margin-bottom: var(--sc-space-4); }

/* ---- Buttons (the shell dialog uses them) ---- */
.sc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sc-space-2);
  font: inherit;
  font-weight: 700;
  color: #fff;
  background: var(--sc-green);
  border: 0;
  border-radius: var(--sc-radius-sm);
  padding: var(--sc-space-2) var(--sc-space-5);
  cursor: pointer;
  text-decoration: none;
  transition: background var(--sc-dur) var(--sc-ease);
}
.sc-btn[disabled] { opacity: .5; cursor: not-allowed; }
.sc-btn:hover { background: var(--sc-green-deep); }
.sc-btn--ghost { color: var(--sc-ink-soft); background: transparent; border: 1px solid var(--sc-line-strong); }
.sc-btn--ghost:hover { background: var(--sc-surface-alt); }
.sc-btn--danger { color: var(--sc-danger); background: transparent; border: 1px solid var(--sc-danger); }
.sc-btn--danger:hover { background: var(--sc-danger-bg); }
.sc-btn .material-icons { font-size: 18px; vertical-align: text-bottom; }

/* ---- Pressed and on its way (js/busy.js, every action on every page) ----
   The control keeps its own colours and turns a ring where its icon was (or before its words), so it reads as working,
   never as the faded look of one a person may not use. Reduced motion: the ring fades instead of turning. */
.is-busy { cursor: progress !important; }
.sc-btn.is-busy[disabled], .sc-btn.is-busy[aria-disabled], .sc-iconbtn.is-busy[disabled] { opacity: 1; }
.is-busy > .material-icons:first-child { display: none; }
.is-busy::before {
  content: "";
  flex: none;
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  margin: 0 .4em -.12em 0;
  animation: sc-busy-turn .8s linear infinite;
}
.sc-btn.is-busy::before, .sc-navitem--form .is-busy::before { margin: 0; }   /* their gap spaces it */
.sc-iconbtn.is-busy::before { width: 18px; height: 18px; margin: 0; }
/* A box being saved: its label turns the ring (a box draws no ring of its own), never the not-allowed look (the doubled
   class outweighs the disabled rule further down). */
.sc-check.sc-check:has(> input.is-busy) { cursor: progress; color: inherit; }
.sc-check:has(> input.is-busy)::after {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  margin-top: 4px;
  border: 2px solid var(--sc-ink-soft);
  border-right-color: transparent;
  border-radius: 50%;
  animation: sc-busy-turn .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) { .sc-check:has(> input.is-busy)::after { animation: sc-busy-fade 1.6s ease-in-out infinite; } }
@keyframes sc-busy-turn { to { transform: rotate(360deg); } }
@keyframes sc-busy-fade { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .is-busy::before { animation: sc-busy-fade 1.6s ease-in-out infinite; } }

/* ---- Focus: every control shows where the keyboard is ---- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible,
summary:focus-visible { outline: 2px solid var(--sc-blue-deep); outline-offset: 2px; }

/* ---- Form fields ---- */
.sc-input {
  font: inherit;
  font-size: max(16px, var(--sc-text-md));   /* 16px keeps iOS from zooming into the field */
  color: var(--sc-ink);
  background: var(--sc-surface-alt);
  border: 1px solid var(--sc-line-strong);
  border-radius: var(--sc-radius-sm);
  padding: var(--sc-space-2) var(--sc-space-3);
  min-height: 44px;
  max-width: 100%;
}
.sc-input:focus { outline: none; background: var(--sc-surface); border-color: var(--sc-blue); box-shadow: 0 0 0 3px var(--sc-blue-tint); }
.sc-input:disabled { opacity: .6; cursor: not-allowed; }
.sc-field { display: flex; flex-direction: column; gap: var(--sc-space-1); margin-bottom: var(--sc-space-4); min-width: 0; }
.sc-field__label { font-size: var(--sc-text-sm); font-weight: 600; }
.sc-field__hint { font-size: var(--sc-text-xs); color: var(--sc-ink-soft); }
.sc-check { display: flex; align-items: flex-start; gap: var(--sc-space-2); cursor: pointer; }
.sc-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--hub-deep); flex: none; }
.sc-check:has(input:disabled) { cursor: not-allowed; color: var(--sc-ink-soft); }
.sc-msg { font-size: var(--sc-text-sm); font-weight: 600; }
.sc-msg--error { color: var(--sc-danger); }
.sc-msg--success { color: var(--sc-success); }
.sc-notice {
  display: flex;
  gap: var(--sc-space-2);
  align-items: flex-start;
  padding: var(--sc-space-3) var(--sc-space-4);
  margin-bottom: var(--sc-space-4);
  border-radius: var(--sc-radius-sm);
  background: var(--sc-blue-tint);
  color: var(--sc-blue-deep);
  font-size: var(--sc-text-sm);
  overflow-wrap: anywhere;
}

/* ---- Empty state ---- */
.sc-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sc-space-2);
  padding: var(--sc-space-6) var(--sc-space-4);
  color: var(--sc-ink-soft);
  text-align: center;
}
.sc-empty .material-icons { font-size: 40px; color: var(--sc-ink-faint); }
.sc-empty p { margin: 0; max-width: 52ch; }

/* ---- Native dialog ---- */
.sc-dialog {
  /* Centred as a proper modal in the viewport (fixed + inset:0 + margin:auto), wherever the <dialog>
     sits in the DOM. Fixed also keeps it a containing block for the ::before brand edge. */
  position: fixed;
  inset: 0;
  margin: auto;
  border: 0;
  border-radius: var(--sc-radius-lg);
  padding: 0;
  max-width: min(92vw, 400px);
  box-shadow: var(--sc-shadow-lg);
  color: var(--sc-ink);
  overflow: hidden;
}
/* brand edge: the logo's green cart + blue swoosh */
.sc-dialog::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--sc-green) 0%, var(--sc-green) 45%, var(--sc-blue) 100%);
}
.sc-dialog[open] { animation: sc-dialog-pop var(--sc-dur) var(--sc-ease); }
.sc-dialog[open]::backdrop { animation: sc-dialog-fade var(--sc-dur) var(--sc-ease); }
@keyframes sc-dialog-pop {
  from { opacity: 0; transform: translateY(10px) scale(.97); }
}
@keyframes sc-dialog-fade {
  from { opacity: 0; }
}
.sc-dialog__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--sc-space-4);
  border-radius: 999px;
}
.sc-dialog__icon .material-icons { font-size: 30px; }
.sc-dialog__icon--info { background: var(--sc-blue-tint); color: var(--sc-blue-deep); }
.sc-dialog__icon--confirm { background: var(--sc-amber-tint); color: var(--sc-amber-deep); }
.sc-dialog::backdrop {
  background: rgba(36, 54, 64, .45);
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}
.sc-dialog__form { margin: 0; padding: var(--sc-space-6) var(--sc-space-5) var(--sc-space-5); }
.sc-dialog__msg { margin: 0 0 var(--sc-space-5); font-size: var(--sc-text-lg); text-align: center; line-height: 1.45; }
.sc-dialog__actions { display: flex; justify-content: center; gap: var(--sc-space-3); }
.sc-dialog__actions .sc-btn { min-width: 96px; }
@media (prefers-reduced-motion: reduce) {
  .sc-dialog[open], .sc-dialog[open]::backdrop { animation: none; }
}

/* ============================================================================================
 * Desktop — persistent drawer
 * ========================================================================================== */
@media (min-width: 1024px) {
  .sc-topbar { left: var(--sc-drawer-w); }
  .sc-topbar__menu { display: none; }
  /* No transition: a window widened past 1024px shows the drawer at once, not after the closed
     drawer's delayed visibility flip. */
  .sc-drawer { transform: translateX(0); visibility: visible; transition: none; }
  .sc-scrim { display: none; }
  .sc-main { margin-left: var(--sc-drawer-w); }
}

/* ---- Hub switcher (right slide-over <dialog>; opened by the top bar's hubs button) ----
   Mini hub cards, two-up — the picker's tiles at small scale, same per-hub accents. */
.sc-hubswitcher {
  position: fixed;
  inset: 0 0 0 auto;
  margin: 0;
  height: 100dvh;
  max-height: none;
  width: min(364px, 94vw);
  border: 0;
  border-left: 1px solid var(--sc-line);
  border-radius: 0;
  padding: 0;
  background: var(--sc-bg);
  color: var(--sc-ink);
  box-shadow: var(--sc-shadow-lg);
  overflow-y: auto;
}
.sc-hubswitcher::backdrop {
  background: rgba(36, 54, 64, .45);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.sc-hubswitcher[open] { animation: sc-hubswitcher-in var(--sc-dur-slow) var(--sc-ease); }
@keyframes sc-hubswitcher-in {
  from { transform: translateX(100%); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-hubswitcher[open] { animation: none; }
}
/* The brand rail along the panel's top — the dialog edge, here too. */
.sc-hubswitcher::before {
  content: "";
  position: sticky;
  top: 0;
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--sc-green) 0%, var(--sc-green) 45%, var(--sc-blue) 100%);
  z-index: 1;
}
.sc-hubswitcher__head {
  display: flex;
  align-items: center;
  gap: var(--sc-space-3);
  padding: var(--sc-space-4) var(--sc-space-4) var(--sc-space-3);
  border-bottom: 1px solid var(--sc-line);
  background: linear-gradient(135deg, var(--sc-green-tint), var(--sc-blue-tint)), var(--sc-surface);
}
.sc-hubswitcher__badge {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sc-green), var(--sc-blue));
  color: #fff;
}
.sc-hubswitcher__badge .material-icons { font-size: 22px; }
.sc-hubswitcher__heading { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sc-hubswitcher__title { font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-text-lg); line-height: 1.2; }
.sc-hubswitcher__sub { color: var(--sc-ink-soft); font-size: var(--sc-text-xs); }
.sc-hubswitcher__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sc-space-3);
  padding: var(--sc-space-4);
}
.sc-hubswitcher__tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--sc-space-1);
  padding: var(--sc-space-4) var(--sc-space-2) var(--sc-space-3);
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
  overflow: hidden;
  transition: transform var(--sc-dur) var(--sc-ease), box-shadow var(--sc-dur) var(--sc-ease),
              border-color var(--sc-dur) var(--sc-ease);
}
/* The hub's accent: painted top edge + a soft tint wash (the picker tiles, miniaturized). */
.sc-hubswitcher__tile::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--hsw);
}
.sc-hubswitcher__tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--hsw-tint), transparent 60%);
  opacity: .45;
  transition: opacity var(--sc-dur) var(--sc-ease);
  pointer-events: none;
}
a.sc-hubswitcher__tile:not(.is-disabled):hover {
  transform: translateY(-2px);
  box-shadow: var(--sc-shadow-lg);
  border-color: var(--hsw);
}
a.sc-hubswitcher__tile:not(.is-disabled):hover::after { opacity: 1; }
a.sc-hubswitcher__tile:not(.is-disabled):hover .sc-hubswitcher__icon { background: var(--hsw); color: #fff; }
.sc-hubswitcher__icon {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: var(--hsw-tint);
  color: var(--hsw-deep);
  transition: background var(--sc-dur) var(--sc-ease), color var(--sc-dur) var(--sc-ease);
}
.sc-hubswitcher__icon .material-icons { font-size: 24px; }
.sc-hubswitcher__label {
  position: relative;
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: var(--sc-text-sm);
  color: var(--hsw-deep);
}
.sc-hubswitcher__desc { position: relative; color: var(--sc-ink-soft); font-size: var(--sc-text-xs); }
.sc-hubswitcher__tile.is-current { border-color: var(--hsw); }
/* The current hub wears its hover face permanently — "you're here" reads at a glance. */
.sc-hubswitcher__tile.is-current .sc-hubswitcher__icon { background: var(--hsw); color: #fff; }
/* A hub the user may not enter: its accent desaturated to ink, "No access" on the tile. */
.sc-hubswitcher__desc .material-icons { font-size: 12px; vertical-align: -2px; }
.sc-hubswitcher__tile.is-disabled { --hsw: var(--sc-line-strong); --hsw-deep: var(--sc-ink-soft); --hsw-tint: var(--sc-surface-alt); opacity: .75; cursor: not-allowed; }
.sc-hubswitcher__tile.is-disabled::after { opacity: 0; }
/* Per-hub accents (the same colors the hubs wear inside). */
.hsw--green  { --hsw: var(--sc-green);  --hsw-tint: var(--sc-green-tint);  --hsw-deep: var(--sc-green-deep); }
.hsw--blue   { --hsw: var(--sc-blue);   --hsw-tint: var(--sc-blue-tint);   --hsw-deep: var(--sc-blue-deep); }
.hsw--amber  { --hsw: var(--sc-amber);  --hsw-tint: var(--sc-amber-tint);  --hsw-deep: var(--sc-amber-deep); }
.hsw--violet { --hsw: var(--sc-violet); --hsw-tint: var(--sc-violet-tint); --hsw-deep: var(--sc-violet-deep); }
.hsw--teal   { --hsw: var(--sc-teal);   --hsw-tint: var(--sc-teal-tint);   --hsw-deep: var(--sc-teal-deep); }
.hsw--indigo { --hsw: var(--sc-indigo); --hsw-tint: var(--sc-indigo-tint); --hsw-deep: var(--sc-indigo-deep); }
.hsw--coral  { --hsw: var(--sc-coral);  --hsw-tint: var(--sc-coral-tint);  --hsw-deep: var(--sc-coral-deep); }

/* ---- Table (shared treatment) ---- */
.sc-table-wrap {
  background: var(--sc-surface);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius);
  box-shadow: var(--sc-shadow);
}
.sc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: var(--sc-text-sm); }
.sc-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: linear-gradient(180deg, #fbfdfc, #f1f6f4);
  text-align: left;
  font-family: var(--sc-font-display);
  font-size: var(--sc-text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--sc-ink-soft);
  padding: var(--sc-space-3) var(--sc-space-4);
  border-bottom: 1px solid var(--sc-line-strong);
  white-space: nowrap;
}
.sc-table td {
  padding: var(--sc-space-3) var(--sc-space-4);
  border-bottom: 1px solid var(--sc-line);
  vertical-align: middle;
  color: var(--sc-ink);
}
.sc-table tbody tr:last-child td { border-bottom: 0; }
.sc-table__empty {
  text-align: center;
  color: var(--sc-ink-soft);
  padding: var(--sc-space-6) var(--sc-space-4) !important;
}

/* ---- .sl-table: a list table that turns into cards on phones (never sideways scroll). Each data
   cell carries data-label="…"; the first cell is the card title, actions (.sl-actions) pin top-right. ---- */
@media (max-width: 719.98px) {
  .sl-table thead { display: none; }
  .sl-table, .sl-table tbody, .sl-table tr, .sl-table td { display: block; }
  .sl-table tr { position: relative; padding: var(--sc-space-3) var(--sc-space-4); border-bottom: 1px solid var(--sc-line); }
  .sl-table tbody tr:last-child { border-bottom: 0; }
  .sl-table td { padding: 1px 0; border: 0; text-align: left; }
  .sl-table td:first-child { padding-right: 64px; margin-bottom: 2px; }   /* clear the pinned actions */
  .sl-table td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--sc-ink-soft); }
  .sl-table td[data-label] > details { display: inline-block; vertical-align: top; }   /* the label and its disclosure on one line */
  .sl-table td.sl-actions { position: absolute; top: var(--sc-space-3); right: var(--sc-space-3); padding: 0; display: flex; gap: 4px; }
}

/* ---- App-wide toasts (top of page; _Toast.cshtml) ---- */
.sc-toasts {
  position: fixed;
  top: var(--sc-space-3);
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--sc-space-2);
  width: min(440px, calc(100vw - 2 * var(--sc-space-3)));
  pointer-events: none;   /* the bar doesn't block; each toast re-enables */
}
.sc-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--sc-space-2);
  padding: var(--sc-space-2) var(--sc-space-3);
  border-radius: var(--sc-radius);
  border: 1px solid transparent;
  box-shadow: var(--sc-shadow);
  font-size: var(--sc-text-sm);
  font-weight: 600;
  animation: sc-toast-in .2s ease-out;
}
.sc-toast--out { animation: sc-toast-out .2s ease-in forwards; }
.sc-toast--success { color: var(--sc-success); background: var(--sc-success-bg); border-color: #b6e3bf; }
.sc-toast--error { color: var(--sc-danger); background: var(--sc-danger-bg); border-color: #f0c4bd; }
.sc-toast__icon { font-size: 1.25rem; }
.sc-toast__msg { flex: 1; }
.sc-toast__close {
  border: 0; background: none; color: inherit; cursor: pointer;
  font-size: 1rem; line-height: 1; padding: 2px; opacity: .7;
}
.sc-toast__close:hover { opacity: 1; }
@keyframes sc-toast-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes sc-toast-out { to { opacity: 0; transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { .sc-toast, .sc-toast--out { animation: none; } }

/* Text for a screen reader only (a column head with no visible label). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---- The bottom action bar of an editor page: back on the left, the page's actions on the right ---- */
.su-pageactions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sc-space-3);
  padding-top: var(--sc-space-4);
  border-top: 1px solid var(--sc-line);
}
.su-pageactions > :last-child { margin-left: auto; }
.su-formactions { display: flex; justify-content: flex-end; margin-top: var(--sc-space-4); }
.sc-btn.is-disabled { opacity: .5; cursor: not-allowed; }

/* ---- Access hub: people, roles, permissions ---- */
.su-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sc-space-3); }
.su-head__id, .su-head > div { min-width: 0; }
.su-head h1 { overflow-wrap: anywhere; }
.su-head p { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-space-2); overflow-wrap: anywhere; }
.su-user { display: flex; flex-direction: column; min-width: 0; }
@media (min-width: 720px) { .su-user { min-width: 11rem; } }
.su-user__name { font-weight: 700; overflow-wrap: anywhere; }
.su-user__email { color: var(--sc-ink-soft); font-size: var(--sc-text-xs); overflow-wrap: anywhere; }
.su-roles { display: flex; flex-wrap: wrap; gap: 4px; }
/* A phone's user card: name, email quiet under it, then the access pills and the status (with any
   passkey mark) on one wrapping line, no labels; Edit pinned at the top right. */
@media (max-width: 719.98px) {
  .su-table td.su-cell-access, .su-table td.su-cell-state { display: inline-block; vertical-align: middle; margin: 6px 6px 0 0; }
  .su-table td.su-cell-access .su-roles { display: inline-flex; }
}
/* A pill wears its hub's accent through an hsw--<accent> class (the switcher's colour vars). */
.su-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: var(--sc-text-xs);
  font-weight: 700;
  color: var(--hsw-deep, var(--sc-ink-soft));
  background: var(--hsw-tint, var(--sc-surface-alt));
  border: 1px solid var(--sc-line);
  white-space: nowrap;
}
.su-pill--owner { color: #fff; background: var(--sc-ink); border-color: var(--sc-ink); }
.su-status { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: var(--sc-text-xs); font-weight: 700; }
.su-status--on { background: var(--sc-success-bg); color: var(--sc-success); }
.su-status--invited, .su-status--sent { background: var(--sc-blue-tint); color: var(--sc-blue-deep); }
.su-status--warn { background: var(--sc-amber-tint); color: var(--sc-amber-deep); }
.su-status--problem { background: var(--sc-danger-bg); color: var(--sc-danger); }
.su-status--off { background: var(--sc-surface-alt); color: var(--sc-ink-soft); border: 1px solid var(--sc-line); }
.su-resv {
  display: inline-block;
  margin-left: 4px;
  padding: 0 6px;
  border-radius: 6px;
  font-size: var(--sc-text-xs);
  font-weight: 700;
  color: var(--sc-amber-deep);
  background: var(--sc-amber-tint);
  white-space: nowrap;
}
.su-note { font-style: normal; color: var(--sc-ink-soft); font-size: var(--sc-text-xs); }
.su-readonly { min-height: 44px; display: flex; align-items: center; overflow-wrap: anywhere; color: var(--sc-ink-soft); }
/* Users list: the status and, for someone with passkeys, a small mark with the count. */
.su-marks { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; vertical-align: middle; }
.su-passkeymark { display: inline-flex; align-items: center; gap: 2px; padding: 0 8px 0 5px; border-radius: 999px;
  background: var(--sc-surface); border: 1px solid var(--sc-line); color: var(--sc-ink-soft);
  font-size: var(--sc-text-xs); font-weight: 700; line-height: 18px; }
.su-passkeymark .material-icons { font-size: 15px; color: var(--sc-blue-deep); }

/* Edit User › Sign-in: the user's passkeys, each with Remove (a lost device). */
.su-passkeys { margin-top: var(--sc-space-5); padding-top: var(--sc-space-4); border-top: 1px solid var(--sc-line); }
.su-passkeys__title { display: flex; align-items: center; gap: var(--sc-space-2); font-size: var(--sc-text-md); margin-bottom: var(--sc-space-1); }
.su-passkeys__count { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px;
  background: var(--sc-blue-tint); color: var(--sc-blue-deep); font-family: var(--sc-font-body); font-size: var(--sc-text-xs); font-weight: 700; }
.su-passkeys__list { list-style: none; margin: var(--sc-space-3) 0 0; padding: 0; display: flex; flex-direction: column; gap: var(--sc-space-2); }
.su-passkey { display: flex; align-items: center; gap: var(--sc-space-3); padding: var(--sc-space-2) var(--sc-space-3);
  border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm); background: var(--sc-surface-alt); }
.su-passkey__icon { flex: none; color: var(--sc-blue-deep); }
.su-passkey__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.su-passkey__name { font-weight: 700; overflow-wrap: anywhere; }
.su-passkey__meta { font-size: var(--sc-text-xs); color: var(--sc-ink-soft); }
.su-passkey__remove { flex: none; padding-inline: var(--sc-space-3); }
.su-who { display: grid; grid-template-columns: 1fr; gap: 0 var(--sc-space-4); }
@media (min-width: 720px) { .su-who { grid-template-columns: 1fr 1fr; } }
.su-who .sc-input { width: 100%; }

/* The access cards (Add User, Edit User): the Account Owner switch, then one card per hub. */
.su-owner {
  display: flex;
  align-items: center;
  gap: var(--sc-space-3);
  padding: var(--sc-space-3) var(--sc-space-4);
  border: 1px solid var(--sc-line-strong);
  border-radius: var(--sc-radius-sm);
  background: var(--sc-surface-alt);
  cursor: pointer;
}
.su-owner:has(input:disabled) { cursor: not-allowed; opacity: .7; }
.su-owner__icon { color: var(--sc-amber-deep); }
.su-owner__body { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.su-owner__name { font-weight: 700; }
.su-owner__hint { font-size: var(--sc-text-xs); color: var(--sc-ink-soft); }
.su-switch { width: 22px; height: 22px; flex: none; accent-color: var(--sc-amber-deep); }
.su-access__divider { text-align: center; color: var(--sc-ink-soft); font-size: var(--sc-text-xs); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: var(--sc-space-4) 0 var(--sc-space-3); }
.su-access__owned { display: none; margin: var(--sc-space-3) 0 0; padding: var(--sc-space-3) var(--sc-space-4); border-radius: var(--sc-radius-sm);
  background: var(--sc-amber-tint); color: var(--sc-amber-deep); font-size: var(--sc-text-sm); font-weight: 600; }
.su-access__owned .material-icons { font-size: 18px; vertical-align: -4px; margin-right: 4px; }
.su-access:has(#account-owner:checked) .su-access__owned { display: block; }
/* An Account Owner holds every hub: the hub cards collapse away (their choices stay in the form, so
   unticking brings them back as they were). CSS alone, so it needs no script and no round trip. */
.su-access:has(#account-owner:checked) .su-hubgrid, .su-access:has(#account-owner:checked) .su-access__divider { display: none; }
.su-hubgrid { display: grid; grid-template-columns: 1fr; gap: var(--sc-space-3); }
@media (min-width: 720px) { .su-hubgrid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1200px) { .su-hubgrid { grid-template-columns: 1fr 1fr 1fr; } }
.su-hubcard {
  min-width: 0;
  margin: 0;
  padding: var(--sc-space-3) var(--sc-space-4) var(--sc-space-4);
  border: 1px solid var(--sc-line);
  border-top: 3px solid var(--hsw);
  border-radius: var(--sc-radius-sm);
  display: flex;
  flex-direction: column;
  gap: var(--sc-space-2);
}
.su-hubcard[disabled] { opacity: .7; }
/* A floated legend sits inside the card, so the accent edge runs unbroken above it. */
.su-hubcard__head { float: left; width: 100%; display: flex; align-items: center; gap: var(--sc-space-2); padding: 0; margin-bottom: var(--sc-space-1); font-family: var(--sc-font-display); font-weight: 700; color: var(--hsw-deep); }
.su-hubcard__head + * { clear: both; }
.su-note--block { display: block; }
.su-hubcard__icon { font-size: 20px; }
.su-hubcard__lock { font-size: 16px; color: var(--sc-ink-faint); }
.su-hubcard--access .su-hubcard__head { width: 100%; }
.su-sub { display: none; flex-direction: column; gap: var(--sc-space-2); padding-left: 26px; }
.su-hubcard:has(input[value="role"]:checked) .su-sub[data-when="role"],
.su-hubcard:has(input[value="perms"]:checked) .su-sub[data-when="perms"] { display: flex; }
.su-sub .sc-input { width: 100%; }

/* New custom role (the Roles page) */
.su-newrole { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 0 var(--sc-space-3); margin-top: var(--sc-space-4); }
.su-newrole .sc-field { flex: 1 1 12rem; }
.su-newrole .sc-input { width: 100%; }
.su-newrole .sc-btn { margin-bottom: var(--sc-space-4); min-height: 44px; }

/* A permission list (the role editor, the Permissions reference) */
.su-perms { list-style: none; margin: 0 0 var(--sc-space-3); padding: 0; display: flex; flex-direction: column; gap: var(--sc-space-3); }
.su-perms li { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--sc-space-2); }
.su-perms .sc-check > span { display: flex; flex-direction: column; }
.su-perms__name { font-weight: 600; }
.su-perms__line { display: block; }
.su-perms__line .su-resv { vertical-align: 1px; }
.su-perms dt { font-weight: 600; }
.su-perms dd { margin: 2px 0 0; }
.su-group { font-size: var(--sc-text-md); margin: var(--sc-space-4) 0 var(--sc-space-2); color: var(--sc-ink-soft); }
.su-hubref { border-top: 3px solid var(--hsw); }
.su-hubref__head { display: flex; align-items: center; gap: var(--sc-space-2); font-size: var(--sc-text-lg); color: var(--hsw-deep); margin-bottom: var(--sc-space-3); }

/* The Permissions Report's per-person detail */
.su-held summary { cursor: pointer; font-weight: 600; color: var(--sc-blue-deep); }
.su-held__hub { margin: var(--sc-space-2) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-space-2); font-size: var(--sc-text-sm); }

/* ---- The editor action bar's right-hand group (several actions beside Back) ---- */
.su-pageactions__end { display: flex; flex-wrap: wrap; gap: var(--sc-space-2); }
.sc-iconbtn.is-blocked, .sc-iconbtn.is-disabled { opacity: .45; cursor: not-allowed; }

/* ---- The filter bar (Pages/Shared/Filters/_FilterBar): Search, Date (or the page's lead choice,
   .fb-lead, which on a phone takes Date's whole row), Person, the page's own filter, then Clear, in one
   row that wraps; From/To on a row of their own while the date is a custom range.
   Under 720px Search stays and the rest folds behind the Filters toggle (a checkbox before the form). */
.fb { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sc-space-3); padding: var(--sc-space-4); }
.fb-head, .fb-folded, .fb-lead { display: contents; }
.fb .sc-field { margin-bottom: 0; flex: 1 1 9rem; }
.fb .sc-field.fb-date { flex-basis: 11rem; }
.fb .sc-field.fb-search { flex: 2 1 16rem; }
.fb .sc-input { width: 100%; }
.fb-toggle { display: none; }
/* Clear sits at the bar's top right, in the labels' line, so the fields keep their one row. */
.fb-clear { position: absolute; top: calc(var(--sc-space-4) - 6px); right: var(--sc-space-4); }
.fb-clear:empty { display: none; }
.fb-clear a { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; padding: 0 var(--sc-space-1);
  font-size: var(--sc-text-sm); font-weight: 600; color: var(--sc-blue-deep); text-decoration: none; white-space: nowrap; }
.fb-clear a:hover { text-decoration: underline; }
.fb-clear .material-icons { font-size: 18px; }
.fb-range { display: none; order: 3; flex-basis: 100%; gap: var(--sc-space-3); grid-template-columns: repeat(2, minmax(0, 12rem)); }
.fb:has(select[name="date"] option[value="custom"]:checked) .fb-range { display: grid; }
.fb-range .sc-field { flex: none; }
.fb-show { order: 4; }
.fb-empty { margin-bottom: 0; }
.fb-empty .sc-btn .material-icons { font-size: 18px; color: inherit; }
@media (max-width: 719.98px) {
  .fb { display: block; padding: var(--sc-space-3); }
  /* Search has the whole width; Filters (left) and Clear (right) on the line beneath it. */
  .fb-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--sc-space-2) var(--sc-space-2); }
  .fb .sc-field.fb-search { grid-column: 1 / -1; }
  .fb-clear { position: static; grid-column: 2; justify-self: end; }
  .fb-head:not(:has(.fb-clear a)) .fb-clear { display: none; }
  /* A Search-only bar (Users): Clear beside the box, on its row. */
  .fb-head:not(:has(.fb-toggle)) { grid-template-columns: 1fr auto; align-items: end; }
  .fb-head:not(:has(.fb-toggle)) .fb-search { grid-column: 1; }
  .fb-head:not(:has(.fb-toggle)) .fb-clear { grid-column: 2; }
  .fb-toggle { display: inline-flex; align-items: center; gap: 6px; flex: none; min-height: 44px; padding: 0 var(--sc-space-3);
    border: 1px solid var(--sc-line-strong); border-radius: var(--sc-radius-sm); background: var(--sc-surface);
    font-size: var(--sc-text-sm); font-weight: 600; color: var(--sc-ink); cursor: pointer; user-select: none; }
  .fb-toggle .material-icons { font-size: 20px; color: var(--sc-ink-soft); }
  .fb-fold:checked + .fb .fb-toggle { background: var(--hub-tint); border-color: var(--hub-deep); color: var(--hub-deep); }
  .fb-fold:checked + .fb .fb-toggle .material-icons { color: var(--hub-deep); }
  .fb-fold:focus-visible + .fb .fb-toggle { outline: 2px solid var(--sc-blue-deep); outline-offset: 2px; }
  .fb-clear a { min-height: 44px; }
  .fb-folded { display: none; }
  .fb-fold:checked + .fb .fb-folded { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sc-space-3);
    margin-top: var(--sc-space-3); padding-top: var(--sc-space-3); border-top: 1px solid var(--sc-line); }
  .fb-folded .fb-date, .fb-lead > .sc-field, .fb-range { grid-column: 1 / -1; }
  .fb-range { order: 1; }
  .fb-folded > .sc-field:not(.fb-date) { order: 2; }
  .fb-range { grid-template-columns: 1fr 1fr; }
  .fb-show { margin-top: var(--sc-space-3); width: 100%; }
}
.fb-count__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--hub-deep); color: #fff; font-size: var(--sc-text-xs); font-weight: 700; }

/* ---- Audit Log (every hub's, and Today, all hubs) ---- */
.au-when { white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--sc-ink-soft); }
.au-who__name { display: block; }
.au-who__email { display: block; font-size: var(--sc-text-xs); color: var(--sc-ink-soft); }
/* A phone's audit card: the action and what happened lead, the record under them, who (and the hub) and
   when quietly last; a bare entry (sign-in) puts the record beside its action. */
@media (max-width: 719.98px) {
  .au-table tr.au-row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 8px; align-items: baseline;
    grid-template-areas: "act what what" "record record record" "who who when"; }
  .au-table tr.au-row--bare { grid-template-areas: "act record record" "who who when"; }
  .au-table tr.au-row:has(.au-hub) { grid-template-areas: "act what what" "record record record" "hub who when"; }
  .au-table tr.au-row--bare:has(.au-hub) { grid-template-areas: "act record record" "hub who when"; }
  /* The record is the person themself (a sign-in): the person once, beside the action, then the time. */
  .au-table tr.au-row--self { grid-template-areas: "act what what" "record record when"; }
  .au-table tr.au-row--self.au-row--bare { grid-template-areas: "act record when"; }
  .au-table tr.au-row--self:has(.au-hub) { grid-template-areas: "act what what" "record record record" "hub hub when"; }
  .au-table tr.au-row--self.au-row--bare:has(.au-hub) { grid-template-areas: "act record record" "hub hub when"; }
  .au-table tr.au-row--self .au-who { display: none; }
  .au-table tr.au-row td { padding: 0; margin: 0; }
  .au-table .au-act { grid-area: act; }
  .au-table .au-what { grid-area: what; font-weight: 600; overflow-wrap: anywhere; min-width: 0; }
  .au-table tr.au-row--bare .au-what { display: none; }
  .au-table .au-record { grid-area: record; font-size: var(--sc-text-sm); overflow-wrap: anywhere; min-width: 0; }
  .au-table tr.au-row--bare .au-record { font-weight: 600; font-size: inherit; }
  .au-table .au-who { grid-area: who; font-size: var(--sc-text-xs); color: var(--sc-ink-soft); overflow-wrap: anywhere; min-width: 0; }
  .au-table .au-who__name { display: inline; }
  .au-table .au-who__email { display: none; }
  .au-table .au-hub { grid-area: hub; font-size: var(--sc-text-xs); font-weight: 700; color: var(--sc-ink-soft); }
  .au-table .au-when { grid-area: when; font-size: var(--sc-text-xs); text-align: right; }
  .rb-by { overflow-wrap: anywhere; }
}
.au-action { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: var(--sc-text-xs); font-weight: 700;
  background: var(--sc-surface-alt); color: var(--sc-ink-soft); white-space: nowrap; }
.au-action--create, .au-action--restore { background: var(--sc-success-bg); color: var(--sc-success); }
.au-action--delete, .au-action--lockout { background: var(--sc-danger-bg); color: var(--sc-danger); }
.au-action--update, .au-action--invite { background: var(--sc-blue-tint); color: var(--sc-blue-deep); }
.au-record__type { font-size: var(--sc-text-xs); font-weight: 700; color: var(--sc-ink-soft); margin-right: 2px; }
/* Where the table has the room (a wide screen), Record is given enough of it for its type and a name of
   two or three words on one line; What happened is the column that gives. A longer name wraps at its
   spaces (a long unbroken one anywhere), so nothing pushes the table sideways. */
@media (min-width: 1200px) {
  .au-table td.au-record { min-width: 14rem; }
  .au-table td.au-who { min-width: 10rem; }   /* a usual email stays whole under the name */
}
.au-record__name { overflow-wrap: anywhere; }
.au-detail summary { cursor: pointer; color: var(--sc-blue-deep); font-weight: 600; }
.au-changes { margin: var(--sc-space-2) 0 0; display: flex; flex-direction: column; gap: var(--sc-space-2); }
.au-changes > div { border-left: 3px solid var(--hub); padding-left: var(--sc-space-3); }
.au-changes dt { font-size: var(--sc-text-xs); font-weight: 700; color: var(--sc-ink-soft); }
.au-changes dd { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; overflow-wrap: anywhere; }
.au-changes dd .material-icons { font-size: 16px; color: var(--sc-ink-faint); }
.au-before { color: var(--sc-ink-soft); text-decoration: line-through; text-decoration-color: var(--sc-ink-faint); }
.au-after { font-weight: 700; }
.au-more { text-align: center; color: var(--sc-ink-soft); }

/* ---- Recycle Bin ---- */
.rb-count { margin: 0 0 var(--sc-space-2); color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.rb-name { font-weight: 700; overflow-wrap: anywhere; }
.rb-type { display: inline-block; padding: 1px 8px; margin-right: 4px; border-radius: 999px; font-size: var(--sc-text-xs);
  background: var(--hub-tint); color: var(--hub-deep); }
.rb-body { margin-top: var(--sc-space-1); }
.rb-body[open] { margin-bottom: var(--sc-space-3); }
.rb-body summary { cursor: pointer; color: var(--sc-blue-deep); font-weight: 600; font-size: var(--sc-text-sm); }
.rb-body__head { font-size: var(--sc-text-sm); margin: var(--sc-space-3) 0 var(--sc-space-1); color: var(--sc-ink-soft); }
.rb-fields { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 2px var(--sc-space-3); }
.rb-fields > div { display: contents; }
.rb-fields dt { color: var(--sc-ink-soft); }
.rb-fields dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.rb-items { margin: 0; padding-left: 1.2em; }
.rb-none { margin: 0; color: var(--sc-ink-soft); }
.rb-table td.sl-actions { white-space: nowrap; text-align: right; }
@media (max-width: 719.98px) { .rb-table td:first-child { padding-right: 96px; } }

/* ---- Outbox: Sent | Email (subject, then To + kind) | Status (chip + time, its sentence) | Sent by.
   On phones each row is a card led by the email, then its status, with when and by whom last. ---- */
.ob-table td { vertical-align: top; }
.ob-when { width: 7.5rem; font-variant-numeric: tabular-nums; color: var(--sc-ink-soft); }
.ob-when__day, .ob-when__time { display: block; white-space: nowrap; }
.ob-when__day { color: var(--sc-ink); }
.ob-subject { display: block; font-weight: 600; line-height: 1.35; }
.ob-meta { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; margin-top: 3px; font-size: var(--sc-text-xs); color: var(--sc-ink-soft); }
.ob-kind { display: inline-block; padding: 0 7px; border-radius: 999px; border: 1px solid var(--sc-line); background: var(--sc-surface-alt);
  white-space: nowrap; font-weight: 600; }
.ob-status { width: 19rem; }
.ob-table .su-status { white-space: nowrap; }
.ob-state { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.ob-at { white-space: nowrap; font-size: var(--sc-text-xs); font-variant-numeric: tabular-nums; font-weight: 600; color: var(--sc-ink-soft); }
.ob-why { display: block; margin-top: 4px; font-size: var(--sc-text-xs); line-height: 1.4; color: var(--sc-ink-soft); }
.ob-ref { margin-top: 2px; font-size: var(--sc-text-xs); }
.ob-ref summary { display: inline; cursor: pointer; color: var(--sc-ink-faint); list-style: none; }
.ob-ref summary::-webkit-details-marker { display: none; }
.ob-ref summary:hover, .ob-ref[open] summary { color: var(--sc-blue-deep); }
.ob-ref summary:focus-visible { outline: 2px solid var(--sc-blue-deep); outline-offset: 2px; border-radius: 2px; }
.ob-ref__id { display: block; margin-top: 2px; padding: 2px 6px; border-radius: var(--sc-radius-sm); background: var(--sc-surface-alt);
  font-size: var(--sc-text-xs); color: var(--sc-ink); overflow-wrap: anywhere; user-select: all; }
.ob-by { width: 11rem; font-size: var(--sc-text-sm); }
.ob-by__email { display: block; font-size: var(--sc-text-xs); color: var(--sc-ink-soft); }
.ob-by__label, .ob-when__by { display: none; }
@media (min-width: 720px) and (max-width: 1023.98px) {
  .ob-table .ob-by { display: none; }
  .ob-when { width: 9rem; }
  .ob-when__by { display: block; margin-top: 4px; font-size: var(--sc-text-xs); }
}
@media (max-width: 719.98px) {
  .ob-table tr.ob-row { display: grid; grid-template-columns: auto 1fr; grid-template-areas: "email email" "status status" "when by"; gap: 6px 10px; }
  .ob-table tr.ob-row td { padding: 0; width: auto; }
  .ob-table .ob-email { grid-area: email; }
  .ob-table .ob-status { grid-area: status; padding: 8px 10px; border-radius: var(--sc-radius-sm); background: var(--sc-surface-alt); }
  .ob-table .ob-when { grid-area: when; font-size: var(--sc-text-xs); }
  .ob-table .ob-when__day, .ob-table .ob-when__time { display: inline; }
  .ob-table .ob-by { grid-area: by; text-align: right; overflow-wrap: anywhere; }
  .ob-by__label { display: inline; }
  .ob-table .ob-by { font-size: var(--sc-text-xs); color: var(--sc-ink-soft); }
  .ob-by__email { display: none; }
  .ob-to { overflow-wrap: anywhere; }
  .ob-why { font-size: var(--sc-text-sm); color: var(--sc-ink); }
}

/* ---- Data Retention ---- */
.dr-stream { border: 1px solid var(--sc-line); margin-inline: 0; min-width: 0; }
.dr-stream legend { float: left; width: 100%; padding: 0; font-family: var(--sc-font-display); font-weight: 700; }
.dr-stream legend + * { clear: both; }
.dr-choices { display: flex; flex-wrap: wrap; gap: var(--sc-space-2); }
.dr-choice { position: relative; cursor: pointer; }
.dr-choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.dr-choice span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sc-space-4); border-radius: var(--sc-radius-sm);
  border: 1px solid var(--sc-line-strong); font-weight: 600; color: var(--sc-ink-soft); background: var(--sc-surface); }
.dr-choice input:checked + span { background: var(--hub-tint); border-color: var(--hub-deep); color: var(--hub-deep); box-shadow: inset 0 0 0 1px var(--hub-deep); }
.dr-choice input:focus-visible + span { outline: 2px solid var(--sc-blue-deep); outline-offset: 2px; }

/* ---- Company › Profile ---- */
.cp-grid { display: grid; grid-template-columns: 1fr; gap: var(--sc-space-4); }
@media (min-width: 1024px) { .cp-grid { grid-template-columns: 1fr 1fr; } .cp-grid__wide { grid-column: 1 / -1; } }
.cp-grid .sc-card { min-width: 0; margin: 0; }
.cp-grid .sc-input { width: 100%; }
.cp-grid .sc-field:last-child { margin-bottom: 0; }
.cp-row { display: grid; grid-template-columns: 1fr; gap: 0 var(--sc-space-3); }
@media (min-width: 480px) { .cp-row { grid-template-columns: 1fr 1fr; } .cp-row--address { grid-template-columns: 2fr 1fr 1fr; } }
.cp-row .sc-field:last-child { margin-bottom: var(--sc-space-4); }
.cp-row:last-child .sc-field { margin-bottom: 0; }
@media (max-width: 479.98px) { .cp-row:last-child .sc-field:not(:last-child) { margin-bottom: var(--sc-space-4); } }
.sc-field__label .sc-msg { margin-left: var(--sc-space-1); font-size: var(--sc-text-xs); }

/* ---- Company › Broadcast Message ---- */
.bm-label { display: block; font-family: var(--sc-font-display); font-weight: 700; }
.bm-label .sc-msg { margin-left: var(--sc-space-1); font-family: var(--sc-font-body); font-size: var(--sc-text-sm); }
.bm-textarea { display: block; width: 100%; margin-top: var(--sc-space-3); resize: vertical; line-height: 1.5; }
.bm-help { margin: var(--sc-space-3) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); overflow-wrap: anywhere; }

/* ---- The broadcast dialog (every hub, and the picker) ---- */
.sc-broadcast {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(460px, calc(100vw - 2 * var(--sc-space-4)));
  max-height: calc(100dvh - 2 * var(--sc-space-4));
  overflow-y: auto;
  border: 1px solid var(--sc-line);
  border-top: 4px solid var(--sc-amber);
  border-radius: var(--sc-radius-lg);
  box-shadow: var(--sc-shadow-lg);
  padding: var(--sc-space-5);
  background: var(--sc-surface);
  color: var(--sc-ink);
}
.sc-broadcast::backdrop { background: rgba(36, 54, 64, .45); }
.sc-broadcast__head {
  display: flex;
  align-items: center;
  gap: var(--sc-space-2);
  font-family: var(--sc-font-display);
  font-weight: 700;
  font-size: var(--sc-text-lg);
  padding-bottom: var(--sc-space-3);
  margin-bottom: var(--sc-space-3);
  border-bottom: 1px solid var(--sc-line);
  overflow-wrap: anywhere;
}
.sc-broadcast__head .material-icons { color: var(--sc-amber-deep); }
.sc-broadcast__body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sc-broadcast__meta { margin: var(--sc-space-3) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); overflow-wrap: anywhere; }
.sc-broadcast__foot { display: flex; justify-content: flex-end; margin: var(--sc-space-4) 0 0; }
.sc-broadcast__foot .sc-btn { min-width: 96px; }

/* ---- Company › Branding: the logo tiles ---- */
.cp-logos { display: grid; grid-template-columns: 1fr; gap: var(--sc-space-4); }
@media (min-width: 720px) { .cp-logos { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.cp-logocard { margin: 0; min-width: 0; }
.cp-logo__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sc-space-2); margin-bottom: var(--sc-space-3); }
.cp-logo__id { min-width: 0; }
.cp-logo__label { font-size: var(--sc-text-lg); margin: 0; }
.cp-logo__label .sc-msg { margin-left: var(--sc-space-1); font-family: var(--sc-font-body); font-size: var(--sc-text-xs); }
.cp-logo__hint { margin: 2px 0 0; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.cp-logo__frame {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 160px;
  padding: var(--sc-space-3);
  border: 1px solid var(--sc-line);
  border-radius: var(--sc-radius-sm);
  background: repeating-conic-gradient(var(--sc-surface-alt) 0% 25%, var(--sc-surface) 0% 50%) 0 0 / 16px 16px;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.cp-logo__frame--empty { border-style: dashed; border-color: var(--sc-line-strong); background: var(--sc-surface-alt); }
.cp-logo__frame--static { cursor: not-allowed; }
.cp-logo__frame:focus-within { outline: 2px solid var(--sc-blue-deep); outline-offset: 2px; }
.cp-logo__img { max-width: 100%; max-height: 100%; object-fit: contain; }
.cp-logo__overlay {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sc-space-1);
  color: var(--sc-ink-soft);
  font-size: var(--sc-text-sm);
  font-weight: 600;
}
.cp-logo__frame:not(.cp-logo__frame--empty) .cp-logo__overlay {
  position: absolute;
  inset: 0;
  justify-content: center;
  border-radius: inherit;
  background: rgba(255, 255, 255, .88);
  opacity: 0;
  transition: opacity var(--sc-dur-fast) var(--sc-ease);
}
.cp-logo__frame:not(.cp-logo__frame--static):hover .cp-logo__overlay,
.cp-logo__frame:not(.cp-logo__frame--static):focus-within .cp-logo__overlay { opacity: 1; }

/* ---- QuickBooks Desktop › Sync Status, its Computer section: the computer that runs EndSync (Company) ---- */
.qs { min-width: 0; }
.qs-head { display: flex; align-items: flex-start; gap: var(--sc-space-3); margin-bottom: var(--sc-space-4); }
.qs-head__text { min-width: 0; }
.qs-mark { flex: none; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 999px;
  background: var(--sc-surface-alt); color: var(--sc-ink-faint); border: 1px solid var(--sc-line); }
.qs-mark--hub { background: var(--hub-tint); color: var(--hub-deep); border-color: transparent; }
.qs-title { font-size: var(--sc-text-xl); line-height: 1.2; margin: 0; overflow-wrap: anywhere; }
.qs-title--name { font-size: var(--sc-text-2xl); letter-spacing: -.01em; }
.qs-sub { margin: var(--sc-space-1) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-text-md); max-width: 60ch; }
/* A connected computer: neutral (the status below carries the colour), its name and facts close together. */
.qs-head--on { align-items: center; margin-bottom: var(--sc-space-3); }
.qs-state { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); font-weight: 600; }
.qs-actions { display: flex; flex-wrap: wrap; gap: var(--sc-space-2); }
.qs-actions .sc-btn { min-height: 44px; }
@media (min-width: 720px) { .qs-actions__end { margin-left: auto; } }
@media (max-width: 479.98px) {
  .qs-actions .sc-btn { flex: 1 1 100%; }
  .qs-mark { width: 40px; height: 40px; }
  .qs-mark .material-icons { font-size: 20px; }
}
/* The connected computer's controls: a quiet secondary row, each button its own width, never stacked blocks. */
.qs-actions--quiet .sc-btn { min-height: 40px; padding-inline: var(--sc-space-3); font-size: var(--sc-text-sm); }
@media (max-width: 479.98px) {
  .qs-actions--quiet .sc-btn { flex: 0 1 auto; }
  .qs-head--on .qs-title--name { font-size: var(--sc-text-xl); }
}
/* Disconnect among them: a ghost control that says danger in its words and colour, not its weight. */
.qs-btn--danger { color: var(--sc-danger); }
.qs-btn--danger:hover { background: var(--sc-danger-bg); }
.qs-fine { margin: var(--sc-space-4) 0 0; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); max-width: 62ch; }
/* EndSync's log, for support: the card's foot, under a hairline, small, so it never reads as one of the computer's controls. */
.qs-log { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-space-2) var(--sc-space-4); margin-top: var(--sc-space-4);
  padding-top: var(--sc-space-3); border-top: 1px dashed var(--sc-line); }
.qs-log__what { flex: 1 1 24em; margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); max-width: 62ch; }
.qs-log__get { flex: none; min-height: 40px; padding-inline: var(--sc-space-3); font-size: var(--sc-text-sm); }
@media (min-width: 720px) { .qs-log__get { margin-left: auto; } }
.qs-notice { display: flex; gap: var(--sc-space-2); align-items: flex-start; margin: 0 0 var(--sc-space-4); padding: var(--sc-space-3) var(--sc-space-4);
  border-radius: var(--sc-radius-sm); font-size: var(--sc-text-sm); font-weight: 600; overflow-wrap: anywhere; }
.qs-notice .material-icons { font-size: 20px; }
.qs-notice--done { background: var(--sc-success-bg); color: var(--sc-success); }
.qs-notice--problem { background: var(--sc-danger-bg); color: var(--sc-danger); }
.qs-notice--pending { background: var(--sc-amber-tint); color: var(--sc-amber-deep); font-weight: 500; }
.qs-notice--pending b { font-weight: 700; }
/* The facts about the connected computer: label over value on a phone, label beside value wider. */
.qs-facts { display: grid; gap: var(--sc-space-3); margin: 0 0 var(--sc-space-5); padding: var(--sc-space-4) 0 0; border-top: 1px solid var(--sc-line); }
.qs-facts dt { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); font-weight: 600; }
.qs-facts dd { margin: 2px 0 0; overflow-wrap: anywhere; }
@media (min-width: 720px) {
  .qs-facts > div { display: grid; grid-template-columns: 11rem 1fr; gap: var(--sc-space-4); align-items: baseline; }
  .qs-facts dd { margin: 0; }
}
/* The connected computer's two facts: label beside value at every width, close together. */
.qs-facts--tight { gap: var(--sc-space-1); margin-bottom: var(--sc-space-4); padding-top: var(--sc-space-3); }
.qs-facts--tight > div { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: var(--sc-space-3); align-items: baseline; }
.qs-facts--tight dd { margin: 0; }
@media (min-width: 720px) { .qs-facts--tight > div { grid-template-columns: 11rem 1fr; gap: var(--sc-space-4); } }
/* Connecting is a sequence: three numbered steps on a rail, the code inside the last. */
.qs-steps { list-style: none; counter-reset: qs-step; margin: 0 0 var(--sc-space-4); padding: 0; }
.qs-steps > li { counter-increment: qs-step; position: relative; padding: 0 0 var(--sc-space-5) 48px; min-width: 0; }
.qs-steps > li::before { content: counter(qs-step); position: absolute; left: 0; top: -3px; width: 32px; height: 32px; border-radius: 999px;
  background: var(--hub-tint); color: var(--hub-deep); font: 700 var(--sc-text-md)/32px var(--sc-font-display); text-align: center; }
.qs-steps:last-child { margin-bottom: 0; }
.qs-steps > li:last-child { padding-bottom: 0; }
.qs-steps > li:not(:last-child)::after { content: ""; position: absolute; left: 15px; top: 34px; bottom: 4px; width: 2px; background: var(--sc-line); }
.qs-steps p { margin: 0; }
.qs-steps__btn { margin-top: var(--sc-space-3); min-height: 44px; }
/* Step 1's download, its version beside it (under it on a phone). */
.qs-get { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-space-1) var(--sc-space-3); }
.qs-get .qs-steps__btn { margin-top: var(--sc-space-3); }
.qs-version { margin-top: var(--sc-space-3); color: var(--sc-ink-soft); font-size: var(--sc-text-sm); font-variant-numeric: tabular-nums; }
.qs-elsewhere { margin-top: var(--sc-space-3) !important; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); max-width: 60ch; }
.qs-addr { font-family: var(--sc-font-display); font-weight: 700; color: var(--sc-ink); overflow-wrap: anywhere; }
.qs-steps .qs-actions { margin-top: var(--sc-space-3); }
.qs-steps .qs-wait { margin: var(--sc-space-3) 0 0; }
@media (max-width: 479.98px) {
  .qs-get { flex-direction: column; align-items: stretch; }
  .qs-get .qs-steps__btn, .qs-steps > li > .qs-steps__btn { width: 100%; }
  .qs-get .qs-version { margin-top: 0; }
}
.qs-site { margin-top: var(--sc-space-2) !important; font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-text-lg); overflow-wrap: anywhere; }
/* The one thing to read off the screen and type: large, spaced, easy to copy. */
.qs-code { display: inline-flex; align-items: baseline; margin: var(--sc-space-3) 0 var(--sc-space-2) !important; padding: var(--sc-space-3) var(--sc-space-4);
  border: 2px solid var(--hub); border-radius: var(--sc-radius); background: var(--sc-surface);
  font: 800 clamp(1.9rem, 1.2rem + 3.6vw, 2.9rem)/1 var(--sc-font-display); letter-spacing: .14em; font-variant-numeric: tabular-nums;
  color: var(--sc-ink); user-select: all; white-space: nowrap; max-width: 100%; }
.qs-code__dash { color: var(--sc-ink-faint); font-weight: 400; margin: 0 .08em 0 -.04em; }
.qs-left { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-wait { display: flex; align-items: baseline; gap: var(--sc-space-2); margin: 0 0 var(--sc-space-4); padding: var(--sc-space-3) var(--sc-space-4);
  border-radius: var(--sc-radius-sm); background: var(--sc-surface-alt); color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-wait__dot { flex: none; width: 8px; height: 8px; border-radius: 999px; background: var(--hub); animation: qs-wait 1.6s ease-in-out infinite; }
@keyframes qs-wait { 50% { opacity: .25; } }
/* Help folded away: what the computer needs, and what the browser asks before it keeps EndSync. */
.qs-guide { margin-top: var(--sc-space-4); font-size: var(--sc-text-sm); color: var(--sc-ink-soft); max-width: 64ch; }
.qs-steps .qs-guide { margin-top: var(--sc-space-3); }
.qs-guide + .qs-guide { margin-top: var(--sc-space-2); }
.qs-guide summary { cursor: pointer; width: fit-content; color: var(--hub-deep); font-weight: 700; min-height: 32px; display: flex; align-items: center; gap: var(--sc-space-1); list-style: none; }
.qs-guide summary::-webkit-details-marker { display: none; }
.qs-guide summary::before { content: ""; width: 0; height: 0; border-block: 5px solid transparent; border-left: 6px solid currentColor; transition: transform var(--sc-dur-fast) var(--sc-ease); }
.qs-guide[open] summary::before { transform: rotate(90deg); }
.qs-guide p { margin: var(--sc-space-2) 0; }
.qs-guide ol, .qs-guide ul { margin: var(--sc-space-2) 0; padding-left: 1.25rem; }
.qs-guide li { margin-bottom: var(--sc-space-3); }
.qs-guide b { color: var(--sc-ink); }
.qs-guide img { display: block; max-width: 100%; height: auto; margin-top: var(--sc-space-2); border: 1px solid var(--sc-line-strong); border-radius: var(--sc-radius-sm); }
@media (prefers-reduced-motion: reduce) { .qs-wait__dot { animation: none; } }

/* ---- QuickBooks Desktop › Sync Status and What's Synced: where the sync stands, review, what's synced, activity ---- */
.qs-sec { margin-top: var(--sc-space-6); }
.qs-sec__title { font-size: var(--sc-text-lg); margin: 0 0 var(--sc-space-3); }
.qs-sec__sub { margin: calc(-1 * var(--sc-space-2)) 0 var(--sc-space-3); color: var(--sc-ink-soft); font-size: var(--sc-text-sm); max-width: 64ch; }
.qs-card { padding: var(--sc-space-4) var(--sc-space-5); }
.qs-none { margin: 0; color: var(--sc-ink-soft); }
.qs-empty__go { margin-top: var(--sc-space-2); min-height: 44px; }
.sc-empty .qs-empty__go .material-icons { font-size: 20px; color: inherit; }
.qs-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--sc-space-2); border-radius: 999px;
  background: var(--sc-surface-alt); border: 1px solid var(--sc-line-strong); color: var(--sc-ink-soft);
  font-size: var(--sc-text-xs); font-weight: 700; white-space: nowrap; }
.qs-tag--hub { background: var(--sc-blue-tint); border-color: transparent; color: var(--sc-blue-deep); }
.qs-tag--gone { background: var(--sc-danger-bg); border-color: transparent; color: var(--sc-danger); }

/* The statement: one plain sentence under a heading, its mark and the card's edge in the state's colour.
   In step is green and still; a whole read is blue with a slow turn; paused is neutral; needs attention is
   amber; not heard from and not connected are grey. */
.qs-now { --qs-tone: var(--sc-ink-faint); --qs-tint: var(--sc-surface-alt); border-left: 5px solid var(--qs-tone); }
.qs-now--instep { --qs-tone: var(--sc-success); --qs-tint: var(--sc-success-bg); }
.qs-now--syncing { --qs-tone: var(--sc-blue); --qs-tint: var(--sc-blue-tint); }
.qs-now--paused { --qs-tone: var(--sc-ink-soft); --qs-tint: var(--sc-surface-alt); }
.qs-now--attention { --qs-tone: var(--sc-amber); --qs-tint: var(--sc-amber-tint); }
.qs-now__head { display: flex; align-items: flex-start; gap: var(--sc-space-4); }
.qs-now__mark { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px;
  background: var(--qs-tint); color: var(--qs-tone); }
.qs-now--attention .qs-now__mark { color: var(--sc-amber-deep); }
.qs-now__mark .material-icons { font-size: 28px; }
.qs-now--syncing .qs-now__mark .material-icons { animation: sc-sync-turn 3s linear infinite; }
.qs-now__text { min-width: 0; padding-top: 2px; }
.qs-now__title { font-size: var(--sc-text-2xl); line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.qs-now__lead { margin: var(--sc-space-2) 0 0; font-size: var(--sc-text-lg); line-height: 1.45; max-width: 58ch; overflow-wrap: anywhere; }
.qs-now__every { display: flex; align-items: center; gap: var(--sc-space-2); margin: var(--sc-space-4) 0 0; padding-top: var(--sc-space-3);
  border-top: 1px solid var(--sc-line); color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-now__every .material-icons { font-size: 18px; color: var(--sc-ink-faint); }
/* Quiet standing notes under the statement: QuickBooks closing and being opened again, and how a person uses QuickBooks
   where EndSync holds it. */
.qs-now__note { display: flex; align-items: flex-start; gap: var(--sc-space-2); margin: var(--sc-space-3) 0 0; color: var(--sc-ink-soft);
  font-size: var(--sc-text-sm); line-height: 1.5; max-width: 68ch; overflow-wrap: anywhere; }
.qs-now__note .material-icons { flex: none; font-size: 18px; margin-top: 1px; color: var(--sc-ink-faint); }
@media (max-width: 479.98px) {
  .qs-now__head { gap: var(--sc-space-3); }
  .qs-now__mark { width: 40px; height: 40px; }
  .qs-now__mark .material-icons { font-size: 22px; }
  .qs-now__lead { font-size: var(--sc-text-md); }
}
@media (prefers-reduced-motion: reduce) { .qs-now--syncing .qs-now__mark .material-icons { animation: none; } }

/* EndSync's buttons, pressed from Sync Status: the last press's journey on one line (on its way, taken, refused,
   never taken), in the status's tones, then the three everyday buttons, then the rarer ones and the interval. */
.qs-cmd__line { --qs-tone: var(--sc-blue-deep); --qs-tint: var(--sc-blue-tint); display: flex; align-items: flex-start; gap: var(--sc-space-3);
  margin: 0 0 var(--sc-space-4); padding: var(--sc-space-3) var(--sc-space-4); border-radius: var(--sc-radius-sm);
  background: var(--qs-tint); border-left: 4px solid var(--qs-tone); }
.qs-cmd__line--done { --qs-tone: var(--sc-success); --qs-tint: var(--sc-success-bg); }
.qs-cmd__line--refused { --qs-tone: var(--sc-amber-deep); --qs-tint: var(--sc-amber-tint); }
.qs-cmd__line--expired { --qs-tone: var(--sc-ink-soft); --qs-tint: var(--sc-surface-alt); }
/* Taken and never answered: nobody knows what happened, so neither the success nor the refusal tone. */
.qs-cmd__line--unknown { --qs-tone: var(--sc-ink); --qs-tint: var(--sc-surface-alt); }
.qs-cmd__mark { flex: none; display: grid; place-items: center; width: 24px; height: 24px; color: var(--qs-tone); }
.qs-cmd__mark .material-icons { font-size: 22px; }
.qs-cmd__mark .qs-wait__dot { width: 10px; height: 10px; background: var(--qs-tone); }
.qs-cmd__text { min-width: 0; }
.qs-cmd__text p { margin: 0; overflow-wrap: anywhere; max-width: 62ch; }
.qs-cmd__what { font-weight: 700; color: var(--sc-ink); }
.qs-cmd__answer { margin-top: 2px !important; color: var(--sc-ink); }
.qs-cmd__more { margin-top: 2px !important; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-cmd__when { margin-top: var(--sc-space-1) !important; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); font-variant-numeric: tabular-nums; }
.qs-cmd__more-actions { align-items: center; margin-top: var(--sc-space-3); padding-top: var(--sc-space-3); border-top: 1px solid var(--sc-line); }
.qs-cmd__every { display: flex; align-items: center; gap: var(--sc-space-2); color: var(--sc-ink-soft); font-size: var(--sc-text-sm); font-weight: 600; }
.qs-cmd__every .sc-input { min-height: 40px; padding-block: var(--sc-space-1); }
@media (min-width: 720px) { .qs-cmd__every { margin-left: auto; } }
/* Whether the computer is dedicated to EndSync: one quiet choice under the buttons. */
.qs-cmd__hold, .qs-cmd__crash { margin-top: var(--sc-space-3); padding-top: var(--sc-space-3); border-top: 1px solid var(--sc-line); }
.qs-cmd__crash { display: grid; gap: var(--sc-space-1); }
.qs-cmd__crash-choice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-space-1) var(--sc-space-2); }
.qs-cmd__crash .sc-input { min-height: 40px; padding-block: var(--sc-space-1); }
.qs-cmd__crash:has(select:disabled) .qs-cmd__what { color: var(--sc-ink-soft); }
.qs-cmd__hold .sc-check > span { display: grid; gap: 2px; min-width: 0; }
.qs-cmd__hold-sub { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); max-width: 66ch; }
.qs-cmd__hold .sc-check:has(input:disabled) .qs-cmd__what { color: var(--sc-ink-soft); }
/* What each control does, folded away at the card's foot: the control's name, its line under it. */
.qs-cmd__defs { margin: var(--sc-space-3) 0 0; }
.qs-cmd__defs dt { font-weight: 700; color: var(--sc-ink); }
.qs-cmd__defs dd { margin: 2px 0 var(--sc-space-3); }
@media (max-width: 479.98px) {
  .qs-cmd__main { display: grid; grid-template-columns: 1fr 1fr; }
  .qs-cmd__main .sc-btn:first-child { grid-column: 1 / -1; }
  .qs-cmd__every { flex: 1 1 100%; justify-content: space-between; }
}

/* A whole read's meter (EndSync's "N of M kinds of record finished"). */
.qs-meter { height: 8px; margin: var(--sc-space-5) 0 var(--sc-space-2); border-radius: 999px; background: var(--sc-surface-alt);
  border: 1px solid var(--sc-line); overflow: hidden; }
.qs-meter i { display: block; height: 100%; background: var(--qs-tone); border-radius: inherit; transition: width var(--sc-dur-slow) var(--sc-ease); }
.qs-meter__label { margin: 0 0 var(--sc-space-3); color: var(--sc-ink-soft); font-size: var(--sc-text-sm); font-variant-numeric: tabular-nums; }

/* A whole read's kinds, in EndSync's order: name, its numbers, its place (reading, saving, done). One line
   wide; on a phone the name and place lead and the numbers sit under them. */
.qs-types { list-style: none; margin: var(--sc-space-2) 0 0; padding: 0; }
.qs-type { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(5rem, auto); gap: var(--sc-space-1) var(--sc-space-4);
  align-items: baseline; padding: var(--sc-space-2) 0; border-top: 1px solid var(--sc-line); font-size: var(--sc-text-md); }
.qs-type:first-child { border-top: 0; }
.qs-type__name { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.qs-type__count { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 var(--sc-space-3);
  color: var(--sc-ink-soft); font-size: var(--sc-text-sm); font-variant-numeric: tabular-nums; }
.qs-type__state { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); text-align: right; }
.qs-type.is-waiting .qs-type__name { color: var(--sc-ink-soft); font-weight: 500; }
.qs-type.is-done .qs-type__state { color: var(--sc-success); font-weight: 700; }
.qs-type.is-reading .qs-type__state, .qs-type.is-writing .qs-type__state { color: var(--sc-blue-deep); font-weight: 700; }
@media (max-width: 719.98px) {
  .qs-type { grid-template-columns: minmax(0, 1fr) auto; }
  .qs-type__count { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; }
  .qs-type__count:empty { display: none; }
}

/* What's synced: a few lines, label and total on one line with the kinds quietly under; the last whole read
   and what the file doesn't use said once, below a hairline. */
.qs-sum { margin: 0; display: grid; }
.qs-sum__row { display: grid; grid-template-columns: minmax(9rem, 14rem) minmax(0, 1fr); gap: 2px var(--sc-space-4);
  padding: var(--sc-space-3) 0; border-top: 1px solid var(--sc-line); align-items: baseline; }
.qs-sum__row:first-child { border-top: 0; padding-top: 0; }
.qs-sum__label { font-weight: 700; }
.qs-sum__value { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sc-space-3); }
.qs-sum__total { font-family: var(--sc-font-display); font-weight: 700; font-size: var(--sc-text-lg); font-variant-numeric: tabular-nums; }
.qs-sum__when, .qs-sum__unit { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-sum__total + .qs-sum__unit { margin-left: calc(-1 * var(--sc-space-2)); }
.qs-sum__parts { grid-column: 2; margin: 0; display: flex; flex-wrap: wrap; gap: 2px var(--sc-space-3);
  color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-sum__part { white-space: nowrap; }
.qs-sum__part b { color: var(--sc-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.qs-sum__notes { display: grid; gap: var(--sc-space-1); margin-top: var(--sc-space-3); padding-top: var(--sc-space-3); border-top: 1px solid var(--sc-line); }
.qs-sum__note { display: flex; align-items: flex-start; gap: var(--sc-space-2); margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-sum__note .material-icons { font-size: 18px; color: var(--sc-ink-faint); position: relative; top: 1px; }
@media (max-width: 559.98px) {
  .qs-sum__row { grid-template-columns: minmax(0, 1fr) auto; }
  .qs-sum__value { justify-content: flex-end; text-align: right; }
  .qs-sum__value:has(.qs-sum__when), .qs-sum__value:has(.qs-sum__unit) { grid-column: 1 / -1; justify-content: flex-start; text-align: left; }
  .qs-sum__parts { grid-column: 1 / -1; }
}


/* An older EndSync on the connected computer, under its version: a calm amber note with the download beside it. */
.qs-older { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-space-2) var(--sc-space-3); margin: 0 0 var(--sc-space-4);
  padding: var(--sc-space-3) var(--sc-space-4); border-radius: var(--sc-radius-sm); background: var(--sc-amber-tint); }
.qs-older > .material-icons { color: var(--sc-amber-deep); }
.qs-older p { flex: 1 1 14rem; margin: 0; font-size: var(--sc-text-sm); }
.qs-older__get { min-height: 40px; background: var(--sc-surface); }
/* EndSync said why it couldn't update itself: the same note, marked down its edge, its first words the fact. */
.qs-older--stuck { box-shadow: inset 3px 0 0 var(--sc-amber-deep); }
.qs-older--stuck b { font-weight: 700; }
@media (max-width: 479.98px) { .qs-older__get { width: 100%; } }

/* Needs Review: each binned record, the way to its bin entry beside it; QuickBooks' warnings in their own
   section. On Sync Status, one quiet line leading there while something is in it. */
.qs-reviewline { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-space-1) var(--sc-space-3); margin: var(--sc-space-4) 0 0;
  padding: var(--sc-space-3) var(--sc-space-4); border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm); background: var(--sc-surface);
  font-size: var(--sc-text-sm); }
.qs-reviewline > .material-icons { font-size: 20px; color: var(--sc-amber-deep); }
.qs-reviewline__text { flex: 1 1 16rem; min-width: 0; }
.qs-reviewline__go { color: var(--hub-deep); font-weight: 700; min-height: 32px; display: inline-flex; align-items: center;
  margin-left: calc(20px + var(--sc-space-3)); }   /* wrapped under the text, it lines up with the text, not the icon */
.qs-review { list-style: none; margin: 0; padding: 0; }
.qs-review__row { display: flex; align-items: center; gap: var(--sc-space-3); padding: var(--sc-space-3) 0; border-top: 1px solid var(--sc-line); }
.qs-review__row:first-child { border-top: 0; padding-top: 0; }
.qs-review__row:last-child { padding-bottom: 0; }
.qs-review__what { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.qs-review__name { font-weight: 700; overflow-wrap: anywhere; }
.qs-review__meta { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-review__meta::first-letter { text-transform: uppercase; }
.qs-review__go { flex: none; min-height: 40px; }
.qs-warnings { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-space-2); }
.qs-warnings li { display: flex; gap: var(--sc-space-2); align-items: flex-start; padding: var(--sc-space-2) var(--sc-space-3);
  border-radius: var(--sc-radius-sm); background: var(--sc-amber-tint); color: var(--sc-ink); font-size: var(--sc-text-sm); overflow-wrap: anywhere; }
.qs-warnings .material-icons { font-size: 18px; color: var(--sc-amber-deep); }
@media (max-width: 559.98px) {
  .qs-review__row { flex-direction: column; align-items: stretch; gap: var(--sc-space-2); }
  .qs-review__go { width: 100%; }
}

/* Recent activity: one row per pass that changed something; opening it shows each record, before and after. */
.qs-passes { list-style: none; margin: 0 0 var(--sc-space-4); padding: 0; overflow: hidden; }
.qs-pass + .qs-pass { border-top: 1px solid var(--sc-line); }
.qs-pass__sum { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr) auto 24px; gap: var(--sc-space-3); align-items: baseline;
  padding: var(--sc-space-3) var(--sc-space-5); cursor: pointer; list-style: none; }
.qs-pass__sum::-webkit-details-marker { display: none; }
.qs-pass__sum:hover { background: var(--sc-surface-alt); }
.qs-pass__sum:focus-visible { outline: 2px solid var(--sc-blue-deep); outline-offset: -2px; }
.qs-pass__when time { display: flex; flex-direction: column; font-weight: 700; font-variant-numeric: tabular-nums; }
.qs-pass__when time span { font-weight: 500; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-pass__what { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sc-space-2); min-width: 0; }
.qs-pass__text { min-width: 0; overflow-wrap: anywhere; }
.qs-pass__counts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sc-space-1); }
.qs-count { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--sc-space-2); border-radius: 999px;
  background: var(--sc-surface-alt); border: 1px solid var(--sc-line); font-size: var(--sc-text-xs); font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.qs-count--new { background: var(--sc-success-bg); border-color: transparent; color: var(--sc-success); }
.qs-count--gone { background: var(--sc-danger-bg); border-color: transparent; color: var(--sc-danger); }
.qs-pass__chev { color: var(--sc-ink-faint); align-self: center; transition: transform var(--sc-dur-fast) var(--sc-ease); }
.qs-pass details[open] .qs-pass__chev { transform: rotate(180deg); }
.qs-pass__body { padding: 0 var(--sc-space-5) var(--sc-space-4) calc(5.5rem + var(--sc-space-5) + var(--sc-space-3)); }
.qs-pass--more { padding: var(--sc-space-3) var(--sc-space-5); color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
@media (max-width: 719.98px) {
  /* A composed card: when and the counts on the first line, the summary under. */
  .qs-pass__sum { grid-template-columns: minmax(0, 1fr) auto 24px; gap: var(--sc-space-1) var(--sc-space-2); padding: var(--sc-space-3) var(--sc-space-4); }
  .qs-pass__when { grid-column: 1; grid-row: 1; }
  .qs-pass__when time { flex-direction: row; gap: var(--sc-space-2); align-items: baseline; }
  .qs-pass__counts { grid-column: 2; grid-row: 1; }
  .qs-pass__chev { grid-column: 3; grid-row: 1; }
  .qs-pass__what { grid-column: 1 / -1; grid-row: 2; }
  .qs-pass__body { padding: 0 var(--sc-space-4) var(--sc-space-4); }
}
.qs-change { padding: var(--sc-space-3) 0; border-top: 1px dashed var(--sc-line-strong); }
.qs-change:first-child { border-top: 0; }
.qs-change__head { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sc-space-2); margin: 0; }
.qs-change__name { font-weight: 700; overflow-wrap: anywhere; }
.qs-change__type { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-change__why { margin: 2px 0 0; color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.qs-change__more { padding-top: var(--sc-space-2); }
.qs-diff { display: grid; gap: var(--sc-space-1); margin: var(--sc-space-2) 0 0; font-size: var(--sc-text-sm); }
.qs-diff > div { display: grid; grid-template-columns: minmax(7rem, 14rem) minmax(0, 1fr); gap: var(--sc-space-3); }
.qs-diff dt { color: var(--sc-ink-soft); overflow-wrap: anywhere; }
.qs-diff dd { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sc-space-1); overflow-wrap: anywhere; min-width: 0; }
.qs-diff .material-icons { font-size: 14px; color: var(--sc-ink-faint); }
.qs-diff__before { color: var(--sc-ink-soft); text-decoration: line-through; text-decoration-color: var(--sc-line-strong); }
.qs-diff__after { font-weight: 600; }
@media (max-width: 559.98px) { .qs-diff > div { grid-template-columns: 1fr; gap: 0; } }

/* The company file's facts, flat in their card. */
.qs-facts--flat { margin: 0; padding: 0; border-top: 0; }
.qs-path { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
/* The sites QuickBooks reports: each name, with what it is quietly beside it (under it on a phone). */
.qs-filesites { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sc-space-1); }
.qs-filesites li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sc-space-2); }
.qs-filesites__name { font-weight: 700; overflow-wrap: anywhere; }
.qs-filesites__desc { color: var(--sc-ink-soft); font-size: var(--sc-text-sm); overflow-wrap: anywhere; }
@media (max-width: 479.98px) { .qs-filesites li { flex-direction: column; } }

/* ---- The logo cropper dialog (Branding) ---- */
.lc-dialog {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(880px, calc(100vw - 2 * var(--sc-space-4)));
  max-height: calc(100dvh - 2 * var(--sc-space-4));
  overflow-y: auto;
  border: 0;
  border-radius: var(--sc-radius-lg);
  box-shadow: var(--sc-shadow-lg);
  padding: var(--sc-space-5);
  background: var(--sc-surface);
  color: var(--sc-ink);
}
.lc-dialog::backdrop { background: rgba(36, 54, 64, .45); }
.lc__title { font-size: var(--sc-text-xl); margin: 0; }
.lc__hint { margin: var(--sc-space-1) 0 var(--sc-space-4); color: var(--sc-ink-soft); font-size: var(--sc-text-sm); }
.lc__body { display: grid; grid-template-columns: 1fr; gap: var(--sc-space-4); }
@media (min-width: 720px) { .lc__body { grid-template-columns: 3fr 2fr; } }
.lc__stage { height: 320px; background: var(--sc-surface-alt); border-radius: var(--sc-radius-sm); overflow: hidden; }
.lc__stage img { display: block; max-width: 100%; }
.lc__side { display: flex; flex-direction: column; gap: var(--sc-space-3); min-width: 0; }
.lc__prevnote { margin: 0 0 var(--sc-space-2); font-size: var(--sc-text-xs); font-weight: 700; color: var(--sc-ink-soft); text-transform: uppercase; letter-spacing: .06em; }
.lc__tools { display: flex; flex-wrap: wrap; gap: var(--sc-space-2); }
.lc__help { margin: 0; color: var(--sc-ink-soft); font-size: var(--sc-text-xs); }
.lc__actions { display: flex; justify-content: flex-end; gap: var(--sc-space-2); margin-top: var(--sc-space-4); }
.lc-prev { max-width: 100%; max-height: 100%; object-fit: contain; }
.lc__card { border: 1px solid var(--sc-line); border-top: 4px solid var(--sc-green); border-radius: var(--sc-radius); padding: var(--sc-space-4); text-align: center; }
.lc__card-logo { height: 68px; display: flex; justify-content: center; margin-bottom: var(--sc-space-2); }
.lc__card-name { font-size: var(--sc-text-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-soft); overflow-wrap: anywhere; }
.lc__card-h1 { font-family: var(--sc-font-display); font-weight: 700; margin-top: var(--sc-space-1); }
.lc__paper { border: 1px solid var(--sc-line); border-radius: var(--sc-radius-sm); padding: var(--sc-space-3); background: #fff; }
.lc__paper-head { display: flex; gap: var(--sc-space-2); align-items: flex-start; }
.lc__paper-logo { width: 72px; height: 48px; display: flex; flex: none; }
.lc__paper-lines { display: flex; flex-direction: column; gap: 4px; min-width: 0; font-size: var(--sc-text-xs); overflow-wrap: anywhere; }
.lc__paper-lines span, .lc__paper-body span, .lc__mail-card > span { display: block; height: 6px; width: 80%; border-radius: 3px; background: var(--sc-line); }
.lc__paper-body { display: flex; flex-direction: column; gap: 6px; margin-top: var(--sc-space-3); }
/* The email: the logo lands at the top of the card, at its real size (Email/EmailLayout: at most 200 × 72). */
.lc__mail { background: #f1f4ef; border-radius: var(--sc-radius-sm); padding: var(--sc-space-3); }
.lc__mail-from { font-size: var(--sc-text-xs); font-weight: 700; color: var(--sc-green-deep); margin-bottom: var(--sc-space-2); }
.lc__mail-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--sc-line); border-top: 4px solid var(--sc-green); border-radius: var(--sc-radius-sm); padding: var(--sc-space-3); }
.lc__mail-logo { display: flex; max-width: 200px; height: 72px; margin-bottom: var(--sc-space-2); }
.lc__mail-logo .lc-prev { object-position: left top; }
.lc__mail-h1 { font-weight: 700; font-size: var(--sc-text-sm); overflow-wrap: anywhere; margin-bottom: 2px; }
.lc__mail-btn { width: 96px; height: 18px; border-radius: 4px; background: var(--sc-green-deep); margin-top: var(--sc-space-1); }
