/* ===================== ProbenPilot – Design System ===================== */
:root{
  --bg:#f1f5f4;
  --surface:#ffffff;
  --surface-alt:#f8fafc;
  --border:#e2e8e6;
  --text:#152423;
  --text-muted:#5b6b69;
  --text-faint:#94a3a1;

  --primary:#0f766e;
  --primary-dark:#0b5a53;
  --primary-light:#ccfbf1;
  --primary-50:#f0fdfa;
  --accent:#2563eb;

  --success:#15803d;
  --success-bg:#dcfce7;
  --warning:#b45309;
  --warning-bg:#fef3c7;
  --danger:#b91c1c;
  --danger-bg:#fee2e2;
  --info:#1d4ed8;
  --info-bg:#dbeafe;

  --radius-lg:16px;
  --radius:12px;
  --radius-sm:8px;
  --shadow-sm:0 1px 2px rgba(15,35,32,.06), 0 1px 1px rgba(15,35,32,.04);
  --shadow-md:0 6px 16px rgba(15,35,32,.08);
  --shadow-lg:0 20px 45px rgba(15,35,32,.18);

  --sidebar-w:272px;
  --topbar-h:72px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family:var(--font);
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
}
h1,h2,h3,h4{ margin:0 0 4px; line-height:1.25; letter-spacing:-0.01em; }
p{ margin:0 0 8px; }
a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }
svg{ width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; flex-shrink:0; }

::-webkit-scrollbar{ width:10px; height:10px; }
::-webkit-scrollbar-thumb{ background:#d3dedb; border-radius:8px; }
::-webkit-scrollbar-track{ background:transparent; }

/* ===================== Layout shell ===================== */
.shell{ display:flex; min-height:100vh; }
.shell.auth-mode .sidebar,
.shell.auth-mode .topbar{ display:none; }
.shell.auth-mode .main{ margin-left:0; }

.sidebar{
  width:var(--sidebar-w);
  background:linear-gradient(190deg,#0b2320 0%,#0a1a18 60%,#081412 100%);
  color:#cfe3df;
  position:fixed;
  top:0; left:0; bottom:0;
  display:flex;
  flex-direction:column;
  padding:20px 14px;
  z-index:20;
}
.brand{ display:flex; align-items:center; gap:10px; padding:6px 8px 20px; }
.brand-logo{ width:36px; height:36px; border-radius:9px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.2; }
.brand-text strong{ font-size:15.5px; color:#fff; letter-spacing:-0.01em; }
.brand-text span{ font-size:11px; color:#7fa79e; }

.nav{ flex:1; overflow-y:auto; padding-right:2px; }
.nav-section-label{
  font-size:10.5px; text-transform:uppercase; letter-spacing:.08em;
  color:#5f8079; margin:18px 10px 8px; font-weight:700;
}
.nav-section-label:first-child{ margin-top:4px; }
.nav-item{
  display:flex; align-items:center; gap:10px;
  padding:9px 10px; border-radius:10px; margin-bottom:2px;
  font-size:13.5px; color:#b9d3ce; font-weight:500;
  transition:background .12s, color .12s;
}
.nav-item svg{ width:17px; height:17px; opacity:.85; }
.nav-item:hover{ background:rgba(255,255,255,.06); color:#fff; }
.nav-item.active{ background:linear-gradient(90deg,#0f766e,#0d9488); color:#fff; box-shadow:var(--shadow-sm); }

.nav-step{
  display:flex; align-items:center; gap:10px;
  padding:8px 10px; border-radius:10px; margin-bottom:1px;
  font-size:12.8px; color:#96b5af; position:relative; cursor:pointer;
}
.nav-step:hover{ background:rgba(255,255,255,.05); color:#e6f4f1; }
.nav-step.current{ background:rgba(45,212,191,.14); color:#7ee9db; font-weight:600; }
.nav-step .dot{
  width:20px; height:20px; border-radius:50%; flex-shrink:0;
  display:flex; align-items:center; justify-content:center;
  font-size:10.5px; font-weight:700; background:rgba(255,255,255,.08); color:#8fb0aa;
  border:1.5px solid rgba(255,255,255,.15);
}
.nav-step.done .dot{ background:#0d9488; color:#fff; border-color:#0d9488; }
.nav-step.current .dot{ background:#2dd4bf; color:#04302b; border-color:#2dd4bf; }

.sidebar-footer{ padding-top:12px; border-top:1px solid rgba(255,255,255,.08); }
.user-chip{ display:flex; align-items:center; gap:10px; padding:8px; margin-bottom:8px; }
.user-avatar{
  width:34px; height:34px; border-radius:50%; background:linear-gradient(135deg,#2dd4bf,#0f766e);
  display:flex; align-items:center; justify-content:center; color:#fff; font-weight:700; font-size:13px; flex-shrink:0;
}
.user-meta{ line-height:1.25; overflow:hidden; }
.user-meta strong{ display:block; font-size:12.5px; color:#fff; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.user-meta span{ font-size:11px; color:#7fa79e; }

.main{ flex:1; margin-left:var(--sidebar-w); display:flex; flex-direction:column; min-width:0; }
.topbar{
  height:var(--topbar-h); flex-shrink:0; background:var(--surface);
  border-bottom:1px solid var(--border); display:flex; align-items:center;
  padding:0 28px; gap:16px; position:sticky; top:0; z-index:10;
}
.app-content{ flex:1; padding:28px; max-width:1180px; width:100%; margin:0 auto; }

/* ===================== Buttons ===================== */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:10px 18px; border-radius:10px; border:1px solid transparent;
  font-size:13.5px; font-weight:600; cursor:pointer; transition:all .12s;
  background:var(--primary); color:#fff; white-space:nowrap;
}
.btn svg{ width:16px; height:16px; }
.btn:hover{ background:var(--primary-dark); }
.btn:active{ transform:translateY(1px); }
.btn:disabled{ opacity:.5; cursor:not-allowed; }
.btn-lg{ padding:13px 26px; font-size:14.5px; border-radius:12px; }
.btn-sm{ padding:6px 12px; font-size:12.5px; border-radius:8px; }
.btn-secondary{ background:var(--primary-50); color:var(--primary-dark); border-color:var(--primary-light); }
.btn-secondary:hover{ background:var(--primary-light); }
.btn-ghost{ background:transparent; color:var(--text-muted); border-color:var(--border); }
.btn-ghost:hover{ background:var(--surface-alt); color:var(--text); }
.btn-danger{ background:var(--danger); }
.btn-danger:hover{ background:#991b1b; }
.btn-accent{ background:var(--accent); }
.btn-accent:hover{ background:#1e40af; }
.btn-block{ width:100%; }
.icon-btn{
  width:36px; height:36px; border-radius:10px; border:1px solid var(--border);
  background:var(--surface); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color:var(--text-muted); transition:all .12s;
}
.icon-btn:hover{ background:var(--surface-alt); color:var(--text); }

/* ===================== Cards / surfaces ===================== */
.card{ background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-lg); padding:22px; box-shadow:var(--shadow-sm); }
.card + .card{ margin-top:16px; }
.card-header{ display:flex; align-items:flex-start; justify-content:space-between; gap:12px; margin-bottom:16px; }
.card-header h2, .card-header h3{ margin:0; }
.section-title{ font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.06em; color:var(--text-faint); margin-bottom:10px; }

.grid{ display:grid; gap:16px; }
.grid-2{ grid-template-columns:1fr 1fr; }
.grid-3{ grid-template-columns:repeat(3,1fr); }
.grid-4{ grid-template-columns:repeat(4,1fr); }
@media (max-width:900px){ .grid-2,.grid-3,.grid-4{ grid-template-columns:1fr; } }

/* ===================== Page header ===================== */
.page-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.page-head h1{ font-size:23px; }
.page-head p{ color:var(--text-muted); font-size:13.5px; margin:0; }
.eyebrow{ font-size:11.5px; font-weight:700; text-transform:uppercase; letter-spacing:.07em; color:var(--primary); margin-bottom:6px; display:flex; align-items:center; gap:6px; }

/* ===================== Forms ===================== */
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:12.5px; font-weight:600; color:var(--text); margin-bottom:6px; }
.field .hint{ font-size:11.5px; color:var(--text-faint); margin-top:5px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=date], input[type=search], select, textarea{
  width:100%; padding:10.5px 12px; border:1.5px solid var(--border); border-radius:10px;
  font-size:13.5px; color:var(--text); background:var(--surface); font-family:inherit; transition:border-color .12s, box-shadow .12s;
}
textarea{ resize:vertical; min-height:80px; }
input:focus, select:focus, textarea:focus{ outline:none; border-color:var(--primary); box-shadow:0 0 0 3px var(--primary-light); }
.checkbox-row{ display:flex; align-items:center; gap:9px; padding:8px 0; font-size:13px; }
.checkbox-row input{ width:16px; height:16px; accent-color:var(--primary); }
.chip-select{ display:flex; flex-wrap:wrap; gap:8px; }
.chip-option{
  padding:8px 14px; border-radius:999px; border:1.5px solid var(--border); font-size:12.5px; font-weight:600;
  cursor:pointer; color:var(--text-muted); background:var(--surface); transition:all .12s; user-select:none;
}
.chip-option:hover{ border-color:var(--primary); color:var(--primary-dark); }
.chip-option.selected{ background:var(--primary); border-color:var(--primary); color:#fff; }

/* ===================== Badges / status ===================== */
.badge{ display:inline-flex; align-items:center; gap:5px; padding:3px 10px; border-radius:999px; font-size:11px; font-weight:700; letter-spacing:.01em; }
.badge-success{ background:var(--success-bg); color:var(--success); }
.badge-warning{ background:var(--warning-bg); color:var(--warning); }
.badge-danger{ background:var(--danger-bg); color:var(--danger); }
.badge-info{ background:var(--info-bg); color:var(--info); }
.badge-neutral{ background:#eef1f0; color:var(--text-muted); }
.badge-dot{ width:6px; height:6px; border-radius:50%; background:currentColor; }

/* ===================== Table ===================== */
.table-wrap{ overflow-x:auto; border-radius:var(--radius); border:1px solid var(--border); }
table{ width:100%; border-collapse:collapse; font-size:13px; background:var(--surface); }
th{ text-align:left; padding:11px 14px; background:var(--surface-alt); color:var(--text-muted); font-weight:700; font-size:11px; text-transform:uppercase; letter-spacing:.04em; border-bottom:1px solid var(--border); white-space:nowrap; }
td{ padding:12px 14px; border-bottom:1px solid var(--border); vertical-align:middle; }
tr:last-child td{ border-bottom:none; }
tbody tr:hover{ background:var(--surface-alt); }

/* ===================== Login ===================== */
.auth-screen{
  min-height:100vh; display:flex; align-items:center; justify-content:center;
  background:radial-gradient(1100px 600px at 15% 10%, #123832 0%, #081916 45%, #050f0d 100%);
  padding:24px;
}
.auth-card{
  width:100%; max-width:400px; background:var(--surface); border-radius:20px; padding:36px 32px;
  box-shadow:var(--shadow-lg);
}
.auth-logo{ display:flex; align-items:center; gap:12px; margin-bottom:26px; }
.auth-logo img{ width:44px; height:44px; border-radius:11px; }
.auth-logo strong{ font-size:19px; display:block; }
.auth-logo span{ font-size:12px; color:var(--text-muted); }
.auth-divider{ display:flex; align-items:center; gap:10px; margin:18px 0; color:var(--text-faint); font-size:11.5px; }
.auth-divider::before, .auth-divider::after{ content:""; flex:1; height:1px; background:var(--border); }
.auth-hero-note{ margin-top:22px; padding:14px 16px; background:var(--primary-50); border:1px solid var(--primary-light); border-radius:12px; font-size:12px; color:var(--primary-dark); line-height:1.5; }

/* ===================== Stepper (process) ===================== */
.stepper{ display:flex; align-items:center; gap:0; margin-bottom:24px; overflow-x:auto; padding-bottom:4px; }
.stepper-node{ display:flex; align-items:center; flex-shrink:0; }
.stepper-btn{ display:flex; flex-direction:column; align-items:center; gap:6px; cursor:pointer; padding:4px 8px; border-radius:10px; }
.stepper-btn:hover .stepper-circle{ transform:scale(1.06); }
.stepper-circle{
  width:34px; height:34px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background:var(--surface); border:2px solid var(--border); color:var(--text-faint); font-size:12.5px; font-weight:700;
  transition:all .15s;
}
.stepper-label{ font-size:10.5px; font-weight:600; color:var(--text-faint); white-space:nowrap; max-width:78px; text-align:center; }
.stepper-node.done .stepper-circle{ background:var(--primary); border-color:var(--primary); color:#fff; }
.stepper-node.done .stepper-label{ color:var(--primary-dark); }
.stepper-node.current .stepper-circle{ background:#fff; border-color:var(--primary); color:var(--primary); box-shadow:0 0 0 4px var(--primary-light); }
.stepper-node.current .stepper-label{ color:var(--text); font-weight:700; }
.stepper-connector{ width:26px; height:2px; background:var(--border); flex-shrink:0; margin:0 -2px 20px; }
.stepper-node.done + .stepper-node .stepper-connector, .stepper-connector.done{ background:var(--primary); }

/* ===================== Toasts ===================== */
.toast-stack{ position:fixed; top:20px; right:20px; z-index:999; display:flex; flex-direction:column; gap:10px; }
.toast{
  background:#122b27; color:#e9fbf7; padding:13px 18px; border-radius:12px; font-size:13px; font-weight:500;
  box-shadow:var(--shadow-lg); display:flex; align-items:center; gap:10px; min-width:260px;
  animation:toast-in .25s ease;
}
.toast.success{ background:#0b3f2e; }
.toast.error{ background:#4c1414; }
@keyframes toast-in{ from{ opacity:0; transform:translateX(30px);} to{opacity:1; transform:translateX(0);} }
.toast.hide{ animation:toast-out .2s ease forwards; }
@keyframes toast-out{ to{ opacity:0; transform:translateX(30px);} }

/* ===================== Device / measurement ===================== */
.device-scan-radar{
  width:120px; height:120px; border-radius:50%; margin:8px auto 20px; position:relative;
  background:radial-gradient(circle, var(--primary-50) 0%, transparent 70%);
  display:flex; align-items:center; justify-content:center;
}
.device-scan-radar::before, .device-scan-radar::after{
  content:""; position:absolute; border-radius:50%; border:2px solid var(--primary-light);
  animation:radar-pulse 2.2s ease-out infinite;
}
.device-scan-radar::before{ width:100%; height:100%; }
.device-scan-radar::after{ width:100%; height:100%; animation-delay:1.1s; }
@keyframes radar-pulse{ 0%{ transform:scale(.3); opacity:1;} 100%{ transform:scale(1.3); opacity:0;} }
.device-scan-icon{ width:52px; height:52px; border-radius:50%; background:var(--primary); display:flex; align-items:center; justify-content:center; color:#fff; z-index:1; }
.device-scan-icon svg{ width:26px; height:26px; }

.device-item{
  display:flex; align-items:center; gap:14px; padding:14px 16px; border:1.5px solid var(--border); border-radius:12px; margin-bottom:10px; transition:all .12s;
}
.device-item:hover{ border-color:var(--primary); box-shadow:var(--shadow-sm); }
.device-icon{ width:42px; height:42px; border-radius:10px; background:var(--primary-50); color:var(--primary); display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.signal-bars{ display:flex; align-items:flex-end; gap:2px; height:14px; }
.signal-bars span{ width:3px; background:var(--border); border-radius:1px; }
.signal-bars span:nth-child(1){ height:30%; } .signal-bars span:nth-child(2){ height:55%; }
.signal-bars span:nth-child(3){ height:75%; } .signal-bars span:nth-child(4){ height:100%; }
.signal-bars.strong span{ background:var(--primary); }
.signal-bars.medium span:nth-child(-n+3){ background:var(--warning); }
.signal-bars.medium span:nth-child(4){ background:var(--border); }

.metric-tile{ background:var(--surface-alt); border:1px solid var(--border); border-radius:14px; padding:16px 18px; }
.metric-tile .metric-label{ font-size:11px; color:var(--text-muted); font-weight:700; text-transform:uppercase; letter-spacing:.04em; margin-bottom:6px; }
.metric-tile .metric-value{ font-size:25px; font-weight:800; letter-spacing:-0.02em; }
.metric-tile .metric-unit{ font-size:13px; font-weight:600; color:var(--text-faint); margin-left:3px; }
.metric-tile .metric-sub{ font-size:11.5px; color:var(--text-faint); margin-top:4px; }
.battery-pill{ display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; }
.battery-shell{ width:26px; height:13px; border:1.5px solid var(--text-muted); border-radius:3px; position:relative; padding:1.5px; }
.battery-shell::after{ content:""; position:absolute; right:-4px; top:3px; width:2px; height:5px; background:var(--text-muted); border-radius:1px; }
.battery-fill{ height:100%; border-radius:1px; background:var(--success); }

.pulse-dot{ width:9px; height:9px; border-radius:50%; background:var(--success); position:relative; }
.pulse-dot::after{ content:""; position:absolute; inset:-4px; border-radius:50%; border:2px solid var(--success); opacity:.6; animation:pulse-ring 1.6s ease-out infinite; }
@keyframes pulse-ring{ 0%{ transform:scale(.6); opacity:.8;} 100%{ transform:scale(1.8); opacity:0;} }

/* ===================== Sample capture screen ===================== */
.photo-grid{ display:grid; grid-template-columns:repeat(auto-fill,minmax(96px,1fr)); gap:10px; margin-top:10px; }
.photo-thumb{ position:relative; aspect-ratio:1; border-radius:10px; overflow:hidden; border:1px solid var(--border); background:var(--surface-alt); }
.photo-thumb img{ width:100%; height:100%; object-fit:cover; display:block; }
.photo-thumb .remove-photo{ position:absolute; top:4px; right:4px; width:22px; height:22px; border-radius:50%; background:rgba(0,0,0,.55); color:#fff; display:flex; align-items:center; justify-content:center; cursor:pointer; font-size:13px; line-height:1; border:none; }
.photo-add{
  aspect-ratio:1; border-radius:10px; border:2px dashed var(--border); display:flex; flex-direction:column;
  align-items:center; justify-content:center; gap:4px; color:var(--text-faint); cursor:pointer; font-size:11px; font-weight:600; text-align:center;
}
.photo-add:hover{ border-color:var(--primary); color:var(--primary); background:var(--primary-50); }

.mic-btn{
  width:52px; height:52px; border-radius:50%; border:none; background:var(--primary); color:#fff; cursor:pointer;
  display:flex; align-items:center; justify-content:center; flex-shrink:0; transition:all .15s; box-shadow:var(--shadow-sm);
}
.mic-btn:hover{ background:var(--primary-dark); }
.mic-btn.listening{ background:var(--danger); animation:mic-pulse 1.2s infinite; }
@keyframes mic-pulse{ 0%{ box-shadow:0 0 0 0 rgba(185,28,28,.45);} 70%{ box-shadow:0 0 0 14px rgba(185,28,28,0);} 100%{ box-shadow:0 0 0 0 rgba(185,28,28,0);} }
.voice-row{ display:flex; gap:12px; align-items:flex-start; }
.voice-row textarea{ flex:1; }
.listening-text{ font-size:12px; color:var(--danger); font-weight:600; margin-top:6px; display:flex; align-items:center; gap:6px; }

.gps-box{ display:flex; align-items:center; gap:14px; padding:14px 16px; background:var(--surface-alt); border:1px solid var(--border); border-radius:12px; }
.gps-map{
  width:56px; height:56px; border-radius:10px; flex-shrink:0; position:relative; overflow:hidden;
  background:
   linear-gradient(0deg, transparent 24%, rgba(15,118,110,.15) 25%, rgba(15,118,110,.15) 26%, transparent 27%, transparent 74%, rgba(15,118,110,.15) 75%, rgba(15,118,110,.15) 76%, transparent 77%, transparent),
   linear-gradient(90deg, transparent 24%, rgba(15,118,110,.15) 25%, rgba(15,118,110,.15) 26%, transparent 27%, transparent 74%, rgba(15,118,110,.15) 75%, rgba(15,118,110,.15) 76%, transparent 77%, transparent),
   #dbeee9;
}
.gps-map::after{ content:"📍"; position:absolute; top:50%; left:50%; transform:translate(-50%,-58%); font-size:20px; }

/* ===================== Timeline (shipping) ===================== */
.timeline{ position:relative; padding-left:34px; }
.timeline-item{ position:relative; padding-bottom:26px; }
.timeline-item:last-child{ padding-bottom:0; }
.timeline-item::before{ content:""; position:absolute; left:-24px; top:2px; width:12px; height:12px; border-radius:50%; background:var(--border); border:3px solid var(--surface); box-shadow:0 0 0 2px var(--border); }
.timeline-item::after{ content:""; position:absolute; left:-19px; top:16px; width:2px; height:calc(100% - 6px); background:var(--border); }
.timeline-item:last-child::after{ display:none; }
.timeline-item.done::before{ background:var(--primary); box-shadow:0 0 0 2px var(--primary); }
.timeline-item.done::after{ background:var(--primary); }
.timeline-item.active::before{ background:#fff; box-shadow:0 0 0 2px var(--primary); animation:pulse-ring 1.6s ease-out infinite; }
.timeline-title{ font-weight:700; font-size:13.5px; }
.timeline-time{ font-size:11.5px; color:var(--text-faint); margin-top:2px; }

/* ===================== Report generation (wow) ===================== */
.gen-progress{ max-width:520px; margin:10px auto; }
.gen-step{ display:flex; align-items:center; gap:12px; padding:12px 4px; opacity:.35; transition:opacity .3s; }
.gen-step.active{ opacity:1; }
.gen-step.done{ opacity:1; }
.gen-step-icon{
  width:28px; height:28px; border-radius:50%; border:2px solid var(--border); flex-shrink:0;
  display:flex; align-items:center; justify-content:center; font-size:12px; color:var(--text-faint); transition:all .25s;
}
.gen-step.active .gen-step-icon{ border-color:var(--primary); }
.gen-step.active .gen-step-icon .spinner{ display:block; }
.gen-step.done .gen-step-icon{ background:var(--primary); border-color:var(--primary); color:#fff; }
.gen-step-label{ font-size:13.5px; font-weight:600; color:var(--text); }
.gen-step-sub{ font-size:11.5px; color:var(--text-faint); }
.spinner{ display:none; width:14px; height:14px; border:2px solid var(--primary-light); border-top-color:var(--primary); border-radius:50%; animation:spin .7s linear infinite; }
@keyframes spin{ to{ transform:rotate(360deg); } }
.progress-bar-track{ height:8px; border-radius:999px; background:var(--border); overflow:hidden; margin:18px 0; }
.progress-bar-fill{ height:100%; background:linear-gradient(90deg,#2dd4bf,#0f766e); border-radius:999px; transition:width .4s ease; }

.report-doc{
  background:#fff; border:1px solid var(--border); border-radius:14px; padding:0; box-shadow:var(--shadow-md);
  overflow:hidden;
}
.report-doc-header{ background:linear-gradient(120deg,#0b2320,#0f766e); color:#fff; padding:30px 34px; }
.report-doc-header .eyebrow{ color:#7ee9db; }
.report-doc-header h2{ color:#fff; font-size:21px; }
.report-doc-header p{ color:#bfe6df; font-size:12.5px; }
.report-doc-body{ padding:30px 34px; }
.report-doc-body h4{ font-size:13px; text-transform:uppercase; letter-spacing:.05em; color:var(--primary-dark); margin:22px 0 10px; }
.report-doc-body h4:first-child{ margin-top:0; }
.report-doc-body table{ font-size:12.5px; }
.report-doc-body p{ font-size:13px; line-height:1.65; color:#334441; }
.report-signoff{ display:flex; justify-content:space-between; gap:24px; margin-top:26px; padding-top:20px; border-top:1px dashed var(--border); }
.signature{ font-family: "Brush Script MT", cursive; font-size:26px; color:var(--primary-dark); }

.result-value-ok{ color:var(--success); font-weight:700; }
.result-value-bad{ color:var(--danger); font-weight:700; }

/* ===================== Misc ===================== */
.empty-state{ text-align:center; padding:50px 20px; color:var(--text-faint); }
.empty-state svg{ width:44px; height:44px; margin-bottom:12px; opacity:.5; }
.divider{ height:1px; background:var(--border); margin:20px 0; }
.flex{ display:flex; }
.flex-between{ display:flex; align-items:center; justify-content:space-between; }
.flex-gap{ display:flex; gap:10px; align-items:center; }
.text-muted{ color:var(--text-muted); }
.text-faint{ color:var(--text-faint); }
.text-sm{ font-size:12.5px; }
.mt-0{ margin-top:0; } .mb-0{ margin-bottom:0; }
.mt-16{ margin-top:16px; } .mb-16{ margin-bottom:16px; }
.avatar-sm{ width:28px; height:28px; border-radius:50%; background:var(--primary-50); color:var(--primary-dark); display:flex; align-items:center; justify-content:center; font-size:11px; font-weight:700; flex-shrink:0; }
.click-row{ cursor:pointer; }
.confetti-wrap{ position:fixed; inset:0; pointer-events:none; z-index:998; overflow:hidden; }
.confetti-piece{ position:absolute; top:-10px; width:8px; height:14px; opacity:.9; animation:confetti-fall 2.4s ease-in forwards; }
@keyframes confetti-fall{ to{ transform:translateY(105vh) rotate(540deg); opacity:0; } }

@media print{
  .sidebar, .topbar, .no-print{ display:none !important; }
  .main{ margin-left:0 !important; }
  .app-content{ max-width:100% !important; padding:0 !important; }
  body{ background:#fff !important; }
  .card{ box-shadow:none !important; border:none !important; }
}

@media (max-width:880px){
  .sidebar{ display:none; }
  .main{ margin-left:0; }
  .app-content{ padding:18px; }
}
