:root {
  --bg: #f5f4ed;
  --surface: #faf9f5;
  --surface-warm: #e8e6dc;
  --fg: #141413;
  --fg-2: #3d3d3a;
  --muted: #5e5d59;
  --meta: #87867f;
  --border: #f0eee6;
  --border-soft: #e8e6dc;
  --accent: #c96442;
  --accent-on: #faf9f5;
  --accent-hover: color-mix(in oklab, var(--accent), black 8%);
  --accent-active: color-mix(in oklab, var(--accent), black 14%);
  --success: #17a34a;
  --warn: #eab308;
  --danger: #b53333;
  --font-display: "Anthropic Serif", Georgia, "Times New Roman", serif;
  --font-body: "Anthropic Sans", "Arial", system-ui, -apple-system, sans-serif;
  --font-mono: "Anthropic Mono", ui-monospace, "JetBrains Mono", Menlo, monospace;
  --text-xs: 10px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 20px;
  --text-xl: 25px;
  --text-2xl: 32px;
  --text-3xl: 52px;
  --text-4xl: 64px;
  --leading-body: 1.6;
  --leading-tight: 1.1;
  --tracking-display: 0em;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-12: 48px;
  --section-y-desktop: 96px;
  --section-y-tablet: 64px;
  --section-y-phone: 48px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;
  --elev-flat: none;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: rgba(0, 0, 0, 0.05) 0px 4px 24px;
  --focus-ring: 0 0 0 3px rgba(56, 152, 236, 0.3);
  --motion-fast: 150ms;
  --motion-base: 200ms;
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);
  --container-max: 1200px;
  --container-gutter-desktop: 24px;
  --container-gutter-tablet: 16px;
  --container-gutter-phone: 12px;
}

* { box-sizing: border-box; }
    html { color-scheme: light; }
    body {
      margin: 0;
      background: var(--bg);
      color: var(--fg);
      font-family: var(--font-body);
      font-size: var(--text-base);
      line-height: var(--leading-body);
      letter-spacing: 0;
      min-height: 100dvh;
      -webkit-font-smoothing: antialiased;
    }
    button, input, select, textarea { font: inherit; }
    button { cursor: pointer; }
    a { color: inherit; text-decoration: none; }
    .login {
      min-height: 100dvh;
      display: grid;
      grid-template-columns: 1.05fr 0.95fr;
      background: var(--bg);
    }
    .login-copy {
      padding: clamp(32px, 7vw, 96px);
      display: flex;
      flex-direction: column;
      justify-content: center;
      border-right: 1px solid var(--border-soft);
    }
    .mark, .brand-mark {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-weight: 600;
      letter-spacing: 0.02em;
    }
    .mark-symbol, .brand-symbol {
      width: 34px;
      height: 34px;
      border-radius: var(--radius-sm);
      display: grid;
      place-items: center;
      background: var(--fg);
      color: var(--surface);
      font-family: var(--font-mono);
      font-size: 14px;
    }
    .login h1 {
      margin: 72px 0 0;
      max-width: 760px;
      font: 500 clamp(42px, 5.5vw, 72px)/1.06 var(--font-display);
      letter-spacing: -0.02em;
    }
    .login-panel {
      display: grid;
      place-items: center;
      padding: 28px;
      background: var(--surface);
    }
    .auth-card {
      width: min(430px, 100%);
      padding: 28px;
      border-radius: var(--radius-lg);
      border: 1px solid var(--border);
      box-shadow: var(--elev-raised);
      background: var(--surface);
    }
    h2, h3 { font-family: var(--font-display); font-weight: 500; letter-spacing: -0.01em; line-height: var(--leading-tight); }
    .auth-card h2 { margin: 0 0 10px; font-size: 31px; }
    .muted { color: var(--muted); }
    .meta { color: var(--meta); }
    .field { display: grid; gap: 7px; margin-top: 16px; }
    .field label { color: var(--fg-2); font-size: 13px; font-weight: 600; letter-spacing: 0.02em; }
    .field input, .field select, .field textarea {
      width: 100%;
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-md);
      background: var(--bg);
      color: var(--fg);
      padding: 10px 12px;
      outline: none;
      transition: box-shadow var(--motion-fast) var(--ease-standard), border-color var(--motion-fast) var(--ease-standard);
    }
    .field input:focus, .field select:focus, .field textarea:focus { box-shadow: var(--focus-ring); border-color: color-mix(in oklab, var(--accent), var(--border-soft)); }
    .field.inline {
      display: flex;
      align-items: center;
      gap: 10px;
      margin-top: 12px;
    }
    .field.inline input { width: auto; min-width: 18px; min-height: 18px; }
    .btn {
      border: 0;
      border-radius: var(--radius-sm);
      min-height: 40px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      padding: 9px 13px;
      font-weight: 650;
      font-size: 14px;
      letter-spacing: 0.02em;
      transition: transform var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard);
    }
    .btn:active { transform: translateY(1px); }
    .btn:focus-visible, .nav button:focus-visible, .search:focus-visible {
      outline: none;
      box-shadow: var(--focus-ring), 0 0 0 1px var(--border-soft);
    }
    .btn:disabled, .btn[aria-disabled="true"] {
      cursor: not-allowed;
      opacity: 0.52;
      transform: none;
    }
    .btn-primary { background: var(--accent); color: var(--accent-on); box-shadow: 0 0 0 1px var(--accent); }
    .btn-primary:hover { background: var(--accent-hover); }
    .btn-secondary { background: var(--surface-warm); color: var(--fg-2); box-shadow: 0 0 0 1px color-mix(in oklab, var(--border-soft), var(--fg) 8%); }
    .btn-ghost { background: transparent; color: var(--fg-2); box-shadow: 0 0 0 1px var(--border-soft); }
    .btn-danger { background: color-mix(in oklab, var(--danger), var(--surface) 83%); color: var(--danger); box-shadow: 0 0 0 1px color-mix(in oklab, var(--danger), var(--surface) 70%); }
    .btn.small { min-height: 32px; padding: 6px 10px; font-size: 12px; }
    .btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
    .hidden { display: none !important; }
    .app {
      min-height: 100dvh;
      display: grid;
      grid-template-columns: 260px minmax(0, 1fr);
    }
    .sidebar {
      position: sticky;
      top: 0;
      height: 100vh;
      padding: 22px 16px;
      background: var(--surface);
      border-right: 1px solid var(--border-soft);
      display: flex;
      flex-direction: column;
      gap: 22px;
      z-index: 5;
    }
    .nav { display: grid; gap: 6px; }
    .nav button {
      width: 100%;
      border: 0;
      background: transparent;
      color: var(--muted);
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 10px 11px;
      border-radius: var(--radius-sm);
      text-align: left;
      font-weight: 650;
      letter-spacing: 0.01em;
    }
    .nav button.active { background: var(--surface-warm); color: var(--fg); box-shadow: 0 0 0 1px var(--border-soft); }
    .nav svg, .icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
    .side-card {
      margin-top: auto;
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-md);
      padding: 14px;
      background: var(--bg);
    }
    .side-card strong { display: block; font-size: 13px; }
    .side-card span { display: block; color: var(--meta); font-size: 12px; line-height: 1.45; margin-top: 4px; }
    .topbar {
      position: sticky;
      top: 0;
      min-height: 68px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 14px 28px;
      background: color-mix(in oklab, var(--bg), transparent 8%);
      border-bottom: 1px solid var(--border-soft);
      backdrop-filter: blur(14px);
      z-index: 4;
    }
    .topbar > .btn-row { justify-content: flex-end; }
    .session-summary {
      display: grid;
      gap: 2px;
    }
    .sync-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      color: var(--meta);
      font-size: 12px;
    }
    .sync-status::before {
      content: "";
      width: 7px;
      height: 7px;
      border-radius: 50%;
      background: var(--success);
    }
    .sync-status.loading::before {
      background: var(--warn);
      animation: pulse 900ms var(--ease-standard) infinite alternate;
    }
    .sync-status.error::before { background: var(--danger); }
    .mobile-menu { display: none; }
    .page { display: none; padding: 28px; }
    .page.active { display: block; }
    .page.page-enter {
      animation: pageIn 180ms var(--ease-standard) both;
      will-change: opacity, transform;
    }
    .page-head {
      display: flex;
      align-items: flex-start;
      justify-content: space-between;
      gap: 24px;
      margin-bottom: 22px;
    }
    .page-head h1 {
      margin: 0;
      font: 500 clamp(34px, 4vw, 52px)/1.08 var(--font-display);
      letter-spacing: -0.02em;
    }
    .page-head p { margin: 8px 0 0; max-width: 70ch; color: var(--muted); }
    .page-head.compact-head {
      align-items: center;
      margin-bottom: 14px;
    }
    .page-head.compact-head h1 {
      font-size: clamp(32px, 3vw, 44px);
    }
    .grid { display: grid; gap: 16px; }
    .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ops-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface);
      overflow: hidden;
      box-shadow: var(--elev-ring);
    }
    .ops-cell {
      min-height: 124px;
      padding: 18px;
      border-right: 1px solid var(--border);
      display: grid;
      align-content: space-between;
      gap: 14px;
    }
    .ops-cell:last-child { border-right: 0; }
    .ops-cell strong {
      display: block;
      font-family: var(--font-display);
      font-size: clamp(30px, 3vw, 44px);
      line-height: 1;
      letter-spacing: -0.02em;
      margin-top: 4px;
    }
    .ops-cell small {
      display: block;
      color: var(--meta);
      font-size: 12px;
      line-height: 1.45;
    }
    .subtle-panel {
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface);
      padding: 18px;
      box-shadow: var(--elev-ring);
    }
    .metric-list {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 0;
      margin-top: 16px;
      border-top: 1px solid var(--border);
      border-bottom: 1px solid var(--border);
    }
    .metric-list div {
      padding: 14px 12px;
      border-right: 1px solid var(--border);
    }
    .metric-list div:last-child { border-right: 0; }
    .metric-list p { margin: 5px 0 0; }
    .card {
      background: var(--surface);
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      box-shadow: var(--elev-ring);
      padding: 18px;
    }
    .card h3 { margin: 0 0 10px; font-size: 24px; }
    .stat-value {
      font-family: var(--font-display);
      font-size: clamp(32px, 3vw, 46px);
      line-height: 1;
      letter-spacing: -0.02em;
      margin: 8px 0;
    }
    .label {
      color: var(--meta);
      text-transform: uppercase;
      letter-spacing: 0.08em;
      font-size: 11px;
      font-weight: 650;
    }
    .badge {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      min-height: 24px;
      padding: 3px 9px;
      border-radius: var(--radius-pill);
      background: var(--surface-warm);
      color: var(--fg-2);
      font-size: 12px;
      font-weight: 650;
      letter-spacing: 0.01em;
    }
    .badge.ok { background: color-mix(in oklab, var(--success), var(--surface) 84%); color: color-mix(in oklab, var(--success), var(--fg) 34%); }
    .badge.warn { background: color-mix(in oklab, var(--warn), var(--surface) 77%); color: color-mix(in oklab, var(--warn), var(--fg) 45%); }
    .badge.danger { background: color-mix(in oklab, var(--danger), var(--surface) 85%); color: var(--danger); }
    .group-cell {
      position: relative;
      width: max-content;
    }
    .group-chip {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border: 0;
      cursor: pointer;
      font: inherit;
      padding: 4px 9px 4px 10px;
      box-shadow: 0 0 0 1px color-mix(in oklab, var(--border-soft), var(--fg) 6%);
      transition: background var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) var(--ease-standard), transform var(--motion-fast) var(--ease-standard);
    }
    .group-chip::after {
      content: "";
      width: 6px;
      height: 6px;
      border-right: 1.5px solid var(--meta);
      border-bottom: 1.5px solid var(--meta);
      transform: rotate(45deg) translateY(-1px);
      transition: transform var(--motion-fast) var(--ease-standard);
    }
    .group-chip:hover {
      background: color-mix(in oklab, var(--surface-warm), var(--accent) 7%);
      box-shadow: 0 0 0 1px var(--border-soft);
    }
    .group-chip[aria-expanded="true"] {
      background: var(--surface);
      box-shadow: 0 0 0 2px color-mix(in oklab, var(--accent), var(--surface) 64%);
    }
    .group-chip[aria-expanded="true"]::after {
      transform: rotate(225deg) translate(-1px, -1px);
    }
    .group-floating-menu {
      position: fixed;
      z-index: 50;
      width: 238px;
      padding: 8px;
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-md);
      background: var(--surface);
      box-shadow: 0 18px 50px rgba(20, 20, 19, 0.16), 0 0 0 1px var(--border);
      transform-origin: top left;
      opacity: 0;
      transform: translateY(-4px) scale(0.985);
      transition: opacity 160ms var(--ease-standard), transform 160ms var(--ease-standard);
      will-change: opacity, transform;
    }
    .group-floating-menu[hidden] { display: none; }
    .group-floating-menu.is-open {
      opacity: 1;
      transform: translateY(0) scale(1);
    }
    .group-option {
      width: 100%;
      display: grid;
      grid-template-columns: minmax(0, 1fr) auto;
      gap: 8px;
      align-items: center;
      min-height: 38px;
      padding: 8px 10px;
      border: 0;
      border-radius: var(--radius-sm);
      background: transparent;
      color: var(--fg);
      text-align: left;
      cursor: pointer;
    }
    .group-option:hover,
    .group-option:focus-visible {
      background: var(--surface-warm);
      outline: none;
    }
    .group-option[aria-selected="true"] {
      color: var(--accent);
      font-weight: 650;
    }
    .group-option small {
      grid-column: 1 / -1;
      color: var(--meta);
      font-size: 11px;
    }
    .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
    .meter {
      height: 9px;
      border-radius: var(--radius-pill);
      overflow: hidden;
      background: var(--surface-warm);
      box-shadow: inset 0 0 0 1px var(--border-soft);
    }
    .meter span { display: block; height: 100%; width: var(--value); background: var(--accent); border-radius: inherit; }
    .table-wrap {
      overflow: auto;
      border-radius: var(--radius-md);
      border: 1px solid var(--border);
      background: var(--surface);
      box-shadow: var(--elev-ring);
    }
    table { width: 100%; border-collapse: collapse; min-width: 840px; }
    th, td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
    th { color: var(--meta); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; background: color-mix(in oklab, var(--surface-warm), transparent 34%); }
    td { font-size: 14px; }
    tbody tr { transition: background var(--motion-fast) var(--ease-standard); }
    tbody tr:hover { background: color-mix(in oklab, var(--surface-warm), transparent 62%); }
    tr:last-child td { border-bottom: 0; }
    .mono { font-family: var(--font-mono); letter-spacing: -0.01em; }
    .filters {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-bottom: 12px;
      padding: 8px;
      border: 1px solid var(--border);
      border-radius: var(--radius-md);
      background: var(--surface);
      box-shadow: var(--elev-ring);
    }
    .search {
      min-width: min(320px, 100%);
      flex: 1;
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-md);
      background: var(--surface);
      min-height: 40px;
      padding: 9px 12px;
      outline: none;
    }
    .empty-state {
      display: grid;
      gap: 8px;
      justify-items: start;
      padding: 26px;
      color: var(--muted);
    }
    .empty-state strong {
      color: var(--fg);
      font-family: var(--font-display);
      font-size: 22px;
      font-weight: 500;
    }
    .split {
      display: grid;
      grid-template-columns: minmax(0, 1fr) 380px;
      gap: 16px;
      align-items: start;
    }
    .service-list { display: grid; gap: 10px; }
    .service-row {
      display: grid;
      grid-template-columns: minmax(150px, 1fr) auto auto;
      align-items: center;
      gap: 12px;
      padding: 12px;
      border: 1px solid var(--border);
      border-radius: var(--radius-sm);
      background: var(--surface);
    }
    .policy-table table { min-width: 980px; }
    .policy-table td:last-child, .policy-table th:last-child { text-align: right; }
    .policy-actions {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 6px;
      flex-wrap: nowrap;
    }
    .chart {
      height: 190px;
      display: flex;
      align-items: end;
      gap: 9px;
      padding-top: 18px;
    }
    .bar {
      flex: 1;
      min-width: 12px;
      height: var(--h);
      border-radius: var(--radius-sm) var(--radius-sm) 2px 2px;
      background: color-mix(in oklab, var(--accent), var(--surface-warm) 44%);
      box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--accent), var(--surface) 70%);
    }
    .timeline { display: grid; gap: 10px; }
    .event {
      display: grid;
      grid-template-columns: 90px minmax(0, 1fr) auto;
      gap: 12px;
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
      align-items: start;
    }
    .event:last-child { border-bottom: 0; }
    .drawer, .modal-backdrop {
      position: fixed;
      inset: 0;
      z-index: 20;
      pointer-events: none;
    }
    .drawer::before, .modal-backdrop::before {
      content: "";
      position: absolute;
      inset: 0;
      background: rgba(20, 20, 19, 0.28);
      opacity: 0;
      transition: opacity var(--motion-base) var(--ease-standard);
    }
    .drawer.open, .modal-backdrop.open { pointer-events: auto; }
    .drawer.open::before, .modal-backdrop.open::before { opacity: 1; }
    .drawer-panel {
      position: absolute;
      top: 0;
      right: 0;
      width: min(520px, 100%);
      height: 100%;
      background: var(--surface);
      border-left: 1px solid var(--border-soft);
      transform: translateX(100%);
      transition: transform var(--motion-base) var(--ease-standard);
      padding: 24px;
      overflow: auto;
    }
    .drawer.open .drawer-panel { transform: translateX(0); }
    .modal {
      position: absolute;
      width: min(520px, calc(100% - 28px));
      top: 50%;
      left: 50%;
      transform: translate(-50%, -46%) scale(0.98);
      opacity: 0;
      background: var(--surface);
      border: 1px solid var(--border-soft);
      border-radius: var(--radius-lg);
      box-shadow: var(--elev-raised);
      padding: 24px;
      transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
    }
    .modal-body { margin-top: 4px; }
    .modal .form-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0 12px;
    }
    .modal-backdrop.open .modal { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    .toast {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 30;
      background: var(--fg);
      color: var(--surface);
      border-radius: var(--radius-md);
      padding: 12px 14px;
      box-shadow: var(--elev-raised);
      opacity: 0;
      transform: translateY(12px);
      transition: opacity var(--motion-base) var(--ease-standard), transform var(--motion-base) var(--ease-standard);
      pointer-events: none;
    }
    .toast.show { opacity: 1; transform: translateY(0); }
    .account-name { display: flex; flex-direction: column; gap: 2px; }
    .account-name strong { font-size: 15px; }
    .account-name span { color: var(--meta); font-size: 12px; }
    .sensitive {
      border: 1px dashed var(--border-soft);
      border-radius: var(--radius-sm);
      padding: 10px;
      background: var(--bg);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      word-break: break-all;
    }
    .reveal-value[data-hidden="true"] { filter: blur(4px); user-select: none; }
    .danger-zone {
      border: 1px solid color-mix(in oklab, var(--danger), var(--surface) 70%);
      background: color-mix(in oklab, var(--danger), var(--surface) 94%);
    }
    .mobile-nav-backdrop { display: none; }
    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }
    @keyframes pulse {
      from { opacity: 0.45; transform: scale(0.9); }
      to { opacity: 1; transform: scale(1.12); }
    }
    @keyframes pageIn {
      from { opacity: 0; transform: translateY(8px); }
      to { opacity: 1; transform: translateY(0); }
    }
    @media (max-width: 1180px) {
      .grid.cols-4, .ops-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .ops-cell:nth-child(2) { border-right: 0; }
      .ops-cell:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
      .split { grid-template-columns: 1fr; }
    }
    @media (max-width: 860px) {
      .login { grid-template-columns: 1fr; }
      .login-copy { border-right: 0; border-bottom: 1px solid var(--border-soft); }
      .app { grid-template-columns: 1fr; }
      .sidebar {
        position: fixed;
        transform: translateX(-100%);
        transition: transform var(--motion-base) var(--ease-standard);
        width: min(300px, 86vw);
      }
      .sidebar.open { transform: translateX(0); }
      .mobile-nav-backdrop.open {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(20, 20, 19, 0.28);
        z-index: 4;
      }
      .mobile-menu { display: inline-flex; }
      .topbar {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: start;
        gap: 10px;
        padding: 12px 16px;
      }
      .topbar > .btn-row {
        grid-column: 1 / -1;
        justify-content: flex-start;
      }
      .page { padding: 20px 14px 28px; }
      .page-head { flex-direction: column; }
      .grid.cols-3, .grid.cols-4, .grid.cols-2, .ops-strip, .metric-list { grid-template-columns: 1fr; }
      .ops-cell, .ops-cell:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--border); }
      .ops-cell:last-child { border-bottom: 0; }
      .metric-list div { border-right: 0; border-bottom: 1px solid var(--border); }
      .metric-list div:last-child { border-bottom: 0; }
      .service-row { grid-template-columns: 1fr; }
      .event { grid-template-columns: 1fr; }
      .group-floating-menu { width: min(238px, calc(100vw - 24px)); }
      .policy-actions { justify-content: flex-start; }
      .modal .form-grid { grid-template-columns: 1fr; }
    }
    @media (prefers-reduced-motion: reduce) {
      *, *::before, *::after {
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 1ms !important;
      }
      .page.page-enter,
      .group-floating-menu {
        animation: none !important;
        transform: none !important;
      }
    }
/* Live-backend integration hooks. These preserve the Open Design visual system. */
.app > section { min-width: 0; }
.form-error { margin: 12px 0 0; color: var(--danger); font-size: 13px; }
.field-span { grid-column: 1 / -1; }
.result-list { display: grid; gap: 12px; margin-top: 16px; }
.result-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  background: var(--bg);
}
.result-item .label { grid-column: 1 / -1; }
.result-item code { min-width: 0; max-height: 100px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.modal { max-height: calc(100dvh - 28px); overflow: auto; }
.toast[data-kind="error"] { background: var(--danger); }
@media (max-width: 860px) {
  .field-span { grid-column: auto; }
  .result-item { grid-template-columns: 1fr; }
  .result-item .label { grid-column: auto; }
}