/* ===== NIS2SupplierKit — Royal Blue Security Design Kit ===== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  color-scheme: light;
  /* Brand — Royal Blue (distinctly NOT teal) */
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --brand-light: #eff6ff;
  --brand-mid: #bfdbfe;
  /* Semantic */
  --accent: #d97706;
  --danger: #dc2626;
  --ok: #16a34a;
  /* Surface */
  --ink: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --paper: #f8fafc;
  --panel: #ffffff;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img, svg { display: block; max-width: 100%; }

/* ===== TYPOGRAPHY ===== */
h1, h2, h3 {
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, sans-serif;
  overflow-wrap: anywhere;
  letter-spacing: -0.018em;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  font-weight: 800;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  line-height: 1.12;
  font-weight: 800;
}

h3 {
  margin: 8px 0;
  font-size: 1.06rem;
  font-weight: 700;
}

p { overflow-wrap: anywhere; }

/* ===== STICKY GLASS NAV ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 0.97rem;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  font-size: 0.78rem;
  font-weight: 800;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  font-size: 0.86rem;
  overflow: hidden;
}

.nav-links a {
  padding: 6px 9px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--ink);
  background: var(--brand-light);
}

.language {
  padding: 5px 11px !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 6px !important;
  background: var(--panel) !important;
  color: var(--ink) !important;
  font-weight: 600 !important;
  font-size: 0.8rem !important;
  margin-left: 4px !important;
  transition: border-color 0.15s, color 0.15s !important;
}

.language:hover {
  border-color: var(--brand) !important;
  color: var(--brand) !important;
  background: var(--brand-light) !important;
}

/* ===== DARK HERO ===== */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0f172a 100%);
  position: relative;
  overflow: hidden;
  color: #f0f6ff;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -5%;
  width: 55%;
  height: 130%;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero h1 { color: #f0f6ff; }

/* ===== LAYOUT CONTAINERS ===== */
.hero-inner,
.section-inner,
.footer-inner,
.article {
  max-width: 1200px;
  margin: 0 auto;
  padding: 72px 24px;
  position: relative;
  z-index: 1;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: center;
}

/* ===== EYEBROW BADGE ===== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 16px;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 12px;
  border-radius: 999px;
  width: fit-content;
  color: var(--brand);
  border: 1px solid var(--brand-mid);
  background: var(--brand-light);
}

.hero .eyebrow {
  color: #93c5fd;
  border-color: rgba(147, 197, 253, 0.3);
  background: rgba(37, 99, 235, 0.18);
}

.lead {
  max-width: 680px;
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  margin: 14px 0 0;
}

.hero .lead { color: #cbd5e1; }

.trust {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 10px 0 0;
}

.hero .trust { color: #94a3b8; }

/* ===== BUTTONS ===== */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 10px 22px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: #fff;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.38);
  white-space: nowrap;
  line-height: 1.3;
}

.button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 7px 22px rgba(37, 99, 235, 0.48);
}

.button:active { transform: translateY(0); }

/* Secondary in hero (dark context) */
.hero .button.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  border: 1.5px solid rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.hero .button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  box-shadow: none;
  transform: translateY(-1px);
}

/* Secondary in light context */
.button.secondary {
  background: var(--panel);
  color: var(--brand);
  border: 1.5px solid var(--brand-mid);
  box-shadow: none;
}

.button.secondary:hover {
  background: var(--brand-light);
  border-color: var(--brand);
  transform: translateY(-1px);
}

.button.small {
  min-height: 34px;
  padding: 5px 14px;
  font-size: 0.78rem;
  border-radius: 6px;
}

/* ===== HERO PANEL (glass card) ===== */
.hero-panel {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 26px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-panel-header {
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 18px;
}

.risk-list { display: grid; gap: 10px; }

.risk-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.87rem;
}

.risk-row span {
  font-size: 1.1rem;
  font-weight: 800;
  color: #fbbf24;
}

.risk-row strong { color: #cbd5e1; }

/* ===== SECTIONS ===== */
section { border-bottom: 1px solid var(--line); }
section:nth-of-type(even) { background: #fff; }

.section-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(280px, 1fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

/* ===== CARDS ===== */
.panel,
.card,
.template-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}

.card:hover {
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.1);
  border-color: var(--brand-mid);
  transform: translateY(-2px);
}

.lead-band,
.ad-slot {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
}

/* ===== STEP BADGE ===== */
.step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ===== GRIDS ===== */
.diagnostic-grid,
.checklist,
.resource-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 20px;
  align-items: start;
}

/* ===== QUESTIONNAIRE ===== */
.questionnaire { display: grid; gap: 14px; }

.input-group {
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
}

.input-group input {
  min-height: 44px;
  padding: 10px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.input-group input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.question {
  margin: 0;
  padding: 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  transition: border-color 0.15s;
}

.question:focus-within { border-color: var(--brand-mid); }

.question legend {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0;
  line-height: 1.4;
}

.question legend span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  font-size: 0.7rem;
  font-weight: 800;
  margin-top: 2px;
}

.question p {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 0;
}

.choice-row label {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  font-size: 0.87rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.choice-row label:hover {
  border-color: var(--brand-mid);
  background: var(--brand-light);
}

/* ===== RESULT PANEL ===== */
.result {
  position: sticky;
  top: 80px;
}

.score {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.score strong {
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.status {
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  background: var(--accent);
  color: #fff;
}

.status.ready { background: var(--ok); }
.status.urgent { background: var(--danger); }

/* ===== TEMPLATES ===== */
.template-grid { display: grid; gap: 16px; }

.template-card {
  display: grid;
  grid-template-columns: minmax(200px, 0.75fr) minmax(280px, 1.25fr);
  gap: 20px;
  align-items: start;
}

/* ===== PRICING ===== */
.pricing-card {
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}

.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1);
  border-color: var(--brand-mid);
  transform: translateY(-2px);
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--brand);
}

.pricing-list { margin: 0; padding-left: 18px; }
.pricing-list li { margin-bottom: 6px; font-size: 0.9rem; }

/* ===== CODE ===== */
pre {
  margin: 0;
  white-space: pre-wrap;
  overflow: auto;
  padding: 18px;
  border-radius: 10px;
  background: #0f172a;
  color: #e2e8f0;
  font: 0.85rem/1.6 ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* ===== LEAD BAND ===== */
.lead-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #eff6ff 0%, #eef2ff 100%);
  border: 1px solid var(--brand-mid);
}

.lead-band h2 { font-size: clamp(1.3rem, 2.5vw, 1.9rem); }

/* ===== AD SLOT ===== */
.ad-slot {
  min-height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 28px;
  margin-top: 28px;
  border-style: dashed;
  border-color: var(--line);
  background: var(--paper);
}

/* ===== MISC ===== */
.result-error { display: grid; gap: 12px; }
.article { max-width: 860px; }
.article ul { padding-left: 22px; line-height: 1.85; }
.muted { color: var(--muted); }

/* ===== FOOTER ===== */
.footer {
  background: #0f172a;
  color: #94a3b8;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  font-size: 0.84rem;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: #e2e8f0; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .hero-inner,
  .section-head,
  .tool-grid,
  .template-card {
    grid-template-columns: 1fr;
  }

  .lead-band {
    flex-direction: column;
    align-items: flex-start;
  }

  .diagnostic-grid,
  .checklist,
  .resource-grid,
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .result { position: static; }

  .hero-inner,
  .section-inner,
  .footer-inner,
  .article { padding: 52px 20px; }
}

@media (max-width: 640px) {
  .nav-links a:not(.language):nth-child(n+4) { display: none; }

  .footer-inner { flex-direction: column; }

  .ad-slot { flex-direction: column; align-items: flex-start; }

  .diagnostic-grid,
  .checklist,
  .resource-grid,
  .pricing-grid { grid-template-columns: 1fr; }

  h1 { font-size: 2.1rem; }
}

/* ===== AUTH PAGES ===== */
.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 55%, #0f172a 100%);
  position: relative;
}

.auth-main::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

.auth-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 44px;
}

.auth-header {
  text-align: center;
  margin-bottom: 28px;
}

.auth-header h1 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 14px 0 4px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.auth-form { display: grid; gap: 16px; }

.auth-form label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
}

.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="text"] {
  padding: 11px 14px;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font: inherit;
  font-size: 0.95rem;
  width: 100%;
  background: var(--panel);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.auth-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.auth-form .button {
  width: 100%;
  margin-top: 4px;
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: #fff;
  border: none;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.32);
}

.auth-form .button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.google-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--panel);
  color: var(--ink);
  border: 1.5px solid var(--line);
  text-decoration: none;
  min-height: 44px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.google-btn:hover {
  border-color: #9ca3af;
  background: var(--paper);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.auth-switch {
  text-align: center;
  margin: 18px 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.auth-switch a {
  color: var(--brand);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

.auth-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--danger);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.auth-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  padding: 12px 14px;
  color: var(--ok);
  font-size: 0.88rem;
  margin-bottom: 16px;
}

.danger-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.8rem;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  text-align: left;
  width: 100%;
  margin-top: 16px;
}
.danger-btn:hover { color: var(--danger); background: #fef2f2; }

/* ===== DASHBOARD ===== */
.dashboard-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 248px 1fr;
  gap: 22px;
  align-items: start;
  min-height: calc(100vh - 64px);
}

.dashboard-sidebar {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  position: sticky;
  top: 80px;
  display: grid;
}

.user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #2563eb 0%, #4338ca 100%);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 10px;
}

.user-name {
  font-weight: 700;
  text-align: center;
  margin: 0 0 6px;
  font-size: 0.94rem;
}

.user-role-badge {
  text-align: center;
  font-size: 0.74rem;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  display: inline-block;
  margin: 0 auto 20px;
  font-weight: 600;
}

.user-role-badge.admin {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #92400e;
}

.sidebar-nav { display: grid; gap: 3px; margin-top: 4px; }

.sidebar-nav a,
.sidebar-nav button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.87rem;
  font-weight: 500;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 100%;
  text-align: left;
  transition: background 0.15s, color 0.15s;
}

.sidebar-nav a:hover,
.sidebar-nav button:hover {
  background: var(--paper);
  color: var(--ink);
}

.sidebar-nav a.active {
  background: var(--brand-light);
  color: var(--brand);
  font-weight: 700;
}

.sidebar-sep {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.dashboard-main { display: grid; gap: 18px; }

.dash-widget {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}

.dash-widget h2 {
  margin: 0 0 16px;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(175px, 1fr));
  gap: 12px;
}

.tool-card {
  border: 1.5px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: var(--ink);
  display: grid;
  gap: 4px;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

.tool-card:hover {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.tool-card-icon { font-size: 1.4rem; margin-bottom: 5px; }
.tool-card strong { font-size: 0.84rem; font-weight: 700; }
.tool-card p { margin: 0; font-size: 0.78rem; color: var(--muted); }

/* ===== ADMIN TABLE ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.admin-table th,
.admin-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-table th {
  background: var(--paper);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.role-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
}

.role-badge.user { background: #e0f2fe; color: #0369a1; }
.role-badge.admin { background: #fef3c7; color: #92400e; }

.role-toggle {
  font-size: 0.76rem;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1.5px solid var(--line);
  background: var(--panel);
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s, color 0.15s;
}

.role-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* ===== ASSESSMENTS TABLE ===== */
.widget-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}

.widget-head h2 { margin: 0; }

.assessment-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.assessment-table th,
.assessment-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.assessment-table th {
  background: var(--paper);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.assessment-table tbody tr:hover { background: var(--paper); }

.assess-date {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ===== SAVE NOTICE ===== */
.save-notice {
  font-size: 0.82rem;
  margin: 10px 0 0;
  padding: 8px 14px;
  border-radius: 7px;
}

.save-notice.saved { background: #d1fae5; color: #065f46; border: 1px solid #6ee7b7; }
.save-notice.anon { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }

/* ===== ADMIN STATS ===== */
.admin-stat-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.admin-stat { display: flex; flex-direction: column; gap: 2px; }
.admin-stat strong { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; color: var(--brand); }
.admin-stat span { font-size: 0.73rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.admin-stat-bands { font-size: 0.84rem; color: var(--muted); }
.error-text { color: var(--danger); font-size: 0.88rem; }

/* ===== DASHBOARD RESPONSIVE ===== */
@media (max-width: 768px) {
  .dashboard-wrap { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
}
