:root {
  font-family: "Inter", system-ui, sans-serif;
  color: #192c29;
  background: #f5f7f8;
  color-scheme: light;
  --ink: #192c29;
  --muted: #536660;
  --line: #dce5e1;
  --green: #14644e;
  --dark: #102a26;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 280px; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
button {
  border: 1px solid #cbd9d3; background: #fff; border-radius: 9px;
  padding: .55rem .8rem; min-height: 42px; font-weight: 650;
}
button:hover { background: #eaf4ef; }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--green); color: white; border-color: var(--green); }
button.primary:hover:not(:disabled) { background: #0e523f; }
button.quiet { background: transparent; border-color: transparent; color: var(--green); }
button.quiet:hover { background: #eaf4ef; }
:focus-visible { outline: 3px solid #23a783; outline-offset: 3px; }
.skip { position: fixed; left: 1rem; top: 1rem; z-index: 5; clip-path: inset(50%); padding: .7rem; background: #fff; }
.skip:focus { clip-path: none; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
h1 { font-size: clamp(1.9rem, 4vw, 2.65rem); letter-spacing: -.055em; line-height: 1.1; }
h2 { font-size: 1.15rem; letter-spacing: -.025em; }
h3 { font-size: 1rem; }
p { line-height: 1.55; }
small { font-size: .82rem; color: var(--muted); overflow-wrap: anywhere; }
.shell { min-height: 100vh; display: grid; grid-template-columns: 254px minmax(0,1fr); }
.sidebar {
  background: var(--dark); color: white; padding: 1.55rem 1.1rem; display: flex; flex-direction: column;
  gap: .65rem; position: sticky; top: 0; height: 100dvh; overflow: auto;
}
.brand { display: flex; align-items: center; gap: .7rem; margin: 0 0 1.55rem .2rem; }
.brand strong, .brand small { display: block; }
.brand small { color: #b8d1c6; margin-top: .15rem; }
.logo { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: #143b2e; background: #b5edcf; font-weight: 900; letter-spacing: -.07em; flex-shrink: 0; }
.company-label { color: #bed5ca; font-size: .85rem; }
.sidebar select { color: white; background: #1b3932; border-color: #45665b; margin-bottom: .85rem; width: 100%; }
nav { display: grid; gap: .3rem; }
nav button { display: flex; align-items: center; gap: .7rem; text-align: left; color: #e2efea; background: transparent; border-color: transparent; font-size: .92rem; }
nav button:hover, nav button[aria-current] { background: #284b40; color: #fff; }
.nav-icon { width: 1.25rem; font-size: 1.2rem; color: #b5edcf; text-align: center; }
.nav-count { margin-left: auto; border-radius: 20px; min-width: 1.35rem; padding: .06rem .3rem; background: #b5edcf; color: var(--dark); text-align: center; }
.side-footer { margin-top: auto; padding: 1rem .45rem .1rem; color: #c5dbd1; font-size: .85rem; }
.local-dot, .marker { display: inline-block; border-radius: 50%; width: .55rem; height: .55rem; margin-right: .35rem; background: #73d8a7; }
.topbar { background: #fff; min-height: 65px; display: flex; justify-content: space-between; align-items: center; gap: .65rem; padding: .65rem clamp(1rem,4vw,3rem); border-bottom: 1px solid var(--line); font-weight: 650; overflow-wrap: anywhere; }
main { margin: auto; max-width: 1400px; padding: clamp(1rem,4vw,3rem); }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.65rem; }
.page-heading p { margin-top: .55rem; color: var(--muted); }
.metrics { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem; margin-bottom: 1rem; }
.metric, .panel { border: 1px solid var(--line); border-radius: 15px; padding: 1.24rem; background: #fff; min-width: 0; }
.metric { text-align: left; display: grid; gap: .48rem; font-size: .93rem; }
.metric strong { font-size: 2.2rem; line-height: 1.1; letter-spacing: -.05em; }
.metric small { font-weight: 450; }
.dashboard-grid, .two-col { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); gap: 1rem; align-items: start; }
.stack { display: grid; gap: 1rem; }
.section-head, .entry-top { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .55rem; }
.entries { list-style: none; padding: 0; margin: .65rem 0 0; }
.entry { border-bottom: 1px solid var(--line); padding: .9rem 0; min-width: 0; }
.entry:last-child { border-bottom: 0; padding-bottom: 0; }
.entry p, .entry form { margin-top: .65rem; }
.entry small { display: inline-block; margin-top: .22rem; }
.preserve { white-space: pre-wrap; }
.result { padding: .6rem .75rem; border-radius: 8px; background: #eef5f2; }
.badge { border-radius: 30px; background: #edf1f1; color: #334842; padding: .3rem .6rem; font-size: .82rem; font-weight: 650; }
.badge.afgerond, .badge.akkoord { background: #dff3e7; color: #17503a; }
.badge.goedkeuring, .badge.wachtrij { background: #f9edcf; color: #674700; }
.badge.geblokkeerd, .badge.afgewezen { background: #f8e5e1; color: #8c3827; }
.badge.bezig { background: #e5effd; color: #21496d; }
.empty { padding: 1rem; margin: .85rem 0 0; border: 1px dashed #c9d8d2; border-radius: 10px; color: var(--muted); }
.capabilities { margin-bottom: 0; }
.capabilities > div { margin-top: .7rem; padding-bottom: .65rem; border-bottom: 1px solid var(--line); }
.capabilities > div:last-child { border-bottom: 0; padding-bottom: 0; }
dt { font-weight: 650; }
dd { margin: .15rem 0 0; font-size: .9rem; line-height: 1.45; color: var(--muted); }
.marker.live { background: #25a86c; }
.marker.demo { background: #b97913; }
.marker.pending { background: #8a9d96; }
.budget { margin-top: .5rem; font-size: 1.8rem; font-weight: 750; letter-spacing: -.04em; }
.muted { color: var(--muted); margin: .35rem 0 .8rem; font-size: .9rem; }
form { display: grid; gap: .8rem; margin-top: .85rem; }
form > button { justify-self: start; }
label { display: grid; gap: .35rem; font-size: .92rem; font-weight: 650; min-width: 0; }
input, select, textarea { border: 1px solid #bfcfc8; border-radius: 8px; padding: .55rem .65rem; min-height: 42px; background: #fff; width: 100%; }
textarea { resize: vertical; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.inline label, .filter { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.inline select, .filter select { width: auto; max-width: 100%; }
.hint { color: var(--muted); font-size: .87rem; }
.demo-banner { margin-bottom: 1rem; background: #fbefcf; color: #674700; padding: .65rem .85rem; border-radius: 8px; }
.login { max-width: 465px; margin: min(13vh, 7rem) auto 1rem; margin-inline: max(1rem, calc((100% - 465px)/2)); padding: clamp(1.15rem, 4vw, 2rem); background: white; border: 1px solid var(--line); border-radius: 18px; }
.login h1 { margin: 1rem 0 .5rem; }
.login p { color: var(--muted); }
.toast { position: fixed; z-index: 4; bottom: 1rem; right: 1rem; max-width: calc(100% - 2rem); color: white; background: var(--dark); border-radius: 10px; padding: .8rem 1rem; }
.toast.error { background: #843724; }
@media (max-width: 1060px) { .dashboard-grid, .two-col { grid-template-columns: 1fr; } .two-col > :last-child { grid-row: 1; } }
@media (max-width: 760px) {
  .shell { display: block; }
  .sidebar { position: static; height: auto; padding: .8rem 1rem; gap: .5rem; }
  .brand { margin: 0 0 .2rem; }
  .sidebar select { margin-bottom: .25rem; }
  nav { grid-template-columns: repeat(3,minmax(0,1fr)); }
  nav button { padding: .35rem; min-width: 0; font-size: .83rem; gap: .28rem; overflow-wrap: anywhere; }
  .nav-icon { display: none; }
  .side-footer { padding: .3rem 0 0; }
  .topbar { min-height: 50px; }
  .metrics { gap: .55rem; }
  .metric, .panel { padding: .85rem; }
  .page-heading { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 410px) {
  nav { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .metrics { grid-template-columns: 1fr; }
  .metric { grid-template-columns: 1fr auto; }
  .metric small { grid-column: 1/-1; }
}

#account:not(:empty) { display: block; margin-top: .15rem; }

.seo-actions { margin-top: .65rem; }

.planning-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .65rem; }
.entry-top > .quiet { text-align: left; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 410px) { .planning-fields { grid-template-columns: 1fr; } }

.task-notes { margin-top: .8rem; }
.task-notes summary { cursor: pointer; font-weight: 650; color: var(--green); }

.conversation { max-width: 52rem; }
.conversation-entries { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 1rem; }
.conversation-entries > li { display: grid; gap: .45rem; }
.conversation-user { justify-self: end; max-width: 85%; padding: .65rem .85rem; background: #e5f4ed; border-radius: 12px; }
.conversation-reply { justify-self: start; max-width: 93%; padding: .65rem .85rem; border-radius: 12px; background: #f1f5f4; }
.conversation-reply ul { margin: .35rem 0; padding-left: 1.25rem; }
.conversation-proposal { margin: 1rem 0; border: 1px solid #b8dacb; border-radius: 12px; padding: .8rem; }
.conversation .hint { margin-top: .5rem; }

.model-toggle { display: flex; align-items: center; gap: .55rem; }
.model-toggle input { width: 1.1rem; min-height: auto; }
.conversation-reply > small { display: block; margin-bottom: .3rem; }

.task-assignee { display: block; }
.task-toolbar button[aria-pressed=true] { color: var(--green); border-color: var(--green); background: #eaf6ef; }
.export-link { color: var(--green); font-weight: 650; display: inline-flex; align-items: center; min-height: 42px; padding: .35rem; }
.task-board { margin-top: 1rem; display: grid; grid-template-columns: repeat(auto-fit,minmax(145px,1fr)); gap: .65rem; }
.board-column { min-width: 0; background: #f3f7f5; border: 1px solid #e0e9e3; border-radius: 10px; padding: .7rem; }
.board-column h3 { margin: 0 0 .65rem; display: flex; gap: .3rem; justify-content: space-between; }
.board-column ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.board-column button { width: 100%; text-align: left; display: grid; gap: .35rem; overflow-wrap: anywhere; min-width: 0; }
.board-column .badge { justify-self: start; }

.inbox-group { margin-top: .85rem; border-top: 1px solid #e1e9e4; padding-top: .8rem; }
.inbox-group h3 { display: flex; align-items: center; gap: .5rem; }
.inbox-group h3 small { border-radius: 1rem; background: #edf5ef; padding: .1rem .45rem; }
.inbox-group .muted { margin-bottom: .1rem; }

.task-checklist { margin: .8rem 0; border: 1px solid #dae7df; border-radius: 9px; padding: .7rem; }
.task-checklist h4 { margin: 0; }
.task-checklist ol { padding-left: 1.4rem; margin: .45rem 0 0; }
.task-checklist li + li { margin-top: .35rem; }
.task-checklist form { display: inline-flex; margin: .15rem 0 .15rem .5rem; }
.task-checklist button[aria-pressed=true] { background: #eaf6ef; color: var(--green); }
