/* Con Ed Brain Portal
   Tokens taken from the live con-ed.co.uk header on 07-08-2026.
   Header (utility bar, banner, navbar) mirrors the public site.
   Everything below the navbar is portal-specific: dense, tool-first. */

:root {
  /* Con Ed identity - do not change without checking the live site */
  --ce-ink:        #1A2A3A;  /* utility bar, headings */
  --ce-teal:       #3B829E;  /* navbar, primary accent */
  --ce-teal-dark:  #2C6680;
  --ce-amber:      #E89A20;  /* CTA */
  --ce-white:      #FFFFFF;

  /* Portal surfaces */
  --surface:       #FFFFFF;
  --surface-alt:   #F4F8FA;
  --border:        #DDE6EB;
  --text:          #1A2A3A;
  --text-muted:    #6B7E8A;
  --success:       #22A06B;
  --success-bg:    #E3F7EF;
  --danger:        #C0392B;
  --danger-bg:     #FBEAE7;
  --warning-text:  #9B6400;  /* darkened amber, for text on --warning-bg (contrast) */
  --warning-bg:    #FEF3DC;

  --font:          Inter, -apple-system, system-ui, sans-serif;
  --font-mono:     "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius:        10px;
  --radius-sm:     8px;
  --shadow-sm:     0 1px 3px rgba(0, 0, 0, .08);
  --shadow-card:   0 1px 4px rgba(0, 0, 0, .07);
  --container:     1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 300;
  color: var(--text);
  background: var(--surface-alt);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ce-teal); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
}

/* ---------------------------------------------------------------
   HEADER - mirrors con-ed.co.uk. Keep in sync with the live site.
   --------------------------------------------------------------- */

.utility-bar {
  background: var(--ce-ink);
  color: rgba(255, 255, 255, .85);
  font-size: 13px;
  font-weight: 300;
  letter-spacing: .52px;
  line-height: 20.8px;
  padding: 10px 0;
  text-align: center;
}

.banner {
  background: var(--ce-white);
}

.banner-image-wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.banner-image-wrap img {
  display: block;
  width: 100%;
  height: auto;
}

.navbar {
  background: var(--ce-teal);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 50;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
}

.nav-tabs {
  display: flex;
  gap: 2px;
}

.nav-tabs a {
  color: var(--ce-white);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: .135px;
  padding: 16px 14px;
  text-decoration: none;
  transition: background .15s;
}

.nav-tabs a:hover,
.nav-tabs a.is-active {
  background: rgba(255, 255, 255, .14);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav-user {
  color: rgba(255, 255, 255, .9);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
}

.nav-signout {
  background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--radius-sm);
  color: var(--ce-white);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  text-decoration: none;
  transition: background .15s;
}

.nav-signout:hover { background: rgba(255, 255, 255, .26); }

.helpdesk-icon-link img {
  display: block;
  height: 34px;
  width: 34px;
}

/* ---------------------------------------------------------------
   LOGIN - public-facing, so no tool menu here on purpose.
   --------------------------------------------------------------- */

.login-strip {
  background: var(--ce-teal);
  box-shadow: var(--shadow-sm);
  height: 6px;
}

.login-wrap {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 64px 24px 80px;
}

.login-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .08);
  max-width: 420px;
  padding: 40px;
  width: 100%;
}

.login-eyebrow {
  color: var(--ce-teal);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  margin-bottom: 10px;
  text-transform: uppercase;
}

.login-card h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 8px;
}

.login-card p.lede {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.55;
  margin: 0 0 28px;
}

.btn-sso {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  display: flex;
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 600;
  gap: 12px;
  justify-content: center;
  margin-bottom: 12px;
  padding: 13px 18px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}

.btn-sso:hover {
  border-color: var(--ce-teal);
  box-shadow: var(--shadow-card);
}

.btn-sso svg { flex-shrink: 0; }

.login-note {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin-top: 24px;
  padding-top: 20px;
}

.flash {
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  line-height: 1.5;
  margin-bottom: 20px;
  padding: 12px 15px;
}

.flash-error   { background: var(--danger-bg);  border: 1px solid var(--danger);  color: var(--danger); }
.flash-success { background: var(--success-bg); border: 1px solid var(--success); color: #0D6E45; }

/* ---------------------------------------------------------------
   PORTAL BODY - tool-first, dense. Deliberately not the marketing
   layout: no hero, no big scroll gaps.
   --------------------------------------------------------------- */

.portal-body {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0 auto;
  max-width: 1280px;
  padding: 28px 24px 56px;
}

.page-head h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -.02em;
  margin: 0 0 6px;
}

.page-head p {
  color: var(--text-muted);
  font-size: 14.5px;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.card-header {
  align-items: center;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 16px 20px 13px;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -.01em;
}

.card-body { padding: 18px 20px; }

.tool-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.tool-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  color: inherit;
  display: block;
  padding: 20px;
  text-decoration: none;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.tool-card:hover {
  border-color: var(--ce-teal);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .1);
  transform: translateY(-1px);
}

.tool-card.is-soon {
  opacity: .62;
  pointer-events: none;
}

.tool-card h3 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 6px;
}

.tool-card p {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.pill {
  border-radius: 99px;
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  margin-bottom: 10px;
  padding: 3px 10px;
  text-transform: uppercase;
}

.pill-live { background: var(--success-bg); color: #0D6E45; }
.pill-soon { background: var(--surface-alt); color: var(--text-muted); border: 1px solid var(--border); }

/* SLA card is a div, not an <a> - it has two independent actions (trust
   link, school dropdown), so it can't be one big clickable link like the
   other cards. Give it the same hover lift by keeping the .tool-card base,
   just add the bits an <a> gets for free (cursor: default) don't apply. */
.tool-card-link {
  color: var(--ce-teal-dark);
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  margin-top: 2px;
  text-decoration: none;
}

.tool-card-link:hover { text-decoration: underline; }

.tool-card-select {
  display: block;
  margin-top: 10px;
  width: 100%;
}

.portal-footer {
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12.5px;
  margin-top: 8px;
  padding: 22px 0 0;
}

@media (max-width: 900px) {
  .tool-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-tabs  { display: none; }
}

@media (max-width: 560px) {
  .tool-grid { grid-template-columns: 1fr; }
  .login-card { padding: 28px 22px; }
}

/* ---------------------------------------------------------------
   ADMIN - access management (E6, 08-08-2026). Dense table, not a
   marketing layout - same spirit as the rest of the portal body.
   --------------------------------------------------------------- */

.admin-table {
  border-collapse: collapse;
  font-size: 13.5px;
  width: 100%;
}

.admin-table th {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 12px 16px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}

.admin-table td {
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr.is-inactive { opacity: .55; }

.form-input,
.form-select {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font);
  font-size: 13.5px;
  padding: 8px 11px;
}

.form-input:focus,
.form-select:focus {
  border-color: var(--ce-teal);
  outline: none;
}

.form-row {
  align-items: flex-end;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.form-field { display: flex; flex-direction: column; gap: 5px; }

.form-field label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.tool-checks {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.tool-checks label {
  align-items: center;
  color: var(--text);
  display: flex;
  font-size: 13px;
  font-weight: 400;
  gap: 6px;
  text-transform: none;
  white-space: nowrap;
}

.btn {
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 9px 16px;
  text-decoration: none;
  transition: opacity .15s;
}

.btn:hover { opacity: .88; }
.btn-primary { background: var(--ce-teal); color: var(--ce-white); }
.btn-sm { font-size: 12px; padding: 6px 12px; }

.badge {
  border-radius: 99px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .05em;
  padding: 3px 10px 3px 8px;
  text-transform: uppercase;
  white-space: nowrap;
}

.badge-active   { background: var(--success-bg); color: #0D6E45; }
.badge-inactive { background: var(--danger-bg);  color: var(--danger); }

.admin-note {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
}

/* ---------------------------------------------------------------
   INVISIBLE TICKETS - E4 display + E5 edit/hide (08-08-2026).
   Five sections ported from it-dashboard/index.php: KPIs, Top Issues,
   Checklist, Volume, Engineer Breakdown, All Tickets. Layout only - data
   always comes from /tickets/api/* (tickets.js), never embedded here.
   --------------------------------------------------------------- */

.tix-two-col {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr 1fr;
}

.tix-card-sub {
  color: var(--text-muted);
  font-size: 12px;
}

/* KPI tiles */
.kpi-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 20px;
}

.kpi-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.kpi-value {
  color: var(--text);
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.15;
  margin-top: 2px;
}

.kpi-sub {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 2px;
}

/* Top Issues */
.issue-list { display: flex; flex-direction: column; gap: 10px; }

.issue-item {
  align-items: flex-start;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  gap: 14px;
  padding: 13px 15px;
}

.issue-rank {
  color: #C8D5DE;
  flex-shrink: 0;
  font-size: 19px;
  font-weight: 800;
  text-align: center;
  width: 24px;
}

.issue-rank.r1 { color: var(--ce-amber); }
.issue-rank.r2 { color: var(--ce-teal); }
.issue-rank.r3 { color: var(--text-muted); }

.issue-info { flex: 1; min-width: 0; }

.issue-name {
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 5px;
}

.bar-bg {
  background: var(--border);
  border-radius: 99px;
  height: 5px;
  overflow: hidden;
}

.bar-fill { background: var(--ce-teal); border-radius: 99px; height: 100%; }
.bar-fill.amber { background: var(--ce-amber); }

.issue-count {
  color: var(--ce-teal);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.issue-examples { display: flex; flex-direction: column; gap: 3px; margin-top: 8px; }

.issue-example {
  color: var(--text-muted);
  font-size: 11.5px;
  font-style: italic;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.issue-example::before { content: '\201C'; }
.issue-example::after  { content: '\201D'; }

/* Proactive checklist */
.checklist { display: flex; flex-direction: column; gap: 10px; }

.check-item {
  background: #EEF6FA;
  border-left: 3px solid var(--ce-teal);
  border-radius: 10px;
  display: flex;
  gap: 10px;
  padding: 12px 14px;
}

.check-item.amber { background: var(--warning-bg); border-color: var(--ce-amber); }

.check-num {
  align-items: center;
  background: var(--ce-teal);
  border-radius: 50%;
  color: var(--ce-white);
  display: flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.check-num.amber { background: var(--ce-amber); }

.check-text strong { display: block; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.check-text span { color: var(--text-muted); font-size: 12px; }

/* Ticket Volume (trend chart) */
.trend-toggle {
  border: 1px solid var(--border);
  border-radius: 8px;
  display: flex;
  flex-shrink: 0;
  overflow: hidden;
}

.trend-btn {
  background: var(--surface);
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
}

.trend-btn:not(:last-child) { border-right: 1px solid var(--border); }
.trend-btn.is-active { background: var(--ce-teal); color: var(--ce-white); }

.bar-chart {
  align-items: flex-end;
  display: flex;
  gap: 10px;
  height: 130px;
  padding: 0 4px;
}

.bar-col {
  align-items: center;
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.bar-col-fill {
  background: var(--ce-teal);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  opacity: .6;
  transition: opacity .15s;
  width: 100%;
}

.bar-col-fill.current, .bar-col-fill:hover { opacity: 1; }
.bar-col-label { color: var(--text-muted); font-size: 10.5px; font-weight: 500; }
.bar-col-val { color: var(--text); font-size: 11px; font-weight: 700; }

/* Engineer breakdown */
.tech-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }

.tech-item {
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  gap: 11px;
  padding: 11px 13px;
}

.tech-avatar {
  align-items: center;
  background: var(--ce-teal);
  border-radius: 50%;
  color: var(--ce-white);
  display: flex;
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.tech-name { font-size: 13px; font-weight: 600; }
.tech-count { color: var(--text-muted); font-size: 12px; }

/* All Tickets: filters, table, pager */
.tix-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 20px 14px;
}

.tix-search { min-width: 220px; }

.tix-filter-label {
  color: var(--text-muted);
  font-size: 12px;
  white-space: nowrap;
}

.tix-hidden-toggle { align-items: center; display: flex; gap: 5px; }

.tix-filter-count {
  color: var(--text-muted);
  font-size: 12px;
  margin-left: auto;
  white-space: nowrap;
}

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

.tix-muted { color: var(--text-muted); font-size: 12px; }
.tix-td-school { color: var(--ce-teal-dark); font-weight: 600; }

.tix-td-long {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tix-row { cursor: pointer; transition: background .1s; }
.tix-row:hover { background: #EEF6FA; }
.tix-row-hidden { opacity: .5; }
.tix-hidden-tag {
  color: var(--danger);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
}

.conf-badge {
  border-radius: 99px;
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
}

.conf-high { background: var(--success-bg); color: #0D6E45; }
.conf-mid  { background: var(--warning-bg); color: var(--warning-text); }
.conf-low  { background: var(--danger-bg);  color: var(--danger); }

.empty-row td {
  color: var(--text-muted);
  font-style: italic;
  padding: 40px;
  text-align: center;
}

.tix-pager {
  align-items: center;
  display: flex;
  gap: 14px;
  justify-content: center;
  padding: 14px 20px 4px;
}

.tix-pager span { color: var(--text-muted); font-size: 12.5px; }

/* Ticket detail / edit modal */
.tmodal-overlay {
  align-items: center;
  background: rgba(0, 0, 0, .45);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 9999;
}

.tmodal-overlay.open { display: flex; }

.tmodal {
  background: var(--surface);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, .18);
  max-height: 90vh;
  max-width: 640px;
  overflow-y: auto;
  width: 100%;
}

.tmodal-header {
  align-items: flex-start;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 14px;
  padding: 20px 24px 16px;
}

.tmodal-meta { flex: 1; }
.tmodal-school { color: var(--text); font-size: 16px; font-weight: 700; margin-bottom: 3px; }
.tmodal-sub { color: var(--text-muted); font-size: 12px; }

.tmodal-close {
  align-items: center;
  background: var(--border);
  border: none;
  border-radius: 50%;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  font-size: 16px;
  height: 30px;
  justify-content: center;
  transition: background .15s;
  width: 30px;
}

.tmodal-close:hover { background: #C8D5DE; }

.tmodal-body { display: flex; flex-direction: column; gap: 16px; padding: 20px 24px 24px; }

.tmodal-label {
  color: var(--text-muted);
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .07em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.tmodal-text {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.55;
  padding: 11px 14px;
  white-space: pre-wrap;
}

.tmodal-footer-row {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.tmodal-footer-row span { color: var(--text-muted); font-size: 12px; }

.tmodal-actions { display: flex; gap: 10px; }

.tix-textarea { resize: vertical; width: 100%; }

@media (max-width: 900px) {
  .tix-two-col, .kpi-grid, .tech-grid { grid-template-columns: 1fr; }
}

/* ---------------------------------------------------------------
   Eddie - knowledge base tab (D-018, 22-08-2026)
   --------------------------------------------------------------- */

.eddie-corpus { color: var(--text-muted); }
.eddie-corpus-down { color: var(--danger); font-weight: 600; }

.eddie-mode-card { margin-bottom: 14px; }
.eddie-mode-body { padding-bottom: 14px; }

.eddie-mode-toggle {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  gap: 9px;
  font-size: 14px;
}

.eddie-mode-note {
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.5;
  margin: 8px 0 0;
}

/* The switch changes what gets written to the database, so it needs to be
   obvious at a glance that it is on - a ticked box alone is too quiet. */
.eddie-mode-note.eddie-mode-on {
  background: var(--warning-bg);
  border-radius: var(--radius-sm);
  color: var(--warning-text);
  padding: 8px 10px;
}

.eddie-ask { display: flex; gap: 10px; align-items: flex-start; }
.eddie-input { flex: 1; resize: vertical; font-family: var(--font); }
.eddie-hint { margin: 10px 0 0; }

.eddie-thread { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.eddie-card { padding: 18px 20px; }

.eddie-q {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 10px;
}

.eddie-a { color: var(--text); font-size: 14px; line-height: 1.65; }
.eddie-waiting { color: var(--text-muted); font-style: italic; }
.eddie-error { color: var(--danger); }

.eddie-sources {
  border-top: 1px solid var(--border);
  margin-top: 14px;
  padding-top: 12px;
}

.eddie-sources-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.eddie-source-list { display: flex; flex-wrap: wrap; gap: 8px; }

.eddie-source {
  align-items: center;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: inline-flex;
  gap: 7px;
  font-size: 12.5px;
  padding: 5px 10px;
}

.eddie-source-name { font-weight: 600; }
.eddie-source-pages { color: var(--text-muted); font-family: var(--font-mono); font-size: 11px; }

.eddie-flag {
  background: var(--warning-bg);
  color: var(--warning-text);
  margin-bottom: 0;
  padding: 2px 7px;
}

.eddie-foot {
  align-items: center;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 12px;
}

.eddie-verdict { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; }

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

.eddie-verdict-done { color: var(--success); font-size: 12.5px; font-weight: 600; }
.eddie-verdict-error { color: var(--danger); font-size: 12.5px; font-weight: 600; }
.eddie-meta { color: var(--text-muted); font-size: 11.5px; }

.eddie-good, .eddie-bad, .eddie-cat-btn, .eddie-cancel {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
}

.eddie-good:hover { background: var(--success-bg); border-color: var(--success); color: #0D6E45; }
.eddie-bad:hover  { background: var(--danger-bg);  border-color: var(--danger);  color: var(--danger); }
.eddie-cat-btn:hover { background: var(--surface-alt); border-color: var(--ce-teal); }
.eddie-cancel { color: var(--text-muted); }

@media (max-width: 700px) {
  .eddie-ask { flex-direction: column; }
  .eddie-ask .btn { width: 100%; }
}

/* --- Eddie: question target and coverage view (D-024, D-036) ----------- */

.eddie-coverage-link {
  color: var(--ce-teal-dark);
  font-size: 12.5px;
  font-weight: 600;
  margin-left: auto;
  text-decoration: none;
}
.eddie-coverage-link:hover { text-decoration: underline; }

.eddie-mode-body { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.eddie-mode-body .eddie-mode-note { flex-basis: 100%; }

.eddie-target-card { border-left: 3px solid var(--ce-teal); margin-bottom: 14px; }
.eddie-target-body { align-items: center; display: flex; flex-wrap: wrap; gap: 10px; }
.eddie-target-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.eddie-target-name {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  font-weight: 600;
}
.eddie-target-note { flex-basis: 100%; margin: 0; }

.eddie-q-target {
  color: var(--ce-teal-dark);
  font-size: 12px;
  font-weight: 600;
  margin: -6px 0 10px;
}
.eddie-target-hit  { color: var(--success); font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.eddie-target-miss { color: var(--warning-text); font-size: 12.5px; font-weight: 600; margin-top: 10px; }
.eddie-target-note-inline { color: var(--text-muted); font-size: 12px; margin-top: 8px; }

.cov-back { color: var(--ce-teal-dark); font-weight: 600; margin-left: 8px; }

.cov-filters { display: flex; flex-wrap: wrap; gap: 6px; }
.cov-search { margin-bottom: 12px; max-width: 340px; }

.cov-table-wrap { overflow-x: auto; }
.cov-table { border-collapse: collapse; font-size: 13px; width: 100%; }
.cov-table th {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 8px 10px;
  text-align: left;
  text-transform: uppercase;
  white-space: nowrap;
}
.cov-table td { border-bottom: 1px solid var(--border); padding: 9px 10px; vertical-align: middle; }
.cov-row:hover { background: var(--surface-alt); }
/* A section nobody has asked about is the reason this page exists, so it is
   the one row that carries a marker. */
.cov-row-todo td:first-child { box-shadow: inset 3px 0 0 var(--ce-amber); }

.cov-title { min-width: 260px; }
.cov-title-text { font-weight: 600; margin-right: 6px; }
.cov-pages { color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; }
.cov-num { font-family: var(--font-mono); text-align: right; white-space: nowrap; }
.cov-when { color: var(--text-muted); font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; }
.cov-action { text-align: right; white-space: nowrap; }
.cov-empty { color: var(--text-muted); padding: 18px 10px; text-align: center; }
.cov-err-mark { color: var(--warning-text); font-weight: 700; margin-left: 4px; }

.cov-state { font-weight: 600; white-space: nowrap; }
.cov-state-untouched { background: var(--warning-bg); color: var(--warning-text); }
.cov-state-returned  { background: var(--surface-alt); color: var(--text-muted); }
.cov-state-confirmed { background: var(--success-bg); color: #0D6E45; }
.cov-state-missed    { background: var(--danger-bg); color: var(--danger); }
.cov-state-reported  { background: var(--danger-bg); color: var(--danger); }

.cov-recheck-badge { color: var(--text-muted); font-size: 12px; font-weight: 600; }
.cov-recheck-badge.cov-recheck-due { color: var(--warning-text); }

.cov-control-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  padding: 12px 14px;
}
.cov-control-due { border-color: var(--ce-amber); }
.cov-control-head { align-items: center; display: flex; gap: 12px; justify-content: space-between; }
.cov-control-q { font-weight: 600; }
.cov-control-meta { color: var(--text-muted); font-size: 11.5px; margin-top: 4px; }
.cov-control-sections { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cov-sec {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11.5px;
}
.cov-sec-changed { background: var(--warning-bg); border-color: var(--ce-amber); color: var(--warning-text); }
.cov-sec-gone { background: var(--danger-bg); border-color: var(--danger); color: var(--danger); }

@media (max-width: 700px) {
  .cov-search { max-width: none; }
  .cov-control-head { align-items: flex-start; flex-direction: column; gap: 8px; }
}

/* ---------------------------------------------------------------
   Eddie fix list (D-020)
   Reuses the coverage table and pills deliberately: the two pages are the
   same kind of list and a second visual language for them would only make
   the pair harder to read.
   --------------------------------------------------------------- */
.fix-state-to_fix          { background: var(--warning-bg); color: var(--warning-text); }
.fix-state-awaiting_upload { background: var(--surface-alt); color: var(--text-muted); }
.fix-state-closed          { background: var(--success-bg); color: #0D6E45; }
/* The one state that looks finished and is not, so it reads as a problem. */
.fix-state-ineffective     { background: var(--danger-bg); color: var(--danger); }

.fix-anomaly-card { border-left: 3px solid var(--danger); }

/* A section title offered as a choice. A button, not a label: it commits the
   report to one section, so it has to look pressable. */
.fix-pick {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  cursor: pointer;
  font-family: inherit;
  font-size: 11.5px;
}
.fix-pick:hover:enabled { border-color: var(--ce-teal); color: var(--ce-teal); }
.fix-pick:disabled { color: var(--text-muted); cursor: default; opacity: .6; }

/* Section choice inside a verdict on the Eddie tab (D-038). */
.eddie-section-pick { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }

/* ---------------------------------------------------------------
   NO ACCESS PAGE (23-09-2026) - every tab and card is visible to
   everyone signed in; opening one without the grant lands here.
   --------------------------------------------------------------- */
.no-access { max-width: 640px; margin: 24px auto 0; }
.no-access h1 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.no-access p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.no-access .no-access-hint { color: var(--text-muted); margin-bottom: 18px; }
.no-access .btn { display: inline-block; text-decoration: none; }
