:root{color-scheme:light;--accent:#ff7a45;--ink:#0d1b2a;--stage:#1a1f2b;--line:#dbe1e8;--muted:#8fa6b8;--glow:0 0 10px #ff7a4566}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;background:var(--stage);color:#24364a;font-family:system-ui,-apple-system,Roboto,"Segoe UI",sans-serif}button,input,select{font:inherit}button{cursor:pointer;touch-action:manipulation}.topbar{height:64px;min-height:64px;padding:0 12px;display:flex;align-items:center;gap:12px;background:#0d1b2a;box-shadow:0 3px 14px rgba(7,20,33,.4);position:relative;z-index:12}.square{width:40px;height:40px;flex:0 0 40px;border:1px solid #294252;border-radius:9px;background:transparent;display:grid;place-items:center;padding:0}.logo svg{display:block;width:24px;height:24px}.menu{color:#00e5ff;font-size:22px;line-height:1;box-shadow:0 0 8px rgba(0,229,255,.22)}.mode-wrap{display:flex;justify-content:center;align-items:center;min-width:0;flex:1;height:64px}.mode-pill{height:51px;display:flex;position:relative;width:min(100%,600px);background:#0a1622;border:1px solid #21384f;border-radius:999px;padding:4px;overflow:hidden}.pill-thumb{display:none}.mode{z-index:1;flex:1;min-width:0;height:41px;border:2px solid transparent;border-radius:999px;background:transparent;color:#8fa6b8;font-size:11px;font-weight:650;letter-spacing:.04em;display:flex;align-items:center;justify-content:center;gap:6px;padding:0 8px;white-space:nowrap}.mode svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.mode.active{color:#fff;background:linear-gradient(110deg,#163447,#0d1b2a);border-color:var(--accent);box-shadow:var(--glow)}.toolbar{height:44px;min-height:44px;display:flex;align-items:center;gap:6px;padding:4px 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;background:#fff4ef;border-bottom:2px solid var(--accent);white-space:nowrap}.toolbar::-webkit-scrollbar{display:none}.tool,.toolbar select,.toolbar input[type=color]{height:36px;min-width:36px;border:0;border-radius:8px;background:rgba(255,255,255,.78);color:#334155;font-size:15px;flex:0 0 auto}.tool{width:44px;min-width:44px;padding:0 8px}.tool:hover,.toolbar select:hover,.toolbar input[type=color]:hover{background:#fff}.tool:active,.tool.active,.tool:focus-visible{background:#fff;outline:1px solid #ffb091;color:#27384b}.toolbar select{padding:0 8px;min-width:68px;font-size:12px}.toolbar input[type=color]{width:44px;min-width:44px;padding:6px}.background-control{height:36px;display:flex;align-items:center;gap:6px;padding:0 5px;color:#334155;font-size:11px;flex:0 0 auto}.background-control label{white-space:nowrap}.background-control input{width:72px;min-width:45px;accent-color:var(--accent)}.background-control output{width:34px;text-align:right;color:#5c5c5c;font-variant-numeric:tabular-nums}#workspace{position:relative;flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:16px 10px 22px;scroll-behavior:smooth;touch-action:pan-y;background:#1a1f2b}body{display:flex;flex-direction:column}#pages{display:flex;flex-direction:column;align-items:center;gap:18px}.pdf-page{position:relative;background:#fff;box-shadow:0 8px 25px #0008;overflow:hidden;flex:none;touch-action:pan-y}.page-background{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.text-layer{position:absolute;inset:0;overflow:hidden}.text-block{position:absolute;white-space:pre;min-width:1px;min-height:1em;line-height:1.08;outline:none;border:0;padding:0;margin:0;color:#111;background:transparent;transform-origin:top left;overflow:visible;caret-color:#ff7a45}.text-block:focus{outline:1px dashed #ff7a45;background:#ff7a4510}.text-block[contenteditable=true]{cursor:text}.status-bar{height:32px;min-height:32px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0 12px;background:#fff;border-top:1px solid #e8e9eb;color:#5c5c5c;font-size:11px;z-index:5}.file-label{font-size:11px;color:#5c5c5c;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;flex:1}.page-controls{height:30px;display:flex;align-items:center;justify-content:flex-end;gap:5px;flex:0 0 auto}.page-controls button{height:24px;min-width:26px;padding:0;border:0;border-radius:5px;background:#f3f4f6;color:#334155;font-size:19px;line-height:20px}.page-controls input{height:22px;width:38px;padding:0 3px;text-align:center;border:1px solid #e3e6e9;border-radius:5px;background:white;color:#334155;font-size:11px}#pageTotal{color:#5c5c5c;font-size:11px}#emptyState{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;color:#c2ccd4;gap:10px}#emptyState p{margin:0 0 8px}.empty-icon{font-size:40px;color:var(--accent);border:1px solid #ffffff35;border-radius:18px;width:70px;height:70px;display:grid;place-items:center}.open-button,#emptyOpen{border:0;border-radius:12px;background:var(--accent);color:#06202a;font-weight:700;padding:0 18px;height:44px;white-space:nowrap}.menu-panel{position:absolute;z-index:20;top:58px;right:10px;left:auto;width:min(280px,calc(100vw - 20px));padding:6px;background:#fff;color:#27384b;border:1px solid #dbe1e8;border-radius:12px;box-shadow:0 10px 28px rgba(15,23,42,.2)}.menu-panel button{display:block;width:100%;height:44px;text-align:left;padding:0 12px;border:0;border-radius:8px;background:transparent;color:#27384b;font-size:15px}.menu-panel button:hover{background:#f3f6f8}.menu-panel button[hidden]{display:none}#status{position:fixed;z-index:25;left:50%;bottom:44px;transform:translateX(-50%);max-width:calc(100vw - 28px);padding:12px 16px;border-radius:12px;background:#0d1b2a;color:#efffff;box-shadow:0 4px 20px #0005;font-size:14px;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s}#status.show{opacity:1}.ad-placeholder{display:none}body.mode-view .toolbar{opacity:.75}body.mode-view .text-block{pointer-events:none}body.mode-view .text-layer{pointer-events:none}body.mode-edit .toolbar{opacity:1}body.mode-edit .text-block{pointer-events:auto}body:not(.loaded) #pageControls{visibility:hidden}@media(min-width:700px){.mode{font-size:13px}.toolbar{justify-content:center}.background-control{margin-left:auto}}@media(max-width:520px){.topbar{padding:0 8px;gap:7px}.mode-wrap{flex:1}.mode-pill{padding:3px;height:47px}.mode{height:39px;padding:0 3px;gap:4px;font-size:10px;letter-spacing:.015em}.mode svg{width:14px;height:14px}.toolbar{justify-content:flex-start}.background-control{margin-left:2px}.status-bar{padding:0 8px}.file-label{max-width:52vw}}
.image-mask-layer,.image-back-layer,.image-front-layer{position:absolute;inset:0;pointer-events:none}.image-mask-layer{z-index:1}.image-back-layer{z-index:2}.text-layer{z-index:3}.image-front-layer{z-index:4}.image-art,.image-mask{position:absolute;display:block}.image-art{object-fit:fill;pointer-events:none}.image-layer{position:absolute;inset:0;z-index:5;pointer-events:none}.image-hitbox{position:absolute;pointer-events:auto;touch-action:none;background:transparent;border:2px solid transparent;box-sizing:border-box;user-select:none;-webkit-user-select:none}.image-hitbox.selected{border:2px dashed #37e6ef;background:transparent;box-shadow:none}.image-handle{position:absolute;z-index:2;right:0;bottom:0;width:48px;height:48px;min-width:48px;min-height:48px;padding:0;border:0;border-radius:50%;background:transparent;touch-action:none;display:block}.image-handle::after{content:"";position:absolute;right:2px;bottom:2px;width:16px;height:16px;border-radius:50%;background:#fff;border:2px solid #21cfd6;box-shadow:0 1px 5px #00383c66}.image-move-indicator{position:absolute;z-index:7;width:48px;height:48px;border-radius:50%;transform:translate(-50%,-50%);display:grid;place-items:center;background:#20cbd3;color:#fff;border:2px solid #eaffff;font-size:26px;line-height:1;box-shadow:0 2px 10px #00383c88;pointer-events:none}.image-toolbar{position:fixed;z-index:30;display:flex;align-items:center;gap:3px;max-width:calc(100vw - 16px);padding:5px;border-radius:14px;background:#fff;color:#1d282c;box-shadow:0 5px 22px #0005;touch-action:manipulation}.image-toolbar[hidden]{display:none}.image-toolbar button,.image-toolbar select{height:36px;min-width:34px;padding:0 6px;border:1px solid #d7e0e2;border-radius:9px;background:#fff;color:#202a2d;font:600 13px system-ui,sans-serif;white-space:nowrap}.image-toolbar select{min-width:60px;padding:0 4px}.image-toolbar .image-delete{position:relative;min-width:34px;padding:0;color:#e32935;border-color:#f1c9cc}.image-toolbar .image-delete::before{content:"";position:absolute;left:50%;top:12px;transform:translateX(-50%);width:11px;height:13px;border:2px solid #e32935;border-top:0;border-radius:0 0 3px 3px}.image-toolbar .image-delete::after{content:"";position:absolute;left:50%;top:9px;transform:translateX(-50%);width:17px;height:2px;border-radius:2px;background:#e32935;box-shadow:0 -3px 0 -0.5px #e32935}.image-toolbar button:active{background:#e9fafa;border-color:#36d3d7}.image-toolbar .image-delete:active{background:#fff0f0}.image-layer{touch-action:none}body.mode-view .image-hitbox{pointer-events:none}body.mode-edit .image-hitbox{pointer-events:auto;cursor:move}

#emptyState[hidden],.page-controls[hidden]{display:none!important}
.menu-panel .ocr-lang{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:0 12px;font-size:14px;color:#27384b}.menu-panel .ocr-lang select{height:34px;border:1px solid #dbe1e8;border-radius:8px;background:#fff;color:#27384b;padding:0 6px;font-size:14px}.menu-panel .ocr-note{margin:4px 6px 6px;padding:8px 10px;border-radius:8px;background:#f3f6f8;color:#5c6b7a;font-size:12px;line-height:1.35}
.text-mask-layer{position:absolute;inset:0;pointer-events:none;z-index:2}.text-mask{position:absolute;display:none}.text-mask.on{display:block}
.text-block.overlay:not(.edited){color:transparent!important}.text-block.overlay:not(.edited) *{color:transparent!important}.text-block.overlay::selection,.text-block.overlay *::selection{background:#ff7a4555}
body.placing-text .pdf-page{cursor:crosshair}.tool.add-text{font-weight:700;color:#ff7a45}.tool.add-text.active{background:#ff7a45;color:#fff}
body.mode-edit .text-block.added{outline:1px dashed #ff7a4599;min-width:2em}body.mode-edit .text-block.added:focus{outline:1px dashed #ff7a45}
body.mode-edit .text-block.overlay:not(.edited){box-shadow:inset 0 -1px #ff7a4540}

/* formulieren */
.form-layer{position:absolute;inset:0;z-index:6;pointer-events:none}
.form-field{position:absolute;box-sizing:border-box;pointer-events:auto;margin:0;padding:0 3px;border:1px solid #7aa7e066;border-radius:2px;background:#dbe8ff99;color:#111;font-family:Helvetica,Arial,sans-serif;outline:none}
.form-field:focus{background:#fff;border-color:#ff7a45;box-shadow:0 0 0 2px #ff7a4533}
textarea.form-field{resize:none;padding:2px 3px;line-height:1.15}
input.form-field[type=checkbox],input.form-field[type=radio]{padding:0;accent-color:#ff7a45;background:none;border:0;cursor:pointer}
.form-field:disabled{background:transparent;border-color:transparent}
.tool.sign{font-size:18px}
/* vensters */
.modal{position:fixed;inset:0;z-index:40;background:#0d1b2acc;display:flex;align-items:center;justify-content:center;padding:16px}
.modal[hidden]{display:none}
.modal-box{width:min(460px,100%);max-height:calc(100vh - 32px);overflow:auto;background:#fff;color:#24364a;border-radius:16px;padding:16px;box-shadow:0 12px 40px #0008}
.modal-box h2{margin:0 0 10px;font-size:18px;color:#0d1b2a}
.modal-hint{margin:6px 0 8px;font-size:13px;color:#5c6b7a}
.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}
.modal-actions button,.pm-head button{height:40px;padding:0 16px;border-radius:10px;font-size:14px;font-weight:600;border:0}
button.primary{background:#ff7a45;color:#fff}button.secondary{background:#eef2f6;color:#24364a}
.link-button{margin-left:auto;background:none;border:0;color:#ff7a45;font-weight:600;font-size:14px}
.sign-pad{display:block;width:100%;height:180px;border:2px dashed #dbe1e8;border-radius:12px;background:#fff;touch-action:none;cursor:crosshair}
.sign-row{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px}
.ink{width:28px;height:28px;border-radius:50%;border:3px solid #fff;box-shadow:0 0 0 1px #dbe1e8}.ink.active{box-shadow:0 0 0 2px #ff7a45}
.sign-remember{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:13px}
.sign-saved{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:6px}.sign-saved[hidden]{display:none}
.sign-saved-item{position:relative;border:1px solid #dbe1e8;border-radius:10px;padding:6px;background:#fafbfc}
.sign-saved-item img{display:block;height:44px;max-width:150px;object-fit:contain;cursor:pointer}
.sign-saved-item button{position:absolute;top:-8px;right:-8px;width:22px;height:22px;border-radius:50%;border:0;background:#0d1b2a;color:#fff;font-size:14px;line-height:1}
/* pagina's beheren */
.pages-box{width:min(760px,100%)}
.pm-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.pm-head h2{margin:0}
.pm-busy{padding:8px 0;font-size:13px;color:#5c6b7a}.pm-busy[hidden]{display:none}
.pm-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.pm-card{border:1px solid #dbe1e8;border-radius:12px;padding:8px;background:#f7f9fb;display:flex;flex-direction:column;align-items:center;gap:6px}
.pm-thumb{width:100%;height:160px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pm-thumb img{max-width:100%;max-height:150px;box-shadow:0 2px 8px #0003;background:#fff;transition:transform .2s}
.pm-label{font-size:12px;color:#5c6b7a;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pm-tools{display:flex;gap:4px}
.pm-tools button{width:26px;height:30px;border:0;border-radius:7px;background:#fff;box-shadow:0 0 0 1px #dbe1e8;font-size:13px;padding:0}
.pm-tools button:disabled{opacity:.35}
#status{z-index:50}

/* ===================== Lilliwork-look (overgenomen van lillidocs.com/work) =====================
   Zelfde kopbalk, schuivende pil, werkbalk, menu, opening en taalkeuze als Lilliwork.
   Elke Lilliwork-app heeft een eigen accentkleur; die van Lilli PDF is oranje. */
:root{--accent:#ff7a45;--accent-glow:rgba(255,122,69,.35)}
body{font-family:system-ui,-apple-system,Roboto,"Segoe UI",sans-serif}

/* kopbalk */
.topbar{height:64px;min-height:64px;padding:8px 16px;gap:12px;background:#0d1b2a;border-bottom:1px solid #203646;box-shadow:0 3px 14px rgba(7,20,33,.4)}
.square.logo{width:40px;height:40px;flex:0 0 40px;border:1px solid #294252;border-radius:9px;background:transparent;box-shadow:0 0 8px rgba(0,229,255,.22);transition:border-color .2s,box-shadow .2s}
.square.logo svg{width:19px;height:30px;filter:drop-shadow(0 0 1.5px rgba(0,242,254,.6))}
.square.menu{width:40px;height:40px;flex:0 0 40px;border:1px solid #294252;border-radius:9px;background:rgba(0,229,255,.08);color:#00e5ff;font-size:20px;line-height:1;box-shadow:0 0 8px rgba(0,229,255,.22);text-shadow:0 0 5px rgba(0,229,255,.8),0 0 11px rgba(0,230,118,.45)}
.square.menu:hover{background:#20394d}
.mode-wrap{height:64px}
.mode-pill.lw-pill-nav{position:relative;height:52px;width:min(100%,600px);padding:4px;gap:0;overflow:hidden;border-radius:999px;background:#0a1622;border:1px solid #21384f;box-shadow:none;touch-action:pan-y}
.mode-pill .mode,.mode-pill .mode.active,.mode-pill .mode:hover{position:relative;z-index:1;height:100%;border:0;border-radius:999px;background:transparent!important;box-shadow:none!important;color:#8fa6b8;font-size:11px;font-weight:650;letter-spacing:.04em;text-transform:uppercase;gap:6px;transition:color .25s}
.mode-pill .mode.active{color:#fff}
.mode-pill .mode svg{width:16px;height:16px;flex:0 0 16px;color:inherit}
.mode-pill .mode.active svg{color:var(--accent)}
.lw-tab-pill{display:block!important;position:absolute;z-index:0;top:4px;bottom:4px;left:4px;width:0;border-radius:999px;background:linear-gradient(180deg,var(--accent-glow),rgba(255,255,255,0) 75%),#15293b;box-shadow:inset 0 0 0 1.5px var(--accent),0 0 14px var(--accent-glow);transition:transform .32s cubic-bezier(.3,.8,.3,1),width .32s,box-shadow .3s,background .3s;pointer-events:none}
@media (max-width:639px){.mode-pill .mode{font-size:9px;letter-spacing:0;padding:0 4px;gap:4px}.mode-pill .mode svg{width:14px;height:14px;flex-basis:14px}}
@media (max-width:300px){.mode-pill .mode svg{display:none}.mode-pill .mode{font-size:8px}}
@media (prefers-reduced-motion:reduce){.lw-tab-pill{transition:none}}

/* werkbalk */
.toolbar{height:44px;min-height:44px;gap:2px;padding:4px 5px;background:#fff4ef;border-bottom:1.6px solid var(--accent)}
.toolbar .tool{width:auto;min-width:38px;height:36px;padding:1px 8px;border:0;border-radius:8px;background:rgba(255,255,255,.78);color:#334155;font-size:17px;line-height:1;display:inline-grid;place-items:center;transition:transform .2s,background-color .2s}
.toolbar .tool:hover{background:#fff;transform:scale(1.02)}
.toolbar .tool:active{transform:scale(.99)}
.toolbar .tool svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.toolbar .size-tool{font-weight:600}.toolbar .size-tool small{font-size:11px;margin-left:1px;font-weight:700}
.toolbar .tool.add-text.active{background:var(--accent);color:#fff}
.tb-sep{flex:0 0 1px;width:1px;height:22px;margin:0 4px;background:#f6cdbb}
.toolbar select{height:36px;border:0;border-radius:8px;background:rgba(255,255,255,.78);color:#334155;font-size:13px;padding:0 8px}
.lw-color-btn{position:relative;display:inline-flex!important;flex-direction:column;align-items:center;justify-content:center;gap:2px;cursor:pointer}
.lw-color-a{font-size:17px;font-weight:700;line-height:1}
.lw-color-bar{width:20px;height:4px;border-radius:2px;background:#17191b}
.lw-color-btn input[type=color]{position:absolute;inset:0;width:100%!important;min-width:0!important;height:100%!important;padding:0;border:0;opacity:0;cursor:pointer}

/* menu (zelfde als het Lilliwork-menu) */
.menu-panel.lw-filemenu{position:fixed;z-index:100002;top:66px;right:16px;left:auto;width:min(272px,calc(100vw - 16px));max-height:calc(100vh - 80px);overflow:auto;overscroll-behavior:contain;padding:6px;border:1px solid #dbe1e8;border-radius:12px;background:#fff;box-shadow:0 10px 28px rgba(15,23,42,.2);font-family:Roboto,system-ui,sans-serif}
.menu-panel.lw-filemenu[hidden]{display:none!important}
.menu-panel .lw-fm-item{display:flex;align-items:center;gap:12px;width:100%;height:auto;min-height:44px;padding:6px 10px;border:0;border-radius:8px;background:transparent;color:#27384b;font:inherit;font-size:15px;font-weight:500;text-align:left;cursor:pointer}
.menu-panel .lw-fm-item:hover,.menu-panel .lw-fm-item:active,.menu-panel .lw-fm-item:focus-visible{background:#f1f5f9;outline:none}
.menu-panel .lw-fm-item:disabled{opacity:.5;cursor:default}
.lw-fm-icon{flex:0 0 24px;width:24px;height:24px;display:grid;place-items:center}
.lw-fm-icon svg{width:24px!important;height:24px!important;flex:0 0 auto!important}
.lw-fm-icon svg:not([style]){fill:none;stroke:#00a8bd;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.lw-fm-lang .lw-fm-icon svg{stroke:initial;width:30px!important;height:22px!important}
.lw-fm-label{flex:1 1 0%;min-width:0}
.lw-fm-sep{height:1px;margin:5px 8px;background:#e2e8f0}
.menu-panel .ocr-lang{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:40px;padding:0 10px 0 46px;font-size:13px;color:#475569}
.menu-panel .ocr-lang select{height:32px;border:1px solid #dbe1e8;border-radius:8px;background:#fff;color:#27384b;padding:0 6px;font-size:13px}
.menu-panel .ocr-note.lw-fm-note{margin:2px 4px 4px;padding:9px 10px;border-radius:8px;background:#f8fafc;color:#64748b;font-size:12.5px;line-height:1.4}

/* opening */
.splash-screen{position:fixed;inset:0;z-index:999999;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;padding:24px;background:#0d1b2a;opacity:1;transition:opacity .5s}
.splash-screen.is-fading{opacity:0;pointer-events:none}
.splash-gnome{display:block;width:min(120px,32vw);height:auto;overflow:visible}
.splash-wordmark{color:#fff;font-family:inherit;font-size:clamp(26px,8vw,32px);font-weight:700;letter-spacing:.01em;text-shadow:0 0 10px rgba(255,255,255,.38)}
.splash-wordmark.lw-word{position:relative}
.lw-word .lw-chalk,.lw-word .lw-final{display:block;white-space:pre}
.lw-word .lw-chalk{color:#c9d2dc;text-shadow:0 0 6px rgba(0,242,254,.25);opacity:.85;filter:url(#lw-krijt);-webkit-mask-image:linear-gradient(90deg,transparent,transparent);mask-image:linear-gradient(90deg,transparent,transparent)}
.lw-word .lw-final{position:absolute;inset:0;opacity:0;background:linear-gradient(90deg,#00f2fe,#39ff14 50%,#00f2fe) 0 0/200% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;text-shadow:none;filter:drop-shadow(0 0 6px rgba(0,242,254,.55));animation:lw-flow 3s linear infinite}
@keyframes lw-flow{to{background-position:-200% 0}}
.lw-pen{position:fixed;left:0;top:0;width:0;height:0;pointer-events:none;opacity:0;z-index:1000000}
.lw-pen svg{position:absolute;left:0;top:0;overflow:visible}
.lw-spark{position:fixed;left:0;top:0;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;pointer-events:none;z-index:1000000;background:#bffcff;box-shadow:0 0 6px 2px #00f2fe,0 0 12px 4px rgba(57,255,20,.35);animation:lw-spark .5s ease-out forwards}
@keyframes lw-spark{to{opacity:0;transform:var(--p) scale(.2)}}

/* taalkeuze */
.language-screen{position:fixed;inset:0;z-index:999998;display:grid;place-items:center;padding:24px;background:#0d1b2a;color:#fff;font-family:Roboto,system-ui,sans-serif;animation:language-in .35s ease both}
.language-screen[hidden]{display:none!important}
.language-card{width:min(100%,390px);display:flex;flex-direction:column;align-items:center}
.language-mark{height:88px;margin:0 0 14px}
.language-mark .splash-gnome{width:58px;height:88px}
.language-card h1{margin:0 0 26px;text-align:center;font-size:clamp(19px,5vw,23px);font-weight:650;letter-spacing:-.025em}
.language-options{width:100%;display:grid;gap:10px}
.language-option{min-height:56px;display:flex;align-items:center;gap:12px;padding:0 16px;border:1px solid #294252;border-radius:12px;background:#14283a;color:#fff;text-align:left;font-size:15px;font-weight:600;cursor:pointer;transition:border-color .18s,background .18s,transform .18s}
.language-option:hover,.language-option:focus-visible{border-color:#00f2fe;background:#173348;outline:none;box-shadow:0 0 18px rgba(0,242,254,.133)}
.language-option:active{transform:scale(.985)}
.language-flag{font-size:23px;line-height:1}
.language-option small{margin-left:auto;color:#9fb4c2;font-size:12px;font-weight:450}
@keyframes language-in{from{opacity:0}to{opacity:1}}
@media (max-width:639px){.language-card{max-width:370px}}
@media (prefers-reduced-motion:reduce){.language-screen{animation:none}.language-option{transition:none}}
.toolbar .size-tool{display:inline-flex;align-items:baseline;justify-content:center}
@media (max-width:430px){.mode-pill .mode{gap:3px;padding:0 2px}.mode-pill .mode svg{width:12px;height:12px;flex-basis:12px}.mode-pill .mode span{min-width:0;overflow:hidden;text-overflow:ellipsis}}
@media (max-width:639px){.mode-pill .mode,.mode-pill .mode.active,.mode-pill .mode:hover{font-size:9px;letter-spacing:0}}
@media (max-width:300px){.mode-pill .mode,.mode-pill .mode.active,.mode-pill .mode:hover{font-size:8px}}
.toolbar .size-tool{display:inline-flex!important;align-items:center;justify-content:center;gap:1px;padding:0 8px}
.toolbar .size-tool .sz-a{font-size:17px;font-weight:600;line-height:1}
.toolbar .size-tool .sz-s{font-size:14px;font-weight:700;line-height:1;width:9px;text-align:center;position:relative;top:-1px}
.square.logo{cursor:pointer}.square.logo:hover{border-color:#00e5ff;box-shadow:0 0 12px rgba(0,229,255,.35)}
.leave-box{width:min(420px,100%)}
.leave-actions{flex-wrap:wrap}
button.secondary.danger{color:#b42318}

/* Gebruik op een computer: slepen en neerzetten */
.empty-drop{display:none;font-size:13px;color:#8fa6b8}
@media (hover:hover) and (pointer:fine){#emptyState .empty-drop{display:block;margin:4px 0 0}}
.drop-overlay{position:fixed;inset:0;z-index:30;display:none;align-items:center;justify-content:center;background:rgba(13,27,42,.92);pointer-events:none}
body.drop-active .drop-overlay{display:flex}
.drop-box{display:flex;flex-direction:column;align-items:center;gap:12px;padding:36px 48px;border:2px dashed var(--accent);border-radius:20px;background:#0d1b2a;color:#fff;font-size:17px;box-shadow:0 0 24px #ff7a4555}
.drop-box p{margin:0}

/* Over Lilli PDF + LilliDocs-links (zelfde als Lilliwork) */
.menu-panel a.lw-fm-item{text-decoration:none;box-sizing:border-box}
.lw-fm-chev{width:12px;height:12px;flex:none;fill:none;stroke:#94a3b8;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s ease}
.lw-fm-item[aria-expanded="true"] .lw-fm-chev{transform:rotate(90deg)}
.lw-fm-sub{margin:0 0 4px 22px;padding-left:12px;border-left:2px solid #e2e8f0}
.lw-fm-sub[hidden]{display:none!important}
.menu-panel .lw-fm-subitem{min-height:40px;font-size:14px}
.lw-fm-site{margin:6px 4px 2px;padding:10px 6px 4px;border-top:1px solid #e2e8f0;font-size:12.5px;color:#94a3b8;text-align:center;line-height:1.8}
.lw-fm-site a{color:#64748b;text-decoration:none;padding:4px 2px}
.lw-fm-site a:hover,.lw-fm-site a:focus-visible{color:#0d1b2a;text-decoration:underline}
