/*
 * Rezixa Design System
 * Immigration Intelligence Suite -- shared visual language for IIP and IKP.
 *
 * Loaded after bootstrap.min.css. Overrides and extends Bootstrap's defaults
 * with the Rezixa brand: an "ink and brass" palette (deep ink-navy for
 * authority and precision, a muted brass accent reserved for verified/
 * high-confidence moments -- evoking a notarized seal, fitting a product
 * whose entire premise is evidence-backed, never-invented confidence) and
 * Public Sans, the U.S. federal government's own open-source typeface --
 * a deliberate choice for a product built around Canadian government
 * immigration proceedings.
 *
 * This file is identical across IIP and IKP by design (see docs/DEVELOPER_GUIDE.md
 * -- each app is independently deployed and must ship its own complete static
 * assets; the shared design LANGUAGE lives here, duplicated, not coupled).
 */

/* ---------------------------------------------------------------------
   1. Fonts
   --------------------------------------------------------------------- */

@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans/public-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans/public-sans-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans/public-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans/public-sans-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Public Sans";
  src: url("../fonts/public-sans/public-sans-800.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

/* ---------------------------------------------------------------------
   2. Design tokens
   --------------------------------------------------------------------- */

:root {
  /* Brand */
  --ink-950: #14213d;
  --ink-800: #1a2c50;
  --ink-700: #1f3a5f;
  --ink-600: #2b4a73;
  --brass-600: #96733f;
  --brass-500: #b08d57;
  --brass-400: #c7a670;
  --brass-100: #f3ead9;

  /* Neutrals */
  --canvas: #faf9f7;
  --surface: #ffffff;
  --surface-sunken: #f4f3f1;
  --border: #e4e4e2;
  --border-strong: #d1d0cc;
  --text-900: #17181c;
  --text-700: #3f4148;
  --text-500: #6b6d76;
  --text-400: #8b8d96;
  --text-on-ink: #f3f4f8;

  /* Semantic (categorical -- priority, status) */
  --success: #15803d;
  --success-bg: #eaf6ee;
  --warning: #b5590f;
  --warning-bg: #fdf1e6;
  --danger: #b91c1c;
  --danger-bg: #fbebeb;
  --info: #3b5ba5;
  --info-bg: #eaeff8;

  /* Confidence ramp (continuous -- monotone, colorblind-safe, tied to --ink) */
  --confidence-very-low: #cbd5e1;
  --confidence-low: #94a3b8;
  --confidence-medium: #64748b;
  --confidence-high: #334155;
  --confidence-very-high: var(--ink-950);

  /* Type */
  --font-sans: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Shadow -- soft, low-elevation; no harsh drop shadows */
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.05);
  --shadow-md: 0 4px 16px rgba(20, 33, 61, 0.07);
  --shadow-lg: 0 12px 32px rgba(20, 33, 61, 0.10);

  /* Layout */
  --topbar-height: 64px;
  --sidebar-width: 248px;
  --sidebar-width-collapsed: 72px;
  --content-max-width: 1240px;
}

/* ---------------------------------------------------------------------
   3. Base
   --------------------------------------------------------------------- */

html {
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background: var(--canvas);
  color: var(--text-900);
  font-size: 0.9375rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-900);
}

h1 { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 1.375rem; }
h3 { font-size: 1.125rem; }

a { color: var(--ink-700); text-decoration: none; }
a:hover { color: var(--ink-950); text-decoration: underline; }

.text-muted { color: var(--text-500) !important; }
.text-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
small, .small { font-size: 0.8125rem; }

/* Visible keyboard focus everywhere -- accessibility, non-negotiable */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--brass-500);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------------------------------------------------------------------
   4. App shell -- topbar, sidebar, content, footer
   --------------------------------------------------------------------- */

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  height: var(--topbar-height);
  background: var(--ink-950);
  color: var(--text-on-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.25rem;
  position: sticky;
  top: 0;
  z-index: 40;
  box-shadow: var(--shadow-sm);
}

.app-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  color: var(--text-on-ink);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: -0.01em;
}
.app-brand:hover { color: var(--text-on-ink); text-decoration: none; }
.app-brand img, .app-brand svg { height: 26px; width: auto; display: block; }
.app-brand .brand-product {
  font-weight: 400;
  color: rgba(243, 244, 248, 0.62);
  font-size: 0.8125rem;
  margin-left: 0.375rem;
  padding-left: 0.625rem;
  border-left: 1px solid rgba(243, 244, 248, 0.2);
}

.app-topbar-actions { display: flex; align-items: center; gap: 0.75rem; }

.app-user-menu .btn {
  color: var(--text-on-ink);
  border-color: rgba(243, 244, 248, 0.25);
}
.app-user-menu .btn:hover { background: rgba(243, 244, 248, 0.08); }

.app-body { display: flex; flex: 1 1 auto; }

.app-sidebar {
  width: var(--sidebar-width);
  flex: 0 0 var(--sidebar-width);
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 1.25rem 0.75rem;
  position: sticky;
  top: var(--topbar-height);
  align-self: flex-start;
  height: calc(100vh - var(--topbar-height));
  overflow-y: auto;
}

.sidebar-section-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-400);
  padding: 0.5rem 0.75rem 0.375rem;
  margin-top: 0.75rem;
}
.sidebar-section-label:first-child { margin-top: 0; }

.sidebar-nav { list-style: none; margin: 0; padding: 0; }
.sidebar-nav-item { margin-bottom: 0.125rem; }
.sidebar-nav-link {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--text-700);
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 2px solid transparent;
}
.sidebar-nav-link:hover {
  background: var(--surface-sunken);
  color: var(--text-900);
  text-decoration: none;
}
.sidebar-nav-link.active {
  background: var(--brass-100);
  color: var(--ink-950);
  border-left-color: var(--brass-500);
  font-weight: 600;
}
.sidebar-nav-link i { font-size: 1rem; width: 1.25rem; text-align: center; color: var(--text-400); }
.sidebar-nav-link.active i, .sidebar-nav-link:hover i { color: inherit; }

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 2rem 2rem 4rem;
}

.app-content {
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.app-footer {
  border-top: 1px solid var(--border);
  padding: 1rem 2rem;
  font-size: 0.8125rem;
  color: var(--text-400);
  text-align: center;
  background: var(--surface);
}

.sidebar-toggle { display: none; }

@media (max-width: 991.98px) {
  .app-sidebar {
    position: fixed;
    left: 0;
    top: var(--topbar-height);
    z-index: 39;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: var(--shadow-lg);
  }
  .app-sidebar.is-open { transform: translateX(0); }
  .app-main { padding: 1.25rem 1.25rem 3rem; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar-backdrop {
    display: none;
    position: fixed;
    inset: var(--topbar-height) 0 0 0;
    background: rgba(20, 33, 61, 0.35);
    z-index: 38;
  }
  .sidebar-backdrop.is-open { display: block; }
}

/* ---------------------------------------------------------------------
   5. Page header (eyebrow + title + actions)
   --------------------------------------------------------------------- */

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}
.page-eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-600);
  margin-bottom: 0.25rem;
}
.page-header h1 { margin: 0; }
.page-header-sub { color: var(--text-500); margin-top: 0.25rem; max-width: 60ch; }
.page-header-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

.breadcrumb-bar { margin-bottom: 0.75rem; }
.breadcrumb-bar .breadcrumb { margin: 0; font-size: 0.8125rem; }

/* ---------------------------------------------------------------------
   6. Buttons
   --------------------------------------------------------------------- */

.btn {
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--radius-sm);
  padding: 0.5rem 1rem;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease, box-shadow 0.12s ease;
}
.btn i { margin-right: 0.375rem; }

.btn-primary {
  background: var(--ink-950);
  border-color: var(--ink-950);
  color: var(--text-on-ink);
}
.btn-primary:hover, .btn-primary:focus {
  background: var(--ink-800);
  border-color: var(--ink-800);
  color: var(--text-on-ink);
}
.btn-primary:disabled { background: var(--text-400); border-color: var(--text-400); }

.btn-outline-primary {
  color: var(--ink-950);
  border-color: var(--border-strong);
  background: var(--surface);
}
.btn-outline-primary:hover {
  background: var(--surface-sunken);
  color: var(--ink-950);
  border-color: var(--text-400);
}

.btn-brass {
  background: var(--brass-500);
  border-color: var(--brass-500);
  color: #2a2110;
}
.btn-brass:hover { background: var(--brass-600); border-color: var(--brass-600); color: #2a2110; }

.btn-link { font-weight: 600; }
.btn-sm { padding: 0.3125rem 0.75rem; font-size: 0.8125rem; }

.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after {
  content: "";
  position: absolute;
  width: 1rem; height: 1rem;
  top: 50%; left: 50%;
  margin: -0.5rem 0 0 -0.5rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: var(--text-on-ink);
  animation: rezixa-spin 0.6s linear infinite;
}
.btn-outline-primary.btn-loading::after,
.btn-brass.btn-loading::after { color: var(--ink-950); }

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

/* ---------------------------------------------------------------------
   7. Cards
   --------------------------------------------------------------------- */

.card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  padding: 1rem 1.25rem;
}
.card-body { padding: 1.25rem; }

.stat-card { padding: 1.25rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.stat-card .stat-label { font-size: 0.8125rem; color: var(--text-500); font-weight: 600; margin-bottom: 0.375rem; }
.stat-card .stat-meta { font-size: 0.8125rem; color: var(--text-400); margin-top: 0.375rem; }

.entity-card {
  display: block;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1rem 1.125rem;
  background: var(--surface);
  transition: border-color 0.12s ease, box-shadow 0.12s ease;
}
.entity-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}
.entity-card .entity-title { font-weight: 700; color: var(--text-900); margin-bottom: 0.25rem; }
.entity-card .entity-meta { font-size: 0.8125rem; color: var(--text-500); display: flex; flex-wrap: wrap; gap: 0.75rem; }
.entity-card .entity-meta i { margin-right: 0.25rem; }

/* ---------------------------------------------------------------------
   8. Badges / status pills / priority
   --------------------------------------------------------------------- */

.badge { font-weight: 600; font-size: 0.75rem; padding: 0.3125rem 0.625rem; border-radius: var(--radius-pill); }

.badge-status-success { background: var(--success-bg); color: var(--success); }
.badge-status-warning { background: var(--warning-bg); color: var(--warning); }
.badge-status-danger  { background: var(--danger-bg); color: var(--danger); }
.badge-status-info    { background: var(--info-bg); color: var(--info); }
.badge-status-neutral { background: var(--surface-sunken); color: var(--text-500); }

.badge-priority-critical { background: var(--danger-bg); color: var(--danger); }
.badge-priority-important { background: var(--warning-bg); color: var(--warning); }
.badge-priority-optional { background: var(--surface-sunken); color: var(--text-500); }

.badge-priority-critical i, .badge-priority-important i, .badge-priority-optional i { margin-right: 0.25rem; }

/* ---------------------------------------------------------------------
   9. Confidence ring -- the signature element.
   Every confidence score in the product renders through this component
   (see templates/_components.html::confidence_ring macro). The ramp is a
   monotone extension of the ink brand color -- not a red/yellow/green
   stoplight -- because confidence here is a spectrum of evidentiary
   support, not a categorical pass/fail. A small brass mark appears only
   at "Very High," the one moment the system is fully substantiated.
   --------------------------------------------------------------------- */

.confidence-ring { display: inline-flex; align-items: center; gap: 0.625rem; }
.confidence-ring svg { display: block; }
.confidence-ring-track { fill: none; stroke: var(--border); stroke-width: 4; }
.confidence-ring-value { fill: none; stroke-width: 4; stroke-linecap: round; transition: stroke-dasharray 0.4s ease; }
.confidence-ring-label { display: flex; flex-direction: column; line-height: 1.2; }
.confidence-ring-score { font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; color: var(--text-900); }
.confidence-ring-level { font-size: 0.75rem; font-weight: 600; color: var(--text-500); }
.confidence-ring-seal { color: var(--brass-500); font-size: 0.875rem; margin-left: 0.125rem; }

.confidence-ring[data-level="very-low"]  .confidence-ring-value { stroke: var(--confidence-very-low); }
.confidence-ring[data-level="low"]       .confidence-ring-value { stroke: var(--confidence-low); }
.confidence-ring[data-level="medium"]    .confidence-ring-value { stroke: var(--confidence-medium); }
.confidence-ring[data-level="high"]      .confidence-ring-value { stroke: var(--confidence-high); }
.confidence-ring[data-level="very-high"] .confidence-ring-value { stroke: var(--confidence-very-high); }

.confidence-ring.confidence-ring-sm svg { width: 32px; height: 32px; }
.confidence-ring svg { width: 44px; height: 44px; }

/* ---------------------------------------------------------------------
   10. Tables
   --------------------------------------------------------------------- */

.table-modern {
  --bs-table-bg: transparent;
  font-size: 0.875rem;
}
.table-modern thead th {
  position: sticky;
  top: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  color: var(--text-500);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.75rem 1rem;
  z-index: 1;
}
.table-modern tbody td { padding: 0.75rem 1rem; vertical-align: middle; border-bottom: 1px solid var(--border); }
.table-modern tbody tr:hover { background: var(--surface-sunken); }
.table-modern tbody tr:last-child td { border-bottom: none; }

.table-modern th.is-sortable { cursor: pointer; user-select: none; }
.table-modern th.is-sortable:hover { color: var(--text-900); }
.table-modern th.is-sortable::after { content: "\f0dc"; font-family: "bootstrap-icons"; margin-left: 0.375rem; opacity: 0.35; font-size: 0.7em; }
.table-modern th.is-sortable[data-sort-dir="asc"]::after { content: "\f0de"; opacity: 0.8; }
.table-modern th.is-sortable[data-sort-dir="desc"]::after { content: "\f0dd"; opacity: 0.8; }

.table-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.table-toolbar .form-control, .table-toolbar .form-select { max-width: 240px; }

/* ---------------------------------------------------------------------
   11. Forms
   --------------------------------------------------------------------- */

.form-label { font-weight: 600; font-size: 0.875rem; color: var(--text-900); margin-bottom: 0.375rem; }
.form-label .required-mark { color: var(--danger); margin-left: 0.125rem; }
.form-help { font-size: 0.8125rem; color: var(--text-500); margin-top: 0.375rem; }
.form-control, .form-select {
  border-color: var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
}
.form-control:focus, .form-select:focus {
  border-color: var(--ink-700);
  box-shadow: 0 0 0 3px rgba(20, 33, 61, 0.1);
}
.form-section { margin-bottom: 1.75rem; }
.form-section-title { font-weight: 700; margin-bottom: 0.25rem; }
.form-section-desc { color: var(--text-500); font-size: 0.875rem; margin-bottom: 1rem; }

/* ---------------------------------------------------------------------
   12. Alerts / notifications
   --------------------------------------------------------------------- */

.alert { border: 1px solid transparent; border-radius: var(--radius-md); font-size: 0.875rem; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: rgba(21, 128, 61, 0.15); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(181, 89, 15, 0.15); }
.alert-danger  { background: var(--danger-bg); color: var(--danger); border-color: rgba(185, 28, 28, 0.15); }
.alert-info    { background: var(--info-bg); color: var(--info); border-color: rgba(59, 91, 165, 0.15); }

.toast-stack {
  position: fixed;
  top: calc(var(--topbar-height) + 1rem);
  right: 1rem;
  z-index: 1080;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 360px;
}

/* ---------------------------------------------------------------------
   13. Upload / dropzone
   --------------------------------------------------------------------- */

.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--surface-sunken);
  transition: border-color 0.12s ease, background-color 0.12s ease;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--ink-700);
  background: var(--brass-100);
}
.dropzone i { font-size: 1.75rem; color: var(--text-400); margin-bottom: 0.5rem; display: block; }
.dropzone .dropzone-title { font-weight: 600; margin-bottom: 0.25rem; }
.dropzone .dropzone-hint { font-size: 0.8125rem; color: var(--text-500); }
.dropzone input[type="file"] { display: none; }

.file-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
  margin-top: 0.625rem;
}
.file-card i { font-size: 1.25rem; color: var(--ink-700); }
.file-card .file-name { font-weight: 600; font-size: 0.875rem; }
.file-card .file-meta { font-size: 0.75rem; color: var(--text-500); }

/* ---------------------------------------------------------------------
   14. Timeline / pipeline stages
   --------------------------------------------------------------------- */

.pipeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-400);
}
.pipeline-step .pipeline-dot {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-sunken);
  border: 2px solid var(--border);
  color: var(--text-400);
  font-size: 0.75rem;
  flex-shrink: 0;
}
.pipeline-step.is-done .pipeline-dot { background: var(--ink-950); border-color: var(--ink-950); color: var(--text-on-ink); }
.pipeline-step.is-done { color: var(--text-900); }
.pipeline-step.is-current .pipeline-dot { border-color: var(--brass-500); color: var(--brass-600); background: var(--brass-100); }
.pipeline-step.is-current { color: var(--text-900); }
.pipeline-connector { width: 2rem; height: 2px; background: var(--border); margin: 0 0.375rem; flex-shrink: 0; }
.pipeline-step.is-done + .pipeline-connector { background: var(--ink-950); }

.activity-timeline { list-style: none; margin: 0; padding: 0; }
.activity-timeline-item {
  display: flex;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}
.activity-timeline-item:last-child { border-bottom: none; }
.activity-timeline-icon {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--surface-sunken);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-700); flex-shrink: 0;
}
.activity-timeline-body { font-size: 0.875rem; }
.activity-timeline-meta { font-size: 0.75rem; color: var(--text-400); }

/* ---------------------------------------------------------------------
   15. Empty states / success screens
   --------------------------------------------------------------------- */

.empty-state {
  text-align: center;
  padding: 3rem 1.5rem;
  color: var(--text-500);
}
.empty-state i { font-size: 2.25rem; color: var(--text-400); margin-bottom: 0.75rem; display: block; }
.empty-state h3 { color: var(--text-700); margin-bottom: 0.375rem; }
.empty-state p { max-width: 40ch; margin: 0 auto 1rem; }

/* ---------------------------------------------------------------------
   16. Loading indicators
   --------------------------------------------------------------------- */

.spinner-ring {
  width: 1.25rem; height: 1.25rem;
  border: 2px solid var(--border);
  border-top-color: var(--ink-950);
  border-radius: 50%;
  animation: rezixa-spin 0.6s linear infinite;
  display: inline-block;
}

.skeleton {
  background: linear-gradient(90deg, var(--surface-sunken) 25%, var(--border) 37%, var(--surface-sunken) 63%);
  background-size: 400% 100%;
  animation: rezixa-skeleton 1.4s ease infinite;
  border-radius: var(--radius-sm);
}
@keyframes rezixa-skeleton { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* ---------------------------------------------------------------------
   17. Error / full-page states
   --------------------------------------------------------------------- */

.full-page-state {
  min-height: calc(100vh - var(--topbar-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
}
.full-page-state .full-page-code {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--brass-600);
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.full-page-state h1 { font-size: 2rem; margin-bottom: 0.5rem; }
.full-page-state p { color: var(--text-500); max-width: 44ch; margin: 0 auto 1.5rem; }

/* ---------------------------------------------------------------------
   18. Utility
   --------------------------------------------------------------------- */

.rounded-lg { border-radius: var(--radius-lg) !important; }
.shadow-soft { box-shadow: var(--shadow-md) !important; }
.bg-canvas { background: var(--canvas) !important; }
.bg-surface-sunken { background: var(--surface-sunken) !important; }
.divider { border-top: 1px solid var(--border); margin: 1.5rem 0; }

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.875rem;
}
.section-title-row h2, .section-title-row h3 { margin: 0; }
