/* Legacy component styles, scoped to .legacy. Generated from a2spa-site.css. */
.legacy {
  color-scheme: dark;
  --a2spa-blue: #1784db;
  --a2spa-purple: #6c25be;
  --a2spa-gold: #bea925;
  --bg: #070a0f;
  --bg-2: #0b111a;
  --panel: rgba(16, 23, 34, 0.9);
  --panel-2: rgba(22, 31, 45, 0.92);
  --card: rgba(22, 29, 42, 0.84);
  --card-strong: #171f2d;
  --border: rgba(157, 176, 205, 0.16);
  --border-strong: rgba(157, 176, 205, 0.28);
  --text: #f4f8ff;
  --muted: #9daec3;
  --soft: #748295;
  --accent: #1784db;
  --accent-2: #6c25be;
  --accent-3: #bea925;
  --success: #42d392;
  --warning: #f7c948;
  --danger: #ff6b6b;
  --gradient: linear-gradient(90deg, var(--a2spa-blue), var(--a2spa-purple), var(--a2spa-gold));
  --brand-cyan: var(--a2spa-blue);
  --brand-purple: var(--a2spa-purple);
  --brand-gold: var(--a2spa-gold);
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.34);
  --shadow-sm: 0 14px 38px rgba(0, 0, 0, 0.22);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --shell: 1180px;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
}
.legacy {
  font-size: 16px;
}
.legacy * {
  box-sizing: border-box;
}
.legacy {
  scroll-behavior: smooth;
}
.legacy {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 8%, rgba(23, 132, 219, 0.18), transparent 30%),
    radial-gradient(circle at 85% 4%, rgba(108, 37, 190, 0.12), transparent 26%),
    radial-gradient(circle at 76% 34%, rgba(190, 169, 37, 0.08), transparent 24%),
    linear-gradient(180deg, #070a0f 0%, #0b111a 58%, #070a0f 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Arial, sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
.legacy body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 78%);
}
.legacy a {
  color: inherit;
}
.legacy code, .legacy pre, .legacy kbd {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.legacy .site-shell {
  width: min(calc(100% - 32px), var(--shell));
  margin: 0 auto;
}
.legacy .site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(157, 176, 205, 0.12);
  background: rgba(7, 10, 15, 0.78);
  backdrop-filter: blur(18px);
}
.legacy .site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  padding: 16px 0;
}
.legacy .brand {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
}
.legacy .brand__mark, .legacy .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.legacy .brand__mark {
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 1;
}
.legacy .brand__tagline {
  color: var(--muted);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  line-height: 1.2;
  text-transform: uppercase;
}
.legacy .brand__release {
  width: fit-content;
  margin-top: 4px;
  border: 1px solid rgba(247, 201, 72, 0.42);
  border-radius: 999px;
  padding: 2px 7px;
  color: var(--warning);
  background: rgba(247, 201, 72, 0.08);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.35;
  text-transform: uppercase;
}
.legacy .site-nav, .legacy .site-footer__links, .legacy .button-row, .legacy .inline-actions, .legacy .action-buttons {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.legacy .site-nav {
  justify-content: flex-end;
}
.legacy .site-nav a, .legacy .site-footer__links a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 500;
  text-decoration: none;
}
.legacy .site-nav a {
  border-radius: 999px;
  padding: 9px 12px;
}
.legacy .site-nav a:hover, .legacy .site-footer__links a:hover {
  color: var(--text);
}
.legacy .site-nav .nav-pill {
  color: #071018;
  background: var(--gradient);
  font-weight: 700;
  padding-inline: 15px;
}
.legacy .site-footer {
  border-top: 1px solid rgba(157, 176, 205, 0.12);
  background: rgba(7, 10, 15, 0.72);
  color: var(--muted);
  padding: var(--space-10) 0;
}
.legacy .site-footer__grid {
  display: flex;
  justify-content: space-between;
  gap: var(--space-6);
}
.legacy .site-footer p {
  margin: var(--space-2) 0 0;
}
.legacy .hero, .legacy .section, .legacy .page-section {
  padding: var(--space-16) 0;
}
.legacy .hero--compact {
  padding: var(--space-12) 0 var(--space-8);
}
.legacy .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: var(--space-8);
  align-items: center;
}
.legacy .eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(23, 132, 219, 0.28);
  border-radius: 999px;
  background: rgba(23, 132, 219, 0.1);
  color: #bcecf8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  padding: 8px 12px;
  text-transform: uppercase;
}
.legacy .hero h1, .legacy .page-title, .legacy .section-title {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 0.98;
}
.legacy .hero h1, .legacy .page-title {
  margin-top: var(--space-5);
  max-width: 850px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  font-weight: 800;
}
.legacy .page-title {
  font-size: clamp(2.4rem, 5vw, 4.5rem);
}
.legacy .hero-lede, .legacy .page-lede, .legacy .section-lede {
  max-width: 780px;
  margin: var(--space-5) 0 0;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}
.legacy .section-title {
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 780;
}
.legacy .section-kicker {
  margin-bottom: var(--space-4);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.legacy .card, .legacy .panel, .legacy .feature-card, .legacy .auth-card, .legacy .modal-content {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.legacy .panel {
  padding: var(--space-8);
}
.legacy .card, .legacy .feature-card {
  padding: var(--space-6);
}
.legacy .card h2, .legacy .card h3, .legacy .feature-card h3, .legacy .panel h2, .legacy .panel h3 {
  margin: 0 0 var(--space-3);
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.legacy .card p, .legacy .feature-card p, .legacy .panel p, .legacy .muted {
  color: var(--muted);
}
.legacy .card p, .legacy .feature-card p, .legacy .panel p {
  margin: 0;
}
.legacy .stack, .legacy .content-stack {
  display: grid;
  gap: var(--space-6);
}
.legacy .stack-lg {
  display: grid;
  gap: var(--space-8);
}
.legacy .section-offset {
  margin-top: clamp(28px, 3vw, 44px);
}
.legacy .grid-2, .legacy .grid-3, .legacy .grid-4, .legacy .split-grid, .legacy .stats-grid, .legacy .filter-grid, .legacy .continuity-grid {
  display: grid;
  gap: var(--space-5);
}
.legacy .grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.legacy .grid-3, .legacy .stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.legacy .grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.legacy .split-grid {
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
}
.legacy .docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: var(--space-8);
  align-items: start;
}
.legacy .docs-nav {
  position: sticky;
  top: 90px;
  display: grid;
  gap: 6px;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.74);
}
.legacy .docs-nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 10px;
}
.legacy .docs-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.legacy .doc-section {
  scroll-margin-top: 110px;
}
.legacy .code-block, .legacy pre.code-block, .legacy .template, .legacy .payload-details, .legacy .key-display {
  overflow-x: auto;
  border: 1px solid rgba(157, 176, 205, 0.16);
  border-radius: var(--radius);
  background: #07101a;
  color: #dbeafe;
}
.legacy .code-block, .legacy pre.code-block {
  padding: var(--space-5);
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre;
}
.legacy .template-header, .legacy .table-toolbar, .legacy .section-header, .legacy .modal-header, .legacy .dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.legacy .template-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.legacy .template pre {
  margin: 0;
  padding: var(--space-5);
  white-space: pre;
}
.legacy .table-container {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.72);
}
.legacy .table-container table {
  min-width: 640px;
}
.legacy .comparison-table {
  min-width: 980px;
}
.legacy table, .legacy .data-table {
  width: 100%;
  border-collapse: collapse;
}
.legacy th, .legacy td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(157, 176, 205, 0.12);
  text-align: left;
  vertical-align: top;
}
.legacy th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legacy td {
  color: var(--muted);
}
.legacy tr:last-child td {
  border-bottom: 0;
}
.legacy .btn, .legacy button.btn, .legacy .submit-button, .legacy .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 10px 16px;
  color: #071018;
  background: var(--gradient);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}
.legacy .btn:hover, .legacy .submit-button:hover, .legacy .submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(23, 132, 219, 0.16);
}
.legacy .btn-secondary, .legacy .btn.btn-secondary, .legacy .gate-button-secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border);
}
.legacy .btn-danger, .legacy .btn.btn-danger {
  color: #fff;
  background: rgba(255, 107, 107, 0.16);
  border-color: rgba(255, 107, 107, 0.34);
}
.legacy .btn-sm, .legacy .btn.btn-sm {
  min-height: 30px;
  padding: 6px 11px;
  font-size: 0.82rem;
}
.legacy .form-grid, .legacy .form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.legacy .form-group, .legacy .filter-field {
  display: grid;
  gap: var(--space-2);
}
.legacy .form-label, .legacy .filter-label, .legacy label {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 650;
}
.legacy .input-field, .legacy .form-input, .legacy .form-select, .legacy .form-textarea, .legacy textarea, .legacy select, .legacy input[type="text"], .legacy input[type="email"], .legacy input[type="password"], .legacy input[type="number"], .legacy input[type="url"], .legacy input[type="date"], .legacy input[type="datetime-local"] {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(7, 16, 26, 0.9);
  color: var(--text);
  font: inherit;
  padding: 12px 14px;
}
.legacy textarea, .legacy .form-textarea, .legacy .textarea-field {
  min-height: 132px;
  resize: vertical;
}
.legacy .input-field:focus, .legacy .form-input:focus, .legacy .form-select:focus, .legacy .form-textarea:focus, .legacy textarea:focus, .legacy select:focus, .legacy input:focus {
  border-color: rgba(23, 132, 219, 0.64);
  box-shadow: 0 0 0 4px rgba(23, 132, 219, 0.1);
  outline: none;
}
.legacy .checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
}
.legacy .checkbox-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.legacy .required {
  color: var(--danger);
}
.legacy .full-width, .legacy .form-group.full-width {
  grid-column: 1 / -1;
}
.legacy .form-note, .legacy .terms-checkbox, .legacy .password-strength, .legacy .resend-timer {
  color: var(--muted);
  font-size: 0.88rem;
}
.legacy .terms-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
}
.legacy .strength-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}
.legacy .strength-fill {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--danger);
  transition: width 0.2s ease, background 0.2s ease;
}
.legacy .strength-medium {
  background: var(--warning);
}
.legacy .strength-strong {
  background: var(--success);
}
.legacy .alert, .legacy .notice, .legacy .feedback, .legacy .message, .legacy .error-message, .legacy .success-message, .legacy .credit-alert {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.035);
}
.legacy .alert-info, .legacy .notice-info {
  border-color: rgba(23, 132, 219, 0.28);
  background: rgba(23, 132, 219, 0.09);
}
.legacy .alert-success, .legacy .success-message, .legacy .feedback-success, .legacy .feedback.success {
  color: #d9ffe9;
  border-color: rgba(66, 211, 146, 0.3);
  background: rgba(66, 211, 146, 0.1);
}
.legacy .alert-warning, .legacy .stat-subtitle-warning {
  color: #ffe9a6;
  border-color: rgba(247, 201, 72, 0.3);
  background: rgba(247, 201, 72, 0.08);
}
.legacy .alert-error, .legacy .error-message, .legacy .feedback-error, .legacy .feedback.error, .legacy .credit-alert.critical {
  color: #ffd9d9;
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.1);
}
.legacy .credit-alert.low {
  color: #ffe9a6;
  border-color: rgba(247, 201, 72, 0.3);
  background: rgba(247, 201, 72, 0.08);
}
.legacy .auth-page main {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 164px);
  padding: var(--space-12) 0;
}
.legacy .auth-card {
  width: min(100%, 430px);
  padding: var(--space-8);
}
.legacy .auth-card h1 {
  margin: 0;
  letter-spacing: -0.04em;
}
.legacy .auth-card form {
  display: grid;
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.legacy .auth-subtitle, .legacy .stat-subtitle, .legacy .table-summary {
  color: var(--muted);
  font-size: 0.92rem;
}
.legacy .auth-footer {
  margin-top: var(--space-5);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--muted);
  text-align: center;
}
.legacy .auth-link, .legacy .text-link, .legacy .contact-link {
  color: #7dd3fc;
  text-decoration: none;
}
.legacy.dashboard-page {
  padding: var(--space-8) 0 var(--space-16);
}
.legacy .dashboard-container, .legacy .dashboard-shell {
  width: min(calc(100% - 32px), 1280px);
  margin: 0 auto;
}
.legacy .dashboard-container > .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  margin-bottom: var(--space-8);
  padding: var(--space-6);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--panel);
}
.legacy .header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.legacy .logout-btn {
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}
.legacy .stat-card, .legacy .dashboard-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.legacy .dashboard-panel {
  display: grid;
  gap: var(--space-5);
}
.legacy .dashboard-collapsible {
  display: block;
}
.legacy .dashboard-panel-summary {
  cursor: pointer;
  list-style: none;
}
.legacy .dashboard-panel-summary::-webkit-details-marker {
  display: none;
}
.legacy .dashboard-panel-summary h2, .legacy .dashboard-panel-summary p {
  margin: 0;
}
.legacy .dashboard-panel-body {
  display: grid;
  gap: var(--space-5);
  margin-top: var(--space-5);
}
.legacy .collapse-hint {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0;
  padding: 7px 11px;
}
.legacy .collapse-hint::after {
  content: "Expand";
  font-size: 0.82rem;
  font-weight: 700;
}
.legacy .dashboard-collapsible[open] .collapse-hint::after {
  content: "Collapse";
}
.legacy .dashboard-panel h2, .legacy .dashboard-panel h3 {
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.16;
}
.legacy .stat-value, .legacy .balance-display {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.05em;
}
.legacy .api-key-section, .legacy .billing-section, .legacy .load-more-row, .legacy .modal-actions, .legacy .incident-controls, .legacy .incident-pagination {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
}
.legacy .filter-grid {
  grid-template-columns: minmax(220px, 2fr) repeat(2, minmax(160px, 1fr));
}
.legacy .continuity-grid {
  grid-template-columns: repeat(4, minmax(140px, 1fr));
}
.legacy .continuity-wide {
  grid-column: 1 / -1;
}
.legacy .status-badge, .legacy .chip, .legacy .meta-chip, .legacy .category-chip, .legacy .label {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
  padding: 5px 9px;
}
.legacy .status-enabled, .legacy .chip.approved {
  color: var(--success);
}
.legacy .status-disabled, .legacy .chip.rejected {
  color: var(--danger);
}
.legacy .chip.pending {
  color: var(--warning);
}
.legacy .modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(8px);
}
.legacy .modal-content {
  width: min(100%, 620px);
  max-height: 90vh;
  overflow: auto;
  padding: var(--space-6);
}
.legacy .modal-fullscreen {
  align-items: stretch;
  justify-content: stretch;
  padding: 0;
}
.legacy .modal-fullscreen .modal-content {
  width: 100%;
  max-height: 100vh;
  border-radius: 0;
}
.legacy .details-modal-content {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: var(--space-5);
}
.legacy .details-modal-json {
  width: 100%;
  min-height: 0;
  max-height: none;
  margin: 0;
  overflow: auto;
  font-size: clamp(0.78rem, 1.2vw, 0.94rem);
}
.legacy .key-display, .legacy .payload-details {
  padding: var(--space-4);
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.78rem;
}
.legacy .hash-chip {
  color: var(--muted);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.78rem;
  word-break: break-all;
}
.legacy .dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(24px, 3vw, 40px);
}
.legacy .modal-title {
  margin: 0;
  letter-spacing: -0.03em;
}
.legacy .policy-editor {
  min-height: 220px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}
.legacy .incident-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.legacy .incident-tab {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  padding: 8px 12px;
}
.legacy .incident-tab.active {
  color: var(--text);
  border-color: rgba(23, 132, 219, 0.42);
  background: rgba(23, 132, 219, 0.1);
}
.legacy .incident-type-pill {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #bcecf8;
  padding: 4px 8px;
}
.legacy .incident-table-title {
  color: var(--text);
  font-weight: 700;
}
.legacy .incident-table-summary {
  color: var(--muted);
  margin-top: 6px;
}
.legacy .source-link {
  color: #7dd3fc;
  text-decoration: none;
}
.legacy .incident-card-list {
  display: grid;
  gap: var(--space-4);
}
.legacy .tracker-incident-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.22fr) minmax(180px, 0.28fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
  min-width: 0;
  padding: var(--space-5);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 36, 0.74);
}
.legacy .tracker-incident-meta, .legacy .tracker-incident-source, .legacy .tracker-incident-body {
  min-width: 0;
}
.legacy .tracker-incident-meta, .legacy .tracker-incident-source {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-2);
}
.legacy .tracker-incident-meta > span:first-child, .legacy .tracker-incident-source > span {
  color: var(--muted);
  overflow-wrap: anywhere;
}
.legacy .tracker-incident-source .source-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 5px 10px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  background: rgba(23, 132, 219, 0.08);
  line-height: 1.2;
  white-space: nowrap;
}
.legacy .tracker-incident-body h3 {
  margin: 0;
  color: var(--text);
  line-height: 1.28;
}
.legacy .tracker-incident-body p {
  margin: 6px 0 0;
  color: var(--muted);
}
.legacy .thread-card, .legacy .comment-card, .legacy .incident-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card);
  padding: var(--space-6);
}
.legacy .thread-topline, .legacy .thread-meta, .legacy .comment-header, .legacy .comment-actions, .legacy .filters, .legacy .chips {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.legacy .comment-header, .legacy .comment-actions {
  justify-content: space-between;
}
.legacy .thread-card h3, .legacy .comment-card h3, .legacy .incident-card h3 {
  margin: var(--space-3) 0;
}
.legacy .comment-form, .legacy .partner-form, .legacy .contact-form {
  display: grid;
  gap: var(--space-4);
}
.legacy .comment-list, .legacy .threads-list, .legacy .incident-list {
  display: grid;
  gap: var(--space-5);
}
.legacy .comment-gate, .legacy .comment-empty, .legacy .empty-state {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--muted);
  padding: var(--space-5);
}
.legacy .tab-link, .legacy .filters a {
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  padding: 8px 12px;
  text-decoration: none;
}
.legacy .tab-link.active, .legacy .filters a.active {
  color: var(--text);
  border-color: rgba(23, 132, 219, 0.42);
  background: rgba(23, 132, 219, 0.1);
}
.legacy .thread-body p + p, .legacy .comment-body p + p, .legacy .prose p + p, .legacy .prose ul + p, .legacy .prose p + ul {
  margin-top: var(--space-4);
}
.legacy .prose {
  color: var(--muted);
}
.legacy .prose h2, .legacy .prose h3 {
  color: var(--text);
  letter-spacing: -0.03em;
}
.legacy .prose a {
  color: #7dd3fc;
}
.legacy .footer-note, .legacy .small-note {
  color: var(--soft);
  font-size: 0.88rem;
}
.legacy .hidden {
  display: none !important;
}
.legacy .space-top-12 { margin-top: 12px; }
.legacy .space-top-14 { margin-top: 14px; }
.legacy .space-top-16 { margin-top: 16px; }
.legacy .space-top-18 { margin-top: 18px; }
.legacy .space-top-20 { margin-top: 20px; }
.legacy .space-top-24 { margin-top: 24px; }
.legacy .space-top-28 { margin-top: 28px; }
.legacy .single-column { grid-template-columns: 1fr; }
.legacy .table-empty { text-align: center; }
.legacy .preserve-lines { white-space: pre-line; }
.legacy .clipboard-fallback { position: fixed; opacity: 0; }
.legacy .modal.is-open { display: flex; }
.legacy .strength-20 { width: 20%; }
.legacy .strength-35 { width: 35%; }
.legacy .strength-50 { width: 50%; }
.legacy .strength-75 { width: 75%; }
.legacy .strength-100 { width: 100%; }
.legacy .demo-output-reset { width: 0 !important; border-right: 2px solid currentColor !important; }
.legacy .typing-complete { border-right: none !important; }
.legacy .a2spa-mit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.55rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 8px;
  padding: 0.36rem 0.72rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.7);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}
.legacy .a2spa-mit-btn-arrow { font-size: 0.7rem; }
.legacy .a2spa-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 99999;
  width: min(420px, calc(100vw - 32px));
  max-height: 65vh;
  overflow-y: auto;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 1rem 1.1rem 1.1rem;
  color: #cbd5e1;
  background: #1e293b;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.7);
  font-size: 0.85rem;
  line-height: 1.6;
}
.legacy .a2spa-popup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  padding-bottom: 0.5rem;
}
.legacy .a2spa-popup-title { color: #f8fafc; font-size: 0.95rem; font-weight: 700; }
.legacy .a2spa-popup-close { border: 0; padding: 0 0 0 0.5rem; color: #94a3b8; background: none; font-size: 1.1rem; cursor: pointer; }
.legacy .a2spa-mit-intro { margin: 0 0 0.8rem; color: #cbd5e1; line-height: 1.6; }
.legacy .a2spa-mit-list { margin: 0 0 0.9rem 1rem; padding: 0; font-size: 0.84rem; }
.legacy .a2spa-mit-list li { margin: 0.35rem 0; color: #cbd5e1; line-height: 1.55; }
.legacy .a2spa-mit-list strong { color: #f8fafc; }
.legacy .a2spa-mit-note { margin: 0; color: #94a3b8; line-height: 1.6; }
@media (max-width: 980px) {
.legacy .hero-grid, .legacy .grid-2, .legacy .grid-3, .legacy .grid-4, .legacy .split-grid, .legacy .stats-grid, .legacy .docs-layout, .legacy .filter-grid, .legacy .continuity-grid {
    grid-template-columns: 1fr;
  }
.legacy .docs-nav {
    position: static;
  }
.legacy .continuity-wide {
    grid-column: auto;
  }

}
@media (max-width: 720px) {
.legacy .site-header__inner, .legacy .site-footer__grid, .legacy .dashboard-container > .header, .legacy .billing-section, .legacy .api-key-section {
    align-items: flex-start;
    flex-direction: column;
  }
.legacy .site-nav {
    justify-content: flex-start;
  }
.legacy .hero, .legacy .section, .legacy .page-section {
    padding: var(--space-10) 0;
  }
.legacy .panel, .legacy .card, .legacy .feature-card, .legacy .auth-card, .legacy .stat-card, .legacy .section, .legacy .thread-card, .legacy .comment-card, .legacy .incident-card {
    padding: var(--space-5);
  }
.legacy .form-grid, .legacy .form-row {
    grid-template-columns: 1fr;
  }
.legacy .btn, .legacy button.btn, .legacy .submit-button, .legacy .submit-btn {
    width: 100%;
  }

}
.legacy {
  --bg: #05070c;
  --bg-2: #090d16;
  --panel: #0d1420;
  --panel-2: #111b2a;
  --card: #0f1724;
  --card-strong: #142033;
  --border: rgba(148, 163, 184, 0.18);
  --border-strong: rgba(148, 163, 184, 0.34);
  --text: #f8fafc;
  --muted: #a7b4c7;
  --soft: #748295;
  --accent: #1784db;
  --accent-2: #6c25be;
  --accent-3: #bea925;
  --gradient: linear-gradient(90deg, #1784db, #6c25be, #bea925);
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --shadow-sm: 0 16px 44px rgba(0, 0, 0, 0.2);
  --radius-lg: 18px;
  --radius-xl: 26px;
}
.legacy {
  background: linear-gradient(180deg, #05070c 0%, #090d16 48%, #05070c 100%);
}
.legacy body::before {
  background-image: linear-gradient(rgba(148, 163, 184, 0.025) 1px, transparent 1px);
  background-size: 96px 96px;
}
.legacy .brand__mark, .legacy .gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.legacy .brand__mark {
  letter-spacing: -0.04em;
}
.legacy .brand__tagline {
  color: #8aa4c4;
}
.legacy .site-header {
  background: rgba(5, 7, 12, 0.86);
}
.legacy .site-nav a {
  padding: 8px 10px;
}
.legacy .site-nav .nav-pill, .legacy .btn, .legacy button.btn, .legacy .submit-button, .legacy .submit-btn {
  color: #ffffff;
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: none;
}
.legacy .btn:hover, .legacy .submit-button:hover, .legacy .submit-btn:hover {
  background: #1f7d9d;
  box-shadow: 0 12px 28px rgba(23, 132, 219, 0.22);
}
.legacy .btn-secondary, .legacy .btn.btn-secondary, .legacy .gate-button-secondary {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}
.legacy .btn-danger, .legacy .btn.btn-danger {
  color: #fff;
  background: #b42335;
  border-color: #b42335;
}
.legacy .panel, .legacy .card, .legacy .feature-card, .legacy .auth-card, .legacy .thread-card, .legacy .comment-card, .legacy .incident-card, .legacy .stat-card, .legacy .dashboard-panel {
  background: linear-gradient(180deg, rgba(15, 23, 36, 0.98), rgba(12, 18, 29, 0.98));
}
.legacy .hero, .legacy .section, .legacy .page-section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.legacy .section + .section, .legacy .page-section + .section, .legacy .section + .page-section {
  border-top: 0;
}
.legacy .hero h1, .legacy .page-title {
  max-width: 980px;
  letter-spacing: -0.07em;
}
.legacy .section-title {
  letter-spacing: -0.055em;
}
.legacy .section-kicker, .legacy .eyebrow {
  color: #8edcf0;
}
.legacy .eyebrow {
  background: rgba(23, 132, 219, 0.1);
  border-color: rgba(23, 132, 219, 0.35);
}
.legacy .grid-2, .legacy .grid-3, .legacy .grid-4, .legacy .stats-grid, .legacy .filter-grid, .legacy .continuity-grid {
  gap: clamp(24px, 2.8vw, 38px);
}
.legacy .panel {
  padding: clamp(24px, 3vw, 44px);
}
.legacy .card, .legacy .feature-card, .legacy .stat-card, .legacy .dashboard-panel, .legacy .incident-card, .legacy .thread-card, .legacy .comment-card {
  padding: clamp(20px, 2.4vw, 32px);
}
.legacy .section .card, .legacy .section .feature-card {
  min-height: 100%;
}
.legacy .media-frame {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: #070b12;
  box-shadow: var(--shadow-sm);
}
.legacy .media-frame img, .legacy .media-frame video {
  display: block;
  width: 100%;
  height: auto;
}
.legacy .responsive-video {
  position: relative;
  aspect-ratio: 16 / 9;
}
.legacy .responsive-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.legacy .spoof-infographic {
  background: #030712;
}
.legacy .spoof-infographic figcaption, .legacy .lifecycle-figure figcaption {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.95rem;
}
.legacy .lifecycle-figure {
  border-color: rgba(190, 169, 37, 0.26);
  background:
    radial-gradient(circle at 18% 12%, rgba(23, 132, 219, 0.12), transparent 34%),
    radial-gradient(circle at 86% 88%, rgba(108, 37, 190, 0.14), transparent 36%),
    #050914;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}
.legacy .lifecycle-figure img {
  background: #050914;
}
.legacy .lifecycle-figure a {
  color: #bcecf8;
  font-weight: 700;
  text-decoration: none;
}
.legacy .lifecycle-figure a:hover {
  color: var(--text);
}
.legacy .gate-diagram {
  display: grid;
  gap: var(--space-4);
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(23, 132, 219, 0.16), transparent 32%),
    radial-gradient(circle at 85% 25%, rgba(108, 37, 190, 0.18), transparent 30%),
    rgba(7, 11, 18, 0.92);
  box-shadow: var(--shadow-sm);
}
.legacy .gate-node, .legacy .gate-arrow, .legacy .gate-result {
  border: 1px solid rgba(157, 176, 205, 0.18);
  border-radius: var(--radius);
  padding: var(--space-4);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  text-align: center;
}
.legacy .gate-node--primary {
  border-color: rgba(23, 132, 219, 0.5);
  background: rgba(23, 132, 219, 0.12);
  font-weight: 800;
}
.legacy .gate-arrow {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}
.legacy .gate-branch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
.legacy .gate-result--allow { color: var(--success); }
.legacy .gate-result--hold { color: #f7c948; }
.legacy .gate-result--deny { color: #ff7b7b; }
.legacy .threat-map {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--space-6);
  align-items: center;
}
.legacy .threat-map-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-4);
}
.legacy .threat-map-card {
  min-height: 180px;
  display: grid;
  align-content: space-between;
  gap: var(--space-3);
  padding: var(--space-5);
  border: 1px solid rgba(157, 176, 205, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(23, 132, 219, 0.08), rgba(108, 37, 190, 0.08)),
    rgba(255, 255, 255, 0.03);
}
.legacy .threat-map-card span {
  color: var(--soft);
  font-weight: 800;
  letter-spacing: 0.14em;
}
.legacy .threat-map-card strong {
  color: var(--text);
  font-size: 1.1rem;
}
.legacy .threat-map-card p {
  margin: 0;
  color: var(--muted);
}
.legacy .capability-list, .legacy .plain-list {
  display: grid;
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}
.legacy .capability-list li, .legacy .plain-list li {
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
  color: var(--muted);
}
.legacy .workflow-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-3);
}
.legacy .workflow-step {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  padding: var(--space-4);
  text-align: center;
}
.legacy .comparison-table td:first-child, .legacy .comparison-table th:first-child {
  color: var(--text);
  font-weight: 700;
}
.legacy .checkmark {
  color: var(--success);
  font-weight: 800;
}
.legacy .xmark {
  color: var(--soft);
  font-weight: 800;
}
.legacy .threat-demo {
  display: grid;
  gap: var(--space-5);
}
.legacy .terminal-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #070b12;
  padding: var(--space-5);
}
.legacy .terminal-card code {
  display: grid;
  gap: 6px;
  color: #dbeafe;
  white-space: pre-wrap;
}
.legacy .terminal-card.is-risk {
  border-color: rgba(255, 107, 107, 0.3);
}
.legacy .terminal-card.is-denied {
  border-color: rgba(66, 211, 146, 0.32);
}
.legacy .terminal-line {
  display: block;
  width: 0;
  max-width: max-content;
  overflow: hidden;
  white-space: nowrap;
  border-right: 0 solid transparent;
  animation: terminal-type 7.2s steps(42, end) infinite;
}
.legacy .terminal-line:nth-child(2) {
  animation-delay: 1.4s;
}
.legacy .terminal-line:nth-child(3) {
  animation-delay: 2.8s;
}
.legacy .terminal-line:nth-child(4) {
  animation-delay: 4.2s;
}
.legacy .terminal-card::after {
  display: none;
}
@keyframes terminal-line-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes terminal-type {
  0%, 8% {
    width: 0;
    opacity: 0;
  }
  10%, 42% {
    width: 100%;
    opacity: 1;
  }
  86%, 100% {
    width: 100%;
    opacity: 1;
  }
}
@keyframes terminal-cursor {
  50% {
    opacity: 0;
  }
}
.legacy .impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--space-5);
}
.legacy .impact-item {
  border-top: 2px solid var(--accent);
  color: var(--muted);
  padding-top: var(--space-4);
}
.legacy .attack-list {
  columns: 2;
  column-gap: var(--space-10);
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}
.legacy .plain-list {
  list-style: none;
}
.legacy ol.plain-list {
  counter-reset: plain-list;
}
.legacy ol.plain-list li {
  counter-increment: plain-list;
  position: relative;
  display: block;
  min-width: 0;
  padding-left: 2.25rem;
}
.legacy ol.plain-list li::before {
  content: counter(plain-list) ".";
  position: absolute;
  left: 0;
  top: var(--space-4);
  color: var(--accent);
  font-weight: 800;
}
.legacy .attack-list li {
  break-inside: avoid;
  margin-bottom: var(--space-4);
}
.legacy .doc-search {
  position: static;
  z-index: auto;
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(5, 7, 12, 0.88);
  backdrop-filter: blur(16px);
}
.legacy .doc-hidden {
  display: none !important;
}
.legacy .copy-panel {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: rgba(23, 132, 219, 0.06);
  padding: var(--space-5);
}
.legacy .explain-box {
  border-left: 3px solid var(--accent);
  color: var(--muted);
  padding: var(--space-4) var(--space-5);
  background: rgba(23, 132, 219, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.legacy .profile-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-6);
}
.legacy .payload-details {
  margin-top: var(--space-3);
}
.legacy button:disabled, .legacy .btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}
.legacy td, .legacy th, .legacy .hash-chip, .legacy .key-display {
  overflow-wrap: anywhere;
}
.legacy .prose p code, .legacy .prose li code, .legacy td code, .legacy th code {
  overflow-wrap: anywhere;
}
@media (max-width: 980px) {
.legacy .workflow-strip, .legacy .impact-grid, .legacy .threat-map, .legacy .profile-grid {
    grid-template-columns: 1fr;
  }
.legacy .attack-list {
    columns: 1;
  }

}
@media (max-width: 720px) {
.legacy .site-nav {
    width: 100%;
    gap: 6px;
  }
.legacy .site-nav a {
    font-size: 0.86rem;
    padding: 7px 8px;
  }
.legacy .hero h1, .legacy .page-title {
    font-size: clamp(2.35rem, 13vw, 3.4rem);
  }
.legacy .table-container {
    margin-inline: -8px;
    border-radius: var(--radius-sm);
  }
.legacy .gate-branch {
    grid-template-columns: 1fr;
  }
.legacy .threat-map-grid {
    grid-template-columns: 1fr;
  }
.legacy .dashboard-container, .legacy .site-shell {
    width: min(calc(100% - 24px), var(--shell));
  }
.legacy .data-table .btn, .legacy .data-table button.btn, .legacy .incident-pagination .btn, .legacy .modal-actions .btn, .legacy .header-actions .btn, .legacy .api-key-section .btn {
    width: auto;
  }

}
.legacy {
  --accent: #1784db;
  --accent-2: #6c25be;
  --accent-3: #bea925;
  --button-bg: #1784db;
  --button-bg-hover: #1f7f9f;
  --button-text: #ffffff;
  --focus-ring: rgba(23, 132, 219, 0.18);
}
.legacy {
  color: #f8fafc;
  font-size: 16px;
  line-height: 1.62;
}
.legacy .hero-lede, .legacy .page-lede, .legacy .section-lede {
  line-height: 1.58;
}
.legacy .section-kicker, .legacy .eyebrow {
  color: #f0d94a;
}
.legacy .eyebrow {
  background: rgba(190, 169, 37, 0.1);
  border-color: rgba(190, 169, 37, 0.32);
}
.legacy .btn, .legacy button.btn, .legacy .submit-button, .legacy .submit-btn, .legacy .site-nav .nav-pill {
  min-height: 42px;
  color: var(--button-text);
  background: var(--button-bg);
  border-color: rgba(23, 132, 219, 0.34);
  font-size: 0.94rem;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.legacy .btn:hover, .legacy .submit-button:hover, .legacy .submit-btn:hover {
  color: var(--button-text);
  background: var(--button-bg-hover);
  border-color: rgba(108, 37, 190, 0.44);
  box-shadow: 0 14px 30px rgba(23, 132, 219, 0.2);
}
.legacy .btn-secondary, .legacy .btn.btn-secondary, .legacy .gate-button-secondary, .legacy .logout-btn {
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  border-color: var(--border-strong);
}
.legacy .btn-secondary:hover, .legacy .btn.btn-secondary:hover, .legacy .gate-button-secondary:hover, .legacy .logout-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(190, 169, 37, 0.42);
}
.legacy .btn-sm, .legacy .btn.btn-sm {
  min-height: 34px;
  padding: 7px 12px;
  font-size: 0.84rem;
}
.legacy .input-field:focus, .legacy .form-input:focus, .legacy .form-select:focus, .legacy .form-textarea:focus, .legacy textarea:focus, .legacy select:focus, .legacy input:focus {
  border-color: rgba(23, 132, 219, 0.7);
  box-shadow: 0 0 0 4px var(--focus-ring);
}
.legacy .docs-nav, .legacy .doc-search {
  position: static;
}
.legacy .doc-search {
  margin-bottom: clamp(22px, 3vw, 34px);
  background: rgba(12, 18, 29, 0.92);
}
.legacy .profile-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, 0.9fr);
  gap: clamp(24px, 3vw, 40px);
  align-items: stretch;
}
.legacy .profile-summary {
  display: grid;
  gap: var(--space-4);
}
.legacy .profile-metric {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.03);
  padding: var(--space-5);
}
.legacy .profile-metric span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legacy .profile-metric strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 2.1rem);
  letter-spacing: -0.045em;
}
.legacy .settings-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--border);
}
.legacy .settings-row {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  background: rgba(15, 23, 36, 0.98);
  padding: var(--space-4) var(--space-5);
}
.legacy .settings-row span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 700;
}
.legacy .settings-row strong {
  color: var(--text);
  font-weight: 650;
  overflow-wrap: anywhere;
}
.legacy .terminal-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 18px 40px rgba(0, 0, 0, 0.22);
  min-height: 156px;
}
.legacy .terminal-card strong {
  display: block;
  margin-bottom: var(--space-3);
  color: var(--text);
}
.legacy .terminal-header {
  display: flex;
  gap: 7px;
  margin-bottom: var(--space-4);
}
.legacy .terminal-header span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.legacy .terminal-header span:nth-child(1) { background: #ef4444; }
.legacy .terminal-header span:nth-child(2) { background: #eab308; }
.legacy .terminal-header span:nth-child(3) { background: #22c55e; }
.legacy .command-line, .legacy .terminal-output {
  display: block;
  white-space: normal;
  overflow-wrap: anywhere;
  overflow: hidden;
}
.legacy .command-line {
  width: 100%;
  color: #42d392;
}
.legacy .terminal-output {
  width: 0;
  margin-top: var(--space-3);
  border-right: 2px solid currentColor;
  animation: terminal-output-type 4.8s steps(42, end) infinite, terminal-caret 0.75s step-end infinite;
}
.legacy .output-risk { color: #ff6b6b; }
.legacy .output-denied, .legacy .is-denied .terminal-output { color: #f7c948; }
@keyframes terminal-output-type {
  0%, 18% { width: 0; }
  58%, 100% { width: 100%; }
}
@keyframes terminal-caret {
  0%, 100% { border-color: transparent; }
  50% { border-color: currentColor; }
}
@media (max-width: 980px) {
.legacy .profile-hero-grid {
    grid-template-columns: 1fr;
  }

}
@media (max-width: 720px) {
.legacy .settings-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
.legacy .hero h1, .legacy .page-title {
    letter-spacing: -0.055em;
  }

}
.legacy {
  --button-bg: #1784db;
  --button-bg-hover: #1f7f9f;
  --button-text: #ffffff;
}
.legacy .brand__mark {
  font-size: 1.42rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}
.legacy .brand__tagline {
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.legacy .btn, .legacy button.btn, .legacy .submit-button, .legacy .submit-btn, .legacy .site-nav .nav-pill {
  color: var(--button-text);
  background: var(--button-bg);
  border-color: var(--button-bg);
  font-size: 0.92rem;
  font-weight: 700;
}
.legacy .btn:hover, .legacy .submit-button:hover, .legacy .submit-btn:hover {
  color: var(--button-text);
  background: var(--button-bg-hover);
  border-color: var(--button-bg-hover);
  box-shadow: 0 14px 30px rgba(23, 132, 219, 0.22);
}
.legacy .demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
}
.legacy .demo-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.8);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
}
.legacy .demo-card h3 {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: 0;
  line-height: 1.2;
}
.legacy .demo-caption {
  margin: var(--space-2) 0 var(--space-4);
  color: var(--soft);
}
.legacy .status-indicator {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-left: auto;
}
.legacy .status-vulnerable {
  background: #ff4757;
  box-shadow: 0 0 12px rgba(255, 71, 87, 0.8);
}
.legacy .status-protected {
  background: #2ed573;
  box-shadow: 0 0 12px rgba(46, 213, 115, 0.72);
}
.legacy .pulse {
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.legacy .terminal {
  position: relative;
  overflow: hidden;
  min-height: 128px;
  border: 1px solid #334155;
  border-radius: 10px;
  background: #0f172a;
  padding: var(--space-5);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.9rem;
}
.legacy .terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
}
.legacy .dot-red { background: #ef4444; }
.legacy .dot-yellow { background: #eab308; }
.legacy .dot-green { background: #22c55e; }
.legacy .output-success, .legacy .output-error {
  max-width: max-content;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid currentColor;
  font-weight: 600;
}
.legacy .output-success { color: #ef4444; }
.legacy .output-error { color: #f97316; }
.legacy .typing {
  animation: typing 3s steps(40, end), blink-caret 0.75s step-end infinite;
}
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}
@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: currentColor; }
}
.legacy .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  border: 2px solid rgba(23, 132, 219, 0.3);
  border-radius: 999px;
  background: rgba(23, 132, 219, 0.9);
  color: #fff;
  cursor: pointer;
  transform: translate(-50%, -50%);
  transition: transform 0.2s ease, background 0.2s ease;
}
.legacy .play-button::after {
  content: "▶";
  display: block;
  margin-left: 2px;
  font-size: 1rem;
}
.legacy .play-button:hover {
  background: rgba(23, 132, 219, 1);
  transform: translate(-50%, -50%) scale(1.08);
}
@media (max-width: 980px) {
.legacy .demo-grid {
    grid-template-columns: 1fr;
  }

}
.legacy {
  --a2spa-blue: #1784db;
  --a2spa-purple: #6c25be;
  --a2spa-gold: #bea925;
}
.legacy .a2spa-gradient, .legacy .brand__mark, .legacy .gradient-text {
  background: linear-gradient(90deg, var(--a2spa-blue), var(--a2spa-purple), var(--a2spa-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}
.legacy .brand__mark {
  display: inline-block;
  font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.05;
}
.legacy .brand__tagline {
  font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #8f9bac;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.08em;
}
.legacy .section-kicker, .legacy .eyebrow {
  color: #8edcf0;
}
.legacy .eyebrow {
  background: rgba(23, 132, 219, 0.1);
  border-color: rgba(23, 132, 219, 0.34);
}
.legacy .btn, .legacy button.btn, .legacy .submit-button, .legacy .submit-btn, .legacy .site-nav .nav-pill {
  color: #fff;
  background: #1784db;
  border-color: #1784db;
  font-family: "Google Sans", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
}
.legacy .btn:hover, .legacy .submit-button:hover, .legacy .submit-btn:hover {
  color: #fff;
  background: #1f7f9f;
  border-color: #1f7f9f;
  box-shadow: 0 14px 30px rgba(23, 132, 219, 0.22);
}
.legacy .btn-secondary, .legacy .btn.btn-secondary, .legacy .gate-button-secondary, .legacy .logout-btn {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}
.legacy .btn-secondary:hover, .legacy .btn.btn-secondary:hover, .legacy .gate-button-secondary:hover, .legacy .logout-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(23, 132, 219, 0.46);
}
.legacy .demo-card {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(148, 163, 184, 0.2);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.legacy .demo-section {
  min-width: 0;
}
.legacy .section.demo-section {
  padding-top: 0;
}
.legacy .demo-card:hover {
  transform: translateY(-5px) scale(1.02);
  border-color: rgba(148, 163, 184, 0.4);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.legacy .terminal {
  margin: 1rem 0;
  min-height: 120px;
  border-radius: 8px;
  padding: 1.5rem;
  background: #0f172a;
  border: 1px solid #334155;
  font-family: "Monaco", "Menlo", "SFMono-Regular", Consolas, monospace;
  font-size: 0.95rem;
}
.legacy .terminal-header {
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.legacy .command-line {
  margin-bottom: 1rem;
  color: #10b981;
  font-weight: 500;
}
.legacy .output-success, .legacy .output-error {
  display: block;
  width: auto;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  border-right: 2px solid currentColor;
  font-weight: 500;
}
.legacy .output-success {
  color: #ef4444;
}
.legacy .output-error {
  color: #f97316;
}
.legacy .play-button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 2px solid rgba(59, 130, 246, 0.3);
  background: rgba(59, 130, 246, 0.9);
  backdrop-filter: blur(10px);
  transition: transform 0.3s ease, background 0.3s ease;
}
.legacy .play-button:hover {
  background: rgba(59, 130, 246, 1);
  transform: translate(-50%, -50%) scale(1.1);
}
.legacy .chain-panel {
  padding: clamp(22px, 2.8vw, 38px);
}
.legacy .chain-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legacy .chain-list li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}
.legacy .chain-list li:first-child {
  padding-top: 0;
  border-top: 0;
}
.legacy .chain-list span {
  color: #8edcf0;
  font-weight: 800;
}
.legacy .chain-list strong {
  display: block;
  color: var(--text);
  line-height: 1.3;
}
.legacy .chain-list p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.65;
}
.legacy .prompt-card {
  display: grid;
  gap: var(--space-4);
}
.legacy .prompt-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.legacy .prompt-header h3 {
  margin: 0;
}
.legacy .profile-page .header h1 {
  margin: 0;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.legacy .profile-primary-card {
  position: relative;
  overflow: hidden;
}
.legacy .profile-primary-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #1784db, #6c25be);
}
.legacy .profile-metric-large {
  grid-column: 1 / -1;
}
.legacy .profile-status-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.legacy .profile-key-card, .legacy .readiness-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
  padding: var(--space-5);
}
.legacy .profile-key-card span, .legacy .readiness-item .status-badge {
  margin-bottom: var(--space-3);
}
.legacy .profile-key-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legacy .profile-key-card strong {
  display: block;
  color: var(--text);
  font-size: 1.35rem;
  letter-spacing: -0.035em;
}
.legacy .profile-key-card p, .legacy .readiness-item p {
  margin-top: var(--space-2);
  color: var(--muted);
}
.legacy .readiness-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5);
}
.legacy .readiness-item h3 {
  margin: 0;
  letter-spacing: -0.025em;
}
.legacy .profile-status-good {
  color: #b9f6d5;
  border-color: rgba(66, 211, 146, 0.34);
  background: rgba(66, 211, 146, 0.1);
}
.legacy .profile-status-danger {
  color: #ffd9d9;
  border-color: rgba(255, 107, 107, 0.32);
  background: rgba(255, 107, 107, 0.1);
}
.legacy .profile-status-muted {
  color: var(--muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
}
@media (max-width: 720px) {
.legacy .chain-list li {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
.legacy .prompt-header {
    align-items: flex-start;
    flex-direction: column;
  }
.legacy .readiness-grid {
    grid-template-columns: 1fr;
  }

}
.legacy main, .legacy .hero, .legacy .section, .legacy .page-section, .legacy .site-shell, .legacy .dashboard-container, .legacy .panel, .legacy .dashboard-panel, .legacy .content-stack, .legacy .hero-grid, .legacy .docs-layout, .legacy .grid-2, .legacy .grid-3, .legacy .grid-4, .legacy .split-grid, .legacy .stats-grid, .legacy .filter-grid, .legacy .continuity-grid {
  min-width: 0;
}
.legacy .button-row, .legacy .header-actions, .legacy .modal-actions, .legacy .incident-controls, .legacy .incident-pagination, .legacy .api-key-section {
  min-width: 0;
}
.legacy .button-row .btn, .legacy .header-actions .btn, .legacy .header-actions .logout-btn, .legacy .modal-actions .btn, .legacy .incident-pagination .btn, .legacy .api-key-section .btn {
  max-width: 100%;
  white-space: normal;
}
.legacy .terminal-card {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}
.legacy .terminal-card code, .legacy .command-line, .legacy .terminal-output, .legacy .output-success, .legacy .output-error {
  max-width: 100%;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legacy .terminal-output, .legacy .output-success, .legacy .output-error {
  width: auto;
  border-right: 0;
  animation: none;
}
.legacy .terminal-line {
  width: auto;
  max-width: 100%;
  white-space: pre-wrap;
  animation: none;
}
.legacy .docs-nav {
  min-width: 0;
}
.legacy .docs-nav a, .legacy .doc-section, .legacy .copy-panel, .legacy .template, .legacy .code-block, .legacy pre.code-block, .legacy .payload-details, .legacy .key-display {
  min-width: 0;
  max-width: 100%;
}
.legacy .code-block, .legacy pre.code-block, .legacy .template pre, .legacy .payload-details, .legacy .key-display {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legacy #builder-spec {
  max-height: 68vh;
}
.legacy .dashboard-table-wrap table, .legacy .incident-table-wrap table {
  min-width: 0;
  table-layout: fixed;
}
.legacy .log-table, .legacy .error-table, .legacy .incident-table {
  min-width: 0;
}
.legacy .log-table th:nth-child(1), .legacy .log-table td:nth-child(1), .legacy .error-table th:nth-child(1), .legacy .error-table td:nth-child(1) {
  width: 10.5rem;
}
.legacy .log-table th:nth-child(5), .legacy .log-table td:nth-child(5), .legacy .details-action-cell {
  width: 7.75rem;
}
.legacy .log-table th:nth-child(6), .legacy .error-table th:nth-child(5) {
  width: 6rem;
}
.legacy .details-toggle {
  padding-inline: 10px;
}
.legacy .details-row-cell {
  padding-top: 0;
  background: rgba(7, 16, 26, 0.72);
}
.legacy .details-row .payload-details {
  margin: var(--space-3) 0 0;
}
.legacy .incident-table th:nth-child(1), .legacy .incident-table td:nth-child(1) {
  width: 8.5rem;
}
.legacy .incident-table th:nth-child(2), .legacy .incident-table td:nth-child(2) {
  width: 7.5rem;
}
.legacy .incident-table th:nth-child(3), .legacy .incident-table td:nth-child(3) {
  width: 9rem;
}
.legacy .incident-table th:nth-child(5), .legacy .incident-table td:nth-child(5) {
  width: 5.75rem;
}
.legacy .incident-date-cell, .legacy .incident-type-cell, .legacy .incident-source-cell, .legacy .incident-title-cell, .legacy .incident-link-cell {
  vertical-align: top;
  padding: 0.85rem 1rem;
  color: #cbd5e1;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}
.legacy .incident-date-cell, .legacy .incident-type-cell {
  white-space: nowrap;
}
.legacy .incident-source-cell, .legacy .incident-title-cell {
  overflow-wrap: anywhere;
}
.legacy .incident-link-cell {
  text-align: center;
}
.legacy .source-link {
  display: inline-flex;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.legacy .endpoint-grid {
  align-items: stretch;
}
.legacy .endpoint-card {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  min-width: 0;
}
.legacy .endpoint-card h3 {
  margin-bottom: 0;
}
.legacy .endpoint-url {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: var(--space-2);
  align-items: start;
  min-width: 0;
  padding: var(--space-3);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-sm);
  background: rgba(7, 16, 26, 0.68);
}
.legacy .endpoint-url span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.2rem;
  border-radius: 999px;
  background: rgba(23, 132, 219, 0.16);
  color: #bcecf8;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.legacy .endpoint-url code {
  display: block;
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legacy ol.plain-list li, .legacy .plain-list li, .legacy .feature-card, .legacy .card, .legacy .panel, .legacy .notice, .legacy .prose, .legacy .thread-card, .legacy .comment-card {
  min-width: 0;
  overflow-wrap: anywhere;
}
.legacy .terminal-card .terminal-output {
  opacity: 0;
  transform: translateY(4px);
  animation: terminal-output-reveal 3.8s steps(12, end) infinite;
  animation-delay: 0.45s;
}
.legacy .terminal-card .command-line {
  opacity: 1;
  animation: terminal-command-pulse 3.8s ease-in-out infinite;
}
@keyframes terminal-command-pulse {
  0%, 100% { opacity: 0.78; }
  24%, 82% { opacity: 1; }
}
@keyframes terminal-output-reveal {
  0%, 12% {
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateY(4px);
  }
  32%, 82% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
  100% {
    opacity: 0.88;
    clip-path: inset(0 0 0 0);
    transform: translateY(0);
  }
}
.legacy .dashboard-table-wrap {
  overflow-x: visible;
  border: 0;
  background: transparent;
}
.legacy .dashboard-table-wrap .data-table, .legacy .dashboard-table-wrap tbody, .legacy .dashboard-table-wrap tr, .legacy .dashboard-table-wrap td {
  display: block;
  width: 100%;
}
.legacy .dashboard-table-wrap .data-table {
  min-width: 0;
  border-collapse: separate;
}
.legacy .dashboard-table-wrap thead {
  display: none;
}
.legacy .dashboard-table-wrap tbody {
  display: grid;
  gap: var(--space-3);
}
.legacy .dashboard-table-wrap tr:not(.details-row) {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-3);
  padding: var(--space-4);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(15, 23, 36, 0.78);
}
.legacy .dashboard-table-wrap td {
  min-width: 0;
  padding: 0;
  border-bottom: 0;
  overflow-wrap: anywhere;
}
.legacy .dashboard-table-wrap td::before {
  content: attr(data-label);
  display: block;
  margin-bottom: 4px;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.legacy .dashboard-table-wrap .details-action-cell, .legacy .dashboard-table-wrap .details-row-cell, .legacy .dashboard-table-wrap .details-row-cell .payload-details {
  width: 100%;
}
.legacy .dashboard-table-wrap .details-action-cell::before, .legacy .dashboard-table-wrap .details-row-cell::before, .legacy .dashboard-table-wrap td[colspan]::before {
  content: none;
}
.legacy .dashboard-table-wrap .details-toggle {
  width: 100%;
  min-width: 0;
}
.legacy .dashboard-table-wrap .details-row {
  margin-top: calc(-1 * var(--space-2));
}
.legacy .dashboard-table-wrap .details-row-cell {
  padding: 0 var(--space-4) var(--space-4);
  background: transparent;
}
.legacy .dashboard-table-wrap .details-row .payload-details {
  margin: 0;
  max-height: 52vh;
}
.legacy .incident-table-wrap {
  overflow-x: visible;
}
.legacy .incident-table {
  min-width: 0;
  table-layout: auto;
}
.legacy .incident-table th:nth-child(1), .legacy .incident-table td:nth-child(1) {
  width: 8rem;
}
.legacy .incident-table th:nth-child(2), .legacy .incident-table td:nth-child(2) {
  width: 7.25rem;
}
.legacy .incident-table th:nth-child(4), .legacy .incident-table td:nth-child(4) {
  width: 11rem;
}
.legacy .incident-source-cell {
  word-break: normal;
}
.legacy .incident-source-name {
  overflow-wrap: anywhere;
}
.legacy .incident-source-cell .source-link {
  margin-top: 0.5rem;
  padding: 5px 9px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 999px;
  background: rgba(23, 132, 219, 0.08);
  line-height: 1.2;
}
.legacy .architecture-diagram {
  display: grid;
  gap: var(--space-5);
  min-width: 0;
  padding: clamp(20px, 2.6vw, 32px);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 18% 12%, rgba(23, 132, 219, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(108, 37, 190, 0.16), transparent 28%),
    linear-gradient(180deg, rgba(15, 23, 36, 0.96), rgba(7, 11, 18, 0.96));
  box-shadow: var(--shadow-sm);
}
.legacy .architecture-rail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: var(--space-3);
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.legacy .architecture-rail strong {
  padding: 8px 12px;
  border: 1px solid rgba(23, 132, 219, 0.34);
  border-radius: 999px;
  background: rgba(23, 132, 219, 0.1);
  color: #bcecf8;
  white-space: normal;
}
.legacy .architecture-rail span {
  min-width: 0;
  overflow-wrap: anywhere;
}
.legacy .architecture-stack {
  display: grid;
  gap: var(--space-3);
}
.legacy .architecture-layer {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 0.45fr) minmax(0, 1fr);
  gap: var(--space-3);
  align-items: start;
  min-width: 0;
  padding: var(--space-4);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.035);
}
.legacy .architecture-layer span {
  color: #8edcf0;
  font-weight: 900;
}
.legacy .architecture-layer strong {
  color: var(--text);
  line-height: 1.25;
}
.legacy .architecture-layer em {
  color: var(--muted);
  font-style: normal;
  line-height: 1.45;
}
.legacy .architecture-outcomes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-3);
}
@media (max-width: 720px) {
.legacy .button-row, .legacy .header-actions, .legacy .modal-actions, .legacy .incident-controls, .legacy .incident-pagination, .legacy .api-key-section {
    align-items: stretch;
    width: 100%;
  }
.legacy .button-row .btn, .legacy .header-actions .btn, .legacy .header-actions .logout-btn, .legacy .modal-actions .btn, .legacy .incident-controls .input-field, .legacy .incident-pagination .btn, .legacy .api-key-section .btn {
    width: 100%;
    justify-content: center;
  }
.legacy .docs-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: var(--space-3);
  }
.legacy .endpoint-url {
    grid-template-columns: 1fr;
  }
.legacy .architecture-rail, .legacy .architecture-layer, .legacy .architecture-outcomes, .legacy .tracker-incident-card {
    grid-template-columns: 1fr;
    text-align: left;
  }
.legacy .tracker-incident-source .source-link, .legacy .a2spa-mit-btn {
    width: 100%;
    justify-content: center;
  }
.legacy .docs-nav a {
    overflow-wrap: anywhere;
  }
.legacy .table-container.dashboard-table-wrap, .legacy .table-container.incident-table-wrap {
    overflow-x: visible;
  }
.legacy .dashboard-table-wrap table, .legacy .dashboard-table-wrap thead, .legacy .dashboard-table-wrap tbody, .legacy .dashboard-table-wrap th, .legacy .dashboard-table-wrap td, .legacy .dashboard-table-wrap tr, .legacy .incident-table-wrap table, .legacy .incident-table-wrap thead, .legacy .incident-table-wrap tbody, .legacy .incident-table-wrap th, .legacy .incident-table-wrap td, .legacy .incident-table-wrap tr {
    display: block;
    width: 100%;
  }
.legacy .dashboard-table-wrap thead, .legacy .incident-table-wrap thead {
    display: none;
  }
.legacy .dashboard-table-wrap tr, .legacy .incident-table-wrap tr {
    padding: var(--space-4);
    border-bottom: 1px solid rgba(157, 176, 205, 0.14);
  }
.legacy .dashboard-table-wrap td, .legacy .incident-table-wrap td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 32%) minmax(0, 1fr);
    gap: var(--space-3);
    width: 100% !important;
    padding: 8px 0;
    border-bottom: 0;
  }
.legacy .dashboard-table-wrap td::before, .legacy .incident-table-wrap td::before {
    content: attr(data-label);
    color: var(--soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
.legacy .dashboard-table-wrap .details-action-cell, .legacy .dashboard-table-wrap .details-row-cell {
    display: block;
  }
.legacy .dashboard-table-wrap .details-row-cell::before, .legacy .dashboard-table-wrap td[colspan]::before {
    content: none;
  }
.legacy .dashboard-table-wrap .details-toggle, .legacy .incident-link-cell .source-link, .legacy .incident-source-cell .source-link {
    justify-content: center;
    width: 100%;
  }
.legacy .incident-table-wrap .incident-title-cell, .legacy .incident-table-wrap .incident-source-cell {
    display: block;
  }
.legacy .incident-table-wrap .incident-title-cell::before, .legacy .incident-table-wrap .incident-source-cell::before {
    display: block;
    margin-bottom: 6px;
  }
.legacy .details-row {
    padding-top: 0;
  }

}
@media (prefers-reduced-motion: reduce) {
.legacy .terminal-card .command-line, .legacy .terminal-card .terminal-output, .legacy .terminal-line, .legacy .output-success, .legacy .output-error {
    opacity: 1;
    clip-path: none;
    transform: none;
    animation: none;
  }

}
.legacy .logout-form {
  display: inline;
  margin: 0;
}
.legacy .logout-form button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  padding: 9px 15px;
}
.legacy.dashboard-page {
  padding: var(--space-8) 0 var(--space-16);
}
.legacy.dashboard-page .dash {
  --dash-gap: 20px;
  --dash-pad: 24px;
  --dash-surface: rgba(17, 24, 36, 0.92);
  --dash-surface-2: rgba(255, 255, 255, 0.025);
  --dash-line: rgba(157, 176, 205, 0.14);
  --dash-mono: "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  display: flex;
  flex-direction: column;
  gap: var(--dash-gap);
  width: min(calc(100% - 32px), 1240px);
  min-width: 0;
}
.legacy.dashboard-page .dash * {
  min-width: 0;
}
.legacy.dashboard-page .dash h1, .legacy.dashboard-page .dash h2, .legacy.dashboard-page .dash h3 {
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.legacy.dashboard-page .dash h1 {
  font-size: clamp(1.7rem, 2.6vw, 2.2rem);
  font-weight: 600;
}
.legacy.dashboard-page .dash h2 {
  font-size: 1.15rem;
  font-weight: 600;
}
.legacy.dashboard-page .dash h3 {
  font-size: 0.98rem;
  font-weight: 600;
}
.legacy.dashboard-page .dash .section-kicker {
  margin: 0 0 6px;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}
.legacy.dashboard-page .dash-muted {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}
.legacy.dashboard-page .dash-note {
  margin: 0;
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.5;
}
.legacy.dashboard-page .dash-mono {
  font-family: var(--dash-mono);
  font-size: 0.82rem;
}
.legacy.dashboard-page .dash-wrap {
  overflow-wrap: anywhere;
  word-break: break-word;
}
.legacy.dashboard-page .dash-nowrap {
  white-space: nowrap;
}
.legacy.dashboard-page .dash-text-bad {
  color: #ff9d9d;
}
.legacy.dashboard-page .dash-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 4px 2px 8px;
}
.legacy.dashboard-page .dash-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.legacy.dashboard-page .dash-card, .legacy.dashboard-page .dash-stat {
  margin: 0;
  padding: var(--dash-pad);
  border: 1px solid var(--dash-line);
  border-radius: 16px;
  background: var(--dash-surface);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset, 0 12px 32px rgba(0, 0, 0, 0.18);
}
.legacy.dashboard-page .dash-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.legacy.dashboard-page .dash-subcard {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: var(--dash-surface-2);
}
.legacy.dashboard-page .dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--dash-gap);
}
@media (max-width: 1100px) {
.legacy.dashboard-page .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}
@media (max-width: 560px) {
.legacy.dashboard-page .dash-stats {
    grid-template-columns: minmax(0, 1fr);
  }

}
.legacy.dashboard-page .dash-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
}
.legacy.dashboard-page .dash-stat__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.legacy.dashboard-page .dash-stat__value {
  overflow: hidden;
  color: var(--text);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.legacy.dashboard-page .dash-stat__meta {
  color: var(--soft);
  font-size: 0.8rem;
}
.legacy.dashboard-page .dash-stat--balance {
  border-color: rgba(23, 132, 219, 0.35);
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(23, 132, 219, 0.16), transparent 55%),
    var(--dash-surface);
}
.legacy.dashboard-page .dash-stat__action {
  align-self: flex-start;
  margin-top: 8px;
}
.legacy.dashboard-page .dash-key {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px 20px;
}
.legacy.dashboard-page .dash-key .input-field {
  width: 100%;
  margin: 0;
}
.legacy.dashboard-page .dash-key__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.legacy.dashboard-page .dash-key .dash-note {
  grid-column: 1 / -1;
}
.legacy.dashboard-page .dash-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--dash-gap);
  align-items: start;
}
.legacy.dashboard-page .dash-split--tight {
  gap: 16px;
}
.legacy.dashboard-page .dash-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.legacy.dashboard-page .dash-form .form-group, .legacy.dashboard-page .dash-form .filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.legacy.dashboard-page .dash .form-label, .legacy.dashboard-page .dash .filter-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}
.legacy.dashboard-page .dash .input-field {
  width: 100%;
  min-height: 42px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
}
.legacy.dashboard-page .dash .textarea-field {
  min-height: 132px;
  resize: vertical;
  line-height: 1.5;
}
.legacy.dashboard-page .dash-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.legacy.dashboard-page .dash-fields[hidden] {
  display: none;
}
.legacy.dashboard-page .dash-form__submit {
  width: 100%;
}
.legacy.dashboard-page .dash-form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.legacy.dashboard-page .dash-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}
.legacy.dashboard-page .dash-chips legend {
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
}
.legacy.dashboard-page .dash-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  background: var(--dash-surface-2);
  color: var(--text);
  cursor: pointer;
  font-size: 0.86rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.legacy.dashboard-page .dash-chip:hover {
  border-color: rgba(23, 132, 219, 0.45);
}
.legacy.dashboard-page .dash-chip:has(input:checked) {
  border-color: rgba(23, 132, 219, 0.6);
  background: rgba(23, 132, 219, 0.12);
}
.legacy.dashboard-page .dash-chip input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: var(--a2spa-blue);
}
.legacy.dashboard-page .dash-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.legacy.dashboard-page .dash-links a, .legacy.dashboard-page .dash-links button {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
  padding: 14px 44px 14px 16px;
  position: relative;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: var(--dash-surface-2);
  color: var(--text);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.legacy.dashboard-page .dash-links a::after, .legacy.dashboard-page .dash-links button::after {
  content: "\2192";
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  color: var(--muted);
  transition: transform 0.15s ease, color 0.15s ease;
}
.legacy.dashboard-page .dash-links a:hover, .legacy.dashboard-page .dash-links button:hover {
  border-color: rgba(23, 132, 219, 0.5);
  background: rgba(23, 132, 219, 0.08);
}
.legacy.dashboard-page .dash-links a:hover::after, .legacy.dashboard-page .dash-links button:hover::after {
  color: #8edcf0;
  transform: translate(3px, -50%);
}
.legacy.dashboard-page .dash-links strong {
  font-size: 0.95rem;
  font-weight: 600;
}
.legacy.dashboard-page .dash-links span {
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.45;
}
.legacy.dashboard-page .dash-section {
  padding: 0;
  overflow: hidden;
}
.legacy.dashboard-page .dash-section__summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px var(--dash-pad);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s ease;
}
.legacy.dashboard-page .dash-section__summary::-webkit-details-marker {
  display: none;
}
.legacy.dashboard-page .dash-section__summary:hover {
  background: rgba(255, 255, 255, 0.02);
}
.legacy.dashboard-page .dash-section__summary:focus-visible {
  outline: 2px solid var(--a2spa-blue);
  outline-offset: -2px;
}
.legacy.dashboard-page .dash-chevron {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--dash-line);
  border-radius: 999px;
  position: relative;
}
.legacy.dashboard-page .dash-chevron::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: translate(-50%, -70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.legacy.dashboard-page .dash-section[open] .dash-chevron::before {
  transform: translate(-50%, -30%) rotate(-135deg);
}
.legacy.dashboard-page .dash-section__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px var(--dash-pad) var(--dash-pad);
  border-top: 1px solid var(--dash-line);
  padding-top: 20px;
}
.legacy.dashboard-page .dash-subhead {
  margin-top: 8px;
}
.legacy.dashboard-page .dash-subhead--row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.legacy.dashboard-page .dash-subhead--row .dash-muted {
  margin-top: 4px;
}
.legacy.dashboard-page .dash-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 12px;
}
.legacy.dashboard-page .dash-toolbar .filter-field {
  display: flex;
  flex: 1 1 160px;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.legacy.dashboard-page .dash-toolbar .dash-toolbar__grow {
  flex: 3 1 260px;
}
.legacy.dashboard-page .dash-toolbar__btn {
  flex: 0 0 auto;
  min-height: 42px;
}
.legacy.dashboard-page .dash-summary {
  margin: 0;
  color: var(--soft);
  font-size: 0.82rem;
}
.legacy.dashboard-page .dash-summary:empty {
  display: none;
}
.legacy.dashboard-page .dash .table-container {
  margin: 0;
  overflow-x: auto;
  border: 1px solid var(--dash-line);
  border-radius: 12px;
  background: rgba(7, 10, 15, 0.35);
}
.legacy.dashboard-page .dash-table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.legacy.dashboard-page .dash-table th {
  padding: 11px 14px;
  border-bottom: 1px solid var(--dash-line);
  background: rgba(255, 255, 255, 0.025);
  color: var(--soft);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.legacy.dashboard-page .dash-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(157, 176, 205, 0.08);
  color: var(--text);
  vertical-align: middle;
  line-height: 1.45;
}
.legacy.dashboard-page .dash-table tbody tr:last-child td {
  border-bottom: 0;
}
.legacy.dashboard-page .dash-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}
.legacy.dashboard-page .dash-table .table-empty {
  padding: 28px 14px;
  color: var(--soft);
  text-align: center;
}
.legacy.dashboard-page .dash-table th.dash-th-actions {
  text-align: right;
}
.legacy.dashboard-page .dash-table td.dash-mono.dash-wrap {
  max-width: 240px;
}
.legacy.dashboard-page .dash-table td.dash-msg {
  min-width: 150px;
  overflow-wrap: break-word;
}
.legacy.dashboard-page .dash-cell-main {
  font-weight: 600;
  overflow-wrap: anywhere;
}
.legacy.dashboard-page .dash-cell-sub {
  margin-top: 2px;
  color: var(--soft);
  font-size: 0.76rem;
  overflow-wrap: anywhere;
}
.legacy.dashboard-page .dash-actions-cell {
  text-align: right;
}
.legacy.dashboard-page .dash-row-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.legacy.dashboard-page .dash-row-actions .btn {
  min-height: 30px;
  padding: 5px 11px;
  font-size: 0.78rem;
  white-space: nowrap;
}
.legacy.dashboard-page .dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 2px 6px 2px 0;
  padding: 3px 10px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}
.legacy.dashboard-page .dash-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.legacy.dashboard-page .dash-badge--ok {
  border-color: rgba(66, 211, 146, 0.3);
  background: rgba(66, 211, 146, 0.1);
  color: #6ee7b0;
}
.legacy.dashboard-page .dash-badge--bad {
  border-color: rgba(255, 107, 107, 0.3);
  background: rgba(255, 107, 107, 0.1);
  color: #ff9d9d;
}
.legacy.dashboard-page .dash-badge--warn {
  border-color: rgba(247, 201, 72, 0.3);
  background: rgba(247, 201, 72, 0.1);
  color: #f7d774;
}
.legacy.dashboard-page .dash-badge--info {
  border-color: rgba(23, 132, 219, 0.35);
  background: rgba(23, 132, 219, 0.12);
  color: #8edcf0;
}
.legacy.dashboard-page .dash-badge--muted {
  border-color: var(--dash-line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}
.legacy.dashboard-page .dash .credit-alert {
  margin: 0;
  border-radius: 12px;
}
.legacy.dashboard-page .dash .credit-alert.hidden {
  display: none;
}
@media (min-width: 1100px) {
.legacy.dashboard-page .dash-row-actions {
    flex-wrap: nowrap;
  }

}
@media (max-width: 980px) {
.legacy.dashboard-page .dash-split {
    grid-template-columns: minmax(0, 1fr);
  }
.legacy.dashboard-page .dash-key {
    grid-template-columns: minmax(0, 1fr);
  }

}
@media (max-width: 900px) {
.legacy.dashboard-page .dash {
    --dash-pad: 18px;
    --dash-gap: 14px;
  }
.legacy.dashboard-page .dash-head__actions {
    width: 100%;
  }
.legacy.dashboard-page .dash-head__actions .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
  }
.legacy.dashboard-page .dash .dash-table-wrap {
    overflow: visible;
    border: 0;
    background: transparent;
  }
.legacy.dashboard-page .dash-table-wrap .dash-table, .legacy.dashboard-page .dash-table-wrap tbody, .legacy.dashboard-page .dash-table-wrap tr, .legacy.dashboard-page .dash-table-wrap td {
    display: block;
    width: 100%;
  }
.legacy.dashboard-page .dash-table-wrap thead {
    display: none;
  }
.legacy.dashboard-page .dash-table-wrap tr {
    margin-bottom: 10px;
    padding: 6px 14px;
    border: 1px solid var(--dash-line);
    border-radius: 12px;
    background: var(--dash-surface-2);
  }
.legacy.dashboard-page .dash-table-wrap td {
    display: grid;
    grid-template-columns: minmax(6rem, 32%) minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(157, 176, 205, 0.08);
    text-align: left;
  }
.legacy.dashboard-page .dash-table-wrap td:last-child {
    border-bottom: 0;
  }
.legacy.dashboard-page .dash-table-wrap td > * {
    grid-column: 2;
    justify-self: start;
  }
.legacy.dashboard-page .dash-table-wrap td::before {
    content: attr(data-label);
    color: var(--soft);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
.legacy.dashboard-page .dash-table-wrap td.table-empty {
    display: block;
    text-align: center;
  }
.legacy.dashboard-page .dash-table-wrap td.table-empty::before {
    content: none;
  }
.legacy.dashboard-page .dash-row-actions {
    justify-content: flex-start;
  }
.legacy.dashboard-page .dash-table tbody tr:hover td {
    background: transparent;
  }

}


/* ---------- Re-theme: AImodularity family palette and components ---------- */
.legacy {
  --a2spa-blue: #1784db; --a2spa-purple: #3436c2; --a2spa-gold: #b78410;
  --bg: transparent; --bg-2: rgba(8, 13, 31, 0.6);
  --panel: rgba(10, 16, 32, 0.78); --panel-2: rgba(16, 26, 58, 0.9);
  --card: rgba(10, 16, 32, 0.78); --card-strong: #0b1222;
  --border: rgba(148, 163, 184, 0.2); --border-strong: rgba(148, 163, 184, 0.4);
  --text: #f4f7ff; --muted: #a7b5db; --soft: #7d8bb3;
  --accent: #1784db; --accent-2: #3436c2; --accent-3: #b78410;
  --success: #4ade80; --warning: #fbbf24; --danger: #f87171;
  --gradient: linear-gradient(90deg, #4ba3ec, #4ba3ec 55%, #b78410);
  --brand-cyan: #4ba3ec; --brand-purple: #3436c2; --brand-gold: #b78410;
  --radius-sm: 10px; --radius: 16px; --radius-lg: 22px; --radius-xl: 28px;
  --shell: 1200px;
  font-family: "Inter", system-ui, sans-serif;
  color: #dbe6ff;
  background: none;
  min-height: 60vh;
}
.legacy h1, .legacy h2, .legacy h3, .legacy h4, .legacy .page-title, .legacy .section-title { font-family: "Inter", system-ui, sans-serif; color: #f4f7ff; letter-spacing: -0.02em; }
.legacy .site-shell { max-width: 1200px; padding-left: 24px; padding-right: 24px; }
.legacy .section-kicker, .legacy .eyebrow { color: #4ba3ec; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; background: none; border: 0; padding: 0; }
.legacy .page-lede, .legacy .section-lede, .legacy .hero-lede { color: #dbe6ff; }
.legacy .muted, .legacy .small-note, .legacy .dash-muted { color: #a7b5db; }

.legacy .btn { border-radius: 10px; background: #1784db; color: #fff; border: 1px solid transparent; font-family: "Inter", sans-serif; font-weight: 800; box-shadow: none; }
.legacy .btn:hover { color: #fff; filter: none; transform: translateY(-1px); }
.legacy .btn-secondary { background: rgba(10, 16, 32, 0.6); border-color: rgba(148, 163, 184, 0.4); color: #f4f7ff; box-shadow: none; }
.legacy .btn-secondary:hover { background: rgba(23, 132, 219, 0.14); border-color: #1784db; }
.legacy .btn-danger { background: rgba(248, 113, 113, 0.12); border-color: rgba(248, 113, 113, 0.4); color: #f87171; box-shadow: none; }
.legacy .btn-sm { padding: 7px 14px; font-size: 0.82rem; }

.legacy .panel, .legacy .card, .legacy .feature-card, .legacy .dash-card, .legacy .dash-section, .legacy .stat-card, .legacy .dash-stat, .legacy .endpoint-card, .legacy .prompt-card, .legacy .thread-card, .legacy .comment-card, .legacy .tracker-incident-card, .legacy .threat-map-card, .legacy .profile-primary-card, .legacy .profile-key-card, .legacy .profile-actions-card, .legacy .modal-content {
  background: rgba(10, 16, 32, 0.78); border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 22px; box-shadow: none;
}
.legacy .dash-stat--balance, .legacy .profile-primary-card { border-color: rgba(75, 163, 236, 0.45); }

.legacy .input-field, .legacy .textarea-field, .legacy .form-input, .legacy .form-select, .legacy .form-textarea, .legacy input[type="text"], .legacy input[type="email"], .legacy input[type="password"], .legacy input[type="number"], .legacy input[type="search"], .legacy input[type="datetime-local"], .legacy select, .legacy textarea {
  background: rgba(0, 4, 17, 0.7); border: 1px solid rgba(148, 163, 184, 0.4); border-radius: 10px; color: #f4f7ff; font-family: "Inter", sans-serif;
}
.legacy .input-field:focus, .legacy .textarea-field:focus, .legacy .form-input:focus, .legacy .form-select:focus, .legacy .form-textarea:focus, .legacy .filter-field:focus, .legacy select:focus, .legacy textarea:focus, .legacy input:focus { outline: none; border-color: #4ba3ec; box-shadow: 0 0 0 3px rgba(75, 163, 236, 0.18); }
.legacy .form-label, .legacy .filter-label, .legacy label { color: #f4f7ff; }

.legacy .table-container, .legacy .dash-table-wrap { border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 14px; background: rgba(10, 16, 32, 0.78); }
.legacy .data-table th, .legacy .dash-table th, .legacy table th { color: #a7b5db; background: rgba(148, 163, 184, 0.06); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.legacy .data-table td, .legacy .dash-table td, .legacy table td { color: #dbe6ff; border-color: rgba(148, 163, 184, 0.16); }

.legacy .code-block, .legacy pre, .legacy .dash-mono, .legacy .key-display { font-family: "JetBrains Mono", ui-monospace, monospace; }
.legacy .code-block, .legacy pre { background: #040713; border: 1px solid rgba(148, 163, 184, 0.4); border-radius: 14px; }
.legacy .status-badge, .legacy .dash-badge, .legacy .dash-chip, .legacy .meta-chip, .legacy .chip, .legacy .category-chip { border-radius: 999px; }
.legacy a { color: #4ba3ec; }
.legacy a.btn { color: #fff; }
.legacy a.btn-secondary { color: #f4f7ff; }

.legacy .appnav a { color: #a7b5db; }
.legacy .appnav a:hover, .legacy .appnav a.is-active { color: #fff; }
.legacy .appnav a span { color: #4ba3ec; }

/* ---------- Dashboard v3: screens ---------- */
.legacy.dashboard-page .dash { max-width: 1120px; margin: 0 auto; padding: 32px 32px 64px; }
.legacy .view-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.legacy .view-head h1 { font-size: 1.9rem; margin: 0 0 6px; letter-spacing: -0.02em; }
.legacy .view-head p { margin: 0; max-width: 680px; }
.legacy .view-head__actions { display: flex; gap: 10px; }
.legacy .dash-card { margin-bottom: 20px; }
.legacy .dash-card h2 { font-size: 1.2rem; margin: 0 0 8px; }
.legacy .onboard__steps { list-style: none; counter-reset: s; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.legacy .onboard__steps li { counter-increment: s; display: grid; grid-template-columns: 36px 1fr auto; gap: 4px 16px; align-items: center; padding: 14px 16px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; background: rgba(0, 4, 17, 0.4); }
.legacy .onboard__steps li::before { content: counter(s); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #1784db; color: #fff; font-weight: 800; }
.legacy .onboard__steps b { color: #f5f7fb; }
.legacy .onboard__steps span { grid-column: 2; color: #9aa4b8; font-size: 0.9rem; }
.legacy .onboard__steps .btn { grid-column: 3; grid-row: 1 / span 2; }
.legacy .create-panel { border-color: rgba(75, 163, 236, 0.45); }
.legacy .dash-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; list-style: none; padding: 0; margin: 12px 0 0; }
@media (max-width: 760px) {
  .legacy.dashboard-page .dash { padding: 20px 16px 48px; }
  .legacy .onboard__steps li { grid-template-columns: 36px 1fr; }
  .legacy .onboard__steps .btn { grid-column: 2; grid-row: auto; justify-self: start; margin-top: 6px; }
  .legacy .dash-links { grid-template-columns: 1fr; }
}
.legacy .dash-form__row .btn { width: auto; }
.legacy .section-kicker, .legacy .eyebrow { color: #e3b23c; }
.legacy .onboard__steps li::before { background: #5423bb; }
.legacy .appnav a span { color: #a68cff; }
.legacy .section-kicker, .legacy .eyebrow { color: #9aa4b8; }
.legacy .onboard__steps li::before { background: #1784db; }
.legacy .appnav a span { color: #4ba3ec; }
.legacy h1, .legacy h2, .legacy h3 { font-weight: 600; }
.legacy .view-head h1 { font-size: 1.6rem; }
.legacy .dash-stat__value { font-weight: 650; }
.legacy .dash-table { min-width: 760px; }
.legacy .dash-table td.dash-mono { min-width: 150px; word-break: break-word; overflow-wrap: anywhere; font-size: 0.8rem; }
.legacy .dash-table-wrap { overflow-x: auto; }

/* ---------- Dashboard v5: glass sidebar ---------- */
.legacy .appshell { grid-template-columns: 256px 1fr; transition: grid-template-columns 0.25s ease; }
.legacy .appshell.is-collapsed { grid-template-columns: 76px 1fr; }
.legacy .sidebar { position: sticky; top: 64px; height: calc(100vh - 64px); display: flex; flex-direction: column; gap: 14px; padding: 18px 14px; background: rgba(8, 13, 28, 0.72); backdrop-filter: blur(14px); border-right: 1px solid rgba(148, 163, 184, 0.12); overflow: hidden; }
.legacy .sidebar__top { display: flex; align-items: center; justify-content: space-between; padding: 0 6px; min-height: 32px; }
.legacy .sidebar__title { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6b7487; white-space: nowrap; }
.legacy .sidebar__collapse { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(148, 163, 184, 0.2); background: rgba(148, 163, 184, 0.06); color: #9aa4b8; cursor: pointer; display: grid; place-items: center; transition: transform 0.25s ease, color 0.15s; }
.legacy .sidebar__collapse:hover { color: #fff; }
.legacy .sidebar__collapse .side-icon { width: 16px; height: 16px; }
.legacy .is-collapsed .sidebar__collapse { transform: rotate(180deg); }
.legacy .sidebar__search { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 38px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.18); background: rgba(0, 4, 17, 0.55); color: #6b7487; }
.legacy .sidebar__search input { border: 0; background: none; padding: 0; height: 36px; box-shadow: none; font-size: 0.88rem; min-width: 0; }
.legacy .sidebar__search input:focus { box-shadow: none; }
.legacy .sidebar__search:focus-within { border-color: #4ba3ec; }
.legacy .sidebar__nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; flex: 1; margin: 0 -4px; padding: 0 4px; }
.legacy .side-group { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #6b7487; padding: 14px 10px 6px; white-space: nowrap; }
.legacy .side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #9aa4b8; font-weight: 500; font-size: 0.9rem; white-space: nowrap; transition: background 0.15s, color 0.15s, transform 0.15s; }
.legacy .side-link:hover { color: #f5f7fb; background: rgba(148, 163, 184, 0.08); transform: translateX(2px); }
.legacy .side-link.is-active { color: #fff; background: linear-gradient(90deg, rgba(84, 35, 187, 0.32), rgba(23, 132, 219, 0.14)); box-shadow: inset 0 0 0 1px rgba(140, 100, 255, 0.25), 0 6px 20px rgba(84, 35, 187, 0.22); }
.legacy .side-link.is-active::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(180deg, #1784db, #5423bb, #b78410); box-shadow: 0 0 12px rgba(120, 80, 255, 0.8); }
.legacy .side-icon { width: 18px; height: 18px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.legacy .side-link.is-active .side-icon { color: #b8a4ff; filter: drop-shadow(0 0 6px rgba(140, 100, 255, 0.7)); }
.legacy .side-link__label { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.legacy .side-badge { font-size: 0.7rem; font-weight: 700; min-width: 22px; height: 20px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; background: rgba(23, 132, 219, 0.2); color: #8cc4f2; }
.legacy #badge-blocked { background: rgba(248, 113, 113, 0.16); color: #fca5a5; }
.legacy .sidebar__credits { border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 12px; padding: 12px; background: rgba(0, 4, 17, 0.45); display: grid; gap: 10px; }
.legacy .sidebar__credits-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 0.8rem; color: #9aa4b8; white-space: nowrap; }
.legacy .sidebar__credits-row b { color: #f5f7fb; font-size: 1rem; font-weight: 650; }
.legacy .sidebar__topup { width: 100%; }
.legacy .sidebar__user { display: flex; align-items: center; gap: 10px; padding: 10px 6px 0; border-top: 1px solid rgba(148, 163, 184, 0.12); min-width: 0; }
.legacy .sidebar__user-text { min-width: 0; display: grid; }
.legacy .sidebar__user-text b { font-size: 0.82rem; font-weight: 600; color: #f5f7fb; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.legacy .sidebar__user-text span { font-size: 0.74rem; color: #6b7487; }
.legacy .is-collapsed .sidebar__title, .legacy .is-collapsed .side-link__label, .legacy .is-collapsed .side-badge, .legacy .is-collapsed .side-group, .legacy .is-collapsed .sidebar__search input, .legacy .is-collapsed .sidebar__credits, .legacy .is-collapsed .sidebar__user-text { display: none; }
.legacy .is-collapsed .sidebar__top { justify-content: center; padding: 0; }
.legacy .is-collapsed .sidebar__search { justify-content: center; padding: 0; }
.legacy .is-collapsed .side-link { justify-content: center; padding: 11px 0; }
.legacy .is-collapsed .side-link.is-active::before { left: -14px; }
.legacy .is-collapsed .sidebar__user { justify-content: center; padding-left: 0; padding-right: 0; }

/* ---------- Dashboard v5: spacing and inputs ---------- */
.legacy.dashboard-page .dash { max-width: 1100px; padding: 36px 40px 72px; }
.legacy .view-head { margin-bottom: 28px; }
.legacy .dash-card { padding: 24px 26px; border-radius: 16px; margin-bottom: 20px; }
.legacy .dash-stats { gap: 16px; margin-bottom: 24px; }
.legacy .dash-stat { padding: 20px 22px; }
.legacy .dash-toolbar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; margin-bottom: 18px; }
.legacy .filter-field, .legacy .form-group { display: grid; gap: 7px; margin: 0; }
.legacy .dash-form { display: grid; gap: 18px; }
.legacy .dash-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.legacy .filter-label, .legacy .form-label { font-size: 0.8rem; font-weight: 600; color: #d6dbe6; margin: 0; letter-spacing: 0; text-transform: none; }
.legacy .input-field, .legacy .form-input, .legacy .form-select, .legacy .filter-field input, .legacy .filter-field select, .legacy .form-group input, .legacy .form-group select { height: 42px; padding: 0 12px; font-size: 0.9rem; border-radius: 10px; }
.legacy textarea.input-field, .legacy .textarea-field, .legacy .form-textarea { height: auto; min-height: 120px; padding: 12px; }
.legacy .dash-toolbar .filter-field { min-width: 160px; }
.legacy .dash-toolbar__grow { flex: 1 1 260px; }
.legacy .dash-chips { display: flex; flex-wrap: wrap; gap: 10px; border: 0; padding: 0; margin: 0; }
.legacy .dash-chips legend { margin-bottom: 10px; }
.legacy .dash-chip { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 10px; border: 1px solid rgba(148, 163, 184, 0.22); background: rgba(0, 4, 17, 0.4); font-size: 0.86rem; cursor: pointer; }
.legacy .dash-chip:has(input:checked) { border-color: rgba(75, 163, 236, 0.55); background: rgba(23, 132, 219, 0.12); }
.legacy .dash-note { font-size: 0.8rem; color: #6b7487; margin: 4px 0 0; }
.legacy .dash-summary { font-size: 0.82rem; color: #9aa4b8; margin: 0 0 12px; }
.legacy .dash-form__row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.legacy .dash-key { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; }
.legacy .dash-key .dash-note { grid-column: 1 / -1; }
@media (max-width: 1000px) {
  .legacy .appshell, .legacy .appshell.is-collapsed { grid-template-columns: 1fr; }
  .legacy .sidebar { position: static; height: auto; flex-direction: column; border-right: 0; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
  .legacy .sidebar__nav { flex-direction: row; flex-wrap: wrap; }
  .legacy .side-group, .legacy .sidebar__collapse, .legacy .sidebar__credits, .legacy .sidebar__user { display: none; }
  .legacy.dashboard-page .dash { padding: 24px 16px 56px; }
  .legacy .dash-key { grid-template-columns: 1fr; }
}

/* ---------- Account page ---------- */
.legacy .side-link[aria-current="page"] { color: #fff; background: linear-gradient(90deg, rgba(84, 35, 187, 0.32), rgba(23, 132, 219, 0.14)); box-shadow: inset 0 0 0 1px rgba(140, 100, 255, 0.25); }
.legacy .account-id { display: flex; align-items: center; gap: 16px; }
.legacy .avatar--lg { width: 52px; height: 52px; font-size: 1.3rem; }
.legacy .account-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; margin-bottom: 20px; }
.legacy .account-grid .dash-card { margin-bottom: 0; }
.legacy .plan-card { border-color: rgba(140, 100, 255, 0.35); }
.legacy .plan-card__row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.legacy .plan-card__row h2 { margin-bottom: 2px; }
.legacy .account-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 18px 0 10px; }
.legacy .account-stats div { border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 12px; padding: 14px; background: rgba(0, 4, 17, 0.35); }
.legacy .account-stats span { display: block; font-size: 0.74rem; color: #9aa4b8; }
.legacy .account-stats b { font-size: 1.15rem; font-weight: 650; color: #f5f7fb; }
.legacy .kv-list { display: grid; gap: 0; margin: 12px 0 0; }
.legacy .kv-list div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid rgba(148, 163, 184, 0.12); }
.legacy .kv-list div:last-child { border-bottom: 0; }
.legacy .kv-list dt { color: #9aa4b8; font-size: 0.85rem; }
.legacy .kv-list dd { margin: 0; color: #f5f7fb; font-size: 0.88rem; text-align: right; word-break: break-all; }
.legacy .kv-list--row { grid-template-columns: repeat(3, 1fr); gap: 12px; }
.legacy .kv-list--row div { flex-direction: column; border: 1px solid rgba(148, 163, 184, 0.16); border-radius: 12px; padding: 12px 14px; }
.legacy .kv-list--row div:last-child { border-bottom: 1px solid rgba(148, 163, 184, 0.16); }
.legacy .kv-list--row dd { text-align: left; }
.legacy .health-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.legacy .health-list li { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: start; padding: 12px 14px; border: 1px solid rgba(148, 163, 184, 0.14); border-radius: 12px; }
.legacy .health-list b { color: #f5f7fb; font-weight: 600; }
.legacy .health-list p { margin: 2px 0 0; color: #9aa4b8; font-size: 0.86rem; }
.legacy .danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.legacy .danger-zone h2 { margin-bottom: 2px; }
@media (max-width: 1000px) {
  .legacy .account-grid, .legacy .kv-list--row, .legacy .account-stats { grid-template-columns: 1fr; }
  .legacy .health-list li { grid-template-columns: 1fr; }
}

/* ---------- v6: filter labels sit above plain inputs; compact health rows ---------- */
.legacy .filter-field { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; height: auto; }
.legacy .filter-field .filter-label { font-size: 0.78rem; font-weight: 500; color: #9aa4b8; }
.legacy .health-list li { grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; }
.legacy .health-list li > .status-badge { order: 2; justify-self: end; margin: 0; padding: 3px 10px; min-height: 0; height: auto; font-size: 0.72rem; font-weight: 600; white-space: nowrap; }
.legacy .health-list li > div { min-width: 0; }
.legacy .health-list p { overflow-wrap: anywhere; }
@media (max-width: 1000px) { .legacy .health-list li { grid-template-columns: 1fr auto; } }
@media (max-width: 1240px) { .legacy .account-grid { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .legacy .account-stats, .legacy .kv-list--row { grid-template-columns: 1fr 1fr; } }
.legacy #agent-table-body td:first-child { min-width: 200px; }
.legacy .dash-table-wrap, .legacy .table-container { overflow-x: auto; }
.legacy .kv-list .status-badge { border-radius: 8px; line-height: 1.35; padding: 4px 10px; }

/* ---------- Spacing in dashboard views: between cards and under card headings ---------- */
.legacy.dashboard-page .view > .dash-card { margin: 0 0 18px; }
.legacy.dashboard-page .view > .dash-card:last-child { margin-bottom: 0; }
.legacy.dashboard-page .dash-card > h2 { margin-bottom: 12px; }
.legacy.dashboard-page .dash-card > .section-kicker + h2 { margin-top: 2px; }
.legacy.dashboard-page .dash-card > h2 + .dash-muted { margin-top: -4px; }
.legacy.dashboard-page .dash-card > p.dash-muted { margin-bottom: 18px; }
.legacy.dashboard-page .dash-form .dash-form__row + * { margin-top: 12px; }
.legacy.dashboard-page .dash-card .dash-form + .dash-summary, .legacy.dashboard-page .dash-card > .dash-summary:first-of-type { margin-top: 18px; }
.legacy.dashboard-page .dash-card > .dash-summary { margin-bottom: 10px; }
.legacy.dashboard-page .dash-card > .dash-summary:empty { display: none; }
.legacy.dashboard-page .dash-card > form + .dash-summary, .legacy.dashboard-page .dash-card > form + .dash-summary:empty + .dash-summary { margin-top: 18px; }
