/* Ben's Originals — Company Portal stylesheet
   Three brand colours, sampled straight out of the logo artwork:
     teal   #00BDC4   (the wordmark)
     orange #DD4929   (the tagline)
     white
   Everything else is a tint or shade of those. Change these and the whole app follows. */
:root {
  --teal-900: #005C61;     /* sidebar */
  --teal-800: #007A80;
  --teal-700: #009AA1;
  --teal-600: #00BDC4;     /* the logo teal */
  --teal-400: #3ED3D9;
  --teal-300: #83E3E7;
  --teal-100: #C6F1F3;
  --teal-50:  #E7FAFB;
  --brand: #00BDC4;
  --ink-900: #005C61;

  --accent: #DD4929;       /* the logo orange */
  --accent-600: #C63F22;
  --accent-700: #A83519;
  --accent-100: #FADBD2;
  --accent-50: #FDECE7;

  --sand: #E9922B;         /* amber — "needs attention", so it reads apart from the orange */
  --sand-100: #FDEFDC;

  --ink: #14343A;          /* body text: near-black with a teal cast */
  --muted: #5A7C81;
  --line: #D8ECEE;
  --bg: #F4FBFB;           /* barely-there teal tint so white cards lift off it */
  --card: #ffffff;

  --danger: #C0392B;
  --danger-100: #FADBD2;
  --ok: #0E8C88;           /* teal-green for "done" */
  --ok-50: #E0F5F4;
  --warn: #E9922B;

  --shadow: 0 1px 2px rgba(0, 60, 64, 0.05), 0 4px 16px rgba(0, 60, 64, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink); background: var(--bg); font-size: 14px; line-height: 1.5;
}
a { color: var(--teal-700); text-decoration: none; }
.boot { display: grid; place-items: center; height: 100vh; color: var(--muted); }
.hidden { display: none !important; }

/* ---------- Login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center;
  background: linear-gradient(155deg, var(--teal-900) 0%, var(--teal-700) 55%, var(--teal-400) 130%); padding: 20px; }
.login-card { background: var(--card); border-radius: 16px; box-shadow: var(--shadow);
  width: 100%; max-width: 380px; padding: 30px 32px 26px; text-align: center; }
.login-logo { display: block; width: 100%; max-width: 260px; height: auto; margin: 4px auto 2px; }
.login-card p.sub { color: var(--muted); margin: 2px 0 20px; font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase; }
.login-card form { text-align: left; }
.gbtn-wrap { display: flex; justify-content: center; min-height: 44px; margin: 4px 0 4px; }
.or-sep { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0 12px; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.login-foot { margin-top: 18px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.login-hint { margin-top: 16px; font-size: 12px; color: var(--muted); background: var(--teal-50);
  padding: 10px 12px; border-radius: var(--radius-sm); }

/* ---------- App launcher ---------- */
.launcher { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 520px at 50% -210px, var(--teal-100), var(--bg) 62%); }
.launch-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 34px; background: var(--card); border-bottom: 1px solid var(--line); }
.launch-top .logo { display: flex; align-items: center; gap: 14px; }
.launch-top .logo .brand-full { height: 50px; width: auto; display: block; }
.launch-top .logo .brand-tag { padding-left: 14px; border-left: 1px solid var(--line); color: var(--muted);
  font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.launch-body { max-width: 1040px; margin: 0 auto; padding: 52px 24px 70px; width: 100%; }
.launch-hero h1 { margin: 0 0 6px; font-size: 30px; letter-spacing: -0.3px; }
.launch-hero p { margin: 0; font-size: 15px; }
.app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 34px; }
.app-card { position: relative; display: block; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; padding: 24px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: .18s ease; overflow: hidden; }
.app-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--c, var(--teal-600)); }
.app-card:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(10, 85, 94, .18); border-color: var(--c, var(--teal-600)); }
.app-ic { width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; line-height: 1; }
.app-name { font-size: 19px; font-weight: 700; margin-top: 16px; }
.app-desc { color: var(--muted); font-size: 13px; margin-top: 4px; min-height: 36px; }
.app-open { margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--c, var(--teal-700)); }
.app-open span { transition: .18s; display: inline-block; }
.app-card:hover .app-open span { transform: translateX(4px); }
.app-lvl { position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 700; color: var(--muted);
  background: var(--bg); border: 1px solid var(--line); padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .3px; }
.applink { display: flex; align-items: center; gap: 8px; color: var(--teal-300); font-size: 12px; padding: 2px 8px 12px; text-decoration: none; }
.applink:hover { color: #fff; }

/* ---------- App shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: var(--teal-900); color: #DDF1F3; padding: 18px 12px; position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; }
.sidebar .logo { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.sidebar .logo .mark { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.14);
  display: grid; place-items: center; font-weight: 800; color: #fff; }
.sidebar .logo b { font-size: 15px; color: #fff; letter-spacing: .2px; }
.sidebar .logo span { display: block; font-size: 11px; color: var(--teal-300); }
.nav { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px;
  color: #CDEAED; font-weight: 500; font-size: 13.5px; }
.nav a .ic { width: 18px; text-align: center; opacity: .9; }
.nav a:hover { background: rgba(255,255,255,.12); }
.nav a.active { background: var(--accent); color: #fff; box-shadow: 0 1px 6px rgba(226,76,51,.35); }
.nav .group-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--teal-400);
  padding: 14px 12px 6px; }
.sidebar .foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.16);
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sidebar .foot .foot-logo { width: 138px; height: auto; opacity: .95; display: block; }
.sidebar .foot .foot-email { font-size: 11px; color: var(--teal-300); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.main { display: flex; flex-direction: column; min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 30px; background: var(--card); border-bottom: 2px solid var(--teal-100); position: sticky; top: 0; z-index: 5; }
.topbar h2 { margin: 0; font-size: 18px; }
.user { display: flex; align-items: center; gap: 14px; }
.user .user-meta { line-height: 1.25; }
.user .user-name { font-weight: 600; font-size: 13.5px; }
.user .user-email { font-size: 12px; color: var(--muted); }
.user .btn { margin-left: 6px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--teal-100); color: var(--teal-800);
  display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.content { padding: 24px 26px 60px; max-width: 1200px; width: 100%; }

/* ---------- Generic ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .cols-2,.cols-3,.cols-4 { grid-template-columns: 1fr; } .shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } }

.stat { padding: 16px 18px; }
.stat .label { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.stat .value { font-size: 26px; font-weight: 700; margin-top: 4px; }
.stat .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }

.section-head { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 14px; }
.section-head h3 { margin: 0; font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt { margin-top: 16px; } .mt-s { margin-top: 8px; } .mb { margin-bottom: 16px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff;
  color: var(--ink); padding: 8px 14px; border-radius: var(--radius-sm); font-weight: 600; cursor: pointer;
  font-size: 13px; transition: .12s; }
.btn:hover { border-color: var(--teal-300); color: var(--teal-800); }
.btn.primary { background: var(--teal-600); border-color: var(--teal-600); color: #fff; }
.btn.primary:hover { background: var(--teal-700); }
.btn.accent, .btn.sand { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.accent:hover, .btn.sand:hover { background: var(--accent-700); border-color: var(--accent-700); }
.btn.danger { background: #fff; color: var(--danger); border-color: var(--danger-100); }
.btn.danger:hover { background: var(--danger-100); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--teal-700); }
.btn.orange { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.orange:hover { background: var(--accent-700); border-color: var(--accent-700); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

/* Tables */
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th { text-align: left; color: var(--muted); font-weight: 600; font-size: 11.5px; text-transform: uppercase;
  letter-spacing: .4px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--teal-50); }
.table-wrap { overflow-x: auto; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Badges */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.badge.green { background: var(--ok-50); color: #0B6A67; }
.badge.sand, .badge.amber { background: var(--sand-100); color: #96631A; }
.badge.accent, .badge.orange { background: var(--accent-50); color: var(--accent-700); }
.badge.teal { background: var(--teal-50); color: var(--teal-800); }
.badge.red { background: var(--accent-50); color: var(--accent-700); }
.badge.grey { background: #eef1ee; color: var(--muted); }
.badge.blue { background: var(--teal-50); color: var(--teal-700); }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }

/* Forms */
label.field { display: block; margin-bottom: 12px; }
label.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
input, select, textarea { width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  font-size: 13.5px; font-family: inherit; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--teal-600); box-shadow: 0 0 0 3px var(--teal-50); }
textarea { resize: vertical; min-height: 70px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px){ .form-grid { grid-template-columns: 1fr; } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0 0 14px; }
fieldset legend { font-size: 12px; font-weight: 700; color: var(--teal-700); padding: 0 6px; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { border: none; background: none; padding: 10px 14px; font-weight: 600; color: var(--muted);
  cursor: pointer; border-bottom: 2px solid transparent; font-size: 13px; }
.tabs button.active { color: var(--teal-700); border-bottom-color: var(--teal-600); }

/* Modal */
.modal-back { position: fixed; inset: 0; background: rgba(10, 60, 66, .5); display: grid; place-items: center;
  z-index: 50; padding: 20px; }
.modal { background: #fff; border-radius: 14px; width: 100%; max-width: 560px; max-height: 90vh;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal.wide { max-width: 820px; }
.modal .m-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px;
  border-bottom: 1px solid var(--line); background: #fff; flex: none; }
.modal .m-head h3 { margin: 0; font-size: 16px; }
.modal .m-body { padding: 20px; overflow-y: auto; flex: 1 1 auto; }
.modal .m-foot { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px;
  background: #fff; flex: none; }
.x-close { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); line-height: 1; }

/* Toast */
#toast-root { position: fixed; right: 18px; bottom: 18px; display: flex; flex-direction: column; gap: 8px; z-index: 100; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 9px; font-size: 13px;
  box-shadow: var(--shadow); animation: slideup .2s; max-width: 340px; }
.toast.ok { background: var(--teal-700); }
.toast.err { background: var(--accent-700); }
.toast.err { background: var(--danger); }
@keyframes slideup { from { transform: translateY(8px); opacity: 0; } }

/* Charts */
.bar-chart { display: flex; align-items: flex-end; gap: 10px; height: 150px; padding-top: 10px; }
.bar-chart .col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; justify-content: flex-end; height: 100%; }
.bar-chart .bar { width: 100%; max-width: 34px; background: var(--teal-600); border-radius: 5px 5px 0 0; min-height: 2px; transition: height .3s; }
.bar-chart .col:hover .bar { background: var(--accent); }
.bar-chart .cap { font-size: 10.5px; color: var(--muted); }
.bar-chart .val { font-size: 10.5px; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 10px 16px; margin-top: 10px; font-size: 12px; }
.legend span { display: inline-flex; align-items: center; }
.hbar { height: 10px; border-radius: 5px; background: var(--teal-50); overflow: hidden; }
.hbar > i { display: block; height: 100%; background: var(--teal-600); border-radius: 5px; }

.progress-ring { display: inline-grid; place-items: center; }

/* Payslip print */
.payslip { font-size: 13px; }
.payslip .prow { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.payslip .ptot { display: flex; justify-content: space-between; padding: 8px 0; font-weight: 700; border-top: 2px solid var(--ink); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 640px){ .two-col { grid-template-columns: 1fr; } }

.emp-head { display: flex; align-items: center; gap: 16px; }
.emp-head .big-avatar { width: 60px; height: 60px; border-radius: 14px; background: var(--teal-50); color: var(--teal-800);
  display: grid; place-items: center; font-size: 22px; font-weight: 800; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 13px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

@media print {
  .sidebar, .topbar, .no-print { display: none !important; }
  .shell { grid-template-columns: 1fr; } .content { padding: 0; }
  .modal-back { position: static; background: none; } .modal { box-shadow: none; max-height: none; }
}

/* ================================================================ Ben's Originals additions */

/* Page header + filter bar */
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head h1 { margin: 0; font-size: 21px; letter-spacing: -.2px; }
.page-head .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters input, .filters select { width: auto; min-width: 150px; }
.filters .grow { flex: 1; min-width: 200px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; background: #fff; overflow: hidden; }
.seg button { border: none; background: none; padding: 7px 14px; font-size: 12.5px; font-weight: 600; color: var(--muted); cursor: pointer; }
.seg button.active { background: var(--teal-600); color: #fff; }
.seg button:hover:not(.active) { color: var(--teal-800); }

/* Health pills */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .2px; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.on_track { background: var(--ok-50); color: #0B6A67; }
.pill.at_risk { background: var(--sand-100); color: #96631A; }
.pill.late { background: var(--accent-50); color: var(--accent-700); }
.pill.done { background: var(--teal-50); color: var(--teal-800); }
.pill.no_deadline, .pill.closed { background: #EDF2F3; color: var(--muted); }

/* Kanban board */
.board { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; align-items: flex-start; }
.board .col { flex: 0 0 268px; background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: 14px; padding: 10px; min-height: 120px; }
.board .col > h4 { margin: 4px 6px 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); display: flex; justify-content: space-between; }
.board .col > h4 b { color: var(--ink); }
.bcard { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; margin-bottom: 9px; display: block; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(15,30,32,.04); transition: .12s; }
.bcard:hover { border-color: var(--teal-600); transform: translateY(-1px); box-shadow: 0 4px 12px rgba(10,85,94,.10); }
.bcard .code { font-weight: 700; font-size: 12.5px; color: var(--teal-800); }
.bcard .ttl { font-size: 13px; margin: 2px 0 6px; }
.bcard .meta { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: var(--muted); gap: 6px; }
.bcard.rush { border-left: 3px solid var(--accent); }

/* Timeline */
.timeline { position: relative; padding-left: 20px; }
.timeline::before { content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.tl-item { position: relative; padding: 0 0 14px; font-size: 13px; }
.tl-item::before { content: ''; position: absolute; left: -19px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal-600); border: 2px solid #fff; }
.tl-item.status::before { background: var(--accent); }
.tl-item.invoice::before { background: var(--ok); }
.tl-item.stock::before, .tl-item.allocation::before { background: var(--sand); }
.tl-item .when { color: var(--muted); font-size: 11.5px; }

/* Availability meter */
.meter { display: flex; height: 12px; border-radius: 6px; overflow: hidden; background: #E6EEEF; }
.meter i { display: block; height: 100%; }
.meter i.firm { background: var(--teal-600); }
.meter i.soft { background: var(--teal-300); }
.meter i.free { background: #C3D5D8; }
.meter-key { display: flex; gap: 12px; font-size: 11px; color: var(--muted); margin-top: 5px; flex-wrap: wrap; }
.meter-key b { color: var(--ink); }
.meter-key i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; }

/* Colour swatch + chips */
.swatch { display: inline-block; width: 13px; height: 13px; border-radius: 3px; border: 1px solid rgba(0,0,0,.15); vertical-align: -2px; margin-right: 6px; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px 9px; font-size: 11.5px; }
.chip.on { background: var(--teal-50); border-color: var(--teal-300); color: var(--teal-800); font-weight: 600; }

/* Files */
.file-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.file-card { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: #fff; }
.file-card .thumb { height: 108px; background: var(--teal-50) center/cover no-repeat; display: grid; place-items: center; font-size: 30px; color: var(--muted); }
.file-card .fmeta { padding: 8px 10px; font-size: 12px; }
.file-card .fmeta b { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .fmeta span { color: var(--muted); font-size: 11px; }

/* Compact tables & helpers */
table.compact th, table.compact td { padding: 7px 9px; font-size: 12.5px; }
tr.short td { background: var(--accent-50); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { padding: 26px; text-align: center; color: var(--muted); font-size: 13px; }
.tag { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  color: var(--muted); background: #F1F7F8; border: 1px solid var(--line); padding: 2px 7px; border-radius: 5px; }
.tag.teal { background: var(--teal-50); border-color: var(--teal-300); color: var(--teal-800); }
.tag.accent { background: var(--accent-50); border-color: var(--accent-100); color: var(--accent-700); }
.stat.accent .value { color: var(--accent); }
.stat.warn .value { color: var(--warn); }
.stat.ok .value { color: var(--ok); }
.hint { background: var(--teal-50); border-left: 3px solid var(--teal-600); padding: 10px 12px; border-radius: 0 8px 8px 0; font-size: 12.5px; }
.hint.warn { background: var(--sand-100); border-color: var(--warn); }
.hint.danger { background: var(--accent-50); border-color: var(--accent); }
.reasons { margin: 6px 0 0; padding-left: 18px; font-size: 12.5px; color: var(--muted); }
.plan-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.plan-row .step { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; }
.plan-row .step .lbl { font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); }
.plan-row .step .val { font-weight: 700; font-size: 13px; margin-top: 2px; }
.plan-row .step.past { border-color: var(--accent-100); background: var(--accent-50); }
.plan-row .step.soon { border-color: #F5DEB0; background: var(--sand-100); }
.line-add { background: var(--teal-50); border-top: 1px solid var(--line); padding: 10px 12px; }
.split { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.mini { font-size: 11.5px; color: var(--muted); }
.pointer { cursor: pointer; }
.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 1100px) { .cols-5 { grid-template-columns: repeat(2, 1fr); } }
.plan-row .step.done { border-color: var(--teal-300); background: var(--teal-50); }
.plan-row .step.done .val { color: var(--teal-800); }

/* Checkbox filters: the generic `.filters input { min-width: 150px }` rule would otherwise
   stretch the checkbox into a 150px box and push its label away from it. */
.filters label { flex: none; margin-bottom: 0; }
.filters input[type="checkbox"] { min-width: 0; width: 16px; height: 16px; flex: none; margin: 0; }
