/* generated by make css — design tokens + kit styles + per-entity view.css. do not edit. */
/* --- modules/style/helpers.css --- */
/* modules/style/helpers.css
 *
 *  axis_tag: A/Layer/style/helpers
 *  A flat port of the React PoC's helpers.scss @mixin library. Each SCSS
 *  @mixin becomes a reusable BEM/utility class wired to the design tokens
 *  in tokens.css (never raw hex). Nested `&:hover` / `&--active` SCSS rules
 *  are expanded to real selectors. Grouped by category: cards / buttons /
 *  inputs / layout / status / effects / typography.
 *
 *  Bundled by `make css` (globs modules/style/*.css).
 *
 *  Skipped (pure SCSS machinery — parameterised, emit no fixed CSS so they
 *  can't flatten to a single class without losing their argument):
 *    @mixin deco-line($width)        — needs a per-call width
 *    @mixin deco-double-line($width) — wraps deco-line via ::before/::after
 *    @mixin inlo-grid($cols)         — column count is the argument; the
 *                                       common 2-col case ships as .inlo-grid
 *    @mixin avatar-bubble($size)     — size is the argument
 *  (focus-ring / hover-tint take optional args but have sensible token
 *   defaults, so they DO ship as classes using those defaults.)
 */

/* ============================================================ */
/* Typography                                                   */
/* ============================================================ */

/* from @mixin heading-style */
.heading-style {
  font-family: var(--heading-font);
  color: var(--text-color-heading);
  letter-spacing: 0.04em;
  font-weight: var(--weight-semibold);
}

/* from @mixin label-style */
.label-style {
  font-family: var(--primary-font);
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-color-hint);
}

/* ============================================================ */
/* Cards                                                        */
/* ============================================================ */

/* from @mixin card-base (legacy) */
.card-base {
  background-color: var(--card-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  transition:
    box-shadow var(--transition-normal),
    transform var(--transition-normal),
    border-color var(--transition-normal);
}

/* from @mixin card-hover (legacy) */
.card-hover:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
  border-color: var(--color-accent);
}

/* from @mixin inlo-card — canonical static card */
.inlo-card {
  background-color: var(--color-background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-tight);
  box-sizing: border-box;
  font-family: var(--primary-font);
  color: var(--text-color-primary);
  transition:
    box-shadow var(--transition-normal),
    transform var(--transition-normal),
    border-color var(--transition-normal);
}

/* from @mixin inlo-card-clickable */
.inlo-card--clickable {
  cursor: pointer;
}

.inlo-card--clickable:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

.inlo-card--clickable:active {
  transform: translateY(0);
}

.inlo-card--clickable:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* from @mixin inlo-card-minimal — visual only, host controls layout */
.inlo-card--minimal {
  background-color: var(--color-background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  padding: var(--space-md);
}

/* ============================================================ */
/* Buttons                                                      */
/* ============================================================ */

/* from @mixin button-base */
.btn {
  font-family: var(--primary-font);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--font-md);
  border: none;
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-lg);
  cursor: pointer;
  transition: all var(--transition-fast);
}

/* from @mixin button-primary */
.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), var(--color-primary-teal));
  color: var(--text-color-primary-inverse);
}

.btn--primary:hover {
  filter: brightness(1.15);
  box-shadow: var(--shadow-md);
}

/* from @mixin button-outlined */
.btn--outlined {
  background: transparent;
  color: var(--text-color-primary);
  border: 1px solid var(--border-color);
}

.btn--outlined:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

/* from @mixin button-gold */
.btn--gold {
  background: linear-gradient(
    135deg,
    var(--color-gold-dark),
    var(--color-gold),
    var(--color-gold-light)
  );
  color: var(--text-color-primary);
}

.btn--gold:hover {
  filter: brightness(1.15);
  box-shadow: var(--shadow-md);
}

/* ============================================================ */
/* Inputs                                                       */
/* ============================================================ */

/* from @mixin input-base */
.input {
  font-family: var(--primary-font);
  font-size: var(--font-base);
  background-color: var(--color-surface-raised);
  color: var(--text-color-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.input::placeholder {
  color: var(--text-color-hint);
}

.input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: none;
}

/* ============================================================ */
/* Layout                                                       */
/* ============================================================ */

/* from @mixin inlo-page — standard interior page root */
.inlo-page {
  position: absolute;
  top: var(--interior-heading-height);
  bottom: var(--space-md);
  left: var(--space-md);
  right: var(--space-md);
  padding: var(--space-md);
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  font-family: var(--primary-font);
  color: var(--text-color-primary);
  /* hide-scrollbar (see .hide-scrollbar) */
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.inlo-page::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* from @mixin inlo-grid (default 2 columns; $cols arg dropped) */
.inlo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-grid);
}

@media (max-width: 900px) {
  .inlo-grid {
    grid-template-columns: 1fr;
  }
}

/* from @mixin inlo-list */
.inlo-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-list);
}

/* from @mixin inlo-section — section card with labeled header bar */
.inlo-section {
  background-color: var(--color-background);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

/* from @mixin inlo-section-title */
.inlo-section__title {
  margin: 0;
  padding: var(--space-md) var(--space-lg);
  font-family: var(--heading-font);
  font-weight: var(--weight-semibold);
  font-size: var(--font-base);
  color: var(--text-color-heading);
  background-color: var(--color-surface-raised);
  border-bottom: 1px solid var(--border-color);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* from @mixin inlo-section-body */
.inlo-section__body {
  padding: var(--space-sm) var(--space-md);
}

.inlo-section__body .detail__molecule:not(:last-child) {
  border-bottom: 1px solid var(--border-color);
}

/* from @mixin inlo-section-label */
.inlo-section-label {
  font-family: var(--primary-font);
  font-size: var(--font-base);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-color-hint);
  margin: var(--space-sm) 0;
  padding-left: var(--space-xs);
}

/* from @mixin inlo-tab-bar — segmented tab bar */
.inlo-tab-bar {
  display: flex;
  justify-content: center;
  margin: 0 auto var(--space-md);
  border-radius: var(--radius-md);
  background-color: var(--color-surface-raised);
  border: 1px solid var(--border-color);
  padding: var(--space-xs);
  gap: var(--space-xs);
  max-width: 500px; /* off-grid, intentional tab bar max width */
}

/* from @mixin inlo-tab-button */
.inlo-tab-button {
  flex: 1;
  padding: var(--space-sm) var(--space-md);
  border: none;
  border-radius: var(--radius-sm);
  background-color: transparent;
  color: var(--text-color-hint);
  font-family: var(--primary-font);
  font-weight: var(--weight-semibold);
  font-size: var(--font-sm);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.inlo-tab-button:hover {
  color: var(--text-color-primary);
  background-color: var(--color-hover);
}

.inlo-tab-button.active,
.inlo-tab-button--active {
  color: var(--color-accent);
  background-color: var(--color-background);
  box-shadow: var(--shadow-sm);
}

/* from @mixin inlo-pill-bar — pill-outlined segmented bar */
.inlo-pill-bar {
  display: flex;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-pill);
  overflow: hidden;
  align-self: flex-start;
}

/* from @mixin inlo-pill-bar-btn */
.inlo-pill-bar-btn {
  padding: var(--space-xs) var(--space-md);
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--text-color-hint);
  font-family: var(--primary-font);
  font-size: var(--font-xs);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: all var(--transition-fast);
  text-transform: none;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.inlo-pill-bar-btn + .inlo-pill-bar-btn {
  border-left: 1px solid var(--border-color);
}

.inlo-pill-bar-btn:hover:not(.active) {
  background: var(--color-surface-raised);
  color: var(--text-color-primary);
}

.inlo-pill-bar-btn.active {
  background: var(--color-accent);
  color: var(--text-color-primary-inverse);
}

/* from @mixin flex-center */
.flex-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* from @mixin flex-between */
.flex-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* from @mixin flex-column */
.flex-column {
  display: flex;
  flex-direction: column;
}

/* from @mixin fill — absolute fill parent */
.fill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}

/* from @mixin overlay — fixed full-viewport overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: var(--z-overlay);
}

/* ============================================================ */
/* Status                                                       */
/* ============================================================ */

/* from @mixin inlo-status-badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px; /* off-grid, intentional tight badge gap */
  padding: 2px var(--space-sm); /* 2px off-grid for badge vertical pad */
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  width: fit-content;
  border: 1px solid transparent;
  font-family: var(--primary-font);
}

.status-badge svg {
  font-size: 6px; /* off-grid, intentional tiny status dot */
}

.status-badge--active,
.status-badge--success,
.status-badge--mutual {
  background: var(--color-success-bg);
  color: var(--color-success);
  border-color: var(--color-success-border);
}

.status-badge--inactive,
.status-badge--warning,
.status-badge--following {
  background: var(--color-warning-bg);
  color: var(--color-warning);
  border-color: var(--color-warning-border);
}

.status-badge--unknown {
  background: var(--color-surface-raised);
  color: var(--text-color-hint);
  border-color: var(--border-color);
}

.status-badge--error {
  background: var(--color-error-bg);
  color: var(--color-error);
  border-color: var(--color-error-border);
}

.status-badge--info,
.status-badge--follower {
  background: var(--color-info-bg);
  color: var(--color-info);
  border-color: var(--color-info-border);
}

/* ============================================================ */
/* Effects & interaction                                        */
/* ============================================================ */

/* from @mixin box-shadow */
.box-shadow {
  box-shadow: var(--shadow-md);
}

/* from @mixin box-shadow-elevated */
.box-shadow-elevated {
  box-shadow: var(--shadow-lg);
}

/* from @mixin focus-ring (default color + 2px offset) */
.focus-ring {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* from @mixin hover-tint (default hover bg + primary text) */
.hover-tint:hover {
  background-color: var(--color-hover);
  color: var(--text-color-primary);
}

/* from @mixin interactive */
.interactive {
  transition: all var(--transition-normal);
  cursor: pointer;
}

/* from @mixin clickable */
.clickable {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.clickable:active {
  transform: scale(0.98);
}

/* from @mixin disabled */
.disabled {
  cursor: not-allowed;
  opacity: 0.5;
  pointer-events: none;
}

/* from @mixin truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* from @mixin scrollable — hidden scrollbar */
.scrollable {
  overflow-y: auto;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollable::-webkit-scrollbar {
  display: none;
}

/* from @mixin scrollable-thin — thin visible track */
.scrollable-thin {
  overflow-y: auto;
  overflow-x: hidden;
}

.scrollable-thin::-webkit-scrollbar {
  width: 3px; /* off-grid, intentional thin track */
}

.scrollable-thin::-webkit-scrollbar-thumb {
  background: var(--border-color);
  border-radius: var(--radius-sm);
}

/* from @mixin hide-scrollbar — cross-browser scrollbar hide */
.hide-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.hide-scrollbar::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

/* --- modules/style/tokens.css --- */
/* modules/style/tokens.css
 *
 *  axis_tag: A/Layer/style/tokens
 *
 *  ARCHIVE THEME (2026-07-26). Retuned from the inherited inlo palette —
 *  a light SaaS blue/teal — to the archive's own look: a dark vitrine
 *  where the PHOTOGRAPHS are the only colour and every piece of chrome is
 *  a hairline.
 *
 *  Only the tokens the archive's screens actually consume are retuned.
 *  The ~250 floorplan / map / kiosk / role tokens below belong to the
 *  parent product's features and are left exactly as inherited: this
 *  archive never renders them, and rewriting values nothing reads would
 *  be churn that looks like work.
 *
 *  :root IS the dark theme here, not an override. The app adds
 *  body.dark-mode by default (boot.js), but a token file whose default
 *  is a theme nobody ships means every screenshot, print stylesheet and
 *  first paint before that class lands is the wrong colour.
 */

:root {
  /* ── the archive's own tokens ───────────────────── */
  /* One signal colour, used ONLY for active state, focus and progress.
   * Everything else is monochrome so photographs are never competing
   * with the interface for attention. Descended from the inherited
   * teal, pulled colder and more precise. */
  --signal: #4ff0c5;
  --signal-dim: rgba(79, 240, 197, 0.16);

  --canvas: #08090a; /* the room */
  --plinth: #0e1012; /* raised surfaces */
  --plinth-hi: #16191c; /* hover */
  --hairline: rgba(255, 255, 255, 0.09);
  --hairline-strong: rgba(255, 255, 255, 0.18);

  --ink: #f4f6f7;
  --ink-mid: #9aa3a9;
  --ink-dim: #5d666c;

  /* Tile geometry — shared by the grid and its virtualisation maths. */
  --tile: 168px;
  --tile-gap: 3px;

  /* ── brand / accent ─────────────────────────────── */
  --color-accent: #4ff0c5; /* Inlo blue (light — React primary-accent-light) */
  --color-primary-teal: #4ff0c5; /* Inlo teal — find-me, device markers */
  --color-secondary-teal: #4ff0c5; /* dark-mode accent */

  /* ── accent extras ──────────────────────────────── */
  --color-accent-light: rgba(79, 240, 197, 0.35);
  --color-ripple: #7ad0f5;

  /* ── surfaces ───────────────────────────────────── */
  --color-background: #08090a;
  --color-background-faded: #0e1012;
  --color-window-background: #08090a;
  --color-surface: #0e1012;
  --color-surface-raised: #16191c;
  --color-window-background-alt: #08090a; /* page content bg */
  --color-hover: #16191c;

  /* ── text ───────────────────────────────────────── */
  --text-color-primary: #9aa3a9;
  --text-color-secondary: #9aa3a9;
  --text-color-hint: #5d666c;
  --text-color-heading: #f4f6f7;
  --text-color-primary-inverse: #ffffff;
  --text-color-secondary-inverse: #f6f6f7;

  /* ── icons ──────────────────────────────────────── */
  --icon-color-primary: #9aa3a9;
  --icon-color-primary-inverse: #ffffff;

  /* ── lines / components ─────────────────────────── */
  --border-color: rgba(255, 255, 255, 0.09);
  --divider-color: rgba(255, 255, 255, 0.09);
  --card-color: #0e1012;
  --box-shadow-primary: 0 4px 16px rgba(0, 0, 0, 0.55);
  --box-shadow-primary-window: 0 18px 50px rgba(0, 0, 0, 0.65);

  /* ── primary / dark ─────────────────────────────── */
  --color-primary: #ffffff;
  --color-primary-dark: #161717;

  /* ── generic colors ─────────────────────────────── */
  --color-green: #95c600;
  --color-orange: #ff9b00;
  --color-app-icon-background: #116cd2;

  /* ── peach / decorative ─────────────────────────── */
  --color-gold: #ffcba4;
  --color-gold-light: #ffe0cb;
  --color-gold-dark: #e89f6e;
  --color-champagne: #fff1e5;
  --deco-line-color: rgba(255, 255, 255, 0.09);
  --deco-line-color-subtle: rgba(255, 255, 255, 0.05);
  --deco-border: rgba(255, 255, 255, 0.09);
  --deco-border-subtle: rgba(255, 255, 255, 0.05);

  /* ── markers (theme-independent) ────────────────── */
  --color-marker-site: #ffcba4;
  --color-marker-people: #137cf2;
  --color-marker-device: #00d0a7;
  --color-map-radius-primary: #00d0a7;
  --color-map-radius-editing: #ff6347;
  --color-map-radius-edit-fill: #ffdab9;
  --color-map-geofence-stroke: #ffcba4;
  --color-map-geofence-fill: #ffcba4;

  /* ── status (badges / alerts / indicators) ──────── */
  --color-success: var(--color-accent);
  --color-success-bg: rgba(0, 208, 167, 0.12);
  --color-success-border: rgba(0, 208, 167, 0.4);
  --color-success-text: #15803d;
  --color-success-solid: #16a34a;
  --color-warning: #f5a623;
  --color-warning-bg: rgba(245, 166, 35, 0.12);
  --color-warning-border: rgba(245, 166, 35, 0.4);
  --color-warning-text: #c2410c;
  --color-error: #ff5252;
  --color-error-bg: rgba(255, 68, 68, 0.12);
  --color-error-strong: #d92d20; /* solid error fill (destructive button) */
  --text-color-on-error: #ffffff; /* text/icon on a solid error fill */
  --color-error-border: rgba(255, 68, 68, 0.4);
  --color-error-text: #b91c1c;
  --color-info: var(--color-accent);
  --color-info-bg: rgba(19, 124, 242, 0.12);
  --color-info-border: rgba(19, 124, 242, 0.4);
  --color-info-text: #4338ca;
  --color-muted-text: #4b5563;
  --color-danger: var(--color-error);

  /* ── site role badge colors ─────────────────────── */
  --color-role-owner: #b48b32;
  --color-role-co-owner: #5a6fb0;
  --color-role-resident: #2e7d5f;
  --color-role-trusted: #7a5fb0;
  --color-role-guest: #888888;
  --color-role-employee: #2e7d5f;
  --color-role-customer: #7a5fb0;

  /* ── skeleton shimmer ───────────────────────────── */
  --skeleton-base: #101315;
  --skeleton-hi: #171b1e;

  /* ── overlays ───────────────────────────────────── */
  --color-overlay-strong: rgba(255, 255, 255, 0.7);
  --color-overlay-faint: rgba(255, 255, 255, 0.15);
  --color-overlay-soft: rgba(255, 255, 255, 0.25);
  --color-overlay-medium: rgba(255, 255, 255, 0.4);
  --color-overlay-deep: rgba(255, 255, 255, 0.6);
  --color-overlay-bright: rgba(255, 255, 255, 0.65);

  /* ── translucent surfaces / scrims ──────────────── */
  --color-scrim-strong: rgba(0, 0, 0, 0.85);
  --color-scrim-light: rgba(0, 0, 0, 0.3);
  --color-scrim-medium: rgba(0, 0, 0, 0.55);
  --color-scrim-deep: rgba(0, 0, 0, 0.75);
  --color-dialog-scrim: rgba(0, 0, 0, 0.78);

  /* ── white-glass overlays ───────────────────────── */
  --color-glass-faint: rgba(255, 255, 255, 0.06);
  --color-glass-light: rgba(255, 255, 255, 0.08);
  --color-glass-soft: rgba(255, 255, 255, 0.12);
  --color-glass-medium: rgba(255, 255, 255, 0.85);

  /* ── kiosk / kid sign-in (theme-independent) ────── */
  --color-kiosk-bg-start: #0a1929;
  --color-kiosk-bg-end: #162a44;
  --color-kid-bg-start: #ffd86b;
  --color-kid-bg-end: #ff8fcf;

  /* ── history-mode accent ────────────────────────── */
  --color-history-accent: #ff6347;
  --color-history-accent-glow: rgba(255, 99, 71, 0.85);
  --color-history-accent-soft: rgba(255, 99, 71, 0.18);
  --color-history-accent-medium: rgba(255, 99, 71, 0.3);
  --color-history-accent-strong: rgba(255, 99, 71, 0.5);
  --color-history-accent-shadow: rgba(255, 99, 71, 0.6);
  --color-history-accent-track: rgba(255, 99, 71, 0.4);
  --color-history-surface: rgba(20, 28, 40, 0.92);
  --color-history-surface-solid: #1a2230;
  --color-history-slider-track-rgb: 255, 99, 71;

  /* ── flow-tile category palette ─────────────────── */
  --color-flow-tile-blue: rgba(102, 153, 255, 0.18);
  --color-flow-tile-gray: rgba(156, 163, 175, 0.22);
  --color-flow-tile-indigo: rgba(99, 102, 241, 0.15);

  /* ── kelvin-slider gradient stops ───────────────── */
  --color-kelvin-warm: #ffd9a0;
  --color-kelvin-neutral: #ffffff;
  --color-kelvin-cool: #cce7ff;

  /* ── floor-plan Konva canvas (display) ──────────── */
  --color-floorplan-grid-bg: #fafafa;
  --color-floorplan-grid-line: #e0e0e0;
  --color-floorplan-room-fill: #f6f6f8;
  --color-floorplan-room-stroke: #666666;
  --color-floorplan-room-label: #ff3b30;
  --color-floorplan-anchor-fill: #666666;
  --color-floorplan-anchor-stroke: #333333;
  --color-floorplan-tag-fill: #0070ff;
  --color-floorplan-tag-label: #999999;

  /* ── floor-plan Konva canvas (editor only) ──────── */
  --color-floorplan-grid-bg-alt: #ffffff;
  --color-floorplan-room-selected: #0070ff;
  --color-floorplan-room-selected-fill: rgba(0, 112, 255, 0.08);
  --color-floorplan-room-movable: #ff6b35;
  --color-floorplan-room-movable-fill: rgba(255, 107, 53, 0.08);
  --color-floorplan-room-default-fill: rgba(255, 255, 255, 0.85);
  --color-floorplan-room-label-default: #333333;
  --color-floorplan-dim-label: #0070ff;
  --color-floorplan-device-fill: #0070ff;
  --color-floorplan-device-stroke: #ffffff;
  --color-floorplan-placement-preview: #0070ff;

  /* ── floor-plan legacy aliases ──────────────────── */
  --color-floorplan-room-fill-legacy: #f6f6f8;
  --color-floorplan-room-stroke-legacy: #666666;
  --color-floorplan-grid-line-legacy: #d3d3d3;
  --color-floorplan-grid-line-bright: #77e6d5;
  --color-floorplan-stage-border: #d3d3d3;
  --color-floorplan-room-accent: rgb(48, 211, 186);
  --color-annotation-bg: #ffffff;

  /* ── lighting preference defaults ───────────────── */
  --color-preference-lighting-warm: #fff8e1;
  --color-preference-lighting-white-default: #ffffff;

  /* ── typography ─────────────────────────────────── */
  --primary-font: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  --heading-font: "Schibsted Grotesk", ui-sans-serif, sans-serif;
  --font-xs: 0.75rem; /* 12 */
  --font-sm: 0.875rem; /* 14 */
  --font-base: 1rem; /* 16 */
  --font-md: 1rem; /* 16 */
  --font-lg: 1.125rem; /* 18 */
  --font-xl: 1.5rem; /* 24 */
  --font-xxl: 2rem; /* 32 */
  --font-display: "Chivo Mono", ui-monospace, monospace; /* 40 */
  --weight-light: 300;
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-extrabold: 800;
  --line-height-tight: 1.2;
  --line-height-body: 1.5;

  /* ── spacing (8pt grid) ─────────────────────────── */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-xxl: 48px;
  --space-2xs: 2px;
  --space-tight: var(--space-xs);
  --space-list: 12px;
  --space-card: 16px;
  --space-grid: 16px;
  --space-section: 32px;
  /* numbered scale — what the layout primitives (<Stack gap="3">) read;
     aliases the named 8pt grid above so both stay in sync. */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;

  /* ── radius ─────────────────────────────────────── */
  --radius-sm: 3px;
  --radius-md: 5px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-pill: 9999px;

  /* ── z-index scale (overlays/popovers/tooltips) ─── */
  --z-base: 1;
  --z-nav: 500;
  --z-dropdown: 1000;
  --z-overlay: 2000;
  --z-modal: 3000;
  --z-popover: 3500;
  --z-toast: 3700;
  --z-tooltip: 4000;
  --color-scrim: rgba(0, 0, 0, 0.72); /* modal backdrop */

  /* ── shadows ────────────────────────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.6);
  --shadow-card: none;
  --shadow-card-hover: none;
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 18px 50px rgba(0, 0, 0, 0.65);
  --shadow-xl: 0 30px 90px rgba(0, 0, 0, 0.7);
  --shadow-inset: inset 0 0 5px rgba(0, 0, 0, 0.08);

  /* ── layout dims ────────────────────────────────── */
  --nav-width: 200px;
  --msg-panel-width: 85px;
  --panel-width: 280px;
  --nav-height: 50px;
  --drawer-width: 600px;
  --interior-heading-height: 60px;
  /* container max-widths — centered reading/form columns (kill copied max-width:32rem) */
  --container-sm: 32rem;
  --container-md: 48rem;
  --container-lg: 64rem;
  /* breakpoints — the SINGLE source of truth. CSS @media can't read a var, so the
     layout primitives + shell mirror these exact values; nothing else defines a
     breakpoint (React's pain was ad-hoc 600/768/900/1280px scattered everywhere). */
  --bp-sm: 40rem; /* 640px — phone → tablet */
  --bp-md: 60rem; /* 960px — tablet → desktop */
  --bp-lg: 80rem; /* 1280px — wide */
  --map-height-sm: 250px;
  --map-height-md: 300px;
  --map-height-lg: 350px;
  --avatar-sm: 24px;
  --avatar-md: 36px;
  --avatar-lg: 44px;
  --avatar-xl: 56px;
  --avatar-xxl: 100px;
  --icon-xs: 20px;
  --icon-sm: 28px;
  --icon-md: 36px;
  --icon-lg: 44px;
  --icon-xl: 56px;
  --card-width: 200px;
  --card-height: 200px;
  --img-sm: 100px;
  --img-md: 150px;
  --img-lg: 175px;
  --input-height: 36px;
  --button-height: 32px;

  /* ── transitions ────────────────────────────────── */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.5s ease;
}

body.dark-mode {
  /* ── accent ─────────────────────────────────────── */
  --color-accent: #02b995;
  --color-accent-light: #c6f2cd50;
  --color-ripple: #00d0a7;

  /* ── surfaces ───────────────────────────────────── */
  --color-background: #161717;
  --color-background-faded: #282929;
  --color-window-background: #282929;
  --color-surface: #1d1e1e;
  --color-surface-raised: #282929;
  --color-window-background-alt: #282929;
  --color-hover: #282929;

  /* ── text ───────────────────────────────────────── */
  --text-color-primary: #ffffff;
  --text-color-secondary: #f6f6f7;
  --text-color-primary-inverse: #242424;
  --text-color-secondary-inverse: #504f4f;
  --text-color-heading: #ffffff;

  /* ── icons ──────────────────────────────────────── */
  --icon-color-primary: #ffffff;
  --icon-color-primary-inverse: #242424;

  /* ── components ─────────────────────────────────── */
  --divider-color: #717070;
  --border-color: #504f4f;
  --card-color: #1d1e1e;
  --box-shadow-primary: rgba(255, 255, 255, 0.1);
  --box-shadow-primary-window: rgba(0, 0, 0, 1);

  /* ── primary / dark ─────────────────────────────── */
  --color-primary: #161717;
  --color-primary-dark: #161717;

  /* ── peach / decorative ─────────────────────────── */
  --color-gold: #ffe0cb;
  --color-gold-light: #fff1e5;
  --color-gold-dark: #ffcba4;
  --color-champagne: rgba(247, 231, 206, 0.1);
  --deco-line-color: #ffcba4;
  --deco-line-color-subtle: rgba(201, 168, 76, 0.25);
  --deco-border: 1px solid #ffcba4;
  --deco-border-subtle: 1px solid rgba(201, 168, 76, 0.15);

  /* ── shadows — deeper on dark ───────────────────── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.5), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.55);
  --shadow-inset: inset 0 0 5px rgba(0, 0, 0, 0.3);

  /* ── skeleton ───────────────────────────────────── */
  --skeleton-base: #2a2b2c;
  --skeleton-hi: #3a3b3c;

  /* ── status badge label colors (dark variants) ──── */
  --color-success-text: #4ade80;
  --color-warning-text: #fb923c;
  --color-error-text: #f87171;
  --color-info-text: #60a5fa;
  --color-muted-text: #9ca3af;

  /* ── floor-plan Konva canvas (display, dark) ────── */
  --color-floorplan-grid-bg: #1d1e1e;
  --color-floorplan-grid-line: #2f3030;
  --color-floorplan-room-fill: #282929;
  --color-floorplan-room-stroke: #6b6c6c;
  --color-floorplan-room-label: #ff6b6b;
  --color-floorplan-anchor-fill: #b0b1b1;
  --color-floorplan-anchor-stroke: #e0e0e0;
  --color-floorplan-tag-fill: #4a9dff;
  --color-floorplan-tag-label: #b0b1b1;

  /* ── floor-plan Konva canvas (editor, dark) ─────── */
  --color-floorplan-grid-bg-alt: #232424;
  --color-floorplan-room-selected: #4a9dff;
  --color-floorplan-room-selected-fill: rgba(74, 157, 255, 0.16);
  --color-floorplan-room-movable: #ff6b35;
  --color-floorplan-room-movable-fill: rgba(255, 107, 53, 0.16);
  --color-floorplan-room-default-fill: rgba(40, 41, 41, 0.85);
  --color-floorplan-room-label-default: #f6f6f7;
  --color-floorplan-dim-label: #4a9dff;
  --color-floorplan-device-fill: #4a9dff;
  --color-floorplan-device-stroke: #1d1e1e;
  --color-floorplan-placement-preview: #4a9dff;

  /* ── floor-plan legacy (dark) ───────────────────── */
  --color-floorplan-room-fill-legacy: #282929;
  --color-floorplan-room-stroke-legacy: #6b6c6c;
  --color-floorplan-grid-line-legacy: #2f3030;
  --color-floorplan-grid-line-bright: #2f9b8a;
  --color-floorplan-stage-border: #3a3b3b;

  /* media (feed lightbox / gallery — PoC colors.scss parity) */
  --color-on-media: #ffffff; /* text + icons over media / scrim */
  --color-media-backdrop: #000000; /* black behind contained media in the lightbox */
}

/* base reset — the PoC ships a reset; this is the minimum the screens need */
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--primary-font);
  font-size: var(--font-base);
  color: var(--text-color-primary);
  background: var(--color-background);
  -webkit-font-smoothing: antialiased;
}
#app {
  min-height: 100vh;
}

/* --- modules/style/ui.css --- */
/* modules/style/ui.css
 *
 *  The headless-UI kit's presentation (modules/ui/*). The behavior lives in JS;
 *  this is the BEM-classed look, wired to the design tokens. Class names match
 *  the React PoC's Radix wrappers (ui-dialog__*, ui-popover__*, ui-menu__*,
 *  ui-tabs__*, ui-tooltip__*) so ported screens reference the same names.
 *  Bundled by `make css` (globs modules/style/*.css).
 */

/* ── visually hidden (accessible, off-screen) ───────────────────── */
.ui-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── dialog (modal) ─────────────────────────────────────────────── */
.ui-dialog__overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: var(--color-scrim);
}

.ui-dialog__content {
  background: var(--color-surface);
  color: var(--text-color-primary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: var(--space-lg);
  max-width: 32rem;
  width: 100%;
  max-height: calc(100vh - var(--space-xl));
  overflow: auto;
}

.ui-dialog__title {
  margin: 0 0 var(--space-sm);
  font-size: var(--font-xl);
  color: var(--text-color-heading);
}

.ui-dialog__description {
  margin: 0 0 var(--space-md);
  color: var(--text-color-secondary);
  font-size: var(--font-sm);
}

.ui-dialog__close {
  display: inline-flex;
}

/* ── popover (anchored, non-modal) ──────────────────────────────── */
.ui-popover__content {
  z-index: var(--z-popover);
  background: var(--color-surface);
  color: var(--text-color-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-md);
  min-width: 12rem;
}

/* ── menu (dropdown) ────────────────────────────────────────────── */
.ui-menu__content {
  z-index: var(--z-dropdown);
  background: var(--color-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-xs);
  min-width: 11rem;
}

.ui-menu__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-size: var(--font-sm);
  color: var(--text-color-primary);
  cursor: pointer;
  user-select: none;
}

.ui-menu__item:hover,
.ui-menu__item:focus,
.ui-menu__item[tabindex="0"] {
  background: var(--color-hover);
  outline: none;
}

.ui-menu__separator {
  height: 1px;
  margin: var(--space-xs) 0;
  background: var(--border-color);
}

/* ── tabs ───────────────────────────────────────────────────────── */
.ui-tabs__list {
  display: flex;
  gap: var(--space-xs);
  border-bottom: 1px solid var(--border-color);
}

.ui-tabs__trigger {
  appearance: none;
  background: transparent;
  border: 0;
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-sm);
  color: var(--text-color-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
}

.ui-tabs__trigger[data-state="active"] {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
}

.ui-tabs__content {
  padding: var(--space-md) 0;
}

/* ── tooltip ────────────────────────────────────────────────────── */
.ui-tooltip__content {
  z-index: var(--z-tooltip);
  background: var(--text-color-heading);
  color: var(--text-color-primary-inverse);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: var(--font-xs);
  max-width: 16rem;
  pointer-events: none;
}

.ui-tooltip__arrow {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--text-color-heading);
  transform: rotate(45deg);
}


/* --- src/_shared/ui/buttons/view.css --- */
/* src/_shared/ui/buttons/view.css
 *
 * Button variants + sizes (the .btn base lives in modules/style/helpers.css) and
 * the link styles. Token-wired; bundled by `make css`.
 */

/* sizes */
.btn--small {
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--font-xs);
}
.btn--medium {
  padding: var(--space-sm) var(--space-md);
  font-size: var(--font-sm);
}
.btn--large {
  padding: var(--space-md) var(--space-lg);
  font-size: var(--font-base);
}

/* solid variants */
.btn--primary {
  background: var(--color-accent);
  color: var(--text-color-primary-inverse);
  border: 1px solid var(--color-accent);
}
.btn--danger {
  background: var(--color-error);
  color: var(--text-color-primary-inverse);
  border: 1px solid var(--color-error);
}
.btn--success {
  background: var(--color-success-solid);
  color: var(--text-color-primary-inverse);
  border: 1px solid var(--color-success-solid);
}

/* outlined variants */
.btn--primary-outlined {
  background: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}
.btn--danger-outlined {
  background: transparent;
  color: var(--color-error);
  border: 1px solid var(--color-error);
}
.btn--success-outlined {
  background: transparent;
  color: var(--color-success-solid);
  border: 1px solid var(--color-success-solid);
}

/* disabled */
.btn--disabled,
.btn--disabled-outlined,
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.btn--disabled-outlined {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-color-hint);
}

/* link */
.ui-link {
  color: var(--color-accent);
  text-decoration: none;
  cursor: pointer;
}
.ui-link:hover {
  text-decoration: underline;
}
.ui-link--button {
  display: inline-flex;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  background: var(--color-accent);
  color: var(--text-color-primary-inverse);
}
.ui-link--button:hover {
  text-decoration: none;
}

/* --- src/_shared/ui/cards/view.css --- */
/* src/_shared/ui/cards/view.css
 *
 * The cards group's own styles: the CardActsBlock footer row + the CardKebabMenu
 * trigger. The card body / clickable affordance + the page container come from
 * the .inlo-card / .inlo-page mixins in modules/style/helpers.css. Token-wired;
 * bundled by `make css`.
 */

/* CardActsBlock — a footer row of action buttons in a card */
.ui-card-acts {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
}

/* CardKebabMenu — the three-dot overflow trigger */
.ui-card-kebab__btn {
  width: 28px; /* off-grid, intentional round hit-target */
  height: 28px;
  border-radius: var(--radius-pill);
  border: none;
  background: transparent;
  color: var(--text-color-hint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-base);
  line-height: 1;
  transition: all var(--transition-fast);
}

.ui-card-kebab__btn:hover {
  background-color: var(--color-hover);
  color: var(--text-color-primary);
}

/* the portaled dropdown content (anchored to the trigger by the Menu) */
.ui-card-kebab__content {
  min-width: 140px; /* off-grid, intentional menu min-width */
}

/* --- src/_shared/ui/datastate/view.css --- */
/* src/_shared/ui/datastate/view.css
 *
 * datastate renders via the feedback group; no own styles.
 */

/* --- src/_shared/ui/feedback/view.css --- */
/* src/_shared/ui/feedback/view.css
 *
 * The feedback group: spinner (ring + sizes), skeleton (shimmer + variants),
 * skeletons-block, empty-state, error-card. Token-wired; bundled by `make css`.
 */

/* ── spinner (CSS-animated ring) ─────────────────── */
.ui-spinner {
  display: inline-block;
  position: relative;
}
.ui-spinner span {
  box-sizing: border-box;
  display: block;
  position: absolute;
  border-radius: 50%;
  animation: ui-spinner-rotate 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  border: 0.5em solid var(--color-accent);
  border-color: var(--color-accent) transparent transparent transparent;
}
.ui-spinner span:nth-child(1) {
  animation-delay: -0.45s;
}
.ui-spinner span:nth-child(2) {
  animation-delay: -0.3s;
}
.ui-spinner span:nth-child(3) {
  animation-delay: -0.15s;
}

.ui-spinner--small {
  width: var(--input-height);
  height: var(--input-height);
}
.ui-spinner--small span {
  width: 12px;
  height: 12px;
  border-width: 0.1em;
}

.ui-spinner--medium {
  width: 80px;
  height: 80px;
}
.ui-spinner--medium span {
  width: 64px;
  height: 64px;
  border-width: 0.5em;
}

.ui-spinner--large {
  width: 160px;
  height: 160px;
}
.ui-spinner--large span {
  width: 128px;
  height: 128px;
  border-width: 0.8em;
}

@keyframes ui-spinner-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* ── skeleton (two-tone shimmer sweep) ───────────── */
.ui-skeleton {
  display: block;
  background-color: var(--skeleton-base);
  background-image: linear-gradient(
    90deg,
    var(--skeleton-base) 0%,
    var(--skeleton-hi) 50%,
    var(--skeleton-base) 100%
  );
  background-size: 200% 100%;
  background-repeat: no-repeat;
  animation: ui-skeleton-shimmer 1.4s ease-in-out infinite;
  will-change: background-position;
}

.ui-skeleton--text {
  width: 100%;
  height: 14px;
  border-radius: var(--radius-sm);
}
.ui-skeleton--avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
}
.ui-skeleton--card {
  width: 100%;
  height: 120px;
  border-radius: var(--radius-lg);
}
.ui-skeleton--row {
  width: 100%;
  height: 56px;
  border-radius: var(--radius-md);
}
.ui-skeleton--pill {
  width: 80px;
  height: 24px;
  border-radius: var(--radius-pill);
}

.ui-skeleton-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}
.ui-skeleton-stack--inline {
  flex-direction: row;
  align-items: center;
  width: auto;
}

@keyframes ui-skeleton-shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ui-spinner span,
  .ui-skeleton {
    animation-duration: 0s;
    animation-iteration-count: 1;
  }
}

/* ── skeletons-block (stacked rows) ──────────────── */
.ui-skeletons-block {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  width: 100%;
}

/* ── empty-state ─────────────────────────────────── */
.ui-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: var(--space-xxl) var(--space-md);
}
.ui-empty-state__icon {
  font-size: 32px;
  color: var(--color-accent);
  opacity: 0.5;
  margin-bottom: var(--space-md);
}
.ui-empty-state__message {
  font-size: var(--font-md);
  color: var(--text-color-hint);
  max-width: 420px;
  line-height: var(--line-height-body);
  margin-bottom: var(--space-md);
}
.ui-empty-state__cta {
  margin-top: var(--space-sm);
}

/* ── error-card ──────────────────────────────────── */
.ui-error-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-lg) var(--space-md);
  border: 1px solid var(--color-error-border);
  border-radius: var(--radius-lg);
  background: var(--color-error-bg);
}
.ui-error-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-sm);
  height: var(--icon-sm);
  border-radius: var(--radius-pill);
  background: var(--color-error);
  color: var(--text-color-primary-inverse);
  font-weight: var(--weight-bold);
}
.ui-error-card__message {
  font-size: var(--font-sm);
  color: var(--color-error-text);
  max-width: 420px;
  line-height: var(--line-height-body);
}
.ui-error-card__retry {
  margin-top: var(--space-xs);
}

/* --- src/_shared/ui/inputs/view.css --- */
/* src/_shared/ui/inputs/view.css
 *
 * The inputs group: TextInput / CheckBoxInput / Select / FileInput. The shared
 * `.input` base (border/padding/focus) lives in modules/style/helpers.css — this
 * file only adds what that base doesn't cover: the wrapper spacing, the error
 * text, the checkbox layout, the select chevron, and the file-picker button.
 * Token-wired; bundled by `make css`.
 */

/* TextInput wrapper */
.ui-input {
  margin: var(--space-sm) 0;
}
.ui-input .input {
  width: 100%;
  box-sizing: border-box;
}

/* error slot (shared by TextInput + CheckBoxInput) */
.ui-input__error {
  margin-top: var(--space-xs);
  color: var(--color-error);
  font-size: var(--font-sm);
}

/* CheckBoxInput layout */
.ui-checkbox {
  margin: var(--space-sm) 0;
  display: flex;
  flex-direction: column;
}
.ui-checkbox label {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  cursor: pointer;
}
.ui-checkbox__box {
  cursor: pointer;
}
.ui-checkbox__label {
  font-size: var(--font-sm);
  color: var(--text-color-primary);
}

/* Select chevron — custom dropdown arrow via encoded SVG */
.ui-select {
  width: 100%;
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23999' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-sm) center;
  padding-right: calc(var(--space-sm) * 2 + 12px);
}
.ui-select:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* FileInput — styled trigger button */
.ui-file__trigger {
  font-family: var(--primary-font);
  background: var(--color-surface-raised);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
  color: var(--text-color-primary);
  cursor: pointer;
  transition: border-color var(--transition-fast);
}
.ui-file__trigger:hover {
  border-color: var(--color-accent);
}

/* --- src/_shared/ui/layout/view.css --- */
/* src/_shared/ui/layout/view.css
 *
 * Skin for the page-scaffold primitives (Page/PageHeader/PageBody/Section/Split/
 * Container). Geometry lives in the primitives (or the geometry-primitive inline
 * styles); this file is color/border/spacing/type only, every value a token.
 *
 * RESPONSIVE lives HERE (and in _shell/view.css) and NOWHERE else — screens never
 * write @media. Media queries can't read a CSS var, so the px mirror the
 * --bp-* tokens in tokens.css: --bp-sm = 40rem, --bp-md = 60rem. */

/* ── PageBody: the section-gapped content column ─────────────────── */
.ui-page-body {
  display: flex;
  flex-direction: column;
  gap: var(--space-section);
}

/* ── PageHeader: the title row (title left, actions right) ───────── */
.ui-pagehead {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}

.ui-pagehead__back {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0 var(--space-xs);
  font-size: var(--font-lg);
  color: var(--text-color-secondary);
  cursor: pointer;
}

.ui-pagehead__title {
  margin: 0;
  font-family: var(--heading-font);
  font-size: var(--font-xl);
  font-weight: var(--weight-bold);
  color: var(--text-color-heading);
}

/* actions slot pushes to the right of the title */
.ui-pagehead__actions {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}

/* ── Section: labeled content block ──────────────────────────────── */
.ui-section {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.ui-section__title {
  margin: 0;
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-color-hint);
}

/* ── Split: two-column main + fixed rail; stacks below --bp-md ───── */
.ui-split {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.ui-split__main {
  flex: 1 1 auto;
  min-width: 0;
}

.ui-split__rail {
  flex: 0 0 var(--panel-width);
}

@media (max-width: 60rem) {
  .ui-split {
    flex-direction: column;
  }

  .ui-split__rail {
    flex-basis: auto;
    width: 100%;
  }
}

/* ── Container: centered max-width column ────────────────────────── */
.ui-container {
  width: 100%;
  margin-inline: auto;
}

.ui-container--sm {
  max-width: var(--container-sm);
}

.ui-container--md {
  max-width: var(--container-md);
}

.ui-container--lg {
  max-width: var(--container-lg);
}

/* --- src/_shared/ui/media/view.css --- */
/* src/_shared/ui/media/view.css — Avatar (round image with an initial fallback). */
.avatar {
  position: relative;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--text-color-primary-inverse);
  font-weight: 600;
}
.avatar--sm {
  width: 28px;
  height: 28px;
  font-size: 0.8rem;
}
.avatar--lg {
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
}
.avatar__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- src/_shared/ui/nav/view.css --- */
/* src/_shared/ui/nav/view.css
 *
 * The nav group: interior-page heading/header layout + logo sizing. Spacer is
 * inline-styled (the only CSS it needs is covered by its inline width/height),
 * and SubMenu rides the shared .inlo-tab-bar / .inlo-tab-button classes from
 * modules/style/helpers.css. Token-wired; bundled by `make css`.
 */

/* ── InteriorPageHeadingWithCta ─────────────────────────── */
.ui-page-heading {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.ui-page-heading__title {
  margin: 0;
  font-family: var(--heading-font);
  font-weight: var(--weight-semibold);
  font-size: var(--font-xl);
  color: var(--text-color-heading);
}
.ui-page-heading__cta {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-left: auto;
}

/* ── InteriorPageHeaderWithMenu ─────────────────────────── */
.ui-page-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-bottom: var(--space-sm);
}
.ui-page-header__title {
  margin: 0;
  flex: 1;
  text-align: center;
  font-family: var(--heading-font);
  font-weight: var(--weight-semibold);
  font-size: var(--font-lg);
  color: var(--text-color-heading);
}
.ui-page-header__menu {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}
.ui-page-header__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--icon-sm);
  height: var(--icon-sm);
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--icon-color-primary);
  font-size: var(--font-lg);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}
.ui-page-header__btn:hover {
  background-color: var(--color-hover);
}

/* ── InloLogo ───────────────────────────────────────────── */
.ui-logo {
  display: block;
  object-fit: contain;
}
.ui-logo--sm {
  height: 32px;
}
.ui-logo--md {
  height: 54px;
}
.ui-logo--lg {
  height: 72px;
}

/* --- src/_shared/ui/text/view.css --- */
/* src/_shared/ui/text/view.css
 *
 * The text group: Text variants (typography atom), Detail (label/value row), and
 * LabeledControl (label + control wrapper). The status badge classes already
 * ship in modules/style/helpers.css (.status-badge + .status-badge--*), so this
 * file only adds what helpers.css doesn't. Token-wired; bundled by `make css`.
 */

/* ── Text ─────────────────────────────────────────────────────── */

.ui-text {
  font-family: var(--primary-font);
  color: var(--text-color-primary);
  margin: 0;
}

/* variants */
.ui-text--body {
  font-size: var(--font-base);
  line-height: var(--line-height-body);
}
.ui-text--body-small {
  font-size: var(--font-sm);
  line-height: var(--line-height-body);
}
.ui-text--body-large {
  font-size: var(--font-lg);
  line-height: var(--line-height-body);
}
.ui-text--caption {
  font-size: var(--font-xs);
  color: var(--text-color-hint);
}
.ui-text--label {
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-color-hint);
}
.ui-text--heading {
  font-family: var(--heading-font);
  color: var(--text-color-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--font-xl);
  line-height: var(--line-height-tight);
}
.ui-text--sub-heading {
  font-family: var(--heading-font);
  color: var(--text-color-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--font-lg);
  line-height: var(--line-height-tight);
}
.ui-text--page-heading {
  font-family: var(--heading-font);
  color: var(--text-color-heading);
  font-weight: var(--weight-semibold);
  font-size: var(--font-xxl);
  letter-spacing: 0.04em;
  line-height: var(--line-height-tight);
}

/* size overrides */
.ui-text--size-xs {
  font-size: var(--font-xs);
}
.ui-text--size-sm {
  font-size: var(--font-sm);
}
.ui-text--size-base {
  font-size: var(--font-base);
}
.ui-text--size-lg {
  font-size: var(--font-lg);
}
.ui-text--size-xl {
  font-size: var(--font-xl);
}
.ui-text--size-xxl {
  font-size: var(--font-xxl);
}

/* color overrides */
.ui-text--color-primary {
  color: var(--text-color-primary);
}
.ui-text--color-hint {
  color: var(--text-color-hint);
}
.ui-text--color-heading {
  color: var(--text-color-heading);
}
.ui-text--color-accent {
  color: var(--color-accent);
}
.ui-text--color-error {
  color: var(--color-error);
}
.ui-text--color-inverse {
  color: var(--text-color-primary-inverse);
}

/* weight overrides */
.ui-text--weight-light {
  font-weight: var(--weight-light);
}
.ui-text--weight-regular {
  font-weight: var(--weight-regular);
}
.ui-text--weight-medium {
  font-weight: var(--weight-medium);
}
.ui-text--weight-semibold {
  font-weight: var(--weight-semibold);
}
.ui-text--weight-bold {
  font-weight: var(--weight-bold);
}

/* ── Detail (label / value row) ───────────────────────────────── */

.ui-detail {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-sm);
  border-bottom: 1px solid var(--border-color);
}
.ui-detail__label {
  flex: 0 0 20%;
  min-width: 0;
  color: var(--text-color-hint);
  font-size: var(--font-sm);
  font-weight: var(--weight-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ui-detail__value {
  flex: 1;
  min-width: 0;
  color: var(--text-color-primary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* ── LabeledControl (label + control wrapper) ─────────────────── */

.ui-labeled-control {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  margin: var(--space-list) 0;
}
.ui-labeled-control__label {
  font-size: var(--font-sm);
  color: var(--text-color-hint);
}

/* --- src/_shell/view.css --- */
/* src/_shell/view.css — the archive's chrome.
 *
 *  axis_tag: K/Topology/_shell/view
 *
 *  One hairline bar, 52px tall, and nothing else. This file replaced ~350
 *  lines of inherited chrome (side-nav, chat rail, drawer, feed/chat/
 *  notification list primitives) that styled destinations this archive
 *  does not have. See shell.jsx for why they went wholesale.
 */

.shell {
  min-height: 100vh;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--primary-font);
  -webkit-font-smoothing: antialiased;
}

/* ── the bar ─────────────────────────────────────── */

.bar {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 52px;
  padding: 0 18px;
  border-bottom: 1px solid var(--hairline);
  /* Translucent so photographs scrolling under it stay faintly legible —
   * the archive reads as one continuous surface, not a page with a lid. */
  background: rgba(8, 9, 10, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
}

.bar__mark {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--ink-mid);
  user-select: none;
}

/* The only ornament in the whole interface: a slow pulse, so the archive
 * reads as something running rather than a static page. */
.bar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 10px var(--signal);
  animation: bar-pulse 4s ease-in-out infinite;
}

@keyframes bar-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

/* ── destinations ────────────────────────────────── */

.bar__dest {
  display: flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: var(--plinth);
}

.dest {
  padding: 6px 18px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--primary-font);
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    background var(--transition-fast);
}

.dest:hover {
  color: var(--ink);
}

.dest--on {
  background: var(--plinth-hi);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--hairline);
}

.bar__out {
  justify-self: end;
  border: 0;
  background: none;
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.bar__out:hover {
  color: var(--ink);
}

.shell__main {
  min-height: calc(100vh - 52px);
}

/* Focus is visible everywhere and is the signal colour — one of only
 * three places colour appears at all (with active state and progress). */
.shell :is(button, a, input, [tabindex]):focus-visible {
  outline: 1px solid var(--signal);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .bar__dot {
    animation: none;
  }
}

/* --- src/auth/view.css --- */
/* src/auth/view.css
 *
 *  axis_tag: K/Topology/auth/view
 *  Sign-in screen styles — faithful port of the React PoC's AuthShell.scss
 *  (split-pane 60/40, serif title with accent underline, 44px inputs with
 *  focus glow, 48px ENTER INLO button). Tokens come from style/tokens.css.
 */

.auth-shell {
  display: flex;
  min-height: 100vh;
  background-color: var(--color-background);
  font-family: var(--primary-font);
}

.auth-shell__left {
  flex: 6;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-background);
}

.auth-shell__right {
  flex: 4;
  background-color: var(--color-surface-raised);
}

.logo {
  position: absolute;
  top: var(--space-xl);
  left: var(--space-xl);
}
.logo__img {
  display: block;
  width: 114px;
  height: 54px;
  max-width: none;
}

.auth-shell__top-right {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  font-size: var(--font-sm);
  color: var(--text-color-secondary);
}
.auth-shell__top-right a {
  color: var(--color-accent);
  font-weight: var(--weight-semibold);
  text-decoration: none;
}
.auth-shell__top-right a:hover {
  text-decoration: underline;
}

.auth-shell__form {
  width: 100%;
  max-width: 420px;
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.auth-shell__title {
  font-family: var(--heading-font);
  font-weight: var(--weight-semibold);
  font-size: var(--font-xxl);
  line-height: 1.2;
  color: var(--text-color-heading);
  margin: 0;
  position: relative;
  display: inline-block;
}
.auth-shell__title::after {
  content: "";
  display: block;
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin-top: var(--space-sm);
  border-radius: 2px;
}

.auth-shell__form form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.text-input {
  width: 100%;
  height: 44px;
  padding: 0 var(--space-md);
  font-family: var(--primary-font);
  font-size: var(--font-base);
  background-color: var(--color-surface-raised);
  color: var(--text-color-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}
.text-input::placeholder {
  color: var(--text-color-hint);
}
.text-input:hover:not(:focus) {
  border-color: var(--text-color-hint);
}
.text-input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 22%, transparent);
}

.password-field-wrapper {
  position: relative;
}
.password-toggle-icon {
  position: absolute;
  right: var(--space-md);
  top: 22px;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-color-hint);
  z-index: 1;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  line-height: 1;
  transition: color var(--transition-fast);
}
.password-toggle-icon:hover {
  color: var(--color-accent);
}

.forgot-password {
  margin: calc(-1 * var(--space-sm)) 0 0;
  font-size: var(--font-sm);
  color: var(--text-color-hint);
}
.forgot-password a {
  color: var(--color-accent);
  text-decoration: none;
}
.forgot-password a:hover {
  text-decoration: underline;
}

.auth-shell__form .button {
  width: 100%;
  height: 48px;
  margin-top: var(--space-lg);
  padding: 0 var(--space-lg);
  background: var(--color-accent);
  color: var(--text-color-primary-inverse);
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--primary-font);
  font-weight: var(--weight-semibold);
  font-size: var(--font-md);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    filter var(--transition-fast),
    transform var(--transition-fast);
}
.auth-shell__form .button:hover:not(:disabled) {
  filter: brightness(1.08);
}
.auth-shell__form .button:active:not(:disabled) {
  transform: translateY(1px);
}
.auth-shell__form .button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.auth-shell__version {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  padding: var(--space-sm);
  font-size: var(--font-xs);
  color: var(--text-color-hint);
}

.auth-shell .error {
  margin: var(--space-xs) 0 0;
  min-height: 1.2em;
  font-size: var(--font-sm);
  color: var(--color-error);
}

@media (max-width: 480px) {
  .auth-shell__form {
    width: 90%;
    padding: var(--space-md);
  }
  .auth-shell__right {
    display: none;
  }
}

/* ── the auth-sibling forms (sign-up / forgot / reset / resend) ── */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.field-error {
  margin: 0;
  color: var(--color-error, #d33);
  font-size: var(--font-sm);
}

.auth-form__alt {
  margin-top: var(--space-sm);
  font-size: var(--font-sm);
  color: var(--text-color-hint);
}

.auth-form__notice {
  padding: var(--space-md);
  border-radius: var(--radius-md, 8px);
  background: var(--color-surface-2, #f3f4f6);
  font-size: var(--font-sm);
}

/* --- src/main/view.css --- */
/* src/main/view.css — the archive grid.
 *
 *  axis_tag: K/Topology/main/view
 *
 *  A CONTACT SHEET, not a card gallery. Gutters are 3px and there are no
 *  rounded corners, borders or shadows on the tiles: the photographs butt
 *  against each other so the eye reads the whole sheet at once instead of
 *  ~40 separate objects. Every pixel of chrome here is a pixel not
 *  showing a photograph.
 *
 *  Tile geometry is duplicated in controller.jsx (TILE/GAP) because the
 *  virtualiser has to know row height BEFORE the rows exist. The CSS
 *  takes its values from the inline --tile/--gap the controller sets, so
 *  there is one source of truth at runtime even though both files name it.
 */

.archive {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 52px);
}

/* ── header ──────────────────────────────────────── */

.archive__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 30px 24px 18px;
}

.archive__id {
  display: flex;
  align-items: baseline;
  gap: 14px;
}

.archive__title {
  margin: 0;
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.archive__count {
  margin: 0;
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.archive__num {
  font-variant-numeric: tabular-nums;
  color: var(--ink-mid);
}

/* ── albums as chips ─────────────────────────────── */

.chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 5px 13px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink-dim);
  font-family: var(--primary-font);
  font-size: 12px;
  cursor: pointer;
  transition:
    color var(--transition-fast),
    border-color var(--transition-fast);
}

.chip:hover {
  color: var(--ink);
  border-color: var(--hairline-strong);
}

.chip--on {
  color: var(--canvas);
  background: var(--ink);
  border-color: var(--ink);
}

.chip--new {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.06em;
}

/* ── the sheet ───────────────────────────────────── */

.archive__scroll {
  flex: 1;
  overflow-y: auto;
  padding: 0 24px 40px;
  /* Contain the virtualiser's translate work to this subtree. */
  contain: paint;
}

.archive__grid {
  position: relative;
}

.archive__runway {
  position: relative;
}

.archive__window {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(var(--tile, 168px), 1fr));
  gap: var(--gap, 3px);
  will-change: transform;
}

.tile {
  position: relative;
  margin: 0;
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--plinth);
}

.tile__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Photographs sit very slightly back until pointed at, so the sheet
   * reads as one surface and the hovered frame lifts out of it. */
  opacity: 0.92;
  transform: scale(1);
  transition:
    opacity 200ms ease,
    transform 400ms cubic-bezier(0.22, 1, 0.36, 1);
}

.tile:hover .tile__img {
  opacity: 1;
  transform: scale(1.045);
}

.tile:hover {
  outline: 1px solid var(--signal);
  outline-offset: -1px;
  z-index: 1;
}

/* A tile whose row is in view but whose page has not arrived. Breathes
 * rather than shimmers — a sweeping gradient across dozens of tiles at
 * once is the loudest thing on the screen. */
.tile--pending {
  background: var(--plinth);
  animation: tile-breathe 1.8s ease-in-out infinite;
}

@keyframes tile-breathe {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

/* ── empty ───────────────────────────────────────── */

.empty {
  padding: 96px 0;
  text-align: center;
}

.empty__line {
  margin: 0 0 6px;
  font-size: 17px;
  color: var(--ink-mid);
}

.empty__hint {
  margin: 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}

@media (prefers-reduced-motion: reduce) {
  .tile__img,
  .tile--pending {
    transition: none;
    animation: none;
  }
}

/* --- src/upload/view.css --- */
/* src/upload/view.css — the dump.
 *
 *  axis_tag: K/Topology/upload/view
 *
 *  The target is the WHOLE page. A small dashed rectangle in the middle
 *  of a large empty screen is a worse target for the same pixels, and it
 *  invites the question "does it count if I miss".
 */

.upload {
  display: grid;
  place-items: center;
  padding: 40px 24px 64px;
}

.drop {
  width: 100%;
  max-width: 720px;
  min-height: calc(100vh - 180px);
  display: grid;
  place-items: center;
  border: 1px dashed var(--hairline-strong);
  border-radius: var(--radius-xl);
  transition:
    border-color var(--transition-normal),
    background var(--transition-normal);
}

.drop--over {
  border-color: var(--signal);
  background: var(--signal-dim);
}

.drop__frame {
  width: 100%;
  padding: 48px 40px;
  text-align: center;
}

/* ── idle ────────────────────────────────────────── */

.drop__idle {
  display: grid;
  justify-items: center;
  gap: 6px;
}

/* An aperture, not a cloud-with-an-arrow: this is a camera archive, and
 * the ring reads as a lens iris at any size. Drawn in CSS so it stays
 * crisp and costs no request. */
.drop__glyph {
  position: relative;
  width: 84px;
  height: 84px;
  margin-bottom: 22px;
  display: grid;
  place-items: center;
}

.drop__ring {
  position: absolute;
  inset: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 50%;
  transition:
    border-color var(--transition-normal),
    transform var(--transition-normal);
}

.drop__ring::after {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid var(--hairline);
  border-radius: 50%;
}

.drop__arrow {
  width: 2px;
  height: 30px;
  background: var(--ink-mid);
  transition:
    background var(--transition-normal),
    transform var(--transition-normal);
}

.drop__arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 13px;
  height: 13px;
  border-right: 2px solid var(--ink-mid);
  border-bottom: 2px solid var(--ink-mid);
  transform: translate(-50%, 2px) rotate(45deg);
  transition: border-color var(--transition-normal);
}

.drop--over .drop__ring {
  border-color: var(--signal);
  transform: scale(1.06);
}

.drop--over .drop__arrow,
.drop--over .drop__arrow::after {
  background: var(--signal);
  border-color: var(--signal);
}

.drop--over .drop__arrow {
  transform: translateY(4px);
}

.drop__title {
  margin: 0;
  font-size: 27px;
  font-weight: 500;
  letter-spacing: -0.022em;
  color: var(--ink);
}

.drop__sub {
  margin: 0 0 26px;
  font-size: 14px;
  color: var(--ink-dim);
}

.drop__pick {
  display: inline-block;
  padding: 10px 26px;
  border: 1px solid var(--hairline-strong);
  border-radius: var(--radius-pill);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition:
    border-color var(--transition-fast),
    background var(--transition-fast);
}

.drop__pick:hover {
  border-color: var(--ink-mid);
  background: var(--plinth-hi);
}

.drop__summary {
  margin: 24px 0 0;
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-mid);
}

/* ── in flight ───────────────────────────────────── */

.prog {
  display: grid;
  gap: 22px;
  justify-items: center;
}

.prog__counts {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

/* Tabular figures: without them the count jitters horizontally on every
 * file, which on a thousand-file folder is the most visible thing on the
 * screen. */
.prog__done {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 300;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.prog__of {
  font-family: var(--font-display);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
}

.prog__track {
  width: 100%;
  height: 2px;
  background: var(--hairline);
  border-radius: 2px;
  overflow: hidden;
}

.prog__fill {
  height: 100%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  transition: width 240ms ease-out;
}

.prog__meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 1px;
  width: 100%;
  margin: 0;
  background: var(--hairline);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.prog__cell {
  padding: 14px 12px;
  background: var(--plinth);
}

.prog__cell dt {
  font-family: var(--font-display);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.prog__cell dd {
  margin: 5px 0 0;
  font-family: var(--font-display);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.prog__bad {
  color: #ff6b6b;
}

.prog__note {
  margin: 0;
  font-size: 12px;
  color: var(--ink-dim);
}

@media (prefers-reduced-motion: reduce) {
  .prog__fill,
  .drop,
  .drop__ring,
  .drop__arrow {
    transition: none;
  }
}
