:root {
  color-scheme: light;
  --ink: #17223e;
  --muted: #514858;
  --paper: #fff;
  --canvas: #fff5f8;
  --accent: #a61560;
  --line: #eedce5;
  --tint: #ffe2ef;
  font: 16px/1.5 "DM Sans", "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); }
a { color: var(--accent); }
.shell { width: min(1060px, calc(100% - 36px)); margin-inline: auto; }
.top { background: #ffcde1; color: var(--ink); border-bottom: 1px solid #efb6d0; }
.top-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 750; }
.brand img { display: block; width: 116px; height: auto; border-radius: 8px; }
.identity, .inline { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; }
.identity { align-items: center; justify-content: flex-end; }
main { padding-block: 24px 60px; }
.narrow { max-width: 490px; padding-top: clamp(32px, 9vh, 88px); }
nav { display: flex; flex-wrap: wrap; gap: 5px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 24px; }
nav a { color: var(--muted); text-decoration: none; padding: 7px 11px; border-radius: 8px; font-size: .92rem; font-weight: 650; }
nav a[aria-current], nav a:hover { color: var(--accent); background: var(--tint); }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(1.9rem, 5vw, 2.7rem); letter-spacing: -.05em; line-height: 1.15; }
h2 { font-size: 1.25rem; letter-spacing: -.02em; }
h3 { font-size: .94rem; color: var(--accent); }
p { color: var(--muted); margin-top: 4px; }
.heading, .card-head, .form-end { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.heading { margin-bottom: 18px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: clamp(14px, 3vw, 27px); box-shadow: 0 3px 8px #2d18330e; }
.auth .stack { margin-top: 22px; }
.stack { display: grid; gap: 15px; align-content: start; }
.compact { max-width: 565px; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; align-items: start; }
label { display: grid; gap: 5px; font-size: .9rem; font-weight: 650; }
input, select, button { font: inherit; }
input:not([type=checkbox]), select { padding: 8px 10px; min-height: 42px; min-width: 0; border: 1px solid #ba9ead; border-radius: 8px; background: white; color: var(--ink); }
input[type=checkbox] { accent-color: var(--accent); width: 17px; height: 17px; }
:focus-visible { outline: 3px solid #b72070; outline-offset: 2px; }
button, .secondary { min-height: 42px; padding: 8px 13px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; cursor: pointer; text-decoration: none; }
.primary { background: var(--accent); color: white; }
.primary:hover { background: #81104a; }
.secondary { display: inline-flex; align-items: center; color: var(--accent); background: white; border-color: #ba9ead; }
.secondary:hover { background: var(--tint); }
.quiet { background: transparent; color: var(--ink); border-color: #a56183; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { font-weight: 650; font-size: .9rem; }
.task-group { margin-top: 18px; }
.task-group h3 { padding: 8px 10px; background: var(--tint); border-radius: 7px; }
.task { display: grid; grid-template-columns: minmax(0, 1fr) 78px 25px; align-items: center; gap: 8px; min-height: 53px; border-bottom: 1px solid var(--line); padding: 5px; }
.task input { width: 100%; }
.task .unit { color: var(--muted); font-weight: 500; }
.form-end { margin-top: 18px; }
.check { display: flex; align-items: center; gap: 5px; }
.week { display: flex; flex-wrap: wrap; gap: 8px; }
output { padding: 8px 5px; font-weight: 750; }
.pill { display: inline-block; padding: 4px 9px; background: #f5eaf0; color: #61344d; border-radius: 20px; font-size: .8rem; }
.approved { background: var(--tint); color: var(--accent); }
.sum { font-size: 2.1rem; margin-top: 3px; }
.alert { padding: 10px 13px; border-radius: 8px; margin-bottom: 15px; }
.success { background: var(--tint); color: #77134a; }
.error { background: #f9e8e4; color: #842e24; }
.member, details { padding: 12px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.member span, .member small { display: block; color: var(--muted); overflow-wrap: anywhere; }
summary { cursor: pointer; }
summary strong, summary .pill { margin-left: 8px; }
.entries { padding: 0; list-style: none; }
.entries li { display: flex; justify-content: space-between; gap: 12px; padding-block: 3px; }
.entries strong { white-space: nowrap; }
pre { margin-block: 13px; padding: 12px; background: #fff3f7; border-radius: 8px; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; }
@media (max-width: 650px) {
  .split { grid-template-columns: 1fr; }
  .task { grid-template-columns: minmax(0, 1fr) 63px 24px; }
}


.totals { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.stat { border-top: 3px solid #df3585; }
.stat strong { display: block; margin-top: 3px; font-size: clamp(1.15rem, 3.3vw, 2rem); letter-spacing: -.045em; }
.dashboard-section { margin-top: 16px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; margin-top: 12px; text-align: right; }
th, td { padding: 10px 8px; border-bottom: 1px solid var(--line); }
th:first-child { text-align: left; }
th small { color: var(--muted); font-weight: 500; }
tfoot { background: #fff3f7; font-weight: 750; }
@media (max-width: 450px) {
  .totals { gap: 6px; }
  .stat { padding: 10px 7px; }
  .stat h2, .stat p { font-size: .8rem; }
  th, td { padding: 8px 5px; font-size: .86rem; }
  .brand { gap: 6px; font-size: .83rem; }
  .brand img { width: 85px; }
  .identity > span { display: none; }
}

.cost-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 0; }
.cost-summary dd { margin: 2px 0 0; font-weight: 750; }
.cost-summary small { color: var(--muted); }
.rate-form { margin-top: 14px; }

.chart-scroll { max-height: 390px; overflow: auto; margin-top: 14px; }
.day-chart { list-style: none; margin: 0; padding: 0; }
.day-chart a {
  display: grid; grid-template-columns: 52px minmax(0, 1fr) 108px;
  align-items: center; gap: 10px; padding: 5px 8px;
  border-bottom: 1px solid var(--line); text-decoration: none;
  font-size: .9rem; font-variant-numeric: tabular-nums;
}
.day-chart a:hover, .day-chart a[aria-current] { background: var(--tint); }
.day-chart a span { text-align: right; }
.day-chart meter { width: 100%; height: 15px; }
.day-chart meter::-webkit-meter-bar { background: #f2e5ed; border: 0; }
.day-chart meter::-webkit-meter-optimum-value { background: #b72070; }
.day-chart meter::-moz-meter-bar { background: #b72070; }
.cost-summary { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 540px) {
  .cost-summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.slot-bar { display: grid; grid-template-columns: 105px minmax(0,1fr) 72px; gap: 10px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.slot-bar span { text-align: right; }

.planning-table { min-width: 760px; text-align: left; }
.planning-table td { vertical-align: top; }
.planning-table thead small, .planning-entry { display: block; }
.planning-entry { margin-top: 5px; font-size: .86rem; }
.planning-choice select { width: 100%; }

.chart-filters { width: 100%; }
.chart-filters label { min-width: 0; }
.chart-filters select { width: min(280px, 100%); }
.vertical-chart { display: flex; gap: 4px; width: max-content; min-width: 100%; padding: 6px 4px; margin: 0; list-style: none; }
.vertical-chart li { flex: 1 0 46px; }
.vertical-chart a { display: grid; justify-items: center; gap: 4px; padding: 6px 2px; border-radius: 6px; text-decoration: none; font-size: .76rem; font-variant-numeric: tabular-nums; }
.vertical-chart a:hover, .vertical-chart a[aria-current] { background: var(--tint); }
.vertical-chart meter { width: 20px; height: 154px; writing-mode: vertical-lr; direction: rtl; }
.vertical-chart meter::-webkit-meter-bar { background: #f6e5ed; border: 0; }
.vertical-chart meter::-webkit-meter-optimum-value { background: #b72070; }
.vertical-chart meter::-moz-meter-bar { background: #b72070; }
.vertical-chart time { color: var(--muted); }

.chat-dot { display: inline-block; width: 8px; height: 8px; margin-left: 5px; border-radius: 50%; background: var(--accent); vertical-align: middle; }
.chat-dot[hidden] { display: none; }
.chat-row { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.chat-row > span { min-width: 0; }
.chat-preview { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; color: var(--ink); }
.chat-row small, .chat-message time { color: var(--muted); font-size: .78rem; }
.chat-message { border-bottom: 1px solid var(--line); padding: 12px 0; }
.chat-message header { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.chat-message p { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.chat-compose { margin-top: 14px; }
.chat-compose textarea { font: inherit; padding: 9px; border: 1px solid #ba9ead; border-radius: 8px; resize: vertical; }
.chat-compose button { justify-self: start; }

.planning-week th { background: var(--tint); color: var(--accent); border-top: 2px solid #e7b1cc; font-weight: 750; }
.planning-table tbody tr:not(.planning-week):nth-child(odd) { background: #fff9fb; }

.timer-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; padding-block: 8px; }
.timer-tiles button { display: grid; text-align: left; }
.timer-active { background: var(--tint); }

.timer-panel { margin-bottom: 12px; }
.timer-header { background: var(--tint); border-radius: 12px; padding: 12px 16px; margin-bottom: 12px; }
.timer-clock { display: inline-block; margin-left: 8px; font-variant-numeric: tabular-nums; }
.timer-tiles .timer-active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.timer-review > summary { font-weight: 750; }
.timer-panel #idle-status:empty { display: none; }

.team-member { margin-top: 0; padding: 0; }
.team-member > summary { padding: 12px 0; font-weight: 750; }
.team-member-options { padding: 0 0 8px 16px; }
.team-member-options p { overflow-wrap: anywhere; }
.team-member-options > details { padding: 8px 0; }

/* NBFM werkportaal · voorstel met linker navigatie */
:root { --ink:#202538; --muted:#697080; --canvas:#f5f6f8; --line:#e4e6ec; --accent:#b3236d; --tint:#fbeaf2; font-size:14px; }
.portal-layout { display:grid; grid-template-columns:220px minmax(0,1fr); min-height:100vh; }
.sidebar { background:#23283d; color:#fff; padding:25px 16px 18px; position:sticky; top:0; height:100vh; display:flex; flex-direction:column; }
.sidebar .brand { padding:0 8px; display:block; }
.sidebar .brand img { width:130px; height:auto; border-radius:5px; }
.sidebar .brand > span { display:block; color:#bfc3d1; font-weight:400; margin:10px 0 0; font-size:13px; }
.sidebar-caption { color:#969caf; font-size:10px; letter-spacing:.12em; margin:30px 12px 8px; }
.sidebar nav { display:flex; flex-direction:column; flex-wrap:nowrap; gap:3px; border:0; margin:0; padding:0; }
.sidebar nav a { padding:10px 12px; color:#ced1de; border-radius:6px; font-size:13px; font-weight:500; }
.sidebar nav a:hover { background:#333951; color:#fff; }
.sidebar nav a[aria-current] { background:#f9e0ee; color:#85204f; font-weight:700; }
.sidebar-account { margin-top:auto; padding:18px 10px 0; border-top:1px solid #41465b; }
.sidebar-account strong,.sidebar-account span { display:block; }
.sidebar-account span { color:#bfc3d1; font-size:12px; margin:2px 0 12px; }
.sidebar-account .quiet { color:#e2e4ee; border:0; padding:0; min-height:24px; font-weight:400; font-size:12px; }
.portal-layout > main.shell { width:100%; max-width:1480px; padding:32px clamp(18px,3vw,42px) 60px; margin:0 auto; }
h1 { font-size:27px; letter-spacing:-.04em; }
h2 { font-size:16px; }
h3 { font-size:13px; }
.card { border-radius:9px; box-shadow:none; padding:20px; }
.heading { margin-bottom:24px; align-items:flex-start; }
.heading p { margin-top:7px; }
.primary,.secondary,button { border-radius:6px; font-size:13px; min-height:36px; padding:7px 12px; }
input:not([type=checkbox]),select { border-radius:6px; min-height:36px; padding:7px 10px; font-size:13px; }
.stat strong { font-size:27px; }
.stat { border-top:1px solid var(--line); }
.stat h2 { color:var(--muted); font-size:12px; font-weight:600; }
.stat p { font-size:12px; }
.member,details { padding:10px 0; }
table th, table td { padding:10px 9px; font-size:13px; }
thead th { background:#f7f8fa; color:var(--muted); font-weight:600; }
.planning-week th { background:#f0f1f5; color:#3e455b; border-top:1px solid #d9dce5; }
.pill { border-radius:5px; }
.timer-header { background:#faf0f6; }
.login-brand { padding:24px; }
.login-brand .brand { color:var(--ink); }
@media(max-width:850px) {
 .portal-layout { grid-template-columns:175px minmax(0,1fr); }
 .sidebar { padding:20px 10px; }
 .sidebar nav a { padding:9px 10px; }
 .portal-layout > main.shell { padding:24px 16px; }
}
@media(max-width:600px) {
 .portal-layout { display:block; }
 .sidebar { position:relative; height:auto; padding:12px; }
 .sidebar .brand { display:flex; align-items:center; gap:12px; }
 .sidebar .brand img { width:90px; }
 .sidebar .brand > span { margin:0; }
 .sidebar-caption { display:none; }
 .sidebar nav { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:3px; margin-top:12px; }
 .sidebar nav a { font-size:11px; text-align:center; padding:8px 4px; }
 .sidebar-account { display:none; }
 .totals { gap:8px; }
 .card { padding:14px; }
}

.planning-legend { display:flex; flex-wrap:wrap; gap:16px; margin:0 0 12px; font-size:12px; color:var(--muted); }
.planning-legend span { display:inline-flex; align-items:center; gap:6px; }
.planning-legend i { width:11px; height:11px; border:1px solid #d5d9e2; border-radius:3px; background:#f8f9fb; }
.planning-legend .own { background:#e4f3e9; border-color:#a9d2b6; }
.planning-legend .assigned { background:#fbeaf2; border-color:#eac0d5; }
.planning-legend .submitted { background:#5c6472; border-color:#505866; }
.calendar-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:1px; background:var(--line); border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.calendar-label { background:#f0f1f5; padding:7px; font-weight:600; font-size:12px; text-align:center; }
.calendar-day { background:white; padding:6px; min-height:0; }
.calendar-day > header { display:flex; justify-content:space-between; align-items:center; min-height:21px; margin-bottom:4px; }
.calendar-day header small { font-size:10px; color:var(--muted); }
.calendar-outside { background:#f6f7f9; color:#adb0bb; }
.calendar-today { box-shadow:inset 0 0 0 2px #b3236d; }
.calendar-block { display:grid; grid-template-columns:max-content minmax(0,1fr); column-gap:6px; row-gap:2px; width:100%; min-height:0; padding:5px 6px; margin:0 0 4px; line-height:1.25; background:#f8f9fb; border:1px solid #e2e5ec; text-align:left; font-size:11px; font-weight:400; }
.calendar-block strong { grid-column:1; grid-row:1; }
.calendar-block span { grid-column:1 / -1; grid-row:2; margin:0; }
.calendar-block small { grid-column:2; grid-row:1; color:var(--muted); text-align:right; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.calendar-block:last-of-type { margin-bottom:0; }
.calendar-block.is-assigned { background:#fbeaf2; border-color:#eac0d5; }
.calendar-block.is-own { background:#e4f3e9; border-color:#a9d2b6; }
.calendar-block.is-submitted { background:#5c6472; border-color:#505866; color:#fff; }
.calendar-block.is-submitted small { color:#f1f3f6; }
.calendar-block:hover { border-color:var(--accent); }
.registration-dialog { padding:0; width:min(980px,94vw); max-height:92vh; border:1px solid var(--line); border-radius:10px; }
.registration-dialog::backdrop { background:#171c3266; }
.dialog-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 18px; border-bottom:1px solid var(--line); }
.dialog-toolbar button { font-size:24px; background:white; }
.registration-dialog iframe { display:block; width:100%; height:76vh; border:0; }
.dialog-content { padding:20px; }
.embedded-registration .sidebar,.embedded-registration .login-brand { display:none; }
.embedded-registration .portal-layout { display:block; }
.embedded-registration main.shell { padding:18px; }
.embedded-registration .heading form { display:none; }
.embedded-registration .timer-panel { margin-top:0; }
@media(max-width:1100px) { .calendar-day{padding:5px} .calendar-block{padding:5px;font-size:10px} }
@media(max-width:700px) {
 .calendar-grid{display:block;background:transparent;border:0}
 .calendar-label,.calendar-outside{display:none}
 .calendar-day{min-height:0;border:1px solid var(--line);border-radius:8px;margin-bottom:10px;padding:10px}
 .calendar-day:has(header:only-child){display:none}
 .calendar-block{font-size:13px;padding:8px;min-height:44px}
}

.task-notes{display:block;white-space:normal;overflow-wrap:anywhere;line-height:1.5;margin-top:.4rem;color:var(--muted,#555)}
.task-archive{margin-top:1.5rem}

.chat-badge { display:inline-flex; align-items:center; justify-content:center; min-width:17px; height:17px; padding:0 4px; margin-left:6px; border-radius:999px; background:#b3236d; color:#fff; font-size:10px; font-weight:700; line-height:1; vertical-align:middle; }
.chat-badge[hidden] { display:none; }
.assignment-panel { padding:12px 18px; border-bottom:1px solid var(--line); }
