/* Cloud Card - design system
   1. Tokens  2. Base  3. Layout helpers  4. Components  5. Public shell  6. App shell
   7. Preview toolbar  8. Utilities  9. Motion preferences
   Page-specific styles live in css/pages/*.css. */

/* 1. Tokens ================================================================================ */
:root {
  /* palette */
  --navy: #0C2F58;
  --navy-900: #071D38;
  --navy-800: #0A2647;
  --navy-700: #123C6C;
  --navy-600: #1A4A80;
  --navy-text: #0E2B4F;
  --page: #F8FAFC;
  --surface: #FFFFFF;
  --field: #F5F9FC;
  --line: #D9E0EB;
  --line-soft: #E8EDF4;
  --link: #0959C9;
  --muted: #4D5E75;
  --muted-2: #6B7A90;
  --muted-on-navy: #B7CEE3;
  --blue-start: #1492FD;
  --blue-end: #57DAF9;
  --light-blue: #36D4F9;
  --middle-blue: #0089FD;
  --gain: #13804A;          /* text on white, 5.1:1 */
  --gain-fill: #16C784;     /* chart strokes, dots */
  --gain-soft: #E4F7EC;
  --loss: #C62828;          /* text on white, 5.6:1 */
  --loss-fill: #EF4444;
  --loss-soft: #FDECEC;
  --warn: #8A5300;
  --warn-soft: #FFF3D6;
  --info-soft: #E7F1FF;
  --cyan-soft: #E3F8FE;
  --star: #E9A800;          /* filled rating stars */

  /* semantic */
  --bg: var(--page);
  --text: var(--navy-text);
  --text-strong: var(--navy);
  --text-muted: var(--muted);
  --border: var(--line);
  --focus: #0B74F0;
  --brand-gradient: linear-gradient(90deg, var(--blue-start) 0%, var(--blue-end) 100%);
  --brand-gradient-rev: linear-gradient(90deg, var(--blue-end) 0%, var(--blue-start) 100%);

  /* type */
  --font-display: "Montserrat", "Segoe UI", system-ui, sans-serif;
  --font-body: "Roboto", "Segoe UI", system-ui, sans-serif;
  --font-label: "Inter", "Roboto", system-ui, sans-serif;
  --font-wordmark: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
  --fs-12: 0.75rem;
  --fs-13: 0.8125rem;
  --fs-14: 0.875rem;
  --fs-15: 0.9375rem;
  --fs-16: 1rem;
  --fs-17: 1.0625rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-28: 1.75rem;
  --fs-34: clamp(1.75rem, 1.2rem + 1.6vw, 2.125rem);
  --fs-43: clamp(2.125rem, 1.4rem + 2.4vw, 2.6875rem);
  --fs-56: clamp(2.4rem, 1.4rem + 3.4vw, 3.5rem);
  --track-display: -0.03em;

  /* spacing (4px base) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;
  --s-24: 96px;
  --gutter: 64px;

  /* shape */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* elevation: blue-tinted */
  --sh-1: 0 1px 2px rgba(12, 47, 88, 0.06), 0 1px 1px rgba(12, 47, 88, 0.04);
  --sh-2: 0 4px 14px -4px rgba(12, 47, 88, 0.12), 0 2px 4px rgba(12, 47, 88, 0.04);
  --sh-3: 0 18px 40px -16px rgba(12, 47, 88, 0.28), 0 4px 10px -4px rgba(12, 47, 88, 0.08);
  --sh-glow: 0 10px 30px -10px rgba(20, 146, 253, 0.55);

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 160ms;
  --t: 220ms;

  /* chrome */
  --nav-h: 104px;
  --topbar-h: 58px;
  --sidebar-w: 212px;
  --topbar-bg: #0A1F38;
}

@media (max-width: 1100px) {
  :root { --gutter: 32px; --nav-h: 80px; }
}
@media (max-width: 768px) {
  :root { --gutter: 16px; --nav-h: 64px; }
}

/* 2. Base ================================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-16);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text-strong);
  letter-spacing: var(--track-display);
  line-height: 1.15;
  font-weight: 700;
}
h1 { font-size: var(--fs-43); font-weight: 800; }
h2 { font-size: var(--fs-34); }
h3 { font-size: var(--fs-20); letter-spacing: -0.015em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
::selection { background: rgba(54, 212, 249, 0.35); }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--nav-h) + 12px); }

.skip-link {
  position: absolute; left: var(--s-4); top: -60px; z-index: 100;
  background: var(--navy); color: #fff; padding: var(--s-2) var(--s-4); border-radius: var(--r-sm);
}
.skip-link:focus { top: var(--s-4); }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.i {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round;
}
.i--sm { width: 18px; height: 18px; }
.i--xs { width: 16px; height: 16px; }
.i--lg { width: 28px; height: 28px; }

/* 3. Layout helpers ======================================================================== */
.wrap { width: 100%; max-width: calc(1312px + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.stack > * + * { margin-top: var(--stack, var(--s-4)); }
.row { display: flex; align-items: center; gap: var(--s-3); }
.row--wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

/* 4. Components ============================================================================ */

/* Brand */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand__mark { width: 46px; height: auto; }
.brand__word { font-family: var(--font-wordmark); font-weight: 700; font-size: 1.5625rem; letter-spacing: -0.01em; line-height: 1; }
.brand--light { color: #fff; }

/* Kicker: the short line above a page or section title, led by the gradient dash */
.kicker { display: inline-flex; align-items: center; gap: 12px; font-weight: 600; font-size: var(--fs-15); color: var(--link); }
.kicker::before { content: ""; width: 28px; height: 3px; border-radius: 3px; background: var(--brand-gradient); }

/* Buttons */
.btn {
  --btn-h: 44px;
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: var(--btn-h); padding: 0 var(--s-5);
  border: 1px solid transparent; border-radius: var(--r-sm);
  font-family: var(--font-body); font-weight: 600; font-size: var(--fs-15); line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease),
    color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn .i { width: 20px; height: 20px; }
.btn--lg { --btn-h: 54px; padding: 0 var(--s-6); font-size: var(--fs-16); font-weight: 700; }
.btn--sm { --btn-h: 34px; padding: 0 var(--s-3); font-size: var(--fs-13); }
.btn--block { width: 100%; }

.btn--primary { background: var(--brand-gradient-rev); color: var(--navy); font-weight: 700; }
.btn--primary:hover { box-shadow: var(--sh-glow); }
.btn--primary .i { transition: transform var(--t) var(--ease); }
.btn--primary:hover .i { transform: translateX(3px); }
.btn--navy { background: var(--navy); color: #fff; }
.btn--navy:hover { background: var(--navy-700); }
.btn--blue { background: var(--middle-blue); color: #fff; }
.btn--blue:hover { background: #0077E0; }
.btn--secondary { background: var(--surface); color: var(--link); border-color: #9CBDEB; }
.btn--secondary:hover { border-color: var(--link); background: #F3F8FF; }
.btn--tertiary { background: transparent; color: var(--link); padding: 0 var(--s-2); }
.btn--tertiary:hover { background: #EEF5FF; }
.btn--danger { background: var(--surface); color: var(--loss); border-color: #F1B5B5; }
.btn--danger:hover { background: var(--loss-soft); border-color: var(--loss); }
.btn--danger-solid { background: var(--loss); color: #fff; }
.btn--danger-solid:hover { background: #A61F1F; }
.btn--ghost-light { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.22); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.16); }
.btn--social { background: var(--surface); border-color: var(--line); color: var(--navy-text); font-weight: 600; }

.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border: 0; border-radius: var(--r-pill);
  background: transparent; color: inherit;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.icon-btn:hover { background: rgba(12, 47, 88, 0.07); }
.icon-btn--danger { width: 30px; height: 30px; border-radius: var(--r-sm); background: var(--loss-fill); color: #fff; }
.icon-btn--danger:hover { background: var(--loss); }
.icon-btn--danger .i { width: 17px; height: 17px; }

/* Forms */
.field { display: grid; gap: 6px; }
.field__label { font-family: var(--font-label); font-weight: 500; font-size: var(--fs-14); color: var(--navy-text); }
.field__label .req { color: var(--loss); margin-left: 2px; }
.field__help { font-size: var(--fs-13); color: var(--muted); }
.field__error { font-size: var(--fs-13); color: var(--loss); display: flex; gap: 6px; align-items: flex-start; }
.field__error:empty { display: none; }
.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 0 var(--s-4);
  background: var(--field); border: 1px solid var(--line); border-radius: var(--r-sm);
  color: var(--navy-text); font-size: var(--fs-15);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease);
}
.textarea { padding: var(--s-3) var(--s-4); min-height: 96px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: #7D8BA0; }
.input:hover, .select:hover, .textarea:hover { border-color: #B9C6D8; }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--middle-blue); background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 137, 253, 0.18);
}
.input[readonly] { background: #EEF2F7; color: var(--muted); cursor: default; }
.input[readonly]:hover { border-color: var(--line); }
.field.is-invalid .input, .field.is-invalid .select, .input[aria-invalid="true"] {
  border-color: var(--loss); box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}
.select {
  appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E2B4F' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 9.5 5.5 5.5 5.5-5.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 20px;
}
.input-wrap { position: relative; }
.input-wrap .input { padding-right: 52px; }
.input-wrap__btn {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 0; background: transparent; color: var(--muted); border-radius: var(--r-sm);
}
.input-wrap__btn:hover { color: var(--navy); background: rgba(12, 47, 88, 0.06); }
.input-icon { position: relative; }
.input-icon > .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.input-icon .input { padding-left: 46px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }

/* Form message slot: forms.js showMessage() paints it as a .notice; empty, it takes no room */
.auth__msg:empty { display: none; }

/* Captcha slot: where the verification widget mounts once it is switched on */
.captcha-slot {
  display: flex; align-items: center; gap: var(--s-3); width: fit-content; min-width: 280px; max-width: 100%;
  padding: var(--s-3) var(--s-4); border: 1px dashed #AEBBCD; border-radius: var(--r-sm);
  background: var(--field); color: var(--muted); font-size: var(--fs-13);
}
.captcha-slot .i { flex: none; color: var(--middle-blue); }
@media (max-width: 420px) { .captcha-slot { min-width: 0; width: 100%; } }

.check { display: flex; align-items: flex-start; gap: var(--s-3); font-size: var(--fs-14); color: var(--muted); cursor: pointer; }
.check input, .checkbox {
  appearance: none; flex: none; width: 20px; height: 20px; margin: 1px 0 0;
  border: 1.5px solid #AEBBCD; border-radius: 4px; background: #fff; cursor: pointer;
  display: inline-grid; place-items: center;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
}
.check input::after, .checkbox::after {
  content: ""; width: 11px; height: 6px; margin-top: -3px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg) scale(0);
  transition: transform var(--t-fast) var(--ease);
}
.check input:checked, .checkbox:checked { background: var(--middle-blue); border-color: var(--middle-blue); }
.check input:checked::after, .checkbox:checked::after { transform: rotate(-45deg) scale(1); }
.check input:focus-visible, .checkbox:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Toggle switch */
.toggle { display: inline-flex; align-items: center; gap: var(--s-3); cursor: pointer; font-size: var(--fs-14); color: var(--navy-text); }
.toggle input {
  appearance: none; position: relative; flex: none; width: 44px; height: 26px; margin: 0;
  border-radius: var(--r-pill); background: #C9D3E0; cursor: pointer;
  transition: background-color var(--t) var(--ease);
}
.toggle input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px;
  border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(12, 47, 88, 0.3);
  transition: transform var(--t) var(--ease);
}
.toggle input:checked { background: linear-gradient(90deg, var(--blue-start), var(--light-blue)); }
.toggle input:checked::after { transform: translateX(18px); }
.toggle input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

/* Segmented switch (also used for range pills) */
.seg {
  display: inline-flex; padding: 4px; gap: 2px;
  background: var(--field); border: 1px solid var(--line); border-radius: var(--r-pill);
}
.seg__btn {
  min-height: 32px; padding: 0 14px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--muted); font-weight: 600; font-size: var(--fs-13);
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.seg__btn:hover { color: var(--navy); }
.seg__btn[aria-pressed="true"], .seg__btn[aria-selected="true"] { background: #fff; color: var(--navy); box-shadow: var(--sh-1); }
.seg--dark { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.14); }
.seg--dark .seg__btn { color: var(--muted-on-navy); }
.seg--dark .seg__btn:hover { color: #fff; }
.seg--dark .seg__btn[aria-pressed="true"] { background: #fff; color: var(--navy); }

/* Chips / filter pills */
.chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 6px 0 14px;
  border-radius: var(--r-pill); background: var(--middle-blue); color: #fff;
  font-weight: 600; font-size: var(--fs-14); border: 0;
}
.chip__x { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.18); color: #fff; padding: 0; }
.chip__x:hover { background: rgba(255, 255, 255, 0.32); }
.chip__x .i { width: 14px; height: 14px; stroke-width: 2.2; }
.chip--soft { background: var(--info-soft); color: var(--link); padding: 0 14px; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px;
  border-radius: 6px; font-family: var(--font-body); font-weight: 700; font-size: 0.6875rem;
  letter-spacing: 0.04em; text-transform: uppercase; white-space: nowrap;
}
.badge--active { background: var(--info-soft); color: var(--link); }
.badge--unlisted { background: #EEF2F7; color: var(--muted); }
.badge--pending { background: var(--warn-soft); color: var(--warn); }
.badge--sold { background: var(--gain-soft); color: var(--gain); }
.badge--raw { background: var(--loss-soft); color: var(--loss); }
.badge--hidden { background: #EEF2F7; color: var(--muted); }
.grade {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px;
  border-radius: 6px; background: var(--cyan-soft); color: #0A5C80;
  font-weight: 700; font-size: var(--fs-12); white-space: nowrap; letter-spacing: 0.01em;
}
.grade--raw { background: var(--loss-soft); color: var(--loss); }

/* Star rating: five sprite stars, filled left to right up to --rating (0 to 5); util.js stars() */
.stars { position: relative; display: inline-flex; vertical-align: middle; line-height: 0; }
.stars__track, .stars__fill { display: inline-flex; gap: 1px; }
.stars .i { width: 14px; height: 14px; fill: var(--line); stroke: none; }
.stars__fill { position: absolute; left: 0; top: 0; height: 100%; width: calc(var(--rating, 0) / 5 * 100%); overflow: hidden; }
.stars__fill .i { fill: var(--star); }

/* Panels */
.panel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-lg);
  box-shadow: var(--sh-1); padding: var(--s-6);
}
.panel__head { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.panel__title { font-family: var(--font-body); font-weight: 700; font-size: var(--fs-17); letter-spacing: 0; color: var(--navy); }
.panel__meta { margin-left: auto; font-size: var(--fs-13); color: var(--muted); }
.panel--flush { padding: 0; overflow: hidden; }

/* Stat tile */
.stat { display: grid; gap: 4px; padding: var(--s-4) var(--s-5); background: var(--field); border-radius: var(--r-md); }
.stat__label { font-size: var(--fs-13); color: var(--muted); }
.stat__value { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-24); color: var(--navy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__sub { font-size: var(--fs-12); color: var(--muted); }
.kv { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding: 14px var(--s-4); background: var(--field); border-radius: var(--r-sm); }
.kv + .kv { margin-top: var(--s-2); }
.kv__k { font-size: var(--fs-14); color: var(--muted); }
.kv__v { font-weight: 700; font-size: var(--fs-17); color: var(--navy); font-variant-numeric: tabular-nums; }

/* Gain / loss text */
.gain { color: var(--gain); }
.loss { color: var(--loss); }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-variant-numeric: tabular-nums; }
.delta .i { width: 16px; height: 16px; stroke-width: 2; }

/* Table */
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-14); }
.table th { text-align: left; font-weight: 500; color: var(--muted); background: var(--field); padding: 12px var(--s-4); }
.table th:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.table th:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.table td { padding: 14px var(--s-4); border-bottom: 1px solid var(--line-soft); color: var(--navy-text); }
.table tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* Breadcrumb */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: var(--fs-13); color: var(--muted); }
.crumbs a { color: var(--muted); }
.crumbs .i { width: 14px; height: 14px; }
.crumbs [aria-current] { color: var(--navy); font-weight: 600; }

/* Tabs */
.tabs { display: flex; gap: var(--s-6); border-bottom: 1px solid var(--line); }
.tabs__tab {
  position: relative; padding: var(--s-3) 0; border: 0; background: none; color: var(--muted);
  font-weight: 600; font-size: var(--fs-15);
}
.tabs__tab[aria-selected="true"] { color: var(--navy); }
.tabs__tab[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand-gradient); }

/* Empty state, upsell, notices */
.empty {
  display: grid; justify-items: center; gap: var(--s-3); text-align: center;
  padding: var(--s-12) var(--s-6); border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.empty__icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--r-md); background: var(--cyan-soft); color: var(--middle-blue); }
.empty__title { font-family: var(--font-display); font-weight: 700; font-size: var(--fs-20); color: var(--navy); letter-spacing: -0.015em; }
.empty__body { max-width: 46ch; color: var(--muted); font-size: var(--fs-15); }
.empty .btn { margin-top: var(--s-2); }

.upsell {
  position: relative; overflow: hidden; display: grid; gap: var(--s-3);
  padding: var(--s-8); border-radius: var(--r-lg); color: #fff;
  background: radial-gradient(120% 140% at 100% 0%, rgba(54, 212, 249, 0.28), transparent 55%), var(--navy);
}
.upsell h2, .upsell h3 { color: #fff; }
.upsell p { color: var(--muted-on-navy); max-width: 52ch; }
.upsell .row { margin-top: var(--s-2); }
@media (max-width: 520px) { .upsell { padding: var(--s-5); } .upsell .btn { white-space: normal; text-align: center; } }
.upsell--limit { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 196, 0, 0.18), transparent 55%), var(--navy); }

/* The quiet plan line for Free members: one sentence and a link, never a wall. */
.nudge {
  display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4);
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--field);
  color: var(--navy-text); font-size: var(--fs-14); line-height: 1.45;
}
.nudge > .i { flex: none; width: 20px; height: 20px; color: var(--middle-blue); }
.nudge p { flex: 1 1 auto; min-width: 0; }
.nudge p strong { color: var(--navy); font-weight: 600; }
.nudge .btn { flex: none; margin-left: auto; }
@media (max-width: 520px) { .nudge { flex-wrap: wrap; } .nudge .btn { margin-left: 32px; } }

.placeholder-quiet {
  display: grid; place-items: center; text-align: center; gap: 6px; min-height: 160px; padding: var(--s-6);
  border-radius: var(--r-md); background: var(--field); color: var(--muted); font-size: var(--fs-14);
}

.notice { display: flex; gap: var(--s-3); align-items: flex-start; padding: var(--s-3) var(--s-4); border-radius: var(--r-sm); font-size: var(--fs-14); }
.notice .i { width: 20px; height: 20px; margin-top: 1px; }
.notice--info { background: var(--info-soft); color: #0A4A9E; }
.notice--warn { background: var(--warn-soft); color: var(--warn); }
.notice--error { background: var(--loss-soft); color: var(--loss); }
.notice--success { background: var(--gain-soft); color: var(--gain); }

/* Preview strip (D14): the one quiet marker on surfaces that still run on sample data.
   <p class="preview-strip" role="note"><b>Preview</b> what opens when, and what is sample.</p> */
.preview-strip {
  display: inline-flex; align-items: center; gap: 10px; max-width: 100%; margin-bottom: var(--s-5);
  padding: 7px 14px 7px 12px; border: 1px solid var(--line-soft); border-radius: var(--r-pill);
  background: var(--surface); color: var(--muted); font-size: var(--fs-13); line-height: 1.4;
}
.preview-strip::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-gradient); box-shadow: 0 0 0 3px rgba(20, 146, 253, 0.16);
}
.preview-strip b { color: var(--navy); font-weight: 600; }
.crumbs + .preview-strip { margin-top: var(--s-4); }

/* Skeleton */
.skel {
  display: block; border-radius: var(--r-sm);
  background: linear-gradient(90deg, #EDF1F6 0%, #F7F9FC 40%, #EDF1F6 80%);
  background-size: 300% 100%; animation: skel 1.4s var(--ease) infinite;
}
.skel--text { height: 12px; }
.skel--title { height: 22px; width: 60%; }
.skel--block { height: 160px; border-radius: var(--r-md); }
@keyframes skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Avatar initials chip */
.avatar {
  display: inline-grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%;
  background: var(--brand-gradient); color: var(--navy); font-weight: 700; font-size: var(--fs-13);
}

/* Toasts */
.toasts { position: fixed; z-index: 90; right: var(--s-6); bottom: var(--s-6); display: grid; gap: var(--s-2); max-width: min(380px, calc(100vw - 32px)); }
.toast {
  display: flex; align-items: flex-start; gap: var(--s-3); padding: 14px var(--s-4);
  border-radius: var(--r-md); background: var(--navy); color: #fff; box-shadow: var(--sh-3); font-size: var(--fs-14);
  animation: toast-in var(--t) var(--ease);
}
.toast .i { width: 20px; height: 20px; color: var(--light-blue); }
.toast--error .i { color: #FF9C9C; }
.toast__close { margin-left: auto; border: 0; background: none; color: var(--muted-on-navy); padding: 0; }
.toast.is-leaving { opacity: 0; transform: translateY(6px); transition: opacity var(--t) var(--ease), transform var(--t) var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Dialog + drawer (native <dialog>) */
.dialog {
  width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 0;
  border-radius: var(--r-lg); background: var(--surface); color: var(--text); box-shadow: var(--sh-3);
}
.dialog::backdrop { background: rgba(7, 29, 56, 0.48); backdrop-filter: blur(2px); }
.dialog[open] { animation: dialog-in var(--t) var(--ease); }
.dialog__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-6) 0; }
.dialog__title { font-size: var(--fs-20); }
.dialog__head .icon-btn { margin-left: auto; margin-right: -8px; }
.dialog__body { padding: var(--s-4) var(--s-6); display: grid; gap: var(--s-4); }
.dialog__body > * { min-width: 0; }
.dialog__foot { display: flex; justify-content: flex-end; gap: var(--s-3); padding: var(--s-4) var(--s-6) var(--s-6); flex-wrap: wrap; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }

.drawer {
  margin: 0 0 0 auto; height: 100vh; max-height: 100vh; width: min(380px, 88vw); padding: 0; border: 0;
  background: var(--surface); color: var(--text); box-shadow: var(--sh-3);
}
.drawer--left { margin: 0 auto 0 0; background: var(--navy); color: #fff; width: min(300px, 86vw); }
.drawer::backdrop { background: rgba(7, 29, 56, 0.48); }
.drawer[open] { animation: drawer-in var(--t) var(--ease); }
.drawer--left[open] { animation: drawer-in-left var(--t) var(--ease); }
.drawer__inner { display: flex; flex-direction: column; height: 100%; }
.drawer__head { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-5) var(--s-5) var(--s-3); }
.drawer__head .icon-btn { margin-left: auto; }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--s-2) var(--s-5) var(--s-5); }
.drawer__foot { padding: var(--s-4) var(--s-5) var(--s-5); display: flex; gap: var(--s-3); border-top: 1px solid var(--line-soft); }
@keyframes drawer-in { from { transform: translateX(100%); } to { transform: none; } }
@keyframes drawer-in-left { from { transform: translateX(-100%); } to { transform: none; } }

/* Dropdown menu */
.menu-wrap { position: relative; }
.menu {
  position: absolute; z-index: 40; top: calc(100% + 8px); right: 0; min-width: 200px; padding: 6px;
  background: var(--surface); color: var(--navy-text); border: 1px solid var(--line-soft);
  border-radius: var(--r-md); box-shadow: var(--sh-3);
  opacity: 0; transform: translateY(-4px); pointer-events: none; visibility: hidden;
  transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease), visibility 0s linear var(--t-fast);
}
.menu.is-open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.menu__item {
  display: flex; align-items: center; gap: var(--s-3); width: 100%; padding: 10px 12px;
  border: 0; border-radius: var(--r-sm); background: none; color: inherit; text-align: left;
  font-size: var(--fs-14); font-weight: 500; text-decoration: none;
}
.menu__item:hover, .menu__item:focus-visible { background: var(--field); text-decoration: none; outline: none; }
.menu__item .i { width: 20px; height: 20px; color: var(--muted); }
.menu__sep { height: 1px; margin: 6px 4px; background: var(--line-soft); }
.menu__head { padding: 8px 12px 10px; font-size: var(--fs-13); color: var(--muted); }
.menu__head strong { display: block; color: var(--navy); font-size: var(--fs-14); }

/* Tooltip (CSS-only, for disabled controls) */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translate(-50%, 4px);
  padding: 6px 10px; border-radius: 6px; background: var(--navy); color: #fff; font-size: var(--fs-12); font-weight: 500;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
[data-tip]:hover::after, [data-tip]:focus-visible::after, [data-tip]:focus-within::after { opacity: 1; transform: translate(-50%, 0); }

/* Charts */
.chart { position: relative; width: 100%; }
.chart canvas { width: 100%; height: 100%; }
.chart__tip {
  position: absolute; top: 0; left: 0; pointer-events: none; padding: 6px 10px; border-radius: 8px;
  background: var(--navy); color: #fff; font-size: var(--fs-12); white-space: nowrap; box-shadow: var(--sh-2);
  transform: translate(-50%, calc(-100% - 10px)); opacity: 0; transition: opacity var(--t-fast) var(--ease);
}
.chart__tip strong { display: block; font-size: var(--fs-14); }
.chart__tip.is-on { opacity: 1; }
.chart__axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: var(--fs-12); color: var(--muted); }

/* Card tile (collection) */
.card-tile {
  position: relative; display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--r-md);
  padding: var(--s-3) var(--s-3) var(--s-4); box-shadow: var(--sh-1);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t) var(--ease);
}
.card-tile.is-selected { border-color: var(--middle-blue); box-shadow: 0 0 0 3px rgba(0, 137, 253, 0.16); }
.card-tile.is-hidden .card-tile__media, .card-tile.is-hidden .card-tile__title { opacity: 0.5; }
.card-tile__top { display: flex; align-items: center; gap: var(--s-2); min-height: 30px; }
.card-tile__top .checkbox { margin-left: auto; }
.card-tile__media {
  position: relative; display: grid; place-items: center; margin: var(--s-3) 0; padding: var(--s-4) 0;
  border-radius: var(--r-sm); background: linear-gradient(180deg, #F2F6FB, #E9EFF7);
}
.card-tile__link { display: grid; place-items: center; width: 100%; border-radius: inherit; }
.card-tile__media img { width: 52%; max-width: 132px; aspect-ratio: 5 / 7; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 18px -10px rgba(12, 47, 88, 0.5); transition: transform var(--t) var(--ease); }
.card-tile__link:hover img { transform: translateY(-2px); }
.card-tile__trash { position: absolute; top: 10px; right: 10px; }
.card-tile__title { font-size: var(--fs-14); font-weight: 600; color: var(--navy); line-height: 1.35; min-height: 2.7em; }
.card-tile__title a { color: inherit; }
.card-tile__rows { display: grid; gap: 6px; margin: var(--s-3) 0 var(--s-4); font-size: var(--fs-12); }
.card-tile__rows div { display: flex; justify-content: space-between; gap: var(--s-2); }
.card-tile__rows dt { color: var(--muted); white-space: nowrap; }
.card-tile__rows dd { margin: 0; white-space: nowrap; color: var(--navy-text); font-weight: 500; text-align: right; font-variant-numeric: tabular-nums; }
.card-tile__actions { display: flex; gap: var(--s-2); margin-top: auto; flex-wrap: wrap; }
.card-tile__actions .btn { flex: 1 1 auto; }

/* Monogram fallback for missing images */
.monogram { display: grid; place-items: center; width: 52%; max-width: 132px; aspect-ratio: 5 / 7; border-radius: 6px; background: var(--navy); color: var(--light-blue); font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; }

/* 5. Public shell ========================================================================== */
.pub-nav { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, 0.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color var(--t) var(--ease); }
.pub-nav.is-scrolled { border-bottom-color: var(--line-soft); }
.pub-nav__bar { display: flex; align-items: center; gap: var(--s-6); height: var(--nav-h); }
.pub-nav__links { display: flex; align-items: center; gap: clamp(16px, 2.6vw, 40px); margin-left: auto; }
.pub-nav__links a { color: var(--navy); font-weight: 500; font-size: var(--fs-15); }
.pub-nav__links a[aria-current="page"] { color: var(--link); }
.pub-nav__auth { display: flex; align-items: center; gap: var(--s-5); margin-left: clamp(16px, 4vw, 64px); }
.pub-nav__login { font-weight: 600; font-size: var(--fs-15); }
.pub-nav__menu { display: none; margin-left: auto; color: var(--navy); }
@media (max-width: 1100px) {
  .pub-nav__links, .pub-nav__auth .pub-nav__login { display: none; }
  .pub-nav__menu { display: inline-grid; margin-left: 0; }
  .pub-nav__auth { margin-left: auto; gap: var(--s-2); }
}
@media (max-width: 520px) {
  .pub-nav__auth .btn { display: none; }
  .brand__word { font-size: 1.375rem; }
  .brand__mark { width: 40px; }
}
.mobile-nav { display: grid; gap: 2px; }
.mobile-nav a { display: block; padding: 14px var(--s-3); border-radius: var(--r-sm); color: #fff; font-weight: 500; }
.mobile-nav a:hover { background: rgba(255, 255, 255, 0.08); text-decoration: none; }
.mobile-nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.1); font-weight: 600; }

.pub-footer { background: var(--surface); border-top: 1px solid var(--line-soft); padding: var(--s-16) 0 var(--s-8); }
.pub-footer__top { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--s-10); align-items: start; }
.pub-footer__tag { font-family: var(--font-display); font-weight: 800; font-size: var(--fs-20); line-height: 1.25; letter-spacing: -0.01em; color: var(--navy); }
.pub-footer__tag span { display: block; }
.pub-footer__tag span:last-child { background: var(--brand-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pub-footer__links { display: grid; justify-items: end; gap: var(--s-2); font-size: var(--fs-14); }
.pub-footer__links a { color: var(--navy-text); }
.pub-footer__mid { display: flex; align-items: center; gap: var(--s-6); margin-top: var(--s-12); flex-wrap: wrap; }
.pub-footer__social { display: flex; gap: var(--s-2); margin-left: auto; }
.pub-footer__social a { color: var(--navy); }
.pub-footer__cta { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.pub-footer__base { display: flex; gap: var(--s-4); flex-wrap: wrap; margin-top: var(--s-10); padding-top: var(--s-5); border-top: 1px solid var(--line-soft); font-size: var(--fs-13); color: var(--muted); }
.pub-footer__base nav { display: flex; gap: var(--s-5); margin-left: auto; }
.pub-footer__base a { color: var(--muted); }
.pub-footer__credit { flex-basis: 100%; font-size: var(--fs-12); }
@media (max-width: 768px) {
  .pub-footer { padding-top: var(--s-12); }
  .pub-footer__top { grid-template-columns: 1fr; }
  .pub-footer__links { justify-items: start; }
  .pub-footer__social { margin-left: 0; }
  .pub-footer__base nav { margin-left: 0; }
}

/* 6. App shell ============================================================================= */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column;
  padding: var(--s-5) var(--s-4) var(--s-6); background: var(--navy); color: #fff;
}
.sidebar .brand { padding: 2px 4px 0; }
.sidebar .brand__mark { width: 42px; }
.sidebar .brand__word { font-size: 1.375rem; }
.side-nav { display: grid; gap: 4px; margin-top: var(--s-10); }
.side-nav__link {
  display: flex; align-items: center; gap: var(--s-3); min-height: 40px; padding: 0 12px;
  border-radius: var(--r-sm); color: var(--muted-on-navy); font-size: var(--fs-14); font-weight: 500;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.side-nav__link .i { width: 20px; height: 20px; }
.side-nav__link:hover { color: #fff; background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.side-nav__link[aria-current="page"] { color: #fff; font-weight: 600; background: rgba(255, 255, 255, 0.1); }
.side-nav__link[aria-current="page"] .i { color: var(--light-blue); }
.side-nav__soon { margin-left: auto; font-size: 0.625rem; font-weight: 700; letter-spacing: 0.04em; color: var(--light-blue); opacity: 0.8; }
.sidebar__foot { margin-top: auto; padding: var(--s-4) 4px 0; font-size: var(--fs-12); color: var(--muted-on-navy); }
.sidebar__foot a { color: var(--muted-on-navy); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 25; display: flex; align-items: center; gap: var(--s-2);
  height: var(--topbar-h); padding: 0 var(--s-8); background: var(--topbar-bg); color: #fff;
}
.topbar__title { display: flex; align-items: center; gap: var(--s-3); font-family: var(--font-body); font-weight: 600; font-size: var(--fs-17); color: #fff; }
.topbar__title .i { color: var(--muted-on-navy); }
.topbar__menu { display: none; color: #fff; }
.topbar__brand { display: none; }
.topbar__right { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.topbar .icon-btn { color: #E3EDF7; }
.topbar .icon-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.badge-dot {
  position: absolute; top: 3px; right: 3px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-pill);
  background: var(--light-blue); color: var(--navy); font-size: 0.625rem; font-weight: 700; line-height: 17px; text-align: center;
  box-shadow: 0 0 0 2px var(--topbar-bg);
}
.lang-chip {
  display: inline-flex; align-items: center; gap: 2px; height: 28px; padding: 0 6px 0 10px; margin: 0 6px;
  border: 0; border-radius: 6px; background: var(--light-blue); color: var(--navy); font-weight: 700; font-size: var(--fs-12);
}
.lang-chip .i { width: 16px; height: 16px; stroke-width: 2; }
.account-btn {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 8px 0 4px;
  border: 0; border-radius: 8px; background: var(--middle-blue); color: #fff; font-weight: 600; font-size: var(--fs-13);
}
.account-btn .avatar { width: 24px; height: 24px; font-size: 0.6875rem; background: #fff; color: var(--middle-blue); }
.account-btn .i { width: 16px; height: 16px; stroke-width: 2; }
.account-btn:hover { background: #0077E0; }

.app-content { flex: 1; padding: var(--s-8) var(--s-10) var(--s-16); }
.page-head { display: flex; align-items: flex-end; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.page-head__text { display: grid; gap: 6px; }
.page-head__sub { color: var(--muted); font-size: var(--fs-15); }
.page-head__actions { display: flex; gap: var(--s-3); margin-left: auto; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .app-content { padding: var(--s-6) var(--s-6) var(--s-12); }
  .topbar { padding: 0 var(--s-6); }
}
@media (max-width: 768px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .topbar { padding: 0 var(--s-2) 0 var(--s-2); background: var(--navy); height: 60px; }
  .topbar__menu { display: inline-flex; align-items: center; gap: 4px; padding: 0 10px; width: auto; border-radius: var(--r-sm); font-size: var(--fs-14); font-weight: 500; }
  .topbar__title { display: none; }
  .topbar__brand { display: inline-flex; }
  .topbar__brand .brand__mark { width: 34px; }
  .topbar__brand .brand__word { font-size: 1.25rem; }
  .topbar .lang-chip, .topbar .account-btn__name, .topbar .account-btn > .i { display: none; }
  .topbar .account-btn { padding: 0 4px; background: transparent; }
  .topbar .icon-btn { width: 38px; height: 38px; background: rgba(255, 255, 255, 0.08); }
  .topbar .topbar__menu { width: auto; background: transparent; }
  .app-content { padding: var(--s-4) var(--s-4) var(--s-12); }
}
@media (max-width: 400px) {
  .topbar__brand .brand__word { display: none; }
}
.drawer-nav { display: grid; gap: 4px; }
.drawer-nav .side-nav__link { min-height: 48px; font-size: var(--fs-15); }

/* 7. Preview toolbar ======================================================================== */
.preview-bar {
  position: fixed; z-index: 95; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 4px; max-width: calc(100vw - 24px); padding: 5px;
  border-radius: var(--r-pill); background: rgba(7, 29, 56, 0.92); color: #fff; box-shadow: var(--sh-3);
  font-size: var(--fs-12); backdrop-filter: blur(8px);
}
.preview-bar__label { display: inline-flex; align-items: center; gap: 6px; padding: 0 10px 0 8px; font-weight: 700; color: var(--light-blue); border: 0; background: none; height: 28px; border-radius: var(--r-pill); }
.preview-bar__label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--light-blue); }
.preview-bar__states { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.preview-bar__states::-webkit-scrollbar { display: none; }
.preview-bar a {
  display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border-radius: var(--r-pill);
  color: var(--muted-on-navy); font-weight: 600; white-space: nowrap; text-decoration: none;
}
.preview-bar a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }
.preview-bar a[aria-current="true"] { background: #fff; color: var(--navy); }
.preview-bar.is-collapsed .preview-bar__states { display: none; }
@media (max-width: 768px) { .preview-bar { bottom: 8px; } .toasts { bottom: 64px; right: 16px; } }

/* 8. Utilities ============================================================================= */
.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; }
.caption { font-size: var(--fs-12); color: var(--muted); }
.mt-0 { margin-top: 0 !important; }
.text-center { text-align: center; }
.only-mobile { display: none !important; }
@media (max-width: 768px) {
  .only-mobile { display: revert !important; }
  .only-desktop { display: none !important; }
}

/* 9. Motion preferences ===================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 10. Human checks and the unavailable auth panel (components/captcha.js, DESIGN D21) ======== */
/* Honeypot: parked off-screen, never display:none. A script that skips hidden inputs still fills
   one merely outside the viewport; aria-hidden + tabindex="-1" in the markup keep it from people. */
.hp { position: absolute !important; left: -9999px !important; top: auto !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
/* A slot with a real check inside it drops the dashed placeholder look */
.captcha-slot--live { display: block; width: fit-content; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
.captcha-slot--live iframe { border-radius: var(--r-sm); }
/* The preview provider's local checkbox (no third-party script) */
.captcha-preview { align-items: center; padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--field); color: var(--text); font-weight: 500; }
.captcha-preview small { display: block; margin-top: 2px; font-size: var(--fs-12); font-weight: 400; color: var(--muted); }
/* Sign-in not switched on: the quiet placeholder, left-aligned beside its icon */
.auth-unavailable__box { grid-template-columns: auto 1fr; justify-items: start; align-items: start; min-height: 0; padding: var(--s-4); text-align: left; }
.auth-unavailable__box .i { color: var(--middle-blue); }
.auth-unavailable .auth__sub { margin-top: 0; }
