:root {
  --ink:#10233f;
  --muted:#5f6f83;
  --line:#d8e0ea;
  --panel:#fff;
  --blue:#17365d;
  --soft:#eef5f6;
  --ok:#15803d;
  --warn:#b45309;
}
* { box-sizing:border-box; }
body { margin:0; font-family:Arial, sans-serif; color:var(--ink); background:#f6f8fb; }
header { background:var(--blue); color:#fff; padding:22px 28px; }
header h1 { margin:0 0 8px; font-size:26px; }
header nav { display:flex; gap:8px; flex-wrap:wrap; }
header a { color:#fff; text-decoration:none; border:1px solid rgba(255,255,255,.35); border-radius:6px; padding:7px 10px; }
header a.active, header a:hover { background:#fff; color:var(--blue); }
main { padding:22px; max-width:1320px; margin:0 auto; }
.layout { display:grid; grid-template-columns:280px 1fr; gap:16px; }
.dashboard-grid { display:grid; grid-template-columns:minmax(0,1.6fr) minmax(280px,.9fr); gap:16px; margin-top:14px; }
.panel, .card { background:var(--panel); border:1px solid var(--line); border-radius:8px; padding:14px; }
.hero-panel { background:#fff; border:1px solid var(--line); border-radius:8px; padding:18px; margin-bottom:14px; display:flex; justify-content:space-between; gap:16px; align-items:flex-end; }
.hero-panel h2 { margin:0 0 8px; font-size:28px; }
.hero-actions { display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; }
.eyebrow { margin:0 0 6px; color:#174e55; font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }
.stats { display:grid; grid-template-columns:repeat(4,minmax(140px,1fr)); gap:10px; margin-bottom:14px; }
.stat { background:var(--soft); border:1px solid #c7dcdf; border-radius:8px; padding:12px; }
.stat strong { display:block; font-size:23px; color:#174e55; }
label { display:block; font-weight:700; margin:12px 0 5px; }
label input[type="checkbox"] { margin-right:7px; }
input, select, textarea { width:100%; padding:10px; border:1px solid var(--line); border-radius:6px; font:inherit; }
button, .button { border:1px solid var(--blue); background:var(--blue); color:white; padding:8px 10px; border-radius:6px; text-decoration:none; cursor:pointer; display:inline-block; }
.button.secondary, button.secondary { background:#f7fbff; color:var(--blue); }
.meta { color:var(--muted); font-size:13px; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.tag { background:#eef0f4; border-radius:999px; padding:3px 8px; font-size:12px; }
.tag.warn { background:#fff4d6; color:var(--warn); }
.tag.ok { background:#e7f6ec; color:var(--ok); }
.card { margin:10px 0; }
.card h2, .card h3 { margin:0 0 8px; }
.summary { line-height:1.45; color:#2d3748; }
.muted { color:var(--muted); }
.flash { padding:12px; border-radius:6px; margin:0 0 14px; background:#e7f6ec; }
.flash.error { background:#fff4d6; }
.table { width:100%; border-collapse:collapse; background:#fff; border:1px solid var(--line); border-radius:8px; overflow:hidden; }
.table th, .table td { border-bottom:1px solid var(--line); padding:10px; text-align:left; vertical-align:top; }
.table th { background:#f0f4f8; }
.table.compact th, .table.compact td { padding:7px 9px; }
.admin-box { margin-top:12px; border-top:1px solid var(--line); padding-top:12px; }
.pdf-preview { width:100%; min-height:78vh; border:1px solid var(--line); border-radius:8px; background:#fff; }
.empty { padding:16px; border:1px dashed var(--line); border-radius:8px; color:var(--muted); }
.process-list { margin-top:12px; display:grid; gap:4px; }
.process-link { color:var(--ink); text-decoration:none; display:grid; gap:4px; padding:8px; border-radius:6px; }
.process-link:hover, .process-link.active { background:#eaf2f8; }
.process-link .tag { width:max-content; }
.list-row { display:flex; justify-content:space-between; gap:12px; align-items:flex-start; border-top:1px solid var(--line); padding:12px 0; }
.list-row:first-of-type { border-top:0; }
.list-row h3 { margin:0 0 5px; font-size:16px; }
.action-list { margin:0; padding-left:20px; line-height:1.55; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.form-grid label { margin:0; }
.form-grid .wide { grid-column:1 / -1; }
@media (max-width:860px) {
  .layout { grid-template-columns:1fr; }
  .dashboard-grid { grid-template-columns:1fr; }
  .hero-panel { display:block; }
  .hero-actions { justify-content:flex-start; margin-top:12px; }
  .form-grid { grid-template-columns:1fr; }
  .stats { grid-template-columns:1fr; }
}
