/* Wispa Digital - Order Lookup
 *
 * An internal staff tool: scanned, not read. Two rules drive the palette.
 *
 * 1. Brand teal (#0FBFBF, from the logo) is for INTERACTIVE affordances only -
 *    links, the Look up button, focus rings. Never a card header, background or
 *    divider. On light grounds it darkens to --brand so text clears WCAG AA.
 * 2. Status colour encodes state and nothing else. If a colour is not telling
 *    you something about the order, it does not belong on the page.
 *
 * The page is ~95% neutral by design. Neutrals carry a slight navy bias, taken
 * from the logo's wordmark, so they read as chosen rather than as default grey.
 */

/* ---------------------------------------------------------------- tokens -- */

:root {
  /* neutrals - navy-biased */
  --ground: #f4f6f8;
  --surface: #ffffff;
  --sunk: #eceff3;
  --ink: #1b2733;
  --ink-soft: #3d4c5c;
  --muted: #5f6f80;
  --faint: #8b99a8;
  --rule: #dbe2ea;
  --rule-strong: #c3cdd8;

  /* brand - interactive affordances only */
  --brand: #0a7a7a;          /* logo teal, darkened for AA text on --surface */
  --brand-hover: #096767;
  --brand-ring: #0fbfbf;     /* logo teal as-is: focus rings and the logo mark */
  --brand-navy: #27374a;

  /* status - background / border / text, each AA on --surface */
  --good-bg: #e4f4ea;  --good-bd: #97cfab;  --good-tx: #1d6b3a;
  --info-bg: #e3eefb;  --info-bd: #97bde5;  --info-tx: #1b5490;
  --warn-bg: #fbf0dc;  --warn-bd: #dcb977;  --warn-tx: #7d5410;
  --bad-bg:  #fbe6e6;  --bad-bd:  #e0a3a3;  --bad-tx:  #8f2626;
  --neut-bg: #eceff3;  --neut-bd: #c3cdd8;  --neut-tx: #4d5c6b;

  --mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --gap: 1rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0e141a;
    --surface: #161f28;
    --sunk: #1b2531;
    --ink: #e6ecf2;
    --ink-soft: #c3ceda;
    --muted: #93a2b1;
    --faint: #6b7a89;
    --rule: #26323f;
    --rule-strong: #364554;

    --brand: #3ad3d3;
    --brand-hover: #62dfdf;
    --brand-ring: #0fbfbf;
    --brand-navy: #9fb2c6;

    --good-bg: #102c1c;  --good-bd: #2f6b45;  --good-tx: #7edaa0;
    --info-bg: #11243a;  --info-bd: #2e5680;  --info-tx: #8dbdf0;
    --warn-bg: #2c2314;  --warn-bd: #6d5423;  --warn-tx: #e2b869;
    --bad-bg:  #2e1717;  --bad-bd:  #6f3232;  --bad-tx:  #ef9c9c;
    --neut-bg: #1b2531;  --neut-bd: #364554;  --neut-tx: #a3b1bf;
  }
}

:root[data-theme="dark"] {
  --ground: #0e141a;
  --surface: #161f28;
  --sunk: #1b2531;
  --ink: #e6ecf2;
  --ink-soft: #c3ceda;
  --muted: #93a2b1;
  --faint: #6b7a89;
  --rule: #26323f;
  --rule-strong: #364554;

  --brand: #3ad3d3;
  --brand-hover: #62dfdf;
  --brand-ring: #0fbfbf;
  --brand-navy: #9fb2c6;

  --good-bg: #102c1c;  --good-bd: #2f6b45;  --good-tx: #7edaa0;
  --info-bg: #11243a;  --info-bd: #2e5680;  --info-tx: #8dbdf0;
  --warn-bg: #2c2314;  --warn-bd: #6d5423;  --warn-tx: #e2b869;
  --bad-bg:  #2e1717;  --bad-bd:  #6f3232;  --bad-tx:  #ef9c9c;
  --neut-bg: #1b2531;  --neut-bd: #364554;  --neut-tx: #a3b1bf;
}

/* ----------------------------------------------------------------- base -- */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-hover); text-decoration: underline; }

:is(a, button, input, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--brand-ring);
  outline-offset: 2px;
  border-radius: 2px;
}

.mono { font-family: var(--mono); font-size: 0.9em; font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.strong { font-weight: 600; }

/* a value the database does not hold - deliberately recessive */
.empty { color: var(--faint); opacity: 0.45; }

.label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------------------------------------------------------------- chrome -- */

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem clamp(1rem, 3vw, 2rem);
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}
.brand { display: flex; align-items: center; gap: 0.7rem; color: var(--ink); font-weight: 600; }
.brand:hover { text-decoration: none; color: var(--ink); }
/* Logo.
 *
 * Two variants were supplied and only one works on a light bar:
 *   Wispa Logo.jpg          navy wordmark + teal mark on white  <- this one
 *   wispa_digital_logo.png  teal wordmark + OPAQUE WHITE mark, for dark grounds
 *                           (the mark and the S disappear on white)
 *
 * The JPG is 4000x2000 but the artwork occupies only x[1047-2961] y[445-1452]
 * - 48% of the width - so drawn at its natural size the logo looks tiny. The
 * numbers below crop to that measured ink box: --s scales the artwork to --h,
 * the window is sized to the artwork, and the image is offset so the ink lands
 * in it. Changing --h rescales everything.
 *
 * White ground stays behind it, so on the dark theme it reads as a deliberate
 * white lockup chip rather than a stray rectangle.
 */
.brand-plate {
  display: inline-block;
  background: #fff;
  padding: 5px 8px;
  border-radius: var(--radius);
  border: 1px solid var(--rule);
  line-height: 0;
}
.brand-logo {
  --h: 46px;                       /* rendered artwork height */
  --s: calc(var(--h) / 1008);      /* 1008px = measured ink height */
  position: relative;
  display: block;
  overflow: hidden;
  width: calc(1915 * var(--s));    /* 1915px = measured ink width */
  height: var(--h);
}
.brand-logo img {
  position: absolute;
  width: calc(4000 * var(--s));    /* full image, scaled by the same factor */
  height: auto;
  left: calc(-1047 * var(--s));    /* shift the ink box to the window origin */
  top: calc(-445 * var(--s));
}
.brand-text {
  font-size: 0.9rem;
  padding-left: 0.7rem;
  border-left: 1px solid var(--rule);
  color: var(--muted);
  font-weight: 500;
}
/* The client logo, sitting opposite the Wispa mark. Height-driven so it lines up
   with the brand plate on the left; width follows the 2.19:1 artwork. The export
   padding has been trimmed, so this height is all logo.

   The script wordmark reads down to about 30px; "INSTORE" beneath it is small
   type inside the artwork and becomes a yellow suggestion rather than words at
   header scale. That is normal for a logo used as a mark, and the alt text
   carries the name for anyone who cannot see it. */
.brand-db {
  height: 48px;      /* renders 105px wide - the same width as the Wispa plate
                        opposite, which is what makes the two ends balance */
  width: auto;
  display: block;
  flex: none;
}

@media (max-width: 640px) {
  .brand-db { height: 34px; }
}

.page { max-width: 1280px; margin: 0 auto; padding: clamp(1rem, 2.5vw, 1.75rem); }

.footer {
  display: flex; gap: 1.25rem;
  max-width: 1280px; margin: 0 auto;
  padding: 2rem clamp(1rem, 2.5vw, 1.75rem) 3rem;
  color: var(--faint); font-size: 0.8rem;
}

/* ---------------------------------------------------------------- search -- */

/* Two entry points side by side: staff have either the reference or the address. */
.searches {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 900px) { .searches { grid-template-columns: 1fr; } }

.search {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 0;
}
.search-label { display: block; margin-bottom: 0.45rem; }
.search-row { display: flex; gap: 0.55rem; align-items: center; flex-wrap: wrap; }
.search input {
  flex: 1 1 16rem; min-width: 0;
  font: 500 1.05rem/1 var(--mono);
  padding: 0.6rem 0.7rem;
  color: var(--ink); background: var(--ground);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.search button {
  font: 600 0.9rem/1 var(--sans);
  padding: 0.7rem 1.15rem;
  color: #fff; background: var(--brand);
  border: none; border-radius: var(--radius); cursor: pointer;
}
.search button:hover { background: var(--brand-hover); }
.search-hint { margin: 0.6rem 0 0; font-size: 0.78rem; color: var(--faint); }
.search-hint code { font-family: var(--mono); }

.spinner {
  width: 13px; height: 13px; opacity: 0;
  border: 2px solid var(--rule); border-top-color: var(--brand-ring); border-radius: 50%;
}
.htmx-request .spinner, .spinner.htmx-request { opacity: 1; animation: spin 0.7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }

/* --------------------------------------------------- placeholder / msgs -- */

.placeholder, .message {
  background: var(--surface); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 1.4rem;
}
.placeholder-title, .message-heading { margin: 0 0 0.4rem; font-weight: 600; font-size: 1.02rem; }
.placeholder p { margin: 0; color: var(--muted); max-width: 62ch; }
.message-body { margin: 0; color: var(--ink-soft); max-width: 70ch; }
.message-error {
  background: var(--bad-bg); border-color: var(--bad-bd); border-left: 3px solid var(--bad-tx);
}
.message-error .message-heading { color: var(--bad-tx); }
.message-empty { border-left: 3px solid var(--faint); }

/* --------------------------------------------------------- status header -- */

.status-header {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 0.75rem;
}
.status-top {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}

/* Download and state pill, stacked at the top-right of the order header. */
.status-actions {
  display: flex; align-items: center; gap: 0.6rem;
  flex-wrap: wrap; justify-content: flex-end;
}

.btn-invoice {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--rule); border-radius: 7px;
  background: var(--surface); color: var(--ink);
  font-size: 0.82rem; font-weight: 600; line-height: 1;
  white-space: nowrap;
  transition: border-color 0.12s ease, background 0.12s ease;
}
.btn-invoice:hover {
  text-decoration: none;
  border-color: var(--brand); color: var(--brand);
  background: var(--neut-bg);
}
.btn-invoice:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-invoice svg { flex: none; }
.status-ref h1 {
  margin: 0.1rem 0;
  font: 700 clamp(1.5rem, 3.4vw, 2.05rem)/1.05 var(--mono);
  letter-spacing: -0.02em;
}
.status-meta { margin: 0.25rem 0 0; font-size: 0.82rem; color: var(--muted); }
.status-meta .sep { color: var(--faint); margin: 0 0.35rem; }
.status-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; margin-top: 0.5rem; }

/* the one large pill - the primary thing on the page */
.pill-lg {
  font: 600 0.95rem/1 var(--sans);
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.pill {
  display: inline-block;
  font: 500 0.72rem/1.3 var(--sans);
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  border: 1px solid;
  white-space: nowrap;
}
.s-good    { background: var(--good-bg); border-color: var(--good-bd); color: var(--good-tx); }
.s-info    { background: var(--info-bg); border-color: var(--info-bd); color: var(--info-tx); }
.s-warn    { background: var(--warn-bg); border-color: var(--warn-bd); color: var(--warn-tx); }
.s-bad     { background: var(--bad-bg);  border-color: var(--bad-bd);  color: var(--bad-tx);  }
.s-neutral { background: var(--neut-bg); border-color: var(--neut-bd); color: var(--neut-tx); }

/* inline status dot */
.dot {
  display: inline-block; width: 7px; height: 7px;
  border-radius: 50%; margin-right: 0.4rem; vertical-align: 0.05em;
}
.dot.s-good { background: var(--good-tx); }
.dot.s-info { background: var(--info-tx); }
.dot.s-warn { background: var(--warn-tx); }
.dot.s-bad  { background: var(--bad-tx);  }
.dot.s-neutral { background: var(--faint); }

/* ------------------------------------------------------- exception strip -- */

.exceptions { display: flex; flex-direction: column; gap: 2px; margin-bottom: 0.75rem; }
.exception {
  display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap;
  padding: 0.5rem 0.8rem;
  border: 1px solid; border-left-width: 3px;
  border-radius: var(--radius);
  font-size: 0.88rem;
}
.exception strong { font-weight: 600; }
.exception span { color: inherit; opacity: 0.85; font-size: 0.84rem; }
.exception.s-bad  { border-left-color: var(--bad-tx); }
.exception.s-warn { border-left-color: var(--warn-tx); }
.exception.s-info { border-left-color: var(--info-tx); }

/* ------------------------------------------------------------- kpi tiles -- */

.kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.6rem;
  margin-bottom: var(--gap);
}
.kpi {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 0.7rem 0.85rem;
}
.kpi.s-bad  { background: var(--bad-bg);  border-color: var(--bad-bd);  }
.kpi.s-warn { background: var(--warn-bg); border-color: var(--warn-bd); }
.kpi-label { display: block; margin-bottom: 0.3rem; }
.kpi-value { display: block; font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.kpi.s-bad .kpi-value  { color: var(--bad-tx);  }
.kpi.s-warn .kpi-value { color: var(--warn-tx); }
.kpi-value small { display: block; font-weight: 400; font-size: 0.74rem; color: var(--muted); margin-top: 0.1rem; }
.kpi.s-bad .kpi-value small, .kpi.s-warn .kpi-value small { color: inherit; opacity: 0.8; }

/* ----------------------------------------------------------------- cards -- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--gap);
  align-items: start;          /* cards size to content, not to tallest sibling */
}
.grid > * { align-self: start; }

.card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  min-width: 0;
}
.card-wide { margin-top: var(--gap); }
.card > h2 {
  display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  margin: 0 0 0.85rem;
  font: 500 0.7rem/1 var(--mono);
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.card > h2 .count {
  font-size: 0.7rem; letter-spacing: 0;
  color: var(--muted); background: var(--sunk);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 0.05rem 0.4rem;
}

/* ------------------------------------------------------ key/value pairs -- */

.pairs {
  display: grid;
  grid-template-columns: minmax(7rem, auto) 1fr;
  gap: 0.32rem 0.85rem;
  margin: 0;
  font-size: 0.88rem;
}
.pairs dt { color: var(--muted); }
.pairs dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }

/* collapsed empty fields */
.empties { margin-top: 0.7rem; }
.empties summary {
  cursor: pointer; list-style: none;
  font: 500 0.76rem/1 var(--sans); color: var(--muted);
  padding: 0.3rem 0; user-select: none;
}
.empties summary::-webkit-details-marker { display: none; }
.empties summary::before { content: "+ "; color: var(--faint); }
.empties[open] summary::before { content: "\2212 "; }
.empties summary:hover { color: var(--brand); }
.empties .pairs { margin-top: 0.4rem; }

/* ------------------------------------------------------------- addresses -- */

/* Addresses.
 *
 * Every field is its own labelled row, so the billing and delivery columns line
 * up field for field. The previous version put the label and the name in one
 * flex row, which meant a wrapping name pushed that column out of step with its
 * neighbour and the block read as drifting up and down.
 */
.addr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1.75rem; }
.addr-cols-1 { grid-template-columns: minmax(0, 26rem); }

.addr-col { min-width: 0; }
.addr-col-head {
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 0.4rem; margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
}

/* label column is fixed so values start on the same x in both columns */
.af {
  display: grid;
  grid-template-columns: 5.5rem minmax(0, 1fr);
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.16rem 0;
  font-size: 0.86rem;
}
.af-label { color: var(--muted); }
.af-value { color: var(--ink); min-width: 0; overflow-wrap: anywhere; }

.same-as { margin: 0.9rem 0 0; }
.same-as summary {
  cursor: pointer; list-style: none;
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.84rem; color: var(--muted);
}
.same-as summary::-webkit-details-marker { display: none; }
.same-as-more { color: var(--brand); }
.same-as[open] summary { margin-bottom: 0.75rem; }
.same-as[open] .same-as-more::after { content: " (hide)"; }

.note {
  margin: 0.85rem 0 0;
  padding: 0.55rem 0.7rem;
  background: var(--sunk);
  border-radius: var(--radius);
  font-size: 0.86rem; color: var(--ink-soft);
  overflow-wrap: anywhere;
}
.note strong { color: var(--ink); }

/* -------------------------------------------------------- mini 3-up grid -- */

.mini {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--rule);
  border: 1px solid var(--rule); border-radius: var(--radius);
  margin: 0.85rem 0 0; overflow: hidden;
}
.mini > div { background: var(--surface); padding: 0.55rem 0.6rem; }
.mini-label { display: block; font-size: 0.62rem; }
.mini-value { display: block; margin-top: 0.2rem; font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; }

/* primary contact block at the top of the customer card */
.contact-primary { margin: 0 0 0.85rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--rule); }
.contact-primary .email { font-size: 1rem; font-weight: 600; overflow-wrap: anywhere; }
.contact-primary .sub { margin-top: 0.25rem; font-family: var(--mono); font-size: 0.78rem; color: var(--muted); }

/* ---------------------------------------------------------------- totals -- */

table.totals { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
table.totals th {
  text-align: left; font-weight: 400; color: var(--muted);
  padding: 0.36rem 0.6rem 0.36rem 0;
}
table.totals td { padding: 0.36rem 0 0.36rem 0.6rem; font-variant-numeric: tabular-nums; text-align: right; }
table.totals td.tax { color: var(--faint); font-size: 0.82rem; }
table.totals td.negative { color: var(--bad-tx); }
table.totals tr.band th, table.totals tr.band td {
  background: var(--sunk);
  border-top: 1px solid var(--rule-strong);
  font-weight: 700; color: var(--ink); font-size: 1rem;
  padding-top: 0.5rem; padding-bottom: 0.5rem;
}
table.totals tr.band th { padding-left: 0.6rem; }
table.totals tr.band td:last-child { padding-right: 0.6rem; }
.cur-chip {
  font: 500 0.66rem/1 var(--mono);
  padding: 0.15rem 0.35rem; margin-left: 0.4rem;
  border: 1px solid var(--rule-strong); border-radius: 3px;
  color: var(--muted);
}

/* ------------------------------------------------------------ data table -- */

.scroll { overflow-x: auto; }

table.data { border-collapse: collapse; width: 100%; font-size: 0.86rem; min-width: 640px; }
table.data thead th {
  font: 500 0.66rem/1 var(--mono);
  letter-spacing: 0.08em; text-transform: uppercase;
  text-align: left; color: var(--muted);
  padding: 0.45rem 0.6rem;
  background: var(--sunk);
  border-bottom: 1px solid var(--rule-strong);
  white-space: nowrap;
}
table.data thead th.num { text-align: right; }
table.data td {
  padding: 0.48rem 0.6rem;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:hover td { background: var(--sunk); }
table.data tbody tr:last-child td { border-bottom: none; }
table.data td.tight { white-space: nowrap; }
table.data td.tight .pill { margin-right: 0.2rem; }
.line-name { font-weight: 500; min-width: 11rem; }

/* subtotal: separated by a rule, not a filled block */
table.data tfoot td {
  border-top: 2px solid var(--rule-strong);
  padding: 0.5rem 0.6rem;
  font-weight: 600; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
table.data tfoot td.num { text-align: right; }

/* a secondary section inside a card, e.g. parcels under fulfilment */
.sub-head {
  margin: 1.1rem 0 0.6rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--rule);
  display: flex; align-items: center; gap: 0.5rem;
}

/* --------------------------------------------------------------- narrow -- */

@media (max-width: 900px) {
  .grid { grid-template-columns: 1fr; }
  .addr-cols { grid-template-columns: 1fr; gap: 1.1rem; }
  .mini { grid-template-columns: 1fr; }

}

/* ---------------------------------------------------------------- sign in -- */

.signin { display: flex; justify-content: center; padding: clamp(1.5rem, 8vh, 5rem) 0; }
.signin-card {
  width: 100%; max-width: 26rem;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.75rem 1.75rem 1.5rem;
}
.signin-card h1 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem; font-weight: 700; letter-spacing: -0.015em;
}
.signin-sub { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.9rem; }
.signin-card label { display: block; margin-bottom: 0.4rem; }
.signin-card input {
  width: 100%;
  font: 500 1rem/1 var(--mono);
  padding: 0.65rem 0.7rem;
  color: var(--ink); background: var(--ground);
  border: 1px solid var(--rule-strong); border-radius: var(--radius);
}
.signin-card button {
  width: 100%; margin-top: 0.75rem;
  font: 600 0.95rem/1 var(--sans);
  padding: 0.75rem 1rem;
  color: #fff; background: var(--brand);
  border: none; border-radius: var(--radius); cursor: pointer;
}
.signin-card button:hover { background: var(--brand-hover); }
.signin-error {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  background: var(--bad-bg); border: 1px solid var(--bad-bd);
  border-left: 3px solid var(--bad-tx);
  border-radius: var(--radius);
  color: var(--bad-tx); font-size: 0.88rem; font-weight: 500;
}
.signin-note {
  margin: 1.25rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--rule);
  color: var(--faint); font-size: 0.8rem;
}
