/* SOURCE OF TRUTH. frontend/public/shared/direction-2.css is generated by
   `npm run sync:public` — never edit it directly. */

/* ============================================================================
   Early Laundry Co. / Lucky Laundromat — Direction 2: Crisp Premium
   Canonical visual system for every live frontend surface.
   ============================================================================ */

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin-400-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin-500-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin-600-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Inter Tight";
  src: url("/fonts/inter-tight-latin-700-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;

  --d2-navy: #1c3557;
  --d2-navy-deep: #0f2038;
  --d2-navy-alt: #0f2a44;
  --d2-teal: #1c6e71;
  --d2-teal-deep: #12595c;
  --d2-teal-bright: #2a8f91;
  --d2-teal-tint: #eaf1f1;
  --d2-mist: #f5f6f5;
  --d2-cloud: #ecefef;
  --d2-white: #ffffff;
  --d2-ink: #1b2733;
  --d2-muted: #5c6b74;
  --d2-line: #dce1e1;
  --d2-line-strong: #c2cbcb;
  --d2-success: #196b4b;
  --d2-warning: #9a6200;
  --d2-danger: #a53030;
  --d2-info: #245f91;

  --d2-display: "Archivo", system-ui, sans-serif;
  --d2-sans: "Inter Tight", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --d2-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;

  --d2-text-xs: 0.75rem;
  --d2-text-sm: 0.875rem;
  --d2-text-body: 1.0625rem;
  --d2-text-lead: 1.25rem;
  --d2-text-h3: 1.375rem;
  --d2-text-h2: clamp(2.125rem, 4vw, 2.875rem);
  --d2-text-h1: clamp(3.25rem, 7vw, 5.25rem);

  --d2-space-1: 0.25rem;
  --d2-space-2: 0.5rem;
  --d2-space-3: 0.75rem;
  --d2-space-4: 1rem;
  --d2-space-5: 1.5rem;
  --d2-space-6: 2rem;
  --d2-space-7: 3rem;
  --d2-space-8: 4rem;
  --d2-space-9: 6rem;
  --d2-space-10: 8rem;
  --d2-space-11: 10.5rem;

  --d2-radius-sm: 3px;
  --d2-radius-md: 4px;
  --d2-radius-lg: 6px;
  --d2-radius-pill: 999px;
  --d2-shadow-card: 0 1px 1px rgba(27, 39, 51, 0.04);
  --d2-shadow-lift: 0 22px 60px -30px rgba(15, 32, 56, 0.45);
  --d2-max-width: 1220px;
  --d2-content-width: 760px;
  --d2-touch: 44px;
  --d2-duration-fast: 150ms;
  --d2-duration: 250ms;
  --d2-ease: cubic-bezier(0.2, 0, 0, 1);
  --d2-header-surface: color-mix(in srgb, var(--d2-mist) 90%, transparent);
  --d2-nav-gap: 30px;
  --d2-tracking-nav: 0.12em;
  --d2-tracking-footer: 0.2em;

  /* Compatibility aliases while legacy pages migrate to d2-* names. */
  --navy: var(--d2-navy);
  --navy-deep: var(--d2-navy-deep);
  --navy-2: var(--d2-navy-alt);
  --teal: var(--d2-teal);
  --teal-deep: var(--d2-teal-deep);
  --teal-bright: var(--d2-teal-bright);
  --teal-tint: var(--d2-teal-tint);
  --mist: var(--d2-mist);
  --cloud: var(--d2-cloud);
  --white: var(--d2-white);
  --gold: var(--d2-teal);
  --ink: var(--d2-ink);
  --muted: var(--d2-muted);
  --line: var(--d2-line);
  --line-strong: var(--d2-line-strong);
  --surface: var(--d2-white);
  --bg: var(--d2-mist);
  --ok: var(--d2-success);
  --bad: var(--d2-danger);
  --color-navy: var(--d2-navy);
  --color-navy-light: var(--d2-navy-alt);
  --color-gold: var(--d2-teal);
  --color-gold-light: var(--d2-teal-bright);
  --color-gold-dark: var(--d2-teal-deep);
  --color-bg: var(--d2-mist);
  --color-surface: var(--d2-white);
  --color-border: var(--d2-line);
  --color-text: var(--d2-ink);
  --color-text-muted: var(--d2-muted);
  --color-success: var(--d2-success);
  --color-warning: var(--d2-warning);
  --color-danger: var(--d2-danger);
  --color-info: var(--d2-info);
  --font-sans: var(--d2-sans);
  --font-display: var(--d2-display);
  --font-mono: var(--d2-mono);
  --display: var(--d2-display);
  --sans: var(--d2-sans);
  --t-eyebrow: var(--d2-text-xs);
  --t-small: var(--d2-text-sm);
  --t-body: var(--d2-text-body);
  --t-lead: var(--d2-text-lead);
  --t-h3: var(--d2-text-h3);
  --t-h2: var(--d2-text-h2);
  --t-h1: var(--d2-text-h1);
  --s-1: var(--d2-space-1);
  --s-2: var(--d2-space-2);
  --s-3: var(--d2-space-3);
  --s-4: var(--d2-space-4);
  --s-5: var(--d2-space-5);
  --s-6: var(--d2-space-6);
  --s-7: var(--d2-space-7);
  --s-8: var(--d2-space-8);
  --s-9: var(--d2-space-9);
  --s-10: var(--d2-space-10);
  --s-11: var(--d2-space-11);
  --radius-sm: var(--d2-radius-sm);
  --radius-md: var(--d2-radius-md);
  --radius-lg: var(--d2-radius-lg);
  --radius-full: var(--d2-radius-pill);
  --r-sm: var(--d2-radius-sm);
  --r-md: var(--d2-radius-md);
  --r-lg: var(--d2-radius-lg);
  --r-pill: var(--d2-radius-pill);
  --shadow-card: var(--d2-shadow-card);
  --shadow-lift: var(--d2-shadow-lift);
  --shadow-sm: var(--d2-shadow-card);
  --shadow-md: 0 8px 28px -20px rgba(15, 32, 56, 0.38);
  --shadow-lg: var(--d2-shadow-lift);
  --tap-target: var(--d2-touch);
  --ease: var(--d2-ease);
  --duration-fast: var(--d2-duration-fast);
  --duration: var(--d2-duration);
  --maxw: var(--d2-max-width);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--d2-mist);
  color: var(--d2-ink);
  font-family: var(--d2-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--d2-teal-deep); text-underline-offset: 0.18em; }
a:hover { color: var(--d2-navy); }
h1, h2, h3, h4, h5, h6 {
  color: var(--d2-navy);
  font-family: var(--d2-display);
  letter-spacing: -0.02em;
  line-height: 1.08;
}
h1 { font-weight: 700; }
h2, h3, h4, h5, h6 { font-weight: 600; }
code, pre, kbd { font-family: var(--d2-mono); }

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid color-mix(in srgb, var(--d2-teal) 38%, transparent);
  outline-offset: 3px;
}

:where(button, input, select, textarea) { font: inherit; }
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
  border: 1.5px solid var(--d2-line-strong);
  border-radius: var(--d2-radius-sm);
  background: var(--d2-white);
  color: var(--d2-ink);
  min-height: var(--d2-touch);
  padding: 0.75rem 0.875rem;
}
:where(input:not([type="checkbox"]):not([type="radio"]), select, textarea):focus {
  border-color: var(--d2-teal);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--d2-teal) 14%, transparent);
  outline: none;
}
.button, .btn, .el-btn, [role="button"] {
  border-radius: var(--d2-radius-sm);
  font-family: var(--d2-sans);
  font-weight: 600;
  min-height: var(--d2-touch);
  transition: background var(--d2-duration-fast) var(--d2-ease),
              border-color var(--d2-duration-fast) var(--d2-ease),
              color var(--d2-duration-fast) var(--d2-ease),
              transform var(--d2-duration-fast) var(--d2-ease);
}
.button:active:not(:disabled), .btn:active:not(:disabled), .el-btn:active:not(:disabled), [role="button"]:active:not(:disabled) {
  transform: translateY(1px);
}
.button:disabled, .btn:disabled, .el-btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.button.primary, .btn-primary, .el-btn-primary, [data-variant="primary"] {
  background: var(--d2-teal);
  border-color: var(--d2-teal);
  color: var(--d2-white);
}
.button.primary:hover:not(:disabled), .btn-primary:hover:not(:disabled), .el-btn-primary:hover:not(:disabled), [data-variant="primary"]:hover:not(:disabled) {
  background: var(--d2-teal-bright);
  border-color: var(--d2-teal-bright);
  color: var(--d2-white);
}
.button.secondary, .btn-secondary, .el-btn-secondary, [data-variant="secondary"] {
  background: transparent;
  border-color: var(--d2-line-strong);
  color: var(--d2-navy);
}

.card, .panel, .hero, .table-wrap, .modal, [data-card] {
  background: var(--d2-white);
  border: 1px solid var(--d2-line);
  border-radius: var(--d2-radius-md);
  box-shadow: var(--d2-shadow-card);
}
:where(dialog) { background: var(--d2-white); border: 1px solid var(--d2-line); border-radius: var(--d2-radius-md); box-shadow: var(--d2-shadow-card); }
:where(table) { border-collapse: collapse; width: 100%; }
:where(th) {
  color: var(--d2-muted);
  font-size: var(--d2-text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: left;
  text-transform: uppercase;
}
:where(th, td) { border-bottom: 1px solid var(--d2-line); padding: 0.75rem; }
:where(tbody tr):hover { background: color-mix(in srgb, var(--d2-teal-tint) 55%, white); }

.wrap {
  max-width: var(--d2-max-width);
  margin: 0 auto;
  padding-inline: var(--d2-space-6);
}
.section { padding-block: var(--d2-space-10); }
.h1, .h2, .h3 {
  color: var(--d2-navy);
  font-family: var(--d2-display);
  margin: 0;
}
.h1 { font-size: var(--d2-text-h1); font-weight: 700; letter-spacing: -0.03em; line-height: 0.98; }
.h2 { font-size: var(--d2-text-h2); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
.h3 { font-size: var(--d2-text-h3); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.lead { color: var(--d2-ink); font-size: var(--d2-text-lead); line-height: 1.5; }
.eyebrow, [data-eyebrow] {
  color: var(--d2-teal);
  font-family: var(--d2-sans);
  font-size: var(--d2-text-xs);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.eyebrow.on-dark, .on-dark .eyebrow, .on-dark [data-eyebrow] { color: var(--d2-teal-bright); }
.muted, .text-muted { color: var(--d2-muted); }
.error, .text-danger { color: var(--d2-danger); }
.ok, .success, .text-success { color: var(--d2-success); }
.empty, [data-empty-state] { color: var(--d2-muted); }

.btn {
  align-items: center;
  border: 1.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  font-size: var(--d2-text-sm);
  gap: var(--d2-space-2);
  justify-content: center;
  letter-spacing: 0.02em;
  line-height: 1;
  padding: var(--d2-space-4) var(--d2-space-6);
  white-space: nowrap;
}
.btn-primary { background: var(--d2-teal); color: var(--d2-white); }
.btn-primary:hover { background: var(--d2-teal-bright); color: var(--d2-white); }
.btn-secondary { background: transparent; border-color: var(--d2-line-strong); color: var(--d2-navy); }
.btn-secondary:hover { border-color: var(--d2-navy); }
.btn-ghost { background: transparent; border: 0; color: var(--d2-navy); padding: var(--d2-space-2) 0; position: relative; }
.btn-ghost::after {
  background: var(--d2-teal);
  bottom: 0;
  content: "";
  height: 1.5px;
  left: 0;
  position: absolute;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform var(--d2-duration) var(--d2-ease);
  width: 100%;
}
.btn-ghost:hover::after { transform: scaleX(0.35); }

.field {
  background: var(--d2-white);
  border: 1.5px solid var(--d2-line-strong);
  border-radius: var(--d2-radius-sm);
  color: var(--d2-ink);
  font-family: var(--d2-sans);
  font-size: var(--d2-text-body);
  padding: var(--d2-space-4);
  transition: border-color var(--d2-duration-fast) var(--d2-ease), box-shadow var(--d2-duration-fast) var(--d2-ease);
  width: 100%;
}
.field::placeholder { color: var(--d2-muted); }
.field:focus { border-color: var(--d2-teal); box-shadow: 0 0 0 3px color-mix(in srgb, var(--d2-teal) 14%, transparent); outline: none; }

.card { padding: var(--d2-space-6); }
.chip {
  align-items: center;
  background: var(--d2-white);
  border: 1px solid var(--d2-line);
  border-radius: var(--d2-radius-sm);
  color: var(--d2-navy);
  display: inline-flex;
  font-family: var(--d2-sans);
  font-size: var(--d2-text-sm);
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: var(--d2-space-2) var(--d2-space-5);
}

.lockup { align-items: center; display: inline-flex; gap: var(--d2-space-3); text-decoration: none; }
.mark { flex: none; height: 2rem; width: 2rem; }
.mark rect { fill: var(--mark-fg, var(--d2-navy)); }
.mark .accent { fill: var(--d2-teal); }
.lockup .word { display: flex; flex-direction: column; line-height: 1; }
.lockup .word .a { color: var(--lock-fg, var(--d2-navy)); font-family: var(--d2-display); font-size: var(--d2-text-h3); font-weight: 700; letter-spacing: -0.02em; }
.lockup .word .b { color: var(--lock-fg, var(--d2-navy)); font-family: var(--d2-sans); font-size: var(--d2-text-xs); font-weight: 600; letter-spacing: 0.3em; margin-top: var(--d2-space-1); text-transform: uppercase; }

.on-dark { color: color-mix(in srgb, var(--d2-white) 82%, transparent); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark .h1, .on-dark .h2, .on-dark .h3 { color: var(--d2-white); }
.lockup.on-dark { --lock-fg: var(--d2-white); --mark-fg: var(--d2-white); }
.btn-secondary.on-dark { border-color: color-mix(in srgb, var(--d2-white) 40%, transparent); color: var(--d2-white); }
.btn-secondary.on-dark:hover { background: color-mix(in srgb, var(--d2-white) 6%, transparent); border-color: var(--d2-white); }
.btn-primary.on-dark { background: var(--d2-teal); color: var(--d2-white); }
.btn-primary.on-dark:hover { background: var(--d2-teal-bright); }
.btn-ghost.on-dark { color: var(--d2-white); }
.btn-ghost.on-dark:hover { color: var(--d2-teal-bright); }

.media {
  aspect-ratio: var(--media-ratio, 1 / 1);
  overflow: hidden;
}
.media:not(:has(> img, > picture)) { aspect-ratio: auto; block-size: 0; }
.media > img, .media > picture, .media > picture > img { block-size: 100%; inline-size: 100%; }
.media > picture { display: contents; }
.media > img, .media > picture > img { object-fit: cover; object-position: var(--media-focal, 50% 50%); }

@media (max-width: 639px) {
  .media { aspect-ratio: var(--media-ratio, 1 / 1); }
}

.login-link {
  align-items: center;
  background: none;
  border: 0;
  color: var(--d2-navy);
  cursor: pointer;
  display: inline-flex;
  font-family: var(--d2-sans);
  font-size: var(--d2-text-xs);
  font-weight: 600;
  gap: var(--d2-space-2);
  letter-spacing: var(--d2-tracking-nav);
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
}
.login-link:hover { color: var(--d2-teal); }

.sr-only {
  block-size: 1px;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  inline-size: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
}
.field[aria-invalid="true"] { border-color: var(--d2-danger); }
.zip-check__context, .zip-check__status {
  font-size: var(--d2-text-sm);
  line-height: 1.45;
  margin: 0;
}
.zip-check { scroll-margin-block-start: var(--d2-space-9); }
.zip-waitlist-panel {
  background: var(--d2-white);
  border: 1px solid var(--d2-line);
  border-radius: var(--d2-radius-md);
  color: var(--d2-ink);
  padding: var(--d2-space-5);
}
.zip-waitlist-panel__intro h2 {
  color: var(--d2-navy);
  font-family: var(--d2-display);
  font-size: var(--d2-text-h3);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
.zip-waitlist-panel__intro h2 span { color: var(--d2-teal-deep); }
.zip-waitlist-panel__intro p, .zip-waitlist-panel__note, .zip-waitlist-panel__status {
  color: var(--d2-muted);
  font-size: var(--d2-text-sm);
  line-height: 1.5;
  margin: var(--d2-space-2) 0 0;
}
.zip-waitlist-panel__form { margin-top: var(--d2-space-4); }
.zip-waitlist-panel__row { align-items: stretch; display: grid; gap: var(--d2-space-2); grid-template-columns: minmax(0, 1fr) auto; }
.zip-waitlist-panel__row .field { margin: 0; min-width: 0; }
.zip-waitlist-panel__row .btn { min-height: var(--d2-touch); white-space: nowrap; }
.zip-waitlist-panel__status:not(:empty) { color: var(--d2-teal-deep); font-weight: 600; }
@media (max-width: 560px) {
  .zip-waitlist-panel__row { grid-template-columns: minmax(0, 1fr); }
  .zip-waitlist-panel__row .btn { width: 100%; }
}

/* Standardized residential ZIP pill. Shared by the marketing ZipCheck component
   and the /start/ funnel step so both render one control from a single source. */
.zip-check__row {
  align-items: center;
  background: var(--d2-white);
  border-radius: var(--d2-radius-pill);
  box-shadow: var(--d2-shadow-lift);
  display: flex;
  gap: var(--d2-space-2);
  padding: var(--d2-space-2);
  transition: box-shadow var(--d2-duration-fast) var(--d2-ease);
}
.zip-check__row:has(.zip-check__input[aria-invalid="true"]) { box-shadow: 0 0 0 2px var(--d2-danger), var(--d2-shadow-lift); }
.zip-check__cell--pickup {
  flex: none;
  padding-inline: var(--d2-space-4) var(--d2-space-3);
  position: relative;
}
.zip-check__cell--pickup::after {
  background: var(--d2-line);
  content: "";
  height: 34px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
}
.zip-check__cell--from {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding-inline: var(--d2-space-3);
}
.zip-check__cell-label {
  color: var(--d2-navy);
  display: block;
  font-family: var(--d2-display);
  font-size: var(--d2-text-xs);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.zip-check__pickup-value {
  color: var(--d2-teal-deep);
  display: block;
  font-size: var(--d2-text-sm);
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
}
.zip-check__input {
  background: none;
  border: none;
  border-radius: 0;
  color: var(--d2-ink);
  font-family: var(--d2-display);
  font-size: var(--d2-text-body);
  font-weight: 600;
  margin-top: 2px;
  min-width: 0;
  padding: 0;
  width: 100%;
}
.zip-check__input:focus { box-shadow: none; outline: none; }
.zip-check__input::placeholder { color: #9aa5aa; opacity: 1; }
.zip-check__submit {
  align-items: center;
  background: var(--d2-teal);
  border: none;
  border-radius: 50%;
  color: var(--d2-white);
  cursor: pointer;
  display: grid;
  flex: none;
  height: 52px;
  place-items: center;
  transition: background var(--d2-duration-fast) var(--d2-ease), transform var(--d2-duration-fast) var(--d2-ease);
  width: 52px;
}
.zip-check__submit:hover { background: var(--d2-teal-bright); transform: scale(1.04); }
.zip-check__submit svg { height: 20px; width: 20px; }
@media (max-width: 420px) {
  .zip-check__row { border-radius: var(--d2-radius-lg); flex-wrap: wrap; }
  .zip-check__cell--pickup { flex: 1 1 100%; padding-inline: var(--d2-space-3); }
  .zip-check__cell--pickup::after { display: none; }
  .zip-check__cell--from { flex: 1 1 auto; }
}
.btn[data-loading="true"]::before {
  animation: d2-spin var(--d2-duration) linear infinite;
  border: 2px solid color-mix(in srgb, var(--d2-white) 42%, transparent);
  border-radius: var(--d2-radius-pill);
  border-top-color: var(--d2-white);
  content: "";
  inline-size: 0.8em;
  block-size: 0.8em;
}
.zip-check__waitlist--revealed { animation: d2-zip-check-reveal var(--d2-duration) var(--d2-ease); }
@keyframes d2-spin { to { transform: rotate(1turn); } }
@keyframes d2-zip-check-reveal {
  from { opacity: 0; transform: translateY(calc(var(--d2-space-2) * -1)); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .btn[data-loading="true"]::before, .zip-check__waitlist--revealed { animation: none; }
}

/* Tailwind compatibility shims deliberately lose to component rules. */
:where([class~="bg-slate-900"]) { background-color: var(--d2-navy-deep); }
:where([class~="bg-slate-800"]) { background-color: var(--d2-navy-alt); }
:where([class~="bg-slate-700"]) { background-color: var(--d2-navy); }
:where([class~="bg-slate-50"], [class~="bg-gray-50"]) { background-color: var(--d2-mist); }
:where([class~="bg-white"]) { background-color: var(--d2-white); }
:where([class~="text-slate-300"], [class~="text-slate-400"], [class~="text-slate-500"]) { color: color-mix(in srgb, var(--d2-white) 72%, var(--d2-muted)); }
:where([class~="text-slate-600"], [class~="text-gray-600"]) { color: var(--d2-muted); }
:where([class~="text-slate-700"], [class~="text-slate-800"], [class~="text-slate-900"]) { color: var(--d2-ink); }
:where([class~="border-slate-700"], [class~="border-slate-800"]) { border-color: color-mix(in srgb, var(--d2-white) 18%, transparent); }
:where([class~="border-slate-200"], [class~="border-gray-200"]) { border-color: var(--d2-line); }
:where([class~="rounded-lg"], [class~="rounded-xl"], [class~="rounded-2xl"]) { border-radius: var(--d2-radius-md); }
:where([class~="shadow"], [class~="shadow-sm"], [class~="shadow-md"], [class~="shadow-lg"]) { box-shadow: var(--d2-shadow-card); }

/* Shared app-shell treatment. */
.el-app, el-app-shell, .admin-app, .staff-app, .pos-app, .crm-app {
  background: var(--d2-mist);
  color: var(--d2-ink);
  font-family: var(--d2-sans);
}
.el-shell-topbar,
.app-topbar,
.portal-topbar {
  background: var(--d2-navy-deep);
  border-bottom: 2px solid var(--d2-teal);
  color: var(--d2-white);
}
.el-shell-title,
.app-topbar h1,
.portal-topbar h1 {
  color: var(--d2-white);
  font-family: var(--d2-display);
  letter-spacing: -0.01em;
}

.d2-admin-sidebar,
.d2-admin-mobile-bar,
.d2-admin-expand {
  background: var(--d2-navy-deep) !important;
  border-color: color-mix(in srgb, white 14%, transparent) !important;
}
.d2-admin-sidebar { box-shadow: 16px 0 48px -34px rgba(15,32,56,.75); }
.d2-admin-sidebar-head { border-color: color-mix(in srgb, white 14%, transparent) !important; }
.d2-admin-brand { font-family: var(--d2-display); letter-spacing: -.01em; text-decoration: none; }
.d2-admin-group-label { color: #8fa3ad !important; letter-spacing: .16em !important; }
.d2-admin-link { border-radius: var(--d2-radius-sm) !important; }
.d2-admin-link:hover { background: color-mix(in srgb, var(--d2-teal) 24%, transparent) !important; }
.d2-admin-link-active { background: var(--d2-teal) !important; }
.d2-admin-link-disabled { color: #758891 !important; }
.d2-admin-sidebar-foot { border-color: color-mix(in srgb, white 14%, transparent) !important; }

/* Reduced motion is a system rule, not a page preference. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 900px) {
  :root {
    --d2-text-h1: clamp(2.75rem, 13vw, 4rem);
    --d2-text-h2: clamp(2rem, 9vw, 2.5rem);
  }
}
