.er-shell{max-width:1280px;margin:auto;padding:112px 28px 48px;color:var(--color-text-primary)}
.er-hero{display:flex;justify-content:space-between;gap:24px;align-items:center;margin-bottom:28px}.er-hero h1{font-size:clamp(2rem,4vw,3rem);line-height:1.1;margin:8px 0 14px;letter-spacing:-.04em}.er-hero p{max-width:730px;color:var(--color-text-secondary);line-height:1.7}.er-eyebrow{font-size:.72rem;letter-spacing:.16em;font-weight:700}.er-help{white-space:nowrap}.er-status{padding:12px 16px;border:1px solid var(--color-border);border-radius:10px;margin-bottom:22px;line-height:1.5}.er-status:empty{display:none}.er-status.error{border-color:var(--color-danger);color:var(--color-danger)}.er-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px}.er-nav,.er-card{border:1px solid var(--color-border);background:var(--color-surface);border-radius:14px;padding:22px;margin-bottom:18px}.er-nav{align-self:start;position:sticky;top:90px}.er-nav h2,.er-card h2{font-size:1.1rem;margin:0 0 16px}.er-nav a{display:block;padding:12px;margin:4px -8px;border-radius:8px;text-decoration:none;border:1px solid transparent;color:var(--color-text-primary)}.er-nav a[aria-current=page]{background:var(--color-surface-sunken);border-color:var(--color-border)}.er-nav small{display:block;color:var(--color-text-muted);margin-top:5px}.er-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.er-field{display:flex;flex-direction:column;gap:7px;margin:13px 0;font-size:.85rem;font-weight:600}.er-shell input:not([type=checkbox]),.er-shell select,.er-shell textarea{background:var(--color-surface-sunken);color:var(--color-text-primary);border:1px solid var(--color-border);border-radius:8px;padding:11px 12px;font:inherit;width:100%;box-sizing:border-box}.er-shell textarea{min-height:100px;resize:vertical}.er-shell button,.er-button{display:inline-block;border:1px solid var(--color-border);border-radius:8px;padding:9px 14px;background:var(--color-surface-sunken);color:var(--color-text-primary);font:inherit;font-size:.85rem;cursor:pointer;text-decoration:none}.er-shell button.primary{background:#225be8;color:white;border-color:#225be8}.er-shell button.danger{color:var(--color-danger)}.er-shell button:disabled{opacity:.5;cursor:not-allowed}.er-shell :focus-visible{outline:3px solid #709aff;outline-offset:3px}.er-actions{display:flex;flex-wrap:wrap;gap:9px;align-items:center;margin-top:16px}.er-note{font-size:.82rem;color:var(--color-text-secondary);line-height:1.7;margin:10px 0}.er-pill{display:inline-block;border:1px solid var(--color-border);border-radius:99px;padding:4px 9px;font-size:.72rem;margin:2px 6px 2px 0;text-transform:capitalize}.er-pill.good{color:var(--color-success)}.er-pill.warn{color:var(--color-warning)}.er-item{padding:18px 0;border-top:1px solid var(--color-border)}.er-item:first-of-type{border-top:0}.er-item h3{font-size:1rem;margin:0 0 10px}.er-item p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.er-item pre{max-height:320px;overflow:auto;padding:14px;background:var(--color-surface-sunken);border-radius:8px;font-size:.77rem;white-space:pre-wrap;overflow-wrap:anywhere;border:1px solid var(--color-border)}.er-item details{margin-top:12px}.er-item summary{cursor:pointer;font-size:.85rem}.er-check{display:flex;gap:10px;align-items:flex-start;margin:11px 0;font-size:.87rem}.er-check input{margin-top:4px;accent-color:#225be8}.er-empty{text-align:center;padding:40px 20px;color:var(--color-text-secondary)}.er-empty h2{color:var(--color-text-primary);font-size:1.3rem}.er-topline{display:flex;justify-content:space-between;align-items:flex-start;gap:20px}.er-topline h2{font-size:1.5rem}.er-metrics{display:flex;gap:32px;margin:18px 0}.er-metrics strong{font-size:1.5rem;display:block}.er-metrics span{font-size:.75rem;color:var(--color-text-muted)}.er-foot{border-top:1px solid var(--color-border);padding-top:22px;margin-top:32px;color:var(--color-text-muted);font-size:.8rem;line-height:1.7}.er-timeline{list-style:none;padding:0}.er-timeline li{border-left:2px solid var(--color-border);padding:0 0 18px 16px;font-size:.83rem}.er-timeline small{display:block;color:var(--color-text-muted);margin-top:5px}.er-link{padding:16px;border:1px solid #547ce8;background:var(--color-surface-sunken);border-radius:10px;margin-bottom:18px}.er-link code{display:block;overflow-wrap:anywhere;white-space:normal;font-size:.8rem;margin:12px 0}.er-review{white-space:pre-wrap;overflow-wrap:anywhere}.er-request{border-left:3px solid #547ce8;padding:10px 16px;margin:16px 0;background:var(--color-surface-sunken)}
@media(max-width:800px){.er-layout,.er-grid{grid-template-columns:1fr}.er-nav{position:static}.er-shell{padding:96px 16px 32px}.er-hero{align-items:flex-start}.er-help{display:none}.er-topline{display:block}.er-metrics{gap:24px}}

/* Subtle workflow surfaces, scoped to Discovery so evidence-room styles stay independent. */
.discovery-page {
  --discovery-scan-bg: #172337;
  --discovery-setup-bg: #202b40;
  --discovery-results-bg: #202b35;
  --discovery-sync-bg: #252239;
  --discovery-alerts-bg: #302a25;
}
[data-theme="light"] .discovery-page {
  --discovery-scan-bg: #f0f5fd;
  --discovery-setup-bg: #e7eef9;
  --discovery-results-bg: #f0f4f6;
  --discovery-sync-bg: #f4f1fb;
  --discovery-alerts-bg: #faf4e9;
}
.discovery-page .discovery-scan-panel { background: var(--discovery-scan-bg); }
.discovery-page #discovery-create-details { background: var(--discovery-setup-bg); padding: 18px; border: 1px solid var(--color-border); border-radius: 10px; margin-block: 18px; }
.discovery-page #discovery-create-details summary { cursor: pointer; font-weight: 700; }
.discovery-page #discovery-results:not(:empty),
.discovery-page #sync-events:not(:empty),
.discovery-page #sync-assets:not(:empty) { padding: 18px; border: 1px solid var(--color-border); border-radius: 10px; margin-top: 18px; }
.discovery-page #discovery-results:not(:empty), .discovery-page #sync-assets:not(:empty) { background: var(--discovery-results-bg); }
.discovery-page #sync-section { background: var(--discovery-sync-bg); }
.discovery-page #sync-events:not(:empty) { background: var(--discovery-alerts-bg); }
.discovery-page #discovery-status:not(:empty) { margin-top: 14px; background: var(--color-surface); }

.discovery-page .discovery-essentials { background: var(--discovery-alerts-bg); border-left: 4px solid #bc8731; }
.discovery-checklist { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; }
.discovery-checklist h3 { font-size:.95rem; margin:0 0 8px; }
.discovery-checklist p, .discovery-registration-note { font-size:.88rem; line-height:1.7; }
.discovery-page .discovery-essentials a, .discovery-registration-note a { text-decoration:underline; text-underline-offset:3px; }
.discovery-registration-note { background:var(--discovery-setup-bg); padding:16px 20px; border:1px solid var(--color-border); border-left:4px solid #7195d2; border-radius:10px; margin:18px 0; }
.discovery-page .discovery-history-panel { background:var(--discovery-results-bg); }
.discovery-page .discovery-history-panel #discovery-results { padding:0; border:0; background:transparent; }
.discovery-page #sync-assets:not(:empty) { background:var(--discovery-setup-bg); }
.discovery-page #discovery-create-details { scroll-margin-top:96px; }
@media(max-width:800px){.discovery-checklist{grid-template-columns:1fr;gap:16px}.discovery-registration-note{padding:14px}}
@media(max-width:600px){.discovery-page .er-hero{flex-direction:column;gap:12px}.discovery-page .er-hero>div:last-child{display:flex;gap:18px;flex-wrap:wrap}.discovery-page .er-hero>div:last-child br{display:none}}
