/* ── Reset & base ─────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
               'Helvetica Neue', Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f2f4f7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.container { flex: 1; width: 100%; }

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Nav ──────────────────────────────────────────────────────────────────── */
.nav {
  background: #2f6067;
  color: #f8fafc;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-brand {
  font-weight: 600;
  font-size: 15px;
  color: #f8fafc;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo {
  height: 26px;
  width: auto;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}
.nav-brand:hover { text-decoration: none; color: #94a3b8; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a { display: flex; align-items: center; align-self: stretch; }
.nav-links a.nav-active { color: #fff; font-weight: 600; border-bottom: 3px solid #fff; }
.nav-links .btn-nav {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  height: 30px; box-sizing: border-box;
  padding: 0 10px;
}
.nav-links .btn-nav:hover { background: rgba(255,255,255,0.28); color: #fff; text-decoration: none; }
.nav-links .btn-nav--proxy { background: rgba(220,38,38,0.25); border-color: rgba(252,165,165,0.5); color: #fca5a5; }
.nav-links .btn-nav--proxy:hover { background: rgba(220,38,38,0.45); color: #fff; }

/* ── User menu dropdown ──────────────────────────────────────────────────── */
.user-menu { position: relative; }
.user-menu-trigger {
  display: flex; align-items: center; gap: 6px; cursor: pointer;
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.25);
  color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 13px;
}
.user-menu-trigger:hover { background: rgba(255,255,255,0.2); }
.user-menu-avatar {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,0.25);
  font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0;
}
.user-menu-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + 6px);
  background: #fff; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  min-width: 240px; z-index: 200; padding: 8px 0;
}
.user-menu-dropdown--open { display: block; }
.user-menu-section-label {
  padding: 8px 16px 4px; font-size: 11px; font-weight: 600; color: #94a3b8;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.user-menu-toggle-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 16px; cursor: pointer; font-size: 13px; color: #334155;
}
.user-menu-toggle-row:hover { background: #f8fafc; }
.user-menu-divider { height: 1px; background: #e2e8f0; margin: 4px 0; }
.user-menu-item {
  display: block; width: 100%; text-align: left; padding: 8px 16px;
  font-size: 13px; color: #334155; background: none; border: none; cursor: pointer;
}
.user-menu-item:hover { background: #f8fafc; }
.user-menu-item--proxy { color: #dc2626; }
.user-menu-item--proxy:hover { background: #fef2f2; }

/* ── Toggle slider ───────────────────────────────────────────────────────── */
.toggle-input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: relative; display: inline-block; width: 36px; height: 20px;
  background: #cbd5e1; border-radius: 10px; transition: background 0.2s; flex-shrink: 0;
  cursor: pointer;
}
.toggle-slider::after {
  content: ''; position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform 0.2s;
}
.toggle-input:checked + .toggle-slider { background: #22c55e; }
.toggle-input:checked + .toggle-slider::after { transform: translateX(16px); }
.nav-search { display: flex; align-items: center; margin-left: 12px; position: relative; }
.nav-search-icon {
  position: absolute; left: 8px; width: 14px; height: 14px;
  color: rgba(255,255,255,0.5); pointer-events: none;
}
.nav-search input[type="text"] {
  width: 280px; height: 30px; box-sizing: border-box;
  padding: 0 10px 0 28px; border: 1px solid rgba(255,255,255,0.3);
  border-radius: 4px; background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5);
  font-size: 0.85rem; outline: none;
}
.nav-search input[type="text"]::placeholder { color: rgba(255,255,255,0.5); }
.nav-search input[type="text"]:hover { background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.5); }
.nav-search input[type="text"]:focus { color: #fff; background: rgba(255,255,255,0.28); border-color: rgba(255,255,255,0.5); }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

/* ── Page header ──────────────────────────────────────────────────────────── */
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.page-header h1 {
  font-size: 22px;
  font-weight: 600;
  color: #0f172a;
  margin: 0;
}
.title-row {
  display: flex;
  align-items: baseline;
  min-height: 36px;
  margin-right: 48px;
}
.title-text {
  font-size: 24px;
  font-weight: 600;
  color: #0f172a;
}
.back-link {
  display: inline-block;
  font-size: 12px;
  color: #64748b;
  margin-bottom: 4px;
}
.back-link:hover { color: #2563eb; text-decoration: none; }
.header-actions { display: flex; gap: 8px; flex-shrink: 0; }
.count {
  font-size: 13px;
  color: #64748b;
  font-weight: normal;
  margin-left: 6px;
}
.identifier-heading {
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  font-family: 'SF Mono', 'Fira Code', monospace;
  margin-right: 10px;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid #d1d5db;
  background: #fff;
  color: #374151;
  white-space: nowrap;
  transition: background 0.15s;
}
.btn:hover { background: #f9fafb; text-decoration: none; }
.btn-primary { background: #2563eb; color: #fff; border-color: #1d4ed8; }
.btn-primary:hover { background: #1d4ed8; }
.btn-amber { background: #eab308; color: #fff; border-color: #ca8a04; }
.btn-amber:hover { background: #ca8a04; }
.update-buttons { display: flex; gap: 16px; width: 60%; }
.update-buttons .btn { flex: 1; text-align: center; }
.btn-warn { color: #a16207; border-color: #fcd34d; }
.btn-warn:hover { background: #fffbeb; }
.btn-danger { color: #dc2626; border-color: #fca5a5; }
.btn-danger:hover { background: #fef2f2; }
.btn-danger:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-danger:disabled:hover { background: transparent; }
.btn-sm { padding: 4px 10px; font-size: 12px; }

/* ── Filter bar ───────────────────────────────────────────────────────────── */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  align-items: center;
}
.filter-bar input[type="text"] {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  width: 200px;
  font-family: inherit;
}
.filter-bar select {
  padding: 7px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 13px;
  background: #fff;
  font-family: inherit;
}
.filter-bar input:focus,
.filter-bar select:focus { outline: none; border-color: #2f6067; box-shadow: 0 0 0 3px rgba(47,96,103,.12); }

/* ── Table ────────────────────────────────────────────────────────────────── */
.table-wrap {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: auto;
  max-height: calc(100vh - 200px);
}
table { width: 100%; border-collapse: collapse; table-layout: fixed; }
th {
  text-align: left;
  padding: 14px 14px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #64748b;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}
td {
  padding: 11px 14px;
  border-bottom: 1px solid #f1f5f9;
  vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #f1f5f9; }
.thead-filters td { cursor: default; }
td.center { text-align: center; }
td.muted { color: #94a3b8; font-size: 13px; }
td.identifier {
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 12px;
  color: #64748b;
  white-space: nowrap;
}
.owners-cell { white-space: normal; }
.owners-wrap { display: flex; flex-wrap: wrap; gap: 4px; }
.owner-chip {
  background: #f1f5f9;
  color: #475569;
  border-radius: 12px;
  padding: 2px 8px;
  font-size: 11px;
  white-space: nowrap;
}

/* ── Badges ───────────────────────────────────────────────────────────────── */
.score-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
.score-badge small { font-weight: 400; font-size: 10px; }
.score-low    { background: #dcfce7; color: #166534; }
.score-medium { background: #fef3c7; color: #92400e; }
.score-high   { background: #fee2e2; color: #991b1b; }

/* ── Detail layout ────────────────────────────────────────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 750px) { .detail-grid { grid-template-columns: 1fr; } }

.detail-sidebar { display: flex; flex-direction: column; gap: 16px; }
.detail-main    { display: flex; flex-direction: column; gap: 16px; }
#risk-edit-form { display: flex; flex-direction: column; gap: 16px; }

.detail-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 18px;
}
.detail-card h2 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 14px;
}
dl { display: flex; flex-direction: column; }
dt { font-size: 11px; font-weight: 600; color: #94a3b8; text-transform: uppercase; letter-spacing: 0.04em; margin-top: 14px; }
dt:first-child { margin-top: 0; }
dd { font-size: 13px; color: #1a1a1a; margin-top: 3px; }
dd.dd-small { font-size: 11px; color: #64748b; }

/* Compact selects in sidebar */
.detail-sidebar select {
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 5px;
  height: 30px;
}

/* Owners in sidebar */
.owner-list { display: flex; flex-direction: column; gap: 6px; }
.owner-row  { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* Theme tags */
.theme-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.theme-tag {
  background: #ede9fe;
  color: #5b21b6;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
}
.objective-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.objective-tag {
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 500;
  color: #1e293b;
}
/* Department tags & chips */
.department-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 2px; }
.department-tag {
  background: #ccfbf1;
  color: #0f766e;
  border-radius: 4px;
  padding: 2px 7px;
  font-size: 12px;
}
.departments-cell { white-space: normal; }
.department-chip {
  background: #ccfbf1;
  color: #0f766e;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 500;
  display: inline-block;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.rm-required { color: #ef4444; font-weight: 600; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}
.card h2 {
  font-size: 15px;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 14px;
  display: flex;
  align-items: baseline;
}
.description { white-space: pre-wrap; color: #374151; line-height: 1.6; }
.description.review-content { white-space: normal; }
.card-divider { border: none; border-top: 1px solid #f1f5f9; margin: 18px 0; }

.muted { font-size: 12px; color: #94a3b8; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
label { font-size: 13px; font-weight: 500; color: #374151; }
.required { color: #dc2626; }
input[type="text"],
input[type="email"],
input[type="url"],
input[type="number"],
textarea,
select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  color: #1a1a1a;
  background: #fff;
  transition: border-color 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: #2f6067;
  box-shadow: 0 0 0 3px rgba(47,96,103,.12);
}
textarea { resize: vertical; }

/* ── Empty ────────────────────────────────────────────────────────────────── */
.empty { color: #64748b; padding: 12px 0; }

/* ── Layout helpers ───────────────────────────────────────────────────────── */
.action-group { display: flex; gap: 8px; }
.action-group .btn { min-width: 100px; justify-content: center; }
.page-header-title { flex: 1; min-width: 0; }

/* ── Score chips (edit mode) ──────────────────────────────────────────────── */
.scores-edit {
  display: grid;
  grid-template-columns: 1fr 44px 1fr;
  gap: 0 4px;
  align-items: start;
  width: calc(100% + 40px);
  margin-left: -20px;
  padding: 0 20px;
}
.score-section h4 {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: #64748b; margin-bottom: 10px;
}
.chip-block       { margin-bottom: 10px; }
.chip-group-label { font-size: 11px; font-weight: 500; color: #94a3b8; margin-bottom: 6px; }
.chip-row         { display: flex; gap: 3px; }
.chip-labels      { display: flex; gap: 3px; margin-top: 4px; }
.chip-labels span { flex: 1; text-align: center; font-size: 9px; color: #94a3b8; line-height: 1.3; }

.score-chip {
  display: flex; align-items: center; justify-content: center;
  flex: 1; height: 26px; padding: 0 2px; border-radius: 13px; border: 1px solid;
  cursor: pointer; font-size: 12px; font-weight: 700;
  transition: transform 0.1s; user-select: none;
}
.score-chip:hover { transform: translateY(-1px); }
.score-chip input { display: none; }
.chip-num   { font-size: 13px; font-weight: 700; line-height: 1; }

/* Unselected — soft tint matching dashboard hues */
.score-chip.chip-1 { background:#dcfce7; border-color:#16a34a; color:#14532d; }
.score-chip.chip-2 { background:#fefce8; border-color:#f5e020; color:#713f12; }
.score-chip.chip-3 { background:#fff7ed; border-color:#f5a418; color:#7c2d12; }
.score-chip.chip-4 { background:#fef2f2; border-color:#e84e20; color:#7f1d1d; }
.score-chip.chip-5 { background:#fef2f2; border-color:#a81616; color:#7f1d1d; }
/* Selected — exact dashboard matrix colors */
.score-chip.chip-1:has(input:checked) { background:#16a34a; border-color:#16a34a; color:#fff; }
.score-chip.chip-2:has(input:checked) { background:#f5e020; border-color:#f5e020; color:#3d3300; }
.score-chip.chip-3:has(input:checked) { background:#f5a418; border-color:#f5a418; color:#fff; }
.score-chip.chip-4:has(input:checked) { background:#e84e20; border-color:#e84e20; color:#fff; }
.score-chip.chip-5:has(input:checked) { background:#a81616; border-color:#a81616; color:#fff; }

.score-live {
  font-size: 12px; color: #374151; margin-top: 2px;
  display: flex; align-items: center; gap: 6px;
}
.appetite-edit {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 14px;
}
.rm-appetite-wrap { display: inline-block; min-width: 160px; }
.rm-appetite-trigger { padding: 4px 28px 4px 8px !important; font-size: 13px !important; }
.sm-appetite {
  width: 100%; margin-top: 12px; padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: flex; flex-direction: column; gap: 6px;
}
.sm-appetite-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.sm-appetite-label { color: #94a3b8; }
.sm-appetite-val   { font-weight: 600; color: #374151; }

/* ── Owner autocomplete ───────────────────────────────────────────────────── */
.tag-autocomplete {
  position: relative;
  border: 1px solid #d1d5db; border-radius: 6px;
  padding: 3px 8px; background: #fff; min-height: 34px; box-sizing: border-box;
  display: flex; flex-wrap: wrap; gap: 4px; align-items: center;
  cursor: text;
}
.tag-autocomplete:focus-within {
  border-color: #2f6067; box-shadow: 0 0 0 3px rgba(47,96,103,.12);
}
.tag-list { display: contents; }
.owner-tag-chip {
  display: inline-flex; align-items: center; gap: 3px;
  background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
  border-radius: 4px; padding: 2px 6px; font-size: 12px;
}
.owner-tag-chip button {
  background: none; border: none; cursor: pointer;
  color: #93c5fd; font-size: 13px; padding: 0; line-height: 1;
}
.owner-tag-chip button:hover { color: #1d4ed8; }
.tag-search-input {
  border: none !important; outline: none; box-shadow: none !important;
  font-size: 13px; font-family: inherit; border-radius: 0 !important;
  min-width: 120px; flex: 1; padding: 0 !important; margin: 0;
  background: transparent !important; width: auto !important;
  height: auto !important;
}
.tag-search-input::placeholder { color: rgba(0,0,0,0.6); }
.autocomplete-list {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid #e2e8f0; border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1); list-style: none;
  z-index: 100; max-height: 200px; overflow-y: auto;
  display: none;
}
.autocomplete-list:not(:empty) { display: block; }
.autocomplete-list li { padding: 8px 12px; font-size: 13px; cursor: pointer; }
.autocomplete-list li:hover { background: #f1f5f9; }

/* ── Misc detail page ─────────────────────────────────────────────────────── */

/* ── Quill editor ─────────────────────────────────────────────────────────── */
.quill-editor {
  min-height: 140px;
  background: #fff;
  border-radius: 0 0 6px 6px;
}
.quill-wrap {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.quill-wrap:focus-within {
  border-color: #2f6067;
  box-shadow: 0 0 0 3px rgba(47,96,103,.12);
}
.quill-wrap .ql-toolbar.ql-snow {
  border: none !important;
  border-bottom: 1px solid #d1d5db !important;
  border-radius: 0;
}
.quill-wrap .ql-container.ql-snow {
  border: none !important;
  border-radius: 0;
  font-family: inherit;
  font-size: 14px;
}
/* Standalone quills (not wrapped) — fallback */
.ql-toolbar.ql-snow {
  border-radius: 6px 6px 0 0;
  border-color: #d1d5db !important;
}
.ql-container.ql-snow {
  border-color: #d1d5db !important;
  border-radius: 0 0 6px 6px;
  font-family: inherit;
  font-size: 14px;
}
.review-content { line-height: 1.6; color: #374151; }
.review-content p { margin-bottom: 6px; }
.review-content ul, .review-content ol { padding-left: 20px; margin-bottom: 6px; }
.review-content strong { font-weight: 600; }

/* ── Admin page ───────────────────────────────────────────────────────────── */
.admin-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 24px;
}
.admin-section > h2,
.admin-section-header > h2 { font-size: 16px; font-weight: 600; color: #0f172a; margin: 0; }

/* Tab bar for active/archived toggle */
.admin-tab-bar { display: flex; gap: 0; margin-bottom: 16px; border-bottom: 2px solid #e2e8f0; }
.admin-tab-bar--top { margin-bottom: 24px; }
.admin-tab-bar--top .admin-tab { padding: 10px 20px; font-size: 14px; }
.admin-tab {
  padding: 8px 16px; font-size: 13px; font-weight: 500; color: #64748b;
  text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.admin-tab:hover { color: #374151; text-decoration: none; }
.admin-tab--active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }

/* Risk maintenance table */
.admin-section--list { display: flex; flex-direction: column; height: 720px; }
.risk-maint-scroll { flex: 1; overflow-y: auto; min-height: 0; }
.risk-maint-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.risk-maint-table th {
  text-align: left; padding: 8px 10px; font-weight: 600; color: #64748b;
  border-bottom: 1px solid #e2e8f0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em;
  position: sticky; top: 0; background: #f8fafc; z-index: 1;
}
.risk-maint-table td { padding: 8px 10px; border-bottom: 1px solid #f1f5f9; }
.risk-maint-table td a { color: #2563eb; text-decoration: none; }
.risk-maint-table td a:hover { text-decoration: underline; }
.risk-maint-table .mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; color: #64748b; }
.risk-maint-table .maint-title { font-weight: 500; }
.risk-maint-table .muted-cell { color: #64748b; font-size: 12px; }
.risk-maint-table tbody tr:hover { background: #f8fafc; }
.maint-actions { white-space: nowrap; text-align: right; }

/* Export filters */
.export-filter-row { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.export-filter-label { font-size: 13px; color: #64748b; width: 100px; flex-shrink: 0; }
.export-filter-select {
  font-size: 13px; padding: 5px 8px; border: 1px solid #cbd5e1; border-radius: 6px;
  background: #fff; color: #334155; cursor: pointer; width: 210px;
}
.export-filter-select:focus { outline: none; border-color: #2f6067; box-shadow: 0 0 0 3px rgba(47,96,103,.12); }

/* Export table */
.export-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.export-table th {
  text-align: left; padding: 8px 10px; font-weight: 600; color: #64748b;
  border-bottom: 1px solid #e2e8f0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.03em;
}
.export-table td { padding: 10px 10px; border-bottom: 1px solid #f1f5f9; color: #64748b; }
.export-name { font-weight: 600; color: #0f172a; white-space: nowrap; }
.export-btns { display: flex; gap: 8px; }
.export-btns a {
  text-decoration: none; flex: 1; text-align: center; min-width: 56px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 6px; padding: 5px 10px; font-size: 12px; font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.export-btn-outline { border: 1px solid #2563eb; color: #2563eb; background: #fff; }
.export-btn-outline:hover { background: #2563eb; color: #fff; text-decoration: none; }
.maint-actions form { margin-left: 4px; }

.admin-grid-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}
.admin-grid-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  min-width: 0;
}
.lookup-list { list-style: none; margin-bottom: 14px; }
.lookup-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
  gap: 8px;
}
.lookup-list li.empty { color: #94a3b8; border-bottom: none; }
.add-form { display: flex; gap: 8px; }
.add-form input[type="text"] { flex: 1; padding: 6px 10px; font-size: 13px; }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.dashboard-row {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
}
.dashboard-row--2   { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-row--mat { grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; }
@media (max-width: 1000px) {
  .dashboard-row--2   { grid-template-columns: 1fr; }
  .dashboard-row--mat { grid-template-columns: 1fr; }
}

/* Arrow between matrices */
.matrix-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  align-self: stretch;
}
.matrix-arrow::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-top: 20px solid transparent;
  border-bottom: 20px solid transparent;
  border-left: 14px solid #94a3b8;
}

.dash-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px 24px 24px;
  min-width: 0;
  overflow: hidden;
}
/* Dashboard filters */
.dash-filters { display: flex; align-items: center; gap: 8px; }
.dash-filter-select {
  width: 180px;
  height: 34px; padding: 7px 28px 7px 10px;
  font-size: 13px; font-family: inherit; color: #1e293b;
  background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
  cursor: pointer; box-sizing: border-box;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dash-filter-select:hover { border-color: #94a3b8; }
.dash-filter-select:focus { outline: none; border-color: #2f6067; box-shadow: 0 0 0 3px rgba(47,96,103,.12); }

.dash-card__title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 2px;
}
.dash-card__sub {
  font-size: 12px;
  color: #94a3b8;
  margin: 0 0 16px;
}

/* Chart cards */
.chart-wrap {
  position: relative;
  height: 300px;
}
.chart-wrap--col {
  height: 300px;
}
.chart-wrap canvas { max-width: 100%; }

/* Risk matrix */
.risk-matrix-wrap { display: flex; flex-direction: column; gap: 4px; }

.matrix-body {
  display: flex;
  align-items: stretch;
  gap: 6px;
}
.matrix-y-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  align-self: center;
  flex-shrink: 0;
  width: 12px;
}
.matrix-y-labels {
  display: flex;
  flex-direction: column;
  width: 86px;
  flex-shrink: 0;
}
.matrix-y-labels span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-size: 10px;
  color: #94a3b8;
  padding-right: 6px;
  text-align: right;
  line-height: 1.25;
}
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
  aspect-ratio: 1;
  flex: 1;
  min-width: 0;
}
.matrix-x-area {
  /* offset to align x-labels under the grid only (not y-title + y-labels) */
  margin-left: calc(12px + 6px + 86px + 6px);
}
.matrix-x-labels {
  display: flex;
}
.matrix-x-labels span {
  flex: 1;
  text-align: center;
  font-size: 10px;
  color: #94a3b8;
  line-height: 1.25;
  padding-top: 4px;
}
.matrix-x-title {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd5e1;
  text-align: center;
  margin-top: 5px;
}
.matrix-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
}
.matrix-cell--very-low { background: #16a34a; color: #fff; }
.matrix-cell--low      { background: #f5e020; color: #3d3300; }
.matrix-cell--medium   { background: #f5a418; color: #fff; }
.matrix-cell--high     { background: #e84e20; color: #fff; }
.matrix-cell--critical { background: #a81616; color: #fff; }
.matrix-cell--empty    { opacity: 0.2; }

/* Corner rounding */
.matrix-cell--tl { border-radius: 7px 0 0 0; }
.matrix-cell--tr { border-radius: 0 7px 0 0; }
.matrix-cell--bl { border-radius: 0 0 0 7px; }
.matrix-cell--br { border-radius: 0 0 7px 0; }

.matrix-cell--clickable {
  cursor: pointer;
  transition: filter 0.1s;
}
.matrix-cell--clickable:hover { filter: brightness(0.88); }

/* ── Column filters in thead ──────────────────────────────────────────────── */
/* Sticky filter row (row 1) */
.thead-filters td {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f1f5f9;
  padding: 10px 8px;
  border-bottom: none;
  box-shadow: 0 1px 0 #f1f5f9;
}
tr:hover .thead-filters td { background: #f1f5f9; }

/* Sticky labels row (row 2) — sits below the filter row */
.thead-labels th {
  position: sticky;
  top: 46px;
  z-index: 2;
  background: #f8fafc;
  border-bottom: none;
  padding-top: 12px;
  padding-bottom: 12px;
  /* Box shadow replaces the border since borders don't stick with position:sticky + border-collapse:collapse */
  box-shadow: 0 2px 0 #e2e8f0;
}
.thead-labels th.sortable { cursor: pointer; }
.thead-labels th.sortable:hover { background: #f1f5f9; color: #2f6067; }
.thead-labels th.sortable:hover a { color: #2f6067; }
.thead-labels th.sortable a {
  color: inherit;
  text-decoration: none;
  display: block;
}
.thead-labels th.sort-active { color: #2f6067; }
.thead-labels th.sort-active a { color: #2f6067; }
.filter-search-inner { display: flex; align-items: center; gap: 6px; }
.filter-search-inner .col-filter-text {
  flex: 1; width: auto;
  height: 26px; line-height: 26px;
  padding: 0 10px; font-size: 11px;
  border: 1px solid #e2e8f0; border-radius: 13px;
  background: #fff; color: #374151;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
  appearance: none; -webkit-appearance: none;
  box-sizing: border-box;
}
.thead-filters td:first-child { padding-left: 12px !important; }
.thead-filters td { overflow: visible; }
.btn-clear-filter {
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px;
  border-radius: 13px;
  background: #fee2e2; color: #b91c1c;
  border: 1px solid #fca5a5;
  font-size: 11px; font-weight: 700;
  text-decoration: none; line-height: 1;
  transition: background 0.1s;
}
.btn-clear-filter:hover { background: #fecaca; text-decoration: none; }
.btn-clear-filter--hidden { visibility: hidden; pointer-events: none; }

.filter-score-chips { text-align: center; }
.score-filter-chip {
  font-size: 11px; color: #374151; background: #f1f5f9;
  border: 1px solid #e2e8f0; border-radius: 4px;
  padding: 2px 8px; white-space: nowrap;
  display: inline-block;
}

.score-col-th { text-align: center !important; }
.score-col-th a { display: block; }
.score-col-td { text-align: center; padding-left: 4px !important; padding-right: 4px !important; overflow: visible !important; position: relative; }
.score-col-td.score-col-sep::after {
  content: '‣';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translate(50%, -50%);
  color: #cbd5e1;
  font-size: 16px;
  pointer-events: none;
  z-index: 1;
}
.scoring-val {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  width: 100%;
  box-sizing: border-box;
}
.scoring-val.score-low    { background: #dcfce7; color: #166534; }
.scoring-val.score-medium { background: #fef3c7; color: #92400e; }
.scoring-val.score-high   { background: #fee2e2; color: #991b1b; }
.scoring-val.scoring-empty { background: #f1f5f9; color: #94a3af; }

/* DFA chip — outline style */
.scoring-val.scoring-outline              { background: transparent; }
.scoring-val.scoring-outline.score-low    { border: 1.5px solid #16a34a; color: #166534; }
.scoring-val.scoring-outline.score-medium { border: 1.5px solid #d97706; color: #92400e; }
.scoring-val.scoring-outline.score-high   { border: 1.5px solid #dc2626; color: #991b1b; }
.scoring-val.scoring-outline.scoring-empty { border: 1.5px solid #cbd5e1; color: #94a3af; background: transparent; }

/* Last-updated staleness colors */
.update-fresh   { color: #475569; font-size: 12px; }
.update-warning { color: #475569; font-size: 12px; }
.update-stale   { color: #dc2626; font-size: 12px; font-weight: 600; }

.col-filter-text,
.col-filter-select {
  width: 100%;
  height: 26px;
  padding: 0 10px;
  font-size: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #fff;
  color: #374151;
  box-sizing: border-box;
  appearance: none;
  -webkit-appearance: none;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.col-filter-select--empty { color: #757575; }
.col-filter-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%2394a3b8' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 26px;
}
.col-filter-text:focus,
.col-filter-select:focus {
  outline: none;
  border-color: #2f6067;
  box-shadow: 0 0 0 3px rgba(47,96,103,0.1);
}
/* ── Category chips ───────────────────────────────────────────────────────── */
.category-chip {
  display: inline-block;
  vertical-align: middle;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.cat-blue   { background: #b3e2cd; color: #1b5e20; }
.cat-purple { background: #fdcdac; color: #bf360c; }
.cat-teal   { background: #cbd5e8; color: #283593; }
.cat-orange { background: #f4cae4; color: #880e4f; }
.cat-pink   { background: #e6f5c9; color: #33691e; }
.cat-indigo { background: #fff2ae; color: #f57f17; }
.cat-green  { background: #f1e2cc; color: #4e342e; }
.cat-amber  { background: #cccccc; color: #37474f; }
.cat-red    { background: #b3cde3; color: #1565c0; }
.cat-cyan   { background: #fbb4ae; color: #b71c1c; }

/* Fixed-layout table cell truncation */
td, th { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
td a   { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
td:first-child, th:first-child { padding-left: 20px !important; }
td:last-child, th:last-child   { padding-right: 20px !important; }

/* ── Home / personalized view ─────────────────────────────────────────────── */
.required-actions-card {
  border: 2px solid #fca5a5; margin-bottom: 24px;
}
.required-actions-card h2 { margin-bottom: 16px; }
/* Unified overdue list */
.ra-unified-item {
  padding: 10px 8px; border-bottom: 1px solid #f1f5f9;
  cursor: pointer; border-radius: 4px;
}
.ra-unified-item:last-child { border-bottom: none; }
.ra-unified-item:hover { background: #f8fafc; }
.ra-unified-id {
  font-family: 'SF Mono', 'Fira Code', monospace; font-size: 12px; color: #64748b;
}
.ra-unified-title a { color: #2563eb; text-decoration: none; font-weight: 500; font-size: 14px; pointer-events: none; }
.ra-row { display: grid; grid-template-columns: 55px 30% 1fr; align-items: baseline; gap: 10px; }
.ra-issues { display: flex; flex-direction: column; gap: 3px; }
.ra-issue { font-size: 12px; color: #64748b; line-height: 1.5; display: flex; align-items: center; gap: 14px; }
.ra-pill {
  display: inline-block; font-size: 10px; font-weight: 600;
  padding: 1px 8px; border-radius: 10px; letter-spacing: 0.03em;
  flex-shrink: 0; white-space: nowrap;
}
.ra-pill--review { background: #eff6ff; color: #3b82f6; border: 1px solid #bfdbfe; }
.ra-pill--action { background: #fefce8; color: #ca8a04; border: 1px solid #fde047; }

.home-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 24px;
}
.home-roles {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 8px;
}
.home-role {
  font-size: 13px;
  color: #64748b;
}
.home-role + .home-role::before {
  content: '\00b7';
  margin-right: 6px;
}
.home-welcome {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 2px;
}
.home-name {
  font-size: 26px;
  font-weight: 700;
  color: #0f172a;
}


.home-empty {
  text-align: center;
  padding: 80px 24px;
  color: #64748b;
}
.home-empty__icon { font-size: 48px; margin-bottom: 16px; }
.home-empty h2 { font-size: 18px; font-weight: 600; color: #1e293b; margin-bottom: 8px; }
.home-empty p  { margin-bottom: 20px; }

/* ── User picker ──────────────────────────────────────────────────────────── */
.picker-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 52px);
}
.picker-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  text-align: center;
}
.picker-icon  { font-size: 40px; margin-bottom: 16px; }
.picker-title { font-size: 20px; font-weight: 700; color: #0f172a; margin-bottom: 8px; }
.picker-sub   { font-size: 13px; color: #94a3b8; margin-bottom: 24px; line-height: 1.5; }
.picker-card .form-group { text-align: left; }

/* Tables without a filter row — headers stick at top: 0 */
.table-wrap--no-filters .thead-labels th { top: 0; }

/* ── Home 3-panel mini dashboard ─────────────────────────────────────────── */
.home-mini-dash {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.8fr) auto minmax(0, 1.8fr);
  gap: 16px;
  margin-bottom: 24px;
}
.home-mini-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
}
.home-mini-card__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
  margin-bottom: 10px;
  flex-shrink: 0;
}

/* KPI tile */
.home-kpi-card { align-items: stretch; }
.home-kpi-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.home-kpi-hero {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding-top: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 24px;
}
.home-kpi-big {
  font-size: 42px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1;
}
.home-kpi-sublabel {
  font-size: 14px;
  color: #94a3b8;
  font-weight: 500;
}
.home-kpi-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.home-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  text-decoration: none;
  width: fit-content;
  cursor: pointer;
  transition: filter .15s;
}
.home-kpi-pill:hover { filter: brightness(0.95); text-decoration: none; }
.home-kpi-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.home-kpi-pill--red  { background: #fef2f2; color: #dc2626; }
.home-kpi-pill--red  .home-kpi-pill__dot { background: #dc2626; }
.home-kpi-pill--yellow { background: #fefce8; color: #a16207; }
.home-kpi-pill--yellow .home-kpi-pill__dot { background: #eab308; }
.home-kpi-pill--amber { background: #eef2ff; color: #4338ca; }
.home-kpi-pill--amber .home-kpi-pill__dot { background: #6366f1; }
.home-kpi-pill--zero { background: #f8fafc; color: #94a3b8; cursor: default; }
.home-kpi-pill--zero .home-kpi-pill__dot { background: #cbd5e1; }

/* Home filter bar */
#home-filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 7px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 12px;
  color: #475569;
}
.home-filter-label { font-weight: 600; }
.home-filter-clear {
  display: none;
  margin-left: auto;
  background: none;
  border: none;
  font-size: 12px;
  color: #64748b;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}
.home-filter-clear:hover { background: #e2e8f0; }

/* Mini matrix sizing */
.home-mini-card .matrix-cell  { font-size: 11px; }
.home-mini-card .matrix-y-labels span { font-size: 9px; }
.home-mini-card .matrix-x-labels span { font-size: 9px; }
.home-mini-card .matrix-y-title { font-size: 8px; }
.home-mini-card .matrix-x-title { font-size: 8px; }

/* ── Activity timeline (A1: spine + stylised dots) ───────────────────────── */
.act-timeline {
  position: relative;
  padding-left: 40px;
}
.act-timeline::before {
  content: '';
  position: absolute;
  left: 12px; top: 14px; bottom: 14px;
  width: 2px;
  background: #e2e8f0;
  border-radius: 2px;
}
.act-timeline::after {
  content: '';
  position: absolute;
  left: 9px; bottom: 8px;
  width: 8px; height: 8px;
  background: #e2e8f0;
  border-radius: 2px;
}
.act-item {
  position: relative;
  margin-bottom: 14px;
}
.act-item:last-child { margin-bottom: 0; }

/* dot */
.act-dot {
  position: absolute;
  left: -40px; top: 5px;
  width: 24px; height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  display: flex; align-items: center; justify-content: center;
}
.act-dot--review { background: #eff6ff; border-color: #93c5fd; }
.act-dot--open   { background: #fefce8; border-color: #fde047; }
.act-dot--done   { background: #f0fdf4; border-color: #86efac; }

/* inner symbol */
.act-dot--review::after,
.act-dot--open::after {
  content: '';
  width: 8px; height: 8px;
}
.act-dot--review::after { background: #3b82f6; border-radius: 50%; }
.act-dot--open::after   { background: #ca8a04; border-radius: 1px; }
.act-dot--done::after {
  content: '';
  width: 5px; height: 9px;
  border-right: 2px solid #22c55e;
  border-bottom: 2px solid #22c55e;
  transform: rotate(45deg) translate(-1px, -1px);
  border-radius: 0;
}

/* card body */
.act-body {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 14px;
}

/* meta row */
.act-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 6px; flex-wrap: wrap;
}
.act-creator { font-size: 12px; font-weight: 600; color: #64748b; }
.act-date    { font-size: 12px; color: #94a3b8; margin-left: auto; }

/* type pill */
.act-pill {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 20px;
}
.act-pill--review { background: #eff6ff; color: #3b82f6; }
.act-pill--open   { background: #fefce8; color: #ca8a04; }
.act-pill--done   { background: #f0fdf4; color: #22c55e; }

/* body text */
.act-text { font-size: 13px; color: #334155; line-height: 1.6; }
.act-text p { margin: 0 0 0.4em 0; }
.act-text p:last-child { margin-bottom: 0; }
.act-text ul { margin: 0.4em 0; padding-left: 1.5em; }
.act-text li { margin: 0; line-height: 1.6; }

/* action footer */
.act-footer {
  margin-top: 10px; padding-top: 9px;
  border-top: 1px solid #f1f5f9;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  font-size: 12px; color: #64748b;
}
.act-footer strong { color: #334155; }
.act-due { margin-left: auto; color: #1e293b; font-weight: 500; }

/* status chips */
.act-status-chip {
  font-size: 10px; font-weight: 600;
  padding: 2px 8px; border-radius: 20px;
}
.act-chip--open { background: #fefce8; color: #ca8a04; border: 1px solid #fde047; }
.act-chip--done { background: #f0fdf4; color: #22c55e; border: 1px solid #86efac; }

/* ── Hover-reveal action icons ──────────────────────────────────────────────── */
.act-actions {
  display: flex; gap: 4px; margin-left: 8px;
  opacity: 0; transition: opacity 0.15s;
}
.act-item:hover .act-actions { opacity: 1; }
.act-btn {
  width: 26px; height: 26px; border-radius: 50%;
  border: 1px solid #e2e8f0; background: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: #94a3b8; transition: all 0.12s;
  position: relative;
}
.act-btn:hover { background: #f1f5f9; color: #475569; border-color: #cbd5e1; }
.act-btn--complete:hover { color: #22c55e; border-color: #86efac; background: #f0fdf4; }
.act-btn--reopen:hover   { color: #ca8a04; border-color: #fde047; background: #fefce8; }
.act-btn--delete:hover   { color: #ef4444; border-color: #fca5a5; background: #fef2f2; }

/* Tooltip for action buttons */
.act-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 6px); left: 50%;
  transform: translateX(-50%); white-space: nowrap;
  font-size: 11px; font-weight: 500; color: #fff; background: #334155;
  padding: 3px 8px; border-radius: 4px;
  opacity: 0; pointer-events: none; transition: opacity 0.12s;
}
.act-btn[data-tip]:hover::after { opacity: 1; }


/* ── Edit modal (for editing reviews and actions inline) ───────────────────── */
.edit-modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.35); backdrop-filter: blur(2px);
  z-index: 100; display: none; align-items: center; justify-content: center;
}
.edit-modal-overlay.visible { display: flex; }
.edit-modal {
  background: #fff; border-radius: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.16);
  width: 600px; max-width: 90vw; max-height: 80vh; overflow-y: auto;
  padding: 24px;
}
.edit-modal h3 { font-size: 16px; font-weight: 700; color: #1e293b; margin: 0; }
.edit-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px 16px; border-bottom: 1px solid #e2e8f0; margin: -24px -24px 16px;
}
.edit-modal .edit-field { margin-bottom: 14px; }
.edit-modal .edit-field label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.edit-modal .edit-field input[type="text"] {
  width: 100%; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; font-family: inherit;
}
.edit-modal .edit-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.edit-modal .btn-save {
  background: #2563eb; color: #fff; border: 1px solid #1d4ed8;
  padding: 7px 20px; border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.edit-modal .btn-save:hover { background: #1d4ed8; }
.edit-modal .btn-cancel-edit {
  background: #fff; color: #64748b; border: 1px solid #d1d5db;
  padding: 7px 20px; border-radius: 6px; font-size: 13px; font-weight: 500;
  cursor: pointer; transition: background 0.15s;
}
.edit-modal .btn-cancel-edit:hover { background: #f1f5f9; color: #475569; }
.edit-row-label { display: block; font-size: 12px; font-weight: 600; color: #64748b; margin-bottom: 4px; }
.edit-action-bottom-row {
  display: none; align-items: flex-start; gap: 16px; margin-bottom: 14px;
}
.edit-due-date {
  width: 100%; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; font-family: inherit; box-sizing: border-box; height: 34px;
}
.edit-due-date::placeholder { color: rgba(0,0,0,0.6); }
.edit-due-date:focus { outline: none; border-color: #2f6067; box-shadow: 0 0 0 3px rgba(47,96,103,.12); }
#edit-quill-container { height: 150px; }
#edit-quill-container .ql-editor { min-height: 120px; }

/* ── Risk modal (wider variant for add/edit risk) ────────────────────────── */
.edit-modal.risk-modal-wide {
  width: 820px; max-width: 94vw; max-height: 85vh;
  display: flex; flex-direction: column;
  overflow-y: hidden;
  padding: 0;
}
.edit-modal.risk-modal-wide > form {
  display: flex; flex-direction: column;
  flex: 1; min-height: 0;
}
.edit-modal.risk-modal-wide .risk-modal-body {
  overflow-y: auto; flex: 1; min-height: 0;
  padding: 16px 24px;
}
.risk-modal-body .scores-edit {
  width: 100%; margin-left: 0; padding: 0;
}
.risk-modal-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 24px 16px; border-bottom: 1px solid #e2e8f0; flex-shrink: 0;
}
.risk-modal-header h3 { margin: 0; }
.risk-modal-close {
  background: none; border: none; font-size: 22px; line-height: 1;
  color: #94a3b8; cursor: pointer; padding: 4px 8px;
}
.risk-modal-close:hover { color: #475569; }
.rm-title-lg { font-size: 20px !important; font-weight: 600; padding: 6px 10px !important; height: 38px !important; }
.rm-title-lg::placeholder { color: rgba(0,0,0,0.6); }
.risk-modal-body {
  padding: 16px 24px;
}
.risk-modal-footer {
  display: flex; gap: 8px; justify-content: flex-end; align-items: center;
  padding: 16px 24px; border-top: 1px solid #e2e8f0; flex-shrink: 0;
}
.rm-unsaved-indicator {
  display: none; margin-right: auto; font-size: 12px; font-weight: 500; color: #dc2626;
}
.rm-unsaved-indicator.visible { display: inline; }
.risk-modal-section { margin-bottom: 20px; }
.risk-modal-section h4 {
  font-size: 11px; font-weight: 700; color: #64748b;
  text-transform: uppercase; letter-spacing: 0.06em;
  margin-bottom: 10px;
}
.risk-modal-section h5 {
  font-size: 13px; font-weight: 600; color: #475569; margin-bottom: 8px;
}
.rm-row { display: flex; gap: 12px; }
.rm-row-2 > * { flex: 1; }
.rm-field { margin-bottom: 10px; }
.rm-field label {
  display: block; font-size: 12px; font-weight: 600; color: #94a3b8; margin-bottom: 4px;
}
.rm-field input[type="text"] {
  width: 100%; padding: 7px 10px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; font-family: inherit; box-sizing: border-box;
}
.rm-field input[type="text"]:focus {
  outline: none; border-color: #2f6067; box-shadow: 0 0 0 3px rgba(47,96,103,.12);
}
/* ── Custom single-select dropdowns ──────────────────────────────────────── */
.rm-single-select { position: relative; }
.rm-single-trigger {
  width: 100%; height: 34px; padding: 7px 28px 7px 10px;
  background: #fff; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 13px; font-family: inherit; color: #1e293b;
  box-sizing: border-box; cursor: pointer; text-align: left;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 8px center;
  transition: border-color 0.15s, box-shadow 0.15s;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rm-single-trigger:hover { border-color: #94a3b8; }
.rm-single-trigger:focus {
  outline: none; border-color: #2f6067; box-shadow: 0 0 0 3px rgba(47,96,103,.12);
}
.rm-single-trigger.placeholder { color: rgba(0,0,0,0.6); }
.rm-single-dropdown { display: none; }
.rm-single-dropdown.open { display: block; }
.rm-single-dropdown li.rm-single-active {
  background: #f0f9ff; color: #2563eb; font-weight: 500;
}
.rm-cat-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 8px; vertical-align: middle; flex-shrink: 0;
}
.rm-single-trigger .rm-cat-dot { margin-right: 6px; }
#rm-desc-editor .ql-editor { min-height: 80px; }
#rm-miti-editor .ql-editor { min-height: 80px; }

/* Risk modal tag chips — unified style system */
.rm-tag-chip {
  font-size: 12px; padding: 3px 8px; border-radius: 12px;
  display: inline-flex; align-items: center; gap: 4px;
  border: none;
}
.rm-tag-chip button {
  background: none; border: none; cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 0 0 2px;
  opacity: 0.5;
}
.rm-tag-chip button:hover { opacity: 1; }
/* Owners — indigo */
.rm-chip-generic { background: #e0e7ff; color: #3730a3; }
.rm-chip-generic button { color: #3730a3; }
/* Departments — teal */
.rm-chip-department { background: #ccfbf1; color: #0f766e; }
.rm-chip-department button { color: #0f766e; }
/* Themes — purple */
.rm-chip-theme { background: #f3e8ff; color: #6b21a8; }
.rm-chip-theme button { color: #6b21a8; }
/* Objectives — dynamic bg + derived text color via inline style */
.owner-tag-chip.objective-chip { border: none; }
.owner-tag-chip.objective-chip button { color: inherit; }

/* ── Sidebar mini risk matrix ────────────────────────────────────────────── */
.sm-grid-wrap { position: relative; display: inline-block; }
.sm-grid { display: flex; flex-direction: column; gap: 2px; }
.sm-row  { display: flex; gap: 2px; }
.sm-cell { width: 40px; height: 40px; border-radius: 0; display: flex; align-items: center; justify-content: center; }
.sm-cell--tl { border-radius: 6px 0 0 0; }
.sm-cell--tr { border-radius: 0 6px 0 0; }
.sm-cell--bl { border-radius: 0 0 0 6px; }
.sm-cell--br { border-radius: 0 0 6px 0; }

/* Overlap fade animation — alternates between inherent (circle) and residual (triangle) */
.sm-fade { position: absolute; }
.sm-fade-a { animation: smFade 2s ease-in-out infinite; }
.sm-fade-b { animation: smFade 2s ease-in-out 1s infinite; }
@keyframes smFade { 0%,30% { opacity:1; } 40%,80% { opacity:0; } 90%,100% { opacity:1; } }
.sm-very-low { background: #86efac; }
.sm-low      { background: #fef08a; }
.sm-medium   { background: #fed7aa; }
.sm-high     { background: #fca5a5; }
.sm-critical { background: #f87171; }
.sm-arrow-svg { position: absolute; top: 0; left: 0; pointer-events: none; }
.sm-body { display: flex; gap: 6px; align-items: stretch; }
.sm-y-title {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 9px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: #cbd5e1;
  flex-shrink: 0; width: 12px; text-align: center;
}
.sm-x-title {
  font-size: 9px; font-weight: 600; letter-spacing: 0.07em;
  text-transform: uppercase; color: #cbd5e1;
  text-align: center; margin-top: 5px;
  padding-left: 18px; /* offset by y-title (12px) + gap (6px) to center under grid */
}
.sm-legend { display: flex; gap: 14px; font-size: 11px; color: #475569; margin-top: 10px; }
.sm-legend span { display: flex; align-items: center; gap: 5px; }

/* ── Scoring Guidance Modal ──────────────────────────────────────────────── */
.guidance-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(0,0,0,0.45);
  display: flex; align-items: center; justify-content: center;
}
.guidance-modal {
  background: #fff; border-radius: 10px;
  width: 92vw; max-width: 1100px;
  max-height: 88vh;
  display: flex; flex-direction: column;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
}
.guidance-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.guidance-header h2 {
  font-size: 15px; font-weight: 700; color: #1e293b; margin: 0;
}
.guidance-close {
  background: none; border: none; font-size: 22px; color: #94a3b8;
  cursor: pointer; line-height: 1; padding: 0 4px;
}
.guidance-close:hover { color: #334155; }
.guidance-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
}
.guidance-body h3 {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.05em; color: #64748b; margin: 0 0 8px;
}
.guidance-body h3:nth-of-type(2) { margin-top: 18px; }
.guidance-scroll { overflow-x: auto; }
.guidance-table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  font-size: 11px; line-height: 1.4; color: #334155;
  border: 1px solid #e2e8f0; border-radius: 8px;
  overflow: hidden;
}
.guidance-table th {
  background: #f1f5f9; font-weight: 600; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.04em; color: #64748b;
  padding: 6px 8px; text-align: left;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  white-space: nowrap; vertical-align: middle;
}
.guidance-table th:last-child { border-right: none; }
.guidance-table td {
  padding: 6px 8px;
  border-bottom: 1px solid #e2e8f0;
  border-right: 1px solid #e2e8f0;
  vertical-align: middle;
  white-space: normal !important; overflow: visible !important; text-overflow: unset !important;
}
.guidance-table td:last-child { border-right: none; }
.guidance-table tbody tr:last-child td { border-bottom: none;
}
.guidance-table tbody tr:hover td { background: transparent !important; cursor: default; }
.guidance-table tbody tr:hover td.g-level--5 { background: #f87171 !important; }
.guidance-table tbody tr:hover td.g-level--4 { background: #fca5a5 !important; }
.guidance-table tbody tr:hover td.g-level--3 { background: #fed7aa !important; }
.guidance-table tbody tr:hover td.g-level--2 { background: #fef08a !important; }
.guidance-table tbody tr:hover td.g-level--1 { background: #86efac !important; }
.guidance-table--likelihood tbody td { height: 44px; }
.guidance-table--impact tbody tr { height: 140px; }
.g-level {
  font-weight: 600; white-space: nowrap; font-size: 11px;
}
.g-level--5 { background: #f87171; color: #7f1d1d; }
.g-level--4 { color: #9a3412; background: #fca5a5; }
.g-level--3 { color: #78350f; background: #fed7aa; }
.g-level--2 { color: #713f12; background: #fef08a; }
.g-level--1 { color: #14532d; background: #86efac; }
.guidance-table--likelihood { max-width: 700px; }
.guidance-table--likelihood td:last-child { white-space: nowrap; text-align: center; font-weight: 600; }

/* ── App version footer ──────────────────────────────────────────────── */
.app-version {
  color: #94a3b8;
  font-size: 12px;
  padding: 24px 32px 16px;
  max-width: 1200px;
}

/* ── Department head comments ────────────────────────────────────────── */
.dh-comment {
  margin-top: 10px;
  padding: 8px 12px;
  background: #fdf4f0;
  border-radius: 6px;
  border: 1px dashed #e8b4a0;
}
.dh-comment-meta {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 4px;
}
.dh-comment-pill {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; padding: 2px 8px; border-radius: 20px;
  background: #f0d4c8; color: #7c2d12;
}
.dh-comment-author { font-size: 13px; font-weight: 600; color: #6c3028; }
.dh-comment-date { font-size: 12px; color: #a0553e; opacity: 0.5; margin-left: auto; }
.dh-comment-text { font-size: 13px; color: #5c2518; line-height: 1.5; }
.dh-comment-text p { margin: 0; }
.dh-comments-list > *:not(:last-child) { margin-bottom: 6px; }
.dh-add-comment-btn {
  display: inline-flex; align-items: center; gap: 4px;
  margin-top: 8px;
  font-size: 12px; color: #9a3412;
  background: none; border: 1px dashed #e8b4a0;
  padding: 4px 10px; border-radius: 4px; cursor: pointer;
}
.dh-add-comment-btn:hover { background: #fae8e0; border-color: #c87a60; color: #7c2d12; }
.dh-comment-input-wrap {
  margin-top: 8px;
  display: flex; gap: 8px; align-items: flex-start;
}
.dh-comment-input-wrap textarea {
  flex: 1; font-size: 13px; border: 1px solid #e8b4a0; border-radius: 6px;
  padding: 8px 10px; resize: vertical; min-height: 56px;
  background: #fdf4f0; color: #5c2518;
  font-family: inherit;
}
.dh-comment-input-wrap textarea:focus { outline: none; border-color: #c87a60; box-shadow: 0 0 0 2px rgba(200,122,96,.15); }
.dh-comment-input-wrap .dh-submit-btn {
  background: #a0553e; color: #fff; border: none; border-radius: 6px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
}
.dh-comment-input-wrap .dh-submit-btn:hover { background: #7c2d12; }

/* ── Risk-modal inline validation banner ──────────────────────────────── */
.rm-validation-banner {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 12px;
}

.undo-toast {
  position: fixed;
  bottom: 24px; left: 24px;
  display: flex; align-items: center; gap: 12px;
  background: #1e293b;
  color: #f1f5f9;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  box-shadow: 0 4px 12px rgba(0,0,0,.25);
  z-index: 9999;
  opacity: 1;
  transition: opacity 2s;
}
.undo-toast--hide { opacity: 0; }
.undo-toast-msg { font-weight: 500; }
.undo-toast-btn {
  background: transparent;
  color: #60a5fa;
  border: none;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.undo-toast-btn:hover { color: #93c5fd; }
.undo-toast-close {
  background: transparent;
  color: #94a3b8;
  border: none;
  font-size: 18px;
  cursor: pointer;
  padding: 0 0 0 4px;
  line-height: 1;
}
.undo-toast-close:hover { color: #f1f5f9; }

/* ── Extracted inline style utilities ────────────────────────────────────── */
.admin-section-header {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 36px; margin-bottom: 4px;
}
.admin-desc { margin: 0 0 12px; }
.audit-details { font-size: 12px; max-width: 400px; overflow: hidden; text-overflow: ellipsis; }
.audit-pagination { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 12px 0 0; }
.admin-empty { padding: 16px 0; }
.maint-row { cursor: pointer; }

/* Admin toggle buttons */
.btn-admin-add {
  background: #fff; color: #2f6067; border: 1px solid #2f6067;
  font-weight: 500; min-width: 70px; justify-content: center;
}
.btn-admin-add:hover { background: #2f6067; color: #fff; }
.btn-admin-remove {
  background: #fff; color: #dc2626; border: 1px solid #fca5a5;
  font-weight: 500; min-width: 70px; justify-content: center;
}
.btn-admin-remove:hover { background: #fef2f2; color: #b91c1c; border-color: #dc2626; }
.btn-admin-remove:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-admin-remove:disabled:hover { background: #fff; color: #dc2626; border-color: #fca5a5; }

/* Dept head chips in user management */
.user-dept-head-cell { white-space: normal; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
tr[id^="user-"] { scroll-margin-top: 70px; }
.dept-head-chip {
  display: inline-flex; align-items: center; gap: 2px;
  background: #ccfbf1; color: #0f766e; border-radius: 6px;
  padding: 5px 8px; font-size: 12px; font-weight: 500;
  margin: 2px 2px 2px 0; white-space: nowrap;
}
.dept-head-chip-remove {
  background: none; border: none; color: #0f766e; cursor: pointer;
  font-size: 14px; line-height: 1; padding: 0 0 0 2px; opacity: 0.5;
}
.dept-head-chip-remove:hover { opacity: 1; }
.dept-head-add-wrap { display: inline-block; vertical-align: middle; }
.dept-head-add-select {
  font-size: 12px; padding: 5px 8px; border: 1px dashed #cbd5e1;
  border-radius: 6px; background: #fff; color: #64748b; cursor: pointer;
  appearance: none; -webkit-appearance: none;
}
.dept-head-add-select:hover { border-color: #94a3b8; color: #334155; }
.confirm-modal-box { width: 400px; text-align: center; }
.confirm-modal-help { color: #64748b; font-size: 13px; margin-bottom: 18px; }
.confirm-modal-actions { justify-content: center; }
.confirm-modal-form { display: inline; }
.sidebar-matrix-wrap { display: flex; flex-direction: column; align-items: center; }
.score-badge-sm { font-size: 11px; padding: 2px 7px; }
.dash-card--bottom { margin-bottom: 24px; }
.edit-action-col-main { flex: 1; }
.edit-action-col-due { width: 40%; }

/* ── Login page ──────────────────────────────────────────────────────────── */
.login-body {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
  background: #f2f4f7;
}
.login-visual-panel {
  width: 55%;
  min-height: 100vh;
  background: linear-gradient(155deg, #2F6067 0%, #2B7F68 45%, #1A5026 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-gear-scene {
  position: relative;
  width: 600px;
  height: 520px;
  z-index: 1;
}
.login-gear-unit { position: absolute; }
.login-gear-unit svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.35));
  overflow: visible;
}
.login-gu1 { top: 17px;  left: 3px;   width: 275px; height: 275px; }
.login-gu2 { top: -5px;  right: 15px; width: 230px; height: 230px; }
.login-gu3 { top: 230px; left: 150px; width: 245px; height: 245px; }
.login-gu4 { bottom: -17px; left: -11px; width: 205px; height: 205px; }
.login-gu5 { bottom: 115px; right: -41px; width: 215px; height: 215px; }
.login-panel {
  width: 45%;
  min-height: 100vh;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 60px 60px 150px;
  z-index: 2;
  box-shadow: -4px 0 30px rgba(0,0,0,0.08);
}
.login-inner { width: 100%; max-width: 360px; }
.login-logo-leaf { width: 52px; height: 52px; margin-bottom: 32px; }
.login-logo-leaf img { width: 100%; height: 100%; }
.login-app-title { font-size: 32px; font-weight: 800; color: #1A5026; line-height: 1.15; }
.login-app-subtitle { font-size: 26px; font-weight: 700; color: #2B7F68; margin-bottom: 8px; }
.login-title-accent {
  width: 48px; height: 4px;
  background: linear-gradient(90deg, #2B7F68, #67C18C);
  border-radius: 2px;
  margin: 16px 0 20px;
}
.login-app-desc { font-size: 14px; color: #64748b; margin-bottom: 40px; line-height: 1.6; }
.login-google-btn {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  width: 100%; padding: 16px 24px;
  border: none; border-radius: 12px;
  background: #2B7F68; font-size: 15px; font-weight: 600; color: #fff;
  cursor: pointer; transition: all 0.2s; text-decoration: none;
  box-shadow: 0 4px 14px rgba(43,127,104,0.35);
}
.login-google-btn:hover {
  background: #1A5026;
  box-shadow: 0 6px 20px rgba(26,80,38,0.4);
  transform: translateY(-1px);
  color: #fff; text-decoration: none;
}
.login-google-icon-wrap {
  background: #fff; border-radius: 4px; padding: 2px;
  display: flex; align-items: center; justify-content: center;
}
.login-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 24px 0; font-size: 12px; color: #94a3b8;
}
.login-divider::before, .login-divider::after { content: ''; flex: 1; height: 1px; background: #e2e8f0; }
.login-security-badge {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px; background: #f0fdf4;
  border: 1px solid #bbf7d0; border-radius: 10px;
  font-size: 13px; color: #166534;
}
.login-security-badge svg { flex-shrink: 0; }
.login-error {
  background: #fef2f2; border: 1px solid #fca5a5; border-radius: 8px;
  padding: 12px 16px; margin-bottom: 20px; color: #991b1b; font-size: 13px;
}

