      :root {
        color-scheme: dark;
        --bg: #080a0c;
        --bg-raised: #0b0e11;
        --surface: #0f1316;
        --surface-2: #13191c;
        --surface-3: #182024;
        --line: rgba(222, 232, 224, 0.1);
        --line-strong: rgba(222, 232, 224, 0.18);
        --text: #edf2ec;
        --text-soft: #c3cdc5;
        --muted: #8a9891;
        --dim: #56625e;
        --amber: #d0a15c;
        --amber-bright: #e8bd75;
        --amber-wash: rgba(208, 161, 92, 0.12);
        --green: #77c294;
        --green-wash: rgba(119, 194, 148, 0.12);
        --red: #de8179;
        --red-wash: rgba(222, 129, 121, 0.13);
        --blue-muted: #86a8b3;
        --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
        --radius: 8px;
        --radius-small: 5px;
        --sans: "IBM Plex Sans", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
        --mono: "IBM Plex Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
      }

      .repository-picker-panel {
        margin-bottom: 18px;
        overflow: hidden;
      }

      .repository-picker-body {
        padding: 16px 17px 18px;
      }

      .repository-picker-body .form-heading {
        justify-content: space-between;
        gap: 18px;
        margin-bottom: 18px;
      }

      .repository-picker-body .form-heading p {
        max-width: 680px;
      }

      .repository-picker-form,
      .repository-register-form {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
      }

      .repository-picker-state {
        margin: 16px 0 10px;
        color: var(--muted);
        font-family: var(--mono);
        font-size: 10px;
      }

      .repository-picker-state.is-error {
        color: var(--red);
      }

      .repository-picker-list {
        display: grid;
        gap: 7px;
        min-height: 44px;
        margin-bottom: 16px;
      }

      .repository-result {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 11px 12px;
        color: var(--text);
        text-align: left;
        background: var(--surface-2);
        border: 1px solid var(--line);
        border-radius: var(--radius-small);
      }

      .repository-result:hover,
      .repository-result.is-selected {
        background: var(--amber-wash);
        border-color: rgba(208, 161, 92, 0.48);
      }

      .repository-result strong,
      .repository-result small,
      .repository-result-meta,
      .registered-repository span {
        display: block;
      }

      .repository-result small,
      .repository-result-meta,
      .registered-repository span {
        margin-top: 3px;
        overflow: hidden;
        color: var(--muted);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .repository-result-meta {
        flex: 0 0 auto;
        color: var(--amber);
        font-family: var(--mono);
        font-size: 9px;
        text-transform: uppercase;
      }

      .repository-register-form {
        align-items: end;
        padding-top: 16px;
        border-top: 1px solid var(--line);
      }

      .repository-register-form > .button {
        width: max-content;
      }

      .repository-selection {
        min-height: 66px;
        padding: 9px 11px;
        background: rgba(255, 255, 255, 0.018);
        border: 1px solid var(--line);
        border-radius: var(--radius-small);
      }

      .repository-selection .field-label {
        display: block;
        margin-bottom: 5px;
      }

      .registered-repositories {
        padding: 15px 17px 17px;
        border-top: 1px solid var(--line);
      }

      .repository-list-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 11px;
      }

      .repository-list-heading h3 {
        margin: 4px 0 0;
        font-size: 15px;
      }

      .registered-repository-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 8px;
      }

      .registered-repository,
      .repository-list-state {
        padding: 10px 11px;
        color: var(--text-soft);
        background: rgba(255, 255, 255, 0.018);
        border: 1px solid var(--line);
        border-radius: var(--radius-small);
        font-size: 12px;
      }

      .registered-repository small {
        display: block;
        margin-top: 8px;
        color: var(--amber);
        font-family: var(--mono);
        font-size: 9px;
        text-transform: uppercase;
      }

      .control-dialog {
        width: min(680px, calc(100vw - 28px));
        max-height: calc(100dvh - 28px);
        padding: 0;
        color: var(--text);
        background: var(--surface);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
      }

      .control-dialog-wide { width: min(980px, calc(100vw - 28px)); }
      .control-dialog::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(2px); }
      .dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 15px 17px; border-bottom: 1px solid var(--line); }
      .dialog-heading h2 { margin: 0; font-size: 17px; }
      .icon-button { width: 32px; height: 32px; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: var(--radius-small); font-size: 20px; line-height: 1; }
      .icon-button:hover { color: var(--text); border-color: var(--line-strong); }
      .control-dialog .repository-picker-body, .control-dialog .spawn-body { overflow: auto; max-height: calc(100dvh - 100px); }
      .repository-record-main { min-width: 0; }
      .repository-record-meta { display: grid; gap: 5px; min-width: 190px; }
      .repository-record-meta small { margin: 0; text-transform: none; }
      .status-chip { width: max-content; padding: 3px 6px; color: var(--green); background: var(--green-wash); border-radius: 3px; font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
      .repository-warning { color: var(--amber); }
      .repository-record-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
      .repository-table-list { display: grid; gap: 0; }
      .repository-registry-tools { display: flex; align-items: center; gap: 12px; padding: 13px 17px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
      .repository-registry-tools .field-label { flex: 0 0 auto; }
      .repository-registry-tools .field-control { width: min(360px, 100%); }
      .repository-registry-tools .field-help { margin-left: auto; }
      .repository-table-wrap { width: 100%; }
      .repository-table { min-width: 980px; }
      .repository-table td { padding-top: 14px; padding-bottom: 14px; }
      .repository-table td:first-child { min-width: 180px; }
      .repository-table td:nth-child(2) { min-width: 230px; }
      .repository-table td:nth-child(4) { min-width: 220px; max-width: 320px; }
      .repository-cell-muted, .repository-branch-list { display: block; color: var(--muted); font-family: var(--mono); font-size: 10px; overflow-wrap: anywhere; }
      .repository-branch-list { color: var(--text-soft); line-height: 1.6; }
      .repository-table .repository-warning { display: block; margin-top: 7px; font-size: 9px; }
      .repository-table .repository-record-actions { justify-content: flex-start; }
      .repository-list-state { color: var(--muted); text-align: left; }
      .settings-summary { margin-bottom: 18px; }
      .settings-summary-body { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px; }
      .settings-summary-body p { max-width: 680px; margin: 0; color: var(--muted); font-size: 12px; }
      .policy-panel .policy-lock { margin: 0; }
      .jira-form { display: grid; gap: 14px; padding: 17px; }
      .jira-form .repository-selection { margin-bottom: 2px; }
      .jira-form .form-actions { margin-top: 2px; }

      @media (max-width: 720px) {
        .repository-registry-tools { align-items: stretch; flex-direction: column; }
        .repository-registry-tools .field-help { margin-left: 0; }
        .repository-record-actions { justify-content: flex-start; }
        .settings-summary-body { align-items: flex-start; flex-direction: column; }
      }

      @media (max-width: 720px) {
        .repository-picker-body .form-heading,
        .repository-result {
          align-items: stretch;
          flex-direction: column;
        }

        .repository-picker-form,
        .repository-register-form {
          grid-template-columns: 1fr;
        }

        .repository-register-form > .button {
          width: 100%;
        }
      }

      * {
        box-sizing: border-box;
      }

      html {
        min-width: 320px;
        background: var(--bg);
        scroll-behavior: smooth;
      }

      body {
        position: relative;
        min-height: 100dvh;
        margin: 0;
        overflow-x: hidden;
        color: var(--text);
        background:
          radial-gradient(circle at 86% -12%, rgba(208, 161, 92, 0.08), transparent 34rem),
          var(--bg);
        font-family: var(--sans);
        font-size: 14px;
        line-height: 1.45;
      }

      body::before {
        position: fixed;
        z-index: -1;
        inset: 0;
        pointer-events: none;
        opacity: 0.24;
        background-image:
          linear-gradient(rgba(255, 255, 255, 0.024) 1px, transparent 1px),
          linear-gradient(90deg, rgba(255, 255, 255, 0.024) 1px, transparent 1px);
        background-size: 42px 42px;
        content: "";
        mask-image: linear-gradient(to bottom, black 0%, transparent 92%);
      }

      a {
        color: var(--amber-bright);
        text-decoration-thickness: 1px;
        text-underline-offset: 3px;
      }

      button,
      input,
      select,
      textarea {
        font: inherit;
      }

      button,
      select {
        cursor: pointer;
      }

      button:disabled,
      input:disabled,
      select:disabled,
      textarea:disabled {
        cursor: not-allowed;
      }

      button:focus-visible,
      input:focus-visible,
      select:focus-visible,
      textarea:focus-visible,
      tr:focus-visible,
      a:focus-visible {
        outline: 2px solid var(--amber-bright);
        outline-offset: 3px;
      }

      .skip-link {
        position: fixed;
        z-index: 20;
        top: 12px;
        left: 12px;
        padding: 8px 12px;
        color: var(--bg);
        background: var(--amber-bright);
        border-radius: var(--radius-small);
        transform: translateY(-160%);
      }

      .skip-link:focus {
        transform: translateY(0);
      }

      .is-hidden {
        display: none !important;
      }

      .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;
      }

      .app-shell {
        width: min(100% - 32px, 1500px);
        margin: 0 auto;
      }

      .topbar {
        display: flex;
        min-height: 76px;
        align-items: center;
        justify-content: space-between;
        gap: 24px;
        border-bottom: 1px solid var(--line);
      }

      .brand-lockup,
      .topbar-meta,
      .brand-copy,
      .connection-chip,
      .session-controls,
      .auth-form,
      .command-strip,
      .command-left,
      .command-right,
      .section-heading,
      .section-heading-actions,
      .filter-bar,
      .filter-group,
      .search-field,
      .panel-heading,
      .pool-card-heading,
      .capacity-figures,
      .resource-heading,
      .resource-heading-actions,
      .resource-state-panel,
      .run-primary,
      .run-secondary,
      .form-heading,
      .policy-lock,
      .footer-row {
        display: flex;
        align-items: center;
      }

      .brand-lockup {
        gap: 12px;
        min-width: max-content;
      }

      .brand-mark {
        display: grid;
        width: 30px;
        height: 30px;
        grid-template-columns: repeat(3, 1fr);
        gap: 3px;
        padding: 4px;
        background: var(--surface-3);
        border: 1px solid var(--line-strong);
        border-radius: 50%;
        transform: rotate(-12deg);
      }

      .brand-mark span {
        background: var(--amber);
        border-radius: 1px;
      }

      .brand-mark span:nth-child(2) {
        opacity: 0.54;
      }

      .brand-mark span:nth-child(3) {
        opacity: 0.22;
      }

      .brand-kicker,
      .brand-name,
      .eyebrow,
      .field-label,
      .micro-label,
      .panel-kicker,
      .stat-label,
      .policy-lock,
      .footer-label {
        font-family: var(--mono);
        text-transform: uppercase;
        letter-spacing: 0.12em;
      }

      .brand-kicker,
      .brand-name {
        margin: 0;
      }

      .brand-kicker {
        color: var(--amber);
        font-size: 10px;
        letter-spacing: 0.18em;
      }

      .brand-name {
        color: var(--text-soft);
        font-size: 12px;
        letter-spacing: 0.03em;
      }

      .topbar-meta {
        justify-content: flex-end;
        gap: 16px;
      }

      .connection-chip {
        min-height: 30px;
        gap: 8px;
        padding: 0 10px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.025);
        border: 1px solid var(--line);
        border-radius: 999px;
        font-family: var(--mono);
        font-size: 10px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .connection-chip.is-connected {
        color: var(--green);
        border-color: rgba(119, 194, 148, 0.35);
        background: var(--green-wash);
      }

      .connection-chip.is-reconnecting,
      .connection-chip.is-polling,
      .connection-chip.is-auth {
        color: var(--amber-bright);
        border-color: rgba(208, 161, 92, 0.32);
        background: var(--amber-wash);
      }

      .connection-chip.is-error,
      .connection-chip.is-offline {
        color: var(--red);
        border-color: rgba(222, 129, 121, 0.35);
        background: var(--red-wash);
      }

      .status-led {
        width: 7px;
        height: 7px;
        flex: 0 0 auto;
        background: var(--dim);
        border-radius: 50%;
        box-shadow: 0 0 0 3px rgba(86, 98, 94, 0.12);
      }

      .is-connected .status-led {
        background: var(--green);
        box-shadow: 0 0 0 3px rgba(119, 194, 148, 0.12);
      }

      .is-reconnecting .status-led,
      .is-polling .status-led,
      .is-auth .status-led {
        background: var(--amber);
        box-shadow: 0 0 0 3px rgba(208, 161, 92, 0.12);
      }

      .is-error .status-led,
      .is-offline .status-led {
        background: var(--red);
        box-shadow: 0 0 0 3px rgba(222, 129, 121, 0.12);
      }

      .session-controls {
        gap: 8px;
      }

      .auth-form {
        gap: 6px;
      }

      .auth-input,
      .search-input,
      .field-control {
        width: 100%;
        color: var(--text);
        background: var(--surface);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-small);
        transition: border-color 140ms ease, background 140ms ease;
      }

      .auth-input {
        width: 142px;
        height: 32px;
        padding: 0 10px;
        font-size: 11px;
      }

      .auth-input::placeholder,
      .search-input::placeholder,
      .field-control::placeholder {
        color: var(--dim);
        opacity: 1;
      }

      .auth-input:hover,
      .search-input:hover,
      .field-control:hover {
        background: var(--surface-2);
        border-color: rgba(222, 232, 224, 0.3);
      }

      .auth-form button,
      .button {
        min-height: 32px;
        padding: 0 12px;
        color: var(--text-soft);
        background: var(--surface-2);
        border: 1px solid var(--line-strong);
        border-radius: var(--radius-small);
        font-family: var(--mono);
        font-size: 10px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        transition: transform 120ms ease, border-color 140ms ease, color 140ms ease, background 140ms ease;
      }

      .auth-form button:hover,
      .button:hover:not(:disabled) {
        color: var(--amber-bright);
        background: var(--amber-wash);
        border-color: rgba(208, 161, 92, 0.42);
      }

      .auth-form button:active,
      .button:active:not(:disabled) {
        transform: translateY(1px);
      }

      .button-primary {
        color: var(--bg) !important;
        background: var(--amber) !important;
        border-color: var(--amber) !important;
        font-weight: 700;
      }

      .button-primary:hover:not(:disabled) {
        color: var(--bg) !important;
        background: var(--amber-bright) !important;
        border-color: var(--amber-bright) !important;
      }

      .button-danger:hover:not(:disabled) {
        color: var(--red);
        background: var(--red-wash);
        border-color: rgba(222, 129, 121, 0.42);
      }

      .button:disabled,
      .auth-form button:disabled {
        color: var(--dim);
        background: rgba(255, 255, 255, 0.02);
        border-color: var(--line);
      }

      .page {
        padding: 28px 0 42px;
      }

      .command-strip {
        min-height: 52px;
        justify-content: space-between;
        gap: 18px;
        padding: 10px 14px;
        margin-bottom: 28px;
        background: rgba(15, 19, 22, 0.72);
        border: 1px solid var(--line);
        border-left: 2px solid var(--amber);
        border-radius: var(--radius);
      }

      .command-left,
      .command-right {
        flex-wrap: wrap;
        gap: 10px 18px;
      }

      .command-left {
        min-width: 0;
      }

      .command-right {
        justify-content: flex-end;
      }

      .command-id,
      .command-copy,
      .sync-copy,
      .policy-copy {
        margin: 0;
        font-family: var(--mono);
        font-size: 10px;
      }

      .command-id {
        color: var(--amber);
        letter-spacing: 0.12em;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .command-copy,
      .sync-copy {
        color: var(--muted);
      }

      .policy-copy {
        color: var(--amber-bright);
      }

      .mini-button {
        padding: 2px 0;
        color: var(--amber-bright);
        background: transparent;
        border: 0;
        font-family: var(--mono);
        font-size: 10px;
        text-decoration: underline;
        text-underline-offset: 3px;
      }

      .mini-button:hover {
        color: var(--text);
      }

      .eyebrow,
      .panel-kicker,
      .micro-label,
      .field-label,
      .stat-label,
      .footer-label {
        color: var(--muted);
        font-size: 10px;
        line-height: 1.2;
      }

      .eyebrow {
        margin: 0 0 9px;
        color: var(--amber);
        letter-spacing: 0.2em;
      }

      h1,
      h2,
      h3,
      p {
        margin-top: 0;
      }

      h1,
      h2,
      h3 {
        font-weight: 550;
        letter-spacing: -0.035em;
      }

      h1 {
        max-width: 800px;
        margin-bottom: 10px;
        font-size: clamp(30px, 4.2vw, 52px);
        line-height: 1.02;
      }

      h2 {
        margin-bottom: 0;
        font-size: 20px;
        line-height: 1.15;
      }

      h3 {
        margin-bottom: 0;
        font-size: 15px;
      }

      .section-heading {
        justify-content: space-between;
        gap: 20px;
        margin-bottom: 20px;
      }

      .section-heading p:not(.eyebrow) {
        max-width: 680px;
        margin-bottom: 0;
        color: var(--muted);
      }

      .section-heading-actions {
        gap: 9px;
      }

      .stats-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1px;
        margin-bottom: 1px;
        overflow: hidden;
        background: var(--line);
        border: 1px solid var(--line);
        border-radius: var(--radius) var(--radius) 0 0;
      }

      .stat-card {
        min-height: 126px;
        padding: 18px;
        background: rgba(15, 19, 22, 0.95);
      }

      .stat-card:first-child {
        background: linear-gradient(135deg, rgba(208, 161, 92, 0.1), rgba(15, 19, 22, 0.96) 58%);
      }

      .resource-pulse {
        margin-bottom: 1px;
        overflow: hidden;
        background: var(--surface);
        border: 1px solid var(--line);
        border-bottom: 0;
        border-radius: var(--radius) var(--radius) 0 0;
      }

      .resource-heading {
        min-height: 65px;
        justify-content: space-between;
        gap: 16px;
        padding: 15px 17px;
        border-bottom: 1px solid var(--line);
      }

      .resource-heading h2 {
        margin: 0;
        color: var(--text-soft);
        font-size: 17px;
      }

      .resource-heading .micro-label {
        display: block;
        margin-bottom: 5px;
        color: var(--amber);
      }

      .resource-heading-actions {
        justify-content: flex-end;
        gap: 10px;
      }

      .resource-state,
      .resource-source {
        color: var(--muted);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.07em;
        text-transform: uppercase;
      }

      .resource-state {
        padding: 5px 7px;
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid var(--line);
        border-radius: var(--radius-small);
        white-space: nowrap;
      }

      .resource-state.is-ready {
        color: var(--green);
        border-color: rgba(119, 194, 148, 0.28);
        background: var(--green-wash);
      }

      .resource-state.is-loading,
      .resource-state.is-reconnecting {
        color: var(--amber-bright);
        border-color: rgba(208, 161, 92, 0.28);
        background: var(--amber-wash);
      }

      .resource-state.is-error {
        color: var(--red);
        border-color: rgba(222, 129, 121, 0.28);
        background: var(--red-wash);
      }

      .resource-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 1px;
        background: var(--line);
      }

      .resource-metric {
        min-width: 0;
        min-height: 111px;
        padding: 14px 15px;
        background: rgba(15, 19, 22, 0.95);
      }

      .resource-metric-label {
        display: block;
        color: var(--muted);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.1em;
        text-transform: uppercase;
      }

      .resource-metric-value {
        display: block;
        min-height: 27px;
        margin-top: 15px;
        overflow: hidden;
        color: var(--text);
        font-family: var(--mono);
        font-size: 20px;
        font-weight: 500;
        letter-spacing: -0.06em;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .resource-metric-meta {
        display: block;
        min-height: 15px;
        margin-top: 6px;
        overflow: hidden;
        color: var(--dim);
        font-family: var(--mono);
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .resource-state-panel {
        justify-content: space-between;
        gap: 14px;
        padding: 11px 17px 12px;
        color: var(--muted);
        border-top: 1px solid var(--line);
        font-size: 11px;
      }

      .resource-state-panel > div {
        min-width: 0;
      }

      .resource-state-panel strong {
        display: block;
        margin-bottom: 2px;
        color: var(--text-soft);
        font-family: var(--mono);
        font-size: 10px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .resource-state-panel p {
        margin: 0;
      }

      .resource-state-panel.is-error {
        color: var(--red);
        background: var(--red-wash);
      }

      .resource-state-panel.is-error strong {
        color: var(--red);
      }

      .resource-state-panel .mini-button {
        flex: 0 0 auto;
      }

      .stat-label {
        display: block;
        margin-bottom: 15px;
      }

      .stat-value {
        display: block;
        min-height: 39px;
        margin-bottom: 5px;
        color: var(--text);
        font-family: var(--mono);
        font-size: 30px;
        font-weight: 500;
        letter-spacing: -0.07em;
        line-height: 1;
      }

      .stat-helper {
        display: block;
        color: var(--muted);
        font-size: 12px;
      }

      .pool-card {
        display: grid;
        grid-template-columns: minmax(220px, 0.8fr) minmax(360px, 1.4fr) minmax(250px, 0.8fr);
        gap: 24px;
        align-items: center;
        padding: 19px 18px 20px;
        background: var(--surface);
        border: 1px solid var(--line);
        border-top: 0;
        border-radius: 0 0 var(--radius) var(--radius);
      }

      .pool-card-heading {
        justify-content: space-between;
        gap: 12px;
      }

      .pool-card-heading .micro-label {
        display: block;
        margin-bottom: 6px;
      }

      .pool-capacity-note {
        max-width: 310px;
        margin: 5px 0 0;
        color: var(--dim);
        font-family: var(--mono);
        font-size: 9px;
        line-height: 1.35;
      }

      .pool-headline {
        display: block;
        color: var(--text-soft);
        font-size: 17px;
        font-weight: 500;
      }

      .pool-state {
        padding: 5px 7px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid var(--line);
        border-radius: var(--radius-small);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .pool-state.is-ready {
        color: var(--green);
        border-color: rgba(119, 194, 148, 0.28);
        background: var(--green-wash);
      }

      .pool-state.is-loading,
      .pool-state.is-reconnecting,
      .pool-state.is-fallback,
      .pool-state.is-near-limit {
        color: var(--amber-bright);
        border-color: rgba(208, 161, 92, 0.28);
        background: var(--amber-wash);
      }

      .pool-state.is-error {
        color: var(--red);
        border-color: rgba(222, 129, 121, 0.28);
        background: var(--red-wash);
      }

      .capacity-track {
        height: 7px;
        overflow: hidden;
        background: #20282a;
        border-radius: 999px;
      }

      .capacity-fill {
        display: block;
        width: 0;
        height: 100%;
        background: var(--amber);
        border-radius: inherit;
        transition: width 350ms ease;
      }

      .capacity-fill.is-high {
        background: var(--red);
      }

      .capacity-fill.is-ready {
        background: var(--green);
      }

      .capacity-figures {
        justify-content: flex-end;
        gap: 18px;
        font-family: var(--mono);
      }

      .capacity-figure {
        display: grid;
        gap: 3px;
      }

      .capacity-figure strong {
        color: var(--text);
        font-size: 16px;
        font-weight: 500;
      }

      .capacity-figure span {
        color: var(--muted);
        font-size: 9px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .usage-panel {
        margin-top: 22px;
        overflow: hidden;
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
      }

      .usage-heading {
        display: flex;
        min-height: 65px;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 15px 17px;
        border-bottom: 1px solid var(--line);
      }

      .usage-heading h2 {
        margin: 0;
        color: var(--text-soft);
        font-size: 17px;
      }

      .usage-heading .micro-label {
        display: block;
        margin-bottom: 5px;
        color: var(--amber);
      }

      .usage-state {
        padding: 5px 7px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid var(--line);
        border-radius: var(--radius-small);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .usage-state.is-ready {
        color: var(--green);
        border-color: rgba(119, 194, 148, 0.28);
        background: var(--green-wash);
      }

      .usage-state.is-loading,
      .usage-state.is-reconnecting {
        color: var(--amber-bright);
        border-color: rgba(208, 161, 92, 0.28);
        background: var(--amber-wash);
      }

      .usage-state.is-error {
        color: var(--red);
        border-color: rgba(222, 129, 121, 0.28);
        background: var(--red-wash);
      }

      .usage-body {
        display: grid;
        gap: 18px;
        padding: 17px;
      }

      .usage-group + .usage-group {
        padding-top: 18px;
        border-top: 1px solid var(--line);
      }

      .usage-group-heading {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 10px;
      }

      .usage-group-heading h3 {
        color: var(--text-soft);
        font-size: 13px;
        letter-spacing: -0.015em;
      }

      .usage-group-note {
        color: var(--dim);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.07em;
        text-transform: uppercase;
      }

      .usage-metrics {
        display: grid;
        gap: 1px;
        overflow: hidden;
        background: var(--line);
        border: 1px solid var(--line);
        border-radius: var(--radius-small);
      }

      .usage-token-metrics {
        grid-template-columns: repeat(5, minmax(0, 1fr));
      }

      .usage-performance-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }

      .usage-metric {
        min-width: 0;
        min-height: 99px;
        padding: 14px 15px;
        background: rgba(15, 19, 22, 0.95);
      }

      .usage-metric:first-child {
        background: linear-gradient(135deg, rgba(208, 161, 92, 0.1), rgba(15, 19, 22, 0.96) 64%);
      }

      .usage-metric-label {
        display: block;
        min-height: 22px;
        color: var(--muted);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.08em;
        line-height: 1.25;
        text-transform: uppercase;
      }

      .usage-metric-value {
        display: block;
        min-height: 25px;
        margin-top: 13px;
        overflow: hidden;
        color: var(--text);
        font-family: var(--mono);
        font-size: 19px;
        font-weight: 500;
        letter-spacing: -0.06em;
        line-height: 1.1;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .usage-metric-meta {
        display: block;
        min-height: 14px;
        margin-top: 6px;
        overflow: hidden;
        color: var(--dim);
        font-family: var(--mono);
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .usage-state-panel {
        padding: 11px 17px 12px;
        color: var(--muted);
        border-top: 1px solid var(--line);
        font-size: 11px;
      }

      .usage-state-panel p {
        margin: 0;
      }

      .usage-state-panel.is-error {
        color: var(--red);
        background: var(--red-wash);
      }

      .panel {
        background: rgba(15, 19, 22, 0.93);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
      }

      .current-agents-panel {
        margin-top: 18px;
        overflow: hidden;
        background: rgba(15, 19, 22, 0.93);
        border: 1px solid var(--line);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
      }

      .current-agents-heading {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding: 15px 17px;
        border-bottom: 1px solid var(--line);
      }

      .current-agents-heading h2 {
        margin: 4px 0 0;
        font-size: 17px;
      }

      .current-agents-state {
        color: var(--muted);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .current-agents-state.is-ready,
      .current-agents-state.is-live {
        color: var(--green);
      }

      .current-agents-state.is-error {
        color: var(--red);
      }

      .current-agents-list {
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 1px;
        background: var(--line);
      }

      .current-agent-card {
        display: grid;
        min-width: 0;
        gap: 17px;
        align-content: start;
        min-height: 184px;
        padding: 17px;
        background: var(--surface);
      }

      .current-agent-identity,
      .current-agent-facts,
      .current-agent-tasks {
        min-width: 0;
      }

      .current-agent-identity {
        display: grid;
        gap: 8px;
      }

      .current-agent-identity strong {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .current-agent-status {
        flex: 0 0 auto;
        color: var(--muted);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.06em;
        text-transform: uppercase;
      }

      .current-agent-status.is-online,
      .current-agent-status.is-ready,
      .current-agent-status.is-busy,
      .current-agent-status.is-running {
        color: var(--green);
      }

      .current-agent-status.is-busy {
        color: var(--amber-bright);
      }

      .current-agent-facts {
        display: flex;
        flex-wrap: wrap;
        gap: 12px 18px;
      }

      .current-agent-fact {
        display: grid;
        min-width: 0;
        gap: 2px;
      }

      .current-agent-fact > span,
      .current-agent-task-label {
        color: var(--dim);
        font-family: var(--mono);
        font-size: 8px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .current-agent-fact strong,
      .current-agent-idle,
      .current-agent-tasks a {
        overflow: hidden;
        color: var(--text-soft);
        font-family: var(--mono);
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .current-agent-tasks {
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px 10px;
      }

      .current-agent-tasks a {
        max-width: 100%;
      }

      .current-agents-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 11px 17px;
        border-top: 1px solid var(--line);
      }

      .current-agents-page-summary {
        color: var(--muted);
        font-family: var(--mono);
        font-size: 10px;
      }

      .current-agents-page-controls {
        display: flex;
        gap: 7px;
      }

      .current-agents-state-panel {
        padding: 17px;
        color: var(--muted);
        border-top: 1px solid var(--line);
        font-size: 11px;
      }

      .current-agents-state-panel strong {
        display: block;
        margin-bottom: 4px;
        color: var(--text-soft);
        font-family: var(--mono);
        font-size: 10px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .current-agents-state-panel p {
        margin: 0;
      }

      .current-agents-state-panel[role="alert"] {
        color: var(--red);
        background: var(--red-wash);
      }

      .runs-panel,
      .agent-panel,
      .spawn-panel {
        min-width: 0;
      }

      .panel-heading {
        min-height: 65px;
        justify-content: space-between;
        gap: 16px;
        padding: 15px 17px;
        border-bottom: 1px solid var(--line);
      }

      .panel-kicker {
        display: block;
        margin-bottom: 5px;
        color: var(--amber);
      }

      .panel-heading h2 {
        font-size: 17px;
      }

      .filter-bar {
        justify-content: space-between;
        gap: 12px;
        padding: 10px 17px;
        border-bottom: 1px solid var(--line);
      }

      .filter-group {
        flex-wrap: wrap;
        gap: 5px;
      }

      .filter-button {
        padding: 5px 8px;
        color: var(--muted);
        background: transparent;
        border: 1px solid transparent;
        border-radius: var(--radius-small);
        font-family: var(--mono);
        font-size: 10px;
        letter-spacing: 0.05em;
        text-transform: uppercase;
      }

      .filter-button:hover,
      .filter-button[aria-pressed="true"] {
        color: var(--amber-bright);
        background: var(--amber-wash);
        border-color: rgba(208, 161, 92, 0.27);
      }

      .search-field {
        position: relative;
        width: min(100%, 190px);
      }

      .search-field::before {
        position: absolute;
        top: 50%;
        left: 10px;
        width: 10px;
        height: 10px;
        border: 1px solid var(--muted);
        border-radius: 50%;
        content: "";
        transform: translateY(-55%);
      }

      .search-field::after {
        position: absolute;
        top: calc(50% + 4px);
        left: 19px;
        width: 5px;
        height: 1px;
        background: var(--muted);
        content: "";
        transform: rotate(45deg);
      }

      .search-input {
        height: 30px;
        padding: 0 9px 0 29px;
        font-family: var(--mono);
        font-size: 10px;
      }

      .table-wrap {
        overflow-x: auto;
      }

      .run-table {
        width: 100%;
        min-width: 690px;
        border-collapse: collapse;
      }

      .run-table th {
        padding: 11px 17px 9px;
        color: var(--dim);
        font-family: var(--mono);
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 0.1em;
        text-align: left;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .run-table td {
        padding: 13px 17px;
        border-top: 1px solid rgba(222, 232, 224, 0.065);
        vertical-align: middle;
      }

      .run-table tbody tr {
        transition: background 130ms ease;
      }

      .run-table tbody tr:hover,
      .run-table tbody tr[aria-selected="true"] {
        background: rgba(208, 161, 92, 0.075);
      }

      .run-table tbody tr[aria-selected="true"] {
        box-shadow: inset 2px 0 0 var(--amber);
      }

      .run-primary {
        min-width: 180px;
        gap: 9px;
      }

      .run-index {
        color: var(--dim);
        font-family: var(--mono);
        font-size: 10px;
      }

      .run-id {
        display: block;
        margin-bottom: 2px;
        color: var(--text);
        font-family: var(--mono);
        font-size: 12px;
        font-weight: 500;
      }

      .run-source,
      .run-subtext {
        display: block;
        max-width: 220px;
        overflow: hidden;
        color: var(--muted);
        font-size: 11px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .run-secondary {
        gap: 5px;
        color: var(--text-soft);
        font-family: var(--mono);
        font-size: 11px;
        white-space: nowrap;
      }

      .run-secondary::before {
        color: var(--dim);
        content: "↳";
      }

      .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 5px 7px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid var(--line);
        border-radius: var(--radius-small);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .status-badge::before {
        width: 5px;
        height: 5px;
        background: var(--dim);
        border-radius: 50%;
        content: "";
      }

      .status-badge.status-running::before,
      .status-badge.status-approved::before,
      .status-badge.status-completed::before {
        background: var(--green);
      }

      .status-badge.status-running,
      .status-badge.status-approved,
      .status-badge.status-completed {
        color: var(--green);
        border-color: rgba(119, 194, 148, 0.25);
        background: var(--green-wash);
      }

      .status-badge.status-queued,
      .status-badge.status-awaiting_review,
      .status-badge.status-merging {
        color: var(--amber-bright);
        border-color: rgba(208, 161, 92, 0.25);
        background: var(--amber-wash);
      }

      .status-badge.status-queued::before,
      .status-badge.status-awaiting_review::before,
      .status-badge.status-merging::before {
        background: var(--amber);
      }

      .status-badge.status-failed,
      .status-badge.status-cancelled {
        color: var(--red);
        border-color: rgba(222, 129, 121, 0.27);
        background: var(--red-wash);
      }

      .status-badge.status-failed::before,
      .status-badge.status-cancelled::before {
        background: var(--red);
      }

      .settings-summary,
      .updated-summary {
        color: var(--muted);
        font-family: var(--mono);
        font-size: 10px;
        white-space: nowrap;
      }

      .settings-summary strong {
        display: block;
        margin-bottom: 3px;
        color: var(--text-soft);
        font-size: 11px;
        font-weight: 400;
      }

      .settings-summary span {
        display: block;
      }

      .skeleton-line {
        display: block;
        width: 80px;
        height: 11px;
        background: linear-gradient(90deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.05));
        background-size: 240% 100%;
        border-radius: 3px;
        animation: skeleton-pulse 1.45s ease-in-out infinite;
      }

      .skeleton-line.wide {
        width: 150px;
      }

      .skeleton-line.short {
        width: 52px;
      }

      @keyframes skeleton-pulse {
        0%,
        100% {
          background-position: 100% 0;
        }
        50% {
          background-position: 0 0;
        }
      }

      .inline-state {
        padding: 25px 17px 27px;
        color: var(--muted);
        font-size: 12px;
        text-align: center;
      }

      .inline-state strong {
        display: block;
        margin-bottom: 5px;
        color: var(--text-soft);
        font-family: var(--mono);
        font-size: 11px;
        font-weight: 500;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .agent-panel {
        min-height: 100%;
      }

      .agent-summary {
        color: var(--muted);
        font-family: var(--mono);
        font-size: 10px;
      }

      .agent-list {
        display: grid;
        gap: 1px;
        padding: 1px 0;
        margin: 0;
        list-style: none;
        background: var(--line);
      }

      .agent-item {
        padding: 14px 17px;
        background: var(--surface);
      }

      .policy-lock {
        gap: 7px;
        padding: 9px 17px;
        color: var(--amber-bright);
        background: rgba(208, 161, 92, 0.07);
        border-bottom: 1px solid rgba(208, 161, 92, 0.17);
        font-size: 9px;
      }

      .policy-lock::before {
        display: grid;
        width: 14px;
        height: 14px;
        place-items: center;
        color: var(--bg);
        background: var(--amber);
        border-radius: 50%;
        content: "!";
        font-family: var(--sans);
        font-weight: 800;
      }

      .spawn-panel {
        margin-bottom: 18px;
      }

      .spawn-body {
        padding: 18px;
      }

      .form-heading {
        justify-content: space-between;
        gap: 14px;
        margin-bottom: 18px;
      }

      .form-heading p {
        max-width: 700px;
        margin-bottom: 0;
        color: var(--muted);
        font-size: 12px;
      }

      .future-badge {
        padding: 5px 7px;
        color: var(--muted);
        background: rgba(255, 255, 255, 0.035);
        border: 1px solid var(--line);
        border-radius: var(--radius-small);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        white-space: nowrap;
      }

      .spawn-form {
        display: grid;
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 15px;
      }

      .field {
        display: grid;
        min-width: 0;
        gap: 7px;
        grid-column: span 3;
      }

      .field.span-4 {
        grid-column: span 4;
      }

      .field.span-6 {
        grid-column: span 6;
      }

      .field.span-8 {
        grid-column: span 8;
      }

      .field.span-9 {
        grid-column: span 9;
      }

      .field.span-12 {
        grid-column: span 12;
      }

      .field-label {
        color: var(--text-soft);
        font-size: 9px;
        letter-spacing: 0.09em;
      }

      .field-control {
        min-height: 37px;
        padding: 7px 10px;
        font-size: 12px;
      }

      select.field-control {
        appearance: none;
        padding-right: 29px;
        background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
        background-position: calc(100% - 14px) 16px, calc(100% - 10px) 16px;
        background-repeat: no-repeat;
        background-size: 4px 4px, 4px 4px;
      }

      .field-control:disabled {
        color: var(--dim);
        background-color: rgba(255, 255, 255, 0.02);
      }

      textarea.field-control {
        min-height: 102px;
        resize: vertical;
      }

      .field-help {
        min-height: 15px;
        margin: 0;
        color: var(--dim);
        font-size: 10px;
      }

      .form-actions {
        display: flex;
        grid-column: span 12;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-top: 2px;
      }

      .form-actions small {
        color: var(--dim);
        font-family: var(--mono);
        font-size: 10px;
      }

      .form-actions .button {
        min-height: 38px;
        padding-inline: 16px;
      }

      .data-error {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        padding: 10px 17px;
        color: var(--red);
        background: var(--red-wash);
        border-bottom: 1px solid rgba(222, 129, 121, 0.22);
        font-family: var(--mono);
        font-size: 10px;
      }

      .toast-region {
        position: fixed;
        z-index: 10;
        right: 18px;
        bottom: 18px;
        display: grid;
        width: min(360px, calc(100vw - 36px));
        gap: 8px;
      }

      .toast {
        padding: 12px 14px;
        color: var(--text-soft);
        background: #171d20;
        border: 1px solid var(--line-strong);
        border-left: 2px solid var(--amber);
        border-radius: var(--radius-small);
        box-shadow: var(--shadow);
        font-size: 12px;
      }

      .toast.is-error {
        border-left-color: var(--red);
      }

      .footer-row {
        justify-content: space-between;
        gap: 18px;
        padding-top: 5px;
        color: var(--dim);
        font-family: var(--mono);
        font-size: 10px;
      }

      .footer-row p {
        margin: 0;
      }

      .footer-label {
        margin-right: 6px;
        color: var(--muted);
        font-size: 9px;
      }

      @media (max-width: 1180px) {
        .resource-grid {
          grid-template-columns: repeat(4, minmax(0, 1fr));
        }

        .pool-card {
          grid-template-columns: minmax(200px, 0.8fr) minmax(230px, 1fr);
        }

        .capacity-figures {
          grid-column: 1 / -1;
          justify-content: flex-start;
        }

      }

      @media (max-width: 980px) {
        .topbar {
          align-items: flex-start;
          flex-direction: column;
          padding: 16px 0;
        }

        .topbar-meta {
          width: 100%;
          justify-content: space-between;
        }

        .agent-panel {
          min-height: 0;
        }

        .agent-list {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

      }

      @media (max-width: 720px) {
        .app-shell {
          width: min(100% - 22px, 1500px);
        }

        .brand-lockup {
          min-width: 0;
          max-width: 100%;
        }

        .brand-copy {
          min-width: 0;
          flex-wrap: wrap;
        }

        .brand-kicker,
        .brand-name {
          max-width: 100%;
        }

        .page {
          padding-top: 18px;
        }

        .topbar-meta,
        .command-strip,
        .section-heading,
        .filter-bar,
        .resource-heading,
        .usage-heading,
        .form-heading,
        .form-actions,
        .footer-row {
          align-items: flex-start;
          flex-direction: column;
        }

        .topbar-meta,
        .session-controls,
        .command-right,
        .command-left,
        .section-heading-actions,
        .form-actions {
          width: 100%;
        }

        .auth-form,
        .session-controls {
          width: 100%;
        }

        .auth-input {
          flex: 1 1 auto;
          width: auto;
        }

        .command-strip {
          gap: 9px;
          margin-bottom: 22px;
        }

        .command-right {
          justify-content: flex-start;
        }

        .stats-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .stat-card {
          min-height: 112px;
          padding: 15px;
        }

        .stat-value {
          font-size: 26px;
        }

        .pool-card {
          grid-template-columns: 1fr;
          gap: 16px;
          padding: 16px;
        }

        .capacity-figures {
          grid-column: auto;
        }

        .filter-bar {
          gap: 10px;
        }

        .search-field {
          width: 100%;
        }

        .agent-list {
          grid-template-columns: 1fr;
        }

        .panel-heading {
          align-items: flex-start;
          flex-direction: column;
        }

        .resource-heading-actions {
          width: 100%;
          justify-content: space-between;
        }

        .usage-token-metrics {
          grid-template-columns: repeat(3, minmax(0, 1fr));
        }

        .usage-performance-metrics {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .resource-state-panel {
          align-items: flex-start;
          flex-direction: column;
        }

        .spawn-form {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .field,
        .field.span-4,
        .field.span-6,
        .field.span-8,
        .field.span-9 {
          grid-column: span 1;
        }

        .field.span-12,
        .form-actions {
          grid-column: span 2;
        }
      }

      @media (max-width: 460px) {
        .auth-form {
          flex-wrap: wrap;
        }

        .auth-input {
          flex: 1 1 100%;
          width: 100%;
        }

        .stats-grid {
          grid-template-columns: 1fr 1fr;
        }

        .stat-card {
          min-height: 105px;
          padding: 13px;
        }

        .stat-label {
          margin-bottom: 11px;
          font-size: 9px;
        }

        .stat-value {
          font-size: 23px;
        }

        .capacity-figures {
          align-items: flex-start;
          flex-direction: column;
          gap: 10px;
        }

        .resource-grid {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .resource-metric {
          min-height: 100px;
          padding: 13px;
        }

        .resource-metric-value {
          font-size: 18px;
        }

        .usage-token-metrics,
        .usage-performance-metrics {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .usage-body {
          padding: 13px;
        }

        .usage-metric {
          padding: 13px;
        }

        .spawn-form {
          display: block;
        }

        .field,
        .field.span-4,
        .field.span-6,
        .field.span-8,
        .field.span-9,
        .field.span-12,
        .form-actions {
          margin-bottom: 15px;
        }

        .form-actions {
          align-items: stretch;
        }

        .form-actions .button {
          width: 100%;
        }
      }

      @media (prefers-reduced-motion: reduce) {
        html {
          scroll-behavior: auto;
        }

        *,
        *::before,
        *::after {
          animation-duration: 0.001ms !important;
          animation-iteration-count: 1 !important;
          scroll-behavior: auto !important;
          transition-duration: 0.001ms !important;
        }
      }

      [data-reduced-motion="true"] .skeleton-line {
        animation: none;
      }

      /* Route shell and controller-owned surfaces. */
      .page-nav {
        display: flex;
        gap: 4px;
        overflow-x: auto;
        padding: 12px 0 0;
        border-bottom: 1px solid var(--line);
        scrollbar-width: thin;
      }

      .page-tab {
        flex: 0 0 auto;
        padding: 9px 12px 10px;
        color: var(--muted);
        border-bottom: 2px solid transparent;
        font-family: var(--mono);
        font-size: 10px;
        letter-spacing: 0.09em;
        text-decoration: none;
        text-transform: uppercase;
        transition: color 140ms ease, border-color 140ms ease, background 140ms ease;
      }

      .page-tab:hover,
      .page-tab.is-active {
        color: var(--amber-bright);
        background: var(--amber-wash);
        border-bottom-color: var(--amber);
      }

      .page-panel {
        min-width: 0;
        margin-bottom: 28px;
      }

      .page-panel > .section-heading {
        padding-top: 2px;
      }

      .button-link {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-decoration: none;
      }

      .pagination {
        padding: 12px 17px 14px;
        border-top: 1px solid var(--line);
      }

      .ledger-pagination,
      .fleet-pagination {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 14px;
      }

      .ledger-page-summary,
      .fleet-page-summary {
        margin: 0;
        color: var(--muted);
        font-family: var(--mono);
        font-size: 10px;
      }

      .ledger-page-controls,
      .fleet-page-controls {
        display: flex;
        align-items: center;
        gap: 4px;
      }

      .ledger-page-numbers {
        display: flex;
        gap: 4px;
        padding: 0;
        margin: 0;
        list-style: none;
      }

      .ledger-page-button,
      .fleet-page-button {
        min-width: 28px;
        min-height: 28px;
        padding: 4px 7px;
        color: var(--muted);
        background: transparent;
        border: 1px solid transparent;
        border-radius: var(--radius-small);
        font-family: var(--mono);
        font-size: 10px;
        transition: color 140ms ease, border-color 140ms ease, background 140ms ease, transform 120ms ease;
      }

      .ledger-page-button:hover:not(:disabled),
      .fleet-page-button:hover:not(:disabled),
      .ledger-page-button[aria-current="page"],
      .fleet-page-button[aria-current="page"],
      .fleet-page-button[data-selected="true"] {
        color: var(--amber-bright);
        background: var(--amber-wash);
        border-color: rgba(208, 161, 92, 0.3);
      }

      .ledger-page-button:active:not(:disabled),
      .fleet-page-button:active:not(:disabled) {
        transform: translateY(1px);
      }

      .ledger-page-button:disabled,
      .fleet-page-button:disabled {
        color: var(--dim);
        cursor: not-allowed;
      }

      .ledger-inline-cell {
        padding: 0 !important;
        background: #0a0d0e;
      }

      .console-placeholder {
        padding: 16px 17px 18px;
        color: var(--dim);
        border-top: 1px solid var(--line);
        font-family: var(--mono);
        font-size: 10px;
        text-align: center;
      }

      .skeleton-row td {
        height: 48px;
      }

      .fleet-agent-item {
        padding: 0;
        background: var(--surface);
      }

      .fleet-agent {
        display: grid;
        width: 100%;
        gap: 9px;
        padding: 12px 17px 13px;
        color: var(--text);
        text-align: left;
        background: var(--surface);
        border: 0;
        border-left: 2px solid transparent;
        border-radius: 0;
        transition: background 130ms ease, border-color 130ms ease;
      }

      .fleet-agent:hover,
      .fleet-agent.is-active,
      .fleet-agent-item.is-active .fleet-agent {
        background: rgba(208, 161, 92, 0.075);
        border-left-color: var(--amber);
      }

      .fleet-agent-identity {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
      }

      .fleet-agent-name {
        min-width: 0;
        overflow: hidden;
        color: var(--text);
        font-size: 13px;
        font-weight: 500;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .fleet-agent-status {
        flex: 0 0 auto;
        color: var(--muted);
        font-family: var(--mono);
        font-size: 9px;
        letter-spacing: 0.07em;
        text-transform: uppercase;
      }

      .fleet-agent-status.is-online,
      .fleet-agent-status.is-ready,
      .fleet-agent-status.is-busy,
      .fleet-agent-status.is-running {
        color: var(--green);
      }

      .fleet-agent-status.is-busy {
        color: var(--amber-bright);
      }

      .fleet-agent-status.is-offline,
      .fleet-agent-status.is-error,
      .fleet-agent-status.is-unknown {
        color: var(--red);
      }

      .fleet-agent-details,
      .fleet-agent-signal {
        display: grid;
        gap: 8px 12px;
      }

      .fleet-agent-details {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }

      .fleet-agent-id {
        grid-column: 1 / -1;
        overflow: hidden;
        color: var(--dim);
        font-family: var(--mono);
        font-size: 9px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .fleet-agent-signal {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding-top: 3px;
        border-top: 1px solid var(--line);
      }

      .fleet-agent-field {
        display: grid;
        min-width: 0;
        gap: 3px;
      }

      .fleet-agent-field-label {
        color: var(--dim);
        font-family: var(--mono);
        font-size: 8px;
        letter-spacing: 0.08em;
        text-transform: uppercase;
      }

      .fleet-agent-field-value {
        overflow: hidden;
        color: var(--text-soft);
        font-family: var(--mono);
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .fleet-empty-state {
        padding: 25px 17px 27px;
        color: var(--muted);
        font-family: var(--mono);
        font-size: 10px;
        text-align: center;
      }

      @media (max-width: 720px) {
        .page-nav {
          margin-inline: -1px;
        }

        .ledger-pagination,
        .fleet-pagination {
          align-items: flex-start;
          flex-direction: column;
        }

        .fleet-agent-signal {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .current-agents-list {
          grid-template-columns: repeat(2, minmax(0, 1fr));
        }

        .current-agent-tasks {
          grid-column: 1 / -1;
        }
      }

      @media (max-width: 460px) {
        .ledger-page-controls,
        .fleet-page-controls {
          width: 100%;
          justify-content: space-between;
        }

        .ledger-page-numbers {
          flex: 1 1 auto;
          justify-content: center;
        }

        .fleet-agent-details,
        .fleet-agent-signal {
          grid-template-columns: 1fr;
        }

        .current-agents-list {
          grid-template-columns: 1fr;
        }

        .current-agent-card {
          min-height: 0;
        }

        .fleet-agent-id {
          grid-column: auto;
        }
      }
