:root {
  --ink: #14231f;
  --muted: #697772;
  --line: #dce5e1;
  --paper: #f5f7f5;
  --white: #fff;
  --forest: #123b31;
  --forest-2: #1d5144;
  --lime: #b9e453;
  --lime-dark: #73952b;
  --amber: #edae49;
  --red: #d96555;
  --blue: #4f8ca6;
  --shadow: 0 16px 45px rgba(22, 50, 42, .08);
}

* { box-sizing: border-box; }
body { margin: 0; font-family: "DM Sans", sans-serif; color: var(--ink); background: var(--paper); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.eyebrow { margin: 0 0 14px; letter-spacing: .16em; font-size: 11px; font-weight: 800; color: var(--lime-dark); }

.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.1fr .9fr; }
.login-brand { padding: 7vw; color: white; background: linear-gradient(135deg, rgba(10, 43, 34, .96), rgba(18, 67, 53, .94)), radial-gradient(circle at 30% 30%, #2d7560, #0b2a22); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.login-brand::after { content: ""; width: 520px; height: 520px; border: 1px solid rgba(185, 228, 83, .16); border-radius: 50%; position: absolute; right: -180px; bottom: -180px; box-shadow: 0 0 0 70px rgba(185, 228, 83, .03), 0 0 0 140px rgba(185, 228, 83, .025); }
.brand-mark { width: 62px; height: 62px; border: 1px solid rgba(255,255,255,.5); display: grid; place-items: center; font-family: Manrope; font-weight: 800; margin-bottom: 70px; color: var(--lime); }
.login-brand .eyebrow { color: var(--lime); }
.login-brand h1 { font: 800 clamp(42px, 5vw, 78px)/1.04 Manrope; letter-spacing: -.055em; margin: 0 0 28px; max-width: 750px; }
.login-brand h1 span { color: var(--lime); }
.login-copy { max-width: 570px; color: #c9d7d2; font-size: 18px; line-height: 1.7; }
.trust-row { display: flex; gap: 14px; align-items: center; margin-top: 65px; color: #e9f3ef; font-weight: 700; }
.trust-row i { width: 40px; height: 1px; background: rgba(255,255,255,.24); }
.login-panel { display: grid; place-items: center; padding: 40px; background: white; }
.login-card { width: min(410px, 100%); }
.login-card h2 { font: 800 34px/1.2 Manrope; letter-spacing: -.035em; margin: 0 0 10px; }
.login-card > p:not(.eyebrow) { color: var(--muted); margin: 0 0 36px; }
label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; margin-bottom: 18px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; color: var(--ink); background: white; outline: none; transition: .2s; }
input:focus, select:focus, textarea:focus { border-color: var(--forest-2); box-shadow: 0 0 0 3px rgba(29,81,68,.08); }
textarea { min-height: 90px; resize: vertical; }
.login-card input { padding: 15px 16px; }
.login-card small { display: block; margin-top: 24px; color: var(--muted); text-align: center; }
.mobile-logo { display: none; }
.mfa-shell { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(135deg, #0b2a22, #17483b); }
.mfa-card { width: min(560px, 100%); padding: 34px; border-radius: 14px; background: white; box-shadow: 0 30px 90px rgba(0,0,0,.24); }
.mfa-card h2 { margin: 0 0 8px; font: 800 28px Manrope; }
.mfa-card > div > p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.mfa-setup-grid { display: grid; grid-template-columns: 190px 1fr; gap: 20px; align-items: center; margin: 24px 0; }
.mfa-setup-grid img { width: 190px; height: 190px; border: 1px solid var(--line); border-radius: 8px; padding: 7px; background: white; }
.mfa-setup-grid > div { display: grid; gap: 10px; }
.mfa-setup-grid span { color: var(--muted); font-size: 11px; }
.mfa-setup-grid code { overflow-wrap: anywhere; padding: 12px; border-radius: 7px; color: var(--forest); background: #eef4f1; font-weight: 800; letter-spacing: .08em; }
.mfa-recovery-codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 22px 0; }
.mfa-recovery-codes code { padding: 10px; border: 1px solid var(--line); border-radius: 6px; text-align: center; background: #f8faf9; font-weight: 800; }
.mfa-back { display: block; margin: 22px auto 0; }
.user-admin-row > div:first-child { flex: 1; }
.user-admin-identity { min-width: 0; }
.user-admin-identity .table-sub { overflow-wrap: anywhere; }
.user-admin-status { display: flex; gap: 7px; align-items: center; }
.user-actions { position: relative; }
.user-actions summary {
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 12px;
  color: var(--forest);
  font-weight: 800;
}
.user-actions summary::-webkit-details-marker { display: none; }
.user-actions-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: 210px;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  box-shadow: 0 16px 40px rgba(7,35,27,.18);
}
.user-actions-menu button {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 6px;
  padding: 9px 10px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font-weight: 700;
}
.user-actions-menu button:hover { background: #eef4f1; }
.user-actions-menu .danger-text { color: #d6655a; }

@media (max-width: 720px) {
  .user-admin-row { align-items: flex-start; flex-wrap: wrap; }
  .user-admin-status { width: 100%; flex-wrap: wrap; }
  .user-actions { margin-left: auto; }
}

.primary, .secondary, .danger, .ghost { border: 0; border-radius: 7px; padding: 11px 16px; font-weight: 700; }
.primary { background: var(--forest); color: white; }
.primary:hover { background: var(--forest-2); }
.primary span { color: var(--lime); }
.secondary { background: #e7efeb; color: var(--forest); }
.danger { background: #fff0ee; color: #a43c31; }
.ghost { background: transparent; color: var(--forest); border: 1px solid var(--line); }
.wide { width: 100%; padding: 15px; display: flex; justify-content: space-between; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 252px 1fr; }
.sidebar { position: fixed; z-index: 10; inset: 0 auto 0 0; width: 252px; background: var(--forest); color: white; padding: 28px 18px 20px; display: flex; flex-direction: column; }
.logo { display: flex; gap: 12px; align-items: center; padding: 0 10px 32px; font: 700 16px Manrope; }
.logo > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid #87a69d; color: var(--lime); font-size: 13px; }
.logo small { display: block; color: #8da59e; font: 500 9px DM Sans; letter-spacing: .11em; margin-top: 3px; text-transform: uppercase; }
nav { display: grid; gap: 5px; }
nav button { border: 0; text-align: left; padding: 12px; border-radius: 7px; background: transparent; color: #b9cbc5; font-weight: 600; }
nav button span { display: inline-block; width: 26px; color: #8ea79f; }
nav button:hover, nav button.active { color: white; background: rgba(255,255,255,.09); }
nav button.active span { color: var(--lime); }
.nav-count { float: right; min-width: 22px; padding: 2px 6px; border-radius: 10px; color: var(--forest); background: var(--lime); font-size: 9px; text-align: center; }
.sidebar-foot { margin-top: auto; }
.security-note { border: 1px solid rgba(255,255,255,.1); background: rgba(0,0,0,.08); padding: 14px; border-radius: 7px; display: grid; gap: 5px; margin-bottom: 15px; }
.security-note b { font-size: 11px; color: var(--lime); text-transform: uppercase; letter-spacing: .08em; }
.security-note span { color: #9eb2ac; font-size: 11px; line-height: 1.4; }
.user-chip { width: 100%; padding: 12px 7px; display: flex; gap: 10px; align-items: center; color: white; background: transparent; border: 0; border-top: 1px solid rgba(255,255,255,.1); text-align: left; }
.user-chip > span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--lime); color: var(--forest); font-size: 11px; font-weight: 800; }
.user-chip div { display: grid; font-size: 12px; }
.user-chip small { color: #90a8a1; text-transform: capitalize; }
.user-chip i { margin-left: auto; color: #819a93; }

.content-shell { grid-column: 2; min-width: 0; }
.topbar { height: 94px; background: white; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 3.2vw; position: sticky; top: 0; z-index: 5; }
.topbar h2 { margin: 4px 0 0; font: 800 22px Manrope; letter-spacing: -.025em; }
.breadcrumb { margin: 0; font-size: 9px; letter-spacing: .12em; font-weight: 800; color: #98a49f; }
.breadcrumb span { color: var(--forest-2); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.date-chip { font-size: 12px; color: var(--muted); margin-right: 8px; }
.icon-btn { border: 0; background: transparent; }
.menu-btn { display: none; margin-right: 12px; font-size: 20px; }
.content { padding: 30px 3.2vw 60px; }

.hero-row { display: flex; justify-content: space-between; align-items: end; margin-bottom: 22px; }
.hero-row h3 { font: 800 28px Manrope; letter-spacing: -.035em; margin: 0 0 5px; }
.hero-row p { margin: 0; color: var(--muted); }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.metric { background: white; border: 1px solid var(--line); border-radius: 10px; padding: 20px; min-height: 145px; box-shadow: 0 4px 18px rgba(26,48,41,.025); }
.metric .metric-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric strong { display: block; font: 800 34px Manrope; letter-spacing: -.04em; margin: 22px 0 10px; }
.metric small { color: var(--muted); }
.metric .progress { margin-top: 12px; }
.portfolio-hero { align-items: center; }
.portfolio-client-filter { min-width: 280px; margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.portfolio-client-filter select { min-width: 280px; margin-top: 6px; color: var(--ink); text-transform: none; letter-spacing: 0; }
.methodology-note { margin: -8px 0 18px; padding: 10px 13px; border-left: 3px solid var(--lime-dark); color: var(--muted); background: #f4f8f5; font-size: 11px; }
.portfolio-clients { margin-top: 18px; }
.portfolio-clients .card-head small { display: block; margin-top: 4px; color: var(--muted); font-size: 10px; }
.mini-progress { width: 90px; height: 4px; margin-top: 7px; overflow: hidden; border-radius: 5px; background: #e8eeeb; }
.mini-progress i { display: block; height: 100%; border-radius: inherit; background: var(--lime-dark); }
.portfolio-blocker { min-width: 28px; padding: 5px 8px; display: inline-flex; justify-content: center; border-radius: 16px; color: #397546; background: #e9f5e9; font-size: 10px; font-weight: 800; }
.portfolio-blocker.has-blockers { color: #a8473d; background: #fff0ed; }
.progress { height: 6px; background: #e8eeeb; border-radius: 9px; overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--lime-dark); border-radius: inherit; }
.grid-2 { display: grid; grid-template-columns: 1.25fr .75fr; gap: 18px; margin-top: 18px; }
.card { background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 4px 18px rgba(26,48,41,.025); }
.card-head { padding: 20px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.card-head h3 { font: 700 16px Manrope; margin: 0; }
.card-body { padding: 20px 22px; }
.empty { color: var(--muted); padding: 34px; text-align: center; }
.ig-row { display: grid; grid-template-columns: 44px 1fr 56px; gap: 12px; align-items: center; margin-bottom: 20px; }
.ig-row b { font-size: 13px; }
.ig-row strong { text-align: right; font-size: 13px; }
.status-list { display: grid; gap: 12px; }
.status-line { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.status-line i { width: 9px; height: 9px; border-radius: 50%; }
.status-line b { margin-left: auto; }

.toolbar { display: flex; gap: 10px; align-items: center; margin: 20px 0; flex-wrap: wrap; }
.toolbar input { max-width: 300px; }
.toolbar select { width: auto; min-width: 150px; }
.toolbar .push { margin-left: auto; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; color: #7a8883; background: #f8faf9; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; padding: 12px 15px; border-bottom: 1px solid var(--line); }
td { padding: 15px; border-bottom: 1px solid #e8eeeb; font-size: 13px; vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fbfcfb; }
.table-title { font-weight: 700; color: var(--ink); }
.table-sub { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.implemented, .approved { color: #397546; background: #e9f5e9; }
.completed { color: #397546; background: #e9f5e9; }
.in_progress, .under_review, .draft { color: #356d83; background: #e8f3f7; }
.pending { color: #9a6a1e; background: #fff5dc; }
.not_implemented, .rejected { color: #a8473d; background: #fff0ed; }
.unanswered { color: #71827c; background: #f0f3f2; }
.scope-tag { border: 1px solid var(--line); padding: 4px 7px; border-radius: 4px; font-size: 10px; font-weight: 800; color: var(--forest); margin-right: 3px; }
.action-link { color: var(--forest-2); border: 0; background: none; font-weight: 800; font-size: 12px; }
.table-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; white-space: nowrap; }
.destructive-action { color: #a8473d; border: 0; background: none; font-weight: 800; font-size: 12px; }
.destructive-action:hover { text-decoration: underline; }
.evidence-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.compact-metric { min-height: 92px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 9px; display: flex; justify-content: space-between; align-items: end; background: white; }
.compact-metric span { max-width: 130px; color: var(--muted); font-size: 11px; font-weight: 700; }
.compact-metric strong { font: 800 27px Manrope; }
.compact-metric.pending { border-top: 3px solid #d3a13a; }
.compact-metric.approved { border-top: 3px solid #5d9b62; }
.compact-metric.rejected { border-top: 3px solid #c85b4d; }
.compact-metric.total { border-top: 3px solid var(--forest-2); }
.evidence-toolbar input { max-width: 380px; }
.evidence-center-list { overflow: hidden; }
.evidence-center-row { display: grid; grid-template-columns: 48px 1fr auto; gap: 15px; align-items: center; padding: 17px 19px; border-bottom: 1px solid var(--line); }
.evidence-center-row:last-child { border-bottom: 0; }
.evidence-file-icon { width: 45px; height: 45px; display: grid; place-items: center; border-radius: 8px; color: var(--forest); background: #edf3f0; font-size: 9px; font-weight: 800; }
.evidence-center-main { min-width: 0; }
.evidence-center-title { display: flex; align-items: center; gap: 10px; }
.evidence-center-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.evidence-center-main p { margin: 5px 0; color: var(--ink); font-size: 12px; }
.evidence-center-main small { display: block; color: var(--muted); font-size: 10px; }
.review-note { display: block; margin-top: 7px; padding: 7px 9px; border-left: 2px solid var(--forest-2); color: var(--muted); background: #f5f8f6; font-size: 10px; }
.evidence-center-actions { display: flex; align-items: center; gap: 10px; }
.review-assessment-list { display: grid; gap: 16px; }
.review-assessment-card { overflow: hidden; }
.review-assessment-card > header { padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; color: white; background: linear-gradient(110deg, var(--forest), var(--forest-2)); }
.review-assessment-card header span { color: var(--lime); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.review-assessment-card header h3 { margin: 5px 0; font: 800 19px Manrope; }
.review-assessment-card header p { margin: 0; color: #b9cbc5; font-size: 11px; }
.review-score { min-width: 85px; text-align: right; }
.review-score strong { display: block; font: 800 24px Manrope; }
.review-score small { color: #b9cbc5; }
.review-status-strip { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: #f8faf9; }
.review-status-strip span { padding: 12px 16px; border-right: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.review-status-strip span:last-child { border-right: 0; }
.review-status-strip b { color: var(--ink); font-size: 13px; }
.review-card-body { padding: 18px 22px; }
.review-blockers { display: grid; gap: 7px; }
.review-blockers > b { margin-bottom: 3px; font-size: 12px; }
.review-blockers button { padding: 10px 12px; display: grid; gap: 3px; border: 1px solid #f0d4cf; border-radius: 6px; text-align: left; color: var(--ink); background: #fff9f8; }
.review-blockers button span { color: #a8473d; font-size: 10px; font-weight: 800; }
.review-blockers button small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.review-ready { padding: 15px; display: grid; gap: 4px; border: 1px solid #cfe5d0; border-radius: 7px; color: #397546; background: #f1f8f1; }
.review-ready span { font-size: 11px; }
.review-card-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 17px; }
.review-card-actions button:disabled { cursor: not-allowed; opacity: .45; }

.assessment-head { background: var(--forest); color: white; border-radius: 10px; padding: 26px; display: flex; align-items: center; gap: 24px; }
.assessment-head h3 { margin: 0 0 7px; font: 800 25px Manrope; }
.assessment-head p { margin: 0; color: #abc0ba; }
.score-ring { margin-left: auto; width: 94px; height: 94px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--lime) var(--score), rgba(255,255,255,.12) 0); position: relative; }
.score-ring::before { content: ""; position: absolute; inset: 8px; background: var(--forest); border-radius: 50%; }
.score-ring strong { position: relative; font: 800 20px Manrope; }
.control-scores { margin-top: 18px; }
.score-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(95px, 1fr)); gap: 1px; background: var(--line); }
.score-strip > div { padding: 14px; background: white; }
.score-strip b { font-size: 11px; color: var(--forest-2); }
.score-strip span { float: right; font-size: 11px; font-weight: 800; }
.score-strip .progress { clear: both; margin-top: 11px; height: 4px; }
.controls-list { display: grid; gap: 12px; }
.ig-section { display: grid; gap: 12px; margin-bottom: 24px; }
.ig-section-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-radius: 9px; color: white; background: linear-gradient(110deg, var(--forest), var(--forest-2)); }
.ig-section-head > div { display: flex; align-items: center; gap: 12px; }
.ig-section-head span { display: grid; place-items: center; width: 44px; height: 34px; border-radius: 5px; background: var(--lime); color: var(--forest); font-weight: 800; }
.ig-section-head h3 { margin: 0; font: 700 15px Manrope; }
.ig-section-head > b { font-size: 11px; color: #c5d7d1; }
.control-group { background: white; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.control-title { padding: 16px 18px; display: flex; gap: 12px; align-items: center; background: #f9fbfa; border-bottom: 1px solid var(--line); }
.control-title b:first-child { color: var(--forest-2); min-width: 30px; }
.control-title > div { display: grid; gap: 4px; min-width: 0; }
.control-title > div small { color: var(--muted); font-size: 11px; font-weight: 400; line-height: 1.45; }
.control-title > span { margin-left: auto; color: var(--muted); font-size: 10px; font-weight: 800; white-space: nowrap; }
.safeguard-row { display: grid; grid-template-columns: 70px 1fr 120px 165px 90px; gap: 12px; align-items: center; padding: 15px 18px; border-bottom: 1px solid #e9eeec; }
.safeguard-row:last-child { border-bottom: 0; }
.safeguard-row .code { font-weight: 800; color: var(--forest-2); }
.safeguard-row .sg-title { font-weight: 600; }
.safeguard-row .sg-title small { display: block; font-weight: 400; color: var(--muted); margin-top: 4px; }

.modal { width: min(720px, calc(100% - 28px)); max-height: 90vh; border: 0; border-radius: 12px; padding: 0; box-shadow: 0 30px 100px rgba(7,35,27,.28); }
.modal::backdrop { background: rgba(8,31,25,.58); backdrop-filter: blur(3px); }
.modal-close { position: absolute; right: 16px; top: 14px; border: 0; background: #eef2f0; width: 31px; height: 31px; border-radius: 50%; font-size: 18px; z-index: 2; }
.modal-inner { padding: 28px; }
.modal-inner h2 { font: 800 23px Manrope; letter-spacing: -.03em; margin: 0 40px 8px 0; }
.modal-inner > p { color: var(--muted); margin: 0 0 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.form-grid .full { grid-column: 1 / -1; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; padding-top: 12px; }
.evidence-box { border: 1px dashed #b9c8c2; border-radius: 8px; padding: 15px; margin-bottom: 18px; background: #fafcfb; }
.evidence-item { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.evidence-item:last-child { border: 0; }
.history-item { display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 11px; }
.history-item:last-child { border: 0; }
.history-item span { color: var(--muted); }
.evidence-item .badge { margin-left: auto; }
.section-label { font-size: 10px; font-weight: 800; letter-spacing: .1em; color: var(--muted); margin: 22px 0 12px; text-transform: uppercase; }
.official-reference { border-left: 3px solid var(--lime-dark); padding: 12px 14px; margin: 18px 0; background: #f6f9f7; color: var(--muted); font-size: 12px; }
.official-reference > b { color: var(--ink); }
.official-reference summary { cursor: pointer; color: var(--forest-2); font-weight: 800; margin-top: 9px; }
.official-reference p { line-height: 1.6; margin-bottom: 0; }
.simple-evidence-form { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: end; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.simple-evidence-form input { min-width: 0; }
.attached-evidence-list { margin-top: 14px; display: grid; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.attached-evidence-list > .table-sub { padding: 14px; }
.attached-evidence-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafcfb; }
.attached-evidence-item:last-child { border-bottom: 0; }
.attached-evidence-item > div:first-child { min-width: 0; display: grid; gap: 3px; }
.attached-evidence-item b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.attached-evidence-item small { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.attached-evidence-item > div:last-child { display: flex; align-items: center; gap: 8px; }
.delete-evidence { border: 0; background: transparent; color: #a8473d; font-weight: 800; font-size: 12px; }
.alert { padding: 12px 14px; border-radius: 7px; font-size: 12px; margin-bottom: 16px; background: #fff6df; color: #7b581c; border: 1px solid #f3dda7; }
.toast { position: fixed; inset: 20px 20px auto auto; z-index: 100; margin: 0; border: 0; background: var(--forest); color: white; padding: 13px 18px; border-radius: 8px; box-shadow: 0 18px 48px rgba(8,31,25,.3); transform: translateY(-80px); opacity: 0; transition: transform .25s, opacity .25s; max-width: min(420px, calc(100vw - 40px)); font-size: 13px; line-height: 1.45; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { background: #8f3d35; }
.loading-state { min-height: 260px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; color: var(--muted); text-align: center; }
.loading-state span { width: 32px; height: 32px; border: 3px solid #dce5e1; border-top-color: var(--forest-2); border-radius: 50%; animation: spin .75s linear infinite; }
.loading-state b { color: var(--ink); }
.loading-state small { font-size: 12px; }
.ai-floating-btn { position: fixed; right: 28px; bottom: 28px; z-index: 20; border: 0; border-radius: 28px; padding: 9px 18px 9px 9px; display: flex; align-items: center; gap: 10px; color: white; background: linear-gradient(135deg, var(--forest), #276b59); box-shadow: 0 14px 34px rgba(18,59,49,.3); }
.ai-floating-btn:hover { transform: translateY(-2px); }
.ai-floating-btn span { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 50%; color: var(--forest); background: var(--lime); font: 800 12px Manrope; }
.ai-floating-btn b { font-size: 13px; }
.ai-dialog { width: min(900px, calc(100% - 28px)); max-height: 92vh; padding: 0; border: 0; border-radius: 15px; color: #edf5f2; background: #081621; box-shadow: 0 30px 100px rgba(3,12,18,.55); }
.ai-dialog::backdrop { background: rgba(5,18,15,.68); backdrop-filter: blur(4px); }
.ai-close-btn { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border-radius: 50%; border: 1px solid #26506a; color: white; background: #0c2433; font-size: 24px; }
.ai-panel { padding: 28px; }
.ai-heading { display: flex; gap: 14px; align-items: center; padding-right: 55px; margin-bottom: 24px; }
.ai-mark { width: 48px; height: 48px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; color: #10231e; background: var(--lime); font: 800 14px Manrope; }
.ai-heading h2 { margin: 0 0 4px; font: 800 23px Manrope; }
.ai-heading p { margin: 0; color: #9fb2bd; font-size: 13px; }
.ai-dialog label { color: #dbe6e3; }
.ai-dialog input, .ai-dialog select, .ai-dialog textarea { border-color: #24475e; color: white; background: #0d1b31; }
.ai-dialog input:focus, .ai-dialog select:focus, .ai-dialog textarea:focus { border-color: #4b82a2; box-shadow: 0 0 0 3px rgba(75,130,162,.15); }
.ai-dialog option { background: #0d1b31; }
.ai-dialog textarea { min-height: 108px; }
.ai-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ai-privacy-note { margin: -4px 0 18px; color: #8299a5; font-size: 11px; }
.ai-actions { display: flex; gap: 10px; }
.ai-dialog .primary { background: linear-gradient(135deg, #2765dc, #7c3aed); }
.ai-dialog .ghost { color: #e2ece9; border-color: #29465a; }
.ai-result { margin-top: 22px; padding: 20px; border: 1px solid #233d50; border-radius: 10px; background: #091423; }
.ai-result-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ai-result-head small { color: #7f9bab; }
#aiAnswer { color: #e7efed; white-space: pre-wrap; line-height: 1.65; font-size: 13px; }
.ai-result > p { margin: 18px 0 0; padding-top: 13px; border-top: 1px solid #203646; color: #8095a0; font-size: 10px; }
.integration-actions { display: flex; gap: 10px; align-items: center; }
.report-toolbar { padding: 16px 18px; display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 18px; align-items: end; }
.report-toolbar label { margin: 0; }
.report-tabs { display: flex; padding: 4px; border-radius: 8px; background: #edf2ef; }
.report-tabs button { border: 0; padding: 10px 17px; border-radius: 6px; color: var(--muted); background: transparent; font-weight: 800; }
.report-tabs button.active { color: white; background: var(--forest); }
.report-export-actions { display: flex; gap: 8px; }
.executive-cover { margin-top: 18px; padding: 28px; border-radius: 12px; display: flex; align-items: center; color: white; background: linear-gradient(115deg, var(--forest), #276b59); }
.executive-cover h3 { margin: 0 0 7px; font: 800 28px Manrope; }
.executive-cover p:not(.eyebrow) { margin: 0; color: #bfd0ca; }
.adherence-ring { margin-left: auto; width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: conic-gradient(var(--lime) var(--score), rgba(255,255,255,.13) 0); position: relative; }
.adherence-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #17483b; }
.adherence-ring strong, .adherence-ring span { position: relative; }
.adherence-ring strong { font: 800 24px Manrope; }
.adherence-ring span { color: #bfd0ca; font-size: 10px; }
.report-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.report-metrics article { padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.report-metrics span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.report-metrics strong { display: block; margin-top: 10px; font: 800 27px Manrope; }
.report-grid { grid-template-columns: 1.15fr .85fr; }
.adherence-list { display: grid; gap: 18px; }
.adherence-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(120px, 2fr) 58px; gap: 14px; align-items: center; }
.adherence-row > div:first-child { display: grid; }
.adherence-row small { color: var(--muted); margin-top: 3px; }
.adherence-row > strong { text-align: right; }
.executive-summary { line-height: 1.6; color: var(--muted); }
.executive-summary b { color: var(--ink); }
.report-section { margin-top: 18px; }
.control-adherence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 28px; }
.report-gap-list > div { display: grid; grid-template-columns: 60px 1fr auto; gap: 14px; align-items: center; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 12px; }
.report-gap-list > div:last-child { border-bottom: 0; }
.implementation-priority-list { display: grid; }
.implementation-priority-list article { display: grid; grid-template-columns: 58px 1fr; gap: 16px; padding: 17px 20px; border-bottom: 1px solid var(--line); }
.implementation-priority-list article:last-child { border-bottom: 0; }
.priority-order { width: 48px; height: 48px; display: grid; place-items: center; align-content: center; border-radius: 8px; color: white; background: var(--forest); }
.priority-order span { font: 800 17px Manrope; line-height: 1; }
.priority-order small { margin-top: 3px; color: #b9cbc5; font-size: 8px; text-transform: uppercase; }
.priority-control > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.priority-control > small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; }
.priority-control p { margin: 10px 0 0; color: var(--muted); font-size: 11px; line-height: 1.55; }
.priority-badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 14px; font-size: 9px; font-weight: 800; }
.priority-badge.wave-1 { color: #a8473d; background: #fff0ed; }
.priority-badge.wave-2 { color: #9a6a1e; background: #fff5dc; }
.priority-badge.wave-3 { color: #397546; background: #e9f5e9; }
.technical-head { margin-top: 18px; padding: 22px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.technical-head h3 { margin: 0 0 6px; font: 800 22px Manrope; }
.technical-head p:not(.eyebrow) { margin: 0; color: var(--muted); }
.technical-filters { display: flex; gap: 8px; }
.technical-table td { min-width: 130px; vertical-align: top; line-height: 1.5; }
.technical-table td:nth-child(2) { min-width: 330px; }
.technical-table td:nth-child(4) { min-width: 260px; white-space: pre-wrap; }
.technical-evidence { display: grid; padding: 5px 0; border-bottom: 1px solid var(--line); }
.technical-evidence:last-child { border-bottom: 0; }
.technical-evidence small { color: var(--muted); }
.risk-metrics { display: grid; grid-template-columns: repeat(5, 1fr); gap: 13px; }
.risk-metrics article { padding: 17px; border: 1px solid var(--line); border-radius: 9px; background: white; }
.risk-metrics article span { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.risk-metrics article strong { display: block; margin-top: 9px; font: 800 25px Manrope; }
.risk-metrics article.danger { border-color: #efc7c1; background: #fff7f5; }
.risk-metrics article.danger strong { color: #a8473d; }
.portfolio-count { color: var(--muted); font-size: 12px; font-weight: 800; }
.risk-company-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; }
.risk-company-card { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: white; box-shadow: 0 4px 18px rgba(26,48,41,.025); text-align: left; transition: transform .2s, box-shadow .2s, border-color .2s; }
.risk-company-card:hover { transform: translateY(-2px); border-color: #b6c8c1; box-shadow: var(--shadow); }
.risk-company-head { display: flex; align-items: center; gap: 13px; padding: 20px; border-bottom: 1px solid var(--line); }
.risk-company-head > span { width: 45px; height: 45px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 8px; color: var(--forest); background: var(--lime); font: 800 12px Manrope; }
.risk-company-head > div { min-width: 0; }
.risk-company-head h3 { margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 800 17px Manrope; }
.risk-company-head small { color: var(--muted); }
.risk-company-head i { margin-left: auto; color: var(--forest-2); font-style: normal; font-size: 18px; }
.risk-company-summary { display: grid; grid-template-columns: repeat(5, 1fr); }
.risk-company-summary > div { padding: 14px 9px; border-right: 1px solid var(--line); text-align: center; }
.risk-company-summary > div:last-child { border-right: 0; }
.risk-company-summary strong, .risk-company-summary span { display: block; }
.risk-company-summary strong { font: 800 18px Manrope; }
.risk-company-summary span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.risk-company-summary .danger strong { color: #a43c31; }
.risk-company-toolbar { display: flex; align-items: center; gap: 18px; margin-bottom: 20px; }
.risk-company-toolbar .eyebrow { margin-bottom: 5px; }
.risk-company-toolbar h3 { margin: 0 0 4px; font: 800 25px Manrope; }
.risk-company-toolbar p:not(.eyebrow) { margin: 0; color: var(--muted); }
.risk-table td:first-child { min-width: 370px; }
.risk-table .scope-tag { display: inline-flex; margin-top: 7px; }
.risk-priority, .risk-status { display: inline-flex; padding: 5px 9px; border-radius: 20px; font-size: 10px; font-weight: 800; white-space: nowrap; }
.risk-priority.low { color: #397546; background: #e9f5e9; }
.risk-priority.medium { color: #87631f; background: #fff4d8; }
.risk-priority.high { color: #b15b22; background: #fff0e4; }
.risk-priority.critical { color: #a43c31; background: #fff0ee; }
.risk-status.open, .risk-status.in_progress { color: #356d83; background: #e8f3f7; }
.risk-status.awaiting_evidence { color: #87631f; background: #fff4d8; }
.risk-status.in_validation { color: #6849a8; background: #f0ebff; }
.risk-status.corrected { color: #397546; background: #e9f5e9; }
.risk-status.risk_accepted { color: #625b52; background: #eeeae5; }
.overdue-label { display: block; margin-top: 5px; color: #a43c31; font-size: 9px; font-weight: 800; text-transform: uppercase; }
.risk-modal .risk-origin { display: grid; gap: 5px; margin: 0 0 20px; padding: 13px 15px; border-left: 3px solid var(--amber); color: var(--muted); background: #fffaf0; font-size: 12px; }
.risk-modal .risk-origin b { color: var(--ink); }
.approve-risk-evidence { border: 0; color: #397546; background: transparent; font-weight: 800; font-size: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .safeguard-row { grid-template-columns: 60px 1fr 110px 80px; }
  .safeguard-row > :nth-child(3) { display: none; }
}
@media (max-width: 760px) {
  .login-shell { grid-template-columns: 1fr; }
  .login-brand { display: none; }
  .login-panel { min-height: 100vh; padding: 26px; }
  .mobile-logo { display: block; color: var(--forest); margin-bottom: 60px; font-weight: 800; }
  .mobile-logo b { border: 1px solid var(--forest); padding: 9px; margin-right: 8px; color: var(--lime-dark); }
  .app-shell { display: block; }
  .sidebar { transform: translateX(-105%); transition: .25s; box-shadow: var(--shadow); }
  .sidebar.open { transform: translateX(0); }
  .content-shell { grid-column: auto; }
  .topbar { height: 78px; padding: 0 18px; }
  .menu-btn { display: block; }
  .date-chip, .topbar .primary { display: none; }
  .content { padding: 22px 16px 50px; }
  .metric-grid, .grid-2 { grid-template-columns: 1fr; }
  .evidence-metrics { grid-template-columns: repeat(2, 1fr); }
  .evidence-center-row { grid-template-columns: 42px 1fr; }
  .evidence-center-actions { grid-column: 1 / -1; flex-wrap: wrap; }
  .review-status-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-row { align-items: start; flex-direction: column; gap: 12px; }
  .portfolio-client-filter, .portfolio-client-filter select { width: 100%; min-width: 0; }
  .toolbar input, .toolbar select { max-width: none; width: 100%; }
  .toolbar .push { margin-left: 0; }
  .assessment-head { align-items: start; }
  .score-ring { width: 72px; height: 72px; flex: 0 0 auto; }
  .safeguard-row { grid-template-columns: 55px 1fr 72px; padding: 13px; }
  .safeguard-row > :nth-child(3), .safeguard-row > :nth-child(4) { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .full { grid-column: auto; }
  .simple-evidence-form { grid-template-columns: 1fr; }
  .attached-evidence-item { align-items: flex-start; flex-direction: column; }
  .ai-floating-btn { right: 16px; bottom: 16px; }
  .ai-floating-btn b { display: none; }
  .ai-floating-btn { padding: 8px; }
  .ai-panel { padding: 22px 18px; }
  .ai-form-grid { grid-template-columns: 1fr; gap: 0; }
  .report-toolbar { grid-template-columns: 1fr; }
  .report-tabs, .report-export-actions { width: 100%; }
  .report-tabs button, .report-export-actions button { flex: 1; }
  .executive-cover { align-items: flex-start; }
  .adherence-ring { width: 92px; height: 92px; flex: 0 0 auto; }
  .report-metrics, .control-adherence-grid { grid-template-columns: 1fr 1fr; }
  .report-grid { grid-template-columns: 1fr; }
  .adherence-row { grid-template-columns: 1fr 55px; }
  .adherence-row .progress { grid-column: 1 / -1; grid-row: 2; }
  .technical-head { align-items: stretch; flex-direction: column; }
  .technical-filters { flex-direction: column; }
  .risk-metrics { grid-template-columns: 1fr 1fr; }
  .risk-company-grid { grid-template-columns: 1fr; }
  .risk-company-summary { grid-template-columns: repeat(3, 1fr); }
  .risk-company-summary > div:nth-child(3) { border-right: 0; }
  .risk-company-summary > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .risk-company-toolbar { align-items: flex-start; flex-direction: column; }
  .risk-table td:first-child { min-width: 280px; }
  .mfa-shell { padding: 16px; }
  .mfa-card { padding: 24px 20px; }
  .mfa-card .mobile-logo { margin-bottom: 36px; }
  .mfa-setup-grid { grid-template-columns: 1fr; justify-items: center; }
  .mfa-recovery-codes { grid-template-columns: 1fr; }
}

/* KairoIT brand theme */
:root {
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, .16);
  --paper: #0a0e1a;
  --white: #111827;
  --forest: #0d1220;
  --forest-2: #00a3ff;
  --lime: #00ff9d;
  --lime-dark: #00a3ff;
  --amber: #fbc927;
  --red: #f87171;
  --blue: #00a3ff;
  --green: #00ff9d;
  --shadow: 0 18px 48px rgba(0, 0, 0, .3);
}

body { font-family: "Inter", sans-serif; background: var(--paper); }
body * { font-family: "Inter", sans-serif; }
.eyebrow { color: var(--blue); }
.login-brand {
  background:
    radial-gradient(circle at 72% 42%, rgba(0, 163, 255, .16), transparent 42%),
    radial-gradient(circle at 25% 82%, rgba(0, 255, 157, .08), transparent 38%),
    linear-gradient(135deg, #0a0e1a, #0d1220);
}
.login-brand::after {
  border-color: rgba(0, 163, 255, .15);
  box-shadow: 0 0 0 70px rgba(0, 163, 255, .035), 0 0 0 140px rgba(0, 255, 157, .02);
}
.brand-logo { width: 112px; height: 112px; object-fit: contain; margin-bottom: 52px; filter: drop-shadow(0 0 25px rgba(0, 163, 255, .25)); }
.login-brand .eyebrow { color: var(--green, #00ff9d); }
.login-brand h1 { font-family: "Inter", sans-serif; font-weight: 900; }
.login-brand h1 span { color: var(--blue); }
.login-copy { color: var(--text-secondary, #94a3b8); }
.trust-row { color: #f1f5f9; }
.login-panel { background: #0d1220; }
.login-card { padding: 38px; border: 1px solid rgba(0, 163, 255, .2); border-radius: 18px; background: #111827; box-shadow: 0 24px 70px rgba(0, 0, 0, .38); }
.login-card h2, .mfa-card h2 { font-family: "Inter", sans-serif; }
.login-card input { background: #0d1220; }
.mobile-logo { color: var(--ink); }
.mobile-logo img { width: 42px; height: 42px; object-fit: contain; vertical-align: middle; margin-right: 8px; }
.mobile-logo b { color: #fbc927; border: 0; padding: 0; }
.mfa-shell { background: radial-gradient(circle at 50% 20%, rgba(0, 163, 255, .14), transparent 38%), #0a0e1a; }
.mfa-card { border: 1px solid rgba(0, 163, 255, .2); color: var(--ink); background: #111827; }
.mfa-setup-grid code, .mfa-recovery-codes code { color: var(--blue); background: #0d1220; }

input, select, textarea { border-color: var(--line); color: var(--ink); background: #0d1220; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 163, 255, .13); }
select option { color: var(--ink); background: #111827; }
.primary { background: var(--blue); color: #fff; }
.primary:hover { background: #0077cc; box-shadow: 0 5px 18px rgba(0, 163, 255, .25); }
.primary span { color: var(--green); }
.secondary { color: var(--blue); background: rgba(0, 163, 255, .1); border: 1px solid rgba(0, 163, 255, .2); }
.ghost { color: var(--ink); border-color: var(--line); }

.sidebar { background: #0d1220; border-right: 1px solid rgba(0, 163, 255, .15); }
.logo { gap: 10px; padding-bottom: 25px; font-family: "Inter", sans-serif; }
.logo img { width: 48px; height: 48px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0, 163, 255, .18)); }
.logo > div { min-width: 0; display: grid; line-height: 1.1; }
.logo b { color: #fbc927; font-size: 15px; font-weight: 800; }
.logo > div > span { color: #44b1f7; font-size: 11px; font-weight: 700; }
.logo small { color: var(--muted); font-family: "Inter", sans-serif; }
nav button { color: #94a3b8; }
nav button span { color: #64748b; }
nav button:hover, nav button.active { color: #f1f5f9; background: rgba(0, 163, 255, .1); }
nav button.active { box-shadow: inset 3px 0 0 var(--blue); }
nav button.active span { color: var(--blue); }
.nav-count { color: #061119; background: var(--green); }
.security-note { border-color: rgba(0, 163, 255, .15); background: rgba(0, 163, 255, .035); }
.security-note b { color: var(--green); }
.security-note span, .user-chip small { color: var(--muted); }
.user-chip > span { color: #061119; background: var(--green); }

.topbar { color: var(--ink); background: rgba(13, 18, 32, .96); border-color: var(--line); backdrop-filter: blur(14px); }
.topbar h2, .hero-row h3, .card-head h3 { font-family: "Inter", sans-serif; }
.breadcrumb { color: #64748b; }
.breadcrumb span { color: var(--blue); }
.content {
  background:
    radial-gradient(circle at 90% 0%, rgba(0, 163, 255, .05), transparent 30%),
    var(--paper);
}
.card, .metric, .compact-metric, .report-metrics article, .risk-metrics article, .risk-company-card {
  color: var(--ink);
  background: #111827;
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
}
.card:hover, .metric:hover { border-color: rgba(0, 163, 255, .28); }
.methodology-note, .review-note { color: var(--muted); background: rgba(0, 163, 255, .055); border-color: var(--blue); }
.progress, .mini-progress { background: #1a2235; }
.progress i, .mini-progress i { background: linear-gradient(90deg, var(--blue), var(--green)); }
th { color: #94a3b8; background: #0d1220; border-color: var(--line); }
td { border-color: var(--line); }
tbody tr:hover { background: rgba(0, 163, 255, .035); }
.table-title { color: var(--ink); }
.scope-tag { color: var(--blue); border-color: rgba(0, 163, 255, .3); background: rgba(0, 163, 255, .06); }
.action-link { color: var(--blue); }

.assessment-head, .ig-section-head, .executive-cover, .review-assessment-card > header {
  background: linear-gradient(115deg, #0d1220, #102b49);
  border: 1px solid rgba(0, 163, 255, .25);
}
.assessment-head p, .ig-section-head > b, .executive-cover p:not(.eyebrow), .review-score small, .review-assessment-card header p { color: #94a3b8; }
.score-ring, .adherence-ring { background: conic-gradient(var(--blue) var(--score), rgba(255,255,255,.1) 0); }
.score-ring::before, .adherence-ring::before { background: #0d1220; }
.score-strip { background: var(--line); }
.score-strip > div, .control-group, .attached-evidence-item, .evidence-file-icon { background: #111827; }
.score-strip b, .control-title b:first-child, .safeguard-row .code { color: var(--blue); }
.control-title { background: #0d1220; border-color: var(--line); }
.safeguard-row, .attached-evidence-item, .evidence-center-row { border-color: var(--line); }

.modal { color: var(--ink); background: #111827; box-shadow: 0 30px 100px rgba(0,0,0,.6); }
.modal::backdrop { background: rgba(2, 6, 15, .78); }
.modal-close { color: var(--ink); background: #1a2235; }
.user-actions summary { color: var(--blue); border-color: rgba(0, 163, 255, .25); background: rgba(0, 163, 255, .06); }
.user-actions-menu { border-color: var(--line); background: #111827; box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.user-actions-menu button { color: var(--ink); }
.user-actions-menu button:hover { background: rgba(0, 163, 255, .1); }
.user-actions-menu .danger-text { color: #f87171; }
.audit-total { display: grid; min-width: 170px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 10px; background: #111827; }
.audit-total strong { color: var(--blue); font-size: 26px; }
.audit-total span { color: var(--muted); font-size: 11px; }
.audit-filters { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr) 145px 145px auto auto; gap: 10px; align-items: end; padding: 16px; margin-bottom: 18px; }
.audit-filters label { gap: 5px; margin: 0; color: var(--muted); font-size: 10px; }
.audit-filters input, .audit-filters select { margin: 0; min-width: 0; }
.audit-card { overflow: visible; }
.audit-table { min-width: 1050px; }
.audit-action { display: inline-flex; padding: 5px 8px; border-radius: 5px; color: var(--blue); background: rgba(0, 163, 255, .08); font-weight: 800; }
.audit-entity { max-width: 240px; overflow-wrap: anywhere; color: var(--muted); font-size: 11px; }
.audit-pagination { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.audit-pagination > div { display: flex; gap: 8px; }
.audit-pagination button:disabled { opacity: .35; cursor: not-allowed; }
.audit-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.audit-detail-grid > div { display: grid; gap: 4px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #0d1220; }
.audit-detail-grid .full { grid-column: 1 / -1; }
.audit-detail-grid span, .audit-detail-grid small { color: var(--muted); font-size: 10px; }
.audit-json { max-height: 270px; overflow: auto; padding: 14px; border: 1px solid var(--line); border-radius: 8px; color: #cbd5e1; background: #080c16; font: 11px/1.6 "JetBrains Mono", monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.evidence-box, .official-reference { color: var(--muted); background: #0d1220; border-color: var(--line); }
.attached-evidence-list { border-color: var(--line); }
.alert { color: #fbd37a; background: rgba(251, 191, 36, .08); border-color: rgba(251, 191, 36, .24); }
.toast { background: #0077cc; box-shadow: 0 18px 48px rgba(0, 0, 0, .38); }
.loading-state span { border-color: #1a2235; border-top-color: var(--blue); }
.ai-floating-btn { background: linear-gradient(135deg, #0077cc, #00a3ff); box-shadow: 0 14px 34px rgba(0,163,255,.28); }
.ai-floating-btn span, .ai-mark { color: #061119; background: var(--green); }

.report-tabs { background: #0d1220; }
.report-tabs button.active { background: var(--blue); }
.priority-order { background: linear-gradient(135deg, #0077cc, #00a3ff); }
.technical-head { color: var(--ink); }
.risk-company-card:hover { border-color: rgba(0, 163, 255, .35); box-shadow: var(--shadow); }
.risk-company-head { border-color: var(--line); }
.risk-company-head > span { color: #061119; background: var(--green); }
.risk-company-head i { color: var(--blue); }
.risk-company-summary > div { border-color: var(--line); }
.risk-modal .risk-origin { color: var(--muted); background: rgba(251, 191, 36, .055); }

@media (max-width: 760px) {
  .login-panel { background: #0a0e1a; }
  .login-card { padding: 26px 22px; }
  .audit-filters { grid-template-columns: 1fr; }
  .audit-total { width: 100%; }
  .audit-detail-grid { grid-template-columns: 1fr; }
  .audit-detail-grid .full { grid-column: auto; }
}
