/*
 * ClearPath admin CSS — ported verbatim from legacy/app/templates/base.html's
 * inline <style> block (Jinja2 admin, ENG-527 detail redesign). Kept as a
 * plain public/ stylesheet (not a Vite entry) so the Blade admin has zero
 * build-step dependency, matching the "framework/HTMX, no bundler churn"
 * intent of docs/port/laravel-architecture.md §5.
 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 13px;
  color: #111;
  background: #f5f5f5;
}

/* Nav */
.nav {
  background: #1e293b;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 44px;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand { font-weight: 600; font-size: 14px; color: #fff; text-decoration: none; }
.nav-links { display: flex; gap: 1.25rem; align-items: center; }
.nav-links a { color: #94a3b8; text-decoration: none; font-size: 13px; }
.nav-links a:hover { color: #fff; }
.nav-links form { display: inline; }
.nav-links button.linklike {
  background: none; border: none; color: #94a3b8; font: inherit; font-size: 13px;
  cursor: pointer; padding: 0;
}
.nav-links button.linklike:hover { color: #fff; }

/* Layout */
.page { max-width: 1200px; margin: 0 auto; padding: 1.5rem; }

/* Cards */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.card-header {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  background: #f8fafc;
  border-radius: 6px 6px 0 0;
}
.card-body { padding: 1rem; }

/* Table */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left;
  padding: 0.5rem 0.75rem;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
  background: #f8fafc;
}
td { padding: 0.55rem 0.75rem; border-bottom: 1px solid #f1f5f9; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f8fafc; }

.sortable-table thead th[data-type] { cursor: pointer; user-select: none; white-space: nowrap; }
.sortable-table thead th[data-type]:hover { background: #eef2f7; color: #334155; }
.sortable-table thead th[data-dir] { color: #2563eb; }
.sort-caret { font-size: 10px; color: #2563eb; }
a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Badges */
.badge {
  display: inline-block;
  padding: 0.15em 0.55em;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.badge-low    { background: #dcfce7; color: #166534; }
.badge-medium { background: #fef9c3; color: #854d0e; }
.badge-high   { background: #fee2e2; color: #991b1b; }
.badge-pending { background: #f1f5f9; color: #475569; }

/* Buttons */
.btn {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  line-height: 1.5;
}
.btn-primary   { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background: #1d4ed8; text-decoration: none; }
.btn-secondary { background: #fff; color: #374151; border-color: #d1d5db; }
.btn-secondary:hover { background: #f9fafb; text-decoration: none; }
.btn-danger    { background: #fff; color: #dc2626; border-color: #fca5a5; }
.btn-danger:hover { background: #fef2f2; text-decoration: none; }
button.btn { font-family: inherit; }

/* Forms */
label { display: block; font-size: 12px; font-weight: 500; color: #374151; margin-bottom: 0.25rem; }
input[type=text], input[type=password], input[type=email], select, textarea {
  width: 100%;
  padding: 0.4rem 0.6rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 13px;
  font-family: inherit;
  color: #111;
  background: #fff;
}
input:focus, select:focus, textarea:focus { outline: 2px solid #2563eb; outline-offset: -1px; }

/* Filter bar */
.filter-bar { display: flex; gap: 0.75rem; align-items: flex-end; flex-wrap: wrap; padding: 0.75rem 1rem; border-bottom: 1px solid #e2e8f0; background: #f8fafc; border-radius: 6px 6px 0 0; }
.filter-bar .field { display: flex; flex-direction: column; }
.filter-bar select { width: auto; min-width: 120px; }
.filter-bar .actions { display: flex; gap: 0.5rem; align-items: flex-end; margin-left: auto; }

/* Toggle */
.toggle-wrap { display: flex; align-items: center; gap: 0.4rem; padding-bottom: 1px; }
.toggle-wrap label { margin: 0; }
input[type=checkbox] { width: 14px; height: 14px; cursor: pointer; accent-color: #2563eb; }

/* OFAC banner */
.ofac-banner {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  border-left: 4px solid #dc2626;
  padding: 0.75rem 1rem;
  border-radius: 4px;
  margin-bottom: 1rem;
  font-size: 13px;
}

/* Detail grid */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.4rem 1.5rem; }
.info-item { font-size: 12px; }
.info-item .label { color: #64748b; margin-bottom: 0.1rem; }

/* Risk summary */
.risk-bar { display: flex; gap: 2rem; padding: 0.75rem 1rem; }
.risk-stat .label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 0.2rem; }
.risk-stat .value { font-size: 15px; font-weight: 600; }

/* Check cards grid */
.checks-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.check-card { border: 1px solid #e2e8f0; border-radius: 5px; background: #fff; }
.check-card-header { display: flex; justify-content: space-between; align-items: center; padding: 0.5rem 0.75rem; border-bottom: 1px solid #f1f5f9; background: #f8fafc; border-radius: 5px 5px 0 0; font-weight: 600; font-size: 12px; }
.check-card-body { padding: 0.5rem 0.75rem; }
.status-pass { color: #16a34a; font-size: 12px; }
.status-fail { color: #dc2626; font-size: 12px; }
.status-inc  { color: #d97706; font-size: 12px; }
details summary { cursor: pointer; font-size: 11px; color: #64748b; margin-top: 0.25rem; user-select: none; }
details summary:hover { color: #2563eb; }
pre { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 3px; padding: 0.5rem; font-size: 11px; max-height: 200px; overflow-y: auto; margin-top: 0.25rem; white-space: pre-wrap; word-break: break-all; }

/* Page heading */
.page-header { display: flex; align-items: baseline; gap: 0.75rem; margin-bottom: 1rem; }
.page-header h1 { font-size: 18px; font-weight: 600; }
.page-header .sub { font-size: 12px; color: #64748b; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; font-size: 12px; color: #64748b; border-top: 1px solid #e2e8f0; }

/* Back link */
.back { font-size: 12px; color: #64748b; display: inline-block; margin-bottom: 0.75rem; }
.back:hover { color: #2563eb; text-decoration: none; }

/* Action row */
.action-row { display: flex; gap: 0.5rem; margin-bottom: 1rem; }

/* Status pill */
.status-pill { font-size: 11px; color: #64748b; background: #f1f5f9; padding: 0.15em 0.5em; border-radius: 3px; font-weight: 600; white-space: nowrap; }
.status-pill.st-approved        { background: #dcfce7; color: #166534; }
.status-pill.st-denied          { background: #fee2e2; color: #991b1b; }
.status-pill.st-pending_review  { background: #fef9c3; color: #854d0e; }
.status-pill.st-processing      { background: #dbeafe; color: #1e40af; }
.status-pill.st-pending         { background: #f1f5f9; color: #475569; }
.status-pill.st-completed       { background: #f0fdfa; color: #115e59; }
.status-pill.st-failed          { background: #fee2e2; color: #991b1b; }

/* AI Research card */
.ai-card { border: 1px solid #c7d2fe; border-left: 4px solid #4f46e5; border-radius: 6px; background: #fff; margin-bottom: 1rem; }
.ai-card .card-header { background: #eef2ff; border-bottom: 1px solid #c7d2fe; color: #3730a3; }
.ai-card .card-body { padding: 1rem; }
.ai-summary { font-size: 13px; line-height: 1.6; color: #1e293b; margin-bottom: 0.75rem; }
.ai-meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 0.75rem; }
.ai-meta-item .label { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; margin-bottom: 0.15rem; }
.ai-meta-item .value { font-size: 13px; font-weight: 600; }

/* Sticky note banner */
.sticky-note { background: #fefce8; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 12px; color: #92400e; margin-bottom: 0.5rem; }

/* Finding rows */
.finding-row { display: flex; gap: 0.5rem; font-size: 12px; padding: 0.25rem 0; border-bottom: 1px solid #f1f5f9; }
.finding-row:last-child { border-bottom: none; }
.finding-row .f-label { color: #64748b; min-width: 120px; flex-shrink: 0; }
.finding-row .f-value { color: #1e293b; word-break: break-word; }

/* Flag lists */
.flag-list { list-style: none; padding: 0; margin: 0.25rem 0; }
.flag-list li { font-size: 12px; padding: 0.2rem 0; padding-left: 1rem; position: relative; }
.flag-list li::before { position: absolute; left: 0; }
.flag-list.red li { color: #dc2626; }
.flag-list.red li::before { content: "✗ "; }
.flag-list.green li { color: #16a34a; }
.flag-list.green li::before { content: "✓ "; }

.source-link { display: block; font-size: 11px; color: #2563eb; margin: 0.15rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 500px; }

.pill { display: inline-block; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 3px; padding: 0.1em 0.45em; margin: 0.1em; font-size: 11px; color: #334155; }

.section-label { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: #475569; margin-bottom: 0.5rem; }

.needs-review-link { margin-left: auto; background: #fef9c3; border: 1px solid #fde68a; color: #854d0e; padding: 0.2rem 0.6rem; border-radius: 4px; font-size: 12px; font-weight: 600; }
.needs-review-link:hover { background: #fef08a; text-decoration: none; }

.review-panel { background: #fffbeb; border: 1px solid #fde68a; border-left: 4px solid #f59e0b; border-radius: 6px; padding: 0.85rem 1rem; margin-bottom: 1rem; }
.review-panel-header { font-weight: 600; font-size: 13px; color: #92400e; margin-bottom: 0.6rem; }
.review-form label { font-size: 11px; color: #64748b; }
.review-form textarea { width: 100%; padding: 0.45rem 0.6rem; border: 1px solid #d1d5db; border-radius: 4px; font-family: inherit; font-size: 13px; resize: vertical; margin: 0.25rem 0 0.6rem; }
.review-form textarea:focus { outline: 2px solid #2563eb; outline-offset: -1px; }
.review-actions { display: flex; gap: 0.5rem; }

.decision-card { border-radius: 6px; padding: 0.75rem 1rem; margin-bottom: 1rem; border: 1px solid; }
.decision-card.decision-approved { background: #f0fdf4; border-color: #bbf7d0; border-left: 4px solid #16a34a; }
.decision-card.decision-denied   { background: #fef2f2; border-color: #fecaca; border-left: 4px solid #dc2626; }
.decision-head { font-weight: 700; font-size: 14px; }
.decision-approved .decision-head { color: #166534; }
.decision-denied .decision-head { color: #991b1b; }
.decision-meta { font-weight: 400; font-size: 12px; color: #64748b; margin-left: 0.5rem; }
.decision-notes { font-size: 12px; color: #334155; margin-top: 0.4rem; white-space: pre-wrap; }
.decision-delivery { font-size: 12px; color: #475569; margin-top: 0.4rem; }

/* Trust2Connect card */
.t2c-card { border: 1px solid #99f6e4; border-left: 4px solid #0d9488; border-radius: 6px; background: #fff; margin-bottom: 1rem; }
.t2c-card .card-header { background: #f0fdfa; border-bottom: 1px solid #99f6e4; color: #115e59; }
.t2c-card .card-body { padding: 1rem; }

/* Trust2Connect candidate picker */
.candidate-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }
.candidate { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; border: 1px solid #e2e8f0; border-radius: 5px; padding: 0.5rem 0.75rem; background: #fff; }
.candidate:hover { border-color: #99f6e4; background: #f0fdfa; }
.candidate-info { min-width: 0; }
.candidate-name { font-weight: 600; font-size: 13px; color: #0f172a; display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }
.candidate-meta { font-size: 11px; color: #64748b; margin-top: 0.1rem; }
.candidate-why { font-size: 11px; color: #0d9488; margin-top: 0.15rem; }

.t2c-section { margin-top: 0.85rem; }
.t2c-section-title { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #115e59; margin-bottom: 0.35rem; }
.owner-list { display: flex; flex-direction: column; gap: 0.4rem; }
.owner { border-bottom: 1px solid #f1f5f9; padding-bottom: 0.35rem; }
.owner:last-child { border-bottom: none; padding-bottom: 0; }
.owner-name { font-size: 12px; font-weight: 600; color: #0f172a; }
.owner-contact { font-size: 11px; color: #64748b; margin-top: 0.15rem; }
.t2c-tree-root { margin-top: 0.4rem; }
.t2c-tree { margin-left: 0.5rem; border-left: 1px solid #e2e8f0; padding-left: 0.6rem; }
.t2c-node { font-size: 11px; padding: 0.08rem 0; }
.t2c-key { color: #64748b; font-weight: 600; margin-right: 0.4rem; }
.t2c-val { color: #1e293b; word-break: break-word; }

.t2c-compare { margin-top: 0.4rem; padding-top: 0.35rem; border-top: 1px dashed #99f6e4; font-size: 11px; }
.t2c-compare-label { color: #0d9488; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; font-size: 10px; }
.t2c-compare .t2c-pair { display: flex; gap: 0.4rem; padding: 0.1rem 0; }
.t2c-compare .t2c-pair .k { color: #64748b; min-width: 90px; flex-shrink: 0; }
.t2c-compare .t2c-pair .v { color: #115e59; word-break: break-word; }

.whois-flags { font-size: 11px; font-weight: 600; color: #92400e; background: #fffbeb; border: 1px solid #fde68a; border-left: 3px solid #f59e0b; border-radius: 4px; padding: 0.3rem 0.5rem; margin-bottom: 0.4rem; }
.whois-ic { display: inline-block; width: 1.1em; font-weight: 700; }
.whois-ic.good { color: #16a34a; }
.whois-ic.caution { color: #d97706; }
.whois-ic.neutral { color: #94a3b8; }
.finding-row.whois-caution .f-value { color: #92400e; font-weight: 500; }
.finding-row.whois-good .f-value { color: #166534; }

/* comparison summary + matrix */
.cmp-good { color: #166534; }
.cmp-caution { color: #92400e; }
.cmp-bad { color: #991b1b; font-weight: 600; }
.cmp-neutral { color: #1e293b; }
.cmp-src { color: #94a3b8; font-size: 10px; }

.summary-card { background: #fff; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 6px; margin-bottom: 1rem; }
.summary-card.summary-danger { border-left-color: #dc2626; }
.summary-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.6rem; }
.summary-risk { display: flex; align-items: center; gap: 0.9rem; }
.summary-score { font-size: 18px; font-weight: 700; color: #0f172a; }
.summary-score small { font-size: 11px; font-weight: 400; color: #94a3b8; }
.summary-ofac { font-size: 12px; color: #475569; }
.summary-id { font-size: 12px; color: #475569; text-align: right; }

.verdict-row { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.6rem; }
.verdict { font-size: 11px; font-weight: 600; padding: 0.2em 0.6em; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; color: #334155; }
.cmp-bg-good { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.cmp-bg-caution { background: #fef9c3; color: #854d0e; border-color: #fde68a; }
.cmp-bg-bad { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }
.cmp-bg-neutral { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }

.flags-box { background: #fffbeb; border: 1px solid #fde68a; border-radius: 5px; padding: 0.5rem 0.7rem; margin-top: 0.4rem; }
.flags-box.ok { background: #f0fdf4; border-color: #bbf7d0; }
.flags-head { font-size: 12px; font-weight: 700; color: #92400e; margin-bottom: 0.3rem; }
.flags-head.ok { color: #166534; margin-bottom: 0; }
.flags-list { list-style: none; margin: 0; padding: 0; }
.flags-list li { font-size: 12px; padding: 0.15rem 0; padding-left: 1.1rem; position: relative; }
.flags-list li::before { content: "•"; position: absolute; left: 0.2rem; color: #94a3b8; }
.req-details { margin-top: 0.6rem; }

.cmp-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cmp-table thead th { position: sticky; top: 0; z-index: 3; background: #f1f5f9; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; color: #475569; text-align: left; padding: 0.5rem 0.7rem; border-bottom: 2px solid #e2e8f0; }
.cmp-table tbody th.cmp-attr, .cmp-table thead th.cmp-attr { width: 150px; }
.cmp-table tbody th.cmp-attr { text-align: left; font-weight: 600; color: #0f172a; background: #f8fafc; padding: 0.55rem 0.7rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
.cmp-table td { padding: 0.5rem 0.7rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; border-left: 1px solid #f1f5f9; }
.cmp-table tbody tr:nth-child(even) td, .cmp-table tbody tr:nth-child(even) th.cmp-attr { background: #fcfcfd; }
.cmp-table tbody tr:hover td, .cmp-table tbody tr:hover th.cmp-attr { background: #f0fdfa; }
.cmp-line { padding: 0.12rem 0; line-height: 1.4; }
.cmp-line + .cmp-line { border-top: 1px dotted #eef2f7; }
.cmp-srctag { display: inline-block; min-width: 78px; margin-right: 0.4rem; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #64748b; vertical-align: 1px; }
.cmp-empty { color: #cbd5e1; }

.detail-grid { columns: 2; column-gap: 0.75rem; }
.detail-grid > * { break-inside: avoid; margin-block-end: 0.75rem; }
@supports (grid-template-rows: masonry) {
  .detail-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: masonry; gap: 0.75rem; columns: unset; }
  .detail-grid > * { margin-block-end: 0; }
}
.src-tag { font-size: 10px; font-weight: 600; color: #0d9488; background: #f0fdfa; border: 1px solid #99f6e4; border-radius: 10px; padding: 0.05em 0.5em; text-transform: none; letter-spacing: 0; margin-left: 0.4rem; }
.link-item { font-size: 11px; padding: 0.3rem 0; border-top: 1px solid #f1f5f9; }
.link-item:first-child { border-top: none; }
.link-meta { color: #94a3b8; margin-top: 0.1rem; }
a.cmp-srctag:hover { color: #2563eb; text-decoration: underline; }
a.verdict { text-decoration: none; }
a.verdict:hover { filter: brightness(0.96); text-decoration: none; }
.section-hint { font-weight: 400; text-transform: none; letter-spacing: 0; color: #94a3b8; font-size: 11px; }

.src-card { scroll-margin-top: 56px; }
.src-card:target { box-shadow: 0 0 0 2px #99f6e4; border-color: #0d9488; }
.src-sub { font-size: 10px; font-weight: 400; color: #94a3b8; text-transform: none; letter-spacing: 0; }
.subcard { border: 1px solid #f1f5f9; border-radius: 5px; padding: 0.5rem 0.6rem; background: #fcfdfd; }
.subcard-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #115e59; margin-bottom: 0.3rem; }
.mini-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.mini-table th { background: transparent; border: none; border-bottom: 1px solid #e2e8f0; padding: 0.2rem 0.4rem; font-size: 10px; color: #64748b; }
.mini-table td { padding: 0.2rem 0.4rem; border-bottom: 1px solid #f5f7fa; }

/* Reviewer notes */
.note-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.note { border: 1px solid #e2e8f0; border-radius: 5px; background: #f8fafc; padding: 0.5rem 0.75rem; margin-bottom: 0.5rem; }
.note-meta { display: flex; align-items: center; gap: 0.5rem; font-size: 11px; color: #64748b; margin-bottom: 0.25rem; }
.note-author { font-weight: 600; color: #475569; }
.note-delete { background: none; border: none; color: #94a3b8; font-size: 16px; line-height: 1; cursor: pointer; padding: 0 0.25rem; }
.note-delete:hover { color: #dc2626; }
.note-body { font-size: 13px; color: #1e293b; white-space: pre-wrap; word-break: break-word; }
.note-form label { margin-bottom: 0.35rem; }
.note-form textarea { width: 100%; padding: 0.45rem 0.6rem; border: 1px solid #d1d5db; border-radius: 4px; font-family: inherit; font-size: 13px; resize: vertical; }
.note-form textarea:focus { outline: 2px solid #2563eb; outline-offset: -1px; }

/* Verification Data (Trust2Connect) redesign */
.vd-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 1rem; overflow: hidden; }
.vd-card-danger { border-color: #fca5a5; }
.vd-top { display: grid; grid-template-columns: 260px 1fr; gap: 0; }
@media (max-width: 760px) { .vd-top { grid-template-columns: 1fr; } }
.vd-score { padding: 1.25rem; display: flex; flex-direction: column; align-items: center; text-align: center; border-right: 1px solid #e2e8f0; background: #fcfdfd; }
@media (max-width: 760px) { .vd-score { border-right: none; border-bottom: 1px solid #e2e8f0; } }
.vd-score-desc { font-size: 11px; line-height: 1.55; color: #64748b; margin-top: 0.9rem; }
.vd-cta { display: block; width: 100%; margin-top: 1rem; padding: 0.7rem 0.9rem; background: #15803d; color: #fff; border: 2px solid #166534; border-radius: 6px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; text-align: center; line-height: 1.35; }
.vd-cta:hover { background: #166534; text-decoration: none; color: #fff; }

.gauge-svg { width: 132px; height: 132px; display: block; }
.gauge-track { fill: none; stroke: #eef2f7; stroke-width: 10; }
.gauge-arc { fill: none; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 0.7s cubic-bezier(0.22, 1, 0.36, 1); }
.gauge-arc-good { stroke: #22c55e; }
.gauge-arc-caution { stroke: #f59e0b; }
.gauge-arc-bad { stroke: #dc2626; }
.gauge-arc-neutral { stroke: #94a3b8; }
.gauge-svg-num { fill: #0f172a; font-size: 32px; font-weight: 800; text-anchor: middle; dominant-baseline: middle; }
.gauge-svg-cap { fill: #94a3b8; font-size: 9px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-anchor: middle; }

.vd-attrs { padding: 0; overflow-x: auto; }
.attr-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.attr-table thead th { background: #eff6ff; color: #1e3a8a; font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em; text-align: left; padding: 0.6rem 0.9rem; border-bottom: 1px solid #dbeafe; }
.attr-table tbody th.attr-name, .attr-table thead th.attr-name { width: 180px; }
.attr-table tbody th.attr-name { text-align: left; vertical-align: top; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; color: #475569; padding: 0.55rem 0.9rem; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.attr-table td { padding: 0.55rem 0.9rem; border-bottom: 1px solid #f1f5f9; vertical-align: top; color: #1e293b; }
.attr-table tbody tr:last-child th, .attr-table tbody tr:last-child td { border-bottom: none; }
.attr-line { padding: 0.1rem 0; line-height: 1.4; }

.t2c-detail-card { border: 1px solid #99f6e4; border-top: 3px solid #0d9488; }
.t2c-detail-card .card-header { background: #f0fdfa; border-bottom: 1px solid #99f6e4; color: #115e59; }

.vd-grid { columns: 2; column-gap: 0.75rem; }
.vd-grid > .subcard { break-inside: avoid; margin-bottom: 0.75rem; display: inline-block; width: 100%; }
@supports (grid-template-rows: masonry) {
  .vd-grid { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: masonry; gap: 0.75rem; columns: unset; }
  .vd-grid > .subcard { margin-bottom: 0; }
}
@media (max-width: 640px) { .vd-grid { columns: 1; } }

.q { display: inline-block; padding: 0.05em 0.45em; border-radius: 3px; font-size: 10px; font-weight: 700; }
.q-high { background: #dcfce7; color: #166534; }
.q-medium { background: #fef9c3; color: #854d0e; }
.q-low { background: #fee2e2; color: #991b1b; }
.q-exact, .q-strong { background: #dcfce7; color: #166534; }

.vd-full { padding: 0 1.25rem 1rem; }
.vd-full > summary { font-size: 11px; }
.vd-fullreport { padding: 0.75rem 1.25rem 1.25rem; border-top: 1px solid #e2e8f0; }
.fullreport-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #115e59; margin: 0.75rem 0 0.8rem; }

.t2c-tabnav { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.t2c-tab { background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 9px; padding: 0.5rem 1.1rem; font-size: 13px; font-weight: 600; color: #475569; font-family: inherit; cursor: pointer; transition: background 0.12s, color 0.12s; }
.t2c-tab:hover { background: #e2e8f0; color: #1e293b; }
.t2c-tab.active { background: #2563eb; border-color: #1e3a8a; color: #fff; box-shadow: 0 0 0 2px #0f172a; }
.t2c-panel { display: none; animation: fadein 0.15s ease; }
.t2c-panel.active { display: block; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

.rn-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 1.25rem; }
.rn-group { margin: 0.6rem 0; padding: 0.65rem 0.8rem; border: 1px solid #e2e8f0; border-left: 3px solid #99f6e4; border-radius: 7px; background: #fafdfc; }
.rn-group .rn-group { background: #fff; border-left-color: #cbd5e1; }
.rn-group .rn-group .rn-group { background: #fafbfc; }
.rn-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #0f172a; margin-bottom: 0.4rem; }
.rn-item { border: 1px solid #e2e8f0; border-radius: 7px; padding: 0.65rem 0.8rem; margin-bottom: 0.5rem; background: #fff; }
.rn-item:last-child { margin-bottom: 0; }
.rn-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.other-checks > summary { padding: 0.7rem 1rem; font-weight: 600; font-size: 12px; color: #475569; list-style: none; }
.other-checks > summary::-webkit-details-marker { display: none; }
.other-checks > summary::before { content: '▸ '; color: #94a3b8; }
.other-checks[open] > summary::before { content: '▾ '; }

.dial-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.6rem; margin-bottom: 0.85rem; }
.dial { border: 1px solid #e2e8f0; border-left-width: 4px; border-radius: 6px; padding: 0.6rem 0.8rem; background: #f8fafc; }
.dial-lbl { font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: #64748b; }
.dial-val { font-size: 16px; font-weight: 700; margin-top: 0.2rem; }
.dial-good { border-left-color: #16a34a; } .dial-good .dial-val { color: #166534; }
.dial-caution { border-left-color: #d97706; } .dial-caution .dial-val { color: #92400e; }
.dial-bad { border-left-color: #dc2626; background: #fef2f2; } .dial-bad .dial-val { color: #991b1b; }
.dial-neutral { border-left-color: #94a3b8; } .dial-neutral .dial-val { color: #475569; }

.ai-block { margin-top: 0.75rem; }
.ai-block-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; color: #3730a3; margin-bottom: 0.3rem; }
.ai-block-b { font-size: 13px; color: #1e293b; line-height: 1.5; }
.ai-block-danger { border: 1px solid #fecaca; background: #fef2f2; border-radius: 6px; padding: 0.6rem 0.8rem; }
.ai-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 0.75rem; }
@media (max-width: 640px) { .ai-cols { grid-template-columns: 1fr; } }

.news-item { display: flex; gap: 0.5rem; padding: 0.4rem 0; border-top: 1px solid #f1f5f9; }
.news-item:first-of-type { border-top: none; }
.news-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; margin-top: 0.35rem; }
.news-good { background: #16a34a; } .news-bad { background: #dc2626; } .news-neutral { background: #94a3b8; }
.news-body { font-size: 12px; min-width: 0; }
.news-title { font-weight: 500; color: #1e293b; }
.news-date { color: #94a3b8; font-size: 11px; margin-left: 0.4rem; }
.news-sum { color: #475569; margin-top: 0.15rem; line-height: 1.45; }

/* Login page (Fortify views reuse this stylesheet) */
.login-wrap { display: flex; align-items: center; justify-content: center; min-height: 100vh; }
.login-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px; padding: 2rem; width: 340px; }
.login-box h1 { font-size: 16px; font-weight: 600; margin-bottom: 0.25rem; }
.login-box .sub { font-size: 12px; color: #64748b; margin-bottom: 1.5rem; }
.login-box .btn { width: 100%; }
.remember { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 1.1rem; }
.remember label { margin: 0; font-size: 13px; font-weight: 400; color: #374151; cursor: pointer; }
.login-links { margin-top: 1rem; text-align: center; font-size: 12px; }
.error { background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b; padding: 0.5rem 0.75rem; border-radius: 4px; font-size: 12px; margin-bottom: 1rem; }
.field { margin-bottom: 1rem; }
