:root{--bg:#f5f7fc;--white:#fff;--ink:#142542;--muted:#8190aa;--text:#243654;--line:#e6ebf4;--blue:#345ae8;--blue-d:#2948c5;--pale:#eef3ff;--panel-shadow:0 18px 55px rgba(29,52,96,.043);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;font-synthesis:none;}
*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg);color:var(--ink)}body{overflow-x:hidden}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}button:focus-visible,.thumb:focus-visible{outline:3px solid var(--pesev-link,#2542c7);outline-offset:3px}button{border:0}p,h1,h2,h3{margin:0}a{text-decoration:none;color:inherit}[hidden]{display:none!important}
.app-shell{width:min(1690px,100%);padding:0 30px;margin:auto;min-height:100dvh;display:flex;flex-direction:column}
.topbar{height:96px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line);gap:18px}.brand{display:flex;align-items:center;gap:13px;min-width:0}.brand-mark{height:46px;width:46px;display:grid;place-items:center;border-radius:15px;color:white;background:linear-gradient(135deg,#24395d,#4569de);box-shadow:0 6px 15px #22396528;font-size:27px;font-weight:800;letter-spacing:-2px}.brand-name{font-size:23px;font-weight:800;letter-spacing:-.9px;line-height:1.1}.brand-sub{font-size:12px;color:var(--muted);padding-top:4px}.top-actions{display:flex;align-items:center;gap:12px}.privacy-pill{font-size:12px;color:#168c7b;margin-right:7px;display:flex;align-items:center;gap:8px;font-weight:650}.privacy-dot,.session-dot{width:7px;height:7px;border-radius:50%;background:#25b19c;display:inline-block;flex:none}.btn{display:inline-flex;gap:8px;align-items:center;justify-content:center;border-radius:12px;padding:12px 18px;font-size:13px;font-weight:720;min-height:42px;white-space:nowrap;transition:background .16s,transform .16s,box-shadow .16s}.btn:hover:not(:disabled){transform:translateY(-1px)}.btn:active:not(:disabled){transform:translateY(0)}.btn-soft{background:white;color:#29395a;border:1px solid #dbe2f0;box-shadow:0 2px 3px #14234407}.btn-soft:hover{background:#f8faff}.btn-primary{background:linear-gradient(135deg,#4167f6,#2f52dc);color:white;box-shadow:0 6px 14px #3859df26}.btn-primary:hover:not(:disabled){background:#274bc8}.btn-primary:disabled{background:#c5cde4;box-shadow:none;color:#f8f9ff}.btn-secondary{background:white;color:#3c527c;border:1px solid #dce3f0}.btn-secondary:disabled{color:#aeb9ce;background:#f6f8fc}.btn-danger{background:#e54856;color:white}.button-icon{font-size:18px;line-height:10px;font-weight:500}
.workspace-title{padding:29px 1px 27px;display:flex;align-items:end;justify-content:space-between;gap:15px}.eyebrow{font-size:10px;color:#4567c4;letter-spacing:1.5px;font-weight:750}.workspace-title h1{font-size:29px;letter-spacing:-1.25px;font-weight:770;margin:6px 0 7px}.workspace-title p{font-size:13px;color:var(--muted)}.session-indicator{font-size:12px;color:#6d7b97;display:flex;gap:9px;align-items:center;padding-bottom:5px;white-space:nowrap}.session-dot{background:#adc1d6}
.editor-grid{display:grid;grid-template-columns:minmax(222px,252px) minmax(0,1fr) minmax(274px,290px);align-items:stretch;gap:17px;height:calc(100dvh - 263px);min-height:555px;max-height:900px}.panel{background:var(--white);border-radius:19px;border:1px solid #e8ecf4;box-shadow:var(--panel-shadow);min-width:0;overflow:hidden}.panel-header{padding:21px 20px 16px;display:flex;align-items:center;justify-content:space-between;gap:9px}.section-kicker{font-size:10px;color:#8c9bb2;letter-spacing:1.3px;font-weight:780}.panel-header h2{font-size:17px;letter-spacing:-.45px;font-weight:750;margin-top:7px}.count-badge{background:#eef3ff;border-radius:50px;color:#3e61bf;font-size:11px;padding:3px 8px;margin-left:3px}.square-btn{border-radius:9px;color:#3154c6;font-size:22px;width:32px;height:32px;background:#eef3ff}.square-btn:hover{background:#dfe8ff}
.pages-panel{display:flex;flex-direction:column}.document-list{margin:0 15px 14px;padding:12px;background:#f7f9fd;border-radius:11px;min-height:50px;display:flex;flex-direction:column;gap:7px;max-height:95px;overflow:auto}.muted-placeholder{font-size:12px;color:#9aa7b9}.doc-chip{display:flex;align-items:center;gap:7px;min-width:0;font-size:11px;color:#455b80;font-weight:650}.doc-chip i{width:7px;height:7px;border-radius:50%;background:#6a8ee6;flex:none}.doc-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.doc-chip small{color:#a0aec4;margin-left:auto;flex:none;font-size:10px}.thumb-toolbar{padding:0 16px 12px;display:flex;align-items:center;justify-content:space-between;gap:6px;border-bottom:1px solid var(--line);font-size:11px;color:var(--muted)}.mini-btn{padding:7px 9px;background:#f3f5fa;color:#61708d;border-radius:8px;font-size:10px;font-weight:750}.mini-btn[aria-pressed=true]{background:#e4ebff;color:#3254c8}.thumb-list{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;padding:15px 15px 17px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:14px 10px;scrollbar-color:#d9e1ed transparent;scrollbar-width:thin}.thumb-empty{grid-column:1/-1;font-size:12px;color:#a4b1c3;text-align:center;line-height:1.8;padding:25px 0}.thumb{border:2px solid transparent;border-radius:11px;padding:7px 6px 7px;background:#f8f9fd;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;gap:7px;transition:all .13s;cursor:grab;user-select:none}.thumb:hover{background:#f0f4ff}.thumb.active{border-color:#6686f5;background:#eff3ff}.thumb.selected{box-shadow:inset 0 0 0 1px #7392f9}.thumb.drag-over{border-color:#23b1a0;background:#e9fbf7}.thumb:active{cursor:grabbing}.thumb-paper{width:100%;max-width:91px;aspect-ratio:0.707;box-shadow:0 3px 9px #29395920;background:white;display:flex;align-items:center;justify-content:center;overflow:hidden;border-radius:3px}.thumb-paper canvas{max-height:100%;max-width:100%;height:auto;width:auto;object-fit:contain}.thumb-paper .thumb-loading{color:#a6b3c7;font-size:9px}.thumb-index{font-size:10px;color:#64738e;font-weight:720}.select-dot{position:absolute;right:6px;top:6px;width:14px;height:14px;background:#3f65eb;color:white;border-radius:50%;display:grid;place-items:center;font-size:9px;box-shadow:0 2px 5px #17295735}.pages-footer{padding:12px 18px 16px;border-top:1px solid var(--line);font-size:11px;color:#8d9db5;line-height:1.55}.pages-footer span{font-weight:760;color:#506789;display:block;margin-bottom:3px}.pages-footer small{font-size:10px}
.viewer-panel{display:flex;flex-direction:column;background:#fff;position:relative}.viewer-toolbar{height:73px;padding:13px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:14px}.filename-container{display:flex;align-items:center;gap:11px;min-width:0}.file-outline{font-size:21px;color:#486ad9}.filename-stack{min-width:0;display:flex;flex-direction:column;gap:5px}.filename-stack>span{font-size:13px;font-weight:750;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.filename-stack small{font-size:11px;color:#91a0b6}.zoom-controls{display:flex;align-items:center;background:#f5f7fc;border:1px solid #eef1f8;border-radius:9px;padding:3px;flex:none}.zoom-controls button{background:transparent;color:#52617a;font-size:17px;font-weight:700;width:27px;height:27px}.zoom-controls button:disabled{opacity:.35}.zoom-controls span{font-size:11px;min-width:43px;text-align:center;color:#677997;font-weight:700}.viewer-area{flex:1;min-height:0;background:#eff2f9;position:relative;overflow:auto;display:flex;align-items:flex-start;justify-content:center;scrollbar-color:#cdd7e9 transparent}.empty-state{align-self:center;display:flex;align-items:center;flex-direction:column;text-align:center;padding:15px 28px 28px;max-width:470px;margin:auto}.hero-art{height:184px;width:230px;position:relative;margin-bottom:26px}.art-sheet{position:absolute;background:white;border:1px solid #dfe6f5;width:116px;height:150px;border-radius:7px;top:15px;left:57px;box-shadow:0 14px 30px #24375a15}.art-left{transform:rotate(-15deg) translate(-30px,-5px);background:#f7faff}.art-right{transform:rotate(12deg) translate(30px,-3px);background:#fdfdff}.art-center{padding:24px 19px;display:flex;gap:9px;flex-direction:column}.art-line{display:block;height:5px;background:#c4d3e9;border-radius:9px;width:60%}.art-line.wide{height:10px;width:76%;background:#476dce;margin-bottom:2px}.art-line.medium{width:80%}.art-block{width:100%;height:31px;background:#eff4fe;border-radius:5px}.art-plus{position:absolute;right:8px;bottom:4px;width:46px;height:46px;border-radius:14px;color:white;background:#4164ed;display:grid;place-items:center;font-size:25px;box-shadow:0 5px 15px #3657d63b}.empty-label{font-size:10px;color:#5f7bba;letter-spacing:1.4px;font-weight:800;margin-bottom:10px}.empty-state h2{font-size:25px;letter-spacing:-.85px;margin-bottom:12px}.empty-state>p{font-size:13px;color:#8d9db4;line-height:1.8;max-width:320px;margin-bottom:22px}.btn-large{padding:13px 20px}.empty-state .empty-footnote{font-size:11px;color:#91a3bc;margin-top:19px;margin-bottom:0}.empty-footnote span{color:#26aa9a}.preview-stage{padding:26px 28px;min-width:100%;min-height:100%;display:flex;align-items:flex-start;justify-content:center;position:relative}.preview-stage canvas{display:block;background:white;max-width:none;box-shadow:0 12px 35px #2b405629;border-radius:2px}.viewer-loading{position:absolute;top:42%;left:50%;transform:translate(-50%,-50%);background:white;padding:11px 17px;border-radius:8px;color:#536b94;box-shadow:0 8px 30px #223f6633;font-size:12px}.drop-overlay{position:absolute;inset:8px;background:#e1eaffed;border:3px dashed #5376ed;border-radius:15px;z-index:10;display:grid;place-items:center;text-align:center;color:#3455ae;font-size:30px}.drop-overlay strong{display:block;font-size:19px;margin:5px 0}.drop-overlay small{display:block;font-size:12px;font-weight:400}.viewer-bottom{border-top:1px solid #e8edf6;display:flex;justify-content:space-between;align-items:center;padding:12px 20px;font-size:11px;color:#8d9db6;gap:8px}.viewer-bottom>div{display:flex;align-items:center;gap:9px}.divider-dot{font-size:13px}kbd{font-size:10px;background:#f3f5f9;border:1px solid #e6eafa;padding:2px 5px;border-radius:4px}
.tools-panel{display:flex;flex-direction:column}.tools-heading{padding-bottom:22px}.tool-count{font-size:10px;border-radius:8px;background:#f2f5fa;color:#72829e;padding:6px 8px;font-weight:700}.tools-scroll{padding:0 16px;overflow:auto;flex:1;scrollbar-width:thin}.tool-section{padding-bottom:22px;margin-bottom:21px;border-bottom:1px solid var(--line)}.tool-section h3{font-size:12px;letter-spacing:-.1px;font-weight:760;color:#506181;margin:0 0 13px}.tool-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.tool-card{padding:13px 7px 12px;background:#f7f9fd;border:1px solid #edf0f7;border-radius:11px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;gap:7px;color:#27395a;transition:all .15s}.tool-card:hover:not(:disabled){border-color:#c7d7ff;background:#f0f4ff;transform:translateY(-1px)}.tool-card:disabled{opacity:.53}.tool-card>span:not(.tool-icon){font-size:11px;font-weight:780;line-height:1.2}.tool-card small{font-size:10px;color:#98a6bb;line-height:1.2}.tool-icon{height:29px;width:29px;border-radius:8px;display:grid;place-items:center;font-size:18px;font-weight:700}.tool-icon.red{background:#fdebef;color:#df6070}.tool-icon.lavender{background:#f0edff;color:#7965e0}.tool-icon.blue{background:#e9f1ff;color:#4875d3}.move-row{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin-top:10px}.move-row button{border-radius:9px;padding:10px 5px;background:#f3f6fc;border:1px solid #e7edf8;color:#476188;font-size:10px;font-weight:720;line-height:1.4}.move-row button:disabled{opacity:.5}.move-row button:hover:not(:disabled){background:#e8efff}.action-line{width:100%;background:#f7f9fe;border:1px solid #e8edf7;border-radius:11px;padding:12px 10px;display:flex;align-items:center;gap:10px;text-align:left;color:#31486f}.action-line:hover{background:#f0f5ff}.action-icon{border-radius:10px;background:#e8efff;width:35px;height:35px;display:grid;place-items:center;font-size:20px;color:#4266da;flex:none}.action-line span:nth-child(2){display:flex;flex-direction:column;gap:4px;min-width:0}.action-line strong{font-size:11px;line-height:1.3}.action-line small{font-size:10px;color:#96a5bc;line-height:1.3}.right-arrow{margin-left:auto;font-size:25px;color:#9ba9c1}.history-buttons{display:flex;gap:8px}.history-buttons button{flex:1;border:1px solid #e3e9f4;background:white;border-radius:9px;padding:10px 5px;color:#43618f;font-size:16px}.history-buttons span{font-size:11px;font-weight:680}.history-buttons button:disabled{opacity:.4}.history-buttons button:hover:not(:disabled){background:#f2f6ff}.coming-section{border:0;margin-bottom:5px;padding-bottom:8px}.coming-head{display:flex;justify-content:space-between;align-items:center}.coming-head span{font-size:9px;color:#8a83c8;background:#f1efff;border-radius:6px;padding:4px 7px;font-weight:750}.coming-items{display:flex;flex-wrap:wrap;gap:7px}.coming-items span{color:#8c9ab0;background:#f7f8fc;border:1px solid #eff2f7;border-radius:6px;padding:7px 8px;font-size:10px}.coming-section p{font-size:10px;line-height:1.55;color:#a2afc2;margin-top:10px}.export-panel{border-top:1px solid var(--line);padding:15px 16px 18px;background:#fff}.export-summary{display:flex;justify-content:space-between;font-size:11px;gap:7px;margin-bottom:12px}.export-summary span{color:#9aa9bd}.export-summary strong{color:#344f7a}.export-full{width:100%;margin-bottom:8px}.export-full:last-child{margin-bottom:0}
.site-footer{display:flex;justify-content:space-between;gap:20px;align-items:center;min-height:57px;padding:13px 3px;color:#93a0b4;font-size:11px}.site-footer a{color:#5471a9}.site-footer a:hover{text-decoration:underline}
.toast{position:fixed;z-index:60;bottom:25px;left:50%;transform:translateX(-50%);max-width:min(600px,calc(100vw - 28px));background:#1b2b49;color:white;box-shadow:0 12px 35px #15213c44;padding:14px 20px;border-radius:12px;font-size:13px;line-height:1.5;text-align:center}.toast.error{background:#9c3546}.modal-backdrop{position:fixed;z-index:80;inset:0;background:#121e378c;display:flex;justify-content:center;align-items:center;padding:20px}.confirm-card{background:white;border-radius:19px;padding:28px;width:min(410px,100%);box-shadow:0 30px 90px #10233d4d;text-align:center}.confirm-icon{width:45px;height:45px;margin:0 auto 15px;background:#ffedf0;color:#d84862;border-radius:50%;display:grid;place-items:center;font-size:21px;font-weight:800}.confirm-card h2{font-size:20px;margin-bottom:10px}.confirm-card p{font-size:13px;color:#8491a7;line-height:1.6;margin-bottom:24px}.confirm-actions{display:flex;justify-content:center;gap:10px}
@media(min-width:1450px){.editor-grid{grid-template-columns:270px minmax(0,1fr) 308px}.tools-scroll{padding-left:18px;padding-right:18px}}
@media(max-width:1130px){.app-shell{padding:0 18px}.editor-grid{grid-template-columns:190px minmax(0,1fr) 256px;gap:11px}.panel-header{padding-left:14px;padding-right:14px}.thumb-list{padding:12px 9px;gap:8px}.tools-scroll{padding:0 11px}.export-panel{padding:13px 11px}.pages-footer{padding:10px}.tool-card{padding:10px 6px}}
@media(max-width:850px){.topbar{height:75px}.workspace-title{padding:22px 0}.workspace-title h1{font-size:24px}.editor-grid{height:auto;max-height:none;min-height:0;display:grid;grid-template-columns:190px minmax(0,1fr);grid-template-areas:'pages viewer' 'tools tools'}.pages-panel{grid-area:pages;min-height:505px;max-height:650px}.viewer-panel{grid-area:viewer;min-height:505px}.tools-panel{grid-area:tools}.tools-scroll{display:grid;grid-template-columns:1fr 1fr 1fr 1fr;gap:15px;padding:0 18px;overflow:visible}.tool-section{border:0;margin:0}.coming-section{padding:0}.export-panel{display:grid;grid-template-columns:1fr 1fr;gap:10px}.export-summary{grid-column:1/-1}.export-full{margin:0}.tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tool-section h3{margin-bottom:9px}.tools-heading{padding-bottom:15px}.site-footer{padding:22px 5px}}
@media(max-width:650px){.app-shell{padding:0 12px}.topbar{height:72px}.brand-mark{width:40px;height:40px;border-radius:12px}.brand-name{font-size:21px}.brand-sub{font-size:10px}.privacy-pill{display:none}.top-actions{gap:7px}.top-import{padding:10px;min-height:38px}.top-import span:last-child{display:none}.top-actions .btn-primary{padding:10px 13px;min-height:38px;font-size:12px}.workspace-title{padding:20px 3px 18px}.workspace-title h1{font-size:22px}.workspace-title p{font-size:12px;max-width:280px;line-height:1.5}.session-indicator{display:none}.editor-grid{display:flex;flex-direction:column;gap:10px;height:auto}.pages-panel{min-height:0;max-height:none;order:2}.viewer-panel{order:1;min-height:440px}.tools-panel{order:3}.pages-panel .panel-header{padding:14px 16px 8px}.pages-panel .document-list{margin-bottom:9px;padding:10px;max-height:75px;min-height:0}.thumb-toolbar{padding:0 15px 9px}.thumb-list{display:flex;overflow-x:auto;overflow-y:hidden;min-height:135px;padding:10px 12px 13px;gap:9px;align-items:start;overscroll-behavior-x:contain}.thumb{min-width:88px;width:88px;flex:0 0 88px;padding:6px 5px}.thumb-paper{height:100px;width:auto;max-width:80px}.pages-footer{display:none}.viewer-toolbar{height:61px;padding:10px 14px}.filename-stack>span{max-width:200px}.viewer-area{min-height:340px;max-height:75vh}.preview-stage{padding:15px;align-items:flex-start}.viewer-bottom{padding:12px;font-size:10px}.viewer-bottom .key-hints{display:none}.empty-state{padding:20px 16px}.hero-art{transform:scale(.76);margin:-23px 0 -7px}.empty-state h2{font-size:21px}.empty-state>p{font-size:12px}.empty-label{font-size:9px}.tools-heading{padding:17px 16px}.tools-scroll{display:flex;flex-direction:column;padding:0 15px;gap:0}.tool-section{padding-bottom:18px;margin-bottom:16px;border-bottom:1px solid var(--line)}.tool-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.tool-card{align-items:center;text-align:center;padding:9px 2px;gap:6px}.tool-card>span:not(.tool-icon){font-size:9px}.tool-card small{display:none}.tool-icon{height:30px;width:30px}.move-row{margin-top:9px}.tools-panel .coming-section{border:none;padding-bottom:15px}.export-panel{padding:12px 15px 14px}.site-footer{flex-wrap:wrap;gap:7px;padding:20px 3px;font-size:10px}.site-footer span:nth-child(2){order:3;width:100%}}
@media(max-width:360px){.brand-sub{display:none}.filename-stack>span{max-width:128px}.tool-card>span:not(.tool-icon){font-size:8px}.btn{font-size:11px}.app-shell{padding:0 8px}}

/* Folio 0.2 — Retour accueil et édition sur la page */
.home-link{display:inline-flex;gap:7px;align-items:center;justify-content:center;padding:10px 12px;border-radius:10px;background:#f1f5fc;border:1px solid #e3eaf6;color:#46628d;text-decoration:none;font-size:12px;font-weight:750;white-space:nowrap;transition:background .15s}
.home-link:hover{background:#e6eeff;color:#2c50a6}
.home-link span:first-child{font-size:22px;line-height:14px}

.edit-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
.edit-tool-grid .tool-card{align-items:center;text-align:center;padding:12px 2px}
.page-paper{position:relative;flex:none;line-height:0;box-shadow:0 12px 35px #2b405629;background:#fff}
.page-paper canvas{box-shadow:none;border-radius:0}
.annotation-layer{position:absolute;inset:0;z-index:2;touch-action:pan-x pan-y;pointer-events:none;line-height:normal}
.pdf-mark{position:absolute;box-sizing:border-box;overflow:visible;border:1.5px solid transparent;cursor:grab;touch-action:none;user-select:none;pointer-events:auto;min-width:20px;min-height:16px}
.pdf-mark:hover{border-color:#7692ef;outline:2px solid #ffffff99}
.pdf-mark.selected{border-color:#3865ef;background:#3865ef08;outline:1px solid white;z-index:3}
.pdf-mark:active{cursor:grabbing}
.pdf-mark .mark-content{width:100%;height:100%;overflow:hidden;pointer-events:none}
.pdf-mark .mark-content.text-mark{white-space:pre-wrap;overflow-wrap:anywhere;font-family:Arial,Helvetica,sans-serif;line-height:1.25;font-weight:600}
.pdf-mark .mark-content img{width:100%;height:100%;object-fit:fill;display:block}
.mark-handle{position:absolute;right:-6px;bottom:-6px;background:#3865ef;border:2px solid #fff;box-shadow:0 1px 5px #2240a844;border-radius:50%;width:13px;height:13px;cursor:nwse-resize;display:none;touch-action:none}
.pdf-mark.selected .mark-handle{display:block}
.mark-properties{background:#f5f8ff;border:1px solid #e1e9f9;border-radius:12px;padding:12px;margin-top:12px}
.properties-head{display:flex;justify-content:space-between;align-items:center;gap:7px;margin-bottom:10px}.properties-head strong{font-size:12px;color:#243b68}.properties-head button{font-size:11px;color:#b34159;border:0;background:transparent;padding:5px}
.property-field{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#5d7192;min-width:0}
.property-field textarea,.property-field input[type="number"]{background:#fff;border:1px solid #d6e1f2;border-radius:8px;padding:9px;color:#213b63;width:100%;min-width:0;font-size:13px;outline:none;resize:vertical}
.property-field textarea:focus,.property-field input:focus{border-color:#5276e3}
.mark-appearance{display:grid;grid-template-columns:1fr 70px;gap:10px;margin-top:9px}.property-field input[type="color"]{width:100%;height:35px;border:1px solid #d6e1f2;border-radius:8px;background:#fff;padding:3px}
.property-hint{color:#8b9bb3;font-size:10px;line-height:1.5;margin-top:10px}
.signature-card{background:#fff;border-radius:18px;max-width:min(610px,100%);width:100%;padding:22px;box-shadow:0 25px 80px #101e3b66}
.signature-title{display:flex;justify-content:space-between;gap:10px}.signature-title h2{margin:0;font-size:20px}.signature-title p{color:#8190a5;margin:7px 0 15px;font-size:12px}.close-modal{border:0;background:#f3f6fb;color:#62789c;font-size:25px;border-radius:9px;width:36px;height:36px}
#signatureCanvas{display:block;width:100%;height:auto;aspect-ratio:800/280;background:#f9fbff;border:2px dashed #bfcce3;border-radius:12px;touch-action:none;cursor:crosshair}
.signature-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:14px}.sig-footnote{margin:13px 0 0;font-size:10px;color:#9aa7ba;line-height:1.5}
[hidden]{display:none!important}
@media(max-width:850px){.edit-tool-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:650px){.home-link{padding:10px;min-width:37px}.home-label{display:none}.top-actions{gap:5px}.top-actions .btn-primary{padding:9px 11px}.brand{gap:7px}.brand-sub{display:none}.brand-name{font-size:19px}.signature-card{padding:16px}.signature-actions .btn{font-size:12px}.mark-properties{margin-top:10px}}

/* Folio Beta 0.3 — outils dans le même espace et dialogue responsive */
.extra-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.engine-note{margin:10px 2px 0;color:#8b98ac;font-size:10px;line-height:1.55}
.utility-dialog{width:min(505px,100%);background:#fff;border-radius:19px;box-shadow:0 30px 90px #10233d50;padding:25px;max-height:90dvh;overflow:auto}
.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px}.dialog-head h2{font-size:19px;letter-spacing:-.55px}
.dialog-explain{font-size:12px;line-height:1.65;color:#71849d;margin:9px 0 18px}
.choice-row{display:flex;gap:11px;align-items:flex-start;padding:13px;background:#f7f9fd;border:1px solid #e7edf7;border-radius:11px;margin:9px 0;cursor:pointer}
.choice-row input{accent-color:#3456e9;margin:3px 0 0;flex:none}
.choice-row strong{font-size:13px;color:#21385d;display:block}.choice-row small{display:block;font-size:11px;color:#8191a9;line-height:1.55;margin-top:4px}
.dialog-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:15px 0}.dialog-options.single{grid-template-columns:1fr}
.dialog-options label{font-size:11px;font-weight:750;color:#526587;display:flex;flex-direction:column;gap:7px}
.dialog-options select,.dialog-options input{max-width:100%;min-width:0;border:1px solid #d9e3f3;border-radius:9px;background:#fff;padding:11px;color:#233a60;font-size:13px}
.utility-actions{display:flex;justify-content:flex-end;gap:10px;flex-wrap:wrap;margin-top:21px}
@media(max-width:650px){.utility-dialog{padding:17px;border-radius:15px}.dialog-options{grid-template-columns:1fr}.utility-actions .btn{flex:1;min-width:0}}

/* Folio 1.0 PWA : état discret du fonctionnement hors connexion. */
.folio-pwa-controls{display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px}
.offline-status{display:inline-flex;gap:6px;align-items:center;white-space:nowrap;font-size:11px;color:#78879e}
.offline-status::before{content:"";width:7px;height:7px;background:#d6a355;border-radius:50%;flex:none}
.offline-status[data-state="ready"]::before{background:#28a57b}
.offline-status[data-state="error"]::before{background:#c5756b}
.folio-update{font:inherit;background:#e8f0ff;color:#3559aa;border:1px solid #cfddff;border-radius:8px;padding:6px 9px;font-size:11px;font-weight:700;cursor:pointer}
.folio-update:hover{background:#d9e6ff}
@media(max-width:650px){.folio-pwa-controls{order:2;width:100%;justify-content:space-between}.offline-status{font-size:10px}}

/* PESEV : logo commun pour l'en-tête de Folio uniquement. */
.brand-mark{background:transparent;box-shadow:none;overflow:hidden;letter-spacing:normal;flex-shrink:0;}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain;}

/* Folio — nom libre pour les exports et remise à zéro de l’espace de travail. */
.clear-workspace-btn{display:flex;align-items:center;justify-content:center;gap:7px;margin:0 14px 9px;width:calc(100% - 28px);border:1px solid #f0d8dc;background:#fff8f9;color:#ab4555;border-radius:9px;padding:8px 10px;font:inherit;font-size:11px;font-weight:720;cursor:pointer;min-height:36px}
.clear-workspace-btn small{font-size:10px;color:#9c7f87;font-weight:500}
.clear-workspace-btn:hover:not(:disabled){background:#fcebee;border-color:#e7bec5}
.clear-workspace-btn:disabled{opacity:.42;cursor:not-allowed}
.export-name-label{display:block;color:#526587;font-weight:750;font-size:11px;margin:0 0 6px}
.export-name-wrapper{display:flex;align-items:center;border:1px solid #d9e3f3;background:#fff;border-radius:9px;margin-bottom:12px;overflow:hidden;min-width:0}
.export-name-wrapper:focus-within{border-color:#5276e3;box-shadow:0 0 0 2px #5276e319}
.export-name-wrapper input{font:inherit;font-size:13px;color:#233a60;padding:11px 10px;border:0;outline:0;min-width:0;width:100%;background:transparent;flex:1}
.export-name-wrapper input:disabled{background:#f5f7fb;color:#8d9ab0}
.export-name-wrapper span{color:#8293ae;font-size:12px;padding-right:11px;flex:none}
@media(max-width:850px){.export-name-label,.export-name-wrapper{grid-column:1/-1}.export-name-wrapper{margin-bottom:0}}
@media(max-width:650px){.clear-workspace-btn{margin:0 15px 8px;width:calc(100% - 30px)}.clear-workspace-btn small{display:inline}}
