/* V-Planner – V-Service huisstijl (tokens gelijk aan V-Nav / RCCP / RF Dashboard).
   Lettertype Verdana; op Android/Linux DejaVu Sans (zelfde opbouw, meegeleverd). */
@font-face { font-family: "VS Sans"; src: url(/fonts/DejaVuSans.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "VS Sans"; src: url(/fonts/DejaVuSans-Bold.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  --acc: #ff0000; --acc2: #c40000;
  --bg: #4b4b4b; --bar: #3a3a3a; --card: #424242; --card2: #505050; --cell2: #5a5a5a; --line: #686868;
  --text: #fff; --muted: rgba(255,255,255,.66);
  --good: #55d47a; --bad: #ff6b6b; --warn: #e3b341; --rest: #5ec3ff; --soft: #c9a6e8;
  --r: 10px; --shadow: 0 2px 10px rgba(0,0,0,.35);
  --font: Verdana, "Verdana Pro", "VS Sans", "DejaVu Sans", Geneva, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root { --bg: #e6e6e6; --bar: #f7f7f7; --card: #fff; --card2: #f0f0f0; --cell2: #e6e6e6; --line: #c9c9c9;
    --text: #1f1f1f; --muted: rgba(0,0,0,.6); --good: #2eaf5d; --bad: #d94b4b; --warn: #b07a00; --rest: #1a8fe0; --soft: #8a54b8;
    --shadow: 0 2px 10px rgba(0,0,0,.15); color-scheme: light; }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; min-width: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); overflow-x: hidden; }
@media (min-width: 900px) { html, body { font-size: 15px; } }
body { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
.boot { display: grid; place-items: center; height: 80vh; color: var(--muted); font-size: 22px; }

/* balk bovenaan, zoals V-Nav */
.appbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px; padding-top: env(safe-area-inset-top); background: var(--bar); }
.appbar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--acc); }
.appbar img { height: 30px; width: auto; }
.appbar .brand { font-weight: bold; color: var(--acc); font-size: 18px; letter-spacing: .3px; }
.appbar .who { margin-left: auto; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.wrap { max-width: 720px; margin: 0 auto; padding: 16px 14px 90px; }
@media (min-width: 1100px) { .wrap.wide { max-width: 1180px; } }
h1 { font-size: 24px; margin: 4px 0 2px; font-weight: bold; }
h2 { font-size: 15px; margin: 24px 0 8px; font-weight: bold; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
h3 { font-size: 13px; margin: 14px 0 6px; color: var(--muted); font-weight: bold; text-transform: uppercase; letter-spacing: .5px; }
.sub { color: var(--muted); margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 10px 0; }
.row { display: flex; gap: 10px; align-items: center; }
.row.wrap2 { flex-wrap: wrap; }
.grow { flex: 1; }
.btn { border: 1px solid var(--line); background: var(--card2); border-radius: 8px; padding: 10px 14px; cursor: pointer; min-height: 46px; text-align: center; }
.btn:hover { border-color: var(--acc); }
.btn.pri { background: var(--acc); border-color: var(--acc); color: #fff; font-weight: bold; }
.btn.pri:hover { background: var(--acc2); }
.btn.ghost { background: transparent; }
.btn.sm { min-height: 38px; padding: 6px 11px; font-size: 14px; }
.btn.full { width: 100%; }
.btn:disabled { opacity: .5; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 10px; font-size: 13px; background: var(--card2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.pill.acc { color: var(--good); border-color: color-mix(in srgb, var(--good) 45%, transparent); }
.pill.red { color: var(--acc); border-color: color-mix(in srgb, var(--acc) 50%, transparent); }
.pill.warn { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.pill.rest { color: var(--rest); border-color: color-mix(in srgb, var(--rest) 45%, transparent); }
.pill.soft { color: var(--soft); border-color: color-mix(in srgb, var(--soft) 45%, transparent); }
input[type=text], input[type=password], input[type=url], input[type=number], input[type=datetime-local], input[type=date], input[type=time], select, textarea {
  width: 100%; background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; outline: none; font-size: 16px; }
input:focus, textarea:focus, select:focus { border-color: var(--rest); outline: 2px solid color-mix(in srgb, var(--rest) 35%, transparent); }
textarea { resize: vertical; min-height: 110px; }
label.f { display: block; margin: 12px 0 4px; font-size: 14px; color: var(--muted); }
.copyrow { display: flex; gap: 8px; }
.copyrow input { flex: 1; font-size: 13px; }

/* onderbalk */
nav.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; background: var(--bar); border-top: 3px solid var(--acc); padding-bottom: env(safe-area-inset-bottom); }
nav.tabs a { flex: 1; max-width: 140px; text-align: center; padding: 8px 2px 9px; color: var(--muted); text-decoration: none; font-size: 12px; position: relative; }
nav.tabs a .ic { display: block; font-size: 22px; line-height: 1.25; }
nav.tabs a.on { color: var(--text); font-weight: bold; }
nav.tabs a.on .ic { filter: drop-shadow(0 0 0 transparent); }
nav.tabs a.on::before { content: ''; position: absolute; top: 0; left: 25%; right: 25%; height: 3px; background: var(--text); border-radius: 0 0 3px 3px; }
nav.tabs a .badge { position: absolute; top: 3px; left: calc(50% + 6px); background: var(--acc); color: #fff; font-size: 11px; border-radius: 9px; padding: 0 5px; font-weight: bold; }
.fab { position: fixed; right: 14px; bottom: calc(86px + env(safe-area-inset-bottom)); z-index: 21; width: 58px; height: 58px; border-radius: 18px; border: 3px solid #fff;
  background: var(--acc); color: #fff; font-size: 32px; box-shadow: var(--shadow); cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.fabl { font-size: 11px; font-weight: bold; margin-top: 2px; }
@media (min-width: 900px) { .fab { right: calc(50% - 350px); } }

/* energie */
.energy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.energy button { border: 1px solid var(--line); background: var(--card2); border-radius: 10px; padding: 12px 4px; cursor: pointer; }
.energy button .e { font-size: 28px; display: block; }

/* capaciteitsbalk */
.capbar { height: 14px; border-radius: 7px; background: var(--card2); overflow: hidden; display: flex; margin: 10px 0 6px; border: 1px solid var(--line); }
.capbar i { display: block; height: 100%; }
.capbar .b { background: color-mix(in srgb, var(--muted) 55%, transparent); }
.capbar .r { background: var(--rest); }
.capbar .t { background: var(--good); }
.capbar .o { background: var(--acc); }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; background: var(--c); }

/* taken */
.task { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); margin: 8px 0; }
.task.big { padding: 15px; border-left: 4px solid var(--acc); }
.task.done { opacity: .55; }
.task.done .tt { text-decoration: line-through; }
.check { flex: none; width: 30px; height: 30px; border-radius: 8px; border: 2px solid var(--good); background: transparent; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 17px; margin-top: 1px; }
.check.on { background: var(--good); }
.tt { font-weight: bold; word-break: break-word; }
.meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.why { font-size: 14px; color: var(--muted); margin-top: 6px; }
.step { font-size: 14px; margin-top: 8px; padding: 8px 10px; background: var(--card2); border-radius: 8px; }
.step::before { content: '👣 '; }
.tactions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.slim { padding: 10px; margin: 5px 0; }
.slim .tt { font-weight: normal; }
.group { margin: 6px 0; }
.group > summary { list-style: none; cursor: pointer; padding: 11px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); display: flex; gap: 8px; align-items: center; }
.group > summary::-webkit-details-marker { display: none; }
.group > summary::before { content: '▸'; color: var(--acc); transition: transform .15s; }
.group[open] > summary::before { transform: rotate(90deg); }
.group .inner { padding: 2px 0 6px 10px; }
.group .group > summary { background: transparent; border-color: transparent; padding: 8px 6px; }
.comment { font-size: 14px; margin-top: 6px; padding: 7px 10px; border-left: 3px solid var(--soft); background: var(--card2); border-radius: 0 8px 8px 0; }

/* tijdlijn */
.tl .ev { display: flex; gap: 10px; padding: 8px 10px; border-left: 4px solid var(--c, var(--muted)); background: var(--card); border-radius: 0 8px 8px 0; margin: 5px 0; font-size: 15px; }
.tl .ev .tm { color: var(--muted); min-width: 100px; font-variant-numeric: tabular-nums; }
.tl .ev.task { --c: var(--good); } .tl .ev.rust { --c: var(--rest); } .tl .ev.soft { --c: var(--soft); border-left-style: dashed; }
.tl .now { border-top: 2px solid var(--acc); margin: 4px 0; position: relative; }
.tl .now::after { content: 'nu'; position: absolute; right: 0; top: -11px; font-size: 12px; color: var(--acc); background: var(--bg); padding: 0 4px; font-weight: bold; }

/* week */
.week { display: grid; gap: 8px; }
@media (min-width: 1100px) { .week { grid-template-columns: repeat(7, 1fr); } }
.day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 11px; }
.day.today { border-color: var(--acc); }
.day .dh { display: flex; justify-content: space-between; align-items: baseline; }
.day .load { height: 6px; border-radius: 3px; background: var(--card2); margin: 6px 0; overflow: hidden; }
.day .load i { display: block; height: 100%; }
.day .e { font-size: 14px; padding: 3px 0 3px 8px; border-left: 3px solid var(--c, var(--muted)); margin: 4px 0; display: flex; gap: 6px; align-items: center; }
.day .e .x { margin-left: auto; }

/* sheet / overlay */
.ov { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--bg); width: 100%; max-width: 640px; max-height: 92vh; overflow: auto; border-radius: 14px 14px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); border-top: 3px solid var(--acc); animation: up .18s ease-out; }
@media (min-width: 700px) { .ov { align-items: center; } .sheet { border-radius: 12px; border: 1px solid var(--line); border-top: 3px solid var(--acc); } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@keyframes fade { from { opacity: 0; } }
.sheet h2 { margin-top: 0; color: var(--text); text-transform: none; letter-spacing: 0; font-size: 19px; }
.focus { position: fixed; inset: 0; z-index: 50; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.focus .ft { font-size: 24px; font-weight: bold; max-width: 600px; }
.focus .clock { font-size: 64px; font-variant-numeric: tabular-nums; margin: 18px 0 6px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(166px + env(safe-area-inset-bottom)); background: var(--bar); border: 1px solid var(--line); border-left: 4px solid var(--acc); padding: 11px 16px; border-radius: 8px; z-index: 60; box-shadow: var(--shadow); max-width: 92vw; }
.toast button { margin-left: 10px; }
.verdict { font-size: 20px; font-weight: bold; }
.verdict.ja { color: var(--good); } .verdict.krap { color: var(--warn); } .verdict.nee { color: var(--bad); }
.quote { background: var(--card2); border-radius: 8px; padding: 10px 12px; font-style: italic; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%; animation: sp .8s linear infinite; vertical-align: -3px; }
@keyframes sp { to { transform: rotate(360deg); } }
.review-card { padding: 18px 16px; }
.review-card .tt { font-size: 20px; margin: 8px 0; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.review-grid .btn { min-height: 54px; }
.done-list li { margin: 3px 0; }
.empty { text-align: center; color: var(--muted); padding: 22px 10px; }
.seg { display: flex; flex-wrap: wrap; background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 3px; gap: 3px; }
.seg button { flex: 1 1 auto; border: none; background: transparent; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 14px; color: var(--muted); }
.seg button.on { background: var(--acc); color: #fff; font-weight: bold; }
.idea { display: flex; gap: 8px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 8px; margin: 6px 0; background: var(--card2); }
.idea.liked { border-color: var(--good); }
.idea.disliked { opacity: .55; }
a { color: var(--rest); }
kbd { background: var(--card2); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; font-size: 12px; }
