:root {
  --navy: #073889;
  --navy-dark: #052763;
  --navy-soft: #e8eef9;
  --orange: #f46015;
  --orange-dark: #d84e0a;
  --sky: #009cdc;
  --sky-soft: #e6f5fc;
  --ink: #0e1a32;
  --muted: #5b6478;
  --line: #e1e5ee;
  --bg: #f6f7fb;
  --card: #ffffff;
  --success: #1f8a44;
  --warning: #b46a00;
  --danger: #b42318;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(7, 56, 137, 0.08);
  --shadow-lg: 0 12px 32px rgba(7, 56, 137, 0.14);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Exo', sans-serif; color: var(--navy); margin: 0 0 12px; font-weight: 600; letter-spacing: -0.01em; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
p { margin: 0 0 10px; }
a { color: var(--navy); }

button { font-family: inherit; font-size: 15px; border: 0; cursor: pointer; border-radius: 10px; padding: 10px 18px; font-weight: 600; transition: background .15s, transform .05s; }
button:active { transform: translateY(1px); }
button.primary { background: var(--orange); color: #fff; }
button.primary:hover { background: var(--orange-dark); }
button.secondary { background: var(--navy); color: #fff; }
button.secondary:hover { background: var(--navy-dark); }
button.ghost { background: transparent; color: var(--navy); border: 1px solid var(--line); }
button.ghost:hover { background: var(--navy-soft); }
button:disabled { opacity: .55; cursor: not-allowed; }

input[type="text"], textarea, select {
  font-family: inherit; font-size: 15px; width: 100%; padding: 11px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 180px; resize: vertical; line-height: 1.5; }
input:focus, textarea:focus, select:focus { outline: 0; border-color: var(--sky); box-shadow: 0 0 0 3px var(--sky-soft); }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }

/* Layout */
.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--navy); }
.brand img { height: 52px; width: auto; display: block; }
.brand-sub { color: var(--orange); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding-top: 18px; display: flex; align-items: center; }
.nav { display: flex; gap: 4px; margin-left: 24px; }
.nav a { text-decoration: none; color: var(--muted); padding: 8px 14px; border-radius: 8px; font-weight: 500; }
.nav a:hover { background: var(--navy-soft); color: var(--navy); }
.nav a.active { background: var(--navy); color: #fff; }
.user-chip { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; }

/* Broker-schakelaar in de topbar: stuurt of MSP-plaatsingen in alle overzichten meetellen. */
.broker-toggle {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  user-select: none;
  transition: border-color .15s ease, background .15s ease;
}
.broker-toggle:hover { border-color: var(--navy); }
.broker-toggle.on { border-color: var(--sky); background: #f2fafe; }
.broker-toggle.off { border-color: #e4a55a; background: #fff7ef; }
.broker-toggle-text {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  line-height: 1.1;
  font-size: 12px;
  color: var(--muted);
}
.broker-toggle-text strong { color: var(--navy); font-size: 13px; letter-spacing: .02em; }
.broker-toggle.on .broker-toggle-state { color: var(--sky); font-weight: 600; }
.broker-toggle.off .broker-toggle-state { color: var(--orange); font-weight: 600; }

.broker-toggle .switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.broker-toggle .switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.broker-toggle .switch-slider {
  position: absolute;
  inset: 0;
  background: #d4d8df;
  border-radius: 999px;
  transition: background .2s ease;
}
.broker-toggle .switch-slider::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,.25);
  transition: transform .2s ease;
}
.broker-toggle.on .switch-slider { background: var(--sky); }
.broker-toggle.on .switch-slider::after { transform: translateX(18px); }

.main { flex: 1; max-width: 1200px; margin: 0 auto; padding: 28px 24px; width: 100%; }

.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px; margin-bottom: 20px; }
.card-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 16px; flex-wrap: wrap; }

/* Login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy) 0%, var(--sky) 100%); padding: 20px; }
.login-card { background: #fff; padding: 40px; border-radius: 18px; width: 100%; max-width: 440px; text-align: center; box-shadow: var(--shadow-lg); }
.login-card img.logo { height: 72px; margin-bottom: 20px; }
.login-card h1 { margin-bottom: 8px; }
.login-card p { color: var(--muted); margin-bottom: 28px; }
.ms-btn { width: 100%; background: #0067b8; color: #fff; font-size: 16px; padding: 13px 18px; display: flex; align-items: center; justify-content: center; gap: 12px; }
.ms-btn:hover { background: #004e8c; }
.ms-btn svg { width: 20px; height: 20px; }
.login-note { font-size: 13px; color: var(--muted); margin-top: 20px; }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; text-transform: none; }
.badge.preferred { background: #fff1e6; color: var(--orange-dark); }
.badge.exclusive { background: #fde8e8; color: var(--danger); }
.badge.special { background: var(--sky-soft); color: var(--sky); }
.badge.muted { background: var(--navy-soft); color: var(--navy); }

/* Match result card */
.match-grid { display: grid; gap: 16px; }
.match-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; position: relative; border-left: 5px solid var(--orange); }
.match-card .rank { position: absolute; top: -12px; left: 20px; background: var(--navy); color: #fff; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-family: 'Exo', sans-serif; }
.match-card h3 { margin-bottom: 4px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.match-meta { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.score-row { display: flex; align-items: center; gap: 18px; margin-bottom: 14px; flex-wrap: wrap; }
.score-total { font-family: 'Exo', sans-serif; font-size: 40px; font-weight: 700; color: var(--navy); line-height: 1; }
.score-total-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.score-bars { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; min-width: 280px; }
.score-bar { font-size: 13px; }
.score-bar .sb-label { display: flex; justify-content: space-between; color: var(--muted); margin-bottom: 4px; }
.score-bar .sb-track { height: 6px; background: var(--line); border-radius: 3px; overflow: hidden; }
.score-bar .sb-fill { height: 100%; background: linear-gradient(90deg, var(--sky), var(--navy)); }
.reasoning { color: var(--ink); background: var(--navy-soft); padding: 12px 14px; border-radius: 10px; font-size: 15px; }
.match-footer { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

/* Table */
table.grid { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.grid th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 14px 16px; background: #fafbfe; border-bottom: 1px solid var(--line); font-weight: 600; }
table.grid td { padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
table.grid tr:last-child td { border-bottom: 0; }
table.grid tr.clickable { cursor: pointer; }
table.grid tr.clickable:hover td { background: #fafbfe; }
.num { text-align: right; font-variant-numeric: tabular-nums; }

/* KPI tiles */
.kpi-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 20px; }
.kpi { background: #fff; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); position: relative; }
.kpi .label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 6px; }
.kpi .value { font-family: 'Exo', sans-serif; font-size: 26px; font-weight: 700; color: var(--navy); }
.kpi-type { border-top: 3px solid var(--line); }
.kpi-type.warm    { border-top-color: var(--navy); }
.kpi-type.broker  { border-top-color: var(--sky); }
.kpi-type.interim { border-top-color: var(--orange); }
.kpi-type.warm    .value { color: var(--navy); }
.kpi-type.broker  .value { color: var(--sky); }
.kpi-type.interim .value { color: var(--orange); }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.filters input, .filters select { max-width: 220px; }

/* Loading / empty */
.center { display: flex; justify-content: center; align-items: center; padding: 40px; color: var(--muted); }
.spinner { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Match-loader: aanvraag ↔ leverancier animatie op de matching-pagina */
.match-loader { display: flex; flex-direction: column; align-items: center; gap: 18px; width: 100%; }
.match-loader-track { position: relative; width: 380px; max-width: 100%; height: 48px; }
.match-loader-chip {
  position: absolute; top: 50%; width: 140px; box-sizing: border-box;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 14px; border-radius: 999px;
  font-family: 'Exo', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .04em; text-transform: uppercase;
  box-shadow: var(--shadow); white-space: nowrap;
  will-change: transform;
}
.match-loader-chip--request  { left: 0;  background: var(--navy);   color: #fff; animation: ml-slide-right 2.4s ease-in-out infinite; }
.match-loader-chip--supplier { right: 0; background: var(--orange); color: #fff; animation: ml-slide-left  2.4s ease-in-out infinite; }
.match-loader-spark {
  position: absolute; left: 50%; top: 50%;
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: ml-spark 2.4s ease-in-out infinite;
}
.match-loader-status {
  color: var(--muted); font-size: 14px; min-height: 1.2em; text-align: center;
  transition: opacity .2s;
}
@keyframes ml-slide-right {
  0%, 12%, 100% { transform: translate(0, -50%); }
  48%, 62%      { transform: translate(50px, -50%); }
}
@keyframes ml-slide-left {
  0%, 12%, 100% { transform: translate(0, -50%); }
  48%, 62%      { transform: translate(-50px, -50%); }
}
@keyframes ml-spark {
  0%, 40%, 70%, 100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(255, 138, 46, 0);
  }
  50%, 58% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    box-shadow: 0 0 16px 6px rgba(255, 138, 46, .55);
  }
}
@media (prefers-reduced-motion: reduce) {
  .match-loader-chip--request,
  .match-loader-chip--supplier,
  .match-loader-spark { animation: none; }
}
@media (max-width: 420px) {
  .match-loader-track { width: 300px; }
  .match-loader-chip  { width: 120px; font-size: 12px; padding: 8px 10px; }
  @keyframes ml-slide-right { 0%, 12%, 100% { transform: translate(0, -50%); } 48%, 62% { transform: translate(35px, -50%); } }
  @keyframes ml-slide-left  { 0%, 12%, 100% { transform: translate(0, -50%); } 48%, 62% { transform: translate(-35px, -50%); } }
}

.error-box { background: #fde8e8; color: var(--danger); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }
.info-box { background: var(--sky-soft); color: var(--navy); padding: 12px 14px; border-radius: 10px; margin-bottom: 14px; font-size: 14px; }

.muted { color: var(--muted); }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { background: var(--navy-soft); color: var(--navy); border-radius: 6px; padding: 2px 8px; font-size: 12px; }

/* Form */
.form-row { display: grid; gap: 18px; }
.file-drop { border: 2px dashed var(--line); border-radius: 10px; padding: 16px; text-align: center; color: var(--muted); font-size: 14px; cursor: pointer; transition: border-color .15s, background .15s; }
.file-drop:hover { border-color: var(--sky); background: var(--sky-soft); }
.file-drop.has-file { border-color: var(--success); background: #eafbf1; color: var(--success); }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; background: rgba(14, 26, 50, 0.45); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(680px, 100%); max-height: 90vh; overflow-y: auto; padding: 28px; }
.modal-form h2 { margin-top: 0; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-bottom: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.form-grid input, .form-grid select, .form-grid textarea { margin: 0; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid textarea { min-height: 90px; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
button.ghost.danger { color: var(--danger); border-color: var(--danger); }
button.ghost.danger:hover { background: #fdecec; }

/* Kaarten naast elkaar (funnel + pie e.d.) */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-bottom: 20px; }
.two-col > .card { margin: 0; }
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
}

/* Funnel */
.funnel { display: flex; align-items: stretch; gap: 4px; flex-wrap: nowrap; margin: 10px 0 14px; }
.funnel-step { background: var(--navy-soft); border-radius: 8px; padding: 8px 6px; min-width: 0; flex: 1 1 0; text-align: center; box-sizing: border-box; }
.funnel-step .funnel-num { font-family: 'Exo', sans-serif; font-size: 20px; font-weight: 700; color: var(--navy); line-height: 1; }
.funnel-step .funnel-label { margin-top: 3px; font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.funnel-arrow { align-self: center; font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 3px; flex-shrink: 0; }
.funnel-arrow .funnel-pct { font-size: 11px; font-weight: 600; color: var(--orange); background: #fff1e6; padding: 1px 6px; border-radius: 999px; }

/* Monthly bar chart */
.mchart { display: grid; grid-template-columns: repeat(24, 1fr); gap: 6px; height: 220px; padding: 8px 0; }
.mchart-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.mchart-stack { display: flex; align-items: flex-end; gap: 2px; width: 100%; height: 180px; }
.mchart-bar { flex: 1; border-radius: 3px 3px 0 0; min-height: 1px; transition: opacity .15s; position: relative; display: flex; justify-content: center; }
.mchart-bar:hover { opacity: .75; }
.mchart-bar.offered { background: #c3d3f0; }
.mchart-bar.intake  { background: #ffba7a; }
.mchart-bar.placed  { background: #1f3a70; }
.mchart-val { position: absolute; top: -14px; font-size: 10px; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; pointer-events: none; }
.mchart-bar.placed .mchart-val { color: var(--navy); }
.mchart-xlabel { font-size: 10px; color: var(--muted); text-align: center; transform: rotate(-45deg); transform-origin: center; white-space: nowrap; }
.mchart-legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin: 0 0 10px; flex-wrap: wrap; }
.mchart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.mchart-swatch.offered { background: #c3d3f0; }
.mchart-swatch.intake  { background: #ffba7a; }
.mchart-swatch.placed  { background: #1f3a70; }

/* Pie chart */
.pie-wrap { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.pie-svg { flex-shrink: 0; filter: drop-shadow(0 2px 6px rgba(7, 56, 137, 0.08)); }
.pie-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 240px; flex: 1; }
.pie-legend li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pie-swatch { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.pie-label { flex: 1; color: var(--ink); }
.pie-value { font-variant-numeric: tabular-nums; font-size: 13px; }

/* Plaatsingen met eenzijdige boeking (alleen inkoop of alleen verkoop) */
tr.placement-incomplete { background: #fff8e6; }
tr.placement-incomplete td { color: #8a6a1b; }
.incomplete-tag { color: #c98a00; cursor: help; font-weight: 700; }

/* Uitklapbare inzet-secties */
.placements-groups { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.placements-group { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.placements-group[open] { box-shadow: inset 0 0 0 1px var(--navy-soft); }
.placements-summary { list-style: none; cursor: pointer; padding: 14px 18px; display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); user-select: none; }
.placements-summary::-webkit-details-marker { display: none; }
.placements-caret { width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(-45deg); transition: transform .15s ease; flex-shrink: 0; }
.placements-group[open] > .placements-summary .placements-caret { transform: rotate(45deg); }
.placements-title { flex: 1; font-size: 15px; }
.placements-count { background: var(--navy-soft); color: var(--navy); font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.placements-margin { background: #fff1e6; color: var(--orange); font-variant-numeric: tabular-nums; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }

/* Type-indicatie: bolletje voor de sectie-titel + badge in tabelrij */
.type-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; display: inline-block; }
.type-dot.warm    { background: var(--navy); }
.type-dot.broker  { background: var(--sky); }
.type-dot.interim { background: var(--orange); }
.type-dot.other   { background: var(--muted); }

.type-badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; }
.type-badge.warm    { background: var(--navy); color: #fff; }
.type-badge.broker  { background: #e6f4fb; color: var(--sky); }
.type-badge.interim { background: #fff1e6; color: var(--orange); }
.type-badge.other   { background: var(--navy-soft); color: var(--muted); }
.placements-subtitle { padding: 0 18px; margin: -4px 0 10px; font-size: 13px; }
.placements-empty { padding: 0 18px 14px; margin: 0; font-size: 13px; }
.placements-group .table-scroll { border-radius: 0; border-top: 1px solid var(--line); }

/* Contact-voorvertoning in match-card */
.contact-preview { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.contact-list { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.contact-chip { background: var(--navy-soft); border-radius: 999px; padding: 6px 12px; font-size: 13px; }
.contact-chip strong { color: var(--navy); font-weight: 600; }

/* Sorteerbare kolomheaders */
table.grid th.sortable { cursor: pointer; user-select: none; }
table.grid th.sortable:hover { color: var(--navy); }
.sort-ind { color: var(--orange); font-weight: 700; }

/* Tabel horizontaal scrollbaar voor brede placement-lijsten */
.table-scroll { overflow-x: auto; border-radius: var(--radius); }
.table-scroll table.grid { min-width: 760px; }

/* Rapport (print) */
.report-wrap { max-width: 980px; margin: 0 auto; }
.report-actions { display: flex; gap: 10px; margin-bottom: 16px; }
.report { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px; }
.report-head { display: flex; gap: 18px; align-items: center; border-bottom: 2px solid var(--line); padding-bottom: 16px; margin-bottom: 20px; }
.report-logo { height: 64px; width: auto; }
.report-head h1 { margin: 0 0 4px; font-size: 24px; }
.report-section { margin: 22px 0; }
.report-section h2 { font-size: 18px; margin: 0 0 10px; color: var(--navy); }
.report-foot { text-align: center; font-size: 11px; margin-top: 28px; border-top: 1px solid var(--line); padding-top: 10px; }

@media print {
  @page { size: A4; margin: 16mm 12mm; }
  body { background: #fff !important; }
  .topbar, .no-print, .report-actions { display: none !important; }
  .main { padding: 0 !important; }
  .report-wrap { max-width: 100%; }
  .report { box-shadow: none; padding: 0; border-radius: 0; }
  .report-section { page-break-inside: avoid; break-inside: avoid; }
  table.grid { box-shadow: none; font-size: 11px; }
  table.grid th, table.grid td { padding: 6px 8px; }
  .kpi { box-shadow: none; padding: 10px 12px; }
  .kpi .value { font-size: 18px; }
  .mchart { height: 120px; }
}

/* Responsive */
@media (max-width: 720px) {
  .topbar-inner { padding: 12px 16px; flex-wrap: wrap; }
  .nav { margin-left: 0; order: 3; width: 100%; overflow-x: auto; }
  .user-chip { margin-left: auto; }
  .main { padding: 20px 16px; }
  .score-bars { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
}
