css constant

String const css

CSS stylesheet

Implementation

static const String css = r'''* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-bg: #f4f6fa;
  --color-surface: #ffffff;
  --color-surface-alt: #f8fafc;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #94a3b8;
  --color-primary: #6366f1;
  --color-primary-hover: #4f46e5;
  --color-primary-subtle: #eef2ff;
  --color-success: #10b981;
  --color-success-subtle: #ecfdf5;
  --color-warning: #f59e0b;
  --color-warning-subtle: #fffbeb;
  --color-error: #ef4444;
  --color-error-subtle: #fef2f2;
  --color-info: #3b82f6;
  --color-info-subtle: #eff6ff;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'SF Mono', 'Fira Code', 'Cascadia Code', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.10);
  --transition: 150ms ease;
}

body {
  font-family: var(--font-sans);
  background: var(--color-bg);
  color: var(--color-text);
  min-height: 100vh;
  padding: 0;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.container {
  max-width: 1320px;
  margin: 0 auto;
  background: transparent;
  overflow: visible;
}

header {
  background: var(--color-text);
  color: #fff;
  padding: 24px 32px;
  text-align: center;
}

header h1 {
  font-size: 1.75em;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.atsign {
  font-size: 1.2em;
  font-weight: 600;
  opacity: 0.8;
}

main {
  padding: 0;
}

/* ─────────────── Management Navigation Bar ─────────────── */

.management-nav {
  display: grid;
  grid-template-columns: 1fr minmax(240px, auto) 1fr;
  align-items: center;
  gap: 16px;
  padding: 16px 24px;
  background: var(--color-text);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.management-nav-side {
  display: flex;
  align-items: center;
}

.management-nav-side-left {
  justify-content: flex-start;
}

.management-nav-side-right {
  justify-content: flex-end;
}

.management-nav-center {
  text-align: center;
}

.management-nav-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: 4px;
}

.management-nav-atsign {
  font-size: clamp(1rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
  letter-spacing: -0.01em;
}

/* ─────────────── Management Page ─────────────── */

.management-page {
  min-width: 0;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ─────────────── Management Sections (Details/Summary) ─────────────── */

.management-section {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
}

.management-section:hover {
  box-shadow: var(--shadow-md);
}

.management-section + .management-section {
  margin-top: 0;
}

.management-section-summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  cursor: pointer;
  user-select: none;
  transition: background var(--transition);
}

.management-section-summary:hover {
  background: var(--color-surface-alt);
}

.management-section-summary::-webkit-details-marker {
  display: none;
}

.management-section-summary h2 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
  letter-spacing: -0.01em;
}

.management-section-summary p {
  color: var(--color-text-secondary);
  font-size: 13px;
  line-height: 1.4;
}

.management-section-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  flex-shrink: 0;
  transition: transform var(--transition), background var(--transition);
}

.management-section-toggle::before {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg) translate(-1px, -1px);
  transition: transform var(--transition);
}

.management-section[open] .management-section-toggle::before {
  transform: rotate(45deg) translate(-1px, -1px);
}

.management-section-body {
  padding: 20px 22px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
}

.management-section-yellow .management-section-summary {
  border-left: 3px solid var(--color-warning);
  background: var(--color-surface);
}

.management-section-yellow .management-section-summary:hover {
  background: var(--color-warning-subtle);
}

.management-section-orange .management-section-summary {
  border-left: 3px solid #f97316;
  background: var(--color-surface);
}

.management-section-orange .management-section-summary:hover {
  background: #fff7ed;
}

.management-section-blue .management-section-summary {
  border-left: 3px solid var(--color-info);
  background: var(--color-surface);
}

.management-section-blue .management-section-summary:hover {
  background: var(--color-info-subtle);
}

.management-section-green .management-section-summary {
  border-left: 3px solid var(--color-success);
  background: var(--color-surface);
}

.management-section-green .management-section-summary:hover {
  background: var(--color-success-subtle);
}

.management-section-slate .management-section-summary {
  border-left: 3px solid var(--color-text-muted);
  background: var(--color-surface);
}

.management-section-slate .management-section-summary:hover {
  background: var(--color-surface-alt);
}

.management-section-blue .management-section-summary h2,
.management-section-blue .management-section-summary p,
.management-section-slate .management-section-summary h2,
.management-section-slate .management-section-summary p {
  color: inherit;
}

.management-section-blue .management-section-toggle,
.management-section-slate .management-section-toggle {
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
}

/* ─────────────── OTP Management ─────────────── */

.otp-management-grid {
  display: grid;
  grid-template-columns: minmax(240px, 400px);
  gap: 12px;
  margin-bottom: 16px;
}

.enrollment-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.auto-approval-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.management-command-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.management-command-label {
  font-weight: 700;
  color: var(--color-text);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─────────────── Namespace Permissions ─────────────── */

.namespace-permission-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 10px 0 12px;
}

.namespace-permission-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 110px auto;
  gap: 8px;
  align-items: center;
}

.namespace-permission-row input,
.namespace-permission-row select {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--color-surface);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.namespace-permission-row input:focus,
.namespace-permission-row select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.namespace-preview {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
  word-break: break-word;
  font-family: var(--font-mono);
}

/* ─────────────── OTP Results ─────────────── */

.otp-inline-result {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--color-warning-subtle);
  border: 1px solid #fcd34d;
}

.otp-inline-result-error {
  background: var(--color-error-subtle);
  border-color: #fca5a5;
}

.otp-inline-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  margin-bottom: 8px;
}

.otp-inline-value {
  display: block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-text);
  word-break: break-all;
  font-family: var(--font-mono);
}

.otp-inline-command {
  white-space: pre-wrap;
  font-size: 0.9rem;
  font-weight: 600;
}

.otp-inline-meta {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-muted);
}

/* ─────────────── OTP History Table ─────────────── */

.otp-history-section {
  margin-top: 16px;
}

.otp-history-empty {
  color: var(--color-text-muted);
  font-size: 13px;
  padding: 12px 0;
}

.otp-history-table-wrap {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
}

.otp-history-table {
  width: 100%;
  border-collapse: collapse;
}

.otp-history-table th,
.otp-history-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border-light);
  text-align: left;
  font-size: 13px;
}

.otp-history-table th {
  background: var(--color-surface-alt);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
}

.otp-history-table tbody tr:last-child td {
  border-bottom: none;
}

.otp-history-table tbody tr:hover {
  background: var(--color-surface-alt);
}

.otp-time-left {
  margin-top: 3px;
  font-size: 11px;
  color: var(--color-text-muted);
  font-weight: 600;
  font-family: var(--font-mono);
}

.otp-history-copy-btn {
  border: none;
  background: transparent;
  padding: 2px 0;
  color: var(--color-primary);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition);
}

.otp-history-copy-btn:hover {
  color: var(--color-primary-hover);
  text-decoration: underline;
}

.otp-history-clear-btn {
  border: 1px solid #fecaca;
  background: var(--color-error-subtle);
  color: var(--color-error);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.otp-history-clear-btn:hover {
  background: #fee2e2;
}

/* ─────────────── Auto Approval ─────────────── */

.auto-approval-checkbox-field {
  justify-content: flex-end;
}

.auto-approval-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  font-size: 13px;
}

.auto-approval-checkbox input {
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

.auto-approval-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.auto-approval-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 16px;
}

.auto-approval-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.auto-approval-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.auto-approval-card-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
}

.auto-approval-card-status.running,
.auto-approval-card-status.starting {
  background: var(--color-success-subtle);
  color: #166534;
}

.auto-approval-card-status.stopping,
.auto-approval-card-status.stopped,
.auto-approval-card-status.completed {
  background: var(--color-warning-subtle);
  color: #92400e;
}

.auto-approval-card-status.error {
  background: var(--color-error-subtle);
  color: var(--color-error);
}

.auto-approval-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin-bottom: 14px;
}

.auto-approval-card-row-wide {
  grid-column: 1 / -1;
}

.auto-approval-card-row strong {
  display: block;
  margin-bottom: 2px;
  color: var(--color-text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.auto-approval-card-row code,
.auto-approval-card-row span {
  color: var(--color-text);
  word-break: break-word;
  font-size: 13px;
}

.auto-approval-card-row code {
  font-family: var(--font-mono);
}

.auto-approval-approved-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.auto-approval-approved-list code {
  display: block;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 12px;
}

.auto-approval-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.auto-approval-card-actions .api-v4-secondary.auto-approval-delete-btn {
  border-color: #fecaca;
  color: var(--color-error);
  background: var(--color-error-subtle);
}

.auto-approval-card-actions .api-v4-secondary.auto-approval-delete-btn:hover {
  background: #fee2e2;
}

.auto-approval-log-panel {
  margin-top: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #e2e8f0;
  overflow: hidden;
}

.auto-approval-log-label {
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: #1e293b;
  color: var(--color-text-muted);
}

.auto-approval-log-output {
  margin: 0;
  padding: 12px 14px;
  max-height: 240px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1.6;
}

/* ─────────────── History ─────────────── */

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  background: var(--color-surface);
  transition: background var(--transition);
}

.history-item:hover {
  background: var(--color-surface-alt);
}

.history-item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 4px;
}

.history-item-type {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
}

.history-item-time {
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.history-item-summary {
  color: var(--color-text);
  font-weight: 600;
  margin-bottom: 4px;
  font-size: 13px;
}

.history-item-data {
  color: var(--color-text-secondary);
  font-size: 12px;
  word-break: break-word;
}

/* ─────────────── atSign Name Row ─────────────── */

.atsign-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.atsign-auto-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-success-subtle);
  color: #166534;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* ─────────────── Tabs ─────────────── */

.tabs-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 4px;
  overflow: visible;
  box-shadow: var(--shadow-xs);
}

.tab-dropdown {
  position: relative;
}

.tab-btn {
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.tab-btn:hover {
  background: var(--color-surface-alt);
  color: var(--color-text);
}

.tab-btn.active {
  background: var(--color-text);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.tab-dropdown-trigger::after {
  content: '\25BE';
  margin-left: 6px;
  font-size: 11px;
}

.tab-dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 200px;
  padding: 4px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-lg);
  z-index: 100;
}

.tab-dropdown-item {
  display: block;
  width: 100%;
  border: none;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-secondary);
  text-align: left;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.tab-dropdown-item:hover {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.tab-dropdown-item.active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.placeholder-panel {
  background: var(--color-surface-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  padding: 48px 24px;
  text-align: center;
  color: var(--color-text-secondary);
}

.placeholder-panel h2 {
  margin-bottom: 10px;
}

/* ─────────────── API v4 Console ─────────────── */

.api-v4-console {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.api-v4-global-field {
  margin-bottom: 16px;
}

.api-v4-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.api-v4-field-wide {
  grid-column: 1 / -1;
}

.api-v4-inline-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-v4-inline-input input {
  flex: 1 1 auto;
  min-width: 0;
}

.api-v4-global-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.wizard-report-form {
  margin: 16px 0 20px;
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface-alt);
}

.wizard-console textarea {
  min-height: 120px;
}

.wizard-report-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wizard-progress-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.wizard-progress-segment {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-alt);
}

.wizard-progress-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
  background: var(--color-border);
  color: var(--color-text-secondary);
}

.wizard-progress-label-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.wizard-progress-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}

.wizard-progress-state {
  font-size: 11px;
  line-height: 1.2;
  color: var(--color-text-muted);
  text-transform: capitalize;
}

.wizard-progress-pending {
  background: var(--color-surface-alt);
  border-color: var(--color-border);
}

.wizard-progress-running {
  background: #fff7ed;
  border-color: #fdba74;
}

.wizard-progress-running .wizard-progress-index {
  background: #f97316;
  color: #fff;
}

.wizard-progress-warning {
  background: var(--color-warning-subtle);
  border-color: #fcd34d;
}

.wizard-progress-warning .wizard-progress-index {
  background: #d97706;
  color: #fff;
}

.wizard-progress-completed {
  background: var(--color-success-subtle);
  border-color: #86efac;
}

.wizard-progress-completed .wizard-progress-index {
  background: var(--color-success);
  color: #fff;
}

.wizard-progress-error {
  background: var(--color-error-subtle);
  border-color: #fca5a5;
}

.wizard-progress-error .wizard-progress-index {
  background: var(--color-error);
  color: #fff;
}

.wizard-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.wizard-step-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 13px;
}

.wizard-step-card strong {
  color: var(--color-text);
}

.wizard-step-card span {
  color: var(--color-text-muted);
  text-transform: capitalize;
  font-family: var(--font-mono);
  font-size: 12px;
}

.wizard-log-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.wizard-log-entry {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 10px;
  align-items: start;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  border: 1px solid var(--color-border-light);
  font-family: var(--font-mono);
  font-size: 12px;
}

.wizard-log-timestamp {
  color: var(--color-text-muted);
  white-space: nowrap;
}

.wizard-log-message {
  color: var(--color-text);
  white-space: pre-wrap;
  word-break: break-word;
}

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

.wizard-report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.wizard-report-table th,
.wizard-report-table td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border-light);
}

.wizard-report-table th {
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  font-weight: 700;
  white-space: nowrap;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wizard-report-table td {
  color: var(--color-text);
  word-break: break-word;
  font-family: var(--font-mono);
}

.wizard-report-table tbody tr:last-child td {
  border-bottom: none;
}

.wizard-report-table tbody tr:hover {
  background: var(--color-surface-alt);
}

@media (max-width: 900px) {
  .wizard-progress-bar {
      grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wizard-progress-bar {
      grid-template-columns: 1fr;
  }

  .wizard-log-entry {
      grid-template-columns: 1fr;
  }
}

.api-v4-save-status {
  font-size: 12px;
  color: var(--color-text-muted);
}

.api-v4-subtitle {
  color: var(--color-text-secondary);
  margin: 4px 0 16px;
  font-size: 13px;
}

.api-v4-subsection-title {
  margin: 20px 0 10px;
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.api-v4-field {
  display: block;
  margin-bottom: 12px;
}

.api-v4-field span {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--color-text);
  font-size: 13px;
}

.api-v4-field input,
.api-v4-field select,
.api-v4-field textarea {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 13px;
  background: var(--color-surface);
  color: var(--color-text);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.api-v4-field input:focus,
.api-v4-field select:focus,
.api-v4-field textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.api-v4-field input::placeholder,
.api-v4-field textarea::placeholder {
  color: var(--color-text-muted);
}

.api-v4-field textarea {
  resize: vertical;
}

.api-v4-row {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.api-v4-row + .api-v4-row {
  margin-top: 8px;
}

.api-v4-section {
  margin-top: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-alt);
  overflow: hidden;
}

.api-v4-section summary {
  cursor: pointer;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  background: var(--color-surface-alt);
  transition: background var(--transition);
}

.api-v4-section summary:hover {
  background: var(--color-border-light);
}

.api-v4-section-body {
  padding: 14px;
}

.api-v4-row-head {
  width: 100%;
  border: none;
  background: transparent;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  flex-wrap: wrap;
  text-align: left;
  cursor: pointer;
  transition: background var(--transition);
}

.api-v4-row-head:hover {
  background: var(--color-surface-alt);
}

.api-v4-row-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
}

.api-v4-row-route {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.api-v4-row-route code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-text-secondary);
}

.api-v4-toggle-indicator {
  display: inline-flex;
  width: 22px;
  height: 22px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  font-weight: 700;
  font-size: 12px;
}

.api-v4-row-head[aria-expanded="true"] .api-v4-toggle-indicator::before {
  content: '\2212';
}

.api-v4-row-head[aria-expanded="false"] .api-v4-toggle-indicator::before {
  content: '+';
}

.api-v4-row-body {
  padding: 16px;
  border-top: 1px solid var(--color-border-light);
}

.api-v4-method {
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.api-v4-method-get {
  background: var(--color-info-subtle);
  color: #1d4ed8;
}

.api-v4-method-post {
  background: var(--color-success-subtle);
  color: #15803d;
}

.api-v4-method-delete {
  background: var(--color-error-subtle);
  color: var(--color-error);
}

.api-v4-method-put,
.api-v4-method-patch,
.api-v4-method-options {
  background: var(--color-warning-subtle);
  color: #b45309;
}

.api-v4-param-summary {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 2px;
}

.api-v4-param-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.api-v4-inline-warning {
  margin: 8px 0 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fff7ed;
  border: 1px solid #fdba74;
  color: #9a3412;
  font-size: 12px;
}

.api-v4-field small {
  font-size: 11px;
  color: var(--color-text-muted);
}

.api-v4-advanced {
  margin: 10px 0 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--color-border);
}

.api-v4-advanced summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: 10px;
  font-size: 13px;
}

.api-v4-actions {
  display: flex;
  gap: 8px;
  margin: 8px 0 14px;
}

.api-v4-actions button[data-role="send"] {
  border: none;
  border-radius: var(--radius-sm);
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  transition: background var(--transition), box-shadow var(--transition);
}

.api-v4-actions button[data-role="send"]:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-sm);
}

.api-v4-secondary {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.api-v4-secondary:hover {
  background: var(--color-surface-alt);
  border-color: var(--color-text-muted);
  color: var(--color-text);
}

.api-v4-secondary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.api-v4-status {
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.api-v4-result {
  margin-bottom: 12px;
}

.api-v4-result-card {
  border-radius: var(--radius-md);
  padding: 12px 14px;
  border: 1px solid transparent;
}

.api-v4-result-success {
  background: var(--color-success-subtle);
  border-color: #86efac;
}

.api-v4-result-error {
  background: var(--color-error-subtle);
  border-color: #fca5a5;
}

.api-v4-result-head {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.api-v4-result-badge {
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-v4-result-badge-success {
  background: var(--color-success);
  color: #fff;
}

.api-v4-result-badge-error {
  background: var(--color-error);
  color: #fff;
}

.api-v4-result-badge-neutral {
  background: var(--color-border);
  color: var(--color-text-secondary);
}

.api-v4-result-text {
  font-size: 13px;
  color: var(--color-text);
  font-weight: 600;
}

.api-v4-cramkey-block {
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #94a3b8;
}

.api-v4-cramkey-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 4px;
  font-weight: 700;
}

.api-v4-cramkey-block code {
  display: block;
  white-space: pre-wrap;
  word-break: break-all;
  color: #e2e8f0;
  font-family: var(--font-mono);
  font-size: 12px;
}

.api-v4-transaction-path {
  margin-top: 10px;
  font-size: 12px;
  color: var(--color-text-secondary);
}

.api-v4-transaction-path code {
  word-break: break-all;
  font-family: var(--font-mono);
}

.api-v4-batch-results {
  margin-bottom: 12px;
}

.api-v4-batch-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  padding: 12px;
}

.api-v4-batch-item + .api-v4-batch-item {
  margin-top: 8px;
}

.api-v4-batch-item-success {
  border-color: #86efac;
  background: var(--color-success-subtle);
}

.api-v4-batch-item-error {
  border-color: #fca5a5;
  background: var(--color-error-subtle);
}

.api-v4-batch-item-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.api-v4-batch-atsign {
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.api-v4-batch-state {
  font-size: 11px;
  font-weight: 700;
  color: var(--color-text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.api-v4-batch-message {
  margin-top: 6px;
  font-size: 12px;
  color: var(--color-text-secondary);
  word-break: break-word;
}

.api-v4-batch-cramkey {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.api-v4-batch-cramkey code {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #e2e8f0;
  word-break: break-all;
  flex: 1 1 280px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.api-v4-transaction-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0;
  overflow: hidden;
}

.api-v4-transaction-card + .api-v4-transaction-card {
  margin-top: 8px;
}

.api-v4-transaction-summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  cursor: pointer;
  transition: background var(--transition);
}

.api-v4-transaction-summary:hover {
  background: var(--color-surface-alt);
}

.api-v4-transaction-summary::-webkit-details-marker {
  display: none;
}

.api-v4-transaction-title-wrap {
  min-width: 0;
}

.api-v4-transaction-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  word-break: break-word;
}

.api-v4-transaction-subtitle {
  margin-top: 2px;
  font-size: 12px;
  color: var(--color-text-muted);
  word-break: break-word;
}

.api-v4-transaction-summary-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}

.api-v4-transaction-summary-right .api-v4-secondary {
  min-width: 80px;
  text-align: center;
}

.api-v4-transaction-created {
  font-size: 11px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
}

.api-v4-transaction-body {
  border-top: 1px solid var(--color-border-light);
  padding: 14px 16px;
}

.api-v4-transaction-meta {
  font-size: 12px;
  color: var(--color-text-secondary);
  margin-bottom: 4px;
  word-break: break-word;
}

.api-v4-transaction-meta strong {
  color: var(--color-text);
}

.api-v4-transaction-cramkey {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 10px;
  margin-bottom: 10px;
}

.api-v4-transaction-cramkey code {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: #0f172a;
  color: #e2e8f0;
  word-break: break-all;
  flex: 1 1 280px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.api-v4-transaction-raw {
  margin-top: 10px;
}

.api-v4-transaction-raw summary {
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: color var(--transition);
}

.api-v4-transaction-raw summary:hover {
  color: var(--color-text-secondary);
}

.api-v4-activation-log {
  margin-top: 10px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow: auto;
  max-height: 240px;
  font-size: 12px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
}

.api-v4-activation-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.api-v4-transaction-json {
  margin-top: 8px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  overflow: auto;
  max-height: 320px;
  font-size: 12px;
  line-height: 1.6;
  font-family: var(--font-mono);
}

.api-v4-output {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px;
  min-height: 160px;
  max-height: 400px;
  overflow: auto;
  font-size: 12px;
  line-height: 1.6;
  font-family: var(--font-mono);
}

/* ─────────────── APKAM Key Management Controls ─────────────── */

.controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

#refresh-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
  white-space: nowrap;
}

#refresh-btn:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-sm);
}

#otp-btn {
  background: var(--color-warning);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
}

#otp-btn:hover {
  background: #d97706;
}

.wizards-dropdown {
  position: relative;
}

#wizards-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

#wizards-btn:hover {
  background: var(--color-primary-hover);
}

.wizards-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border);
  min-width: 260px;
  z-index: 1000;
  display: none;
  overflow: hidden;
}

.wizards-menu.show {
  display: block;
  animation: menuSlideIn 0.15s ease-out;
}

@keyframes menuSlideIn {
  from {
      opacity: 0;
      transform: translateY(-6px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

.wizard-option {
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: var(--color-surface);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background var(--transition);
  text-align: left;
}

.wizard-option:hover {
  background: var(--color-surface-alt);
}

.wizard-option:not(:last-child) {
  border-bottom: 1px solid var(--color-border-light);
}

.wizard-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.wizard-details {
  flex: 1;
}

.wizard-title {
  font-weight: 600;
  color: var(--color-text);
  font-size: 13px;
  margin-bottom: 1px;
}

.wizard-description {
  font-size: 12px;
  color: var(--color-text-muted);
}

.back-btn {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
}

.back-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.25);
}

.close-btn {
  background: var(--color-error);
  color: #fff;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  cursor: pointer;
  transition: all var(--transition);
  font-weight: 600;
}

.close-btn:hover {
  background: #dc2626;
}

/* ─────────────── Search ─────────────── */

.search-box {
  flex: 1;
  max-width: 480px;
  position: relative;
}

#search-input {
  width: 100%;
  padding: 8px 36px 8px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-surface);
}

#search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

#clear-search {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--color-text-muted);
  color: #fff;
  border: none;
  border-radius: 999px;
  width: 20px;
  height: 20px;
  cursor: pointer;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}

#clear-search:hover {
  background: var(--color-text-secondary);
}

/* ─────────────── Filter Controls ─────────────── */

.filter-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.filter {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.filter label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  cursor: pointer;
  color: var(--color-text-secondary);
  font-weight: 500;
}

.filter input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.match-count {
  font-size: 12px;
  color: var(--color-text-muted);
  font-weight: 600;
  padding: 4px 12px;
  background: var(--color-surface-alt);
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

/* ─────────────── Loading / Error ─────────────── */

.loading {
  text-align: center;
  padding: 48px;
  font-size: 14px;
  color: var(--color-text-muted);
}

.error {
  background: var(--color-error-subtle);
  color: var(--color-error);
  padding: 12px 16px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  border-left: 3px solid var(--color-error);
  font-size: 13px;
}

/* ─────────────── Enrollment Cards Grid ─────────────── */

.enrollments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
}

.enrollment-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: box-shadow var(--transition);
  position: relative;
}

.enrollment-card:hover {
  box-shadow: var(--shadow-md);
}

.enrollment-card.approved {
  border-left: 3px solid var(--color-success);
}

.enrollment-card.pending {
  border-left: 3px solid var(--color-warning);
}

.enrollment-card.revoked {
  border-left: 3px solid var(--color-error);
}

.enrollment-card.denied {
  border-left: 3px solid var(--color-text-muted);
}

.status-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.status-badge.approved {
  background: var(--color-success-subtle);
  color: #166534;
}

.status-badge.pending {
  background: var(--color-warning-subtle);
  color: #92400e;
}

.status-badge.revoked {
  background: var(--color-error-subtle);
  color: var(--color-error);
}

.status-badge.denied {
  background: var(--color-surface-alt);
  color: var(--color-text-muted);
}

.enrollment-id {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 12px;
  padding-right: 80px;
  word-break: break-all;
  font-family: var(--font-mono);
}

.enrollment-details {
  margin-bottom: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px solid var(--color-border-light);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-label {
  font-weight: 600;
  color: var(--color-text-muted);
  font-size: 12px;
}

.detail-value {
  color: var(--color-text);
  text-align: right;
  font-family: var(--font-mono);
  font-size: 12px;
}

.enrollment-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.btn {
  flex: 1;
  min-width: 80px;
  padding: 7px 10px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-approve {
  background: var(--color-success);
  color: #fff;
}

.btn-approve:hover {
  background: #059669;
}

.btn-revoke {
  background: var(--color-error);
  color: #fff;
}

.btn-revoke:hover {
  background: #dc2626;
}

.btn-delete {
  background: var(--color-text-muted);
  color: #fff;
}

.btn-delete:hover {
  background: var(--color-text-secondary);
}

.btn-view {
  background: var(--color-primary);
  color: #fff;
}

.btn-view:hover {
  background: var(--color-primary-hover);
}

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* ─────────────── Keys Section ─────────────── */

.keys-section {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border);
  display: none;
}

.keys-section.show {
  display: block;
}

.keys-list {
  max-height: 260px;
  overflow-y: auto;
}

.key-item {
  margin-bottom: 8px;
  padding: 8px 10px;
  background: var(--color-surface-alt);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border-light);
  font-size: 11px;
}

.key-name {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--color-primary);
  word-break: break-all;
  margin-bottom: 4px;
}

.key-value {
  font-family: var(--font-mono);
  color: var(--color-text-secondary);
  word-break: break-all;
  max-height: 80px;
  overflow-y: auto;
  font-size: 11px;
}

/* ─────────────── Modal ─────────────── */

.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(4px);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.show {
  display: flex;
}

.modal-content {
  background: var(--color-surface);
  padding: 28px;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  max-width: 480px;
  width: 90%;
}

.modal-header {
  margin-bottom: 20px;
}

.modal-header h2 {
  margin: 0;
  color: var(--color-text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.modal-body {
  margin-bottom: 20px;
}

.otp-display {
  background: var(--color-warning-subtle);
  border: 1px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 16px;
  text-align: center;
  margin: 15px 0;
}

.otp-value {
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: 3px;
  user-select: all;
  cursor: text;
}

.otp-instructions {
  color: var(--color-text-muted);
  font-size: 13px;
  margin-top: 10px;
}

.modal-footer {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.modal-btn {
  padding: 8px 18px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}

.modal-btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.modal-btn-primary:hover {
  background: var(--color-primary-hover);
}

.modal-btn-secondary {
  background: var(--color-surface-alt);
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border);
}

.modal-btn-secondary:hover {
  background: var(--color-border-light);
}

.copy-success {
  color: var(--color-success);
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
  font-weight: 600;
}

.modal-content-wide {
  max-width: 640px;
}

.wizard-step {
  min-height: 180px;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
  font-size: 13px;
}

.form-input {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  transition: border-color var(--transition), box-shadow var(--transition);
  background: var(--color-surface);
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.form-hint {
  color: var(--color-text-muted);
  font-size: 12px;
  margin-top: 4px;
}

.command-display {
  background: #0f172a;
  border-radius: var(--radius-sm);
  padding: 16px;
  margin: 12px 0;
  overflow-x: auto;
}

.command-text {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #e2e8f0;
  white-space: pre-wrap;
  word-break: break-all;
  user-select: all;
  cursor: text;
  margin: 0;
}

.success-message {
  background: var(--color-success-subtle);
  color: #065f46;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 600;
  text-align: center;
  font-size: 13px;
}

.error-message {
  background: var(--color-error-subtle);
  color: #991b1b;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  margin-top: 10px;
  font-weight: 600;
  font-size: 13px;
}

.wizard-info {
  background: var(--color-info-subtle);
  border-left: 3px solid var(--color-info);
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-top: 16px;
}

.wizard-info p {
  margin-bottom: 8px;
  color: #1e3a5f;
  font-weight: 600;
  font-size: 13px;
}

.wizard-info ol {
  margin-left: 18px;
  color: #0c4a6e;
  font-size: 13px;
}

.wizard-info ol li {
  margin-bottom: 6px;
}

/* ─────────────── Notification Animations ─────────────── */

@keyframes slideIn {
  from {
      transform: translateX(320px);
      opacity: 0;
  }
  to {
      transform: translateX(0);
      opacity: 1;
  }
}

@keyframes slideOut {
  from {
      transform: translateX(0);
      opacity: 1;
  }
  to {
      transform: translateX(320px);
      opacity: 0;
  }
}

/* ─────────────── Responsive ─────────────── */

@media (max-width: 768px) {
  header h1 {
      font-size: 1.5em;
  }

  .management-nav {
      grid-template-columns: 1fr;
      text-align: center;
      gap: 10px;
      padding: 12px 16px;
  }

  .management-nav-side-left,
  .management-nav-side-right {
      justify-content: center;
  }

  .management-page {
      padding: 16px;
  }

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

  .otp-management-grid {
      grid-template-columns: 1fr;
  }

  .enrollment-command-grid {
      grid-template-columns: 1fr;
  }

  .auto-approval-grid {
      grid-template-columns: 1fr;
  }

  .namespace-permission-row {
      grid-template-columns: 1fr;
  }

  .controls {
      flex-direction: column;
      align-items: stretch;
  }

  .search-box {
      max-width: none;
  }

  .api-v4-row-head {
      flex-direction: column;
      align-items: flex-start;
  }

  .api-v4-config-grid {
      grid-template-columns: 1fr;
  }

  .api-v4-inline-input {
      flex-wrap: wrap;
  }

  .auto-approval-card-grid {
      grid-template-columns: 1fr;
  }

  .wizard-step-grid {
      grid-template-columns: 1fr;
  }
}

/* ─────────────── Toast Notifications ─────────────── */

.toast {
  position: fixed;
  top: 20px;
  right: 20px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  z-index: 10000;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font-sans);
  color: #fff;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 200ms ease, transform 200ms ease;
  pointer-events: none;
}

.toast-visible {
  opacity: 1;
  transform: translateX(0);
}

.toast-exit {
  animation: toastExit 200ms ease forwards;
}

@keyframes toastExit {
  to {
      opacity: 0;
      transform: translateX(40px);
  }
}

.toast-success { background: var(--color-success); }
.toast-error { background: var(--color-error); }
.toast-warning { background: var(--color-warning); color: var(--color-text); }
.toast-info { background: var(--color-info); }

/* ─────────────── Error Modal (landing page) ─────────────── */

.modal-overlay.modal-visible {
  display: flex;
}

.modal-card {
  background: var(--color-surface);
  border-radius: var(--radius-xl);
  padding: 32px;
  max-width: 480px;
  width: 90%;
  box-shadow: var(--shadow-xl);
}

.modal-title {
  margin: 0 0 12px 0;
  font-size: 20px;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.01em;
}

.modal-title-error {
  color: var(--color-error);
}

.modal-atsign {
  text-align: center;
  color: var(--color-text-secondary);
  margin-bottom: 12px;
  font-size: 14px;
}

.modal-message {
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 0 24px 0;
  font-size: 14px;
}

.modal-actions {
  text-align: center;
}

.modal-btn {
  background: var(--color-primary);
  color: #fff;
  border: none;
  padding: 10px 32px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.modal-btn:hover {
  background: var(--color-primary-hover);
}

/* ─────────────── Shutdown Screen ─────────────── */

.shutdown-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  font-family: var(--font-sans);
  flex-direction: column;
  gap: 12px;
}

.shutdown-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--color-text-secondary);
}

.shutdown-subtitle {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ─────────────── Landing Utility Classes ─────────────── */

.loading-error {
  color: var(--color-error);
  font-weight: 600;
  font-size: 14px;
}

.loading-retry-btn {
  margin-top: 16px;
  padding: 8px 24px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.loading-retry-btn:hover {
  background: var(--color-primary-hover);
}

.command-box-error {
  color: var(--color-error);
}

.status-text-success {
  color: var(--color-success);
}

.status-text-error {
  color: var(--color-error);
}

.status-text-muted {
  color: var(--color-text-muted);
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
''';