@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');
:root{color-scheme:light;--ink:#17203a;--muted:#64718b;--accent:#4658ed;--accent-dark:#2838aa;--paper:#fff;--canvas:#f3f5fc;--border:#dce2f1;--shadow:0 18px 45px rgba(29,62,64,.055)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{font:15px/1.6 'DM Sans',system-ui,sans-serif;background:var(--canvas);color:var(--ink);margin:0}button,input,textarea,select{font:inherit}button{border:0;border-radius:11px;background:#e9edff;color:#2838aa;padding:11px 17px;margin:6px 8px 6px 0;cursor:pointer;font-weight:700;transition:background .2s,transform .2s}button:hover:not(:disabled){background:#dce3ff;transform:translateY(-1px)}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #f28b69;outline-offset:2px}button:disabled{opacity:.45;cursor:not-allowed}.primary-action,#mobileProcess{background:var(--accent);color:#fff}.primary-action:hover:not(:disabled),#mobileProcess:hover:not(:disabled){background:var(--accent-dark)}.topbar{height:76px;background:#fff;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between;padding:0 max(24px,calc((100vw - 1120px)/2))}.brand{display:flex;align-items:center;gap:12px;font-family:Manrope,system-ui;font-weight:800;font-size:21px;letter-spacing:-.8px}.brand small{font-size:11px;font-weight:700;letter-spacing:1px;text-transform:uppercase;color:var(--accent);margin-left:3px}.brand-mark{width:39px;height:39px;display:grid;place-items:center;border-radius:12px;background:var(--accent);color:white;font-size:23px}.topbar-meta{color:var(--muted);font-size:12px;font-weight:600}main{max-width:1120px;margin:0 auto;padding:0 24px 64px}.hero{padding:62px 0 31px}.eyebrow{color:var(--accent);font-size:11px;font-weight:800;letter-spacing:2px}.hero h1{font:800 clamp(34px,5vw,58px)/1.14 Manrope,system-ui;letter-spacing:-2.4px;max-width:820px;margin:12px 0 16px}.hero h1 em{font-style:normal;color:var(--accent)}.hero>p{max-width:650px;color:var(--muted);font-size:17px;margin-bottom:28px}.steps{display:flex;flex-wrap:wrap;gap:9px}.steps a{text-decoration:none;color:var(--accent-dark);font-size:13px;font-weight:700;border:1px solid #cdd7ff;background:#eef1ff;padding:9px 14px;border-radius:100px}.steps a:hover{background:#dce3ff}section{background:var(--paper);padding:31px 35px;margin:19px 0;border:1px solid var(--border);border-radius:19px;box-shadow:var(--shadow);scroll-margin-top:20px}.section-heading{display:flex;gap:18px;align-items:flex-start;margin-bottom:25px}.section-number{display:grid;place-items:center;flex:none;background:#e8edff;color:var(--accent-dark);border-radius:12px;width:46px;height:46px;font:800 15px Manrope}.section-heading h2{font:800 23px Manrope;letter-spacing:-.8px;margin:0}.section-heading p{color:var(--muted);margin:3px 0 0;font-size:14px}h3{font:800 17px Manrope;margin:24px 0 12px}label{display:inline-flex;flex-direction:column;gap:6px;color:#43516c;font-weight:700;font-size:13px;margin:7px 12px 12px 0}input,select,textarea{background:#fff;border:1px solid #cbd4e8;border-radius:10px;padding:11px 13px;color:var(--ink);min-height:43px}input[type=file]{max-width:100%;background:#f7f8ff}select{min-width:180px}textarea{display:block;width:100%;margin:13px 0 18px;resize:vertical;min-height:125px;line-height:1.7;font-size:14px}#transcript{min-height:220px}#document{min-height:300px}.device-settings{background:#f7f8ff;border:1px solid var(--border);padding:17px;border-radius:13px;margin-bottom:18px}.device-settings label{min-width:190px}#deviceStatus,#recordStatus,#mobileStatus,#status{color:var(--accent-dark);background:#eaf0ff;border-left:3px solid #6576ff;padding:10px 14px;border-radius:5px;white-space:pre-wrap;font-size:13px}#deviceStatus:empty,#recordStatus:empty,#mobileStatus:empty,#status:empty{display:none}#mobileToken{min-width:270px}#mobileSession{max-width:100%;min-width:300px}#transcript-section>div:not(.section-heading){padding:18px;background:#f7f8ff;border:1px solid var(--border);border-radius:13px;margin-bottom:20px}footer{text-align:center;color:#7d8c94;font-size:12px;padding:24px 0}@media(max-width:640px){.topbar{height:65px;padding:0 18px}.topbar-meta{display:none}main{padding:0 14px 40px}.hero{padding:36px 7px 16px}.hero h1{letter-spacing:-1.5px}.hero>p{font-size:15px}section{padding:22px 17px;border-radius:15px}.section-heading{gap:12px}.section-heading h2{font-size:20px}.section-number{width:39px;height:39px}label{display:flex;width:100%;margin-right:0}input,select{max-width:100%;width:100%}button{max-width:100%;margin-right:5px}#mobileSession,#mobileToken{min-width:0;width:100%}.steps a{font-size:12px}}@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}button{transition:none}}

.action-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:20px}.action-grid>div{min-width:0}.action-card{border:1px solid var(--border);background:#f7f8ff;border-radius:14px;padding:17px;margin-bottom:12px}.action-card strong{display:block;font:800 15px Manrope;margin-bottom:12px}.action-card label{display:flex;width:100%;margin:8px 0;font-size:12px}.action-card input,.action-card textarea{width:100%;min-width:0;margin:0}.action-card textarea{min-height:90px}.action-card small{display:block;color:var(--muted);overflow-wrap:anywhere;margin:12px 0}.hint{font-size:13px;color:var(--muted)}#actionsStatus:not(:empty){padding:12px;background:#eaf0ff;border-radius:9px;color:var(--accent-dark)}

.login-panel{background:#eef1ff;border-color:#cdd7ff}.login-panel form{display:flex;flex-wrap:wrap;align-items:end;gap:10px}.login-panel label{margin:0}.login-panel #loginStatus{width:100%;font-size:13px;color:var(--accent-dark)}.login-panel #logoutButton[hidden]{display:none}

.send-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:12px}.send-grid label{display:flex;min-width:0}.send-grid input{width:100%;min-width:0}#send-section>label{display:flex;max-width:800px}#send-section>label input{width:100%}#sendStatus:not(:empty){padding:12px;background:#eaf0ff;border-radius:9px;color:var(--accent-dark)}.send-actions{display:flex;flex-wrap:wrap;gap:8px}

.mail-integration{padding:21px 22px;background:#f3f5ff;border:1px solid #dce2f1;border-radius:14px;margin:23px 0}.mail-integration h3{margin:0 0 8px}.mail-integration>p{color:var(--muted);font-size:13px;max-width:750px}.mail-connections{display:grid;grid-template-columns:repeat(auto-fit,minmax(235px,1fr));gap:14px;margin:14px 0}.mail-provider{display:flex;flex-direction:column;align-items:flex-start;gap:7px;padding:16px;background:#fff;border:1px solid var(--border);border-radius:12px}.mail-provider strong{font-size:16px}.mail-account{font-size:13px;color:var(--muted);overflow-wrap:anywhere}.mail-provider button{margin:0}#mailDraftStatus:not(:empty){font-size:13px;color:var(--accent-dark);background:#eaf0ff;padding:10px 12px;border-radius:8px}#mailDraftLink{display:inline-block;margin:5px 0 15px;color:var(--accent-dark);font-weight:700;text-decoration:underline}#providerSend:disabled{opacity:.45}

.mobile-recorder{background:#eef1ff;border:1px solid #cdd7ff;border-radius:20px;padding:24px;text-align:center;margin-bottom:18px}.recorder-kicker{font-size:11px;font-weight:800;letter-spacing:2px;color:var(--accent-dark)}.record-timer{font:800 clamp(46px,12vw,76px)/1.2 Manrope,system-ui;font-variant-numeric:tabular-nums;letter-spacing:-3px;margin:12px 0 6px}.record-indicator{font-weight:700;color:#64718b}.record-indicator.active{color:#b32635}.recorder-controls{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:20px 0}.recorder-controls button{min-height:52px;min-width:145px;margin:0}.recorder-warning{font-size:12px;color:#64718b;max-width:480px;margin:14px auto 0}@media(max-width:640px){body{padding-bottom:env(safe-area-inset-bottom)}.topbar{padding-top:env(safe-area-inset-top);height:calc(65px + env(safe-area-inset-top))}.mobile-recorder{padding:22px 14px}.recorder-controls{display:grid;grid-template-columns:1fr 1fr}.recorder-controls button{min-width:0;width:100%;padding:13px 8px}.steps{overflow-x:auto;flex-wrap:nowrap;padding-bottom:10px}.steps a{white-space:nowrap;flex:none}}

/* Scrieber visual identity: cobalt / midnight / coral, 2026 refresh */
:root{--accent:#4658ed;--accent-dark:#2838aa;--ink:#17203a;--muted:#64718b;--canvas:#f3f5fc;--border:#dce2f1;--shadow:0 18px 55px rgba(28,42,99,.075)}
body{background:radial-gradient(ellipse 75% 35% at 85% 0%,#e1e6ff 0%,transparent 75%),var(--canvas)}
.topbar{background:#121a38;color:#fff;border-bottom:1px solid #29335b;box-shadow:0 8px 28px rgba(18,26,56,.12)}
.brand-mark{background:linear-gradient(145deg,#6877ff,#3e4cdb);box-shadow:0 6px 20px rgba(75,92,242,.38)}
.brand small{color:#ffab8f}.topbar-meta{color:#c3cbea}
.hero{position:relative;padding:64px 38px 38px;margin:24px 0 26px;border-radius:24px;overflow:hidden;background:linear-gradient(115deg,#141e44 0%,#263a8d 72%,#4658ed 100%);color:#fff;box-shadow:0 24px 55px rgba(30,49,121,.17)}
.hero:after{content:"";position:absolute;pointer-events:none;width:330px;height:330px;border:1px solid rgba(255,255,255,.16);border-radius:50%;right:-110px;top:-155px;box-shadow:0 0 0 55px rgba(255,255,255,.035),0 0 0 110px rgba(255,255,255,.025)}
.hero .eyebrow{color:#ffb49a}.hero h1{position:relative;z-index:1}.hero h1 em{color:#ffab8f}.hero>p{color:#dce3ff;position:relative;z-index:1}
.steps{position:relative;z-index:1}.steps a{background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.24);color:#fff;backdrop-filter:blur(6px)}.steps a:hover{background:rgba(255,255,255,.24)}
section{box-shadow:var(--shadow)}.section-number{background:#e8edff;color:#3649c5}.section-heading h2{color:#17203a}
button{background:#e9edff;color:#2838aa}.primary-action,#mobileProcess{background:linear-gradient(125deg,#4658ed,#3544c9);box-shadow:0 5px 14px rgba(70,88,237,.19)}.primary-action:hover:not(:disabled),#mobileProcess:hover:not(:disabled){background:#2838aa}
.mobile-recorder{background:linear-gradient(145deg,#eef1ff,#fff7f4);border:1px solid #d5dcfa}.record-timer{color:#1b2858}.recorder-kicker{color:#4658ed}.record-indicator.active{color:#d63f5c}
.login-panel{background:#f5f6ff;border-color:#dce2fa}.mail-integration{background:#f5f6ff}.action-card{background:#f8f9ff}
input:focus,textarea:focus,select:focus{border-color:#6474f7;box-shadow:0 0 0 3px rgba(100,116,247,.12);outline:none}
@media(max-width:640px){.hero{margin:14px 0 20px;padding:38px 22px 26px;border-radius:19px}.hero:after{width:200px;height:200px;right:-120px;top:-100px}.hero h1{font-size:clamp(30px,8vw,42px);letter-spacing:-1.4px}}

/* Multi-workspace navigation */
.workspace-tabs{display:flex;gap:7px;overflow-x:auto;padding:20px 0 5px;scrollbar-width:thin}
.workspace-tabs button{white-space:nowrap;flex:none;margin:0;background:#e8edfc;color:#33426d;border:1px solid #d8dff3;padding:12px 15px}
.workspace-tabs button[aria-selected=true]{background:#17224b;color:#fff;border-color:#17224b;box-shadow:0 5px 15px rgba(23,34,75,.18)}
[data-panel][hidden],.template-editor[hidden],.steps[hidden]{display:none!important}
.workspace-template-picker{background:#f5f7ff;border:1px solid #dce3f8;border-radius:16px;padding:22px;margin:20px 0}
.workspace-template-picker h3{margin-top:0}
.template-choice{display:inline-flex;align-items:center;gap:8px;margin:5px 10px 8px 0;padding:9px 12px;border:1px solid #d3dcf5;border-radius:11px;background:#fff;cursor:pointer}
.template-choice input{min-height:0;accent-color:#4658ed}
.template-list,.generated-documents{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,270px),1fr));gap:14px;margin-top:20px}
.template-tile,.generated-tile{background:#f8f9ff;border:1px solid #dce2f1;border-radius:15px;padding:20px}
.template-tile h3,.generated-tile h3{margin:0 0 8px}
.template-tile p{color:#64718b;font-size:13px;white-space:pre-wrap;max-height:75px;overflow:hidden}
.template-editor{margin-top:24px;border-top:1px solid #dce2f1;padding-top:20px}
.template-editor label{display:flex;width:100%;max-width:780px}.template-editor input,.template-editor textarea{width:100%}
.flow-toolbar{display:flex;align-items:end;gap:10px;flex-wrap:wrap}.flow-toolbar label{margin:0}.flow-canvas{min-height:310px;padding:22px;border-radius:18px;background:radial-gradient(#cfd8f1 1px,transparent 1px) 0 0/20px 20px,#f7f9ff;display:flex;gap:12px;align-items:flex-start;overflow-x:auto}
.flow-node{min-width:220px;max-width:260px;flex:none;border:1px solid #cdd7ef;border-top:5px solid #4658ed;background:#fff;border-radius:13px;padding:15px;box-shadow:0 10px 25px rgba(28,42,99,.07)}
.flow-node.start{border-top-color:#ff9478}.flow-node h3{margin:0 0 12px;font-size:15px}.flow-node label{display:flex;margin:8px 0;width:100%}.flow-node select,.flow-node input{width:100%;min-width:0}.flow-arrow{align-self:center;color:#4658ed;font-size:25px;font-weight:800;flex:none}
.generated-tile textarea{width:100%;min-height:180px}.generated-tile button{font-size:12px}
@media(max-width:640px){.workspace-tabs{margin:0 -14px;padding:13px 14px 4px}.workspace-tabs button{padding:10px 12px;font-size:12px}.flow-canvas{padding:12px}.flow-node{min-width:205px}}

.flow-list-card{border:1px solid #dbe2f1;border-radius:12px;padding:16px;margin:12px 0;background:white}.flow-list-card button{margin-right:8px}
#flowEditor .flow-canvas{position:relative;min-height:500px;min-width:900px;background:radial-gradient(#d4dcf1 1px,transparent 1px);background-size:20px 20px;border:1px solid #d4dcf1}
.graph-lines{position:absolute;inset:0;pointer-events:none}
.graph-node{position:absolute;box-sizing:border-box;width:175px;min-height:75px;border:2px solid #8fa4d7;border-radius:12px;background:white;padding:9px;display:flex;flex-wrap:wrap;gap:4px;z-index:2;box-shadow:0 3px 12px #0002}
.graph-node.active{border-color:#2e59c7}.graph-node strong{width:100%;font-size:13px}.graph-node button{font-size:11px;padding:4px}.graph-handle{cursor:grab}
#flowConnections{padding:12px;margin-top:12px;border:1px solid #dbe2f1;border-radius:10px}

/* Compacte merkidentiteit in de linkerzijbalk; werkruimte krijgt voorrang. */
@media(min-width:1000px){
 body{display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:auto minmax(0,1fr)}
 .topbar{grid-column:1/-1}
 .app-sidebar{grid-column:1;grid-row:2;align-self:start;position:sticky;top:20px;margin:24px 0 0 16px;padding:22px 17px;border-radius:16px;background:#17264c;color:#fff}
 main{grid-column:2;grid-row:2;width:100%;max-width:1300px;padding:16px 24px 64px}
}
.sidebar-kicker{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#9cb1ff}
.sidebar-title{font:800 20px/1.3 Manrope,system-ui;margin:12px 0}
.sidebar-title strong{color:#ffb49a}
.sidebar-description{font-size:12px;line-height:1.55;color:#dce3ff;margin:0}
@media(max-width:999px){
 .app-sidebar{margin:12px 24px 0;padding:10px 15px;border:1px solid var(--border);border-radius:12px;background:#fff}
 .sidebar-identity{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
 .sidebar-kicker{display:none}
 .sidebar-title{font-size:13px;margin:0}
 .sidebar-title strong{color:var(--accent)}
 .sidebar-description{display:none}
}
@media(max-width:640px){.app-sidebar{margin:10px 14px 0}}

/* Compacte workflowblokken en duidelijk, responsief instellingenpaneel */
#flowEditor .graph-node{width:160px;min-height:65px;padding:8px;gap:3px;align-content:start;touch-action:none}
#flowEditor .graph-node strong{font-size:12px;line-height:1.25;overflow-wrap:anywhere}
#flowEditor .graph-node-id{display:block;width:100%;font:700 10px/1.3 monospace;color:#63718e;letter-spacing:.6px}
#flowEditor .graph-node button{font-size:11px;padding:5px 9px;margin:2px 4px 2px 0}
#flowEditor .graph-handle{background:transparent;color:#63718e;padding:2px 5px}
#flowConnections{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:10px 18px;align-items:start;max-width:100%;overflow:visible}
#flowConnections>h3,#flowConnections>h4,#flowConnections>.hint,#flowConnections>.inspector-actions,#flowConnections>.connection-list{grid-column:1/-1;margin:5px 0}
#flowConnections .inspector-field{display:flex;flex-direction:column;min-width:0;width:100%;margin:0;gap:5px}
#flowConnections .inspector-field input,#flowConnections .inspector-field select{width:100%;min-width:0;max-width:100%}
#flowConnections .inspector-actions{display:flex;flex-wrap:wrap}

.workflow-results{display:flex;flex-direction:column;gap:14px;margin-top:16px}.workflow-result-card{padding:20px;border:1px solid var(--border);border-radius:14px;background:#fff}.workflow-result-card h3{margin:0 0 8px}.workflow-result-state{font-size:12px;font-weight:700;color:var(--accent-dark)}.workflow-result-card textarea{width:100%;min-height:160px}

/* Directe verbindingen via de poorten op het canvas */
#flowEditor .graph-node{overflow:visible}
#flowEditor .graph-port{position:absolute;top:29px;width:16px;height:16px;border-radius:50%;background:#fff;border:3px solid #4658ed;z-index:5;box-sizing:border-box;padding:0;margin:0;min-width:0;touch-action:none}
#flowEditor .graph-port-in{left:-10px;pointer-events:none}
#flowEditor .graph-port-out{right:-10px;cursor:crosshair;background:#4658ed}
#flowEditor .graph-port-out:hover{transform:scale(1.25);background:#2838aa}
.graph-connection-preview{stroke:#4658ed;stroke-width:3;stroke-dasharray:7 5;fill:none;pointer-events:none}

/* Workflowblok-instellingen uitsluitend in een modaal venster */
.flow-node-dialog{width:min(600px,calc(100vw - 28px));max-height:min(85vh,900px);overflow-y:auto;border:1px solid var(--border);border-radius:18px;padding:22px;background:#fff;color:var(--ink);box-shadow:0 25px 80px #101a3b55}
.flow-node-dialog::backdrop{background:rgba(13,22,48,.56)}
.flow-dialog-header{display:flex;align-items:center;justify-content:space-between;gap:15px}.flow-dialog-header h2{margin:0;font:800 21px Manrope}.flow-dialog-header button{margin:0;font-size:24px;padding:2px 12px}
.flow-node-dialog #flowConnections{border:0;padding:8px 0;margin:0;display:flex;flex-direction:column;gap:12px}
.flow-node-dialog #flowConnections .inspector-field{width:100%;max-width:none}
.flow-node-dialog #flowConnections .inspector-actions{border-top:1px solid var(--border);padding-top:12px}
.flow-dialog-footer{display:flex;justify-content:flex-end;margin-top:15px}
#flowEditor .graph-node{cursor:pointer}

.recording-library{margin-bottom:28px;padding-bottom:20px;border-bottom:1px solid var(--border)}.recording-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:12px}.recording-library-item{padding:15px;border:1px solid var(--border);border-radius:13px;background:#fff;min-width:0}.recording-library-item h3{margin:0 0 5px;font-size:15px}.recording-library-item p{font-size:12px;color:#65718b;overflow-wrap:anywhere}.recording-library-item button{margin:5px 7px 0 0}.recording-metadata{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:10px;margin-top:12px}.recording-metadata label{display:flex;flex-direction:column;min-width:0}.recording-metadata input{width:100%;min-width:0}.recording-metadata button{align-self:end}

/* Opnamebibliotheek: compacte lijst in plaats van kaarten */
.recording-list{display:flex;flex-direction:column;gap:0;border:1px solid var(--border);border-radius:12px;overflow:hidden}
.recording-library-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;column-gap:12px;row-gap:8px;border:0;border-radius:0;border-bottom:1px solid var(--border);padding:11px 14px;background:transparent}
.recording-library-item:last-child{border-bottom:0}
.recording-library-item h3{grid-column:1;grid-row:1;margin:0;font-size:14px}
.recording-library-item>p{grid-column:1;grid-row:2;margin:0;font-size:12px}
.recording-library-item>button{margin:0;white-space:nowrap}
.recording-library-item>button:first-of-type{grid-column:2;grid-row:1/3}
.recording-library-item>button:nth-of-type(2){grid-column:3;grid-row:1/3}
.recording-library-item>.recording-metadata{grid-column:1/-1;grid-row:3}
@media(max-width:650px){.recording-library-item{grid-template-columns:minmax(0,1fr) auto}.recording-library-item h3,.recording-library-item>p{grid-column:1/-1;grid-row:auto}.recording-library-item>button:first-of-type,.recording-library-item>button:nth-of-type(2){grid-row:auto;grid-column:auto}.recording-library-item>.recording-metadata{grid-row:auto}}

.workflow-history-section{margin-top:28px;border-top:1px solid var(--border);padding-top:20px}.workflow-history-list{display:flex;flex-direction:column;border:1px solid var(--border);border-radius:12px;overflow:hidden}.workflow-history-row{border-bottom:1px solid var(--border)}.workflow-history-row:last-child{border-bottom:0}.workflow-history-row button{display:block;width:100%;text-align:left;border:0;border-radius:0;background:transparent;padding:13px 15px;white-space:normal}.workflow-history-row button:hover{background:#f1f5fc}

/* Rustige, overzichtelijke workflow-uitvoering */
.workflow-run-panel{max-width:100%;box-sizing:border-box}.workflow-run-panel>h3{margin-bottom:6px}.workflow-run-panel>p{margin-top:0;color:#64748b}.workflow-run-fields{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px;margin:20px 0}.workflow-run-fields>div{min-width:0}.workflow-run-fields label{display:block;margin-bottom:8px;font-weight:700}.workflow-run-fields select{width:100%;min-width:0;box-sizing:border-box;margin:0}.workflow-recording-controls{display:flex;align-items:stretch;gap:8px}.workflow-recording-controls select{flex:1;min-width:0}.workflow-recording-controls button{flex:none;margin:0;white-space:nowrap}.workflow-run-action{display:flex;flex-wrap:wrap;align-items:center;gap:14px;padding-bottom:20px;border-bottom:1px solid var(--border)}.workflow-run-action button{margin:0}.workflow-run-action p{margin:0;flex:1;min-width:220px}.workflow-run-panel #workflowResultSummary{margin-top:20px;font-weight:700}.workflow-run-panel .workflow-history-section{margin-top:26px}@media(max-width:720px){.workflow-run-fields{grid-template-columns:minmax(0,1fr);gap:14px}.workflow-recording-controls{flex-wrap:wrap}.workflow-recording-controls button{width:auto}}

/* Workflow Studio: kleur per bloktype, instructienaam als primaire titel */
#flowEditor .graph-node{display:flex;align-items:center;justify-content:center;text-align:center;border-width:2px;transition:box-shadow .15s,border-color .15s}
#flowEditor .graph-node strong{font-size:13px;line-height:1.35;overflow-wrap:anywhere;padding:5px 1px}
#flowEditor .graph-node--transcript{background:#e8f2ff;border-color:#4982cf;color:#184d88}
#flowEditor .graph-node--documentInput{background:#edf1f7;border-color:#8393ad;color:#35445f}
#flowEditor .graph-node--document{background:#e7f5ed;border-color:#41a270;color:#17633e}
#flowEditor .graph-node--email{background:#fff1df;border-color:#db9a39;color:#86500d}
#flowEditor .graph-node--calendar{background:#f1eaff;border-color:#9470d3;color:#57338f}
#flowEditor .graph-node.active{box-shadow:0 0 0 3px #354e9e35,0 4px 14px #0002}

/* Workflow Studio: dezelfde kleurcodering op de drie toevoegknoppen */
#flowEditor #addDocumentNode{background:#e7f5ed;border:2px solid #41a270;color:#17633e;font-weight:700}
#flowEditor #addEmailNode{background:#fff1df;border:2px solid #db9a39;color:#86500d;font-weight:700}
#flowEditor #addCalendarNode{background:#f1eaff;border:2px solid #9470d3;color:#57338f;font-weight:700}
#flowEditor #addDocumentNode:hover,#flowEditor #addEmailNode:hover,#flowEditor #addCalendarNode:hover{filter:brightness(.96)}

/* Meer nadruk op de introductie in de zijbalk */
@media(min-width:1000px){.app-sidebar{padding:30px 22px;min-height:220px}.sidebar-title{font-size:clamp(25px,2.4vw,33px);line-height:1.2;margin:18px 0}.sidebar-description{font-size:14px;line-height:1.6}.sidebar-kicker{font-size:11px}}
@media(min-width:641px) and (max-width:999px){.sidebar-title{font-size:clamp(19px,2.6vw,26px)}.sidebar-description{display:block;font-size:13px}}
.profile-settings{padding:20px;margin-bottom:24px;border:1px solid var(--border);border-radius:14px;background:#f7f9fd}.profile-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;margin:14px 0}.profile-fields label{display:flex;flex-direction:column;gap:7px;font-weight:600}.profile-fields input{width:100%;box-sizing:border-box;padding:10px;border:1px solid #b8c4dc;border-radius:8px}.profile-settings p{color:var(--muted)}

/* Compact uitvoeren: drie selecties op één rij op brede schermen */
.workflow-run-fields{grid-template-columns:minmax(0,1.45fr) minmax(0,1fr) minmax(0,1.2fr);gap:12px;margin:12px 0 14px;align-items:end}
.workflow-run-fields label{font-size:12px;margin-bottom:5px}
.workflow-run-fields select{height:42px;padding-top:6px;padding-bottom:6px}
.workflow-recording-controls{gap:6px}
.workflow-recording-controls button{height:42px;padding:0 10px}
.workflow-run-panel>p{font-size:13px;line-height:1.5;margin-bottom:6px}
.workflow-run-action{padding-bottom:14px;gap:10px}
.workflow-result-card h3{font-size:16px;line-height:1.35}
.workflow-result-instruction{font-size:12px;color:#64748b;margin:4px 0 8px}
@media(max-width:980px){.workflow-run-fields{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.workflow-run-fields{grid-template-columns:minmax(0,1fr);gap:10px}.workflow-recording-controls{flex-wrap:nowrap}.workflow-recording-controls button{width:auto}}

/* Eén visuele identiteit: diepe marineblauwe zijbalk, indigo als actie-accent. */
@media(min-width:1000px){
 body{grid-template-columns:clamp(260px,23vw,330px) minmax(0,1fr)}
 .app-sidebar{align-self:stretch;position:sticky;top:0;min-height:calc(100vh - 76px);height:max-content;margin:0;padding:54px 28px 40px;border:0;border-radius:0;background:#17264c;color:#fff;box-shadow:inset -1px 0 rgba(255,255,255,.08)}
 .sidebar-identity{max-width:270px}
 .sidebar-kicker{font-size:11px;letter-spacing:2px;color:#aebaff}
 .sidebar-title{font:800 clamp(29px,2.7vw,39px)/1.18 Manrope,system-ui;letter-spacing:-1.4px;margin:25px 0 23px}
 .sidebar-title strong{display:block;color:#aebaff}
 .sidebar-description{font-size:15px;line-height:1.8;color:#d5def9}
 main{min-width:0}
}
@media(max-width:999px){
 .app-sidebar{background:#17264c;color:#fff;border:0;padding:18px 22px}
 .sidebar-title{font-size:clamp(19px,3vw,25px);line-height:1.3;color:#fff}
 .sidebar-title strong{color:#aebaff}
 .sidebar-description{display:block;color:#d5def9;font-size:13px}
}
@media(max-width:640px){
 .app-sidebar{padding:17px 19px}
 .sidebar-identity{display:block}
 .sidebar-title{font-size:23px}
 .sidebar-description{margin-top:8px}
}

/* Workflow Studio — professionele node editor, geïnspireerd op workflowtools */
[data-panel="flows"]>section{padding:0;overflow:hidden;border:1px solid #dbe2f1;box-shadow:0 12px 40px #15234b0c;background:#f8faff}
[data-panel="flows"]>section>.section-heading{padding:25px 28px 20px;margin:0;background:#fff;border-bottom:1px solid #e7ebf4}
[data-panel="flows"]>section>.section-heading p{margin-top:5px}
#flowOverview{padding:26px 28px 32px;background:#f8faff}
#flowOverview>h3{margin:0 0 14px;font-size:18px}
#newFlow{background:#4658ed;color:#fff;margin:0 0 18px}
#flowList{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr));gap:14px}
#flowList .flow-list-card{margin:0;padding:22px;border:1px solid #e0e5f0;border-radius:15px;box-shadow:0 4px 16px #17264c09}
#flowList .flow-list-card h3{margin:0 0 18px;font-size:16px;overflow-wrap:anywhere}
#flowList .flow-list-card button{font-size:12px;padding:9px 12px;margin:0 6px 6px 0}
#flowEditor{background:#fff;min-width:0}
.studio-editor-header{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:17px 24px;border-bottom:1px solid #e7ebf4;background:#fff}
.studio-editor-heading{display:flex;align-items:center;gap:18px}
#backToFlows{background:#f1f4fb;color:#43516c;margin:0;padding:10px 13px;font-size:12px}
.studio-eyebrow{font-size:10px;letter-spacing:1.7px;font-weight:800;color:#7885a0}
.studio-editor-heading h3{margin:2px 0 0;font-size:17px;letter-spacing:-.5px}
.studio-editor-tag{font-size:11px;color:#52688b;background:#eef2fa;border:1px solid #dfe6f3;border-radius:30px;padding:6px 12px;font-weight:800;white-space:nowrap}
#flowEditor .flow-toolbar{padding:18px 24px;display:flex;align-items:end;gap:9px;background:#fff;border-bottom:1px solid #e7ebf4}
#flowEditor .flow-toolbar label{font-size:11px;color:#66738e;flex:1;min-width:190px;max-width:310px}
#flowEditor .flow-toolbar input{width:100%;min-width:0;height:41px;font-weight:700;border-color:#d8e0ee}
#flowEditor .flow-toolbar button{font-size:12px;padding:10px 13px;margin:0;min-height:41px;background:#f0f3fa;color:#334462;border:1px solid #e2e8f3}
#flowEditor .flow-toolbar #saveFlow{background:#4658ed;color:#fff;border-color:#4658ed}
#flowEditor .flow-toolbar button:hover{filter:brightness(.97)}
.studio-node-palette{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;padding:14px 24px;background:#f8faff;border-bottom:1px solid #e1e6f0}
.studio-palette-label{display:flex;flex-direction:column;gap:3px;font-size:10px;letter-spacing:1.3px;font-weight:800;color:#4c5a76}
.studio-palette-label small{font-size:11px;letter-spacing:0;font-weight:500;color:#8995a9}
.studio-palette-actions{display:flex;gap:8px;flex-wrap:wrap}
.studio-node-palette button{margin:0!important;padding:9px 14px!important;font-size:12px!important;font-weight:800;border-radius:9px!important;background:#fff!important;border:1px solid #dce2ee!important;box-shadow:0 2px 5px #17264c08}
.studio-node-palette button[data-node-type="document"]{border-left:4px solid #22a879!important;color:#176a50!important}
.studio-node-palette button[data-node-type="email"]{border-left:4px solid #dd8b34!important;color:#995c1e!important}
.studio-node-palette button[data-node-type="calendar"]{border-left:4px solid #8763cf!important;color:#6945a6!important}
.studio-node-palette button:not([data-node-type]){border-left:4px solid #4d83c6!important;color:#355e96!important}
.studio-canvas-header{padding:11px 24px;background:#f1f4fa;border-bottom:1px solid #e2e7f0;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:10px;letter-spacing:1.3px;font-weight:800;color:#65738e}
.studio-canvas-header small{font-weight:500;letter-spacing:0;margin-left:9px}
.studio-canvas-hint{font-size:11px;letter-spacing:0;font-weight:500}
.studio-canvas-viewport{width:100%;overflow:auto;background:#f5f7fb;max-height:min(75vh,850px);min-height:530px;overscroll-behavior:contain}
#flowEditor .flow-canvas{border:0!important;border-radius:0!important;box-shadow:none!important;min-height:530px!important;background-color:#f5f7fb!important;background-image:radial-gradient(#cbd4e4 1px,transparent 1px)!important;background-size:22px 22px!important;overflow:visible!important}
#flowEditor .graph-node{width:184px;min-height:86px;padding:12px 12px 10px;border:1px solid #d9e0ec;border-left:4px solid #5b8ec9;border-radius:11px;background:#fff;box-shadow:0 6px 18px #1c2c5215;gap:6px;transition:box-shadow .15s,border-color .15s}
#flowEditor .graph-node:hover{box-shadow:0 10px 26px #1c2c5224}
#flowEditor .graph-node.active{outline:2px solid #4658ed;outline-offset:2px}
#flowEditor .graph-node strong{font:800 12px/1.4 Manrope,system-ui;letter-spacing:-.1px;color:#22304d}
#flowEditor .graph-node-id{font-size:9px;color:#9aa6ba;letter-spacing:.8px}
#flowEditor .graph-node--document{border-left-color:#22a879;background:linear-gradient(90deg,#f2fcf7,#fff 25%)}
#flowEditor .graph-node--email{border-left-color:#dd8b34;background:linear-gradient(90deg,#fff8ee,#fff 25%)}
#flowEditor .graph-node--calendar{border-left-color:#8763cf;background:linear-gradient(90deg,#f8f4ff,#fff 25%)}
#flowEditor .graph-node--transcript,#flowEditor .graph-node--documentInput{border-left-color:#5b8ec9;background:linear-gradient(90deg,#f2f7ff,#fff 25%)}
#flowEditor .graph-port{width:14px;height:14px;top:32px;border:3px solid #7181a6;background:#fff;box-shadow:0 0 0 3px #fff}
#flowEditor .graph-port-out{background:#4658ed;border-color:#4658ed}
#flowEditor .graph-node button:not(.graph-port){border:1px solid #e3e8f1;background:#f6f8fc;color:#40516e;border-radius:7px}
#flowStatus:not(:empty){margin:0;padding:12px 24px;background:#f1f4ff;color:#3446a9;font-size:12px}
@media(max-width:750px){.studio-editor-header,#flowEditor .flow-toolbar,.studio-node-palette,.studio-canvas-header{padding-left:15px;padding-right:15px}.studio-editor-tag,.studio-canvas-hint{display:none}.studio-node-palette{align-items:flex-start}.studio-palette-actions{width:100%}.studio-canvas-viewport{min-height:420px}#flowEditor .flow-canvas{min-height:420px!important}#flowOverview{padding:18px}}

/* Heldere accountstap voor Gmail- en Outlook-koppelingen */
.mail-auth-panel{border:1px solid #dbe2f1;border-radius:13px;background:#f7f9ff;padding:17px;margin:16px 0 20px}
.mail-auth-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}
.mail-auth-heading strong{font:800 15px Manrope,system-ui}
#scrieberAuthState{font-size:12px;font-weight:700;color:#435477;background:#e8edff;border-radius:99px;padding:5px 10px}
.mail-auth-form{display:flex;flex-wrap:wrap;align-items:end;gap:10px;margin:12px 0}
.mail-auth-form label{flex:1;min-width:170px;margin:0}
.mail-auth-form input{width:100%;min-width:0}
.mail-auth-form button{margin:0}
.mail-auth-form[hidden],#scrieberLogout[hidden]{display:none!important}
#scrieberAuthMessage:not(:empty){font-size:13px;color:#3446a9;margin:10px 0 0}
@media(max-width:640px){.mail-auth-form{flex-direction:column;align-items:stretch}.mail-auth-form label,.mail-auth-form button{width:100%}}

/* Workflow Studio: drie duidelijk gescheiden blokcategorieën */
.studio-node-palette{display:grid;grid-template-columns:1fr 1fr 1.2fr;align-items:stretch;gap:0;padding:0;background:#fff}
.studio-palette-group{min-width:0;padding:16px 18px;border-right:1px solid #e3e8f2;display:flex;flex-direction:column;gap:12px}
.studio-palette-group:last-child{border-right:0}
.studio-palette-source{background:#f4f8ff}.studio-palette-process{background:#f3fbf7}.studio-palette-output{background:#faf7ff}
.studio-palette-group .studio-palette-actions{align-content:start}
.studio-palette-group .studio-palette-label{font-size:11px;letter-spacing:1px}
.studio-palette-source .studio-palette-label{color:#356da5}.studio-palette-process .studio-palette-label{color:#21865c}.studio-palette-output .studio-palette-label{color:#7551b2}
.studio-node-palette button[data-node-type="transcript"],.studio-node-palette button[data-node-type="documentInput"]{border-left:4px solid #5b8ec9!important;color:#356da5!important}
.studio-node-palette button[data-node-type="fileOutput"]{border-left:4px solid #8763cf!important;color:#6945a6!important}
.studio-node-palette button[data-node-type="document"]{border-left:4px solid #22a879!important;color:#176a50!important}
#flowEditor .graph-node--fileOutput{border-left-color:#8763cf;background:linear-gradient(90deg,#f8f4ff,#fff 25%)}
@media(max-width:900px){.studio-node-palette{grid-template-columns:1fr}.studio-palette-group{border-right:0;border-bottom:1px solid #e3e8f2;padding:12px 16px;gap:8px}}

/* Consistent favicon-based branding and compact application hierarchy */
.brand-icon{width:42px;height:42px;flex:none;display:block;border-radius:10px}
.brand{gap:12px;white-space:nowrap}
.workspace-tabs{display:flex;flex-wrap:wrap;gap:5px;align-items:center}
.workspace-tabs button{white-space:nowrap}
[data-panel][hidden],.manual-content[hidden]{display:none!important}
[data-panel="settings"]>section>h3{margin:28px 0 10px;padding-top:19px;border-top:1px solid #e6eaf4}
[data-panel="settings"]>section>h3:first-of-type{border-top:0}
#flowOverview #flowList{display:grid;grid-template-columns:repeat(auto-fill,minmax(235px,1fr));gap:13px}
#flowOverview .flow-list-card{min-width:0}
#flowOverview .flow-list-card button{margin:5px 5px 0 0}
.workflow-run-fields{align-items:end}
.manuals-section{padding:clamp(20px,3vw,34px)}
.manuals-switch{display:flex;flex-wrap:wrap;gap:8px;border-bottom:1px solid var(--border);padding-bottom:14px;margin:0 0 25px}
.manuals-switch button{margin:0;background:#f1f4fa;color:#52617e;border:1px solid #e0e6f2}
.manuals-switch button.active{background:#4658ed;color:#fff;border-color:#4658ed}
.manual-content{max-width:940px}
.manual-intro{padding:19px 22px;margin-bottom:23px;background:linear-gradient(115deg,#f1f4ff,#f7fafc);border:1px solid #e0e6fa;border-radius:15px}
.manual-intro h3{margin:5px 0 6px;font-size:22px}
.manual-intro p{margin:0;color:#5d6b84}
.manual-eyebrow{font-size:11px;letter-spacing:1.35px;color:#4458be;font-weight:800}
.manual-content h4{font:800 17px Manrope,system-ui;margin:28px 0 9px;color:#1e2d4a}
.manual-content p,.manual-content li{line-height:1.75;color:#455571}
.manual-content ol{padding-left:25px}
.manual-content code{font:600 12px/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;background:#eef2f9;padding:2px 5px;border-radius:5px;overflow-wrap:anywhere}
.manual-flow{display:flex;align-items:center;gap:10px;margin:20px 0 26px}
.manual-flow>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:3px;padding:16px 14px;background:#fff;border:1px solid #dbe3f4;border-radius:13px;box-shadow:0 4px 12px #1e3b7110}
.manual-flow>div b{display:grid;place-items:center;background:#e8edff;color:#3249bc;width:28px;height:28px;font-size:11px;border-radius:8px}
.manual-flow>div strong{font:800 13px Manrope,system-ui;color:#253451}
.manual-flow>div small{font-size:11px;color:#75819b}
.manual-flow>span{flex:none;font-size:23px;font-weight:800;color:#7181ae}
.manual-screen{margin:18px 0 26px;border:1px solid #dbe1ef;border-radius:15px;box-shadow:0 14px 34px #26345316;overflow:hidden;background:#fff}
.manual-screen-header{background:#17203d;color:#e6eaff;display:flex;align-items:center;gap:12px;padding:10px 16px;font-size:12px;font-weight:700}
.manual-screen-header em{margin-left:auto;font-size:10px;font-style:normal;letter-spacing:1px;color:#a3b2d9}
.manual-dots{color:#a7b8ea;letter-spacing:2px}
.manual-screen-body{background:#f6f8fe;padding:22px}
.mock-title{font:800 17px Manrope,system-ui;margin-bottom:13px}
.mock-line{height:10px;width:68%;border-radius:7px;background:#dce3f2;margin-bottom:14px}
.mock-line.short{width:42%;margin-top:13px}
.mock-recorder{background:white;border:1px solid #e0e6f0;border-radius:12px;padding:16px;display:flex;flex-direction:column;align-items:center;gap:8px}
.mock-recorder>span{font-size:10px;font-weight:800;letter-spacing:1.5px;color:#8190a9}
.mock-recorder>strong{font:800 27px Manrope,system-ui}
.mock-recorder i,.mock-button{display:inline-block;font-style:normal;background:#4658ed;color:#fff;font-weight:800;font-size:11px;padding:9px 13px;border-radius:8px;margin:4px}
.mock-recorder i+i{background:#e8ebf3;color:#6d7890}
.manual-mock-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.manual-mock-grid>div{font-size:12px;font-weight:800;color:#354462;min-width:0}
.manual-mock-grid span{display:block;margin:7px 0 14px;padding:11px;background:#fff;border:1px solid #d7deed;border-radius:9px;font-size:11px;font-weight:600;color:#7c88a0}
.manual-note{margin:22px 0;padding:15px 18px;border-left:4px solid #4658ed;background:#f3f5ff;border-radius:0 10px 10px 0}
.manual-note strong{font-size:14px}
.manual-note p{margin:5px 0 0}
.manual-faq details{border:1px solid #dfe5f0;border-radius:10px;padding:12px 16px;margin:9px 0}
.manual-faq summary{font-weight:800;cursor:pointer;color:#314467}
.manual-faq details p{margin-bottom:0}
.manual-code{display:grid;gap:10px;margin:14px 0}
.manual-code>div{padding:13px 15px;background:#f7f8fc;border:1px solid #e1e5ee;border-radius:10px}
.manual-code strong{display:block;margin-bottom:8px;font-size:12px}
.manual-code code{display:block;width:100%;word-break:break-all}
@media(max-width:850px){.manual-flow{gap:5px}.manual-flow>div{padding:10px 8px}.manual-flow>span{font-size:16px}}
@media(max-width:650px){.topbar{padding:0 16px}.brand{font-size:18px}.brand-icon{width:36px;height:36px}.manual-flow{flex-wrap:wrap;justify-content:center}.manual-flow>div{flex:1 1 43%;min-width:115px}.manual-flow>span{display:none}.manual-mock-grid{grid-template-columns:1fr}.manual-screen-header{gap:6px;font-size:10px}.manual-screen-body{padding:14px}.manual-intro{padding:14px}.manuals-switch button{flex:1 1 190px}}

/* Workflow persistence: explain server connection without blocking offline editing */
#flowStorageStatus{padding:12px 16px;margin:12px 0 4px;border-radius:10px;background:#f0f4fc;border:1px solid #dfe6f5;color:#344363;font-size:13px;overflow-wrap:anywhere}
#retryWorkflowStorage.workflow-retry{margin:7px 0 16px;padding:8px 14px;border:1px solid #d7dff1;border-radius:9px;background:#fff;color:#344b9c;font-size:12px}
#retryWorkflowStorage.workflow-retry:disabled{opacity:.55}


/* Bibliotheek — opname is het primaire dossier; resultaten blijven per uitvoering gegroepeerd. */
.library-section{max-width:none}
.library-toolbar{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:14px 17px;background:#f6f8fd;border:1px solid #e2e8f3;border-radius:13px;margin:10px 0 13px}
.library-toolbar label{margin:0;flex:0 1 220px}
.library-toolbar .library-search-label{flex:1 1 300px}
.library-toolbar input,.library-toolbar select{width:100%;min-width:0}
.library-toolbar button{margin:0}
#libraryStatus{color:#667590;font-size:13px;min-height:21px}
.library-list{display:grid;gap:16px}
.library-recording{border:1px solid #dce3f1;border-radius:16px;background:#fff;overflow:hidden;box-shadow:0 7px 24px #1c33590b}
.library-recording-header{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:19px 21px;background:#f8faff;border-bottom:1px solid #e3e9f4}
.library-recording-header h3{font:800 17px Manrope,system-ui;margin:0 0 4px;overflow-wrap:anywhere}
.library-recording-header p{margin:0}
.library-meta{color:#6b7891;font-size:12px;line-height:1.5}
.library-count{font-size:12px;font-weight:700;background:#e9efff;color:#354ca0;padding:7px 11px;border-radius:999px}
.library-source,.library-result-list{padding:14px 21px 17px}
.library-source{border-bottom:1px solid #e7ebf4}
.library-source h4,.library-result-list h4{font:800 13px Manrope,system-ui;color:#263859;margin:0 0 12px}
.library-source audio{max-width:100%;width:min(380px,100%);vertical-align:middle}
.library-source select{min-width:150px;margin:0 12px 8px 0}
.library-source button,.library-result-actions button{margin:6px 6px 6px 0;padding:8px 12px;font-size:12px}
.library-preview{margin:9px 0;border:1px solid #e2e8f3;border-radius:10px;padding:10px 13px;background:#fbfcff}
.library-preview summary{font-size:12px;font-weight:800;color:#354c9c;cursor:pointer}
.library-preview textarea{margin:10px 0 0;min-height:160px;max-height:340px;width:100%;font-size:13px}
.library-run{border:1px solid #e0e6f2;border-radius:11px;margin:10px 0;overflow:hidden}
.library-run>summary{background:#f6f8fd;padding:12px 15px;font-weight:800;font-size:13px;color:#344461;cursor:pointer}
.library-result{margin:12px 14px;padding:12px 14px;border:1px solid #e5e9f2;border-radius:10px;display:flex;flex-direction:column;gap:4px}
.library-result>strong{font-size:13px}
.library-result-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px;margin-top:4px}
.library-result-actions a,.library-drive-links a,.library-other-file a{color:#374bc1;font-weight:750;font-size:12px;text-decoration:underline;text-underline-offset:3px}
.library-drive-links{display:flex;align-items:center;gap:12px;flex-wrap:wrap;font-size:12px;margin:12px 0 3px}
.library-unlinked{margin-top:20px;border:1px solid #e1e7f1;border-radius:12px;padding:14px 17px}
.library-unlinked>summary{font-size:13px;font-weight:800;color:#36496e;cursor:pointer}
.library-unlinked>p{font-size:12px;color:#69768d}
.library-other-file{display:flex;justify-content:space-between;gap:13px;align-items:center;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid #edf0f6;font-size:12px}
.library-other-file span{min-width:0;overflow-wrap:anywhere}
.library-empty{border:1px dashed #d6dff1;border-radius:12px;background:#f8faff;padding:23px;color:#697894}
@media(max-width:640px){.library-recording-header,.library-source,.library-result-list{padding:13px}.library-toolbar{padding:12px}.library-toolbar label{flex:1 1 100%}.library-toolbar button{width:100%}.library-count{border-radius:7px}.library-source audio{display:block;margin-top:8px}.library-other-file{align-items:flex-start;flex-direction:column}}

/* Recording management lives only in Bibliotheek, alongside its documents. */
.library-recording-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:8px 0 13px}
.library-recording-actions button{margin:0;padding:9px 13px;min-height:38px;border:1px solid #dbe3f5;border-radius:10px;font-weight:700;font-size:12px}
.library-recording-actions button:first-child{background:#e9edff;color:#334ac1}
.library-recording-actions .library-delete-recording{margin-left:auto;background:#fff;color:#ab3647;border-color:#f0d5da}
.library-recording-edit{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px;padding:16px;border:1px solid #dde6f5;border-radius:12px;background:#f8faff;margin:12px 0}
.library-recording-edit label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#344363}
.library-recording-edit input{width:100%;min-width:0;border-radius:9px}
.library-recording-edit button{align-self:end;margin:0}
#recordingList[hidden],#recordingLibraryStatus[hidden]{display:none!important}
#profileAccountStatus{font-size:13px;color:#516384;line-height:1.55;margin:9px 0 16px}
@media(max-width:640px){.library-recording-actions{flex-direction:column;align-items:stretch}.library-recording-actions .library-delete-recording{margin-left:0}.library-recording-edit{grid-template-columns:1fr}}

/* Compact administration dashboard */
.user-management-section{display:grid;gap:17px;background:transparent;border:0;box-shadow:none;padding:0;margin:20px 0}
.user-management-section>.section-heading{margin:0 0 2px;padding:14px 8px}
.user-management-section .users-overview,.user-management-section .user-create-panel{background:#fff;border:1px solid #e1e7f2;border-radius:18px;padding:24px 26px;box-shadow:0 8px 28px rgba(35,49,88,.035)}
.user-management-head{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}
.admin-section-eyebrow{display:block;font-size:10px;letter-spacing:1.5px;color:#6676b1;font-weight:800;margin-bottom:7px}
.user-management-section h3{font-size:18px;letter-spacing:-.5px;margin:0 0 5px}
.user-management-section .hint{margin:4px 0 0;font-size:12px;line-height:1.55;color:#70809b}
.user-management-head>button{flex:none;margin:0;font-size:12px;padding:9px 14px;border:1px solid #dce4f7;background:#f7f9ff}
.admin-user-count{display:inline-block;vertical-align:middle;font-family:'DM Sans',sans-serif;font-size:11px;letter-spacing:0;color:#4560ab;background:#edf1ff;border-radius:25px;padding:4px 9px;margin-left:9px;font-weight:700}
.admin-user-list{display:grid;gap:9px}
.admin-user-card{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:13px 15px;border:1px solid #e5eaf4;border-radius:13px;background:#fbfcff}
.admin-user-identity{display:flex;align-items:center;gap:12px;min-width:190px;flex:1 1 260px}
.admin-user-avatar{display:grid;place-items:center;background:#e7ecff;color:#3d4fc3;width:42px;height:42px;border-radius:12px;flex:none;font-weight:800;font-size:12px}
.admin-user-names{min-width:0}
.admin-user-name{font-size:13px;font-weight:800;color:#18284a;display:flex;align-items:center;gap:8px}
.admin-self-label{background:#e9effd;color:#435cb5;font-size:10px;border-radius:20px;padding:2px 8px;font-weight:700}
.admin-user-email{display:block;color:#71819a;font-size:12px;overflow-wrap:anywhere;margin-top:2px}
.admin-user-controls{display:flex;align-items:end;justify-content:flex-end;gap:12px;flex:1 1 430px}
.user-management-section .admin-user-control{display:grid;gap:5px;margin:0;width:auto;flex:none;font-size:11px;line-height:1.3;color:#64728e}
.admin-user-control select{min-width:144px;height:41px;min-height:41px;padding:8px 11px;font-size:12px;border-color:#d8e0ef}
.admin-active-control{min-width:106px}
.admin-switch-wrap{display:flex;align-items:center;gap:8px;height:41px}
.admin-switch-input{position:absolute;opacity:0;width:42px;height:25px;cursor:pointer}
.admin-switch-track{position:relative;display:inline-block;width:39px;height:23px;border-radius:30px;background:#b9c2d3;transition:background .2s}
.admin-switch-track:after{content:'';position:absolute;width:17px;height:17px;border-radius:50%;background:white;left:3px;top:3px;box-shadow:0 1px 3px #0002;transition:transform .2s}
.admin-switch-input:checked+.admin-switch-track{background:#4854df}
.admin-switch-input:checked+.admin-switch-track:after{transform:translateX(16px)}
.admin-switch-input:focus-visible+.admin-switch-track{outline:3px solid #f28b69;outline-offset:3px}
.admin-switch-text{font-size:11px;color:#51627f;font-weight:700}
.admin-user-save{margin:0 0 1px!important;padding:9px 14px!important;min-height:41px;font-size:12px;border:1px solid #dce3f9;background:#edf1ff;color:#3049ad}
.admin-user-save:disabled{opacity:.4}
.user-create-panel>h3{margin-bottom:3px}
.user-create-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px;margin-top:15px;align-items:end}
.user-management-section .user-create-grid label{display:grid;gap:7px;margin:0;width:100%;font-size:12px;color:#455570}
.user-create-grid input,.user-create-grid select{width:100%;min-width:0;height:44px;min-height:44px;margin:0;border-radius:10px;border:1px solid #d6deed;padding:9px 12px;font-size:13px}
.user-create-actions{grid-column:1/-1;display:flex;justify-content:flex-end;margin-top:3px}
.user-create-actions button{margin:0;padding:10px 19px;font-size:12px}
.user-management-section .user-create-panel>.hint{margin-top:14px}
.user-management-section .admin-feedback{margin:0;padding:11px 15px;border-radius:11px;font-size:12px}
.user-management-section .admin-feedback[hidden]{display:none}
.admin-feedback-success{background:#f2faf6;color:#216847;border:1px solid #c8ebd8}
.admin-feedback-error{background:#fff4f4;color:#9b3042;border:1px solid #f1ccd1}
.admin-feedback-info{background:#f1f5ff;color:#3651a1;border:1px solid #dce5fc}
@media(max-width:920px){.admin-user-card{align-items:stretch;flex-direction:column}.admin-user-controls{justify-content:flex-start;flex:0 1 auto}.user-create-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.user-management-section .users-overview,.user-management-section .user-create-panel{padding:18px 14px}.user-management-head{align-items:flex-start}.admin-user-controls{flex-wrap:wrap}.admin-user-controls .admin-user-control{flex:1 1 130px}.admin-user-save{flex:1 1 100%}.user-create-grid{grid-template-columns:1fr}.user-create-actions{justify-content:stretch}.user-create-actions button{width:100%}}
/* Pre-recording processing configuration */
.recording-processing-choice{padding:16px 18px;margin:0 0 18px;border:1px solid #dce4f4;background:#f8faff;border-radius:14px}
.recording-processing-heading{display:flex;justify-content:space-between;flex-wrap:wrap;gap:5px 18px;margin-bottom:12px}
.recording-processing-heading strong{font:800 14px Manrope,system-ui;color:#20345c}
.recording-processing-heading span{font-size:12px;color:#687a99}
.recording-processing-fields{display:grid;grid-template-columns:minmax(180px,.8fr) minmax(240px,1.5fr);gap:12px}
.recording-processing-fields label{width:100%;display:flex;flex-direction:column;gap:6px;margin:0;font-size:12px}
.recording-processing-fields label[hidden]{display:none}
.recording-processing-fields select{width:100%;min-width:0;margin:0;background:#fff}
#recordingProcessStatus{font-size:12px;color:#637392;margin:12px 0 0}
@media(max-width:650px){.recording-processing-fields{grid-template-columns:1fr}}


/* Library cards: only recording metadata in the collapsed, fully clickable row. */
.library-recording{border-radius:15px;box-shadow:0 3px 15px rgba(29,49,90,.045)}
.library-recording-details{display:block}
.library-recording-details>.library-recording-header{list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:18px;padding:15px 19px;background:#fff;border:0;min-height:76px;transition:background .2s}
.library-recording-details>.library-recording-header::-webkit-details-marker{display:none}
.library-recording-details>.library-recording-header:hover{background:#f6f8ff}
.library-recording-details>.library-recording-header:focus-visible{outline:3px solid #e39062;outline-offset:-3px}
.library-recording-details[open]>.library-recording-header{background:#f7f9fe;border-bottom:1px solid #e3e9f4}
.library-recording-title{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.library-recording-title h3{font:800 14px Manrope,system-ui;margin:0 0 4px;letter-spacing:-.25px}
.library-recording-title p{margin:0;font-size:12px;color:#71809c}
.library-recording-icon{display:grid;place-items:center;flex:none;width:39px;height:39px;border-radius:11px;background:#eaf0ff;color:#4354c4;font-size:16px}
.library-recording-chevron{display:block;flex:none;color:#697997;font-size:23px;line-height:1;transition:transform .2s}
.library-recording-details[open] .library-recording-chevron{transform:rotate(180deg)}
.library-recording .library-source,.library-recording .library-result-list{padding:14px 19px}
@media(max-width:640px){.library-recording-details>.library-recording-header{padding:13px 12px;min-height:66px}.library-recording-title{gap:9px}.library-recording-title h3{font-size:13px}.library-recording-title p{font-size:11px}.library-recording-icon{width:34px;height:34px}}

.device-pair-settings{padding:16px 18px;border:1px solid #dfe6f3;border-radius:13px;background:#f9fbff;margin:12px 0 22px}
.device-pair-settings h3{margin:0 0 5px}
.device-pair-settings p{font-size:13px;color:#64738e}
.device-pair-settings button{font-size:12px}
.pwa-pairing-code{font:800 20px Manrope,system-ui;color:#283cb8;letter-spacing:2px}
#pwaPairCodeResult{overflow-wrap:anywhere}
#revokePwaDevices{background:#fff;color:#a83c53;border:1px solid #eacdd4}

.pwa-device-list{display:grid;gap:8px;margin:10px 0 15px}
.pwa-device-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 13px;border:1px solid #e1e8f6;border-radius:11px;background:#fff}
.pwa-device-item strong{display:block;font-size:13px;color:#203458}
.pwa-device-item small{display:block;font-size:11px;color:#71809b}
.pwa-device-item button{flex:none;margin:0!important;font-size:11px!important;color:#a83c53;background:#fff;border:1px solid #e9d8e0}
@media(max-width:590px){.pwa-device-item{align-items:flex-start;flex-direction:column}.pwa-device-item button{width:100%}}

/* Administrators can preview the user's effective privileges without changing their account. */
.admin-preview-panel{display:flex;flex-wrap:wrap;align-items:center;gap:10px 24px;justify-content:space-between;margin:0 0 23px;padding:16px 19px;border:1px solid #d9e2f7;background:#f7f9ff;border-radius:14px}
.admin-preview-panel[hidden]{display:none!important}
.admin-preview-panel strong{font:800 15px Manrope,system-ui}
.admin-preview-panel p{font-size:12px;color:#687895;margin:4px 0}
.admin-preview-actions{display:flex;align-items:center;gap:9px}
.admin-preview-actions label{font-size:12px;font-weight:700}
.admin-preview-actions select{min-width:142px;padding:9px 11px;margin:0}
.admin-preview-actions button{margin:0;font-size:12px}
#adminPreviewStatus{flex:1 1 100%;font-size:11px;margin:0;color:#516391}
.admin-preview-panel.preview-active{border-color:#b7c4f5;background:#eef2ff}
#transcriptSupportFields[hidden]{display:none!important}
@media(max-width:590px){.admin-preview-panel{align-items:stretch}.admin-preview-actions{flex-wrap:wrap}.admin-preview-actions select{flex:1}}

/* Bibliotheek: precies vijf rustige, klikbare resultaten per opname. */
.library-five-items{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;padding:17px 19px}
.library-five-item{display:flex;align-items:center;gap:11px;min-width:0;width:100%;min-height:78px;margin:0;padding:13px 12px;border:1px solid #e1e7f5;border-radius:13px;background:#fff;text-align:left;box-shadow:0 3px 12px rgba(31,53,103,.035);color:#1b2c58;transition:background .15s,border-color .15s,transform .15s}
.library-five-item:hover{background:#f3f6ff;border-color:#bdcafa;transform:translateY(-1px)}
.library-five-icon{display:grid;place-items:center;flex:0 0 37px;height:37px;border-radius:10px;background:#e9eeff;color:#4656cc;font-size:14px;font-weight:800}
.library-five-text{display:grid;gap:2px;min-width:0;flex:1}
.library-five-text strong{font-size:13px;line-height:1.25;white-space:nowrap}
.library-five-text small{font-size:10px;line-height:1.4;color:#72819b;overflow-wrap:anywhere}
.library-five-arrow{font-size:17px;font-weight:600;color:#6375af;align-self:flex-start}
@media(max-width:960px){.library-five-items{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:630px){.library-five-items{grid-template-columns:repeat(2,minmax(0,1fr));padding:12px;gap:8px}.library-five-item{min-height:70px;padding:10px 8px}.library-five-icon{flex-basis:29px;height:29px;font-size:12px}.library-five-text strong{font-size:12px}.library-five-text small{font-size:10px}}

/* Opnames: keep the actual recording controls, with an illustrated iPhone guide beneath. */
.recorder-iphone-guide{display:flex;flex-direction:column;align-items:center;max-width:690px;margin:12px auto 0;text-align:center}
.recorder-iphone-guide img{display:block;width:min(100%,490px);height:auto;margin:-8px auto -4px;filter:drop-shadow(0 15px 16px rgba(77,83,169,.09))}
.recorder-recommendation{display:inline-flex;align-items:center;gap:7px;padding:8px 15px;border-radius:999px;background:#e8edff;color:#334bd0;font-weight:800;font-size:13px}
.recorder-guide-url{font-size:14px;font-weight:650;margin:12px 0 5px;color:#536489}
.recorder-guide-url a{color:#283ec9;overflow-wrap:anywhere}
.recorder-guide-copy{max-width:640px;font-size:12px;line-height:1.7;color:#65748f;margin:8px 0}
.recorder-guide-note{font-size:11px;line-height:1.6;color:#8290aa;margin:5px 0 0}
@media(max-width:600px){.recorder-iphone-guide img{width:min(100%,360px)}.recorder-guide-url{font-size:12px}.recorder-guide-copy{font-size:12px;padding:0 5px}}
/* Workflow Studio editor is one screen with one heading; overview keeps its own title. */
[data-panel="flows"].studio-editor-active>section>.section-heading{display:none}
[data-panel="flows"].studio-editor-active>section{padding-top:0}
[data-panel="flows"].studio-editor-active #flowStorageStatus{font-size:11px;min-height:0;margin:0}
[data-panel="flows"].studio-editor-active .studio-editor-header{margin-top:0}

/* Scrieber Studio begins with processing; the smartphone is the primary recorder. */
.studio-dashboard{padding:27px 30px 32px}
.studio-dashboard>.section-heading{margin-bottom:24px}
.studio-dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.studio-dashboard-card{display:flex;flex-direction:column;align-items:flex-start;min-width:0;border:1px solid #dde5f6;background:#fff;border-radius:17px;padding:22px;box-shadow:0 6px 20px rgba(20,41,94,.045)}
.studio-dashboard-card h3{font-size:18px;letter-spacing:-.45px;margin:10px 0 7px}
.studio-dashboard-card>p{font-size:13px;line-height:1.65;color:#667791;margin:0 0 17px;flex:1}
.studio-dashboard-recorder{background:linear-gradient(135deg,#f0f2ff 0%,#fff 82%)}
.studio-dashboard-recorder>img{display:block;align-self:center;width:min(100%,280px);height:145px;object-fit:contain;margin:-17px auto -7px}
.studio-dashboard-kicker{font-size:10px;color:#475bc7;letter-spacing:1.2px;font-weight:800}
.studio-dashboard-symbol{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;font-size:27px;color:#4658ed;background:#e9edff}
.studio-dashboard-card .dashboard-card-link{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;border:0;margin:0;background:#e9edff;color:#2f46b5;font-size:12px;font-weight:800;padding:11px 15px;border-radius:10px;min-height:43px}
.studio-dashboard-card .dashboard-card-link:hover{background:#dce3ff}
.studio-dashboard-card .dashboard-card-note{font-size:11px;color:#687796;margin-top:12px;margin-bottom:0}
.dashboard-text-button{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;font-size:11px!important;color:#334ec2!important;text-decoration:underline;text-underline-offset:2px;margin:0!important}
.studio-dashboard-secondary{display:flex;align-items:center;flex-wrap:wrap;justify-content:space-between;gap:12px;margin-top:19px;padding:15px 18px;border:1px solid #e0e6f4;border-radius:13px;background:#f7f9ff;color:#64718b;font-size:12px}
.studio-dashboard-secondary button{margin:0;padding:9px 12px;font-size:12px}
.library-import{margin:13px 0 18px;border:1px solid #e0e7f5;border-radius:12px;background:#f8faff;padding:12px 16px}
.library-import summary{cursor:pointer;font-weight:800;color:#354cbb;font-size:13px}
.library-import>p{color:#667793;font-size:12px;margin:12px 0}
.library-import>label{display:flex;max-width:550px;margin:12px 0}
.library-import input[type=file]{width:100%;max-width:100%}
[data-panel="workspace"] #audio{border:1px solid #dce3f3}
@media(max-width:700px){.studio-dashboard{padding:20px 16px}.studio-dashboard-grid{grid-template-columns:1fr}.studio-dashboard-card{padding:19px}}

/* Persistent signed-in identity in the Studio header. */
.topbar-account{display:flex;align-items:center;justify-content:flex-end;gap:14px;min-width:0}
.topbar-account .topbar-meta{white-space:nowrap;text-decoration:none;font-size:12px}
.account-identity{display:flex;align-items:center;gap:10px;min-width:0;padding:6px 12px 6px 7px;border:1px solid rgba(201,211,255,.22);background:rgba(255,255,255,.09);border-radius:13px}
.account-avatar{display:grid;place-items:center;flex:0 0 36px;height:36px;background:#e8ecff;color:#293db4;border-radius:11px;font-size:14px;font-weight:800}
.account-info{display:flex;flex-direction:column;gap:0;min-width:0;line-height:1.35}
.account-caption{font-size:10px;color:#bac6eb}
.account-info strong{font-size:13px;font-weight:800;max-width:210px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#fff}
.account-info small{font-size:10px;color:#c8d1ff}
.account-logout{flex:none;min-height:40px;margin:0!important;padding:10px 14px!important;color:#f2f4ff;background:rgba(255,255,255,.13);border:1px solid rgba(220,230,255,.24);font-size:12px;font-weight:750}
.account-logout:hover:not(:disabled){background:rgba(255,255,255,.24)}
@media(max-width:780px){.topbar{gap:10px;padding-left:15px;padding-right:15px}.topbar-account{gap:7px}.topbar-account .topbar-meta{display:none}.account-info strong{max-width:120px}.account-identity{padding-right:8px}.account-logout{padding:9px 10px!important}}
@media(max-width:470px){.brand{font-size:16px;gap:6px}.brand-icon{width:31px;height:31px}.brand small{font-size:9px}.topbar-account{gap:5px}.account-avatar{display:none}.account-info strong{max-width:82px;font-size:11px}.account-caption{font-size:9px}.account-info small{font-size:9px}.account-identity{padding:5px 7px}.account-logout{padding:8px!important;font-size:11px}}

/* My instructions: every instruction has the same clear, complete set of actions. */
.scrieber-instruction-card{display:flex;flex-direction:column;align-items:stretch;gap:11px;min-width:0;padding:19px;border:1px solid #e1e7f5;border-radius:15px;background:#fff}
.instruction-card-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:12px}
.instruction-card-identity{min-width:0}
.instruction-card-identity h3{font-size:15px;line-height:1.35;margin:0 0 6px;overflow-wrap:anywhere}
.instruction-card-kind{font-size:11px;color:#7080a0}
.instruction-card-shared{white-space:nowrap;border-radius:999px;padding:4px 9px;background:#e8f6f0;color:#267353;font-weight:800;font-size:10px}
.instruction-card-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;line-clamp:3;overflow:hidden;max-height:70px;line-height:1.6;color:#66758f;font-size:12px;margin:0}
.instruction-card-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:3px}
.instruction-card-actions button{min-height:36px;margin:0;padding:8px 11px;font-size:11px}
.instruction-card-actions .instruction-delete-action{background:#fff;color:#ae4052;border:1px solid #f0d4d9}
.instruction-card-details{border-top:1px solid #edf0f7;padding-top:10px;margin-top:3px}
.instruction-card-details summary{cursor:pointer;color:#3549aa;font-size:12px;font-weight:750}
.instruction-card-full{font:12px/1.7 system-ui,sans-serif;white-space:pre-wrap;overflow-wrap:anywhere;max-height:340px;overflow:auto;background:#f8faff;padding:13px;border-radius:10px}
.template-publish-setting{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;margin:13px 0!important;font-size:12px!important}
.template-publish-setting input{width:auto;flex:none;margin:0}
.pwa-pair-qr-panel{max-width:420px;margin:17px 0;padding:19px;border-radius:15px;border:1px solid #d8e1f7;background:#fff}
.pwa-pair-qr-panel[hidden]{display:none!important}
.pwa-pair-qr-image{width:fit-content;max-width:100%;margin:0 auto;padding:12px;background:white;border-radius:12px;border:1px solid #e8edf8}
.pwa-pair-qr-image img{display:block;width:min(280px,100%);height:auto;max-width:100%}
.pwa-pair-qr-panel p{font-size:12px;line-height:1.55;color:#64718f}

/* Persistent phone pairing in Scrieber Studio's left navigation column. */
.app-sidebar .sidebar-qr{display:flex;flex-direction:column;gap:10px;margin-top:26px;padding-top:22px;border-top:1px solid rgba(217,227,255,.18)}
.app-sidebar .sidebar-qr h3{font-size:15px;color:#fff;font-weight:800;margin:0}
.app-sidebar .sidebar-qr>p{font-size:11px;line-height:1.55;color:#c6d2f1;margin:0}
.app-sidebar .sidebar-qr .pwa-pair-qr-panel{width:100%;max-width:280px;padding:10px;margin:0;border:1px solid rgba(255,255,255,.22);border-radius:12px;background:#fff}
.app-sidebar .sidebar-qr .pwa-pair-qr-image{width:100%;border:0;padding:0;display:grid;place-items:center}
.app-sidebar .sidebar-qr .pwa-pair-qr-image img{width:min(100%,210px);height:auto}
.app-sidebar .sidebar-qr .pwa-pair-qr-panel p{color:#536489;font-size:10px;margin:7px 0 0}
.app-sidebar .sidebar-refresh-qr{align-self:flex-start;background:#e7ecff;color:#2b43a8;margin:0;font-size:11px;padding:9px 12px}
.app-sidebar .qr-loading{font-size:11px;color:#586789;padding:24px 5px}
.app-sidebar #pwaPairCodeResult{font-size:10px;line-height:1.5;color:#bfcdf3;overflow-wrap:anywhere;margin:0}
@media(max-width:999px){.app-sidebar .sidebar-qr{margin-top:13px;padding-top:12px}.app-sidebar .sidebar-qr .pwa-pair-qr-image img{width:140px}}
@media(min-width:1000px){.app-sidebar .sidebar-qr{max-width:270px}}

/* Independent, opt-in inspiration library within Documentinstructies. */
.inspiration-intro{grid-column:1/-1;background:#f4f6ff;border:1px solid #e0e5f7;padding:18px 20px;border-radius:15px;margin:0 0 7px}
.inspiration-intro h3{font:800 17px Manrope,system-ui;margin:0 0 6px;color:#24356b}
.inspiration-intro p{font-size:12px;line-height:1.65;color:#637392;margin:0}
.inspiration-card{border-color:#dbe2fa;background:linear-gradient(145deg,#f9faff,#fff 70%)}
.inspiration-card .instruction-card-preview{min-height:46px}
.inspiration-card .instruction-card-details{width:100%}
#inspirationToggle.active{background:#4658ed;color:#fff}

/* Per-user password reset is an explicit admin action; no passwords stored in frontend code. */
.admin-password-reset{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;flex-basis:100%;padding:13px;border-radius:12px;background:#f6f8ff;border:1px solid #dce4f6}
.admin-password-reset[hidden]{display:none!important}
.admin-password-reset label{display:flex;flex-direction:column;gap:5px;min-width:180px;flex:1}
.admin-password-reset input{width:100%;min-width:0}
.admin-password-reset button{margin:0}
.admin-user-reset{margin:0;font-size:12px}
