:root { color-scheme: light; font-family: system-ui, sans-serif; color: #18312f; background: #f3f3ed; }
* { box-sizing: border-box; }
body { margin: 0; padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left)); }
.app-lock { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 20px; background: #173c39; }
.app-lock-card { width: min(340px, 100%); padding: 24px; border-radius: 18px; background: #fff; box-shadow: 0 16px 50px rgb(0 0 0 / 30%); }
.app-lock-card input { width: 100%; margin: 10px 0; padding: 14px; border: 1px solid #b4c4b9; border-radius: 10px; text-align: center; letter-spacing: .45em; font-size: 1.35rem; }
.app-lock-card button { width: 100%; }
.app-lock-card small { display: block; margin-top: 12px; color: #50645c; line-height: 1.4; }
.app-lock-card [role="alert"] { min-height: 1.4em; color: #8f2f1c; }
body.locked > :not(.app-lock) { visibility: hidden; }
header, .section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin: 6px 0 20px; }
h2 { font-size: 1.4rem; }
h3 { margin-top: 0; }
p { line-height: 1.55; }
.eyebrow { font-size: .75rem; letter-spacing: .12em; color: #506e65; font-weight: 700; }
nav { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 28px; }
button, .action, select, input, textarea { font: inherit; }
button, .action { min-height: 44px; border: 1px solid #b4c4b9; border-radius: 10px; padding: 10px 14px; background: #fff; color: #173c39; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
button[aria-pressed="true"], .action { background: #173c39; color: #fff; border-color: #173c39; }
button:disabled { opacity: .45; cursor: default; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid #af6700; outline-offset: 3px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.task-panel { margin-top: 18px; }
.panel-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.panel-actions > * { flex: 0 1 auto; }
#task-list { padding-left: 24px; }
#task-list li { padding: 12px 0; border-bottom: 1px solid #d6ded4; overflow-wrap: anywhere; }
#task-list p { margin-bottom: 0; font-size: .85rem; }
#hub-frame { width: 100%; height: 80dvh; min-height: 560px; border: 1px solid #b4c4b9; border-radius: 12px; background: white; margin-top: 12px; }
#workhub-frame { width: 100%; height: 80dvh; min-height: 560px; border: 1px solid #b4c4b9; border-radius: 12px; margin-top: 12px; }
/* Wat nu */
.nu-card { margin: 0 0 18px; padding: 18px; border-radius: 18px; background: linear-gradient(135deg, #173c39, #24564f); color: #f4f8f2; box-shadow: 0 10px 28px rgb(23 60 57 / 25%); }
.nu-card .eyebrow { color: #b9d8c9; }
.nu-head { display: flex; align-items: center; gap: 10px; }
.nu-head #nu-done-count { flex: 1; font-size: .85rem; color: #d7ecc8; }
.nu-head button { min-height: 36px; min-width: 36px; padding: 4px 10px; background: transparent; color: #f4f8f2; border-color: rgb(255 255 255 / 35%); }
#nu-task { font-size: clamp(1.3rem, 3.2vw, 1.9rem); margin: 6px 0 4px; line-height: 1.25; }
#nu-meta { margin: 0 0 12px; color: #cfe3da; }
#nu-meta.late { color: #ffd38a; font-weight: 600; }
.nu-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.nu-card button { min-height: 48px; padding: 8px 16px; border-radius: 12px; font-size: 1rem; }
.nu-card .nu-primary { background: #f4c96b; color: #1d2b28; border-color: #f4c96b; font-weight: 700; padding: 8px 22px; }
.nu-card .nu-actions button:not(.nu-primary) { background: rgb(255 255 255 / 12%); color: #fff; border-color: rgb(255 255 255 / 30%); }
.nu-durations { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; color: #cfe3da; }
.nu-durations button { min-height: 36px !important; min-width: 46px; padding: 4px 10px !important; background: transparent; color: #fff; border-color: rgb(255 255 255 / 30%); }
.nu-durations button[aria-pressed="true"] { background: rgb(255 255 255 / 22%); border-color: #fff; }
.nu-durations .nu-fit { margin-left: auto; border-color: #f4c96b; color: #f4c96b; }
.nu-timer output { display: block; font-size: clamp(3rem, 10vw, 5rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: .02em; margin: 4px 0; }
.nu-bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / 15%); overflow: hidden; margin-bottom: 12px; }
.nu-bar span { display: block; height: 100%; width: 0; background: #f4c96b; transition: width 1s linear; }
.nu-event { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; background: rgb(255 255 255 / 10%); }
.nu-event:empty { display: none; }
.nu-event.soon { background: #f4c96b; color: #1d2b28; font-weight: 600; }
#nu-status { margin: 8px 0 0; font-size: .85rem; color: #cfe3da; }
#nu-status:empty { display: none; }
.nu-card.cheer { animation: cheer .7s ease; }
@keyframes cheer { 0% { transform: scale(1); } 30% { transform: scale(1.025); box-shadow: 0 0 0 6px rgb(244 201 107 / 45%); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .nu-card.cheer { animation: none; } .nu-bar span { transition: none; } }
#focus-pill { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: max(12px, env(safe-area-inset-bottom)); min-height: 44px; padding: 8px 18px; border-radius: 99px; background: #173c39; color: #fff; border: 0; box-shadow: 0 6px 18px rgb(0 0 0 / 25%); font-variant-numeric: tabular-nums; max-width: calc(100% - 32px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#toast { position: fixed; z-index: 31; left: 50%; transform: translateX(-50%); bottom: max(68px, calc(env(safe-area-inset-bottom) + 60px)); display: flex; align-items: center; gap: 12px; max-width: min(560px, calc(100% - 32px)); padding: 10px 12px 10px 16px; border-radius: 14px; background: #1d2b28; color: #fff; box-shadow: 0 10px 28px rgb(0 0 0 / 30%); }
#toast button { min-height: 40px; padding: 6px 14px; background: #f4c96b; color: #1d2b28; border: 0; border-radius: 10px; font-weight: 700; white-space: nowrap; }
/* Zoeken en slim */
.note-search { position: relative; margin-bottom: 10px; }
#note-search { width: 100%; min-height: 48px; padding: 10px 14px; font-size: 1.05rem; border-radius: 12px; }
#note-results { position: absolute; z-index: 6; left: 0; right: 0; top: 52px; max-height: 60vh; overflow: auto; padding: 6px; border: 1px solid #b4c4b9; border-radius: 12px; background: #fff; box-shadow: 0 10px 28px rgb(23 60 57 / 20%); display: grid; gap: 4px; }
.note-hit { display: grid; gap: 2px; justify-items: start; justify-content: stretch; text-align: left; width: 100%; min-height: 48px; padding: 8px 12px; border-radius: 10px; background: #f6f9f5; border: 1px solid transparent; }
.note-hit:hover, .note-hit:focus { border-color: #8ca49d; }
.note-hit small { color: #5d736d; }
.note-hit span { font-size: .85rem; color: #33504a; }
.smart-options { margin-top: 6px; }
.smart-empty { color: #5d736d; font-size: .9rem; margin: 4px 0 8px; }
#vangnet h4 { margin: 12px 0 4px; }
#version-list { flex: 1; min-width: 0; min-height: 44px; }
.trash-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px solid #e1e8e3; }
.trash-row span { flex: 1 1 220px; }
#agenda-list { margin-top: 10px; display: grid; gap: 10px; }
.agenda-day h4 { margin: 0 0 4px; font-size: .9rem; color: #4d6660; text-transform: capitalize; }
.agenda-item { display: grid; grid-template-columns: 92px 1fr; gap: 8px; padding: 8px 10px; border: 1px solid #d4ddd6; border-radius: 10px; background: #fff; }
.agenda-item time { font-variant-numeric: tabular-nums; color: #173c39; font-weight: 600; }
.agenda-item small { display: block; color: #5d736d; }
.agenda-item.now { border-color: #af6700; box-shadow: 0 0 0 2px rgb(175 103 0 / 15%); }
#calendar-frame { width: 100%; height: 75dvh; min-height: 520px; border: 0; margin-top: 12px; }
#calendar-name, #calendar-name-private, #calendar-id, #calendar-id-private { width: 100%; padding: 10px; }
.ai-panel { min-height: 75dvh; }
#ai-provider { min-height: 44px; padding: 8px; }
#ai-answer { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.6; min-height: 180px; }
#writing-ai-dialog, #task-dialog { width: min(520px, calc(100% - 24px)); max-height: 85dvh; overflow: auto; padding: 18px; border: 1px solid #b4c4b9; border-radius: 16px; color: #18312f; background: #fff; }
#writing-ai-dialog::backdrop, #task-dialog::backdrop { background: rgb(24 49 47 / 25%); }
#writing-ai-heading { margin: 0; font-size: 1.2rem; }
#writing-ai-answer { white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; line-height: 1.5; max-height: 28dvh; overflow: auto; }
.dialog-help { font-size: .85rem; color: #50645c; }
#writing-ai-dialog.recognizing { width: min(680px, calc(100% - 24px)); }
#writing-ai-selection { display: block; max-width: 100%; max-height: 28dvh; width: auto; height: auto; margin: 0 auto 8px; border: 1px solid #b4c4b9; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#writing-ai-preview { display: block; max-width: 100%; max-height: 18dvh; border: 1px solid #b4c4b9; margin: 8px 0; }
article, aside { background: #fff; border: 1px solid #d6ded4; border-radius: 16px; padding: 22px; }
section > aside { margin-top: 22px; background: #e9efdf; }
#save-status { font-size: .85rem; max-width: 320px; }
.autosave-state { display: flex; align-items: center; gap: 8px; color: #506e65; font-size: .85rem; }
.autosave-state button { min-height: 36px; padding: 7px 11px; }
#error { background: #ffe1da; border: 1px solid #a33c27; color: #6d2415; padding: 14px; border-radius: 10px; margin-bottom: 18px; white-space: pre-wrap; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.document-list { padding: 12px; margin-bottom: 12px; background: #f8faf7; border: 1px solid #d6ded4; border-radius: 12px; }
.document-pickers { display: grid; grid-template-columns: minmax(150px, .65fr) minmax(220px, 1fr) auto; gap: 8px; align-items: end; }
.document-pickers select { display: block; width: 100%; min-height: 44px; margin-top: 4px; padding: 8px; border: 1px solid #b4c4b9; border-radius: 8px; background: #fff; color: inherit; }
.document-pickers button { min-height: 44px; }
.document-list p { font-size: .85rem; color: #50645c; }
.document-list #current-context { margin: 8px 0 0; font-weight: 700; }
.danger-button { border-color: #b85c4a; color: #7b2e20; background: #fff7f5; }
.danger-button:disabled { border-color: #c8cfcc; color: #78827e; background: #f2f4f2; }
.workmap-menu { background: #fff; border: 1px solid #d6ded4; border-radius: 12px; padding: 0 14px; margin: 10px 0; }
.folder-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: 8px; padding: 0 0 14px; }
.folder-grid button { width: 100%; }
.backup-actions { display: grid; grid-template-columns: minmax(180px, .45fr) minmax(280px, 1fr); gap: 10px; align-items: start; }
.backup-actions > button { width: 100%; }
#drive-settings { border: 1px solid #d6ded4; border-radius: 10px; padding: 0 12px; background: #f8faf7; }
#drive-client-id, #drive-backups { width: 100%; min-height: 44px; margin: 6px 0 10px; padding: 8px; border: 1px solid #b4c4b9; border-radius: 8px; }
.drive-actions { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.drive-actions button, .drive-actions .action { flex: 1 1 150px; }
#drive-status { overflow-wrap: anywhere; }
.pdf-library-actions { display: grid; grid-template-columns: minmax(180px, 1fr) auto auto; gap: 8px; padding-bottom: 8px; }
.pdf-library-actions select { min-height: 44px; padding: 8px; border: 1px solid #b4c4b9; border-radius: 8px; background: #fff; }
.editor { min-width: 0; }
label { display: block; font-size: .9rem; }
#title, textarea { width: 100%; padding: 12px; border: 1px solid #b4c4b9; background: #fff; color: inherit; border-radius: 10px; margin: 6px 0 14px; }
.measurement-sheet { background: #fff; border: 1px solid #b4c4b9; border-radius: 14px; padding: 18px; }
.measurement-sheet h3 { color: #173c39; margin-bottom: 4px; }
.measurement-sheet h4 { color: #fff; background: #245b87; padding: 8px 10px; margin: 20px 0 10px; font-size: .9rem; text-transform: uppercase; }
.measurement-sheet .measure-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.measurement-sheet input[type="text"], .measurement-sheet input[type="date"], .measurement-sheet input[type="time"],
.measurement-sheet input[type="number"], .measurement-sheet textarea { width: 100%; min-height: 42px; padding: 8px; border: 1px solid #b4c4b9; border-radius: 7px; background: #fff; color: inherit; }
.measurement-sheet textarea { min-height: 180px; }
.measurement-sheet .check-row { display: flex; flex-wrap: wrap; gap: 12px; padding: 8px 0; }
.measurement-sheet .check-row label { display: flex; align-items: center; gap: 6px; }
.measurement-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.measurement-sheet table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: .82rem; }
.measurement-sheet th, .measurement-sheet td { border: 1px solid #c9d2d8; padding: 6px; text-align: left; vertical-align: top; }
.measurement-sheet th { background: #2d6898; color: #fff; }
.measurement-sheet td:first-child { background: #f4dfd0; font-weight: 700; }
.measurement-sheet table input { min-width: 90px; margin: 0; }
.measurement-sheet .not-applicable { background: #e0e0e0; color: #65706f; text-align: center; font-style: italic; }
.measurement-help { color: #50645c; font-size: .85rem; }
.tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }
.drawing-toolbar { display: grid; gap: 6px; margin: 6px 0; padding: 7px; border: 1px solid #c8d3ce; border-radius: 14px; background: #f8faf7; box-shadow: 0 4px 14px rgb(23 60 57 / 8%); }
.tool-strip, .edit-strip { display: flex; gap: 5px; align-items: center; overflow-x: auto; padding: 1px 0 4px; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.tool-strip button, .edit-strip button { flex: 0 0 auto; }
.icon-tool { width: 58px; min-width: 58px; height: 56px; min-height: 56px; padding: 4px 3px; border-radius: 11px; flex-direction: column; gap: 1px; }
.icon-tool span { font-size: 1.25rem; line-height: 1; font-weight: 750; }
.icon-tool small { font-size: .61rem; line-height: 1; white-space: nowrap; }
.icon-tool.danger-tool { border-color: #d9a69b; color: #7b2e20; }
.tool-options { display: flex; gap: 7px; align-items: center; min-height: 44px; overflow-x: auto; padding: 2px 0; -webkit-overflow-scrolling: touch; }
.tool-options label { flex: 0 0 auto; display: flex; align-items: center; gap: 5px; font-size: .75rem; font-weight: 650; white-space: nowrap; }
.tool-options .color-tool span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.tool-options input[type="color"] { width: 40px; height: 40px; }
.width-tool input { width: clamp(90px, 18vw, 150px); }
.eraser-tool select { min-height: 38px; padding: 5px; border: 1px solid #b4c4b9; border-radius: 8px; background: #fff; }
.color-swatches { display: flex; gap: 4px; flex: 0 0 auto; }
.color-swatches button { width: 30px; height: 30px; min-height: 30px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: var(--swatch); box-shadow: 0 0 0 1px #8ca49d; }
.color-swatches button[aria-pressed="true"] { box-shadow: 0 0 0 3px #173c39; }
.shape-palette { display: flex; gap: 5px; overflow-x: auto; padding: 5px; border-radius: 10px; background: #e9efdf; }
.shape-palette button { flex: 0 0 auto; width: 42px; min-width: 42px; height: 40px; min-height: 40px; padding: 4px; font-size: 1.15rem; }
.edit-strip { border-top: 1px solid #d6ded4; padding-top: 6px; }
.edit-strip button { min-height: 36px; padding: 6px 10px; }
.edit-strip output { flex: 0 0 auto; min-width: 46px; text-align: center; font-size: .78rem; }
.compact-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 4px 0 14px; }
.compact-actions button, .compact-actions .circle-file { width: 66px; height: 66px; min-height: 66px; padding: 6px; border: 1px solid #b4c4b9; border-radius: 50%; background: #fff; color: #173c39; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; cursor: pointer; text-align: center; }
.compact-actions span { font-weight: 800; font-size: 1rem; line-height: 1; }
.compact-actions small { font-size: .65rem; line-height: 1.05; }
.writing-actions { display: flex; flex-wrap: nowrap; gap: 8px; max-width: 780px; margin: 6px 0 10px; padding: 0 0 4px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: thin; }
.writing-actions button, .writing-actions .circle-file { flex: 0 0 auto; width: clamp(46px, 9.6vw, 78px); max-width: 78px; height: auto; min-height: 0; aspect-ratio: 1 / 1; padding: 4px; overflow: hidden; }
.writing-actions span { font-size: clamp(.72rem, 1.5vw, .95rem); }
.writing-actions small { font-size: clamp(.5rem, 1.05vw, .64rem); overflow-wrap: anywhere; }
.circle-file input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tools label { display: flex; align-items: center; gap: 6px; }
.tools select { padding: 8px; min-height: 44px; }
input[type="color"] { width: 44px; height: 44px; border: 0; background: transparent; }
input[type="checkbox"] { width: 20px; height: 20px; vertical-align: middle; }
.finger-option { margin: 12px 0; }
#drawing-help { color: #50645c; font-size: .85rem; }
#surface { position: relative; height: 85dvh; min-height: 450px; border: 1px solid #b4c4b9; border-radius: 12px; overflow: hidden; background: white; margin-bottom: 16px; }
#drawing, #saved-drawing { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
#saved-drawing { pointer-events: none; }
#drawing { touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#quick-tools { position: absolute; z-index: 4; width: min(330px, calc(100% - 20px)); padding: 10px; border: 1px solid #8ca49d; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgb(23 60 57 / 24%); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
#quick-tools[hidden] { display: none; }
#quick-tools button { min-height: 40px; padding: 7px 10px; }
#quick-tools label { display: flex; align-items: center; gap: 4px; }
#quick-tools .quick-task { flex: 1 1 140px; }
.quick-task { background: #173c39; color: #fff; border-color: #173c39; }
#selection-menu { position: absolute; z-index: 4; display: flex; gap: 6px; padding: 6px; border: 1px solid #8ca49d; border-radius: 12px; background: #fff; box-shadow: 0 8px 22px rgb(23 60 57 / 22%); }
#selection-menu button { min-height: 40px; padding: 6px 12px; }
#writing { user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
#writing input, #writing textarea, #writing select { user-select: text; -webkit-user-select: text; -webkit-touch-callout: default; }
summary { cursor: pointer; min-height: 44px; padding: 12px 0; }
#input-diagnostics { display: block; padding: 10px; background: #e9efdf; font-size: .85rem; }
#stroke-diagnostics { white-space: pre-wrap; overflow-wrap: anywhere; font: .85rem/1.5 system-ui, sans-serif; }
body.writing-focus { padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left)); }
.writing-focus > header, .writing-focus > nav { display: none; }
.writing-focus #writing { height: calc(100dvh - 24px); display: flex; flex-direction: column; }
.writing-focus .section-heading h2, .writing-focus .title-label, .writing-focus #title,
.writing-focus #drawing-help, .writing-focus #typed-notes { display: none; }
.writing-focus .workmap-menu, .writing-focus #pdf-status, .writing-focus .document-list { display: none; }
.writing-focus .writing-actions { max-width: none; gap: 6px; margin: 0 0 6px; flex-shrink: 0; }
.writing-focus .writing-actions button, .writing-focus .writing-actions .circle-file { width: clamp(46px, 7.4vw, 54px); max-width: 54px; }
.writing-focus #drawing-tools { margin: 0 0 4px; padding: 5px; flex-shrink: 0; }
.writing-focus #drawing-tools .tool-options, .writing-focus #drawing-tools .edit-strip { display: none; }
.writing-focus #drawing-tools[data-tool="eraser"] .tool-options { display: flex; min-height: 0; }
.writing-focus #drawing-tools[data-tool="eraser"] .tool-options > :not(.eraser-tool) { display: none; }
.writing-focus #input-options { display: none; }
.writing-focus .workspace { flex: 1; min-height: 0; }
.writing-focus .editor { display: flex; flex-direction: column; min-height: 0; }
.writing-focus #drawing-editor { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.writing-focus #surface { flex: 1; height: auto; min-height: 120px; margin: 4px 0 0; }
.writing-focus #input-options[open] { max-height: 28vh; overflow: auto; flex-shrink: 0; }
.writing-focus #input-options:not([open]) summary { min-height: 32px; padding: 6px 0; }
.writing-focus #update-status { position: fixed; bottom: 8px; right: 8px; z-index: 2; max-width: 360px; padding: 10px; font-size: .8rem; }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  body { padding: 14px; }
  .workspace { grid-template-columns: 1fr; }
  .document-pickers { grid-template-columns: 1fr 1fr; }
  .document-pickers .danger-button { grid-column: 1 / -1; }
  .backup-actions { grid-template-columns: 1fr; }
  .pdf-library-actions { grid-template-columns: 1fr; }
  #surface { height: 85dvh; }
  .measurement-sheet { padding: 12px; }
  .writing-actions { gap: 5px; }
  .icon-tool { width: 52px; min-width: 52px; }
  .tool-options { gap: 5px; }
}
@media (max-width: 520px) {
  .writing-actions { gap: 4px; }
  .writing-actions span { font-size: .78rem; }
  .writing-actions small { font-size: .48rem; }
}
#task-form { display: grid; gap: 8px; }
#task-form textarea, #task-form select, #task-form input[type="date"] { width: 100%; font: inherit; }
#wh-docs { width: 100%; margin: 6px 0; }

/* Prioriteiten (Eisenhower) */
.hub-duo { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 18px; }
.hub-duo .task-panel { margin-top: 0; }
@media (min-width: 1000px) { .hub-duo { grid-template-columns: 1fr 1fr; } }
.prio-grid { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 10px; }
@media (min-width: 760px) { .prio-grid { grid-template-columns: repeat(3, 1fr); } }
.prio { background: rgb(255 255 255 / 10%); border-radius: 14px; padding: 12px; min-width: 0; }
.prio h3 { margin: 0 0 8px; font-size: 1.05rem; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px; }
.prio h3 small { font-weight: 400; font-size: .78rem; color: #cfe3da; }
.prio-urgent { box-shadow: inset 4px 0 0 #ff8a65; }
.prio-belangrijk { box-shadow: inset 4px 0 0 #f4c96b; }
.prio-wel { box-shadow: inset 4px 0 0 #8fd3b0; }
.prio ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.prio li { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 4px 6px; border-radius: 10px; background: rgb(0 0 0 / 12%); }
.prio li.gone { opacity: 0; transform: translateX(16px); transition: opacity .25s, transform .25s; }
.prio li .prio-check { flex: 0 0 32px; width: 32px; min-width: 32px; height: 32px; min-height: 32px; padding: 0; border-radius: 9px; border: 2px solid rgb(255 255 255 / 70%); background: transparent; color: #fff; font-size: 1rem; }
.prio li .prio-check:hover { background: rgb(255 255 255 / 15%); }
.prio li .prio-title { flex: 1; min-width: 0; overflow-wrap: anywhere; line-height: 1.3; }
.prio li .prio-title small { display: block; color: #ffd38a; font-size: .78rem; }
.prio li .prio-plan { flex: 0 0 auto; min-height: 32px; padding: 2px 8px; border-radius: 8px; font-size: .8rem; color: #1d2b28; background: #f4c96b; text-decoration: none; }
.prio .prio-leeg { color: #cfe3da; font-size: .85rem; background: none; }
.prio-wacht { margin: 10px 0 0; font-size: .85rem; color: #cfe3da; }
#nu-status { flex: 1; font-size: .85rem; color: #cfe3da; }
#agenda-list { max-height: 260px; overflow: auto; }
.prio li.prio-meer { background: none; min-height: 0; padding: 0; }
.prio .prio-more { width: 100%; min-height: 36px; padding: 4px 10px; border-radius: 10px; background: transparent; color: #fff; border: 1px dashed rgb(255 255 255 / 40%); font-size: .85rem; }
