/* TNMT-platform — donkere, futuristische huisstijl: cyaan #10cfe2 op diep antraciet */

:root {
  --cyan: #10cfe2;
  --cyan-dark: #0ba6b6;
  --cyan-soft: rgba(16, 207, 226, .12);
  --cyan-glow: rgba(16, 207, 226, .35);
  --mint: #2ee6a6;
  --bg: #0b0f14;
  --bg-2: #0f151c;
  --panel: rgba(255, 255, 255, .035);
  --panel-2: rgba(255, 255, 255, .06);
  --line: rgba(255, 255, 255, .09);
  --line-2: rgba(255, 255, 255, .16);
  --ink: #e6edf3;
  --ink-2: #303035;
  --muted: #8b98a5;
  --ok: #2ee6a6;
  --ok-soft: rgba(46, 230, 166, .14);
  --warn: #ffb054;
  --warn-soft: rgba(255, 159, 67, .16);
  --bad: #ff6b85;
  --bad-soft: rgba(255, 92, 122, .16);
  --info-soft: rgba(16, 207, 226, .14);
  --radius: 14px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 10px 30px rgba(0, 0, 0, .35);
  --sidebar: 244px;
  --fs: 1;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: calc(14px * var(--fs, 1));
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* zwevende lichtvlekken achter alles */
body::before, body::after {
  content: ''; position: fixed; z-index: 0; pointer-events: none;
  width: 70vw; height: 70vw; border-radius: 50%; filter: blur(90px); opacity: .45;
}
body::before { top: -30vw; left: 10vw; background: radial-gradient(circle, rgba(16,207,226,.32), transparent 60%); animation: drift 28s ease-in-out infinite alternate; }
body::after { bottom: -35vw; right: -20vw; background: radial-gradient(circle, rgba(46,230,166,.16), transparent 60%); animation: drift 34s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(6vw, 4vw) scale(1.08); } }
#root { position: relative; z-index: 1; }

h1, h2, h3, h4 { margin: 0 0 .4em; font-weight: 650; letter-spacing: -.01em; color: #fff; }
h1 { font-size: calc(22px * var(--fs, 1)); }
h2 { font-size: calc(17px * var(--fs, 1)); }
h3 { font-size: calc(15px * var(--fs, 1)); }
p { margin: 0 0 .8em; }
a { color: var(--cyan); }
code { background: var(--panel-2); border: 1px solid var(--line); border-radius: 5px; padding: 1px 6px; font-size: calc(12px * var(--fs, 1)); }
hr { border: 0; border-top: 1px solid var(--line); }

/* ---------- login ---------- */

.login-wrap {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: radial-gradient(900px 500px at 50% -10%, rgba(16,207,226,.22), transparent 60%), var(--bg);
}
.login-card {
  width: 100%; max-width: 400px; padding: 36px 30px 28px; border-radius: 18px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  border: 1px solid var(--line-2); backdrop-filter: blur(14px);
  box-shadow: 0 30px 80px rgba(0,0,0,.55), 0 0 0 1px rgba(16,207,226,.08), 0 0 60px rgba(16,207,226,.12);
  animation: rise .6s cubic-bezier(.2,.7,.2,1) both;
}
.login-card img { width: 210px; display: block; margin: 0 auto 22px; filter: drop-shadow(0 0 18px rgba(16,207,226,.35)); }
.login-card h1 { font-size: calc(18px * var(--fs, 1)); text-align: center; margin-bottom: 4px; }
.login-card .sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: calc(13px * var(--fs, 1)); }
.login-hint { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: calc(12px * var(--fs, 1)); color: var(--muted); text-align: center; }

/* ---------- shell ---------- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar); flex: 0 0 var(--sidebar);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.015)), var(--bg-2);
  border-right: 1px solid var(--line);
  color: #c6d0da; display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}
.sidebar .brand { padding: 22px 18px 16px; border-bottom: 1px solid var(--line); }
.sidebar .brand img { width: 150px; display: block; filter: drop-shadow(0 0 12px rgba(16,207,226,.3)); }
.sidebar .brand .role { display: inline-block; margin-top: 10px; font-size: calc(10.5px * var(--fs, 1)); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
.sidebar nav { flex: 1; overflow-y: auto; padding: 12px 10px; }
.sidebar nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; margin-bottom: 2px;
  color: #c6d0da; text-decoration: none; border-radius: 9px; font-size: calc(13.5px * var(--fs, 1)); font-weight: 500;
  border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s;
}
.sidebar nav a:hover { background: var(--panel-2); color: #fff; }
.sidebar nav a.active {
  background: linear-gradient(90deg, rgba(16,207,226,.22), rgba(16,207,226,.06));
  border-color: rgba(16,207,226,.35); color: #fff; font-weight: 650;
  box-shadow: inset 3px 0 0 var(--cyan), 0 0 24px rgba(16,207,226,.12);
}
.sidebar nav a .ico { width: 18px; text-align: center; font-size: calc(14px * var(--fs, 1)); opacity: .9; color: var(--cyan); }
.sidebar nav a .count { margin-left: auto; background: var(--cyan); color: #06282d; border-radius: 999px; padding: 1px 7px; font-size: calc(11px * var(--fs, 1)); font-weight: 700; box-shadow: 0 0 12px var(--cyan-glow); }
.sidebar nav .group { font-size: calc(10.5px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .12em; color: #67737f; padding: 16px 12px 6px; font-weight: 700; }
.sidebar .foot { padding: 12px; border-top: 1px solid var(--line); font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.sidebar .foot .who { color: #fff; font-weight: 600; font-size: calc(13px * var(--fs, 1)); }
.sidebar .foot button { margin-top: 8px; width: 100%; background: var(--panel-2); color: #c6d0da; border: 1px solid var(--line); padding: 7px; border-radius: 8px; cursor: pointer; font-size: calc(12.5px * var(--fs, 1)); font-family: inherit; }
.sidebar .foot button:hover { background: rgba(255,255,255,.1); color: #fff; border-color: var(--line-2); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: rgba(11,15,20,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  padding: 9px 24px; min-height: 58px;
  display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap;
  position: sticky; top: 0; z-index: 20;
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent 55%); opacity: .5; }
.topbar #page-actions { flex-wrap: wrap; justify-content: flex-end; }
.topbar h1 { margin: 0; font-size: calc(17px * var(--fs, 1)); }
.topbar .spacer { flex: 1; }
.menu-toggle { display: none; background: none; border: 0; font-size: calc(20px * var(--fs, 1)); cursor: pointer; color: #fff; }

.content { padding: 22px 24px 60px; max-width: 1400px; width: 100%; }

/* ---------- componenten ---------- */

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.card {
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 16px; position: relative; overflow: hidden;
  animation: rise .5s cubic-bezier(.2,.7,.2,1) both;
}
.card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(16,207,226,.6), transparent); opacity: .6; }
.card > header { padding: 13px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; }
.card > header h2, .card > header h3 { margin: 0; }
.card > header .spacer { flex: 1; }
.card .body { padding: 16px; }
.card .body.tight { padding: 0; overflow-x: auto; }

.grid { display: grid; gap: 16px; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.grid > .card, .grid > .stat { animation-delay: calc(var(--n, 0) * 60ms); }
.grid > :nth-child(2) { --n: 1; } .grid > :nth-child(3) { --n: 2; } .grid > :nth-child(4) { --n: 3; }
.grid > :nth-child(5) { --n: 4; } .grid > :nth-child(6) { --n: 5; }

.stat {
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
  box-shadow: var(--shadow); position: relative; overflow: hidden;
  animation: rise .5s cubic-bezier(.2,.7,.2,1) both; transition: border-color .2s, transform .2s;
}
.stat:hover { border-color: rgba(16,207,226,.4); transform: translateY(-2px); }
.stat .label { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.stat .value { font-size: calc(26px * var(--fs, 1)); font-weight: 700; margin-top: 4px; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.stat .hint { font-size: calc(12px * var(--fs, 1)); color: var(--muted); margin-top: 2px; }
.stat.accent::after, .stat.alert::after { content: ''; position: absolute; left: 0; top: 12px; bottom: 12px; width: 3px; border-radius: 3px; }
.stat.accent::after { background: var(--cyan); box-shadow: 0 0 14px var(--cyan); }
.stat.alert::after { background: var(--bad); box-shadow: 0 0 14px var(--bad); }

table { width: 100%; border-collapse: collapse; font-size: calc(13.5px * var(--fs, 1)); }
th { text-align: left; font-size: calc(11px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.02); white-space: nowrap; }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; transition: background .12s; }
tbody tr.clickable:hover { background: var(--cyan-soft); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: calc(11px * var(--fs, 1)); font-weight: 700; letter-spacing: .03em; white-space: nowrap; background: var(--panel-2); color: #aab6c2; border: 1px solid transparent; }
.badge.ok { background: var(--ok-soft); color: #5df0bf; }
.badge.warn { background: var(--warn-soft); color: #ffb86b; }
.badge.bad { background: var(--bad-soft); color: #ff8a9b; }
.badge.info { background: var(--info-soft); color: #59e3f0; }
.badge.mute { background: var(--panel-2); color: #aab6c2; }

.btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 9px;
  border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink);
  font-size: calc(13px * var(--fs, 1)); font-weight: 600; cursor: pointer; text-decoration: none; font-family: inherit;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .1s;
}
.btn:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--cyan); border-color: var(--cyan); color: #06282d; box-shadow: 0 0 18px var(--cyan-glow); }
.btn.primary:hover { background: #3fdcea; border-color: #3fdcea; box-shadow: 0 0 26px var(--cyan-glow); }
.btn.dark { background: #fff; border-color: #fff; color: #0b0f14; }
.btn.dark:hover { background: #e6edf3; }
.btn.danger { color: var(--bad); border-color: rgba(255,92,122,.35); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.sm { padding: 5px 10px; font-size: calc(12px * var(--fs, 1)); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; }

label { display: block; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; color: #b8c3ce; margin-bottom: 5px; }
input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]),
select, textarea {
  width: 100%; padding: 8px 11px; border: 1px solid var(--line-2); border-radius: 9px;
  font-size: calc(13.5px * var(--fs, 1)); font-family: inherit; color: var(--ink); background: rgba(0,0,0,.28);
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: #66717c; }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus {
  outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(16, 207, 226, .2), 0 0 18px rgba(16,207,226,.15);
}
input:disabled, textarea:disabled, select:disabled { opacity: .7; }
select option { background: #131a22; color: var(--ink); }
input[type=date]::-webkit-calendar-picker-indicator, input[type=time]::-webkit-calendar-picker-indicator,
input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: invert(.8); }
textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.field { margin-bottom: 14px; }
.field .help { font-size: calc(12px * var(--fs, 1)); color: var(--muted); margin-top: 4px; }
.field-row { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
fieldset > legend { font-size: calc(12px * var(--fs, 1)); font-weight: 700; color: var(--cyan); letter-spacing: .1em; text-transform: uppercase; padding: 0 0 10px; border-bottom: 1px solid rgba(16,207,226,.35); margin-bottom: 14px; width: 100%; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.check { display: flex; align-items: center; gap: 7px; font-size: calc(13.5px * var(--fs, 1)); font-weight: 500; cursor: pointer; color: var(--ink); }
.check input { width: auto; margin: 0; accent-color: var(--cyan); }
.scale { display: flex; gap: 6px; flex-wrap: wrap; }
.scale label { margin: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 32px; border: 1px solid var(--line-2); border-radius: 8px; cursor: pointer; font-weight: 600; background: rgba(0,0,0,.25); color: var(--ink); transition: all .12s; }
.scale input { position: absolute; opacity: 0; width: 0; height: 0; }
.scale label.on { background: var(--cyan); border-color: var(--cyan); color: #06282d; box-shadow: 0 0 14px var(--cyan-glow); }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; padding: 10px 14px; font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; font-family: inherit; transition: color .15s; }
.tabs button:hover { color: #fff; }
.tabs button.active { color: #fff; border-bottom-color: var(--cyan); text-shadow: 0 0 14px var(--cyan-glow); }

.empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: calc(13.5px * var(--fs, 1)); }
.empty .big { font-size: calc(26px * var(--fs, 1)); display: block; margin-bottom: 6px; opacity: .5; color: var(--cyan); }

.muted { color: var(--muted); }
.small { font-size: calc(12.5px * var(--fs, 1)); }
.strong { font-weight: 650; color: #fff; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.mt { margin-top: 14px; }
.mb0 { margin-bottom: 0; }

.notice { padding: 11px 14px; border-radius: 10px; font-size: calc(13px * var(--fs, 1)); background: var(--info-soft); border: 1px solid rgba(16,207,226,.25); border-left: 3px solid var(--cyan); margin-bottom: 14px; color: #d6f7fb; }
.notice.warn { background: var(--warn-soft); border-color: rgba(255,159,67,.3); border-left-color: var(--warn); color: #ffe3c2; }
.notice.bad { background: var(--bad-soft); border-color: rgba(255,92,122,.3); border-left-color: var(--bad); color: #ffd0d8; }
.notice.ok { background: var(--ok-soft); border-color: rgba(46,230,166,.3); border-left-color: var(--ok); color: #d2fbec; }
.notice strong { color: #fff; }

.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.pipe-col { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 130px; animation: rise .5s both; }
.pipe-col > header { padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: calc(11px * var(--fs, 1)); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; display: flex; justify-content: space-between; align-items: center; color: var(--cyan); }
.pipe-col .items { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.pipe-card { background: var(--panel-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 10px; cursor: pointer; font-size: calc(13px * var(--fs, 1)); transition: border-color .15s, transform .15s, box-shadow .15s; }
.pipe-card:hover { border-color: rgba(16,207,226,.5); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.3), 0 0 16px rgba(16,207,226,.12); }
.pipe-card .nm { font-weight: 650; color: #fff; }
.pipe-card .meta { font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); margin-top: 2px; }

.chat { display: flex; flex-direction: column; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px; }
.msg { max-width: 76%; padding: 9px 13px; border-radius: 14px; font-size: calc(13.5px * var(--fs, 1)); }
.msg .meta { font-size: calc(11px * var(--fs, 1)); opacity: .7; margin-top: 4px; }
.msg.them { background: var(--panel-2); border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: linear-gradient(135deg, var(--cyan), #0ba6b6); color: #06282d; align-self: flex-end; border-bottom-right-radius: 4px; box-shadow: 0 0 20px rgba(16,207,226,.2); }

.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { padding: 8px 0 8px 18px; border-left: 1px solid var(--line-2); position: relative; font-size: calc(13px * var(--fs, 1)); }
.timeline li::before { content: ''; position: absolute; left: -5px; top: 14px; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }

.progression { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.sess { border: 1px solid var(--line); border-radius: 10px; padding: 8px 9px; font-size: calc(12px * var(--fs, 1)); background: var(--panel); transition: border-color .15s, transform .15s; }
.sess:hover { border-color: var(--line-2); transform: translateY(-1px); }
.sess.done { background: var(--ok-soft); border-color: rgba(46,230,166,.35); }
.sess.meas { border-color: var(--cyan); box-shadow: 0 0 14px rgba(16,207,226,.18); }
.sess .n { font-weight: 700; font-size: calc(13px * var(--fs, 1)); color: #fff; }
.sess .dt { color: var(--muted); font-size: calc(11.5px * var(--fs, 1)); }
.sess .tag { font-size: calc(10px * var(--fs, 1)); color: var(--cyan); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }

.sig-pad { border: 1px dashed var(--line-2); border-radius: 10px; background: #fff; touch-action: none; width: 100%; height: 150px; display: block; cursor: crosshair; }

.modal-back { position: fixed; inset: 0; background: rgba(4, 7, 10, .7); backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 40px 18px; z-index: 100; overflow-y: auto; }
.modal {
  background: linear-gradient(160deg, #151d26, #0f151c); border: 1px solid var(--line-2);
  border-radius: 16px; width: 100%; max-width: 620px;
  box-shadow: 0 30px 90px rgba(0,0,0,.6), 0 0 0 1px rgba(16,207,226,.1), 0 0 60px rgba(16,207,226,.1);
  animation: rise .35s cubic-bezier(.2,.7,.2,1) both;
}
.modal.wide { max-width: 900px; }
.modal > header { padding: 15px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; }
.modal > header h2 { margin: 0; font-size: calc(16px * var(--fs, 1)); }
.modal > header .close { margin-left: auto; background: none; border: 0; font-size: calc(22px * var(--fs, 1)); cursor: pointer; color: var(--muted); line-height: 1; }
.modal > header .close:hover { color: #fff; }
.modal .body { padding: 20px; }
.modal > footer { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: rgba(0,0,0,.2); border-radius: 0 0 16px 16px; }

.toast-host { position: fixed; right: 18px; bottom: 18px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #151d26; border: 1px solid var(--line-2); color: #fff; padding: 11px 16px; border-radius: 10px; font-size: calc(13px * var(--fs, 1)); box-shadow: 0 10px 30px rgba(0,0,0,.45); max-width: 340px; animation: rise .3s both; }
.toast.bad { background: #3a1620; border-color: rgba(255,92,122,.5); }
.toast.ok { background: #0f2f26; border-color: rgba(46,230,166,.5); }

.spark { display: block; width: 100%; height: 130px; }

.doc { background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 36px; font-size: calc(13.5px * var(--fs, 1)); line-height: 1.65; }
.doc h1 { font-size: calc(19px * var(--fs, 1)); letter-spacing: .08em; }
.doc .kv { display: grid; grid-template-columns: 190px 1fr; gap: 4px 14px; margin: 16px 0; }
.doc .kv dt { color: var(--muted); font-weight: 600; }
.doc .kv dd { margin: 0; }
.doc pre { white-space: pre-wrap; font-family: inherit; font-size: calc(12.5px * var(--fs, 1)); color: #c6d0da; }
.doc .sig-img { max-width: 260px; background: #fff; border-radius: 8px; padding: 6px; }
.only-print { display: none; }

.price-grid { overflow-x: auto; }
.price-grid table { min-width: 560px; }
.price-grid td.tier { font-weight: 650; color: #fff; }

.search-box { position: relative; min-width: 220px; }
.search-box input { padding-left: 32px; }
.search-box::before { content: '⌕'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: calc(16px * var(--fs, 1)); }

details summary { color: var(--ink); }

@media (max-width: 900px) {
  .topbar { padding: 9px 14px; }
  .topbar h1 { font-size: calc(16px * var(--fs, 1)); }
  .topbar .spacer { display: none; }
  .topbar #page-actions { width: 100%; justify-content: flex-start; }
  /* Mobiel: menu schuift van rechts in, de menuknop staat rechtsboven. */
  .sidebar { position: fixed; z-index: 60; top: 0; right: 0; left: auto; height: 100%;
    border-right: 0; border-left: 1px solid var(--line);
    transform: translateX(100%); visibility: hidden; transition: transform .2s ease, visibility 0s linear .2s; }
  .sidebar.open { transform: translateX(0); visibility: visible; transition: transform .2s ease;
    box-shadow: 0 0 60px rgba(0,0,0,.6); }
  .menu-toggle { display: block; order: 2; margin-left: auto; padding: 4px 2px 4px 10px; }
  .topbar h1 { order: 1; min-width: 0; }
  .topbar #page-actions { order: 3; }
  .nav-scrim { position: fixed; inset: 0; z-index: 59; background: rgba(0,0,0,.45); }
  .content { padding: 16px 14px 50px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media print {
  body { background: #fff; color: #000; }
  body::before, body::after { display: none; }
  .sidebar, .topbar, .btn, .tabs, .only-screen { display: none !important; }
  .content { padding: 0; }
  .doc { border: 0; padding: 0; background: #fff; color: #000; }
  .doc h1, .doc h2 { color: #000; }
  .doc .kv dt, .doc pre { color: #333; }
  .only-print { display: inline-block; }
}

/* ---------- voortgang / lichaamsanalyse ---------- */

.pg {
  --pg-bg: #0d1117; --pg-panel: rgba(255,255,255,.04); --pg-line: rgba(255,255,255,.09);
  --pg-text: #eaf2f5; --pg-muted: #8b98a5; --pg-cyan: #10cfe2;
  color: var(--pg-text); border-radius: 16px; overflow: hidden; position: relative;
  background: radial-gradient(1200px 500px at 15% -10%, rgba(16,207,226,.18), transparent 60%),
              radial-gradient(900px 400px at 100% 0%, rgba(46,230,166,.10), transparent 55%),
              var(--pg-bg);
  border: 1px solid var(--pg-line);
  padding: 22px; margin: -6px 0 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.pg h2, .pg h3 { color: var(--pg-text); }
.pg .muted { color: var(--pg-muted); }

.pg-hero {
  position: relative; display: grid; grid-template-columns: minmax(280px, 380px) 1fr;
  gap: 26px; padding: 26px 26px 22px; border: 1px solid var(--pg-line); border-radius: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  overflow: hidden; margin-bottom: 16px;
}
.pg-hero-bg { position: absolute; inset: -40%; pointer-events: none; opacity: .55; background: conic-gradient(from 180deg at 50% 50%, rgba(16,207,226,.0), rgba(16,207,226,.16), rgba(46,230,166,.10), rgba(16,207,226,0)); animation: pg-spin 26s linear infinite; }
@keyframes pg-spin { to { transform: rotate(360deg); } }
.pg-hero-left, .pg-hero-right { position: relative; }
.pg-kicker { font-size: calc(11px * var(--fs, 1)); letter-spacing: .14em; text-transform: uppercase; color: var(--pg-cyan); font-weight: 700; }
.pg-title { font-size: calc(24px * var(--fs, 1)); margin: 6px 0 2px; letter-spacing: -.02em; }
.pg-date { color: var(--pg-muted); font-size: calc(13px * var(--fs, 1)); margin-bottom: 18px; }

.pg-donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pg-donut { width: 190px; height: 190px; flex: 0 0 190px; }
.pg-arc { opacity: 0; animation: pg-arc .9s cubic-bezier(.4,0,.2,1) forwards; animation-delay: calc(var(--i) * .18s + .2s); transform-origin: 110px 110px; }
@keyframes pg-arc { from { opacity: 0; transform: rotate(-30deg) scale(.92); } to { opacity: 1; transform: none; } }
.pg-donut-label { fill: var(--pg-muted); font-size: calc(12px * var(--fs, 1)); letter-spacing: .08em; text-transform: uppercase; }
.pg-donut-value { fill: #fff; font-size: calc(30px * var(--fs, 1)); font-weight: 700; letter-spacing: -.02em; }
.pg-donut-unit { fill: var(--pg-muted); font-size: calc(12px * var(--fs, 1)); }
.pg-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; min-width: 150px; }
.pg-legend li { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; font-size: calc(13px * var(--fs, 1)); opacity: 0; animation: pg-up .6s ease forwards; animation-delay: calc(var(--i) * .1s + .5s); }
.pg-legend i { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 10px currentColor; }
.pg-legend b { font-variant-numeric: tabular-nums; }

.pg-hero-right { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-content: start; }
.pg-kpi { background: rgba(13,17,23,.55); border: 1px solid var(--pg-line); border-radius: 12px; padding: 12px 14px 8px; opacity: 0; animation: pg-up .6s cubic-bezier(.2,.7,.2,1) forwards; animation-delay: calc(var(--i) * .08s + .25s); backdrop-filter: blur(6px); transition: border-color .2s, transform .2s; }
.pg-kpi:hover { border-color: rgba(16,207,226,.45); transform: translateY(-2px); }
@keyframes pg-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pg-kpi-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pg-kpi-label { font-size: calc(11.5px * var(--fs, 1)); letter-spacing: .06em; text-transform: uppercase; color: var(--pg-muted); font-weight: 700; }
.pg-kpi-value { font-size: calc(26px * var(--fs, 1)); font-weight: 700; letter-spacing: -.02em; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.pg-kpi-value small { font-size: calc(12px * var(--fs, 1)); color: var(--pg-muted); margin-left: 5px; font-weight: 600; }
.pg-kpi-deltas { display: flex; gap: 6px; flex-wrap: wrap; min-height: 20px; margin-bottom: 4px; }

.pg-delta { display: inline-flex; align-items: baseline; gap: 4px; font-size: calc(11.5px * var(--fs, 1)); font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.07); color: var(--pg-muted); font-variant-numeric: tabular-nums; }
.pg-delta small { font-weight: 500; opacity: .75; }
.pg-delta.good { background: rgba(46,230,166,.14); color: #5df0bf; }
.pg-delta.bad { background: rgba(255,92,122,.14); color: #ff8a9b; }

.pg-rating { display: inline-block; font-size: calc(10.5px * var(--fs, 1)); font-weight: 700; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.pg-rating.green { background: rgba(46,230,166,.16); color: #5df0bf; }
.pg-rating.orange { background: rgba(255,159,67,.18); color: #ffb86b; }
.pg-rating.teal { background: rgba(16,207,226,.18); color: #59e3f0; }
.pg-rating.blue { background: rgba(99,140,255,.18); color: #9db4ff; }
.pg-rating.red { background: rgba(255,92,122,.18); color: #ff8a9b; }

.pg-spark { display: block; width: 100%; height: 54px; margin-top: 2px; }
.pg-spark-area { opacity: 0; animation: pg-fade .8s .9s forwards; }
.pg-spark-dot { opacity: 0; animation: pg-fade .4s 1.3s forwards; filter: drop-shadow(0 0 6px currentColor); }
.pg-spark-empty { font-size: calc(11.5px * var(--fs, 1)); color: var(--pg-muted); padding: 14px 0 10px; }
@keyframes pg-fade { to { opacity: 1; } }

.pg-panel { border: 1px solid var(--pg-line); border-radius: 14px; padding: 18px 20px; background: var(--pg-panel); margin-bottom: 16px; position: relative; }
.pg-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pg-panel h3 { margin: 0; font-size: calc(15px * var(--fs, 1)); }
.pg-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pg-chips button { background: rgba(255,255,255,.05); border: 1px solid var(--pg-line); color: var(--pg-muted); padding: 5px 11px; border-radius: 999px; font-size: calc(12px * var(--fs, 1)); font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s; }
.pg-chips button:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.pg-chips button.on { background: var(--pg-cyan); border-color: var(--pg-cyan); color: #06282d; box-shadow: 0 0 18px rgba(16,207,226,.35); }

.pg-trend { width: 100%; height: auto; display: block; }
.pg-grid { stroke: rgba(255,255,255,.07); stroke-dasharray: 3 5; }
.pg-axis { fill: var(--pg-muted); font-size: calc(11px * var(--fs, 1)); }
.pg-trend-area { opacity: 0; animation: pg-fade 1s .8s forwards; }
.pg-trend-line { filter: drop-shadow(0 0 8px rgba(16,207,226,.55)); }
.pg-point .pg-dot { fill: #0d1117; stroke: var(--pg-cyan); stroke-width: 2.5; opacity: 0; animation: pg-pop .4s cubic-bezier(.2,1.4,.4,1) forwards; animation-delay: calc(var(--i) * .12s + .9s); }
@keyframes pg-pop { from { opacity: 0; r: 0; } to { opacity: 1; r: 5; } }
.pg-point .pg-tip { opacity: 0; pointer-events: none; transition: opacity .15s; }
.pg-point .pg-tip rect { fill: #10cfe2; }
.pg-point .pg-tip text { fill: #06282d; font-size: calc(12.5px * var(--fs, 1)); font-weight: 700; }
.pg-point:hover .pg-tip { opacity: 1; }
.pg-point:hover .pg-dot { fill: var(--pg-cyan); }
.pg-trend-empty { color: var(--pg-muted); padding: 30px; text-align: center; font-size: calc(13px * var(--fs, 1)); }

.pg-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-bottom: 16px; }
.pg-group { margin: 0; opacity: 0; animation: pg-up .6s ease forwards; animation-delay: calc(var(--i) * .07s + .6s); }
.pg-group h3 { font-size: calc(11.5px * var(--fs, 1)); letter-spacing: .12em; text-transform: uppercase; color: var(--pg-cyan); margin-bottom: 8px; }
.pg-row { display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--pg-line); }
.pg-row:first-of-type { border-top: 0; }
.pg-row-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(16,207,226,.10); color: var(--pg-cyan); font-size: calc(14px * var(--fs, 1)); }
.pg-row-label { font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; margin-bottom: 3px; }
.pg-row-right { text-align: right; }
.pg-row-value { font-size: calc(17px * var(--fs, 1)); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.pg-row-value small { font-size: calc(11px * var(--fs, 1)); color: var(--pg-muted); margin-left: 4px; font-weight: 600; }
.pg-row-right .pg-delta { margin-top: 3px; }

.pg-table-wrap { overflow-x: auto; }
.pg-table th { background: transparent; color: var(--pg-muted); border-bottom-color: var(--pg-line); }
.pg-table td { border-bottom-color: var(--pg-line); color: var(--pg-text); }
.pg-table .muted { color: var(--pg-muted); }
.pg-foot { font-size: calc(11.5px * var(--fs, 1)); color: var(--pg-muted); padding: 4px 6px 0; }

.pg-empty-hero { display: block; text-align: center; padding: 50px 24px; }
.pg-empty-hero p { color: var(--pg-muted); max-width: 460px; margin: 6px auto 18px; }
.pg-orb { width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 18px; background: radial-gradient(circle at 35% 35%, rgba(16,207,226,.9), rgba(16,207,226,.15) 60%, transparent 70%); box-shadow: 0 0 60px rgba(16,207,226,.45); animation: pg-breathe 3s ease-in-out infinite; }
@keyframes pg-breathe { 50% { transform: scale(1.08); box-shadow: 0 0 90px rgba(16,207,226,.6); } }

.pg-static *, .pg-static *::before { animation: none !important; opacity: 1 !important; transition: none !important; }

.pg-form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px 14px; }
.pg-form-pair { display: grid; grid-template-columns: 1fr 118px; gap: 6px; }
.pg-paste { margin-bottom: 16px; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: 10px; }
.pg-paste summary { cursor: pointer; font-weight: 600; font-size: calc(13px * var(--fs, 1)); }
.pg-paste textarea { margin: 10px 0 8px; min-height: 110px; font-family: ui-monospace, Menlo, monospace; font-size: calc(12px * var(--fs, 1)); }
.pg-paste .small { margin-left: 8px; }

@media (max-width: 900px) {
  .pg { padding: 14px; border-radius: 12px; }
  .pg-hero { grid-template-columns: 1fr; padding: 18px; }
}

/* ---------- thema-schakelaar & logo's ---------- */

.theme-toggle { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; margin-top: 10px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 9px; }
.theme-toggle button { background: none; border: 0; color: var(--muted); padding: 6px 4px; border-radius: 7px; font-size: calc(12px * var(--fs, 1)); font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; }
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button.on { background: var(--cyan); color: #06282d; box-shadow: 0 0 14px var(--cyan-glow); }
.login-theme { position: fixed; top: 16px; right: 16px; width: 170px; z-index: 2; }
.login-theme .theme-toggle { margin: 0; }
html:not([data-theme="light"]) .logo-light { display: none !important; }
html[data-theme="light"] .logo-dark { display: none !important; }
@media print { .logo-dark { display: none !important; } .logo-light { display: block !important; } }

/* ---------- licht thema ---------- */

html[data-theme="light"] {
  --bg: #f2f5f8;
  --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, .8);
  --panel-2: rgba(16, 24, 32, .05);
  --line: rgba(16, 24, 32, .09);
  --line-2: rgba(16, 24, 32, .17);
  --ink: #1b232c;
  --muted: #5f6b78;
  --ok: #0f9d6a;
  --ok-soft: rgba(15, 157, 106, .13);
  --warn: #c76f00;
  --warn-soft: rgba(199, 111, 0, .13);
  --bad: #d33f5a;
  --bad-soft: rgba(211, 63, 90, .12);
  --info-soft: rgba(11, 166, 182, .13);
  --cyan-glow: rgba(16, 207, 226, .3);
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .06);
  color-scheme: light;
}
html[data-theme="light"] body::before, html[data-theme="light"] body::after { opacity: .5; }
html[data-theme="light"] h1, html[data-theme="light"] h2, html[data-theme="light"] h3, html[data-theme="light"] h4 { color: #101820; }
html[data-theme="light"] a { color: var(--cyan-dark); }
html[data-theme="light"] .login-wrap { background: radial-gradient(900px 500px at 50% -10%, rgba(16,207,226,.25), transparent 60%), var(--bg); }
html[data-theme="light"] .login-card { background: rgba(255,255,255,.85); box-shadow: 0 30px 80px rgba(16,24,40,.18), 0 0 60px rgba(16,207,226,.15); }
html[data-theme="light"] .sidebar { background: linear-gradient(180deg, #ffffff, #f7f9fb); color: #3d4854; }
html[data-theme="light"] .sidebar nav a { color: #3d4854; }
html[data-theme="light"] .sidebar nav a:hover { color: #101820; }
html[data-theme="light"] .sidebar nav a.active { color: #101820; background: linear-gradient(90deg, rgba(16,207,226,.22), rgba(16,207,226,.06)); }
html[data-theme="light"] .sidebar nav a .ico { color: var(--cyan-dark); }
html[data-theme="light"] .sidebar nav .group { color: #8a95a1; }
html[data-theme="light"] .sidebar .brand .role { color: var(--cyan-dark); }
html[data-theme="light"] .sidebar .foot .who { color: #101820; }
html[data-theme="light"] .sidebar .foot button { color: #3d4854; }
html[data-theme="light"] .sidebar .foot button:hover { color: #101820; background: rgba(16,24,32,.08); }
html[data-theme="light"] .theme-toggle { background: rgba(16,24,32,.05); }
html[data-theme="light"] .topbar { background: rgba(255,255,255,.75); }
html[data-theme="light"] .menu-toggle { color: #101820; }
html[data-theme="light"] .card, html[data-theme="light"] .stat, html[data-theme="light"] .doc { background: #ffffff; }
html[data-theme="light"] .stat .value { color: #101820; }
html[data-theme="light"] th { background: rgba(16,24,32,.025); }
html[data-theme="light"] .badge.ok { color: #0b7a52; }
html[data-theme="light"] .badge.warn { color: #9a5400; }
html[data-theme="light"] .badge.bad { color: #b12a45; }
html[data-theme="light"] .badge.info { color: #0a7a86; }
html[data-theme="light"] .badge, html[data-theme="light"] .badge.mute { color: #5f6b78; }
html[data-theme="light"] .btn { background: #ffffff; }
html[data-theme="light"] .btn:hover { background: #f3f6f9; border-color: rgba(16,24,32,.3); }
html[data-theme="light"] .btn.primary { background: var(--cyan); color: #06282d; }
html[data-theme="light"] .btn.dark { background: #1b232c; border-color: #1b232c; color: #fff; }
html[data-theme="light"] .btn.dark:hover { background: #0b0f14; }
html[data-theme="light"] label { color: #3d4854; }
html[data-theme="light"] input:not([type=checkbox]):not([type=radio]):not([type=button]):not([type=submit]),
html[data-theme="light"] select, html[data-theme="light"] textarea { background: #ffffff; }
html[data-theme="light"] input::placeholder, html[data-theme="light"] textarea::placeholder { color: #98a3ae; }
html[data-theme="light"] select option { background: #ffffff; color: var(--ink); }
html[data-theme="light"] input[type=date]::-webkit-calendar-picker-indicator, html[data-theme="light"] input[type=time]::-webkit-calendar-picker-indicator,
html[data-theme="light"] input[type=datetime-local]::-webkit-calendar-picker-indicator { filter: none; }
html[data-theme="light"] .scale label { background: #ffffff; }
html[data-theme="light"] .tabs button:hover, html[data-theme="light"] .tabs button.active { color: #101820; text-shadow: none; }
html[data-theme="light"] .strong, html[data-theme="light"] .pipe-card .nm, html[data-theme="light"] .sess .n, html[data-theme="light"] .price-grid td.tier { color: #101820; }
html[data-theme="light"] .notice { color: #0a5a63; }
html[data-theme="light"] .notice.warn { color: #6e3d00; }
html[data-theme="light"] .notice.bad { color: #8a1f35; }
html[data-theme="light"] .notice.ok { color: #0b5c40; }
html[data-theme="light"] .notice strong { color: inherit; }
html[data-theme="light"] .pipe-col > header { color: var(--cyan-dark); }
html[data-theme="light"] .pipe-card { background: #ffffff; }
html[data-theme="light"] .sess { background: #ffffff; }
html[data-theme="light"] .sess .tag { color: var(--cyan-dark); }
html[data-theme="light"] .msg.them { background: #eef1f4; }
html[data-theme="light"] .modal { background: #ffffff; box-shadow: 0 30px 90px rgba(16,24,40,.28), 0 0 0 1px rgba(16,207,226,.12); }
html[data-theme="light"] .modal > header .close:hover { color: #101820; }
html[data-theme="light"] .modal > footer { background: #f7f9fb; }
html[data-theme="light"] .modal-back { background: rgba(16, 24, 32, .45); }
html[data-theme="light"] .toast { background: #1b232c; color: #fff; }
html[data-theme="light"] .toast.bad { background: #b12a45; }
html[data-theme="light"] .toast.ok { background: #0f9d6a; }
html[data-theme="light"] .doc pre { color: #3d4854; }
html[data-theme="light"] .empty .big { color: var(--cyan-dark); }
html[data-theme="light"] .sig-pad { border-color: rgba(16,24,32,.25); }
html[data-theme="light"] fieldset > legend { color: var(--cyan-dark); }
html[data-theme="light"] code { background: rgba(16,24,32,.05); }

/* voortgangspagina in licht thema */
html[data-theme="light"] .pg {
  --pg-bg: #f6f9fc; --pg-panel: rgba(255,255,255,.85); --pg-line: rgba(16,24,32,.09);
  --pg-text: #1b232c; --pg-muted: #5f6b78;
  box-shadow: 0 20px 60px rgba(16,24,40,.08);
}
html[data-theme="light"] .pg-hero { background: linear-gradient(160deg, rgba(255,255,255,.9), rgba(255,255,255,.6)); }
html[data-theme="light"] .pg-hero-bg { opacity: .35; }
html[data-theme="light"] .pg-donut-value { fill: #101820; }
html[data-theme="light"] .pg-kpi { background: rgba(255,255,255,.85); }
html[data-theme="light"] .pg-delta { background: rgba(16,24,32,.06); }
html[data-theme="light"] .pg-delta.good { color: #0b7a52; }
html[data-theme="light"] .pg-delta.bad { color: #b12a45; }
html[data-theme="light"] .pg-rating.green { color: #0b7a52; }
html[data-theme="light"] .pg-rating.orange { color: #9a5400; }
html[data-theme="light"] .pg-rating.teal { color: #0a7a86; }
html[data-theme="light"] .pg-rating.blue { color: #3452b8; }
html[data-theme="light"] .pg-rating.red { color: #b12a45; }
html[data-theme="light"] .pg-kicker, html[data-theme="light"] .pg-group h3 { color: var(--cyan-dark); }
html[data-theme="light"] .pg-chips button { background: #ffffff; }
html[data-theme="light"] .pg-chips button:hover { color: #101820; }
html[data-theme="light"] .pg-point .pg-dot { fill: #ffffff; }
html[data-theme="light"] .pg-grid { stroke: rgba(16,24,32,.09); }
html[data-theme="light"] .pg-row-icon { color: var(--cyan-dark); }
html[data-theme="light"] .pg-table td { color: var(--pg-text); }
html[data-theme="light"] .pg-trend-line { filter: drop-shadow(0 0 6px rgba(16,207,226,.4)); }


/* ---------- lettergrootte & voorkeurenpaneel ---------- */

html[data-font="large"] { --fs: 1.18; }
html[data-font="xlarge"] { --fs: 1.36; }
html[data-font="large"] .sidebar { --sidebar: 264px; }
html[data-font="xlarge"] .sidebar { --sidebar: 290px; }
html[data-font="xlarge"] .sidebar nav a { padding: 10px 12px; }

.pref-panel { display: grid; grid-template-columns: 1fr; gap: 6px; margin-top: 10px; }
.pref-toggle { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; background: rgba(0,0,0,.25); border: 1px solid var(--line); border-radius: 9px; }
.pref-toggle button { background: none; border: 0; color: var(--muted); padding: 6px 4px; border-radius: 7px; font-size: calc(12px * var(--fs, 1)); font-weight: 600; cursor: pointer; font-family: inherit; transition: background .15s, color .15s; line-height: 1.2; }
.pref-toggle button sup { font-size: .7em; }
.pref-toggle button:hover { color: var(--ink); }
.pref-toggle button.on { background: var(--cyan); color: #06282d; box-shadow: 0 0 14px var(--cyan-glow); }
.login-theme { width: auto; min-width: 250px; }
.login-theme .pref-panel { margin: 0; grid-template-columns: 1fr; }
html[data-theme="light"] .pref-toggle { background: rgba(16,24,32,.05); }

/* ---------- agenda (Apple-stijl) ---------- */

.cal { --cal-gutter: calc(58px * var(--fs, 1)); --cal-colmin: 96px; --cal-cellmin: calc(112px * var(--fs, 1));
  --cal-red: #ff453a; --cal-grid: rgba(255,255,255,.07); --cal-grid-strong: rgba(255,255,255,.13);
  --cal-bg: rgba(255,255,255,.02); --cal-weekend: rgba(255,255,255,.015); }
html[data-theme="light"] .cal { --cal-red: #ff3b30; --cal-grid: rgba(16,24,32,.08); --cal-grid-strong: rgba(16,24,32,.16);
  --cal-bg: #ffffff; --cal-weekend: rgba(16,24,32,.02); }

.cal-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 18px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-title { margin: 0; font-size: calc(28px * var(--fs, 1)); font-weight: 400; letter-spacing: -.02em; }
.cal-title b { font-weight: 750; }
.cal-title-sub { font-size: .55em; color: var(--muted); font-weight: 500; margin-left: 6px; text-transform: capitalize; }
.cal-controls { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal-nav { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 9px; overflow: hidden; background: var(--panel-2); }
.cal-nav button { background: none; border: 0; color: var(--ink); cursor: pointer; font-family: inherit; font-weight: 600; font-size: calc(13px * var(--fs, 1)); padding: 7px 12px; }
.cal-nav button:hover { background: rgba(127,127,127,.12); }
.cal-nav .cal-arrow { font-size: calc(18px * var(--fs, 1)); line-height: 1; padding: 5px 12px 7px; }
.cal-nav .cal-today { border-left: 1px solid var(--line-2); border-right: 1px solid var(--line-2); }
.cal-seg { display: inline-grid; grid-auto-flow: column; gap: 2px; padding: 3px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.cal-seg button { background: none; border: 0; color: var(--muted); padding: 5px 14px; border-radius: 7px; font-family: inherit; font-weight: 600; font-size: calc(13px * var(--fs, 1)); cursor: pointer; }
.cal-seg button:hover { color: var(--ink); }
.cal-seg button.on { background: var(--cyan); color: #06282d; box-shadow: 0 0 14px var(--cyan-glow); }
.cal-select { width: auto !important; min-width: 170px; padding: 7px 10px !important; }
.cal-check { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 600; cursor: pointer; }
.cal-check input { accent-color: var(--cyan); }

.cal-frame { border: 1px solid var(--line); border-radius: var(--radius); background: var(--cal-bg); overflow: hidden; box-shadow: var(--shadow); animation: rise .4s both; }
.cal-scroll { height: calc(100vh - 250px); min-height: 420px; overflow: auto; position: relative; }
.cal-inner { min-width: calc(var(--cal-gutter) + var(--cols) * var(--cal-colmin)); }
.cal-sticky { position: sticky; top: 0; z-index: 5; background: var(--bg-2); }
html[data-theme="light"] .cal-sticky { background: #ffffff; }
.cal-head, .cal-allday, .cal-body { display: grid; }
.cal-head { border-bottom: 1px solid var(--cal-grid); }
.cal-dayhead { background: none; border: 0; font-family: inherit; color: var(--ink); cursor: pointer; padding: 10px 4px 8px; font-size: calc(15px * var(--fs, 1)); display: flex; align-items: center; justify-content: center; gap: 6px; }
.cal-dayhead:hover .cal-daynum { background: rgba(127,127,127,.15); }
.cal-dayname { text-transform: capitalize; font-weight: 500; }
.cal-daynum { min-width: 28px; height: 28px; padding: 0 5px; border-radius: 999px; display: inline-grid; place-items: center; font-weight: 600; }
.cal-dayhead.is-today .cal-daynum { background: var(--cal-red); color: #fff; }
.cal-dayhead.is-weekend { color: var(--muted); }
.cal-allday { border-bottom: 2px solid var(--cal-grid-strong); min-height: 26px; }
.cal-allday-label { font-size: calc(10.5px * var(--fs, 1)); color: var(--muted); font-weight: 600; padding: 5px 6px 0 10px; }
.cal-allday-cell { border-left: 1px solid var(--cal-grid); padding: 2px 3px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cal-bday { display: block; font-size: calc(11.5px * var(--fs, 1)); padding: 2px 6px; border-radius: 5px; background: rgba(255,55,95,.16); color: #ff8aa4; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
html[data-theme="light"] .cal-bday { color: #c21f47; background: rgba(255,55,95,.12); }

.cal-body { position: relative; }
.cal-gutter { position: relative; }
.cal-gutter span { position: absolute; right: 8px; transform: translateY(-50%); font-size: calc(10.5px * var(--fs, 1)); color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-left: 1px solid var(--cal-grid); cursor: copy;
  background-image: linear-gradient(to bottom, var(--cal-grid) 1px, transparent 1px), linear-gradient(to bottom, transparent calc(50% - .5px), rgba(127,127,127,.035) calc(50% - .5px), rgba(127,127,127,.035) calc(50% + .5px), transparent calc(50% + .5px));
  background-size: 100% var(--hour), 100% var(--hour); }
.cal-col.is-weekend { background-color: var(--cal-weekend); }
.cal-col:hover { background-color: rgba(16,207,226,.025); }

.cal-ev { position: absolute; z-index: 2; border-radius: 6px; padding: 3px 6px 3px 8px; overflow: hidden; cursor: pointer;
  background: color-mix(in srgb, var(--c) 22%, transparent); border-left: 3px solid var(--c);
  color: var(--ink); font-size: calc(11.5px * var(--fs, 1)); line-height: 1.3;
  transition: transform .12s, box-shadow .12s, background .12s; animation: rise .35s both; }
.cal-ev:hover { background: color-mix(in srgb, var(--c) 34%, transparent); box-shadow: 0 6px 18px rgba(0,0,0,.25), 0 0 14px color-mix(in srgb, var(--c) 30%, transparent); z-index: 3; }
.cal-ev-name { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: color-mix(in srgb, var(--c) 45%, #ffffff); }
html[data-theme="light"] .cal-ev-name { color: color-mix(in srgb, var(--c) 65%, #000000); }
.cal-ev-meta { display: flex; justify-content: space-between; gap: 6px; opacity: .85; white-space: nowrap; overflow: hidden; }
.cal-ev-meta span:first-child { overflow: hidden; text-overflow: ellipsis; }
.cal-ev-loc { opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.is-short { display: flex; align-items: center; padding-top: 1px; padding-bottom: 1px; }
.cal-ev.is-off { opacity: .45; }
.cal-ev.is-off .cal-ev-name { text-decoration: line-through; }
.cal-ev.is-done { background: color-mix(in srgb, var(--c) 12%, transparent); }

.cal-now { position: absolute; left: 0; height: 0; z-index: 4; pointer-events: none; }
.cal-now::before { content: ''; position: absolute; left: var(--grid-left); right: 0; top: -.5px; height: 1px; background: color-mix(in srgb, var(--cal-red) 35%, transparent); }
.cal-now::after { content: ''; position: absolute; left: var(--today-left); width: var(--today-width); top: -1px; height: 2px; background: var(--cal-red); box-shadow: 0 0 8px var(--cal-red); }
.cal-now span { position: absolute; left: 4px; top: 0; transform: translateY(-50%); background: var(--cal-red); color: #fff; font-size: calc(10.5px * var(--fs, 1)); font-weight: 700; padding: 1px 6px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.cal-now span::after { content: ''; position: absolute; top: 50%; width: 9px; height: 9px; border-radius: 50%; background: var(--cal-red); transform: translate(-50%, -50%); left: var(--today-left); }

.cal-month-head { display: grid; grid-template-columns: repeat(7, 1fr); border-bottom: 1px solid var(--cal-grid); }
.cal-month-head div { text-align: right; padding: 8px 10px; font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); font-weight: 600; text-transform: capitalize; }
.cal-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); height: calc(100vh - 290px); min-height: 520px; }
.cal-cell { border-right: 1px solid var(--cal-grid); border-bottom: 1px solid var(--cal-grid); padding: 4px 5px; cursor: pointer; overflow: hidden; min-width: 0; display: flex; flex-direction: column; gap: 2px; transition: background .12s; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:hover { background: rgba(16,207,226,.04); }
.cal-cell.is-weekend { background-color: var(--cal-weekend); }
.cal-cell.is-out { opacity: .4; }
.cal-cell-num { text-align: right; font-size: calc(13px * var(--fs, 1)); font-weight: 600; margin-bottom: 2px; }
.cal-cell-num span { display: inline-grid; place-items: center; min-width: 24px; height: 24px; border-radius: 999px; padding: 0 4px; }
.cal-cell.is-today .cal-cell-num span { background: var(--cal-red); color: #fff; }
.cal-mev { display: flex; align-items: center; gap: 5px; font-size: calc(11.5px * var(--fs, 1)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-radius: 4px; padding: 1px 4px; }
.cal-mev:hover { background: color-mix(in srgb, var(--c) 18%, transparent); }
.cal-mev i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 6px var(--c); }
.cal-mev .t { color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-mev.is-off { opacity: .45; text-decoration: line-through; }
.cal-mbday { font-size: calc(11px * var(--fs, 1)); color: #ff8aa4; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 4px; }
html[data-theme="light"] .cal-mbday { color: #c21f47; }
.cal-more { font-size: calc(11px * var(--fs, 1)); color: var(--muted); padding: 0 4px; font-weight: 600; }

.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: calc(12px * var(--fs, 1)); color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend i { width: 9px; height: 9px; border-radius: 3px; }
.cal-modal-kind { display: flex; align-items: center; gap: 8px; margin: -4px 0 16px; color: var(--muted); font-weight: 600; }
.cal-modal-kind i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }

@media (max-width: 900px) {
  .cal-scroll { height: calc(100vh - 300px); }
  .cal-month-grid { height: auto; }
  .cal { --cal-cellmin: 82px; --cal-colmin: 110px; }
  .cal-mev .t { display: none; }
}


/* ---------- menu: + Nieuw en actieknoppen ---------- */

.nav-new { position: relative; margin: 2px 2px 6px; }
.nav-new-btn { width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--cyan); color: #06282d; border: 0; border-radius: 10px; padding: 10px 12px;
  font-family: inherit; font-weight: 700; font-size: calc(14px * var(--fs, 1)); cursor: pointer;
  box-shadow: 0 0 20px var(--cyan-glow); transition: background .15s, box-shadow .15s; }
.nav-new-btn span { font-size: 1.25em; line-height: 1; }
.nav-new-btn:hover { background: #3fdcea; box-shadow: 0 0 28px var(--cyan-glow); }
.nav-new-menu { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
  background: linear-gradient(160deg, #18212b, #111820); border: 1px solid var(--line-2); border-radius: 10px;
  padding: 5px; box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 30px rgba(16,207,226,.1); animation: rise .18s both; }
html[data-theme="light"] .nav-new-menu { background: #ffffff; box-shadow: 0 16px 40px rgba(16,24,40,.18); }
.nav-new-menu button { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--ink);
  padding: 9px 12px; border-radius: 7px; font-family: inherit; font-size: calc(13.5px * var(--fs, 1)); font-weight: 600; cursor: pointer; }
.nav-new-menu button:hover { background: var(--cyan-soft); color: var(--cyan); }
html[data-theme="light"] .nav-new-menu button:hover { color: var(--cyan-dark); }
.sidebar nav .nav-action { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; margin-bottom: 2px;
  background: none; border: 1px solid transparent; border-radius: 9px; color: #c6d0da; font-family: inherit;
  font-size: calc(13.5px * var(--fs, 1)); font-weight: 500; cursor: pointer; text-align: left; transition: background .15s, color .15s; }
.sidebar nav .nav-action:hover { background: var(--panel-2); color: #fff; }
.sidebar nav .nav-action .ico { width: 18px; text-align: center; font-size: calc(14px * var(--fs, 1)); color: var(--cyan); }
html[data-theme="light"] .sidebar nav .nav-action { color: #3d4854; }
html[data-theme="light"] .sidebar nav .nav-action:hover { color: #101820; }
html[data-theme="light"] .sidebar nav .nav-action .ico { color: var(--cyan-dark); }


/* ---------- dagagenda op het dashboard ---------- */
.cal-card { grid-row: span 2; }
.cal-card > .body { padding: 14px; }
.cal-embedded .cal-bar { margin-bottom: 10px; }
.cal-embedded .cal-title { font-size: calc(19px * var(--fs, 1)); }
.cal-embedded .cal-title-sub { display: block; margin: 2px 0 0; font-size: .7em; }
.cal-embedded .cal-frame { box-shadow: none; animation: none; }
.cal-embedded .cal-scroll { height: calc(520px * var(--fs, 1)); min-height: 0; }
.cal-embedded .cal-head { display: none; }
.cal-embedded .cal-inner { min-width: 0; }


/* ---------- onboarding (deelbare link) ---------- */
.ob-wrap { min-height: 100vh; padding: 28px 18px 60px; background: radial-gradient(900px 500px at 50% -10%, rgba(16,207,226,.22), transparent 60%), var(--bg); }
html[data-theme="light"] .ob-wrap { background: radial-gradient(900px 500px at 50% -10%, rgba(16,207,226,.25), transparent 60%), var(--bg); }
.ob { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.ob-logo img { width: 190px; display: block; margin: 8px auto 22px; filter: drop-shadow(0 0 16px rgba(16,207,226,.3)); }
.ob-steps { list-style: none; margin: 0 0 18px; padding: 0; display: flex; gap: 6px; overflow-x: auto; }
.ob-steps li { flex: 1 1 0; min-width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative; }
.ob-steps li::before { content: ''; position: absolute; top: 14px; left: -50%; right: 50%; height: 2px; background: var(--line-2); z-index: 0; }
.ob-steps li:first-child::before { display: none; }
.ob-steps li.is-done::before, .ob-steps li.is-current::before { background: var(--cyan); }
.ob-steps span { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: calc(12px * var(--fs, 1)); font-weight: 700; background: var(--bg-2); border: 2px solid var(--line-2); color: var(--muted); }
.ob-steps li.is-done span { background: var(--cyan); border-color: var(--cyan); color: #06282d; }
.ob-steps li.is-current span { border-color: var(--cyan); color: var(--cyan); box-shadow: 0 0 16px var(--cyan-glow); }
.ob-steps em { font-style: normal; font-size: calc(11.5px * var(--fs, 1)); color: var(--muted); font-weight: 600; white-space: nowrap; }
.ob-steps li.is-current em { color: var(--ink); }
.ob-card { background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.025)); border: 1px solid var(--line-2); border-radius: 18px; padding: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.45), 0 0 50px rgba(16,207,226,.1); backdrop-filter: blur(12px); animation: rise .45s both; }
html[data-theme="light"] .ob-card { background: #ffffff; box-shadow: 0 30px 80px rgba(16,24,40,.12); }
.ob-card h1 { font-size: calc(24px * var(--fs, 1)); margin-bottom: 10px; }
.ob-lead { font-size: calc(15.5px * var(--fs, 1)); }
.ob-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 8px; }
.ob-list li { padding: 10px 14px 10px 40px; border: 1px solid var(--line); border-radius: 10px; position: relative; background: var(--panel); }
.ob-list li::before { content: ''; position: absolute; left: 14px; top: 50%; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--cyan); transform: translateY(-50%); }
.ob-list li.is-done::before { background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.ob-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); }
.ob-subcard { border: 1px dashed var(--line-2); border-radius: 12px; padding: 16px; margin-top: 12px; }
.ob-ice { display: grid; gap: 8px; margin-bottom: 4px; }
.ob-ice-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.ob-contract { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 6px 0 18px; }
.ob-contract > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: var(--panel); display: flex; flex-direction: column; gap: 2px; }
.ob-terms { margin: 4px 0 14px; }
.ob-terms summary { cursor: pointer; font-weight: 600; }
.ob-terms div { max-height: 240px; overflow: auto; white-space: pre-wrap; font-size: calc(12.5px * var(--fs, 1)); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-top: 10px; }
.ob-finish { text-align: center; padding: 10px 0; }
.ob-orb { width: 84px; height: 84px; border-radius: 50%; margin: 6px auto 18px; background: radial-gradient(circle at 35% 35%, rgba(16,207,226,.95), rgba(16,207,226,.15) 60%, transparent 70%); box-shadow: 0 0 60px rgba(16,207,226,.45); animation: pg-breathe 3s ease-in-out infinite; }
.share-link { display: flex; gap: 8px; }
.share-link input { font-family: ui-monospace, Menlo, monospace; font-size: calc(12.5px * var(--fs, 1)) !important; }
@media (max-width: 640px) { .ob-card { padding: 20px 16px; } .ob-steps em { display: none; } }


/* ---------- voorkeuren achter één knop ---------- */
.pref-menu { position: relative; margin-top: 10px; }
.pref-menu-btn { width: 100%; display: flex; align-items: center; gap: 8px; background: var(--panel-2); color: #c6d0da;
  border: 1px solid var(--line); border-radius: 8px; padding: 7px 10px; font-family: inherit;
  font-size: calc(12.5px * var(--fs, 1)); cursor: pointer; text-align: left; }
.pref-menu-btn:hover, .pref-menu-btn[aria-expanded="true"] { background: rgba(255,255,255,.1); color: #fff; border-color: var(--line-2); }
.pref-menu-btn .ico { color: var(--cyan); }
html[data-theme="light"] .pref-menu-btn { color: #3d4854; background: #ffffff; }
html[data-theme="light"] .pref-menu-btn:hover, html[data-theme="light"] .pref-menu-btn[aria-expanded="true"] { color: #101820; background: #f3f6f9; }
.pref-pop { position: absolute; left: 0; right: 0; z-index: 40; padding: 10px; border-radius: 12px;
  background: linear-gradient(160deg, #18212b, #111820); border: 1px solid var(--line-2);
  box-shadow: 0 16px 40px rgba(0,0,0,.5), 0 0 30px rgba(16,207,226,.1); animation: rise .18s both; }
html[data-theme="light"] .pref-pop { background: #ffffff; box-shadow: 0 16px 40px rgba(16,24,40,.18); }
.pref-menu.up .pref-pop { bottom: calc(100% + 6px); }
.pref-menu.down .pref-pop { top: calc(100% + 6px); }
.pref-pop .pref-panel { margin: 0; gap: 4px; }
.pref-label { font-size: calc(10.5px * var(--fs, 1)); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; margin: 6px 2px 2px; }
.pref-label:first-child { margin-top: 0; }
.login-theme { min-width: 0; width: 210px; }
.login-theme .pref-menu { margin: 0; }
.login-theme .pref-pop { left: auto; right: 0; width: 250px; }


/* ---------- compacte formulieren, per onderdeel ---------- */
.form-secnav { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 18px; scrollbar-width: thin; }
.form-secnav button { flex: none; display: inline-flex; align-items: center; gap: 7px; background: var(--panel-2); border: 1px solid var(--line);
  color: var(--muted); border-radius: 999px; padding: 5px 12px 5px 5px; font-family: inherit; font-size: calc(12.5px * var(--fs, 1)); font-weight: 600; cursor: pointer; white-space: nowrap; }
.form-secnav button span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: rgba(127,127,127,.18); font-size: calc(11px * var(--fs, 1)); }
.form-secnav button:hover { color: var(--ink); border-color: var(--line-2); }
.form-secnav button.seen span { background: var(--cyan-soft); color: var(--cyan); }
.form-secnav button.on { background: var(--cyan); border-color: var(--cyan); color: #06282d; box-shadow: 0 0 14px var(--cyan-glow); }
.form-secnav button.on span { background: rgba(6,40,45,.18); color: #06282d; }
.form-sec { animation: rise .3s both; }
.form-sec > legend { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.form-sec > legend small { font-size: .85em; color: var(--muted); letter-spacing: .04em; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; max-width: 820px; }
.form-grid .field { margin-bottom: 12px; min-width: 0; }
.form-grid .f-wide, .form-grid .f-pair { grid-column: 1 / -1; }
.form-grid .f-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 22px; }
.form-grid .f-num input { max-width: 150px; }
.form-grid .f-date input { max-width: 190px; }
.form-grid textarea { min-height: 64px; }
.form-grid label { line-height: 1.35; }
.form-secbtns { display: flex; justify-content: space-between; gap: 10px; margin-top: 6px; padding-top: 14px; border-top: 1px solid var(--line); max-width: 820px; }
.form-secbtns .btn:disabled { opacity: .35; }
@media (max-width: 700px) {
  .form-grid, .form-grid .f-pair { grid-template-columns: 1fr; }
  .form-grid .f-wide, .form-grid .f-pair { grid-column: auto; }
}


/* ---------- compacte opmaak voor alle formulieren ---------- */
.modal .body, .form-compact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; align-content: start; }
.modal .body > *, .form-compact > * { grid-column: 1 / -1; }
.modal .body > .field:not(:has(textarea)):not(:has(.sig-pad)):not(.full),
.form-compact > .field:not(:has(textarea)):not(:has(.sig-pad)):not(.full) { grid-column: auto; }
.field-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field-row:has(> .field > [id$="-infix"]) { grid-template-columns: minmax(0, 1fr) minmax(90px, 120px) minmax(0, 1fr); }
.form-grid > .field-row, .form-grid > .full { grid-column: 1 / -1; }
.form-grid > .field-row .field { margin-bottom: 12px; }
input[type=number] { max-width: 170px; }
input[type=date] { max-width: 200px; }
input[type=time] { max-width: 150px; }
.pg-form-pair input[type=number] { max-width: none; }
.modal .form-secnav { margin-bottom: 14px; }
.modal .form-grid, .modal .form-secbtns { max-width: none; }
.card .body > .form-secnav, .card .body > fieldset, .card .body > .form-secbtns { max-width: 760px; }
@media (max-width: 640px) {
  .modal .body, .form-compact, .field-row, .field-row:has(> .field > [id$="-infix"]) { grid-template-columns: 1fr; }
}
.form-secbtns + .notice, .form-secbtns + div { margin-top: 14px; }

.cal-bar-mini { position: relative; display: block; }
.cal-bar-mini .cal-title { padding-right: 90px; }
.cal-bar-mini .cal-controls { margin-top: 10px; }
.cal-bar-mini .cal-nav .cal-arrow + .cal-arrow { border-left: 1px solid var(--line-2); }
.cal-today-sm { position: absolute; top: 2px; right: 0; background: none; border: 1px solid var(--line-2); color: var(--cyan);
  border-radius: 999px; padding: 3px 10px; font-family: inherit; font-size: calc(11.5px * var(--fs, 1)); font-weight: 600; cursor: pointer; }
.cal-today-sm:hover:not(:disabled) { background: var(--cyan-soft); border-color: var(--cyan); }
.cal-today-sm:disabled { color: var(--muted); opacity: .55; cursor: default; }
html[data-theme="light"] .cal-today-sm { color: var(--cyan-dark); }

/* prijzen aanpassen */
.price-input { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.price-input span { color: var(--muted); font-weight: 600; }
.price-input input { width: 110px !important; text-align: right; padding: 6px 9px !important; }
.price-grid.is-editing td.num { padding-top: 6px; padding-bottom: 6px; }


/* ---------- afspraakherinnering (pop-up) ---------- */
#reminder-host { position: fixed; top: 18px; right: 18px; z-index: 400; display: flex; flex-direction: column; gap: 12px; width: min(400px, calc(100vw - 36px)); }
.reminder { background: linear-gradient(160deg, #18222c, #0f161d); border: 1px solid rgba(16,207,226,.55); border-radius: 16px; padding: 16px 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 0 40px rgba(16,207,226,.25); animation: reminder-in .35s cubic-bezier(.2,.9,.3,1.2) both; }
html[data-theme="light"] .reminder { background: #ffffff; box-shadow: 0 24px 60px rgba(16,24,40,.22), 0 0 34px rgba(16,207,226,.25); }
.reminder.is-leaving { animation: reminder-out .22s ease both; }
@keyframes reminder-in { from { opacity: 0; transform: translateX(30px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes reminder-out { to { opacity: 0; transform: translateX(30px); } }
.reminder-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.reminder-pulse { width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 0 rgba(16,207,226,.6); animation: reminder-pulse 1.6s infinite; }
@keyframes reminder-pulse { 70% { box-shadow: 0 0 0 12px rgba(16,207,226,0); } 100% { box-shadow: 0 0 0 0 rgba(16,207,226,0); } }
.reminder-kicker { font-size: calc(11px * var(--fs, 1)); letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
html[data-theme="light"] .reminder-kicker { color: var(--cyan-dark); }
.reminder-name { font-size: calc(18px * var(--fs, 1)); font-weight: 700; color: var(--ink); margin-top: 2px; }
.reminder-meta { font-size: calc(12.5px * var(--fs, 1)); color: var(--muted); }
.reminder-x { background: none; border: 0; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; }
.reminder-x:hover { color: var(--ink); }
.reminder-block { margin-top: 12px; padding: 10px 12px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line); }
.reminder-label { font-size: calc(10.5px * var(--fs, 1)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 4px; }
.reminder-text { font-size: calc(14px * var(--fs, 1)); color: var(--ink); line-height: 1.5; max-height: 220px; overflow: auto; }
.reminder-text.muted { color: var(--muted); font-size: calc(13px * var(--fs, 1)); }
.reminder-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }
@media (prefers-reduced-motion: reduce) { .reminder, .reminder-pulse { animation: none; } }

/* sessienummer in de agenda */
.cal-ev-name { display: flex; align-items: center; gap: 6px; }
.cal-ev-name > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-sess { flex: none; display: inline-block; font-size: calc(10.5px * var(--fs, 1)); font-weight: 700; line-height: 1.4;
  padding: 0 6px; border-radius: 999px; background: rgba(255,255,255,.14); color: var(--ink); font-variant-numeric: tabular-nums; }
html[data-theme="light"] .cal-sess { background: rgba(16,24,32,.08); }
.cal-sess.is-meas { background: var(--cyan); color: #06282d; }
.cal-sess.is-over { background: var(--bad-soft); color: var(--bad); }
.cal-sess.is-none { background: var(--panel-2); color: var(--muted); font-weight: 600; }
.cal-mev .cal-sess { margin-left: 4px; }
.cal-modal-kind .cal-sess { margin-left: 8px; font-size: calc(11.5px * var(--fs, 1)); }
.cal-ev-meta .cal-sess { margin-right: 3px; }
.cal-ev-meta { align-items: center; }
.cal-ev-meta .cal-sess { flex: none; }
.cal-ev-meta .cal-ev-type { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.cal-ev-meta > span:last-child { flex: none; }

.sidebar nav .nav-tag { margin-left: auto; font-size: calc(9.5px * var(--fs, 1)); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: 1px 6px; border-radius: 999px; background: var(--warn-soft); color: var(--warn); }

/* ---------- training: coach (dossier) ---------- */
.tr-builder .badge { margin-left: 4px; }
.tr-days { display: flex; gap: 6px; flex-wrap: wrap; }
.tr-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; border-radius: 999px; font-size: calc(10.5px * var(--fs,1)); background: rgba(127,127,127,.2); margin-left: 4px; }
.tr-dayhead { border-top: 1px solid var(--line); padding-top: 12px; padding-bottom: 6px; }
.tr-dayhead .field-row { max-width: 640px; }
.tr-table td { padding: 6px 8px; }
.tr-table th { padding: 8px; }
.tr-table input { padding: 6px 8px !important; font-size: calc(13px * var(--fs,1)) !important; max-width: none !important; }
.tr-table .w-xs input { width: 58px !important; text-align: center; }
.tr-table .w-s input { width: 72px !important; text-align: center; }
.tr-table .cue input { min-width: 170px; }
.tr-rowbtns button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 2px 5px; }
.tr-rowbtns button:hover:not(:disabled) { color: var(--ink); }
.tr-rowbtns button[data-rm]:hover { color: var(--bad); }
.tr-rowbtns button:disabled { opacity: .25; cursor: default; }
.linkbtn { background: none; border: 0; color: var(--cyan); font: inherit; font-size: calc(12.5px * var(--fs,1)); font-weight: 600; cursor: pointer; padding: 4px 0; text-decoration: none; }
html[data-theme="light"] .linkbtn { color: var(--cyan-dark); }
.linkbtn.danger { color: var(--bad); }
.linkbtn:disabled { opacity: .35; cursor: default; }
.tr-coach-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 1100px) { .tr-coach-grid { grid-template-columns: 1fr; } }
.tr-feed-item { padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tr-feed-item:last-child { border-bottom: 0; }
.tr-feed-item.is-new { background: rgba(16,207,226,.05); }
.tr-feed-head { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 8px; }
.tr-feed-head > .small { margin-left: auto; }
.tr-feed-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px dashed var(--line); font-size: calc(13px * var(--fs,1)); }
.tr-feed-row:first-of-type { border-top: 0; }
.tr-done { font-variant-numeric: tabular-nums; word-spacing: 4px; }
.tr-flag { font-size: calc(10.5px * var(--fs,1)); font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.tr-flag.ok { background: var(--ok-soft); color: var(--ok); }
.tr-flag.warn { background: var(--warn-soft); color: var(--warn); }
.tr-flag.up { background: var(--info-soft); color: var(--cyan); }
html[data-theme="light"] .tr-flag.up { color: var(--cyan-dark); }
.tr-comment { margin: 4px 0 8px; padding: 8px 10px; border-radius: 10px; background: var(--warn-soft); font-size: calc(13px * var(--fs,1)); }
.tr-comment b { display: block; font-size: calc(10.5px * var(--fs,1)); letter-spacing: .06em; text-transform: uppercase; color: var(--warn); margin-bottom: 2px; }
.tr-charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; padding: 14px 16px; }
.tr-chart { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tr-chart .nm { font-size: calc(12px * var(--fs,1)); color: var(--muted); font-weight: 600; }
.tr-chart .v { font-size: calc(18px * var(--fs,1)); font-weight: 700; margin: 2px 0; }
.tr-chart svg { width: 100%; height: 40px; display: block; }
.tr-libform { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 18px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.tr-libform > * { grid-column: 1 / -1; }
.tr-libform textarea { min-height: 80px; }
.tr-libdefaults { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.tr-libdefaults input { margin-top: 4px; text-align: center; max-width: none !important; }
.tr-liblist { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; }
.tr-libitem { text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); color: var(--ink); font: inherit; cursor: pointer; }
.tr-libitem:hover, .tr-libitem.on { border-color: var(--cyan); }
.tr-libhow { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- training: lid (ledenportaal) ---------- */
.tr-member { max-width: 600px; margin: 0 auto; padding-bottom: 20px; }
.tr-mhead { padding: 4px 2px 12px; }
.tr-kicker { font-size: calc(11px * var(--fs,1)); letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); font-weight: 700; }
html[data-theme="light"] .tr-kicker { color: var(--cyan-dark); }
.tr-mtitle { font-size: calc(22px * var(--fs,1)); font-weight: 750; margin: 2px 0; }
.tr-weekbar { display: flex; gap: 5px; margin-top: 10px; }
.tr-weekbar span { flex: 1; height: 5px; border-radius: 3px; background: var(--line-2); }
.tr-weekbar span.done { background: var(--cyan); box-shadow: 0 0 8px var(--cyan-glow); }
.tr-daytabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 10px; }
.tr-daytabs button { flex: none; background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); border-radius: 999px; padding: 7px 13px; font: inherit; font-size: calc(13px * var(--fs,1)); font-weight: 600; cursor: pointer; }
.tr-daytabs button.on { background: var(--cyan); color: #06282d; border-color: var(--cyan); }
.tr-daytabs .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-left: 6px; vertical-align: middle; }
.tr-ex { border: 1px solid var(--line); border-radius: 16px; padding: 13px 13px 10px; margin-bottom: 12px; background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); animation: rise .35s both; }
html[data-theme="light"] .tr-ex { background: #fff; }
.tr-ex.is-done { border-color: rgba(46,230,166,.45); }
.tr-ex-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.tr-ex-name { font-weight: 700; font-size: calc(16px * var(--fs,1)); }
.tr-ex-target { font-size: calc(13px * var(--fs,1)); color: var(--cyan); font-weight: 700; margin-top: 2px; }
html[data-theme="light"] .tr-ex-target { color: var(--cyan-dark); }
.tr-cue { font-size: calc(12.5px * var(--fs,1)); margin: 8px 0; padding: 6px 9px; border-left: 2px solid var(--cyan); background: var(--cyan-soft); border-radius: 0 8px 8px 0; }
.tr-how { margin: 6px 0 8px; font-size: calc(13px * var(--fs,1)); }
.tr-how summary { cursor: pointer; color: var(--cyan); font-weight: 600; }
html[data-theme="light"] .tr-how summary { color: var(--cyan-dark); }
.tr-how p { margin: 6px 0 4px; line-height: 1.5; }
.tr-prev { font-size: calc(12px * var(--fs,1)); color: var(--muted); }
.tr-prev b { color: var(--ink); font-weight: 600; }
.tr-sets { display: grid; gap: 6px; margin-top: 8px; }
.tr-set { display: grid; grid-template-columns: 28px 1fr 1fr 1fr 40px; gap: 6px; align-items: center; }
.tr-set.head { font-size: calc(10px * var(--fs,1)); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.tr-set.head span { text-align: center; }
.tr-set .n { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: calc(12px * var(--fs,1)); font-weight: 700; background: var(--panel-2); color: var(--muted); }
.tr-set input, .tr-set select { width: 100% !important; max-width: none !important; padding: 9px 4px !important; text-align: center; font-size: calc(16px * var(--fs,1)) !important; border-radius: 9px !important; }
.tr-set .tick { width: 40px; height: 38px; border-radius: 10px; border: 1px solid var(--line-2); background: none; color: var(--muted); cursor: pointer; font-size: 17px; }
.tr-set.done .tick { background: var(--ok); border-color: var(--ok); color: #05261b; box-shadow: 0 0 12px rgba(46,230,166,.45); }
.tr-set.done .n { background: var(--ok-soft); color: var(--ok); }
.rpe-hot { border-color: var(--warn) !important; }
.tr-ex-tools { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; }
.tr-note textarea { min-height: 52px !important; margin-top: 6px; }
.tr-finish { position: sticky; bottom: 0; padding: 12px 0 14px; background: linear-gradient(0deg, var(--bg) 75%, transparent); z-index: 5; }
.tr-finish .btn { width: 100%; justify-content: center; padding: 13px; font-size: calc(15px * var(--fs,1)); border-radius: 14px; }
.tr-progress { height: 4px; border-radius: 2px; background: var(--line); margin-bottom: 10px; overflow: hidden; }
.tr-progress i { display: block; height: 100%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transition: width .3s; }
.tr-timer { position: fixed; left: 50%; transform: translateX(-50%); bottom: 90px; z-index: 300; display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 14px; background: #10202a; border: 1px solid rgba(16,207,226,.5); box-shadow: 0 10px 30px rgba(0,0,0,.4); width: min(420px, calc(100vw - 30px)); animation: rise .25s both; }
html[data-theme="light"] .tr-timer { background: #fff; }
.tr-timer b { font-size: calc(20px * var(--fs,1)); font-variant-numeric: tabular-nums; color: var(--cyan); }
.tr-timer span { flex: 1; color: var(--muted); font-size: calc(12.5px * var(--fs,1)); }
.tr-rpe-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; margin: 8px 0 4px; }
.tr-rpe-scale button { padding: 9px 0; border-radius: 8px; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.tr-rpe-scale button.on { background: var(--cyan); color: #06282d; border-color: var(--cyan); }
.tr-rpe-hint { display: flex; justify-content: space-between; font-size: calc(10.5px * var(--fs,1)); color: var(--muted); }

/* nieuw van leden */
.mu-detail { color: var(--muted); margin-top: 1px; }
.mu-alert .mu-detail { color: var(--warn); }

/* ---------- Lid: zelf inplannen ---------- */
.bk-nav { display: flex; gap: 6px; }
.bk-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 14px; }
.bk-week { display: grid; grid-template-columns: repeat(var(--bk-cols), minmax(0, 1fr)); gap: 10px; }
.bk-day { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--panel); min-width: 0; }
.bk-day.is-today { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan-soft) inset; }
.bk-day.is-past { opacity: .45; }
.bk-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-bottom: 8px; }
.bk-dow { font-weight: 700; text-transform: capitalize; }
.bk-day.is-today .bk-dow { color: var(--cyan); }
.bk-hours { flex-basis: 100%; }
.bk-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 6px; }
.bk-slot { white-space: nowrap; overflow: hidden; }
.bk-slots.is-pref { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
.bk-star { font-size: .8em; margin-right: 4px; color: var(--cyan); }
.bk-daypanel .bk-slots { grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); }
.bk-slot { font: inherit; font-size: calc(13px * var(--fs, 1)); font-variant-numeric: tabular-nums;
  padding: 7px 4px; border-radius: 8px; border: 1px solid var(--cyan-soft); background: var(--cyan-soft);
  color: var(--ink); cursor: pointer; transition: background .15s, border-color .15s, transform .1s; }
.bk-slot:hover, .bk-slot:focus-visible { border-color: var(--cyan); background: var(--info-soft); outline: none; }
.bk-slot:active { transform: scale(.97); }
.bk-mine { border-left: 3px solid var(--mint); background: var(--ok-soft); border-radius: 8px; padding: 6px 8px;
  margin-bottom: 8px; font-size: calc(13px * var(--fs, 1)); }
.bk-none { padding: 6px 0; }
.bk-confirm { text-align: center; padding: 6px 0 16px; }
.bk-when { text-transform: capitalize; color: var(--muted); }
.bk-time { font-size: calc(26px * var(--fs, 1)); font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .bk-week { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .bk-week { grid-template-columns: 1fr; } }
.wh-table td { padding: 5px 8px 5px 0; border: 0; }
.wh-table input { max-width: 130px; }
.cal-own { position: absolute; left: 1px; right: 2px; border-radius: 6px; pointer-events: none;
  border: 1px dashed rgba(255,176,84,.55); color: var(--warn); font-size: calc(11px * var(--fs, 1));
  padding: 3px 6px; display: flex; flex-direction: column; gap: 1px; overflow: hidden;
  background: repeating-linear-gradient(135deg, rgba(255,176,84,.10) 0 6px, rgba(255,176,84,.03) 6px 12px); }
.cal-own span:first-child { font-weight: 700; }
.cal-own-time { opacity: .8; font-variant-numeric: tabular-nums; }
html[data-theme="light"] .cal-own { color: #b8650a; border-color: rgba(184,101,10,.45); }
.bk-slots.is-pref { margin-bottom: 6px; }
.bk-slots.is-pref + .bk-slots.is-rest { padding-top: 6px; border-top: 1px dashed var(--line); }
.bk-slot.is-pref { border-color: var(--cyan); background: var(--info-soft); font-weight: 700; }
.bk-slots.is-rest .bk-slot { background: transparent; border-color: var(--line); color: var(--muted); }
.bk-slots.is-rest .bk-slot:hover { color: var(--ink); border-color: var(--cyan); }
.bk-header { flex-wrap: wrap; gap: 8px; }
.bk-period { color: var(--ink); font-weight: 700; }
.bk-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.bk-mhead { text-align: center; font-size: calc(11px * var(--fs, 1)); color: var(--muted); text-transform: uppercase;
  letter-spacing: .06em; padding-bottom: 2px; }
.bk-mday { font: inherit; color: var(--ink); text-align: left; min-height: calc(74px * var(--fs, 1)); min-width: 0;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 6px 7px;
  display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
button.bk-mday { cursor: pointer; transition: border-color .15s, background .15s; }
button.bk-mday:hover { border-color: var(--cyan); }
.bk-mday.is-other { opacity: .3; }
.bk-mday.is-past, .bk-mday.is-closed { opacity: .45; }
.bk-mday.is-closed { background: transparent; border-style: dashed; }
.bk-mday.is-today .bk-mnum { background: var(--cyan); color: #06282d; border-radius: 99px; padding: 0 6px; }
.bk-mday.is-selected { border-color: var(--cyan); background: var(--info-soft); box-shadow: 0 0 0 1px var(--cyan) inset; }
.bk-mnum { font-weight: 700; align-self: flex-start; font-variant-numeric: tabular-nums; }
.bk-mmine { font-size: calc(11px * var(--fs, 1)); background: var(--ok-soft); border-left: 3px solid var(--mint);
  border-radius: 4px; padding: 1px 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bk-mfree { margin-top: auto; font-size: calc(12px * var(--fs, 1)); color: var(--cyan); font-weight: 600; white-space: nowrap; }
.bk-daypanel { margin-top: 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--panel); }
@media (max-width: 560px) {
  .bk-month { gap: 3px; }
  .bk-mday { min-height: 54px; padding: 4px; border-radius: 8px; }
  .bk-mfree { white-space: normal; line-height: 1.1; font-size: 11px; }
  .bk-mfree-label { display: block; font-size: 9px; font-weight: 500; }
  .bk-mmine { font-size: 0; height: 5px; padding: 0; border-left: 0; background: var(--mint); }
}
select.time24 { width: auto; min-width: 96px; font-variant-numeric: tabular-nums; }
.reminder.is-cancel { border-color: rgba(255,107,133,.55); }
.reminder.is-cancel .reminder-pulse { background: var(--bad); box-shadow: 0 0 0 0 rgba(255,107,133,.6); }
.reminder.is-cancel .reminder-kicker { color: var(--bad); }
