:root{--bg:#f8f8f5;--ink:#17251e;--muted:#7d8980;--line:#e4e9e3;--green:#266e4a;--mint:#eaf5ec}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,sans-serif}.shell{max-width:780px;margin:auto;padding:0 20px 110px}header{height:76px;display:flex;align-items:center;justify-content:space-between}.logo{font-size:25px;font-weight:850;letter-spacing:-1.6px}.logo span{color:var(--green)}.logo small{font-size:11px;color:var(--muted);margin-left:7px;letter-spacing:0}.icon{border:0;background:none;font-size:23px;cursor:pointer}.kicker{color:var(--green);font-size:11px;font-weight:800;letter-spacing:1.8px;margin:22px 0 10px}h1{font-size:clamp(35px,8vw,58px);letter-spacing:-2px;line-height:1.08;margin:0 0 25px}h1 em{font-style:normal;color:var(--green)}h2{font-size:21px;letter-spacing:-.6px;margin:0}.composer,.note,.login{background:white;border:1px solid var(--line);border-radius:22px;padding:18px;box-shadow:0 4px 18px #18291a08}textarea,input{font:inherit;color:var(--ink);outline:none}#body{width:100%;min-height:105px;border:0;resize:vertical;font-size:17px;line-height:1.5}.tools,.composerFooter,.heading,.notehead,.notefoot{display:flex;gap:8px;align-items:center;justify-content:space-between;flex-wrap:wrap}.tools{border-top:1px solid var(--line);padding-top:12px}.tools button,.smallbtn,.filters button{border:0;border-radius:11px;padding:10px 12px;background:#f0f4f0;color:var(--ink);font-weight:650;cursor:pointer}.tools .ai{background:var(--mint);color:var(--green)}.primary{border:0;border-radius:12px;background:var(--green);color:white;padding:12px 19px;font-weight:750;cursor:pointer}.composerFooter{margin-top:14px}#status{font-size:12px;color:var(--muted);flex:1}.hidden{display:none!important}#aiFields{border-top:1px solid var(--line);margin-top:14px;padding-top:10px}label{display:block;font-size:12px;font-weight:750;margin:12px 0}label input,label textarea,.search,.login input{display:block;width:100%;border:1px solid var(--line);border-radius:11px;background:white;padding:12px;margin-top:7px;font-weight:400}#preview{max-width:100%;max-height:240px;border-radius:12px;object-fit:contain}#previewWrap{padding:10px 0}#library{margin-top:34px}.heading{margin-bottom:12px}#counter{color:var(--muted);font-size:12px}.search{margin:0 0 12px}.filters{display:flex;gap:8px;margin-bottom:18px}.filters button.active{background:var(--green);color:white}.note{margin:11px 0;padding:17px}.notehead{color:var(--muted);font-size:12px}.note h3{font-size:17px;letter-spacing:-.3px;margin:12px 0 6px}.note p{line-height:1.5;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.note img{width:100%;max-height:350px;object-fit:contain;border-radius:12px;background:#f3f5f2}.note a{color:var(--green);word-break:break-all;font-size:13px}.notefoot{margin-top:13px;border-top:1px solid var(--line);padding-top:12px}.tag{font-size:11px;color:var(--green);background:var(--mint);padding:4px 7px;border-radius:20px;display:inline-block;margin:2px}.notefoot button{border:0;background:none;font-size:17px;cursor:pointer;color:var(--ink);padding:5px}.bottom{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;background:#fffffff2;border-top:1px solid var(--line);padding:8px 8px calc(8px + env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.bottom button{min-width:100px;flex:0 1 200px;border:0;background:none;color:var(--muted);font-size:11px;font-weight:650;padding:5px;cursor:pointer}.bottom button b{display:block;font-size:23px;font-weight:400;margin-bottom:3px}.bottom button.selected{color:var(--green)}.toast{position:fixed;bottom:88px;left:50%;transform:translateX(-50%);background:#183a27;color:white;padding:12px 18px;border-radius:12px;z-index:10;max-width:90vw}.login{margin-top:60px}.login p,.error,#settings p{color:var(--muted)}.login input{margin-bottom:10px}.error{color:#a32a2a!important}@media(min-width:750px){.shell{padding:0 28px 120px}.composer{padding:24px}.tools button{padding:12px 17px}}@media(max-width:380px){.tools{gap:5px}.tools button{padding:9px 7px;font-size:12px}}

.secondaryAction{background:transparent!important;border:1px solid var(--line)!important;color:var(--muted)!important}.secondaryAction:hover{background:#f0f4f0!important}.composerFooter{gap:8px}.composerFooter #status{min-width:100%;flex-basis:100%}@media(max-width:380px){.composerFooter button{font-size:12px;padding:10px 9px}}

/* v3.2: one capture surface, three clear actions */
.tools{justify-content:flex-start;gap:10px}.tools button{flex:1;min-height:45px;font-size:14px}.tools #analyzeBtn:not(.hidden){flex-basis:100%;background:transparent;border:1px dashed var(--line);color:var(--muted)}#body{min-height:120px}.composer:focus-within{border-color:#bedac5}@media(max-width:480px){.shell{padding-left:14px;padding-right:14px}.composer{border-radius:19px;padding:15px}.tools button{padding:12px 6px}.composerFooter .primary{margin-left:auto}}
/* v3.8: niet-blokkerende notificaties en eigen bevestigingsvenster */
.toast{display:flex;align-items:center;gap:11px;min-width:min(330px,calc(100vw - 28px));max-width:min(470px,calc(100vw - 28px));padding:13px 14px;bottom:calc(82px + env(safe-area-inset-bottom));box-shadow:0 14px 42px #132a1c35;z-index:1100;line-height:1.4;font-size:14px;animation:toast-in .18s ease-out}.toast-success{background:#185d3c}.toast-error{background:#8b2d2d}.toast-info{background:#253c32}.toast-icon{display:grid;place-items:center;width:23px;height:23px;flex:0 0 23px;border-radius:50%;background:#ffffff2b;font-weight:800}.toast>span:nth-child(2){flex:1;overflow-wrap:anywhere}.toast-close{background:none;border:0;color:white;font-size:22px;cursor:pointer;padding:2px 4px}.confirm-layer{position:fixed;inset:0;background:#12261b80;z-index:1200;display:grid;place-items:center;padding:20px;backdrop-filter:blur(4px)}.confirm-card{background:white;border-radius:20px;padding:24px;width:min(100%,390px);box-shadow:0 20px 70px #142a2040}.confirm-card h2{margin:0 0 10px}.confirm-card p{line-height:1.5;color:#58655d;margin:0 0 22px}.confirm-actions{display:flex;justify-content:flex-end;gap:10px}@keyframes toast-in{from{opacity:0;transform:translate(-50%,12px)}to{opacity:1;transform:translate(-50%,0)}}@media(prefers-reduced-motion:reduce){.toast{animation:none}}
