
:root {
  --blue: #087FE5;
  --blue-light: #159EFF;
  --blue-neon: #00BFFF;
  --navy: #071B35;
  --navy-light: #0B2850;
  --panel: #102D50;
  --panel-light: #153A63;
  --border: #24598A;
  --white: #F5FAFF;
  --muted: #A9C1DB;
  --green: #43D6A0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  color: var(--white);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 70% 0%, rgba(0,127,229,.24), transparent 45%),
    radial-gradient(ellipse at 10% 80%, rgba(21,158,255,.10), transparent 40%),
    #050F20;
}

/* SIDEBAR */

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 250px;
  padding: 28px 17px 20px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg,#0A2343,#07172D);
  border-right: 1px solid #24598A;
  box-shadow: 8px 0 35px rgba(0,80,180,.12);
  z-index: 10;
}

.brand {
  min-height: 175px;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  text-decoration: none;
}

.brand-symbol {
  width: 88px;
  height: 66px;
  margin-bottom: 12px;
  font-size: 0;
  background: url("/logo-mark.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 12px rgba(0,160,255,.55));
}

.brand strong {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 1px;
}

.brand strong span { color: #43BCFF; }

.brand small {
  margin-top: 9px;
  text-align: center;
  color: #9BCFFF;
  font-size: 9px;
  line-height: 1.7;
  letter-spacing: 1.5px;
}

.sidebar-rule {
  height: 1px;
  background: linear-gradient(90deg,transparent,#3476B2,transparent);
  margin: 0 4px 25px;
}

.nav-label {
  color: #8CB5DC;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.7px;
  margin: 0 12px 13px;
}

.nav {
  height: 46px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 13px;
  margin: 3px 0;
  color: #D1E5F8;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 12px;
  transition: .2s ease;
}

.nav span {
  width: 23px;
  text-align: center;
  font-size: 19px;
  color: #45B8FF;
}

.nav:hover {
  background: #123B67;
  border-color: #2679B9;
  color: white;
}

.nav.active {
  background: linear-gradient(105deg,#087FE5,#1267BD);
  border-color: #46B9FF;
  box-shadow: 0 0 20px rgba(0,127,229,.3);
  color: white;
  font-weight: 700;
}

.nav.active span { color: white; }

.nav b {
  margin-left: auto;
  background: #36AEFF;
  color: #04172D;
  border-radius: 12px;
  min-width: 21px;
  text-align: center;
  padding: 3px 6px;
  font-size: 10px;
}

.nav-future { opacity: .8; }

.nav-future small {
  margin-left: auto;
  font-size: 8px;
  color: #8BB9E0;
  letter-spacing: .8px;
}

.sidebar-bottom {
  margin-top: auto;
  border: 1px solid #286092;
  background: #102D50;
  padding: 14px 12px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.sidebar-bottom strong { font-size: 10px; }

.sidebar-bottom small {
  display: block;
  font-size: 9px;
  color: #A9C1DB;
  margin-top: 5px;
}

.status-dot,.live-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--green);
  flex-shrink: 0;
}

/* MAIN CONTENT */

.main {
  width: calc(100% - 250px);
  max-width: 1800px;
  min-width: 0;
  margin-left: 250px;
  padding: 34px 36px 24px;
}

.topbar {
  min-height: 105px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #4DBAFF;
  font-weight: 800;
}

.topbar h1 {
  font-size: 28px;
  margin: 11px 0 6px;
  font-weight: 750;
  letter-spacing: -.8px;
}

.sub {
  margin: 0;
  color: #B1C9E2;
  font-size: 12px;
  line-height: 1.6;
}

.top-right {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 8px;
  color: #D4E8F9;
  font-size: 9px;
  letter-spacing: 1px;
}

.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-left: 8px;
  border: 1px solid #438BC3;
  border-radius: 50%;
  background: #174875;
  color: white;
  font-size: 10px;
}

/* NOTICE */

.notice {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 17px;
  background: linear-gradient(100deg,#123D69,#102A49);
  border: 1px solid #347EB9;
  border-left: 4px solid #159EFF;
  border-radius: 7px;
  color: #D3E8FA;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.notice strong {
  color: #75C9FF;
  font-size: 9px;
  letter-spacing: 1px;
  white-space: nowrap;
}

/* METRIC CARDS */

.metrics {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 15px;
  margin-bottom: 21px;
}

.metric {
  position: relative;
  min-width: 0;
  min-height: 137px;
  padding: 19px;
  overflow: hidden;
  background: linear-gradient(145deg,#153B65,#0D2747);
  border: 1px solid #28699E;
  border-radius: 9px;
  box-shadow: 0 8px 22px rgba(0,0,0,.17);
  transition: .2s ease;
}

.metric:hover {
  border-color: #35B5FF;
  box-shadow: 0 0 20px rgba(0,140,255,.2);
  transform: translateY(-2px);
}

.metric-label {
  color: #B6D7F3;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
}

.metric-value {
  font-size: 35px;
  font-weight: 750;
  letter-spacing: -1px;
  margin: 14px 0 4px;
  color: white;
}

.small-value { font-size: 21px; }

.metric-foot {
  font-size: 10px;
  color: #A3C1DD;
}

.metric-icon {
  position: absolute;
  right: 17px;
  top: 15px;
  color: #58C4FF;
  font-size: 22px;
  text-shadow: 0 0 12px rgba(0,174,255,.7);
}

/* PANELS */

.panel {
  margin-bottom: 20px;
  overflow: hidden;
  background: linear-gradient(145deg,#102D50,#0B203B);
  border: 1px solid #286092;
  border-radius: 9px;
  box-shadow: 0 8px 25px rgba(0,0,0,.18);
}

.panel-head {
  min-height: 76px;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: linear-gradient(90deg,#153B65,#102D50);
  border-bottom: 1px solid #286092;
}

.panel-head h2 {
  font-size: 16px;
  margin: 7px 0 0;
  letter-spacing: -.3px;
}

.pill {
  padding: 7px 10px;
  border: 1px solid #4295CE;
  border-radius: 4px;
  color: #8DD4FF;
  background: #12395E;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .9px;
}

/* FINDINGS TABLE */

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

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  white-space: nowrap;
}

th {
  font-size: 8px;
  letter-spacing: 1px;
  color: #91C9EF;
  padding: 14px 17px;
  font-weight: 800;
  background: #0D2745;
}

td {
  font-size: 10px;
  color: #C5D9EB;
  padding: 15px 17px;
  border-top: 1px solid #1B4164;
}

tbody tr:hover { background: rgba(35,143,218,.12); }

.finding-title {
  color: white;
  font-weight: 650;
}

.severity {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .6px;
  padding: 5px 8px;
  border-radius: 4px;
  background: #1A4265;
  color: #B7E1FF;
}

.severity.critical { background: #592A3A; color: #FF9EAD; }
.severity.high { background: #56371F; color: #FFC28B; }
.severity.medium { background: #4D4524; color: #F1DB8D; }
.severity.low { background: #174C70; color: #91D8FF; }

.empty {
  text-align: center;
  color: #A9C1DB;
  padding: 26px 18px;
  font-size: 11px;
}

/* ASSETS */

.asset-list { padding: 5px 20px; }

.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 3px;
  border-bottom: 1px solid #204463;
}

.asset-row:last-child { border: 0; }

.asset-type {
  color: #68C5FF;
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 1px;
}

.asset-value {
  color: white;
  font-weight: 650;
  margin-top: 5px;
  font-size: 11px;
}

.verified {
  font-size: 8px;
  color: #FFD08A;
  font-weight: 800;
}

/* =================================================
   DOMAIN DISCOVERY SCANNER
   ================================================= */

.scan-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 90% 0%,rgba(0,153,255,.15),transparent 45%),
    linear-gradient(145deg,#102D50,#081B33);
  border: 1px solid #28699E;
}

.scan-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg,#00BFFF,#087FE5,transparent);
  opacity: .9;
}

.scan-panel .panel-head {
  background: linear-gradient(100deg,#153F6C,#102D50);
}

.scan-panel .panel-head h2 {
  color: #FFFFFF;
}

.scan-panel .pill {
  color: #72D0FF;
  border-color: #287FC0;
  background: rgba(0,127,229,.12);
}

.scan-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 22px 23px;
}

.scan-button {
  min-width: 175px;
  min-height: 47px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: #FFFFFF;
  background: linear-gradient(105deg,#087FE5,#159EFF);
  border: 1px solid #55C1FF;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  cursor: pointer;
  box-shadow: 0 5px 20px rgba(0,127,229,.25);
  transition: all .2s ease;
}

.scan-button:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(105deg,#159EFF,#00BFFF);
  box-shadow: 0 7px 25px rgba(0,153,255,.4);
}

.scan-button:active:not(:disabled) {
  transform: translateY(0);
}

.scan-button:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}

.scan-button span {
  font-size: 19px;
  line-height: 1;
}

.scan-button[aria-busy="true"] span {
  animation: scanSpin 1.2s linear infinite;
}

@keyframes scanSpin {
  to { transform: rotate(360deg); }
}

.scan-message {
  min-width: 0;
  flex: 1;
  color: #A9C1DB;
  font-size: 11px;
  line-height: 1.7;
}

.scan-message.success { color: #72E6B8; }
.scan-message.error { color: #FF9EAD; }
.scan-message.working { color: #75C9FF; }

.scan-results {
  padding: 0 23px 23px;
}

.scan-results[hidden] {
  display: none;
}

.scan-results-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 12px;
}

.scan-result {
  min-width: 0;
  padding: 17px;
  background: linear-gradient(145deg,#0D2949,#0A2039);
  border: 1px solid #24598A;
  border-radius: 8px;
}

.scan-result-label {
  display: block;
  color: #8CBCE1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.5;
}

.scan-result-value {
  display: block;
  margin-top: 9px;
  color: #FFFFFF;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.7px;
  overflow-wrap: anywhere;
}

.latest-scan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 23px 20px;
  padding: 14px 16px;
  background: rgba(5,20,38,.65);
  border: 1px solid #204B72;
  border-radius: 7px;
}

.latest-scan-label {
  color: #8CBCE1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
}

#latest-scan-status {
  margin-top: 6px;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .5px;
}

#latest-scan-date {
  color: #91B4D3;
  font-size: 10px;
  line-height: 1.6;
  text-align: right;
}

.scan-disclaimer {
  margin: 0 23px 22px;
  padding: 13px 15px;
  color: #91B4D3;
  background: rgba(0,127,229,.07);
  border: 1px solid rgba(36,89,138,.75);
  border-left: 3px solid #159EFF;
  border-radius: 6px;
  font-size: 9px;
  line-height: 1.8;
}

.scan-disclaimer strong {
  color: #75C9FF;
}

/* FOOTER */

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: #91B2D0;
  font-size: 9px;
  padding: 12px 2px;
  line-height: 1.6;
}

footer span { text-align: right; }

/* RESPONSIVE */

@media(max-width:1150px) {
  .main { padding: 26px 20px; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media(max-width:800px) {
  .sidebar { width: 205px; }

  .main {
    width: calc(100% - 205px);
    margin-left: 205px;
    padding: 22px 14px;
  }

  .topbar h1 { font-size: 22px; }
}

@media(max-width:600px) {
  body { display: block; }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 12px;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .brand { min-height: 0; margin-bottom: 12px; }
  .brand-symbol { transform: scale(.75); margin-bottom: 0; }
  .sidebar-rule,.nav-label,.sidebar-bottom { display: none; }

  .nav {
    display: inline-flex;
    height: 37px;
    padding: 0 8px;
    margin: 2px;
    gap: 6px;
    font-size: 10px;
  }

  .nav span { width: auto; font-size: 15px; }
  .nav-future small { display: none; }

  .main {
    width: 100%;
    margin: 0;
    padding: 20px 12px;
  }

  .topbar { display: block; }
  .topbar h1 { font-size: 21px; }
  .top-right { margin-top: 15px; }

  .notice {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .metrics { gap: 9px; }
  .metric { min-height: 112px; padding: 13px; }
  .metric-value { font-size: 28px; }
  .small-value { font-size: 17px; }
  .metric-label,.metric-foot { font-size: 8px; }

  .panel-head { padding: 13px; }
  th,td { padding: 12px 10px; }

  .scan-controls {
    align-items: stretch;
    flex-direction: column;
    padding: 17px;
    gap: 13px;
  }

  .scan-button {
    width: 100%;
  }

  .scan-results {
    padding: 0 17px 17px;
  }

  .scan-results-grid {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .scan-result {
    padding: 13px 15px;
  }

  .scan-result-value {
    font-size: 22px;
  }

  .latest-scan {
    margin: 0 17px 17px;
    align-items: flex-start;
    flex-direction: column;
  }

  #latest-scan-date {
    text-align: left;
  }

  .scan-disclaimer {
    margin: 0 17px 17px;
  }

  footer { display: block; }

  footer span {
    display: block;
    text-align: left;
    margin-top: 5px;
  }
}

/* =================================================
   CYBERNOCS - COMPLETE SETTINGS DESIGN
   ================================================= */

#settings-view {
  animation: settingsReveal .35s ease;
}

@keyframes settingsReveal {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SETTINGS PANELS */

#settings-view .settings-panel {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 95% 0%,rgba(0,153,255,.09),transparent 45%),
    linear-gradient(145deg,#102D50,#081B33);
  border: 1px solid #245F94;
  border-radius: 12px;
  box-shadow: 0 12px 35px rgba(0,0,0,.22);
  transition: border-color .25s ease,box-shadow .25s ease;
}

#settings-view .settings-panel:hover {
  border-color: #287FC0;
  box-shadow: 0 12px 35px rgba(0,100,200,.12);
}

#settings-view .settings-panel .panel-head {
  min-height: 85px;
  padding: 20px 24px;
  background: linear-gradient(100deg,#153F6C,#102D50);
  border-bottom: 1px solid #286092;
}

#settings-view .panel-head h2 {
  font-size: 17px;
  font-weight: 750;
}

/* COMPANY PROFILE GRID */

#settings-view .settings-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 23px;
  padding: 26px 24px;
}

#settings-view .setting-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  color: #B9D7F2;
}

#settings-view .setting-field > span {
  color: #9ACFFF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

#settings-view .setting-field small {
  color: #789EBD;
  font-size: 10px;
  line-height: 1.6;
}

/* PREMIUM INPUTS */

#settings-view .setting-field input,
#settings-view .setting-field select {
  width: 100%;
  height: 49px;
  padding: 0 16px;
  color: #F5FAFF;
  background: linear-gradient(145deg,#06182D,#0D2949);
  border: 1px solid #28699E;
  border-radius: 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  outline: none;
  transition: all .25s ease;
  box-shadow:
    inset 0 2px 5px rgba(0,0,0,.2),
    0 3px 12px rgba(0,0,0,.12);
}

#settings-view .setting-field input::placeholder {
  color: #6485A5;
}

#settings-view .setting-field input:hover,
#settings-view .setting-field select:hover {
  border-color: #159EFF;
  background: #0B2B4C;
}

#settings-view .setting-field input:focus,
#settings-view .setting-field select:focus {
  border-color: #00BFFF;
  background: #0B2543;
  box-shadow:
    0 0 0 3px rgba(0,191,255,.12),
    0 0 20px rgba(0,153,255,.16);
}

/* CUSTOM DROPDOWNS */

#settings-view .setting-field select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 42px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2300BFFF' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 17px;
}

#settings-view .setting-field select option {
  color: #F5FAFF;
  background: #0B2543;
}

/* MONITORING AND NOTIFICATION ROWS */

#settings-view .setting-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 22px 25px;
  margin: 0 24px;
  border-bottom: 1px solid rgba(60,125,180,.22);
  cursor: pointer;
  transition: background .2s ease;
}

#settings-view .setting-toggle:hover {
  background: rgba(0,145,255,.055);
}

#settings-view .setting-toggle:last-of-type {
  border-bottom: 0;
}

#settings-view .setting-toggle > span {
  display: block;
  min-width: 0;
}

#settings-view .setting-toggle strong {
  display: block;
  color: #F5FAFF;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.6;
}

#settings-view .setting-toggle small {
  display: block;
  margin-top: 6px;
  color: #91B4D3;
  font-size: 10px;
  line-height: 1.6;
}

/* CUSTOM ELECTRIC BLUE SWITCHES */

#settings-view .setting-toggle input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 51px;
  height: 27px;
  min-width: 51px;
  margin: 0;
  border: 1px solid #426788;
  border-radius: 30px;
  background: #193653;
  cursor: pointer;
  transition: all .25s ease;
}

#settings-view .setting-toggle input[type="checkbox"]::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: #A5BDD3;
  transition: all .25s ease;
}

#settings-view .setting-toggle input[type="checkbox"]:checked {
  background: linear-gradient(100deg,#087FE5,#00BFFF);
  border-color: #58C7FF;
  box-shadow: 0 0 16px rgba(0,160,255,.35);
}

#settings-view .setting-toggle input[type="checkbox"]:checked::before {
  left: 27px;
  background: white;
  box-shadow: 0 0 8px rgba(255,255,255,.5);
}

#settings-view .setting-toggle input[type="checkbox"]:focus-visible {
  outline: 2px solid #00BFFF;
  outline-offset: 4px;
}

/* MONITORING FREQUENCY */

#settings-view .settings-grid .setting-field {
  max-width: 100%;
}

/* NOTIFICATION EXPLANATION */

#settings-view .settings-note {
  margin: 12px 24px 22px;
  padding: 14px 17px;
  color: #91C9EF;
  background: rgba(0,127,229,.09);
  border: 1px solid #24598A;
  border-left: 3px solid #159EFF;
  border-radius: 7px;
  font-size: 10px;
  line-height: 1.7;
}

/* SAVE SETTINGS */

#settings-view .settings-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 17px;
  margin: 25px 0 35px;
  padding: 20px 23px;
  background: linear-gradient(100deg,#102D50,#0B203B);
  border: 1px solid #24598A;
  border-radius: 10px;
}

#settings-view #save-settings {
  min-width: 175px;
  height: 46px;
  padding: 0 24px;
  color: white;
  background: linear-gradient(105deg,#087FE5,#159EFF);
  border: 1px solid #55C1FF;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .5px;
  cursor: pointer;
  box-shadow: 0 5px 18px rgba(0,127,229,.25);
  transition: all .2s ease;
}

#settings-view #save-settings:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 25px rgba(0,153,255,.4);
  background: linear-gradient(105deg,#159EFF,#00BFFF);
}

#settings-view #save-settings:active {
  transform: translateY(0);
}

#settings-view #save-settings:disabled {
  opacity: .55;
  cursor: not-allowed;
  transform: none;
}

#settings-view #settings-message {
  color: #8ED4FF;
  font-size: 11px;
  font-weight: 600;
}

/* RESPONSIVE SETTINGS */

@media(max-width:800px) {
  #settings-view .settings-grid {
    gap: 18px;
    padding: 20px;
  }

  #settings-view .setting-toggle {
    margin: 0 18px;
    padding: 19px 8px;
  }
}

@media(max-width:600px) {
  #settings-view .settings-grid {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  #settings-view .settings-panel .panel-head {
    padding: 16px;
  }

  #settings-view .setting-toggle {
    margin: 0 12px;
    padding: 18px 4px;
    gap: 12px;
  }

  #settings-view .setting-toggle strong {
    font-size: 11px;
  }

  #settings-view .settings-actions {
    padding: 15px;
  }

  #settings-view #save-settings {
    width: 100%;
  }
}

/* VALIDATION */

.input-error {
  border: 2px solid #ff4d5e !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 94, 0.16) !important;
}

/* ACCESSIBILITY */

button:focus-visible,
a:focus-visible {
  outline: 2px solid #00BFFF;
  outline-offset: 3px;
}

@media(prefers-reduced-motion:reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =================================================
   COVERAGE, FINDINGS DETAIL, ASSET AND SUPPLIER FORMS
   ================================================= */

[hidden] { display: none !important; }

.live-dot.offline {
  background: #FF9EAD;
  box-shadow: 0 0 10px #FF9EAD;
}

.severity.info { background: #243B52; color: #A9C1DB; }

.scan-message.warning { color: #FFC28B; }

.scan-results-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.coverage-note {
  margin: 0;
  padding: 16px 22px;
  color: #91B4D3;
  background: rgba(0,127,229,.07);
  border-bottom: 1px solid #1B4164;
  font-size: 10px;
  line-height: 1.8;
}

.coverage-note strong { color: #75C9FF; }

/* Coverage cards */

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 14px;
  padding: 20px;
}

.cov-card {
  display: flex;
  flex-direction: column;
  gap: 11px;
  min-width: 0;
  padding: 16px 16px 14px;
  background: linear-gradient(145deg,#0D2949,#0A2039);
  border: 1px solid #24598A;
  border-left: 4px solid #3A6285;
  border-radius: 8px;
}

.cov-card.completed { border-left-color: #43D6A0; }
.cov-card.partial { border-left-color: #FFC28B; }
.cov-card.failed { border-left-color: #FF9EAD; }
.cov-card.not_configured { border-left-color: #6485A5; }

.cov-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cov-head h3 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: #FFFFFF;
  font-size: 13px;
  letter-spacing: -.2px;
}

.cov-num {
  color: #68C5FF;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}

.status-badge {
  padding: 5px 8px;
  border-radius: 4px;
  background: #1A4265;
  color: #B7E1FF;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .7px;
  white-space: nowrap;
}

.status-badge.completed { background: #124A3B; color: #72E6B8; }
.status-badge.partial { background: #56371F; color: #FFC28B; }
.status-badge.failed { background: #592A3A; color: #FF9EAD; }
.status-badge.not_configured { background: #243B52; color: #A9C1DB; }
.status-badge.not_scanned { background: #1A3350; color: #8CBCE1; }

.cov-desc {
  margin: 0;
  color: #789EBD;
  font-size: 10px;
  line-height: 1.6;
}

.cov-summary {
  margin: 0;
  color: #E3EFFA;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.cov-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.cov-stats div {
  padding: 9px 10px;
  background: rgba(5,20,38,.55);
  border: 1px solid #1B4164;
  border-radius: 6px;
}

.cov-stats dt {
  color: #8CBCE1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.cov-stats dd {
  margin: 4px 0 0;
  color: #FFFFFF;
  font-size: 17px;
  font-weight: 800;
}

.cov-sources,
.cov-limits ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cov-sources { display: flex; flex-direction: column; gap: 7px; }

.source {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 10px;
  line-height: 1.5;
}

.source-dot {
  flex: none;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #6485A5;
}

.source.ok .source-dot { background: #43D6A0; box-shadow: 0 0 8px rgba(67,214,160,.6); }
.source.failed .source-dot { background: #FF9EAD; box-shadow: 0 0 8px rgba(255,158,173,.6); }

.source-body { min-width: 0; color: #A9C1DB; }
.source-name a { color: #75C9FF; text-decoration: none; }
.source-name a:hover { text-decoration: underline; }
.source-state { margin-left: 6px; color: #789EBD; }
.source.failed .source-state { color: #FF9EAD; font-weight: 700; }
.source-body small { display: block; color: #789EBD; overflow-wrap: anywhere; }

.cov-limits {
  color: #91B4D3;
  font-size: 10px;
  line-height: 1.6;
}

.cov-limits summary {
  cursor: pointer;
  color: #8DD4FF;
  font-weight: 700;
}

.cov-limits ul { margin-top: 7px; padding-left: 16px; list-style: disc; }
.cov-limits li { margin-bottom: 5px; }

.cov-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 4px;
  color: #789EBD;
  font-size: 9px;
}

.link-button {
  padding: 0;
  color: #75C9FF;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
  cursor: pointer;
}

.link-button:hover { text-decoration: underline; }

/* Findings */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px;
  padding: 14px 20px;
  border-bottom: 1px solid #1B4164;
}

.filter-bar label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #9ACFFF;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.filter-bar select,
.inline-form input,
.inline-form select {
  height: 40px;
  padding: 0 12px;
  color: #F5FAFF;
  background: linear-gradient(145deg,#06182D,#0D2949);
  border: 1px solid #28699E;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11px;
  outline: none;
}

.filter-bar select:focus,
.inline-form input:focus,
.inline-form select:focus {
  border-color: #00BFFF;
  box-shadow: 0 0 0 3px rgba(0,191,255,.12);
}

.filter-hint {
  flex: 1;
  min-width: 220px;
  margin: 0;
  color: #789EBD;
  font-size: 9px;
  line-height: 1.6;
}

.finding-title {
  min-width: 260px;
  max-width: 520px;
  white-space: normal;
  line-height: 1.5;
}

.toggle-cell { width: 34px; padding-right: 0; }

.row-toggle {
  width: 26px;
  height: 26px;
  color: #75C9FF;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: 12px;
  cursor: pointer;
  transition: transform .15s ease;
}

.row-toggle:hover { border-color: #28699E; }
.row-toggle[aria-expanded="true"] { transform: rotate(90deg); }

.finding-row.expanded { background: rgba(35,143,218,.08); }

.finding-detail td {
  padding: 4px 17px 18px;
  white-space: normal;
  background: rgba(5,20,38,.45);
  border-top: 0;
}

.detail-summary {
  max-width: 900px;
  margin: 8px 0 12px;
  color: #D5E6F5;
  font-size: 11px;
  line-height: 1.7;
}

.evidence {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 8px;
  margin: 0 0 14px;
}

.evidence div {
  min-width: 0;
  padding: 9px 11px;
  background: rgba(13,41,73,.8);
  border: 1px solid #1B4164;
  border-radius: 6px;
}

.evidence dt {
  color: #8CBCE1;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.evidence dd {
  margin: 4px 0 0;
  color: #FFFFFF;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.detail-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 22px;
  color: #91B4D3;
  font-size: 10px;
}

.detail-foot a { color: #75C9FF; }
.detail-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.mini-button {
  padding: 7px 10px;
  color: #FFFFFF;
  background: linear-gradient(105deg,#087FE5,#159EFF);
  border: 1px solid #55C1FF;
  border-radius: 5px;
  font-family: inherit;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .7px;
  cursor: pointer;
}

.mini-button:hover:not(:disabled) { background: linear-gradient(105deg,#159EFF,#00BFFF); }
.mini-button:disabled { opacity: .5; cursor: not-allowed; }
.mini-button.quiet { color: #A9C1DB; background: transparent; border-color: #28699E; }
.mini-button.quiet:hover:not(:disabled) { color: #FFFFFF; background: #174875; }
.mini-button.armed { color: #FFFFFF; background: #A83250; border-color: #F17D96; }

.confidence {
  color: #A9C1DB;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .6px;
}

.confidence.high { color: #72E6B8; }
.confidence.medium { color: #F1DB8D; }

.finding-status {
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .6px;
  color: #B7E1FF;
}

.finding-status.new { color: #75C9FF; }
.finding-status.reviewing { color: #F1DB8D; }
.finding-status.resolved { color: #72E6B8; }
.finding-status.dismissed { color: #789EBD; }

/* Asset and supplier forms and lists */

.inline-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 14px;
  padding: 18px 20px 6px;
}

.inline-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 150px;
  color: #9ACFFF;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.inline-form label.grow { flex: 1; min-width: 200px; }

.inline-form button {
  height: 40px;
  padding: 0 20px;
  color: #FFFFFF;
  background: linear-gradient(105deg,#087FE5,#159EFF);
  border: 1px solid #55C1FF;
  border-radius: 7px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .7px;
  cursor: pointer;
}

.inline-form button:hover:not(:disabled) { background: linear-gradient(105deg,#159EFF,#00BFFF); }
.inline-form button:disabled { opacity: .55; cursor: not-allowed; }

.form-message {
  min-height: 20px;
  margin: 0;
  padding: 4px 20px 10px;
  color: #8ED4FF;
  font-size: 10px;
  font-weight: 600;
}

.form-message.success { color: #72E6B8; }
.form-message.error { color: #FF9EAD; }
.form-message.working { color: #75C9FF; }

.asset-group-title {
  margin-top: 12px;
  color: #68C5FF;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
}

.asset-group-title b { margin-left: 6px; color: #8CBCE1; font-weight: 700; }

.asset-actions { display: flex; align-items: center; gap: 12px; }
.verified.yes { color: #72E6B8; }

.attribution {
  margin: 4px 2px 28px;
  color: #789EBD;
  font-size: 9px;
  line-height: 1.9;
}

.attribution a { color: #75C9FF; }

@media(max-width:600px) {
  .coverage-grid { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .detail-actions { margin-left: 0; }
}

.scan-description {
  padding: 18px 23px 0;
}

.scan-description p {
  margin: 0 0 8px;
  color: #A9C1DB;
  font-size: 11px;
  line-height: 1.8;
}

.asset-type.plain { text-transform: none; letter-spacing: .3px; }

/* ------------------------------------------------------------------
   Your threats
   ------------------------------------------------------------------ */

.threats-panel .panel-head .scan-button { flex-shrink: 0; }

.threats-panel .panel-head .sub {
  max-width: 640px;
  margin: 6px 0 0;
  color: #91B4D3;
  font-size: 11px;
  line-height: 1.6;
}

.threats-verdict {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 22px;
  border-bottom: 1px solid #1B4164;
  border-left: 4px solid #3A6285;
  background: rgba(0,127,229,.07);
  line-height: 1.6;
}

.threats-verdict strong { color: #FFFFFF; font-size: 16px; letter-spacing: -.2px; }
.threats-verdict span { color: #A9C1DB; font-size: 11px; }

.threats-verdict.alert { border-left-color: #FF9EAD; background: rgba(217,77,107,.14); }
.threats-verdict.alert strong { color: #FFB8C3; }
.threats-verdict.watch { border-left-color: #FFC28B; background: rgba(255,194,139,.09); }
.threats-verdict.clear { border-left-color: #43D6A0; background: rgba(67,214,160,.09); }

.threat-list { margin: 0; padding: 0; list-style: none; }
.threat-list:empty { display: none; }

.threat-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 15px 22px;
  border-bottom: 1px solid #1B4164;
  border-left: 4px solid transparent;
}

.threat-item.critical { border-left-color: #FF9EAD; }
.threat-item.high { border-left-color: #FFC28B; }
.threat-item.medium { border-left-color: #F1DB8D; }
.threat-item.low { border-left-color: #91D8FF; }
.threat-item.info { border-left-color: #A9C1DB; }

.threat-top { display: flex; align-items: center; gap: 10px; }
.threat-category { color: #789EBD; font-size: 10px; }

.threat-item h3 {
  margin: 0;
  color: #FFFFFF;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.threat-action {
  margin: 0;
  max-width: 900px;
  color: #C8DCEF;
  font-size: 11px;
  line-height: 1.7;
}

.threat-action strong { color: #75C9FF; }
.threat-item .link-button { align-self: flex-start; }

.threats-foot {
  margin: 0;
  padding: 12px 22px;
  color: #789EBD;
  font-size: 10px;
}

.threats-foot:empty { display: none; }

.detail-action {
  max-width: 900px;
  margin: 0 0 14px;
  padding: 11px 14px;
  background: rgba(0,127,229,.10);
  border: 1px solid #286092;
  border-left: 4px solid #159EFF;
  border-radius: 6px;
}

.detail-action strong {
  color: #75C9FF;
  font-size: 9px;
  letter-spacing: .9px;
}

.detail-action p {
  margin: 5px 0 0;
  color: #E3EFFA;
  font-size: 11px;
  line-height: 1.7;
}

/* Coverage cards: verdict first, reasons prominent, numbers muted */

.cov-verdict {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.cov-verdict.good { color: #72E6B8; }
.cov-verdict.found { color: #FFC28B; }
.cov-verdict.warn { color: #FFC28B; }
.cov-verdict.bad { color: #FF9EAD; }
.cov-verdict.neutral { color: #A9C1DB; }

.cov-card .cov-summary {
  color: #A9C1DB;
  font-size: 10.5px;
  font-weight: 400;
}

.cov-reasons {
  padding: 10px 12px;
  background: rgba(86,55,31,.28);
  border: 1px solid #6B4A2A;
  border-radius: 6px;
}

.cov-card.failed .cov-reasons {
  background: rgba(89,42,58,.32);
  border-color: #7A3A4E;
}

.cov-reasons strong {
  color: #FFC28B;
  font-size: 9px;
  letter-spacing: .8px;
  text-transform: uppercase;
}

.cov-card.failed .cov-reasons strong { color: #FF9EAD; }

.cov-reasons ul {
  margin: 6px 0 0;
  padding-left: 16px;
  color: #E3EFFA;
  font-size: 11px;
  line-height: 1.6;
}

.cov-reasons li { margin-bottom: 4px; overflow-wrap: anywhere; }

.cov-sources-box {
  color: #91B4D3;
  font-size: 10px;
  line-height: 1.6;
}

.cov-sources-box summary {
  cursor: pointer;
  color: #8DD4FF;
  font-weight: 700;
}

.cov-sources-box .cov-sources { margin-top: 8px; }

@media (max-width: 760px) {
  .threats-panel .panel-head { flex-direction: column; align-items: stretch; }
  .threats-panel .panel-head .scan-button { width: 100%; }
  .threat-item, .threats-verdict { padding-left: 14px; padding-right: 14px; }
}

/* =================================================
   REPORTS, ALERTS, SCHEDULE
   ================================================= */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.scan-button.ghost {
  color: #CFE8FF;
  background: transparent;
  border-color: #3B88BF;
}

.scan-button.ghost:hover:not(:disabled) {
  color: #FFFFFF;
  background: #174875;
  box-shadow: none;
}

.nav b[hidden] { display: none; }

code {
  padding: 1px 5px;
  color: #CFE8FF;
  background: rgba(0,0,0,.28);
  border-radius: 4px;
  font-size: .95em;
}

/* Reports: a sheet of paper on the dark dashboard */

.report-tools { padding: 18px 22px; }

.report-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.report-hint {
  margin: 12px 0 0;
  max-width: 860px;
  color: #91B3D1;
  font-size: 10.5px;
  line-height: 1.7;
}

.report-sheet {
  max-width: 900px;
  margin: 0 0 24px;
  padding: 38px 44px 30px;
  color: #17283D;
  background: #FBFDFF;
  border-radius: 6px;
  box-shadow: 0 10px 40px rgba(0,0,0,.35);
  font-size: 12px;
  line-height: 1.65;
}

.report-sheet a { color: #0B5FB0; }

.rep-head { padding-bottom: 14px; border-bottom: 2px solid #17283D; }

.rep-brand {
  color: #0B5FB0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 1.6px;
}

.report-sheet h2 {
  margin: 8px 0 4px;
  color: #0A1B30;
  font-size: 24px;
  letter-spacing: -.4px;
}

.report-sheet h3 {
  margin: 0 0 8px;
  padding-bottom: 5px;
  color: #0A1B30;
  font-size: 14px;
  border-bottom: 1px solid #D4DFEA;
  break-after: avoid;
}

.rep-meta { margin: 2px 0; color: #5A6E85; font-size: 10.5px; }

.rep-caveat {
  margin: 16px 0 6px;
  padding: 11px 14px;
  background: #FFF7E6;
  border: 1px solid #F0D79A;
  border-left: 4px solid #E0A526;
  border-radius: 4px;
  font-size: 10.5px;
  line-height: 1.7;
}

.rep-section { margin-top: 22px; }

.rep-verdict {
  margin: 0 0 12px;
  padding: 10px 14px;
  background: #EEF4FA;
  border-left: 4px solid #6B88A6;
  border-radius: 4px;
  font-size: 12.5px;
}

.rep-verdict.alert { background: #FDECEF; border-left-color: #D1344F; }
.rep-verdict.watch { background: #FFF7E6; border-left-color: #E0A526; }
.rep-verdict.clear { background: #E9F8F1; border-left-color: #1F9D6B; }

.rep-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.rep-stats div {
  padding: 10px;
  text-align: center;
  background: #F1F6FB;
  border: 1px solid #D4DFEA;
  border-radius: 5px;
}

.rep-stats b { display: block; color: #0A1B30; font-size: 22px; line-height: 1.2; }
.rep-stats span { color: #5A6E85; font-size: 9.5px; line-height: 1.3; }

.rep-findings { margin: 0; padding: 0; list-style: none; }

.rep-finding {
  padding: 11px 0 12px;
  border-bottom: 1px solid #E1E9F1;
  break-inside: avoid;
}

.rep-finding p { margin: 4px 0; }
.rep-finding-top { display: flex; align-items: flex-start; gap: 9px; }
.rep-finding-top strong { color: #0A1B30; font-size: 12.5px; overflow-wrap: anywhere; }

.rep-sev {
  flex-shrink: 0;
  padding: 2px 7px;
  border-radius: 3px;
  color: #fff;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .6px;
}

.rep-sev.critical { background: #B5122F; }
.rep-sev.high { background: #D1621B; }
.rep-sev.medium { background: #A98A12; }
.rep-sev.low { background: #2C7DB3; }
.rep-sev.info { background: #6B7F94; }

.rep-action {
  padding: 7px 10px;
  background: #EAF3FC;
  border-left: 3px solid #0B5FB0;
  border-radius: 3px;
}

.rep-source { color: #5A6E85; font-size: 10px; }
.rep-host { color: #7A8DA2; }

.rep-table { width: 100%; border-collapse: collapse; white-space: normal; }

.rep-table th {
  padding: 6px 8px;
  color: #2A3F57;
  background: #EAF0F6;
  font-size: 9px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.rep-table td {
  padding: 7px 8px;
  color: #17283D;
  border-top: 1px solid #DCE5EE;
  font-size: 10.5px;
  vertical-align: top;
}

.rep-table tr { break-inside: avoid; }
.rep-reason { margin-top: 3px; color: #8A4B12; font-size: 10px; }

.rep-status {
  padding: 2px 6px;
  border-radius: 3px;
  background: #E3EBF3;
  color: #2A3F57;
  font-size: 8.5px;
  font-weight: 800;
  white-space: nowrap;
}

.rep-status.completed { background: #D9F2E7; color: #0E6B47; }
.rep-status.partial { background: #FCE8CC; color: #8A4B12; }
.rep-status.failed { background: #FADBE0; color: #9B1B33; }

.rep-list { margin: 0; padding-left: 18px; }
.rep-list li { margin: 3px 0; overflow-wrap: anywhere; }

.rep-foot {
  margin-top: 26px;
  padding-top: 12px;
  color: #5A6E85;
  border-top: 1px solid #D4DFEA;
  font-size: 9.5px;
  line-height: 1.7;
}

/* Alerts */

.alert-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.alert-level select {
  height: 36px;
  padding: 0 12px;
  color: #F5FAFF;
  background: linear-gradient(145deg,#06182D,#0D2949);
  border: 1px solid #28699E;
  border-radius: 7px;
  font-family: inherit;
  font-size: 11px;
}

.alerts-summary {
  margin: 0;
  padding: 13px 22px;
  color: #C8DCEF;
  border-bottom: 1px solid #1B4164;
  border-left: 4px solid #6485A5;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.alerts-summary.alert { color: #FFB8C3; border-left-color: #FF9EAD; background: rgba(217,77,107,.12); }
.alerts-summary.watch { border-left-color: #FFC28B; background: rgba(255,194,139,.08); }
.alerts-summary.clear { border-left-color: #43D6A0; background: rgba(67,214,160,.08); }

.alert-day {
  margin: 0;
  padding: 11px 22px;
  color: #8DD4FF;
  background: #0D2745;
  border-bottom: 1px solid #1B4164;
  font-size: 10px;
  letter-spacing: .9px;
  text-transform: uppercase;
}

.alert-day b {
  margin-left: 6px;
  padding: 2px 7px;
  color: #04172D;
  background: #36AEFF;
  border-radius: 10px;
  font-size: 9px;
}

.alert-time { margin-left: auto; color: #789EBD; font-size: 10px; }

.threat-item.unseen { background: rgba(21,158,255,.07); }

.new-tag {
  padding: 2px 6px;
  color: #04172D;
  background: #36AEFF;
  border-radius: 3px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: .6px;
}

.threat-summary {
  margin: 0;
  max-width: 900px;
  color: #A9C1DB;
  font-size: 11px;
  line-height: 1.7;
}

.alerts-delivery { padding: 6px 22px 14px; }

.delivery-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid #1B4164;
}

.delivery-row:last-child { border-bottom: 0; }

.delivery-text strong { color: #FFFFFF; font-size: 12px; }

.delivery-text p {
  margin: 5px 0 0;
  max-width: 760px;
  color: #A9C1DB;
  font-size: 11px;
  line-height: 1.7;
}

.delivery-actions { display: flex; align-items: center; gap: 12px; margin-top: 10px; flex-wrap: wrap; }
.delivery-row .status-badge { flex-shrink: 0; }

/* Settings: schedule status and the not-yet-built switches */

.schedule-box {
  margin: 4px 24px 24px;
  padding: 14px 17px;
  color: #C8DCEF;
  background: rgba(0,127,229,.08);
  border: 1px solid #24598A;
  border-left: 3px solid #159EFF;
  border-radius: 7px;
  font-size: 11px;
  line-height: 1.7;
}

.schedule-box p { margin: 5px 0 0; color: #A9C1DB; }
.schedule-box strong { font-size: 12px; }
.schedule-box .schedule-on { color: #72E6B8; }
.schedule-box .schedule-off { color: #FFC28B; }

#settings-view .setting-disabled { cursor: default; opacity: .75; }
#settings-view .setting-disabled input { cursor: not-allowed; }

.not-built {
  margin-left: 8px;
  padding: 2px 6px;
  color: #FFC28B;
  background: #56371F;
  border-radius: 3px;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .6px;
}

#settings-view .settings-note-first { margin-top: 16px; }
#settings-view .settings-note a { color: #75C9FF; }

@media (max-width: 760px) {
  .report-sheet { padding: 24px 18px; }
  .rep-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .delivery-row { flex-direction: column; gap: 10px; }
  .alert-time { margin-left: 0; width: 100%; }
}

/* Printing a report: only the sheet, on white paper. */

@media print {
  body.view-reports { display: block; background: #fff; color: #000; }

  body.view-reports .sidebar,
  body.view-reports .topbar,
  body.view-reports .report-tools,
  body.view-reports footer,
  body.view-reports .attribution {
    display: none !important;
  }

  body.view-reports .main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.view-reports .report-sheet {
    max-width: none;
    margin: 0;
    padding: 0;
    background: #fff;
    box-shadow: none;
    border-radius: 0;
  }

  body.view-reports .rep-sev,
  body.view-reports .rep-status,
  body.view-reports .rep-verdict,
  body.view-reports .rep-caveat,
  body.view-reports .rep-action {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }

  .report-sheet a { color: #000; text-decoration: none; }
}

/* Scan history */

.history-item { border-bottom: 1px solid #1B4164; }

.history-row {
  width: 100%;
  display: grid;
  grid-template-columns: 170px 110px 100px minmax(0,1fr) 120px 20px;
  align-items: center;
  gap: 14px;
  padding: 14px 22px;
  color: #C8DCEF;
  background: none;
  border: 0;
  font-family: inherit;
  font-size: 11px;
  text-align: left;
  cursor: pointer;
}

.history-row:hover { background: rgba(35,143,218,.12); }
.history-when { color: #FFFFFF; font-weight: 650; }
.history-kind { color: #8DB6D8; }
.history-counts { color: #A9C1DB; }
.history-new { color: #75C9FF; font-weight: 700; }
.history-caret { color: #75C9FF; transition: transform .15s; }
.history-item.open .history-caret { transform: rotate(90deg); }

.history-detail { padding: 4px 22px 18px; background: rgba(0,0,0,.14); }
.history-cats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 10px; }
.history-cat { padding: 12px 14px; background: #0D2745; border: 1px solid #24598A; border-radius: 7px; }
.history-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.history-cat-head strong { color: #FFFFFF; font-size: 12px; }
.history-cat .cov-verdict { margin-top: 8px; font-size: 12px; }
.history-reason { margin: 6px 0 0; padding: 6px 9px; color: #FFC28B; background: rgba(255,194,139,.08); border-radius: 4px; font-size: 10.5px; line-height: 1.6; }
.history-reason.ok { color: #72E6B8; background: rgba(67,214,160,.08); }
.history-note { margin: 10px 0; color: #A9C1DB; font-size: 11px; }
.history-note.bad { color: #FF9EAD; }

@media (max-width: 900px) {
  .history-row { grid-template-columns: 1fr auto; row-gap: 4px; }
  .history-kind, .history-counts, .history-new { grid-column: 1 / -1; }
  .history-caret { display: none; }
}

.change-tag {
  display: inline-block;
  padding: 2px 7px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--accent, #5eead4);
}

/* ------------------------------------------------------------------
   SIGN-IN, ACCOUNT AND TEAM
   ------------------------------------------------------------------ */

body.auth-locked .sidebar,
body.auth-locked .main { display: none; }

.auth-screen {
  /* The page is a flex row (sidebar + main), so cover it entirely to centre the card. */
  position: fixed;
  inset: 0;
  z-index: 100;
  width: 100%;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: 24px;
  background: radial-gradient(circle at 30% 20%, #0B2850, #071B35 70%);
}

.auth-screen[hidden] { display: none; }

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 30px;
  background: linear-gradient(145deg,#102D50,#0B203B);
  border: 1px solid #286092;
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
}

.auth-brand { min-height: 0; margin-bottom: 22px; }
.auth-brand .brand-symbol { margin-bottom: 10px; }
.auth-card h1 { font-size: 22px; margin: 0 0 6px; }
.auth-sub { color: var(--muted); font-size: 12px; line-height: 1.6; margin: 0 0 16px; }

.auth-field {
  display: block;
  margin-bottom: 14px;
  color: #D3E8FA;
  font-size: 11px;
  font-weight: 600;
}

.auth-field[hidden] { display: none; }

.auth-field input,
.auth-field select {
  display: block;
  width: 100%;
  height: 44px;
  margin-top: 6px;
  padding: 0 14px;
  color: #F5FAFF;
  background: #06182D;
  border: 1px solid #28699E;
  border-radius: 8px;
  font-family: inherit;
  font-size: 13px;
  outline: none;
}

.auth-field input:focus,
.auth-field select:focus {
  border-color: #00BFFF;
  box-shadow: 0 0 0 3px rgba(0,191,255,.15);
}

.auth-field small {
  display: block;
  margin-top: 6px;
  color: #789EBD;
  font-size: 10px;
  line-height: 1.5;
  font-weight: 400;
}

.auth-message { min-height: 18px; margin: 0 0 12px; color: #FFB4A8; font-size: 12px; line-height: 1.5; }
.auth-message.ok { color: var(--green); }
.auth-submit { width: 100%; }

.sidebar-user { min-width: 0; }
.sidebar-user strong,
.sidebar-user small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.sidebar-user .mini-button { margin-top: 8px; }

.account-body { padding: 20px; }
.account-body h3 { font-size: 13px; margin: 22px 0 10px; }
.account-facts { display: grid; grid-template-columns: 110px 1fr; gap: 8px 14px; margin: 0 0 8px; font-size: 12px; }
.account-facts dt { color: var(--muted); }
.account-facts dd { margin: 0; overflow-wrap: anywhere; }
.account-form { max-width: 420px; margin-top: 24px; padding-top: 6px; }
.account-form small { display: block; margin-top: 8px; color: #789EBD; font-size: 10px; }

.secret-box {
  display: block;
  margin: 0 0 14px;
  padding: 12px 14px;
  color: #BFE6FF;
  background: #06182D;
  border: 1px solid #28699E;
  border-radius: 8px;
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  line-height: 1.7;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: all;
}

.link-box { max-width: 640px; margin-top: 18px; }
.plain-list { font-size: 12px; line-height: 1.7; color: #D3E8FA; }
.plain-list .row { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid #1B476F; }
.plain-list .row small { color: #789EBD; }
.plain-list .empty { color: var(--muted); padding: 6px 0; }

.team-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.team-actions select { height: 30px; color: #F5FAFF; background: #06182D; border: 1px solid #28699E; border-radius: 6px; font-family: inherit; font-size: 11px; }

/* Viewers can look but not change anything. The server enforces this too;
   hiding the controls just avoids offering buttons that would be refused. */
body.read-only #scan-now,
body.read-only #threats-scan,
body.read-only #save-settings,
body.read-only .inline-form,
body.read-only [data-remove],
body.read-only [data-set-status],
body.not-owner [data-test-alert],
body.not-owner [data-test-email],
body.not-owner #team-panel { display: none; }

.link-box small { display: block; margin-top: 8px; color: #789EBD; font-size: 10px; line-height: 1.5; }

/* ------------------------------------------------------------------
   HEALTH SCORE AND FIX LIST
   ------------------------------------------------------------------ */

.risk-body { display: flex; gap: 32px; padding: 22px 24px; align-items: flex-start; flex-wrap: wrap; }
.risk-ring { text-align: center; min-width: 150px; }
.risk-label { margin-top: 6px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.ring-track { stroke: #1B476F; }
.ring-value { stroke: var(--blue-light); }
.ring-value.tone-good { stroke: var(--green); }
.ring-value.tone-fair { stroke: #9BD94A; }
.ring-value.tone-poor { stroke: #FFB84D; }
.ring-value.tone-bad { stroke: #FF6B5E; }
.ring-number { fill: #F5FAFF; font-size: 34px; font-weight: 800; font-family: inherit; }
.tone-good-text { color: var(--green); }
.tone-fair-text { color: #9BD94A; }
.tone-poor-text { color: #FFB84D; }
.tone-bad-text { color: #FF6B5E; }
.risk-text { flex: 1; min-width: 260px; font-size: 13px; line-height: 1.65; }
.risk-text p { margin: 0 0 10px; }
.risk-advice { font-size: 15px; font-weight: 600; }
.risk-change.up { color: var(--green); }
.risk-change.down { color: #FF8A7E; }
.risk-potential { color: #BFE6FF; }
.risk-coverage { color: var(--muted); font-size: 11px; }
.risk-warning { color: #FFB84D; font-size: 12px; }
.risk-trend { display: flex; align-items: center; gap: 12px; margin: 4px 0 10px; }
.risk-trend-label { color: var(--muted); font-size: 11px; }
.spark-line { stroke: var(--blue-neon); }
.risk-how summary { cursor: pointer; color: #75C9FF; font-size: 11px; }
.risk-how p { color: var(--muted); font-size: 11px; margin-top: 8px; }

.fix-body { padding: 8px 20px 18px; }
.fix-summary { margin: 12px 0; font-size: 13px; color: #D3E8FA; }
.fix-list { list-style: none; margin: 0; padding: 0; }
.fix-item { margin-bottom: 10px; background: #0B203B; border: 1px solid #286092; border-left-width: 4px; border-radius: 8px; }
.fix-item.sev-critical { border-left-color: #FF4D4D; }
.fix-item.sev-high { border-left-color: #FF8A3D; }
.fix-item.sev-medium { border-left-color: #FFC857; }
.fix-item.sev-low { border-left-color: #5CB8FF; }
.fix-item summary { display: flex; align-items: center; gap: 12px; padding: 13px 15px; cursor: pointer; list-style: none; font-size: 13px; }
.fix-item summary::-webkit-details-marker { display: none; }
.fix-rank { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #174875; font-size: 11px; font-weight: 700; flex-shrink: 0; }
.fix-sev { font-size: 9px; font-weight: 800; letter-spacing: .8px; padding: 4px 7px; border-radius: 4px; background: #174875; flex-shrink: 0; }
.fix-sev.sev-critical { background: #7A1F1F; }
.fix-sev.sev-high { background: #7A3B12; }
.fix-sev.sev-medium { background: #6B5410; }
.fix-title { flex: 1; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.fix-meta { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 11px; flex-shrink: 0; }
.fix-gain { color: var(--green); }
.fix-detail { padding: 2px 18px 16px 52px; font-size: 12px; line-height: 1.7; color: #D3E8FA; }
.fix-detail h4 { margin: 14px 0 6px; font-size: 11px; letter-spacing: .8px; color: #75C9FF; text-transform: uppercase; }
.fix-detail p { margin: 0 0 8px; }
.fix-facts { display: flex; gap: 18px; flex-wrap: wrap; color: var(--muted); }
.fix-finding { color: #789EBD; font-size: 11px; }
.fix-steps { margin: 0 0 8px; padding-left: 20px; }
.fix-steps li { margin-bottom: 6px; }
.fix-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.fix-feedback { min-height: 18px; margin-top: 10px; font-size: 12px; }
.fix-feedback.ok { color: var(--green); }
.fix-feedback.bad { color: #FFB84D; }
.fix-foot { margin: 12px 0 0; color: var(--muted); font-size: 11px; }
body.read-only .needs-write { display: none; }

.quick-pick { margin: 12px 0 4px; }
.quick-pick-label { display: block; font-size: 12px; color: #A9C1DB; margin-bottom: 8px; }
.quick-pick-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-button {
  background: #14283C; color: #DCE8F5; border: 1px solid #2C4A68; border-radius: 999px;
  padding: 6px 12px; font: inherit; font-size: 12px; cursor: pointer;
}
.chip-button:hover { border-color: #6485A5; background: #1B3550; }
.chip-button:disabled { opacity: 0.5; cursor: default; }

.spark-dot { fill: #6C9CFF; stroke: #0E1B2D; stroke-width: 1.5; }
.spark-label { fill: #DCE8F5; font-size: 11px; font-weight: 600; }
.spark-date { fill: #8FA9C6; font-size: 10px; }
.risk-trend { display: flex; flex-direction: column; gap: 6px; }
.fix-details { color: #C7D8EA; font-size: 13px; line-height: 1.5; margin: 6px 0; }
.fix-link a { color: #8FB4FF; font-size: 13px; }

/* Links must be readable on the dark theme (the browser default purple is not). */
.cov-foot a, .detail-foot a, .detail-link a, .report-tools a, #history-view a {
  color: #8FD0FF;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cov-foot a:visited, .detail-foot a:visited, .detail-link a:visited { color: #8FD0FF; }
.cov-foot a:hover, .detail-foot a:hover, .detail-link a:hover { color: #C7E8FF; }
.cov-foot { font-size: 12px; color: #A9C1DB; }
.cov-foot a[data-history-scan] {
  display: inline-block; padding: 4px 10px; border: 1px solid #4B7FB0; border-radius: 6px;
  background: #16314D; text-decoration: none; font-size: 12px;
}

.detail-plain { margin: 8px 0 12px; padding: 12px 16px; background: #14304A; border-left: 4px solid #6CC4FF; border-radius: 6px; }
.detail-plain strong, .detail-action strong { display: block; margin-bottom: 6px; color: #8FD0FF; font-size: 11px; letter-spacing: .08em; }
.detail-plain p { margin: 0 0 8px; color: #E8F1FA; font-size: 14px; line-height: 1.6; }
.detail-action ol { margin: 6px 0 8px; padding-left: 20px; color: #E8F1FA; font-size: 14px; line-height: 1.6; }
.detail-facts, .detail-check { color: #BBD0E6; font-size: 13px; margin: 4px 0; }
.detail-tech { margin: 12px 0; }
.detail-tech summary { cursor: pointer; color: #8FD0FF; font-weight: 700; font-size: 13px; }

/* Report: score block, light paper version of the dashboard visuals. */
.rep-score-top { display: flex; gap: 24px; align-items: flex-start; flex-wrap: wrap; }
.report-sheet .risk-ring { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.report-sheet .risk-text { flex: 1; min-width: 260px; }
.report-sheet .ring-track { stroke: #D4DFEA; }
.report-sheet .ring-value { stroke: #0B5FB0; }
.report-sheet .ring-value.tone-good { stroke: #1E9E57; }
.report-sheet .ring-value.tone-fair { stroke: #6FA82A; }
.report-sheet .ring-value.tone-poor { stroke: #D98A0B; }
.report-sheet .ring-value.tone-bad { stroke: #D6402F; }
.report-sheet .ring-number { fill: #0A1B30; }
.report-sheet .tone-good-text { color: #1E7A47; }
.report-sheet .tone-fair-text { color: #4F7F1B; }
.report-sheet .tone-poor-text { color: #A86500; }
.report-sheet .tone-bad-text { color: #B42E20; }
.report-sheet .risk-label { font-weight: 800; font-size: 14px; }
.report-sheet .risk-advice { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: #0A1B30; }
.report-sheet .risk-change.up { color: #1E7A47; }
.report-sheet .risk-change.down { color: #B42E20; }
.report-sheet .risk-potential, .report-sheet .risk-coverage { color: #3A4F66; font-size: 11.5px; margin: 4px 0; }
.report-sheet .risk-trend-label { display: block; color: #5A6E85; font-size: 10.5px; margin-bottom: 4px; }
.report-sheet .spark-line { stroke: #0B5FB0; }
.report-sheet .spark-dot { fill: #0B5FB0; stroke: #fff; }
.report-sheet .spark-label { fill: #17283D; }
.report-sheet .spark-date { fill: #5A6E85; }
.rep-fix-title { margin: 18px 0 8px; font-size: 13px; color: #0A1B30; }
.rep-fixes { margin: 0; padding-left: 0; list-style: none; counter-reset: fix; }
.rep-fix { margin: 0 0 12px; padding: 10px 14px; border: 1px solid #D4DFEA; border-left: 4px solid #6B88A6; border-radius: 4px; break-inside: avoid; }
.rep-fix.sev-critical { border-left-color: #D6402F; }
.rep-fix.sev-high { border-left-color: #E07B1A; }
.rep-fix.sev-medium { border-left-color: #D9B31C; }
.rep-fix.sev-low { border-left-color: #3E7CB1; }
.rep-fix-head { display: flex; gap: 10px; align-items: center; }
.rep-fix-head strong { flex: 1; }
.rep-gain { color: #1E7A47; font-weight: 700; font-size: 11px; }
.rep-fix p { margin: 4px 0; }
.rep-fix ol { margin: 4px 0 0; padding-left: 20px; }
@media print { .rep-score-block, .rep-fix { break-inside: avoid; } }

/* ===== Pop-up (scan result and notices) ===== */

    .cyber-modal-overlay {
      position: fixed;
      inset: 0;
      z-index: 99999;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
      background: rgba(1, 9, 21, .82);
      backdrop-filter: blur(9px);
      -webkit-backdrop-filter: blur(9px);
      opacity: 0;
      visibility: hidden;
      transition: opacity .25s ease, visibility .25s ease;
    }

    .cyber-modal-overlay.active {
      opacity: 1;
      visibility: visible;
    }

    .cyber-modal {
      position: relative;
      width: 100%;
      max-width: 440px;
      overflow: hidden;
      background:
        radial-gradient(ellipse at 50% 0%, rgba(0,153,255,.18), transparent 55%),
        linear-gradient(145deg, #102D50, #07182D);
      border: 1px solid #287FC0;
      border-radius: 17px;
      box-shadow:
        0 25px 90px rgba(0,0,0,.55),
        0 0 40px rgba(0,127,229,.15);
      transform: translateY(18px) scale(.97);
      transition: transform .3s cubic-bezier(.2,.8,.2,1);
      color: #F5FAFF;
      font-family: Inter, "Segoe UI", Arial, sans-serif;
    }

    .cyber-modal-overlay.active .cyber-modal {
      transform: translateY(0) scale(1);
    }

    .cyber-modal-top {
      height: 4px;
      background: linear-gradient(90deg,#087FE5,#00BFFF,#087FE5);
      background-size: 200% 100%;
      animation: cyberModalGlow 3s linear infinite;
    }

    @keyframes cyberModalGlow {
      to { background-position: 200% 0; }
    }

    .cyber-modal-close {
      position: absolute;
      top: 17px;
      right: 17px;
      width: 32px;
      height: 32px;
      display: grid;
      place-items: center;
      color: #8FB8D9;
      background: rgba(20,65,105,.5);
      border: 1px solid rgba(91,160,210,.25);
      border-radius: 50%;
      font-size: 19px;
      cursor: pointer;
      transition: .2s ease;
    }

    .cyber-modal-close:hover {
      color: white;
      background: #174875;
      border-color: #159EFF;
    }

    .cyber-modal-content {
      padding: 35px 32px 30px;
      text-align: center;
    }

    .cyber-modal-icon {
      width: 76px;
      height: 76px;
      display: grid;
      place-items: center;
      margin: 0 auto 21px;
      border: 1px solid #159EFF;
      border-radius: 50%;
      background: radial-gradient(circle,#124D7D,#0B2949);
      box-shadow: 0 0 30px rgba(0,153,255,.22);
    }

    .cyber-modal-icon svg {
      width: 37px;
      height: 37px;
      fill: none;
      stroke: #55C7FF;
      stroke-width: 2.5;
      stroke-linecap: round;
      stroke-linejoin: round;
      stroke-dasharray: 50;
      stroke-dashoffset: 50;
      animation: cyberCheck .55s .15s ease forwards;
    }

    @keyframes cyberCheck {
      to { stroke-dashoffset: 0; }
    }

    .cyber-modal-eyebrow {
      margin-bottom: 9px;
      color: #48B9FF;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 2px;
    }

    .cyber-modal-title {
      margin: 0 0 11px;
      color: #FFFFFF;
      font-size: 25px;
      font-weight: 800;
      letter-spacing: -.6px;
    }

    .cyber-modal-description {
      margin: 0 auto;
      max-width: 330px;
      color: #A9C1DB;
      font-size: 12px;
      line-height: 1.8;
      overflow-wrap: anywhere;
      white-space: pre-line;
    }

    .cyber-modal-details {
      margin-top: 25px;
      padding: 16px;
      text-align: left;
      background: rgba(10,40,70,.75);
      border: 1px solid #24598A;
      border-radius: 9px;
    }

    .cyber-modal-details-label {
      margin-bottom: 7px;
      color: #64C4FF;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: 1.2px;
    }

    .cyber-modal-company {
      overflow-wrap: anywhere;
      color: #FFFFFF;
      font-size: 14px;
      font-weight: 750;
    }

    .cyber-modal-country {
      margin-top: 5px;
      color: #91B4D3;
      font-size: 11px;
    }

    .cyber-modal-status {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      margin-top: 19px;
      padding: 7px 11px;
      color: #72E6B8;
      background: rgba(31,155,111,.12);
      border: 1px solid rgba(67,214,160,.3);
      border-radius: 30px;
      font-size: 9px;
      font-weight: 800;
      letter-spacing: .8px;
    }

    .cyber-modal-status-dot {
      width: 7px;
      height: 7px;
      background: #43D6A0;
      border-radius: 50%;
      box-shadow: 0 0 9px #43D6A0;
    }

    .cyber-modal-button {
      width: 100%;
      min-height: 47px;
      margin-top: 25px;
      color: white;
      background: linear-gradient(105deg,#087FE5,#159EFF);
      border: 1px solid #55C1FF;
      border-radius: 8px;
      font-family: inherit;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .7px;
      cursor: pointer;
      box-shadow: 0 5px 20px rgba(0,127,229,.25);
      transition: .2s ease;
    }

    .cyber-modal-button:hover {
      transform: translateY(-2px);
      background: linear-gradient(105deg,#159EFF,#00BFFF);
      box-shadow: 0 7px 25px rgba(0,153,255,.4);
    }

    .cyber-modal-warning .cyber-modal-icon {
      border-color: #D9A441;
      background: radial-gradient(circle,#5C4217,#2A2112);
    }

    .cyber-modal-warning .cyber-modal-icon svg {
      stroke: #FFD27A;
    }

    .cyber-modal-warning .cyber-modal-eyebrow {
      color: #FFD27A;
    }

    .cyber-modal-warning .cyber-modal-top {
      background: linear-gradient(90deg,#A8741F,#FFD27A,#A8741F);
    }

    .cyber-modal-warning .cyber-modal-description {
      max-width: 420px;
      text-align: left;
    }

    .cyber-modal-error .cyber-modal-icon {
      border-color: #D66B83;
      background: radial-gradient(circle,#632D42,#2C1A2B);
    }

    .cyber-modal-error .cyber-modal-icon svg {
      stroke: #FF9EAD;
    }

    .cyber-modal-error .cyber-modal-eyebrow {
      color: #FF9EAD;
    }

    .cyber-modal-error .cyber-modal-top {
      background: linear-gradient(90deg,#A83250,#FF849B,#A83250);
    }

    .cyber-modal-error .cyber-modal-button {
      background: linear-gradient(105deg,#A83250,#D94D6B);
      border-color: #F17D96;
    }

    .cyber-modal-error .cyber-modal-button:hover {
      background: linear-gradient(105deg,#D94D6B,#F16C87);
    }

    @media(max-width:480px) {
      .cyber-modal-content {
        padding: 30px 21px 23px;
      }

      .cyber-modal-title {
        font-size: 22px;
      }
    }

    @media(prefers-reduced-motion:reduce) {
      .cyber-modal,
      .cyber-modal-overlay,
      .cyber-modal-button {
        transition: none;
      }

      .cyber-modal-icon svg,
      .cyber-modal-top {
        animation: none;
        stroke-dashoffset: 0;
      }
    }
  

/* Incident response plan */

.plan-summary-body { padding: 16px 20px; display: grid; gap: 8px; }
.plan-muted { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 4px 0; }
.plan-muted.small { font-size: 11px; }
.plan-caveat { margin: 4px 0; padding: 8px 10px; font-size: 12px; color: #D6E9FF; background: rgba(21,158,255,.08); border: 1px solid #286092; border-radius: 6px; }
.plan-reminders { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.plan-intro { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 860px; margin: 0 0 14px; }
.plan-pad { padding: 16px 20px; display: grid; gap: 10px; }
.plan-pad input[type="text"], .plan-pad input[type="date"], .plan-pad input[type="datetime-local"], .plan-pad select, .plan-pad textarea,
.plan-editor input, .plan-editor textarea, .plan-q input[type="text"], .plan-q input[type="date"], .plan-q input[type="number"], .plan-q input[type="tel"], .plan-q input[type="email"], .plan-q select, .plan-q textarea {
  width: 100%; padding: 9px 10px; color: var(--white); background: #0A2240; border: 1px solid #28699E; border-radius: 6px; font: inherit; font-size: 14px;
}
.plan-pad textarea, .plan-editor textarea, .plan-q textarea { resize: vertical; line-height: 1.5; }

.plan-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 8px; }
.plan-tab { padding: 10px 14px; font-size: 10px; letter-spacing: .8px; font-weight: 800; color: var(--muted); background: transparent; border: 1px solid #28699E; border-radius: 6px; cursor: pointer; font-family: inherit; }
.plan-tab.active { color: #fff; background: linear-gradient(105deg,#087FE5,#159EFF); border-color: #55C1FF; }
.plan-message { min-height: 20px; margin: 6px 0; font-size: 13px; }
.plan-message.good { color: var(--green); }
.plan-message.bad { color: #FF9C9C; }

.plan-part { border-bottom: 1px solid #1B4164; }
.plan-part-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 12px 4px 0; flex-wrap: wrap; }
.plan-part-toggle { flex: 1; min-width: 220px; text-align: left; padding: 14px 20px; color: var(--white); background: transparent; border: 0; font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.plan-part-toggle:hover { background: rgba(255,255,255,.04); }
.plan-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.plan-state-edited, .plan-state-edited_answers_changed { color: #9FD3FF; }
.plan-pending-pill { color: var(--muted); }
.plan-part-content { padding: 4px 20px 18px; }
.plan-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.plan-history { font-size: 12px; color: var(--muted); padding-left: 18px; }
.plan-editor { display: grid; gap: 8px; }

.plan-text { font-size: 14px; line-height: 1.6; max-width: 880px; }
.plan-text h3 { font-size: 16px; margin: 12px 0 6px; }
.plan-text h4 { font-size: 14px; margin: 14px 0 4px; color: #9FD3FF; }
.plan-text p { margin: 6px 0; }
.plan-text ul, .plan-text ol { margin: 6px 0; padding-left: 22px; }
.plan-text li.nested { margin-left: 16px; }
.plan-tag { margin-left: 6px; padding: 1px 6px; font-size: 10px; color: var(--muted); border: 1px solid #28699E; border-radius: 10px; white-space: nowrap; }
.plan-pending { margin: 6px 0; padding: 6px 10px; color: var(--muted); font-style: italic; border-left: 2px dashed #4A7FA8; }
.plan-note { padding: 8px 10px; color: #D6E9FF; background: rgba(21,158,255,.1); border-left: 3px solid #159EFF; border-radius: 4px; }
.plan-conflict .plan-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan-sides > div { padding: 10px 12px; border: 1px solid #28699E; border-radius: 6px; }

.plan-parts { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.plan-part-chip { padding: 8px 10px; font-size: 11px; color: var(--muted); background: transparent; border: 1px solid #28699E; border-radius: 16px; cursor: pointer; font-family: inherit; }
.plan-part-chip.active { color: #fff; background: #087FE5; border-color: #55C1FF; }
.plan-q-list { padding: 8px 20px 20px; display: grid; gap: 22px; }
.plan-q { display: grid; gap: 6px; max-width: 820px; }
.plan-q-text { font-weight: 700; font-size: 14px; line-height: 1.4; }
.plan-unsure, .plan-check { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.plan-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.plan-saved { min-height: 16px; font-size: 11px; color: var(--green); }
.plan-saved.bad { color: #FF9C9C; }
.plan-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; }
.plan-field { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.plan-row { display: grid; gap: 6px; padding: 10px; margin-bottom: 8px; border: 1px solid #1B4164; border-radius: 6px; }
.plan-rank { padding-left: 22px; display: grid; gap: 4px; }
.plan-rank li span { margin-right: 10px; }

.plan-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #1B4164; }
.plan-gap-text { flex: 1; min-width: 240px; font-size: 14px; }
.plan-gap small { color: var(--muted); }
.plan-clocks { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.plan-clock { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #1B4164; }
.plan-clock-label { font-weight: 700; flex: 1; min-width: 240px; }
.plan-countdown { color: var(--green); font-variant-numeric: tabular-nums; }
.plan-countdown.over { color: #FF9C9C; }
.plan-contact, .plan-incident, .plan-release, .plan-download { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid #1B4164; }
.plan-download { justify-content: space-between; }
.plan-download > div:first-child { display: grid; gap: 2px; }
.plan-download small { color: var(--muted); }
.plan-due { color: #FFD58A; }
.plan-event { margin: 2px 0; font-size: 13px; line-height: 1.5; }
.diff-added { color: var(--green); margin: 2px 0; }
.diff-removed { color: #FF9C9C; margin: 2px 0; }
.plan-diff-part { margin: 10px 0; padding: 8px 10px; border: 1px solid #28699E; border-radius: 6px; }

@media (max-width: 800px) {
  .plan-conflict .plan-sides { grid-template-columns: 1fr; }
}

/* Printed plan: the plan overlay is the only thing on the page. */
.print-root { display: none; }

@media print {
  body.printing-plan { display: block; background: #fff; color: #000; }
  body.printing-plan > *:not(.print-root) { display: none !important; }
  body.printing-plan .print-root { display: block; color: #000; background: #fff; font-family: Calibri, Arial, sans-serif; font-size: 11pt; line-height: 1.45; }
  .print-root .print-brand { font-size: 9pt; letter-spacing: 2px; color: #555; margin-bottom: 6px; }
  .print-root h1 { font-size: 20pt; margin: 0 0 8px; }
  .print-root h2 { font-size: 14pt; margin: 18px 0 6px; break-after: avoid; }
  .print-root h3 { font-size: 12pt; margin: 12px 0 4px; }
  .print-root h4 { font-size: 11pt; margin: 10px 0 3px; }
  .print-root p, .print-root li { break-inside: avoid; }
  .print-root .break-before { break-before: page; }
  .print-root .plan-text { max-width: none; font-size: 11pt; }
  .print-root .plan-tag { color: #666; border: 0; font-size: 8pt; padding: 0 0 0 4px; }
  .print-root .plan-tag::before { content: "["; }
  .print-root .plan-tag::after { content: "]"; }
  .print-root .plan-pending { color: #555; font-style: italic; border-left: 2px dashed #999; }
  .print-root .plan-note { color: #000; border-left: 3px solid #159EFF; }
  .print-root .print-footer { margin-top: 24px; font-size: 8pt; color: #666; }
}

.plan-include { margin: 2px 0; font-size: 13px; color: #9FD3FF; line-height: 1.5; }

/* Question wizard */
.q-progress { margin: 0 0 14px; }
.q-progress-bar { height: 8px; background: #0A2240; border: 1px solid #28699E; border-radius: 6px; overflow: hidden; }
.q-progress-fill { height: 100%; background: linear-gradient(90deg,#087FE5,#00BFFF); }
.q-progress-text { margin: 6px 0 0; font-size: 12px; color: var(--muted); }
.q-card { padding: 28px 30px 24px; display: grid; gap: 14px; max-width: 860px; }
.q-eyebrow { font-size: 11px; letter-spacing: 1.5px; font-weight: 800; color: #55C1FF; text-transform: uppercase; }
.q-title { margin: 0; font-size: 24px; line-height: 1.3; font-weight: 800; }
.q-include { padding: 12px 14px; font-size: 14px; line-height: 1.55; color: #D6E9FF; background: rgba(21,158,255,.09); border-left: 3px solid #159EFF; border-radius: 4px; }
.q-include strong { color: #fff; }
.q-answer { display: grid; gap: 8px; }
.q-answer textarea { min-height: 130px; font-size: 16px; line-height: 1.55; }
.q-answer input[type="text"], .q-answer input[type="date"], .q-answer input[type="number"], .q-answer input[type="tel"], .q-answer input[type="email"], .q-answer select, .q-answer textarea { width: 100%; padding: 11px 12px; color: var(--white); background: #0A2240; border: 1px solid #28699E; border-radius: 6px; font: inherit; font-size: 15px; }
.q-answer .plan-form { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.q-answer .plan-field { font-size: 13px; }
.q-choices { display: grid; gap: 8px; }
.q-choice { display: flex; align-items: center; gap: 10px; padding: 12px 14px; font-size: 15px; border: 1px solid #28699E; border-radius: 8px; cursor: pointer; background: #0A2240; }
.q-choice:hover { border-color: #55C1FF; }
.q-choice.on { border-color: #55C1FF; background: rgba(21,158,255,.18); }
.q-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; }
.q-foot .spacer { flex: 1; }
.q-big { padding: 12px 22px; font-size: 11px; }
.q-w-0 { width: 0%; }
.q-w-5 { width: 5%; }
.q-w-10 { width: 10%; }
.q-w-15 { width: 15%; }
.q-w-20 { width: 20%; }
.q-w-25 { width: 25%; }
.q-w-30 { width: 30%; }
.q-w-35 { width: 35%; }
.q-w-40 { width: 40%; }
.q-w-45 { width: 45%; }
.q-w-50 { width: 50%; }
.q-w-55 { width: 55%; }
.q-w-60 { width: 60%; }
.q-w-65 { width: 65%; }
.q-w-70 { width: 70%; }
.q-w-75 { width: 75%; }
.q-w-80 { width: 80%; }
.q-w-85 { width: 85%; }
.q-w-90 { width: 90%; }
.q-w-95 { width: 95%; }
.q-w-100 { width: 100%; }

.plan-start { display: grid; gap: 8px; margin: 0 0 14px; padding: 16px 18px; background: rgba(21,158,255,.1); border: 1px solid #286092; border-radius: 8px; }
.plan-start span { color: #D6E9FF; font-size: 14px; line-height: 1.5; }
.plan-ask-pill { color: #fff; background: #087FE5; border-color: #55C1FF; }
.plan-ask { margin: 8px 0 16px; padding: 14px 16px; background: rgba(21,158,255,.06); border: 1px solid #286092; border-radius: 8px; display: grid; gap: 14px; }
.plan-ask h4 { margin: 0; color: #9FD3FF; font-size: 15px; }
.plan-ask .q-answer { padding: 14px; background: #0B2142; border-radius: 8px; }
.q-title.small { font-size: 16px; }
.plan-answers { margin-top: 14px; padding: 10px 14px; border: 1px solid #28699E; border-radius: 8px; }
.plan-answers > summary, .plan-answer-item > summary { cursor: pointer; font-size: 13px; font-weight: 700; color: #9FD3FF; }
.plan-answer-item { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid #1B4164; }
.plan-answer-item .q-answer { margin-top: 10px; }
.plan-answer-item .q-include { display: none; }

.plan-answer-link { margin-left: 10px; font-style: normal; }
.q-flash { box-shadow: 0 0 0 3px #55C1FF; border-radius: 8px; }

.plan-na-warning { font-size: 13px; line-height: 1.5; }

/* Dropdown lists: the browser draws these itself, so give them a dark background
   and light text everywhere or the options turn white on white. */
select { color-scheme: dark; }
select option, select optgroup { color: #F5FAFF; background: #0A2240; }

/* About our sources */
.sources-text { padding: 16px 22px; font-size: 14px; line-height: 1.65; max-width: 860px; }
.sources-text ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.sources-table-wrap { overflow-x: auto; }
.sources-table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.sources-table th, .sources-table td { padding: 12px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid #1B4164; }
.sources-table thead th { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); }
.sources-table tbody th { font-weight: 700; min-width: 190px; }
.sources-table a { color: #75C9FF; }
.sources-note { margin: 0; padding: 14px 20px; color: var(--muted); font-size: 12px; }
.sources-table { table-layout: fixed; }
.sources-table tbody th { font-size: 13px; text-transform: none; letter-spacing: 0; color: var(--white); min-width: 0; width: 20%; }
.sources-table thead th:nth-child(2), .sources-table thead th:nth-child(3) { width: 31%; }
.sources-table thead th:nth-child(4) { width: 18%; }
.sources-table td { overflow-wrap: anywhere; }
.sources-table { white-space: normal; }
.sources-table td { font-size: 13px; color: #D6E9FF; border-top: 0; }
.sources-table thead th { background: transparent; font-size: 10px; }

/* Staff exits */
.exit-items { display: grid; }
.exit-item { padding: 14px 20px; border-bottom: 1px solid #1B4164; display: grid; gap: 8px; }
.exit-item.state-done { background: rgba(67,214,160,.06); }
.exit-item.state-na { opacity: .85; }
.exit-item.state-outstanding { background: rgba(21,158,255,.07); border-left: 3px solid #159EFF; }
.exit-item-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.exit-label { font-size: 15px; line-height: 1.4; flex: 1; min-width: 260px; }
.exit-timing { color: var(--muted); }
.exit-controls { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.exit-item input[type="text"] { width: 100%; padding: 8px 10px; color: var(--white); background: #0A2240; border: 1px solid #28699E; border-radius: 6px; font: inherit; font-size: 13px; }

.evidence-files { list-style: none; margin: 0; padding: 0; }
.evidence-files li { display: flex; flex-direction: column; margin-bottom: 8px; overflow-wrap: anywhere; }
.evidence-files li span { color: var(--muted, #8fa3c4); font-size: 12px; }

.cov-card.action { border-left-color: #FFB45E; }
.status-badge.action { background: #6B3A12; color: #FFC98F; }
.rep-status.action { background: #FCDDB8; color: #7A3A05; }

.cov-legend { border-style: dashed; background: transparent; }
.cov-legend .legend-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 10px; }
.cov-legend .legend-list li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; align-items: center; font-size: 13px; }
.cov-legend .legend-note { margin: 0; font-size: 12px; opacity: 0.8; }
@media (max-width: 560px) { .cov-legend .legend-list li { grid-template-columns: 1fr; } }
.cov-legend .legend-list .status-badge { justify-self: start; width: auto; }

.nav-label.nav-label-next { margin-top: 18px; }

@media (min-width: 901px) { .sidebar { overflow-y: auto; } .sidebar-bottom { flex-shrink: 0; margin-top: auto; } }

.page-hero { position: relative; border: 1px solid #2B5F96; border-radius: 14px; padding: 28px; margin-bottom: 22px; background: radial-gradient(900px 260px at 0% 0%, rgba(52,118,178,.35), transparent 60%), linear-gradient(180deg, #11305A, #0C2140); display: grid; gap: 26px; }
.page-kicker { font-size: 10px; font-weight: 800; letter-spacing: 1.8px; color: #75C9FF; }
.page-hero-intro h2 { margin: 8px 0 10px; font-size: 24px; line-height: 1.25; }
.page-hero-intro p { margin: 0; max-width: 760px; font-size: 14px; line-height: 1.65; color: #B8CCE6; }
.page-flow { list-style: none; counter-reset: flow; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.page-flow li { counter-increment: flow; position: relative; padding-top: 44px; }
.page-flow li::before { content: counter(flow); position: absolute; top: 0; left: 0; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(180deg, #4C9BF0, #2F6FB8); color: #fff; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 5px rgba(76,155,240,.18); z-index: 1; }
.page-flow li::after { content: ""; position: absolute; top: 15px; left: 42px; right: -18px; height: 2px; background: linear-gradient(90deg, #3C78B8, rgba(60,120,184,.15)); }
.page-flow li:last-child::after { display: none; }
.page-flow-body { display: grid; gap: 6px; font-size: 13px; line-height: 1.55; }
.page-flow-body strong { font-size: 15px; }
.page-flow-body span { color: #AFC4E0; }
.page-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.page-chip { font-size: 10px; font-weight: 800; letter-spacing: .6px; padding: 4px 8px; border-radius: 999px; }
.page-chip.is-done { background: #124A3B; color: #72E6B8; }
.page-chip.is-na { background: #243B52; color: #A9C1DB; }
.page-chip.is-out { background: #56371F; color: #FFC28B; }
.page-more { border-top: 1px solid rgba(255,255,255,.1); padding-top: 14px; font-size: 13px; }
.page-more summary { cursor: pointer; font-weight: 800; color: #75C9FF; font-size: 12px; letter-spacing: 1px; }
.page-more ul { margin: 10px 0 0; padding-left: 18px; line-height: 1.65; color: #AFC4E0; max-width: 860px; }
@media (max-width: 1000px) { .page-flow { grid-template-columns: repeat(2, 1fr); } .page-flow li:nth-child(2)::after { display: none; } }
@media (max-width: 560px) { .page-flow { grid-template-columns: 1fr; } .page-flow li::after { display: none; } .page-hero { padding: 20px; } }

.page-guide { margin-bottom: 22px; }
.page-guide[hidden], .page-hero[hidden], .page-guide-bar[hidden] { display: none; }
.page-hero { margin-bottom: 0; }
.page-hero-hide { position: absolute; top: 14px; right: 16px; background: transparent; border: 1px solid #2B5F96; color: #9CC4EE; font-size: 10px; font-weight: 800; letter-spacing: 1px; padding: 5px 10px; border-radius: 6px; cursor: pointer; }
.page-hero-hide:hover { background: rgba(76,155,240,.15); }
.page-guide-bar { width: 100%; display: flex; gap: 14px; align-items: center; justify-content: flex-start; text-align: left; background: rgba(76,155,240,.08); border: 1px dashed #2B5F96; color: #B8CCE6; border-radius: 10px; padding: 11px 16px; cursor: pointer; font-size: 13px; }
.page-guide-bar span:first-child { font-size: 10px; font-weight: 800; letter-spacing: 1.4px; color: #75C9FF; }
.page-guide-bar:hover { background: rgba(76,155,240,.16); }

/* Prove you own your domains */
.verify-card { border: 1px solid var(--line, #1F4C78); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; background: rgba(10, 40, 70, 0.35); }
.verify-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; }
.verify-state { font-size: 11px; font-weight: 800; letter-spacing: .08em; padding: 4px 9px; border-radius: 6px; }
.verify-state.ok { background: #DDF3E8; color: #0B6B3A; }
.verify-state.todo { background: #FCE4C9; color: #8A4A05; }
.verify-grid { display: grid; gap: 8px; }
.verify-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 10px; align-items: center; }
.verify-label { font-size: 11px; font-weight: 800; letter-spacing: .08em; color: var(--muted, #8FA9C4); }
.verify-row code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; padding: 7px 10px; border-radius: 8px; background: rgba(0, 0, 0, 0.28); overflow-wrap: anywhere; user-select: all; }
@media (max-width: 640px) { .verify-row { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------
   Finding detail: one small, consistent type scale.
   labels 10.5px caps · body 13px · notes 12px · evidence 12px · buttons 11px
   ------------------------------------------------------------------ */
.finding-detail td,
.finding-detail td * { font-family: Inter, "Segoe UI", Arial, sans-serif; }

.finding-detail .detail-plain strong,
.finding-detail .detail-action strong {
  margin-bottom: 6px;
  color: #8FD0FF;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.finding-detail .detail-plain p,
.finding-detail .detail-summary,
.finding-detail .detail-action p,
.finding-detail .detail-action ol,
.finding-detail .detail-action li {
  color: #E3EFFA;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.6;
}

.finding-detail .detail-action ol { margin: 6px 0 8px; padding-left: 18px; }
.finding-detail .detail-action li { margin: 0 0 4px; }

.finding-detail .detail-facts,
.finding-detail .detail-check,
.finding-detail .detail-link {
  margin: 4px 0;
  color: #A9C1DB;
  font-size: 12px;
  line-height: 1.55;
}

.finding-detail .detail-check strong {
  display: inline;
  margin: 0;
  color: #8FD0FF;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.finding-detail .detail-tech summary { color: #8FD0FF; font-size: 12px; font-weight: 600; }

.finding-detail .evidence dt { font-size: 10px; font-weight: 700; letter-spacing: .06em; }
.finding-detail .evidence dd { font-size: 12px; line-height: 1.5; }
.finding-detail .evidence-files li span { font-size: 12px; }

.finding-detail .detail-foot { font-size: 12px; color: #91B4D3; }

.mini-button {
  padding: 7px 11px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}


/* Acceptance and permission tick boxes */
.auth-check, .verify-permit { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: #cfd8ee; margin: 12px 0; cursor: pointer; }
.auth-check input, .verify-permit input { margin-top: 3px; flex: none; width: 16px; height: 16px; }
.auth-check a { color: #8fb4ff; }

/* EDAN early warning */
.edan-scroll { overflow-x: auto; }
.edan-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.edan-table th, .edan-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, #1F4C78); vertical-align: top; word-break: break-word; }
.edan-table th { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.8; white-space: nowrap; }
.edan-test { display: grid; gap: 6px; }
.plan-sub { margin: 0; font-size: 15px; }

.edan-how { border: 1px solid var(--line, #1F4C78); border-radius: 12px; padding: 14px 16px; display: grid; gap: 10px; background: rgba(10, 40, 70, 0.35); }
.edan-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; counter-reset: edan-step; }
.edan-steps li { counter-increment: edan-step; display: grid; grid-template-columns: 32px 1fr; column-gap: 12px; row-gap: 2px; align-items: start; }
.edan-steps li::before { content: counter(edan-step); grid-row: 1 / span 2; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; color: #FFFFFF; background: linear-gradient(105deg,#0B84E8,#00A8E8); }
.edan-steps strong { font-size: 14px; }
.edan-steps span { color: var(--muted, #8FA9C4); font-size: 13px; line-height: 1.5; }
.edan-limits { display: grid; gap: 2px; border-left: 3px solid #28699E; padding: 4px 0 4px 12px; font-size: 13px; }
.edan-suggest { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.edan-suggest .verify-label { margin-right: 4px; }
.edan-suggest .mini-button { width: auto; flex: 0 1 auto; overflow-wrap: anywhere; text-align: left; }
.edan-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.edan-actions .mini-button { width: auto; }
.edan-view-submit, #edan-root form > button[type="submit"] { justify-self: start; min-width: 160px; }

.edan-why { display: grid; gap: 10px; }
.edan-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.edan-perks li { display: grid; gap: 4px; align-content: start; border: 1px solid var(--line, #1F4C78); border-top: 3px solid #159EFF; border-radius: 10px; padding: 12px 14px; background: rgba(10, 40, 70, 0.35); }
.edan-perks strong { font-size: 14px; }
.edan-perks span { color: var(--muted, #8FA9C4); font-size: 13px; line-height: 1.5; }

.edan-history { display: grid; gap: 12px; }
.edan-counters { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; }
.edan-counter { display: grid; gap: 2px; border: 1px solid var(--line, #1F4C78); border-radius: 10px; padding: 10px 12px; background: rgba(0, 0, 0, 0.22); }
.edan-count { font-size: 26px; font-weight: 800; line-height: 1.1; color: #FFFFFF; }
.edan-count-label { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted, #8FA9C4); }
.edan-bars { display: flex; align-items: flex-end; gap: 3px; height: 90px; padding: 6px 2px 0; border-bottom: 1px solid var(--line, #1F4C78); }
.edan-bar-col { flex: 1 1 0; min-width: 3px; height: 100%; display: flex; align-items: flex-end; }
.edan-bar { width: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #00BFFF, #087FE5); }
.edan-bar.none { background: #28699E; opacity: .6; }
