/* ==========================================================================
   My LED Kit — account & admin
   Built for reading, not for showing off: bigger type, roomy targets, one
   idea per row, and never more than one primary button on screen at a time.
   Loads on top of styles.css and reuses its tokens and buttons.
   ========================================================================== */

body.dash {
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
}

/* ─────────────────────────────────────────────────────────────── chrome ── */

.dash-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.8rem var(--pad-x);
  background: var(--surface);
  border-bottom: 1px solid var(--line-soft);
}
.dash-nav__spacer { margin-left: auto; }
.dash-nav__who { display: flex; align-items: center; gap: 0.6rem; font-size: 0.95rem; }
.dash-nav__who strong { font-weight: 600; letter-spacing: -0.01em; }

.avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 0.95rem;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar--lg { width: 88px; height: 88px; font-size: 1.8rem; }

.page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3rem) var(--pad-x) 5rem;
}
.page--narrow { max-width: 560px; }

.page__head { margin-bottom: 1.75rem; }
.page__title { font-size: clamp(1.7rem, 3.4vw, 2.3rem); letter-spacing: -0.035em; line-height: 1.15; }
.page__sub { margin-top: 0.5rem; color: var(--text-2); font-size: 1rem; max-width: 60ch; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.95rem;
  font-weight: 500;
}
.back-link:hover { text-decoration: underline; }
.back-link svg { width: 16px; height: 16px; }

/* ──────────────────────────────────────────────────────────────── panels ── */

.panel {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.panel + .panel { margin-top: 1.25rem; }
.panel__title { font-size: 1.25rem; letter-spacing: -0.03em; }
.panel__sub { margin-top: 0.35rem; color: var(--text-2); font-size: 0.95rem; }
.panel__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.25rem; }

/* ───────────────────────────────────────────────────────────────── forms ── */

.field-set { display: grid; gap: 1.1rem; }

.label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hint { margin-top: 0.4rem; font-size: 0.88rem; color: var(--text-3); }

.input, .textarea, .picker {
  width: 100%;
  min-height: 52px;
  padding: 0.75rem 0.95rem;
  font: inherit;
  font-size: 1.02rem;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.picker { appearance: none; background-image: none; cursor: pointer; }
.input:focus, .textarea:focus, .picker:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}
.input:disabled, .picker:disabled { background: var(--surface-sunk); color: var(--text-3); }
.input[aria-invalid="true"] { border-color: var(--danger); }

.picker-wrap { position: relative; }
.picker-wrap svg {
  position: absolute;
  right: 0.9rem;
  top: 50%;
  translate: 0 -50%;
  width: 16px;
  height: 16px;
  pointer-events: none;
  color: var(--text-3);
}

.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 5.2rem; }
.pw-toggle {
  position: absolute;
  right: 0.5rem;
  top: 50%;
  translate: 0 -50%;
  padding: 0.45rem 0.7rem;
  border-radius: var(--r-xs);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--accent);
}
.pw-toggle:hover { background: var(--accent-soft); }

.form-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-top: 1.5rem; }

.checkline { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.98rem; }
.checkline input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--accent); }

/* ──────────────────────────────────────────────────────────────── alerts ── */

.alert {
  display: flex;
  gap: 0.7rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.98rem;
  border: 1px solid;
  margin-bottom: 1.25rem;
}
.alert svg { width: 20px; height: 20px; flex: 0 0 auto; margin-top: 2px; stroke-width: 2; }
.alert--error { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); background: color-mix(in srgb, var(--danger) 8%, transparent); }
.alert--ok    { color: var(--ok);     border-color: color-mix(in srgb, var(--ok) 40%, transparent);     background: color-mix(in srgb, var(--ok) 8%, transparent); }
.alert--info  { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 35%, transparent); background: var(--accent-soft); }
.alert strong { display: block; font-weight: 600; }
.alert[hidden] { display: none; }

/* ───────────────────────────────────────────────────────────────── pills ── */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--pill);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--wait { color: var(--warn);   background: color-mix(in srgb, var(--warn) 14%, transparent); }
.pill--go   { color: var(--accent); background: var(--accent-soft); }
.pill--done { color: var(--ok);     background: color-mix(in srgb, var(--ok) 14%, transparent); }
.pill--off  { color: var(--text-3); background: var(--surface-sunk); }
.pill--bad  { color: var(--danger); background: color-mix(in srgb, var(--danger) 12%, transparent); }

/* The pills that sit under a name in a table row, rather than in a cell of
   their own — smaller, and only there when there is something to say. */
.tag-row { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.4rem; }
.tag-row:empty { display: none; }
.tag-row .pill { padding: 0.15rem 0.55rem; font-size: 0.78rem; }
.tag-row .pill::before { width: 6px; height: 6px; }

/* ───────────────────────────────────────────────────────────────── lists ── */

.rows { display: grid; gap: 0.9rem; }

.row-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.row-card__main { flex: 1 1 240px; min-width: 0; }
.row-card__title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.02em; }
.row-card__meta { margin-top: 0.25rem; color: var(--text-2); font-size: 0.92rem; }
.row-card__end { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-left: auto; }
.row-card__price { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

/* What a trade account gets — a plain list, ticked. */
.perks { display: grid; gap: 0.55rem; margin-bottom: 1.75rem; }
.perks li {
  display: flex;
  gap: 0.6rem;
  align-items: baseline;
  color: var(--text-2);
  font-size: 0.98rem;
}
.perks li::before {
  content: '';
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  translate: 0 -2px;
}

/* Actions that close a door, kept apart from the ones that do not. */
.danger-zone {
  margin-top: 1.5rem;
  border: 1px solid color-mix(in srgb, var(--danger) 28%, transparent);
  border-radius: var(--r-md);
  overflow: hidden;
}
.danger-zone__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
}
.danger-zone__row + .danger-zone__row { border-top: 1px solid var(--line-soft); }
.danger-zone__row > div { flex: 1 1 260px; min-width: 0; }
.danger-zone__row strong { display: block; font-weight: 600; }
.danger-zone__row p { margin-top: 0.25rem; color: var(--text-2); font-size: 0.9rem; }
.danger-zone__row button { margin-left: auto; }

.kv { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; font-size: 0.98rem; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; font-weight: 500; }

.empty-state {
  display: grid;
  justify-items: center;
  gap: 0.4rem;
  padding: 3rem 1rem;
  text-align: center;
  color: var(--text-2);
}
.empty-state strong { font-size: 1.1rem; color: var(--text); }

/* ── order progress ─────────────────────────────────────────────────────── */

.steps { display: grid; gap: 0.8rem; margin-top: 1.25rem; }
.step { display: grid; grid-template-columns: 28px 1fr; gap: 0.85rem; align-items: start; }
.step__dot {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--surface-sunk);
  color: var(--text-3);
  border: 1.5px solid var(--line);
}
.step__dot svg { width: 15px; height: 15px; stroke-width: 2.4; }
.step.is-done .step__dot { background: var(--accent); border-color: var(--accent); color: #FFF; }
.step__label { font-weight: 600; letter-spacing: -0.015em; }
.step__when { font-size: 0.9rem; color: var(--text-3); }

/* ──────────────────────────────────────────────────────────────── tables ── */

.table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
.table th, .table td { padding: 0.85rem 0.75rem; text-align: left; vertical-align: middle; }
.table th {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.table td { border-bottom: 1px solid var(--line-soft); }
.table tr:last-child td { border-bottom: 0; }
.table__num { text-align: right; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; margin: 0 -0.5rem; padding: 0 0.5rem; }

.mini-input {
  width: 110px;
  min-height: 44px;
  padding: 0.4rem 0.6rem;
  font: inherit;
  font-size: 0.98rem;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-xs);
}
.mini-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }

/* ────────────────────────────────────────────────────────────────── tabs ── */

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line-soft);
}
.tab {
  padding: 0.65rem 1.15rem;
  border-radius: var(--pill);
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-2);
  border: 1px solid transparent;
}
.tab:hover { color: var(--text); background: var(--surface); }
.tab[aria-selected="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFF;
  font-weight: 600;
}

/* ───────────────────────────────────────────────────────────────── modal ── */

.sheet-scrim {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 9, 13, 0.5);
  display: grid;
  place-items: center;
  padding: 1rem;
  overflow-y: auto;
}
.sheet {
  width: min(640px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  padding: clamp(1.25rem, 3vw, 2rem);
}
.sheet__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.sheet__title { font-size: 1.3rem; letter-spacing: -0.03em; }

/* ── stat strip ─────────────────────────────────────────────────────────── */

.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.stat-box {
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
}
.stat-box__n { font-size: 1.7rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.stat-box__l { margin-top: 0.15rem; color: var(--text-2); font-size: 0.92rem; }

/* ── account side nav ───────────────────────────────────────────────────── */

.dash-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2rem; align-items: start; }
.side-nav { display: grid; gap: 0.3rem; position: sticky; top: 84px; }
.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: var(--r-sm);
  font-size: 1rem;
  color: var(--text-2);
}
.side-nav a svg { width: 19px; height: 19px; }
.side-nav a:hover { background: var(--surface); color: var(--text); }
.side-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }

.side-nav__tag {
  margin-left: auto;
  padding: 0.1rem 0.45rem;
  border-radius: var(--pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-3);
  background: var(--surface-sunk);
}
.side-nav__tag[data-tone="wait"] { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.side-nav__tag[data-tone="done"] { color: var(--ok);   background: color-mix(in srgb, var(--ok) 14%, transparent); }
.side-nav__tag[hidden] { display: none; }

@media (max-width: 820px) {
  .dash-layout { grid-template-columns: 1fr; gap: 1.25rem; }
  .side-nav { position: static; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: 0.25rem; }
  .side-nav a { white-space: nowrap; }
}

@media (max-width: 620px) {
  .row-card__end { margin-left: 0; width: 100%; justify-content: space-between; }
  .dash-nav__who strong { display: none; }
}

/* ── product photos in the admin ─────────────────────────────────────────── */

.thumb {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--surface-sunk);
  border: 1px solid var(--line-soft);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb__none { font-size: 0.6rem; color: var(--text-3); text-align: center; line-height: 1.1; }

.photo-strip { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.photo-strip__item {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: var(--r-sm);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface-sunk);
}
.photo-strip__item img { width: 100%; height: 100%; object-fit: cover; }
.photo-strip__flag {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 0;
  padding: 0.2rem 0.35rem;
  font-size: 0.65rem;
  font-weight: 600;
  text-align: center;
  color: #FFF;
  background: rgba(8, 9, 13, 0.72);
}
.photo-strip__x {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  color: #FFF;
  background: rgba(8, 9, 13, 0.6);
}
.photo-strip__x svg { width: 12px; height: 12px; stroke-width: 2.2; }
.photo-strip__x:hover { background: var(--danger); }

/* ── one customer's price, product by product ────────────────────────────── */

.item-rules {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: 0.35rem;
}
.item-rule {
  display: grid;
  grid-template-columns: 1fr 150px 110px 130px;
  gap: 0.6rem;
  align-items: center;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--line-soft);
}
.item-rule:last-child { border-bottom: 0; }
.item-rule[hidden] { display: none; }
.item-rule__out { text-align: right; font-size: 0.95rem; white-space: nowrap; }

@media (max-width: 620px) {
  .item-rule { grid-template-columns: 1fr 1fr; }
  .item-rule__name { grid-column: 1 / -1; }
  .item-rule__out { grid-column: 1 / -1; text-align: left; }
}

/* ══════════════════════════════════════════════════════════════════════════
   ACCOUNT, AUTH — the additions that came with the customer account system.
   Everything below reuses the tokens in styles.css. No new colours.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── waiting ──────────────────────────────────────────────────────────────
   One spinner, two sizes. Inside a button while a form is in flight; in the
   middle of the page while the session settles. */

.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  opacity: 0.85;
  animation: spin 620ms linear infinite;
}
.spinner--lg { width: 26px; height: 26px; border-width: 2.5px; color: var(--text-3); }

@keyframes spin { to { transform: rotate(360deg); } }

@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 1.6s; }
}

.btn.is-busy { pointer-events: none; opacity: 0.85; }
.btn:disabled { opacity: 0.55; pointer-events: none; }

.auth-booting {
  display: grid;
  justify-items: center;
  gap: 0.9rem;
  padding: 5rem 1rem;
  color: var(--text-3);
  font-size: 0.95rem;
}

/* ── the auth panels ─────────────────────────────────────────────────────── */

.auth { padding: clamp(1.5rem, 4vw, 2.5rem); }
.auth[hidden] { display: none; }
.auth .page__head { margin-bottom: 1.5rem; }
.auth .page__title:focus { outline: none; }
.auth--centred { text-align: center; }
.auth--centred .page__sub { margin-inline: auto; }

/* Panels replace one another rather than the page reloading, so the new one
   arrives with the same small rise the rest of the site uses. */
.auth.is-in { animation: auth-in 320ms var(--ease) both; }
@keyframes auth-in {
  from { opacity: 0; transform: translate3d(0, 10px, 0); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth.is-in { animation: none; }
}

/* The mark at the top of an outcome screen. Big enough to be the answer
   before anything is read. */
.auth-mark {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  margin: 0 auto 1.4rem;
  border-radius: 50%;
}
.auth-mark svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.auth-mark--ok   { color: var(--ok);     background: color-mix(in srgb, var(--ok) 12%, transparent); }
.auth-mark--warn { color: var(--warn);   background: color-mix(in srgb, var(--warn) 14%, transparent); }
.auth-mark--mail { color: var(--accent); background: var(--accent-soft); }
.auth-mark--ok svg { animation: mark-draw 520ms var(--ease) both; }
@keyframes mark-draw {
  from { opacity: 0; transform: scale(0.6); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth-mark--ok svg { animation: none; }
}

.auth-foot {
  margin-top: 1.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line-soft);
  font-size: 1rem;
  color: var(--text-2);
  text-align: center;
}
.auth-foot a { color: var(--accent); font-weight: 600; }
.auth-foot a:hover { text-decoration: underline; }

.legal { margin-top: 1rem; font-size: 0.85rem; line-height: 1.55; color: var(--text-3); }
.hint--roomy { margin-top: 1.25rem; font-size: 0.95rem; line-height: 1.6; }

/* ── fields ─────────────────────────────────────────────────────────────── */

/* Two boxes on one line where the pair is really one answer — a first and a
   last name — and stacked the moment there is not room for both. */
/* `.form-field`, not `.field`. styles.css already owns `.field` — it is the
   storefront's search box, and it is `display: flex`, which laid every label
   out beside its input instead of above it. Two components, one class name,
   and the one that loads second wins. */
.form-field { display: block; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; gap: 1.1rem; } }

.label-row { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.label-link { font-size: 0.9rem; font-weight: 500; color: var(--accent); }
.label-link:hover { text-decoration: underline; }

.field-error {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  margin-top: 0.45rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--danger);
}
.field-error[hidden] { display: none; }
.field-error::before {
  content: '';
  flex: 0 0 auto;
  width: 5px;
  height: 5px;
  margin-top: 0.5em;
  border-radius: 50%;
  background: currentColor;
}

/* ── the password rules, ticking as they are met ─────────────────────────── */

.pw-rules {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.7rem;
  font-size: 0.88rem;
  color: var(--text-3);
}
.pw-rules li { display: flex; align-items: center; gap: 0.5rem; }
.pw-rules__dot {
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1.5px solid var(--line-strong);
  color: transparent;
  transition: background-color var(--fast) var(--ease),
              border-color var(--fast) var(--ease),
              color var(--fast) var(--ease);
}
.pw-rules__dot svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pw-rules li.is-met { color: var(--ok); }
.pw-rules li.is-met .pw-rules__dot { background: var(--ok); border-color: var(--ok); color: #FFF; }

/* ── toast tones ─────────────────────────────────────────────────────────── */

.toast--error svg { color: var(--danger); }
.toast--info svg  { color: var(--accent); }
.toast svg { fill: none; stroke: currentColor; }

/* ══════════════════════════════════════════════════════ the account area ══ */

/* ── overview ────────────────────────────────────────────────────────────── */

.hello { margin-bottom: 1.5rem; }
.hello__title { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.035em; line-height: 1.15; }
.hello__sub { margin-top: 0.4rem; color: var(--text-2); font-size: 1rem; }

/* Two across, then two more. Four tiles at minmax(230px) fall 3 + 1 in the
   space beside the nav, and a lone tile on its own row looks like something
   failed to load. */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }

/* A tile is a link with a job, not a card for its own sake: one line of
   heading, one line saying what is behind it, and an arrow. */
.tile {
  display: grid;
  align-content: start;
  gap: 0.3rem;
  padding: 1.25rem 1.35rem;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-md);
  box-shadow: var(--sh-1);
  color: inherit;
  transition: transform var(--fast) var(--ease), box-shadow var(--fast) var(--ease);
}
a.tile:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.tile__label { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); }
.tile__value { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tile__note { color: var(--text-2); font-size: 0.92rem; }
.tile__note--go { color: var(--accent); font-weight: 500; }

/* ── a labelled block of facts, and the pencil beside it ─────────────────── */

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.section-head h3 { font-size: 1.05rem; letter-spacing: -0.02em; }

.link-btn {
  padding: 0;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }
.link-btn--quiet { color: var(--text-2); }
.link-btn--danger { color: var(--danger); }

/* ── addresses ───────────────────────────────────────────────────────────── */

.addr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

.addr {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.addr[data-default="true"] { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.addr__top { display: flex; align-items: center; gap: 0.6rem; }
.addr__label { font-weight: 600; letter-spacing: -0.015em; }
.addr__lines { color: var(--text-2); font-size: 0.95rem; line-height: 1.55; }
.addr__lines strong { display: block; color: var(--text); font-weight: 500; }
.addr__acts { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-top: 0.25rem; }

/* The button that adds one. Dashed, so it reads as a gap to fill rather than
   as another address that happens to be empty. */
.addr-add {
  display: grid;
  place-content: center;
  gap: 0.35rem;
  min-height: 148px;
  padding: 1.25rem;
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--r-md);
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 0.98rem;
  cursor: pointer;
  text-align: center;
  transition: border-color var(--fast) var(--ease), color var(--fast) var(--ease), background-color var(--fast) var(--ease);
}
.addr-add:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.addr-add span { font-size: 1.6rem; line-height: 1; font-weight: 300; }

/* ── loading, without the page jumping ───────────────────────────────────── */

.skeleton {
  border-radius: var(--r-xs);
  background: linear-gradient(90deg, var(--surface-sunk) 25%, var(--bg-tint) 37%, var(--surface-sunk) 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}
.skeleton--row { height: 82px; border-radius: var(--r-md); }
.skeleton + .skeleton { margin-top: 0.9rem; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) {
  .skeleton { animation: none; }
}

/* ── the account nav ─────────────────────────────────────────────────────── */

/* A rule between the everyday sections and signing out, so the last item in
   the list is never clicked by accident on the way to the one above it. */
.side-nav__sep {
  height: 1px;
  margin: 0.6rem 0.6rem;
  background: var(--line-soft);
}
@media (max-width: 820px) {
  .side-nav__sep { display: none; }
}

.side-nav a[data-view="signout"] { color: var(--text-3); }
.side-nav a[data-view="signout"]:hover { color: var(--danger); background: color-mix(in srgb, var(--danger) 8%, transparent); }

/* ── the wholesale price book (admin › Pricing) ──────────────────────────── */

/* One row per product, one column per tier. The table scrolls sideways inside
   .table-scroll on narrow screens; the inputs are the same quiet fields used
   everywhere else, so the page reads as a document, not a spreadsheet. */
.matrix .mini-input { width: 92px; }
.matrix th { white-space: nowrap; }
.matrix td:first-child { min-width: 220px; }

/* A tier's column header is also the way into renaming or parking it. Styled
   as text with an affordance on hover — a row of buttons above a price grid
   would shout over the numbers. */
.tier-head {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  cursor: pointer;
  border-bottom: 1px dashed transparent;
}
.tier-head:hover,
.tier-head:focus-visible { color: var(--accent); border-bottom-color: var(--accent); outline: none; }
