/* =========================================================
   Kairos — Tema roxo · laranja · branco (claro e escuro)
   ========================================================= */
:root {
  --primary: #6D28D9;
  --primary-2: #8B5CF6;
  --primary-soft: #EFE7FF;
  --accent: #F97316;
  --accent-2: #FB923C;
  --accent-soft: #FFEDD5;
  --success: #16A34A;
  --success-soft: #DCFCE7;
  --warn: #D97706;
  --warn-soft: #FEF3C7;
  --danger: #DC2626;

  --bg: #F7F5FC;
  --surface: #FFFFFF;
  --surface-2: #F3EFFB;
  --text: #1E1433;
  --muted: #6E6787;
  --border: #E7E1F2;
  --shadow: 0 1px 2px rgba(40, 20, 80, .05), 0 8px 24px rgba(40, 20, 80, .06);
  --shadow-lg: 0 24px 64px rgba(30, 10, 70, .22);
  --grad: linear-gradient(135deg, #6D28D9 0%, #8B5CF6 45%, #F97316 100%);

  --r: 16px;
  --r-sm: 10px;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --serif: 'Lora', Georgia, serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --primary: #A78BFA;
  --primary-2: #C4B5FD;
  --primary-soft: rgba(167, 139, 250, .14);
  --accent: #FB923C;
  --accent-2: #FDBA74;
  --accent-soft: rgba(251, 146, 60, .14);
  --success: #4ADE80;
  --success-soft: rgba(74, 222, 128, .12);
  --warn: #FBBF24;
  --warn-soft: rgba(251, 191, 36, .12);
  --danger: #F87171;

  --bg: #0E0A18;
  --surface: #171124;
  --surface-2: #211933;
  --text: #F4F0FC;
  --muted: #A69DC0;
  --border: #2D2442;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, .55);
  --grad: linear-gradient(135deg, #5B21B6 0%, #7C3AED 45%, #EA580C 100%);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .25s;
}
body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--primary); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; display: block; margin-top: 8px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }

/* ---------------- Layout ---------------- */
.app { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh;
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 24px; padding: 22px 16px;
  z-index: 30;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.brand-mark { width: 40px; height: 40px; }
.brand strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.brand span { font-size: 12px; color: var(--muted); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav-item {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px;
  font-weight: 600; color: var(--muted); transition: .15s; text-align: left;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.active { background: var(--primary-soft); color: var(--primary); }
.nav-badge { margin-left: auto; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 99px; padding: 1px 8px; }
.sidebar-card { margin-top: auto; background: var(--surface-2); border-radius: 14px; padding: 14px; }
.switch-row { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.switch-row strong { display: block; font-size: 14px; }
.switch-row span { font-size: 12px; color: var(--muted); }
.switch { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border); border-radius: 99px; transition: .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.sidebar-foot { padding: 0 8px; }
.link-btn { color: var(--primary); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.sidebar-foot .link-btn { color: var(--muted); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 16px;
  padding: 18px 32px; background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--border);
}
.topbar-title { flex: 1; min-width: 0; }
.topbar h1 { font-size: 22px; font-weight: 800; }
.topbar p { color: var(--muted); font-size: 14px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.role-pill { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); }
.role-pill.evaluator { background: var(--accent-soft); color: var(--accent); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text); transition: .15s;
}
.icon-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.icon-btn:disabled { opacity: .35; }
.icon-btn.sm { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.sm svg { width: 16px; height: 16px; }
.icon-btn.danger:hover { border-color: var(--danger); color: var(--danger); }
[data-theme="dark"] .i-sun, [data-theme="light"] .i-moon { display: none; }
.only-mobile { display: none; }
.view { padding: 28px 32px 64px; max-width: 1440px; width: 100%; margin: 0 auto; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 12px; font-weight: 700; font-size: 14px;
  transition: transform .1s, box-shadow .15s, background .15s, opacity .15s; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:disabled { opacity: .45; }
.btn.sm { padding: 7px 12px; font-size: 13px; }
.btn.block { width: 100%; margin-top: 12px; }
.btn-primary { background: var(--primary); color: #fff; }
[data-theme="dark"] .btn-primary { background: #7C3AED; }
.btn-primary:hover:not(:disabled) { box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 40%, transparent); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn-success { background: var(--success); color: #fff; }
[data-theme="dark"] .btn-success { color: #052e16; }
.btn-ghost { border: 1px solid var(--border); background: var(--surface); }
.btn-ghost:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.btn-done { background: var(--success-soft); color: var(--success); }

/* ---------------- Badges / status ---------------- */
.badge { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.badge.locked { background: var(--surface-2); color: var(--muted); }
.badge.available { background: var(--primary-soft); color: var(--primary); }
.badge.progress { background: var(--primary-soft); color: var(--primary); }
.badge.review { background: var(--accent-soft); color: var(--accent); }
.badge.changes { background: var(--warn-soft); color: var(--warn); }
.badge.approved { background: var(--success-soft); color: var(--success); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.locked { background: var(--border); }
.dot.progress { background: var(--primary); }
.dot.review { background: var(--accent); }
.dot.changes { background: var(--warn); }
.dot.approved { background: var(--success); }

.bar { height: 6px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: inherit; transition: width .4s; }

/* ---------------- Stats ---------------- */
.stats { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 16px; margin-bottom: 20px; }
.stats.three { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow); text-align: left;
}
.stat.clickable:hover { border-color: var(--primary); }
.stat.hero { flex-direction: row; align-items: center; gap: 18px; background: var(--grad); color: #fff; border: 0; }
.stat.hero .stat-label, .stat.hero .stat-sub { color: rgba(255,255,255,.85); }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat-sub { font-size: 13px; color: var(--muted); }
.mini-bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.mini-bar i { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring-bg { stroke: rgba(255,255,255,.22); }
.ring-fg { stroke: #fff; stroke-dasharray: calc(var(--p) * 1) 100; stroke-linecap: round; transition: stroke-dasharray .5s; }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 19px; }
.ring.small { width: 64px; height: 64px; }
.ring.small span { font-size: 15px; }
.ring.small .ring-bg { stroke: var(--surface-2); }
.ring.small .ring-fg { stroke: var(--accent); }

/* ---------------- Próximo passo ---------------- */
.next-card {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--surface); border: 1px solid var(--border); border-left: 5px solid var(--accent);
  border-radius: var(--r); padding: 20px 24px; margin-bottom: 28px; box-shadow: var(--shadow);
}
.next-card h2 { font-size: 20px; margin: 2px 0 4px; }
.next-card p { color: var(--muted); }
.next-card.done { border-left-color: var(--success); }

/* ---------------- Trilho ---------------- */
.trail-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px 0 8px; box-shadow: var(--shadow); }
.trail-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 24px 6px; flex-wrap: wrap; }
.trail-head h2 { font-size: 18px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.trail {
  display: flex; gap: 22px; overflow-x: auto; padding: 22px 24px 26px;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.station {
  position: relative; flex: 0 0 272px; display: flex; flex-direction: column; align-items: center;
  text-align: left; scroll-snap-align: center;
  animation: rise .45s both; animation-delay: calc(var(--i) * 60ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
.rail { position: absolute; top: 25px; left: 50%; width: calc(100% + 22px); height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; z-index: 0; }
.rail i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); transition: width .6s; }
.station.approved .rail i { width: 100%; }
.station:last-child .rail { display: none; }
.node {
  position: relative; z-index: 1; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800; font-size: 18px;
  background: var(--surface); border: 3px solid var(--border); color: var(--muted); transition: .2s;
}
.station.available .node, .station.progress .node { border-color: var(--primary); color: var(--primary); }
.station.review .node { border-color: var(--accent); color: var(--accent); }
.station.changes .node { border-color: var(--warn); color: var(--warn); }
.station.approved .node { background: var(--success); border-color: var(--success); color: #fff; }
.station.current .node { box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 22%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 11px color-mix(in srgb, var(--accent) 6%, transparent); } }
.station-card {
  margin-top: 16px; width: 100%; flex: 1; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px; display: flex; flex-direction: column; gap: 8px;
  transition: transform .18s, box-shadow .18s, border-color .18s; position: relative;
}
.station-card::before { content: ''; position: absolute; top: -9px; left: calc(50% - 8px); width: 16px; height: 16px; background: inherit; border-left: 1px solid var(--border); border-top: 1px solid var(--border); transform: rotate(45deg); }
.station:hover .station-card { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--primary); }
.station.current .station-card { border-color: var(--accent); }
.station.locked .station-card { opacity: .62; }
.station.locked:hover .station-card { opacity: .9; }
.station-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.station-num { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.station h3 { font-size: 16px; line-height: 1.3; }
.station p { font-size: 13px; color: var(--muted); min-height: 39px; }
.station-types { display: flex; align-items: center; gap: 6px; color: var(--primary); }
.station-types span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--primary-soft); }
.station-types svg { width: 15px; height: 15px; }
.station-types em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.station-types em svg { width: 14px; height: 14px; }
.station-foot { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.grade { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); }
.grade svg { width: 14px; height: 14px; fill: currentColor; }

/* ---------------- Painéis ---------------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px 22px; box-shadow: var(--shadow); }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.panel-head h2 { font-size: 18px; }
.empty { padding: 32px; text-align: center; color: var(--muted); border: 1.5px dashed var(--border); border-radius: var(--r-sm); }

/* ---------------- Avaliações ---------------- */
.reviews-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.review-list { display: flex; flex-direction: column; gap: 8px; }
.review-row {
  display: grid; grid-template-columns: 40px 1fr auto 52px; align-items: center; gap: 14px;
  padding: 14px; border-radius: 12px; border: 1px solid var(--border); text-align: left; transition: .15s;
}
.review-row:hover { border-color: var(--primary); background: var(--surface-2); }
.review-num { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: var(--primary-soft); color: var(--primary); }
.review-main { min-width: 0; }
.review-main strong { display: block; }
.review-main span { font-size: 12.5px; color: var(--muted); }
.review-fb { font-size: 13px; font-style: italic; color: var(--muted); margin-top: 4px; }
.review-grade { font-size: 22px; font-weight: 800; text-align: center; color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--border); }
.timeline li { position: relative; display: flex; gap: 14px; padding: 0 0 16px; }
.timeline li > i { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; background: var(--primary); border: 3px solid var(--surface); margin-top: 3px; flex-shrink: 0; }
.timeline li.approved > i { background: var(--success); }
.timeline li.changes > i { background: var(--warn); }
.timeline li.sent > i { background: var(--accent); }
.timeline strong { display: block; font-size: 14px; }
.timeline span, .timeline time { display: block; font-size: 12.5px; color: var(--muted); }

/* ---------------- Formulário da empresa ---------------- */
.company { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.company-nav { position: sticky; top: 104px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 18px; box-shadow: var(--shadow); }
.company-progress { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.company-progress strong { display: block; }
.company-progress span:not(.ring span) { font-size: 12.5px; color: var(--muted); }
.company-nav ol { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 2px; }
.company-nav a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 14px; }
.company-nav a:hover { background: var(--surface-2); color: var(--primary); }
.company-nav a span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: 12px; font-weight: 800; }
.company-form { display: flex; flex-direction: column; gap: 18px; }
.form-sec { scroll-margin-top: 104px; }
.form-sec h2 { margin: 2px 0; }
.sec-check { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 4px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.sec-check.ok { color: var(--success); background: var(--success-soft); }
.sec-check svg { width: 14px; height: 14px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px 18px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field.span2 { grid-column: span 2; }
.field label { font-size: 13px; font-weight: 700; }
.req { color: var(--accent); }
.field input:not([type="radio"]):not([type="checkbox"]):not([type="range"]), .field select, .field textarea, .eval-form textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg); border: 1.5px solid var(--border);
  border-radius: 11px; padding: 11px 13px; transition: border-color .15s, box-shadow .15s; outline: none;
}
.field textarea, .eval-form textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .eval-form textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 16%, transparent);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.err { color: var(--danger); font-size: 12px; min-height: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-block; padding: 8px 14px; border-radius: 99px; border: 1.5px solid var(--border); font-size: 13.5px; font-weight: 600; cursor: pointer; transition: .15s; user-select: none; }
.chip span:hover { border-color: var(--primary); }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-theme="dark"] .chip input:checked + span { background: #7C3AED; border-color: #7C3AED; }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.range-wrap input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--primary), var(--accent)) 0 / var(--v, 50%) 100% no-repeat, var(--surface-2); outline: none;
}
.range-wrap input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); }
.range-wrap input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); cursor: pointer; }
.range-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--muted); }
.range-labels span.on { color: var(--accent); font-weight: 700; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; position: sticky; bottom: 16px; padding: 12px; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(10px); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); }

/* ---------------- Overlay / modal da etapa ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(14, 8, 28, .55); backdrop-filter: blur(4px);
  display: flex; align-items: flex-start; justify-content: center; padding: 28px 20px; overflow-y: auto;
  opacity: 0; transition: opacity .2s;
}
.overlay.show { opacity: 1; }
.overlay-top { z-index: 60; align-items: center; }
.sheet {
  width: 100%; max-width: 1360px; background: var(--bg); border-radius: 22px; box-shadow: var(--shadow-lg);
  overflow: hidden; transform: translateY(16px) scale(.99); transition: transform .25s;
}
.overlay.show .sheet { transform: none; }
.sheet-head {
  display: grid; grid-template-columns: 1fr auto; gap: 14px 24px; padding: 24px 28px 18px;
  background: var(--grad); color: #fff;
}
.sheet-head .eyebrow { color: #FFD7B5; }
.sheet-head h2 { font-size: 26px; font-weight: 800; margin: 2px 0 6px; }
.sheet-head p { color: rgba(255,255,255,.88); max-width: 760px; }
.sheet-head-side { display: flex; align-items: flex-start; gap: 10px; }
.sheet-head .badge { background: rgba(255,255,255,.2); color: #fff; }
.sheet-head .icon-btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.sheet-head .icon-btn:hover:not(:disabled) { background: rgba(255,255,255,.28); color: #fff; border-color: #fff; }
.sheet-progress { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 13px; }
.sheet-progress .bar { flex: 1; background: rgba(255,255,255,.22); height: 8px; }
.sheet-progress .bar i { background: #fff; }
.stage-steps { grid-column: 1 / -1; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.step-dot { width: 32px; height: 32px; border-radius: 9px; font-size: 13px; font-weight: 800; background: rgba(255,255,255,.14); color: rgba(255,255,255,.75); border: 1.5px solid transparent; transition: .15s; }
.step-dot.approved { background: rgba(255,255,255,.9); color: var(--success); }
[data-theme="dark"] .step-dot.approved { color: #15803D; }
.step-dot.review { box-shadow: inset 0 0 0 2px #FDBA74; }
.step-dot.on { border-color: #fff; color: #fff; background: rgba(255,255,255,.3); }
.step-dot.approved.on { color: var(--success); background: #fff; }
.step-dot:hover { background: rgba(255,255,255,.3); }

.notice { display: flex; gap: 10px; align-items: flex-start; margin: 18px 28px 0; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.notice.warn { background: var(--surface-2); color: var(--muted); }
.notice.changes { background: var(--warn-soft); color: var(--warn); }
.notice span { color: var(--text); }

.sheet-body { display: grid; grid-template-columns: 290px minmax(0, 1fr) 340px; gap: 20px; padding: 22px 28px 28px; align-items: start; }
.col-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: 12px; }

.mat-col, .viewer-col, .task-col { min-width: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.filter { padding: 6px 11px; font-size: 13px; font-weight: 600; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); }
.filter em { font-style: normal; font-size: 11px; opacity: .7; margin-left: 2px; }
.filter.on { background: var(--primary); border-color: var(--primary); color: #fff; }
[data-theme="dark"] .filter.on { background: #7C3AED; border-color: #7C3AED; }
.mat-list { display: flex; flex-direction: column; gap: 8px; }
.mat-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--border); background: var(--surface); text-align: left; transition: .15s; }
.mat-item:hover { border-color: var(--primary-2); }
.mat-item.on { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.mat-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.mat-icon.video { background: var(--accent-soft); color: var(--accent); }
.mat-icon.text { background: var(--primary-soft); color: var(--primary); }
.mat-icon.audio { background: color-mix(in srgb, var(--accent) 10%, var(--primary-soft)); color: #C2410C; }
[data-theme="dark"] .mat-icon.audio { color: var(--accent-2); }
.mat-icon.ebook { background: var(--primary-soft); color: var(--primary-2); }
.mat-meta { flex: 1; min-width: 0; }
.mat-meta strong { display: block; font-size: 14px; line-height: 1.3; }
.mat-meta small { color: var(--muted); font-size: 12px; }
.mat-check { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--border); display: grid; place-items: center; flex-shrink: 0; }
.mat-item.done .mat-check { background: var(--success); border-color: var(--success); color: #fff; }
.mat-check svg { width: 13px; height: 13px; stroke-width: 3; }

.viewer-col { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; scroll-margin-top: 20px; }
.viewer-head { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.viewer-head h3 { font-size: 18px; }
.viewer-body { padding: 22px; }
.viewer-foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 16px 22px; border-top: 1px solid var(--border); background: var(--surface-2); }
.viewer-foot .btn-ghost { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #000; }
.video-box video, .video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.lead { margin-top: 14px; color: var(--muted); }

.prose { font-family: var(--serif); font-size: 17px; line-height: 1.75; max-width: 68ch; }
.prose h3 { font-family: var(--font); font-size: 17px; margin: 22px 0 6px; color: var(--primary); }
.prose p { margin: 0 0 14px; }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 14px; }
.prose li { margin-bottom: 6px; }
.prose blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--accent); background: var(--accent-soft); border-radius: 0 12px 12px 0; font-style: italic; }

.audio-card { border-radius: 18px; overflow: hidden; background: var(--grad); color: #fff; padding: 26px; display: flex; flex-direction: column; gap: 18px; }
.audio-art { height: 110px; display: flex; align-items: center; justify-content: center; }
.wave { display: flex; align-items: center; gap: 4px; height: 100%; }
.wave i { width: 5px; height: var(--h); border-radius: 99px; background: rgba(255,255,255,.85); animation: wave 1.2s ease-in-out infinite; animation-delay: var(--d); }
@keyframes wave { 50% { transform: scaleY(.45); } }
.audio-info .eyebrow { color: #FFD7B5; }
.audio-info strong { display: block; font-size: 20px; }
.audio-card audio { width: 100%; }
.transcript { margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--surface-2); }

.ebook { display: flex; flex-direction: column; gap: 16px; }
.ebook-cover { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); color: var(--primary); }
.ebook-cover strong { display: block; color: var(--text); }
.ebook-cover small { color: var(--muted); }
.ebook-page {
  font-family: var(--serif); font-size: 17px; line-height: 1.8; padding: 34px 38px; min-height: 300px;
  border-radius: 6px 16px 16px 6px; background: #FFFCF7; color: #2A2236; border: 1px solid #EDE5D8;
  box-shadow: inset 14px 0 18px -14px rgba(80,50,20,.25), 0 10px 24px rgba(40,20,80,.08);
}
[data-theme="dark"] .ebook-page { background: #221B2E; color: #EDE6F7; border-color: #352B47; box-shadow: inset 14px 0 18px -14px rgba(0,0,0,.6); }
.ebook-page h3 { font-family: var(--font); font-size: 20px; margin-bottom: 14px; color: var(--primary); }
.ebook-page p { margin: 0 0 12px; }
.ebook-page ul { padding-left: 22px; }
.ebook-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ebook-dots { display: flex; gap: 6px; }
.ebook-dots button { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.ebook-dots button.on { background: var(--accent); width: 22px; border-radius: 99px; }

.task-col { display: flex; flex-direction: column; gap: 16px; }
.task-block { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px; box-shadow: var(--shadow); }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; }
.check.auto { cursor: default; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--border); display: grid; place-items: center; flex-shrink: 0; transition: .15s; color: transparent; margin-top: 1px; }
.check .box svg { width: 14px; height: 14px; stroke-width: 3; }
.check.on .box { background: var(--success); border-color: var(--success); color: #fff; }
.check.on > span:last-child { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--border); }
.check input:focus-visible + .box { outline: 2px solid var(--accent); outline-offset: 2px; }
.check .link-btn { text-decoration-line: underline; display: inline; }
.check.on .link-btn { display: none; }

.dropzone {
  margin-top: 12px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  border: 2px dashed var(--border); border-radius: 14px; padding: 20px 14px; cursor: pointer; transition: .15s; color: var(--primary);
}
.dropzone svg { width: 28px; height: 28px; margin-bottom: 4px; }
.dropzone strong { font-size: 14px; color: var(--text); }
.dropzone small { font-size: 12px; color: var(--muted); }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.files { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.files li { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 12px; background: var(--surface-2); }
.file-ico { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--surface); color: var(--accent); flex-shrink: 0; }
.file-ico svg { width: 18px; height: 18px; }
.file-meta { flex: 1; min-width: 0; }
.file-meta strong { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file-meta small { font-size: 11.5px; color: var(--muted); }
.files .empty-files { justify-content: center; font-size: 13px; color: var(--muted); background: transparent; border: 1px dashed var(--border); }

.criteria { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.criteria li { display: flex; gap: 8px; align-items: flex-start; }
.criteria svg { width: 15px; height: 15px; color: var(--accent); fill: currentColor; margin-top: 3px; }

.eval-form { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 8px; }
.eval-title { display: flex; gap: 8px; align-items: center; font-weight: 800; color: var(--accent); }
.eval-title svg { fill: currentColor; width: 18px; height: 18px; }
.eval-form label { font-size: 12.5px; font-weight: 700; margin-top: 4px; }
.grade-picker { display: grid; grid-template-columns: repeat(11, 1fr); gap: 4px; }
.grade-opt { aspect-ratio: 1; border-radius: 8px; border: 1.5px solid var(--border); font-size: 13px; font-weight: 700; transition: .12s; }
.grade-opt:hover { border-color: var(--accent); }
.grade-opt.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.eval-actions { display: flex; gap: 8px; margin-top: 6px; }
.eval-actions .btn { flex: 1; }
.eval-wait { margin-top: 16px; display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.eval-wait strong { display: block; color: var(--text); }
.eval-wait span { font-size: 13px; color: var(--muted); }
.eval-result { margin-top: 16px; display: flex; gap: 14px; padding: 14px; border-radius: 14px; align-items: flex-start; }
.eval-result.approved { background: var(--success-soft); }
.eval-result.changes { background: var(--warn-soft); }
.eval-score { width: 56px; height: 56px; flex-shrink: 0; border-radius: 14px; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.eval-score span { font-size: 22px; font-weight: 800; line-height: 1; color: var(--accent); }
.eval-score small { font-size: 10px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.eval-result strong { display: block; }
.eval-result.approved strong { color: var(--success); }
.eval-result.changes strong { color: var(--warn); }
.eval-result p { font-size: 13.5px; font-style: italic; margin: 4px 0; }
.eval-result small { font-size: 12px; color: var(--muted); }
.task-block > .link-btn { margin-top: 10px; display: inline-block; }

/* ---------------- Visualizador de arquivos ---------------- */
.file-viewer {
  width: min(1100px, 100%); height: min(88vh, 900px); background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; overflow: hidden; transform: scale(.98); transition: transform .2s;
}
.overlay.show .file-viewer { transform: none; }
.file-viewer header { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.file-viewer header strong { display: block; }
.file-viewer header small { color: var(--muted); font-size: 12.5px; }
.fv-actions { display: flex; gap: 8px; align-items: center; }
.fv-actions a { text-decoration: none; color: var(--text); }
.fv-body { flex: 1; min-height: 0; background: var(--surface-2); }
.fv-body iframe { width: 100%; height: 100%; border: 0; background: #fff; }
.fv-img { height: 100%; display: grid; place-items: center; padding: 20px; }
.fv-img img, .fv-img video { max-width: 100%; max-height: 100%; border-radius: 10px; }
.fv-text { margin: 0; height: 100%; overflow: auto; padding: 22px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.fv-empty { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--muted); }
.fv-empty svg { width: 44px; height: 44px; color: var(--primary); }
.fv-empty strong { color: var(--text); }

/* ---------------- Toasts ---------------- */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 12px;
  background: var(--text); color: var(--bg); font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg);
  animation: tin .25s both;
}
.toast.out { opacity: 0; transform: translateY(8px); transition: .25s; }
.toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
.toast.warn .toast-dot { background: var(--accent); }
@keyframes tin { from { opacity: 0; transform: translateY(10px); } }

/* ---------------- Responsivo ---------------- */
@media (max-width: 1240px) {
  .sheet-body { grid-template-columns: 260px minmax(0, 1fr); }
  .task-col { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 1100px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 280px; transform: translateX(-100%); transition: transform .25s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .only-mobile { display: inline-grid; }
  .topbar { padding: 14px 18px; }
  .topbar p { display: none; }
  .role-pill { display: none; }
  .view { padding: 20px 16px 48px; }
  .company { grid-template-columns: 1fr; }
  .company-nav { position: static; }
  .sheet-body { grid-template-columns: 1fr; padding: 18px; }
  .task-col { display: flex; }
  .sheet-head { padding: 20px; }
  .notice { margin: 14px 18px 0; }
  .overlay { padding: 0; }
  .sheet { border-radius: 0; min-height: 100vh; }
}
@media (max-width: 620px) {
  .stats, .stats.three { grid-template-columns: 1fr; }
  .next-card { flex-direction: column; align-items: flex-start; }
  .grid { grid-template-columns: 1fr; }
  .field.span2 { grid-column: auto; }
  .review-row { grid-template-columns: 36px 1fr 44px; }
  .review-row .badge { display: none; }
  .ebook-page { padding: 22px; }
  .form-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.stat.hero > div:last-child { display: flex; flex-direction: column; gap: 2px; }
.ring[style="--p:0"] .ring-fg { opacity: 0; }
[hidden] { display: none !important; }

/* =========================================================
   Gestão de clientes
   ========================================================= */
.nav-sep { margin: 12px 12px 4px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.client-switch {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 6px 0 12px;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--primary); max-width: 260px;
}
.client-switch select { border: 0; background: transparent; font: inherit; font-weight: 700; font-size: 14px; color: var(--text); outline: none; cursor: pointer; min-width: 0; text-overflow: ellipsis; padding-right: 4px; }
.client-switch select option { background: var(--surface); color: var(--text); }
.client-chip { margin-left: auto; font-size: 12.5px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.18); color: #fff; }
.txt-warn { color: var(--warn); }
.stats.four { grid-template-columns: repeat(4, 1fr); }

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.toolbar .filters { margin: 0; }
.toolbar .btn { margin-left: auto; }
.search { flex: 1 1 320px; display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--muted); }
.search:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 14%, transparent); }
.search input { flex: 1; border: 0; outline: none; background: transparent; font: inherit; color: var(--text); }

.client-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 18px; }
.client-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.client-card:hover { border-color: var(--primary-2); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.client-card.active { border: 2px solid var(--accent); padding: 17px; }
.client-card.pausado { opacity: .75; }
.client-card header { display: flex; align-items: center; gap: 12px; }
.avatar { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-size: 16px; flex-shrink: 0; }
.client-id { flex: 1; min-width: 0; }
.client-id strong { display: block; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-id span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.active-flag { position: absolute; top: -11px; left: 18px; font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; background: var(--accent); color: #fff; padding: 3px 10px; border-radius: 99px; }
.client-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 0; padding: 12px; border-radius: 12px; background: var(--surface-2); }
.client-facts div { min-width: 0; }
.client-facts dt { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.client-facts dd { margin: 2px 0 0; font-size: 13.5px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.client-progress { display: flex; flex-direction: column; gap: 8px; }
.cp-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.cp-top strong { color: var(--text); }
.seg-bar { display: flex; gap: 4px; }
.seg-bar i { flex: 1; height: 8px; border-radius: 99px; background: var(--surface-2); }
.seg-bar i.approved { background: var(--success); }
.seg-bar i.progress, .seg-bar i.available { background: color-mix(in srgb, var(--primary) 55%, var(--surface-2)); }
.seg-bar i.review { background: var(--accent); }
.seg-bar i.changes { background: var(--warn); }
.seg-bar i.overdue { box-shadow: 0 0 0 2px var(--danger); }
.cp-now { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cp-now b { color: var(--text); }
.pill { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.pill.review { background: var(--accent-soft); color: var(--accent); }
.pill.changes { background: var(--warn-soft); color: var(--warn); }
.client-card footer { display: flex; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.client-card footer .more { margin-left: auto; display: flex; gap: 6px; }
.btn svg { width: 16px; height: 16px; }
.station-types em.overdue { color: var(--danger); font-weight: 700; }

/* painel de gestão */
.manage-panel {
  width: min(920px, 100%); background: var(--bg); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden;
  transform: translateY(16px); transition: transform .25s;
}
.overlay.show .manage-panel { transform: none; }
.manage-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 22px 26px; background: var(--grad); color: #fff; }
.manage-head .eyebrow { color: #FFD7B5; }
.manage-head h2 { font-size: 24px; font-weight: 800; margin: 2px 0 4px; }
.manage-head p { color: rgba(255,255,255,.88); font-size: 14px; }
.manage-head .icon-btn { background: rgba(255,255,255,.15); border-color: rgba(255,255,255,.3); color: #fff; }
.manage-tools { display: flex; gap: 8px; flex-wrap: wrap; padding: 18px 26px 0; }
.manage-legend { display: flex; gap: 18px; flex-wrap: wrap; padding: 10px 26px 0; font-size: 12.5px; color: var(--muted); }
.manage-legend b { color: var(--text); }
.manage-list { list-style: none; margin: 0; padding: 16px 26px; display: flex; flex-direction: column; gap: 10px; }
.manage-row { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.manage-row.off { opacity: .6; background: transparent; border-style: dashed; }
.manage-row.off .review-num { background: var(--surface-2); color: var(--muted); }
.mr-main { min-width: 0; }
.mr-main strong { display: block; }
.mr-main > span { display: block; font-size: 13px; color: var(--muted); }
.mr-meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 6px; }
.mr-controls { display: grid; grid-template-columns: auto auto; gap: 8px 14px; align-items: center; justify-items: start; }
.mini-switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.mini-switch input { position: absolute; opacity: 0; pointer-events: none; }
.mini-switch span { position: relative; width: 36px; height: 20px; border-radius: 99px; background: var(--border); transition: .2s; }
.mini-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.mini-switch input:checked + span { background: var(--primary); }
.mini-switch input[data-cfg="unlocked"]:checked + span { background: var(--accent); }
.mini-switch input:checked + span::after { transform: translateX(16px); }
.mini-switch input:disabled + span { opacity: .4; }
.mini-switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.due { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; grid-column: 1 / -1; }
.due input { font: inherit; font-weight: 500; font-size: 13px; color: var(--text); background: var(--bg); border: 1.5px solid var(--border); border-radius: 9px; padding: 5px 8px; }
.due input:focus { outline: none; border-color: var(--primary); }
.danger-link { color: var(--danger); grid-column: 1 / -1; font-size: 12.5px; }
.manage-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 26px 22px; border-top: 1px solid var(--border); }

@media (max-width: 1100px) { .stats.four { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .client-switch { max-width: 170px; }
  .manage-row { grid-template-columns: 36px 1fr; }
  .mr-controls { grid-column: 1 / -1; }
  .overlay .manage-panel { border-radius: 0; min-height: 100vh; }
}
@media (max-width: 620px) {
  .stats.four { grid-template-columns: 1fr; }
  .client-grid { grid-template-columns: 1fr; }
  .client-facts { grid-template-columns: 1fr 1fr; }
  .toolbar .btn { margin-left: 0; width: 100%; }
}
.station-types em { white-space: nowrap; }
