*{margin:0;padding:0;box-sizing:border-box}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;background:#eef0f4;min-height:100vh;padding:0;color:#333}.navbar{background:#fffffffa;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);box-shadow:0 2px 10px #0000001a;position:sticky;top:0;z-index:100}.navbar-container{max-width:1400px;margin:0 auto;padding:15px 40px;display:flex;justify-content:space-between;align-items:center}.navbar-brand{display:flex;align-items:center;gap:10px;font-size:20px;font-weight:600;color:#333;text-decoration:none;transition:opacity .2s ease}.navbar-brand:hover{opacity:.7}.brand-icon{font-size:24px}.navbar-menu{display:flex;list-style:none;gap:5px;margin:0;padding:0}.navbar-link{padding:10px 20px;text-decoration:none;color:#6c757d;font-weight:500;font-size:14px;border-radius:8px;transition:all .2s ease;display:block}.navbar-link:hover{background:#f8f9fa;color:#667eea}.navbar-link.active{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff}.navbar-account{display:flex;align-items:center;gap:12px}.navbar-user{font-size:14px;font-weight:500;color:#495057}.navbar-ocr{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;background:#eef4ff;color:#4f6ef5;border:1px solid #d4e0ff;border-radius:8px;font-size:14px;font-weight:600;cursor:pointer;transition:all .2s ease}.navbar-ocr:hover{background:#e1ebff;border-color:#4f6ef5}.navbar-logout{padding:8px 16px;background:#f1f3f5;color:#495057;border:1px solid #dee2e6;border-radius:8px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.navbar-logout:hover{background:#e9ecef;color:#667eea;border-color:#667eea}.navbar-switch{display:inline-flex;gap:2px;padding:3px;background:#f1f3f5;border-radius:10px}.navbar-switch-btn{padding:7px 16px;border-radius:8px;font-size:14px;font-weight:500;color:#6c757d;text-decoration:none;transition:all .15s ease}.navbar-switch-btn:hover{color:#4f6ef5}.navbar-switch-btn.active{background:#fff;color:#4f6ef5;box-shadow:0 1px 3px #0000001a}.page-wrapper{margin:20px auto;max-width:1400px;padding:0 0 40px}.container{max-width:1400px;margin:0 auto;background:#fff;border-radius:12px;box-shadow:0 20px 60px #0000004d;overflow:hidden}header{background:linear-gradient(135deg,#667eea,#764ba2);color:#fff;padding:30px 40px}.header-content h1{font-size:28px;font-weight:600;margin-bottom:5px}.options{padding:20px 40px;background:#f8f9fa;border-bottom:1px solid #e9ecef;display:flex;gap:30px;align-items:center}.checkbox-label,.select-label{display:flex;align-items:center;gap:8px;font-size:14px;cursor:pointer}.checkbox-label input[type=checkbox]{width:18px;height:18px;cursor:pointer}.select-label select{padding:6px 12px;border:1px solid #ddd;border-radius:6px;font-size:14px;cursor:pointer;background:#fff}.main-content{display:grid;grid-template-columns:1fr 1fr;gap:0;min-height:600px}.input-section,.output-section{padding:30px 40px;display:flex;flex-direction:column}.input-section{border-right:1px solid #e9ecef}.section-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.section-header h2{font-size:18px;font-weight:600;color:#495057}textarea{flex:1;width:100%;padding:15px;border:1px solid #dee2e6;border-radius:8px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.6;resize:none;background:#f8f9fa;color:#333}textarea:focus{outline:none;border-color:#667eea;background:#fff}textarea::placeholder{color:#adb5bd}.output-display{flex:1;padding:15px;border:1px solid #dee2e6;border-radius:8px;background:#f8f9fa;overflow-y:auto;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.8;white-space:pre-wrap;color:#333}.output-display.has-content{background:#fff}.placeholder{color:#adb5bd;font-style:italic;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;white-space:normal}.output-display.error{color:#dc3545;background:#fff5f5;border-color:#dc3545}button{padding:8px 16px;border:none;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-primary{background:#667eea;color:#fff}.btn-primary:hover{background:#5568d3;transform:translateY(-1px);box-shadow:0 4px 12px #667eea66}.btn-primary:active{transform:translateY(0)}.btn-primary:disabled{background:#adb5bd;cursor:not-allowed;opacity:.6;transform:none;box-shadow:none}.btn-secondary{background:#6c757d;color:#fff}.btn-secondary:hover{background:#5a6268}.btn-icon{padding:8px 16px;background:#f0f0f0;color:#495057;border:1px solid #dee2e6;border-radius:6px;font-size:14px;font-weight:500;cursor:pointer;transition:all .2s ease}.btn-icon:hover{background:#e9ecef;border-color:#667eea;color:#667eea}.btn-danger{background:#dc3545;color:#fff;border:none;border-radius:6px;cursor:pointer;transition:background .2s ease;font-size:13px;padding:6px 10px;line-height:1}.btn-danger:hover{background:#c82333}@keyframes copied{0%{transform:scale(1)}50%{transform:scale(1.05)}to{transform:scale(1)}}.btn-primary.copied{animation:copied .3s ease;background:#28a745}.tabs-nav{display:flex;border-bottom:2px solid #e9ecef;background:#f8f9fa;padding:0 40px}.tab-btn{padding:14px 24px;background:none;border:none;border-bottom:3px solid transparent;margin-bottom:-2px;font-size:14px;font-weight:500;color:#6c757d;cursor:pointer;border-radius:0;transition:all .2s ease;box-shadow:none;transform:none}.tab-btn:hover{color:#667eea;background:#667eea0d;transform:none;box-shadow:none}.tab-btn.active{color:#667eea;border-bottom-color:#667eea;background:none}.tab-footer{padding:20px 40px;background:#f8f9fa;border-top:1px solid #e9ecef;text-align:center;font-size:14px;color:#6c757d}.tab-footer a{color:#667eea;text-decoration:none;cursor:pointer}.tab-footer a:hover{text-decoration:underline}.pill-group-label{display:inline-flex;align-items:center;gap:10px;font-size:14px;color:#495057;font-weight:500}.pill-group{display:inline-flex;gap:4px;padding:3px;background:#f1f3f5;border-radius:8px}.pill-btn{padding:6px 14px;border:none;background:transparent;font-size:14px;font-weight:500;color:#6c757d;cursor:pointer;border-radius:6px;transition:all .15s ease;box-shadow:none;transform:none}.pill-btn:hover{color:#667eea;background:#667eea14;transform:none;box-shadow:none}.pill-btn.active{background:#667eea;color:#fff}.pill-btn.active:hover{background:#5568d3;color:#fff}.header-actions{display:flex;gap:8px;align-items:center}.modal-overlay{display:none;position:fixed;z-index:1000;left:0;top:0;width:100%;height:100%;background:#00000080;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.modal-overlay.open{display:block}.modal-content{background:#fff;margin:5% auto;padding:30px;border-radius:12px;width:80%;max-width:800px;max-height:80vh;overflow-y:auto;box-shadow:0 20px 60px #0000004d}.modal-close{color:#adb5bd;float:right;font-size:28px;font-weight:700;cursor:pointer;line-height:20px;background:none;border:none;padding:0;transition:color .2s}.modal-close:hover{color:#333;transform:none;box-shadow:none}.modal-content h2{margin-bottom:20px;color:#495057}.rules-content{font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:13px;line-height:1.6;background:#f8f9fa;padding:20px;border-radius:8px;overflow-x:auto}.modal-content.modal-settings{max-width:1100px}.modal-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}.modal-header h2{margin:0}.replacements-list{display:flex;flex-direction:column;gap:10px;max-height:50vh;overflow-y:auto;margin-bottom:16px}.replacements-empty{color:#adb5bd;font-style:italic;font-size:13px;text-align:center;padding:20px}.replacement-row{display:grid;grid-template-columns:1fr auto 1fr auto auto;align-items:center;gap:10px;padding:10px 14px;background:#f8f9fa;border-radius:8px;border:1px solid #e9ecef}.replacement-row input[type=text]{padding:7px 10px;border:1px solid #dee2e6;border-radius:6px;font-size:13px;background:#fff;font-family:Monaco,Menlo,Ubuntu Mono,monospace}.replacement-row input[type=text]:focus{outline:none;border-color:#667eea}.rule-arrow{color:#6c757d;font-size:16px;-webkit-user-select:none;user-select:none;text-align:center}.rule-case{display:flex;align-items:center;gap:6px;font-size:12px;color:#6c757d;cursor:pointer;white-space:nowrap}.rule-case input[type=checkbox]{width:14px;height:14px;cursor:pointer}.modal-actions{display:flex;justify-content:flex-start;padding-top:12px;border-top:1px solid #e9ecef}.mt-input-wrapper{position:relative;flex:1;display:flex;flex-direction:column}.mt-input-backdrop{position:absolute;top:0;left:0;right:0;bottom:0;padding:15px;border:1px solid transparent;border-radius:8px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.6;white-space:pre-wrap;word-wrap:break-word;overflow:hidden;color:transparent;background:#f8f9fa;pointer-events:none;z-index:0;box-sizing:border-box}.mt-input-wrapper textarea{position:relative;z-index:1;background:transparent!important;flex:1}.mt-highlight-input{background-color:#28a7463a!important;border-radius:2px}.mt-highlight-output{color:#1a7fe8;background-color:transparent!important}.mt-output{white-space:pre-wrap}.main-content-3col{grid-template-columns:1fr 1fr 1fr}.middle-section{padding:30px 40px;display:flex;flex-direction:column;border-right:1px solid #e9ecef}.main-content-3col .input-section,.main-content-3col .middle-section,.main-content-3col .output-section{padding:26px;min-width:0}.upload-zone{flex:1;border:2px dashed #dee2e6;border-radius:8px;display:flex;align-items:center;justify-content:center;position:relative;cursor:pointer;transition:all .2s ease;background:#f8f9fa}.upload-zone:hover{border-color:#667eea;background:#f0f2ff}.upload-zone.drag-over{border-color:#667eea;background:#e8ebff}.upload-zone input[type=file]{position:absolute;width:100%;height:100%;opacity:0;cursor:pointer}.upload-prompt{text-align:center;pointer-events:none}.upload-icon{font-size:48px;display:block;margin-bottom:10px}.upload-prompt p{font-size:16px;color:#495057;margin:5px 0}.upload-subtext{font-size:14px;color:#6c757d}.file-info{margin-top:15px;padding:12px;background:#e8f4fd;border-radius:6px;font-size:14px;color:#0c5460;display:none}.file-info.visible{display:block}.type-detected{margin-top:10px;padding:12px;background:#d4edda;border:1px solid #c3e6cb;border-radius:6px;font-size:14px;font-weight:500;color:#155724;display:none}.type-detected.visible{display:block}.type-detected.error{background:#f8d7da;border-color:#f5c6cb;color:#721c24}.stats{margin-top:15px;padding:12px;background:#e8f4fd;border-radius:6px;font-size:13px;color:#0c5460;display:none}.stats.visible{display:block}.csv-output-display{flex:1;padding:15px;border:1px solid #dee2e6;border-radius:8px;background:#f8f9fa;overflow:auto;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12px;line-height:1.8;white-space:pre;color:#333;word-break:break-all;max-width:100%}.csv-output-display.has-content{background:#fff}.info-section{padding:20px 40px;background:#f8f9fa;border-bottom:1px solid #e9ecef;display:grid;grid-template-columns:1fr 1fr;gap:20px}.info-box{background:#fff;padding:20px;border-radius:8px;box-shadow:0 2px 4px #0000000d}.info-box h3{font-size:16px;font-weight:600;color:#495057;margin-bottom:12px}.info-box ul{list-style:none;padding:0}.info-box li{padding:6px 0;font-size:14px;color:#6c757d}.info-box li strong{color:#667eea}.csv-main-content{display:grid;grid-template-columns:1fr 1fr;gap:0;min-height:600px;max-height:700px}.csv-main-content .input-section,.csv-main-content .output-section{min-width:0;overflow:hidden}footer{padding:20px 40px;background:#f8f9fa;border-top:1px solid #e9ecef;text-align:center;font-size:14px;color:#6c757d}@media (max-width: 1024px){.main-content,.main-content-3col,.csv-main-content{grid-template-columns:1fr;max-height:none}.input-section,.middle-section{border-right:none;border-bottom:1px solid #e9ecef}.options{flex-direction:column;align-items:flex-start;gap:15px}.info-section{grid-template-columns:1fr}.navbar-container{padding:15px 20px}.page-wrapper{margin:10px}}.bt-source-detected{font-size:11px;font-weight:400;opacity:.85}.bt-format-hint{margin-left:6px;font-size:12px;color:#6c757d;font-style:italic}.auth-bg{min-height:100vh;width:100%;display:flex;align-items:center;justify-content:center;padding:24px;background-color:#0b1733;background-image:var(--strike-image, none),radial-gradient(120% 90% at 50% 0%,#2c4a8e,#1a2c54 45%,#0a1326);background-size:cover,cover;background-position:center,center;background-repeat:no-repeat,no-repeat}.auth-card{width:min(640px,94vw);background:#1c2740b8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(148,163,184,.18);border-radius:16px;padding:36px 40px;box-shadow:0 30px 80px #00000073}.auth-form{display:flex;flex-direction:column}.auth-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:28px;gap:16px}.auth-title{font-size:30px;font-weight:700;color:#f1f5f9;letter-spacing:-.5px;margin:0}.auth-signup-btn{background:#4f6ef5;color:#fff;padding:9px 18px;border-radius:8px;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap;transition:background .2s ease}.auth-signup-btn:hover{background:#3f5de0}.auth-field{margin-bottom:18px}.auth-label{display:block;color:#aab4cc;font-size:14px;font-weight:500;margin-bottom:8px}.auth-required{color:#f87171}.auth-input{width:100%;background:#fff;border:1px solid transparent;border-radius:8px;padding:13px 15px;font-size:15px;color:#1e293b;outline:none;transition:box-shadow .15s ease}.auth-input:focus{box-shadow:0 0 0 2px #4f6ef58c}.auth-input-wrap{position:relative}.auth-input-wrap .auth-input{padding-right:46px}.auth-eye{position:absolute;right:8px;top:50%;transform:translateY(-50%);background:none;border:none;padding:6px;color:#64748b;cursor:pointer;display:flex;align-items:center;justify-content:center}.auth-eye:hover{color:#334155;background:none;box-shadow:none;transform:translateY(-50%)}.auth-row-end{display:flex;justify-content:flex-end;margin:-2px 0 22px}.auth-link{color:#93a7f0;font-size:14px;text-decoration:none}.auth-link:hover{text-decoration:underline}.auth-hint{color:#8b97b3;font-size:12.5px;line-height:1.5;margin-top:7px}.auth-hint code{background:#ffffff14;padding:1px 5px;border-radius:4px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;color:#cdd6ee}.auth-text{color:#c2cbe0;font-size:15px;line-height:1.6;margin-bottom:14px}.auth-error{color:#fecaca;background:#dc262626;border:1px solid rgba(248,113,113,.4);border-radius:8px;padding:10px 12px;font-size:14px;margin-bottom:14px}.auth-submit{width:100%;background:#0e1729;color:#fff;border:none;border-radius:8px;padding:15px;font-size:16px;font-weight:600;cursor:pointer;margin-top:6px;transition:background .2s ease}.auth-submit:hover{background:#182542;transform:none;box-shadow:none}.auth-submit:disabled{opacity:.6;cursor:not-allowed}.auth-submit-link{display:block;text-align:center;text-decoration:none;margin-top:10px}.auth-fullscreen-loader{min-height:100vh;display:grid;place-items:center;color:#e2e8f0;background:#0b1733;font-size:16px}@media (max-width: 560px){.auth-card{padding:28px 22px}.auth-title{font-size:26px}}:root{--ws-nav-h: 64px;--ws-tabs-h: 44px}.ws-workspace{max-width:1400px;margin:16px auto 40px;padding:0 18px}.ws-tabbar{display:flex;align-items:flex-end;padding:0;position:sticky;top:var(--ws-nav-h);z-index:60;height:var(--ws-tabs-h);background:#eef0f4}.ws-tabs{display:flex;align-items:flex-end;gap:3px;overflow-x:auto;scrollbar-width:thin;width:100%;padding-top:6px}.ws-tab{display:flex;align-items:center;gap:8px;padding:8px 8px 9px 13px;background:#e9ecf2d9;color:#5b6470;border-radius:11px 11px 0 0;cursor:pointer;font-size:13.5px;font-weight:500;min-width:130px;max-width:210px;white-space:nowrap;position:relative;transition:background .15s ease,color .15s ease}.ws-tab:hover{background:#f5f6f9f2}.ws-tab.active{background:#fff;color:#1f2430;font-weight:600;box-shadow:0 -2px 8px #1f293714}.ws-tab-icon{font-size:14px;line-height:1;flex:none}.ws-tab-label{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ws-tab-close{display:flex;align-items:center;justify-content:center;width:20px;height:20px;flex:none;padding:0;border:none;border-radius:50%;background:transparent;color:#8a93a2;font-size:17px;line-height:1;cursor:pointer}.ws-tab-close:hover{background:#e2e6ed;color:#2c2e33}.ws-tab-new{flex:none;display:flex;align-items:center;justify-content:center;width:32px;height:32px;margin:0 0 4px 6px;padding:0;border:none;border-radius:8px;background:#e9ecf299;color:#5b6470;font-size:20px;line-height:1;cursor:pointer;transition:background .15s ease,color .15s ease}.ws-tab-new:hover{background:#fff;color:#4f6ef5}.ws-content{background:#fff;border-radius:0 14px 14px;box-shadow:0 18px 50px #1f29372e;min-height:72vh}.ws-loading{padding:60px 40px;text-align:center;color:#6c757d;font-size:15px}.ws-newtab{padding:28px 32px 36px}.ws-section{margin-bottom:30px}.ws-section:last-child{margin-bottom:0}.ws-section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:14px}.ws-section-title{font-size:18px;font-weight:600;color:#343a40;margin-bottom:14px}.ws-section-head .ws-section-title{margin-bottom:0}.ws-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:18px}.ws-search{display:flex;align-items:center;gap:8px;flex:1;max-width:440px;padding:0 12px;background:#fff;border:1px solid #e6e7eb;border-radius:10px}.ws-search:focus-within{border-color:#4f6ef5;box-shadow:0 0 0 3px #4f6ef51f}.ws-search-icon{font-size:14px;color:#9aa1ad}.ws-search input{flex:1;border:none;outline:none;padding:10px 0;font-size:14px;background:transparent;color:#2c2e33}.ws-filter{display:inline-flex;align-items:center;gap:6px;padding:9px 16px;border:1px solid #e6e7eb;border-radius:20px;background:#fff;color:#5b6470;font-size:13.5px;font-weight:500;cursor:pointer;white-space:nowrap;transition:all .15s ease}.ws-filter:hover{border-color:#c9cfdd}.ws-filter.active{border-color:#4f6ef5;color:#4f6ef5;background:#eef2ff}.ws-newtab-create{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:16px;margin-bottom:20px;background:#f8f9fb;border:1px solid #e9ecef;border-radius:10px}.ws-newtab-create input{padding:10px 12px;border:1px solid #dee2e6;border-radius:8px;font-size:14px;min-width:220px}.ws-newtab-create input:focus{outline:none;border-color:#4f6ef5}.ws-newtab-empty{color:#adb5bd;font-style:italic;padding:30px 0;text-align:center}.ws-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(244px,1fr));gap:14px}.ws-card{position:relative;display:flex;flex-direction:column;gap:6px;min-height:96px;padding:14px 16px;background:#fff;border:1px solid #e6e7eb;border-radius:10px;cursor:pointer;text-align:left;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease}.ws-card:hover{transform:translateY(-1px);border-color:#cdd3e5;box-shadow:0 8px 20px #1f29371a}.ws-card-top{display:flex;align-items:center;gap:8px;padding-right:22px}.ws-card-icon{font-size:17px;line-height:1;flex:none}.ws-card-name{font-size:14.5px;font-weight:600;color:#2c2e33;line-height:1.3}.ws-card-desc{font-size:12.5px;color:#8b93a3}.ws-card-foot{display:flex;align-items:center;justify-content:space-between;margin-top:auto;padding-top:6px}.ws-star{border:none;background:transparent;color:#c4c9d4;font-size:17px;line-height:1;cursor:pointer;padding:0}.ws-star:hover{color:#9aa1ad}.ws-star.active{color:#f5a623}.ws-badge{font-size:11.5px;font-weight:500;color:#6b7280;background:#f3f4f6;padding:2px 9px;border-radius:12px}.ws-card-trash{position:absolute;top:8px;right:8px;border:none;background:transparent;font-size:14px;line-height:1;cursor:pointer;opacity:0;padding:4px;border-radius:6px;transition:opacity .15s ease}.ws-card:hover .ws-card-trash{opacity:.65}.ws-card-trash:hover{opacity:1;background:#fff0f0}.ws-fiche-head{position:sticky;top:calc(var(--ws-nav-h) + var(--ws-tabs-h));z-index:55}.ws-fiche-bar{display:flex;align-items:center;justify-content:space-between;padding:16px 40px;background:linear-gradient(135deg,#4f6ef5,#764ba2);color:#fff;border-radius:0 14px 0 0}.ws-fiche-ident{font-size:20px;font-weight:600}.ws-save{font-size:13px;min-height:18px;opacity:.95}.ws-save-error{color:#ffd6d6;font-weight:600}.ws-bloc{border-bottom:1px solid #e9ecef}.ws-bloc-header{display:flex;align-items:center;gap:10px;width:100%;padding:14px 40px;background:#f8f9fb;border:none;border-radius:0;cursor:pointer;text-align:left;font-size:16px;font-weight:600;color:#495057;transition:background .15s ease}.ws-bloc-header:hover{background:#eef0f3;transform:none;box-shadow:none}.ws-bloc-caret{color:#868e96;font-size:13px;width:14px}.ws-bloc-title{flex:1}.ws-bloc-body .main-content{min-height:340px}@media (max-width: 1024px){.ws-bloc-body .main-content{min-height:0}.ws-newtab{padding:22px 18px 28px}}.st-page{display:grid;grid-template-columns:240px 1fr;gap:20px;max-width:1400px;margin:20px auto 40px;padding:0 18px;align-items:start}.st-sidebar{background:#fff;border-radius:12px;padding:20px 14px;box-shadow:0 6px 24px #1f293714;position:sticky;top:80px}.st-sidebar-title{font-size:17px;font-weight:600;color:#343a40;padding:0 10px 14px;border-bottom:1px solid #e9ecef;margin-bottom:12px}.st-nav{display:flex;flex-direction:column;gap:3px;margin-bottom:14px}.st-nav:last-child{margin-bottom:0}.st-nav-section{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:.06em;color:#9aa1ad;padding:6px 10px 4px}.st-nav-link{display:flex;align-items:center;gap:9px;padding:9px 10px;border-radius:8px;font-size:14px;font-weight:500;color:#5b6470;text-decoration:none;transition:background .15s ease,color .15s ease}.st-nav-link:hover{background:#f1f3f5;color:#4f6ef5}.st-nav-link.active{background:#eef2ff;color:#4f6ef5;font-weight:600}.st-nav-icon{font-size:15px;line-height:1}.st-content{background:#fff;border-radius:12px;box-shadow:0 6px 24px #1f293714;padding:30px 36px 40px;min-height:72vh}.st-title{font-size:23px;font-weight:600;color:#343a40;margin-bottom:10px}.st-desc{font-size:14px;color:#6c757d;line-height:1.6;margin-bottom:18px;max-width:860px}.st-desc code,.st-vars-hint code{background:#f1f3f5;border:1px solid #e6e7eb;border-radius:4px;padding:1px 6px;font-size:12.5px;color:#4f6ef5}.st-vars-hint{background:#eef2ff;border:1px solid #dde4ff;border-radius:10px;padding:12px 16px;font-size:13.5px;color:#44506b;line-height:1.7;margin-bottom:24px}.st-vars-hint code{background:#fff;border-color:#dde4ff}.st-vars-hint a{color:#4f6ef5}.st-section{margin-top:30px;padding-top:24px;border-top:1px solid #e9ecef}.st-section-title{display:flex;align-items:center;gap:10px;font-size:17px;font-weight:600;color:#343a40;margin-bottom:8px}.st-step{font-size:12px;font-weight:600;color:#4f6ef5;background:#eef2ff;border:1px solid #dde4ff;border-radius:14px;padding:3px 10px;white-space:nowrap}.st-section-desc{font-size:13.5px;color:#6c757d;line-height:1.6;margin-bottom:16px;max-width:860px}.st-subsection-title{font-size:15px;font-weight:600;color:#495057;margin:22px 0 12px}.st-form{margin-bottom:24px}.st-field{display:flex;flex-direction:column;gap:6px;max-width:420px;margin-bottom:16px}.st-field label{font-size:14px;font-weight:600;color:#495057}.st-field input{padding:10px 12px;border:1px solid #dee2e6;border-radius:8px;font-size:14px;background:#fff;color:#2c2e33}.st-field input:focus{outline:none;border-color:#4f6ef5;box-shadow:0 0 0 3px #4f6ef51f}.st-form-actions{display:flex;align-items:center;gap:12px}.st-save-ok{font-size:14px;font-weight:600;color:#28a745}.st-save-error{font-size:14px;font-weight:600;color:#dc3545}.st-replacements-list{max-height:none;overflow-y:visible}.st-actions{display:flex;justify-content:flex-start;padding-top:4px}.st-pattern-lists{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:8px}.st-pattern-list{background:#f8f9fb;border:1px solid #e9ecef;border-radius:10px;padding:16px}.st-pattern-title{font-size:14.5px;font-weight:600;color:#343a40;margin-bottom:12px}.st-pattern-add{display:flex;gap:8px;margin-bottom:12px}.st-pattern-add input{flex:1;min-width:0;padding:8px 10px;border:1px solid #dee2e6;border-radius:6px;font-size:13px;background:#fff}.st-pattern-add input:focus{outline:none;border-color:#4f6ef5}.st-pattern-add .btn-primary{flex:none;padding:8px 14px}.st-pattern-items{display:flex;flex-direction:column;gap:8px;max-height:320px;overflow-y:auto}.st-pattern-item{display:flex;align-items:center;gap:8px}.st-pattern-item input{flex:1;min-width:0;padding:7px 10px;border:1px solid #dee2e6;border-radius:6px;font-size:13px;background:#fff;font-family:Monaco,Menlo,Ubuntu Mono,monospace}.st-pattern-item input:focus{outline:none;border-color:#4f6ef5}.st-pattern-empty{font-size:12.5px;font-style:italic;color:#adb5bd;text-align:center;padding:8px 0}.st-rules{display:flex;flex-direction:column;gap:12px}.st-rule{background:#f8f9fb;border:1px solid #e9ecef;border-radius:8px;padding:12px 14px}.st-rule-row{display:grid;grid-template-columns:1.4fr auto 1fr 1fr 1fr auto auto;align-items:center;gap:10px}.st-rule-row input[type=text]{padding:7px 10px;border:1px solid #dee2e6;border-radius:6px;font-size:13px;background:#fff;font-family:Monaco,Menlo,Ubuntu Mono,monospace;min-width:0}.st-rule-row input[type=text]:focus{outline:none;border-color:#4f6ef5}.st-rule-row select{padding:7px 8px;border:1px solid #dee2e6;border-radius:6px;font-size:13px;background:#fff;color:#2c2e33;cursor:pointer;min-width:0}.st-rule-row select:focus{outline:none;border-color:#4f6ef5}.st-rule-preview{margin-top:8px;font-size:12.5px;color:#8b93a3;font-style:italic}.st-rule-preview strong{color:#1a7fe8;font-style:normal}.st-empty{display:flex;flex-direction:column;align-items:center;gap:14px;padding:60px 40px;text-align:center;color:#8b93a3;font-size:14px;line-height:1.7;background:#f8f9fb;border:1px dashed #dee2e6;border-radius:12px;max-width:640px;margin:30px auto 0}.st-empty-icon{font-size:40px}@media (max-width: 1024px){.st-page{grid-template-columns:1fr}.st-sidebar{position:static}.st-nav{flex-direction:row;flex-wrap:wrap}.st-nav-section{width:100%}.st-content{padding:22px 18px 30px}.st-pattern-lists,.st-rule-row{grid-template-columns:1fr}.st-rule-row .rule-arrow{display:none}}.ws-settings{display:grid;grid-template-columns:250px 1fr;gap:0;align-items:stretch;min-height:72vh}.ws-settings-sidebar{border-radius:0 0 0 14px;border-right:1px solid #e9ecef;box-shadow:none;position:sticky;top:calc(var(--ws-nav-h) + var(--ws-tabs-h));align-self:start;max-height:calc(100vh - var(--ws-nav-h) - var(--ws-tabs-h) - 16px);overflow-y:auto}.ws-settings-sidebar .st-nav-link{width:100%;border:none;background:none;font:inherit;text-align:left;cursor:pointer}.ws-settings-content{padding:30px 36px 40px;min-width:0}.st-link-btn{border:none;background:none;padding:0;font:inherit;color:#4f6ef5;text-decoration:underline;cursor:pointer}.st-textes-types{display:flex;flex-direction:column;gap:14px}.st-texte-type{border:1px solid #e9ecef;border-radius:10px;padding:12px 14px;background:#fbfcfe;display:flex;flex-direction:column;gap:8px}.st-texte-type-head{display:flex;gap:10px;align-items:center}.st-texte-type-head input{flex:1;padding:8px 12px;border:1px solid #dee2e6;border-radius:8px;font-size:14px}.st-texte-type-head input:focus{outline:none;border-color:#4f6ef5}.st-texte-type textarea{width:100%;padding:10px 12px;border:1px solid #dee2e6;border-radius:8px;font-size:14px;font-family:inherit;resize:vertical;box-sizing:border-box}.st-texte-type textarea:focus{outline:none;border-color:#4f6ef5}.ws-section-actions{display:flex;gap:10px;align-items:center}.ws-fiche-bar-actions{display:flex;align-items:center;gap:14px}.ws-fiche-settings{border:none;background:#ffffff2e;color:#fff;font-size:17px;width:36px;height:36px;border-radius:50%;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:background .15s ease,transform .15s ease}.ws-fiche-settings:hover{background:#ffffff52;transform:rotate(20deg)}.ws-section-toggle{display:flex;justify-content:center;padding:14px 40px;background:#fffffff7;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);border-bottom:1px solid #eef0f4;box-shadow:0 2px 10px #1f29370a}.ws-section-toggle-group{display:inline-flex;background:#edf0f6;border:1px solid #e0e4ec;border-radius:12px;padding:4px;gap:2px}.ws-section-toggle-btn{display:inline-flex;align-items:center;gap:8px;padding:9px 28px;border:none;border-radius:9px;background:transparent;color:#5a6472;font-size:15px;font-weight:600;cursor:pointer;transition:all .18s ease}.ws-section-toggle-btn:hover:not(.active){background:#ffffffbf;color:#343a40}.ws-section-toggle-btn.active{background:linear-gradient(135deg,#4f6ef5,#764ba2);color:#fff;box-shadow:0 3px 12px #4f6ef559}.ws-section-toggle-icon{font-size:16px}.ws-fiche-section{padding-bottom:10px}.ws-bloc-body>.ws-structured-bloc,.ws-bloc-body>.ws-date-entree,.ws-bloc-body>.ws-allergies,.ws-bloc-body>.ws-simple-bloc,.ws-bloc-body>.ws-imagerie-bloc{padding:26px 40px 32px}.ws-bloc-body>.ws-import-row{padding:20px 40px 0}.ws-traitement-sortie{display:flex;flex-direction:column}.ws-bloc-body>.ws-traitement-sortie{padding:26px 40px 32px}.ws-traitement-sortie .ord-allergy-alert{margin:0 0 16px}.ws-traitement-sortie .section-header{margin-bottom:16px}.ws-traitement-sortie-input,.ws-traitement-sortie-input textarea{min-height:280px}.ws-structured-bloc,.ws-date-entree{display:flex;flex-direction:column;gap:16px;max-width:760px}.ws-field{display:flex;flex-direction:column;gap:6px}.ws-field label{font-size:13.5px;font-weight:600;color:#495057}.ws-field-optional{font-weight:400;color:#868e96}.ws-field-row{display:flex;gap:8px;align-items:center}.ws-field-row input[type=text]{flex:1}.ws-field input[type=text],.ws-field input[type=date],.ws-field input[type=time],.ws-field-row input[type=date],.ws-field-row input[type=time]{padding:9px 12px;border:1px solid #dee2e6;border-radius:8px;font-size:14px;font-family:inherit}.ws-field input:focus,.ws-field-row input:focus{outline:none;border-color:#4f6ef5;box-shadow:0 0 0 3px #4f6ef51f}.ws-field-hint{font-size:13px;color:#868e96;margin:2px 0 0}.ws-field-warn{color:#c77700}.ws-inline-label{font-size:13.5px;font-weight:600;color:#495057;white-space:nowrap}.ws-preset-btn{border:1px solid #cdd6f7;background:#eef1fd;color:#4f6ef5;border-radius:8px;width:38px;height:38px;font-size:16px;cursor:pointer;flex-shrink:0;transition:background .15s ease}.ws-preset-btn:hover{background:#dfe5fb}.ws-preset-row{display:flex;flex-wrap:wrap;gap:8px}.ws-preset-btn-text,.ws-texte-type-btn{border:1px solid #cdd6f7;background:#eef1fd;color:#3f51c5;border-radius:20px;padding:6px 14px;font-size:13px;cursor:pointer;transition:background .15s ease}.ws-preset-btn-text:hover,.ws-texte-type-btn:hover{background:#dfe5fb}.ws-allergies{display:flex;flex-direction:column;gap:12px;max-width:760px}.ws-chips{display:flex;flex-wrap:wrap;gap:8px;min-height:34px}.ws-chips-empty{color:#adb5bd;font-size:14px;align-self:center}.ws-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 8px 6px 14px;border-radius:20px;font-size:13.5px;font-weight:500}.ws-chip button{border:none;background:#0000001a;border-radius:50%;width:20px;height:20px;font-size:13px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center}.ws-chip-molecule{background:#e7ecfd;color:#3f51c5}.ws-chip-libre{background:#fdf2e7;color:#b35c00}.ws-allergy-add{position:relative}.ws-allergy-add input{width:100%;padding:10px 14px;border:1px solid #dee2e6;border-radius:8px;font-size:14px;box-sizing:border-box}.ws-allergy-add input:focus{outline:none;border-color:#4f6ef5;box-shadow:0 0 0 3px #4f6ef51f}.ws-allergy-suggestions{position:absolute;top:calc(100% + 4px);left:0;right:0;background:#fff;border:1px solid #dee2e6;border-radius:10px;box-shadow:0 10px 30px #1f293724;z-index:20;max-height:280px;overflow-y:auto;display:flex;flex-direction:column}.ws-allergy-suggestion{border:none;background:none;text-align:left;padding:10px 14px;font-size:14px;cursor:pointer}.ws-allergy-suggestion:hover{background:#f1f3f9}.ws-allergy-libre{color:#b35c00;border-top:1px solid #f1f3f5}.ws-allergy-empty{padding:12px 14px;font-size:13.5px;color:#868e96;display:flex;flex-direction:column;gap:6px;align-items:flex-start}.ws-simple-bloc{display:flex;flex-direction:column;gap:10px}.ws-textes-types-row{display:flex;flex-wrap:wrap;gap:8px}.ws-simple-textarea{width:100%;padding:12px 14px;border:1px solid #dee2e6;border-radius:10px;font-size:14px;font-family:inherit;line-height:1.55;resize:vertical;box-sizing:border-box}.ws-simple-textarea:focus{outline:none;border-color:#4f6ef5;box-shadow:0 0 0 3px #4f6ef51f}.ws-imagerie-bloc{display:flex;flex-direction:column;gap:18px}.ws-imagerie-exam{border:1px solid #e9ecef;border-radius:12px;padding:14px 16px;background:#fbfcfe;display:flex;flex-direction:column;gap:10px}.ws-imagerie-exam-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}.ws-imagerie-exam-title{font-size:15px;font-weight:600;color:#343a40}.ws-imagerie-exam .input-section,.ws-imagerie-exam .output-section{padding:14px 18px}.ws-imagerie-exam .main-content{min-height:0}.ws-sortie-group{margin-top:6px}.ws-sortie-group-title{font-size:16px;font-weight:700;color:#343a40;padding:18px 40px 4px;margin:0}.ws-import-row{margin-bottom:12px}.ord-allergy-alert{display:flex;align-items:center;gap:12px;margin:20px 40px 0;padding:16px 20px;background:#ffe3e3;border:2px solid #fa5252;border-radius:12px;color:#c92a2a;font-size:15px;line-height:1.5;box-shadow:0 4px 16px #fa525240;animation:ord-allergy-pulse 1.2s ease-in-out 3}.ord-allergy-alert strong{font-size:16px;letter-spacing:.5px}.ord-allergy-alert-icon{font-size:26px}@keyframes ord-allergy-pulse{0%,to{box-shadow:0 4px 16px #fa525240}50%{box-shadow:0 4px 26px #fa525299}}.ord-allergy-mol,mark.ord-allergy-mol,span.ord-allergy-mol{background:#ffc9c9;color:#c92a2a;font-weight:700;border-radius:4px;padding:0 4px}.ord-dci-tag.ord-allergy-mol{background:#ffc9c9;color:#c92a2a}.mt-input-backdrop mark,.mt-input-backdrop span{padding:0!important;font-weight:inherit!important}.ws-traitement-sortie-input textarea{color:transparent;caret-color:#2c2e33}.ws-traitement-sortie-input textarea::placeholder{color:#adb5bd}.ws-traitement-sortie-input .mt-input-backdrop{color:#333}.ws-traitement-sortie-input .mt-input-backdrop .ord-allergy-mol{background:#ffc9c9;color:#c92a2a;border-radius:3px}.ord-bloc{display:grid;gap:20px;align-items:stretch}.ord-bloc-2col{grid-template-columns:1fr 1fr}.ord-bloc .mt-input-wrapper,.ord-bloc .input-section textarea{min-height:280px}.ord-bloc-3col{grid-template-columns:1fr 1fr 1fr}mark.ord-consumed{background:#51cf6647;color:inherit;border-radius:3px}mark.ord-unmatched{background:#fa525238;color:#c92a2a;border-radius:3px}.ord-unmatched-out{color:#e03131;font-weight:600}.ord-dose-error{color:#e8590c;font-weight:700;background:#ffa94d33;border-radius:3px;padding:0 3px}.ord-legend{margin:6px 0 0;font-size:12.5px;color:#868e96;display:flex;gap:10px}.ord-data-section{min-width:0;padding:30px 26px;border-right:1px solid #e9ecef}.ord-bloc-3col .input-section,.ord-bloc-3col .output-section{padding:26px}.ord-data-list{display:flex;flex-direction:column;gap:10px;max-height:480px;overflow-y:auto}.ord-line-card{border:1px solid #e9ecef;border-radius:10px;padding:10px 14px;background:#fbfcfe;font-size:13.5px}.ord-line-card.has-error{border-color:#ffc9c9;background:#fff5f5}.ord-line-card-head{display:flex;gap:10px;align-items:baseline;margin-bottom:6px}.ord-line-num{font-size:12px;font-weight:700;color:#4f6ef5;white-space:nowrap}.ord-line-src{font-size:12.5px;color:#868e96;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ord-line-none{color:#adb5bd;margin:4px 0}.ord-line-data{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;margin:0}.ord-line-data dt{font-weight:600;color:#495057;white-space:nowrap}.ord-line-data dd{margin:0;display:flex;flex-wrap:wrap;gap:6px}.ord-dci-tag,.ord-prise-tag{background:#eef1fd;color:#3f51c5;border-radius:6px;padding:2px 8px;font-size:12.5px}.ord-orphan-tag{background:#fdf2e7;color:#b35c00}.ord-orphan-tag em{font-style:normal;opacity:.75;font-size:11.5px}.ord-prise-tag{background:#f1f3f5;color:#495057}.ord-line-unmatched{margin:6px 0 0;font-size:12.5px}.ord-line-error{margin:6px 0 0;font-size:12.5px;color:#e8590c}.ord-rule-tabs{display:inline-flex;flex-wrap:wrap;background:#edf0f6;border:1px solid #e0e4ec;border-radius:12px;padding:4px;gap:2px;margin-bottom:18px}.ord-rule-tab{display:inline-flex;align-items:center;gap:8px;padding:8px 20px;border:none;border-radius:9px;background:transparent;color:#5a6472;font-size:14px;font-weight:600;cursor:pointer;transition:all .18s ease}.ord-rule-tab:hover:not(.active){background:#ffffffbf;color:#343a40}.ord-rule-tab.active{background:linear-gradient(135deg,#4f6ef5,#764ba2);color:#fff;box-shadow:0 3px 12px #4f6ef559}.ord-rule-tab-count{font-size:12px;font-weight:700;min-width:20px;text-align:center;border-radius:10px;padding:1px 7px;background:#dfe4ee;color:#5a6472}.ord-rule-tab.active .ord-rule-tab-count{background:#ffffff47;color:#fff}.ord-rule-block{margin-bottom:26px}.ord-rule{border:1px solid #e9ecef;border-radius:12px;padding:12px 14px;background:#fbfcfe;margin-bottom:12px}.ord-insert-divider{display:flex;align-items:center;justify-content:center;height:22px;margin:-10px 0 2px;position:relative;opacity:.35;transition:opacity .15s ease}.ord-insert-divider:hover{opacity:1}.ord-insert-divider:before{content:"";position:absolute;left:8px;right:8px;top:50%;border-top:2px dashed #cdd6f7}.ord-insert-divider button{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;border:1.5px solid #4f6ef5;background:#fff;color:#4f6ef5;font-size:16px;line-height:1;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;transition:all .15s ease}.ord-insert-divider button:hover{background:#4f6ef5;color:#fff;transform:scale(1.1)}.ord-rule-head{display:flex;gap:10px;align-items:flex-start;flex-wrap:wrap}.ord-rule-order{font-size:13px;font-weight:700;color:#fff;background:linear-gradient(135deg,#4f6ef5,#764ba2);border-radius:6px;padding:3px 8px;white-space:nowrap}.ord-rule-move{display:flex;flex-direction:column;gap:2px}.ord-rule-move button{border:1px solid #dee2e6;background:#fff;border-radius:5px;width:24px;height:18px;font-size:11px;line-height:1;cursor:pointer;color:#495057}.ord-rule-move button:hover:not(:disabled){background:#eef1fd;color:#4f6ef5}.ord-rule-move button:disabled{opacity:.35;cursor:default}.ord-rule-inputs{flex:1;min-width:220px;display:flex;flex-direction:column;gap:6px}.ord-rule-input-row{display:flex;gap:6px;align-items:center}.ord-rule-input{flex:1;min-width:0;padding:9px 12px;border:1px solid #dee2e6;border-radius:8px;font-size:14px}.ord-rule-input:focus{outline:none;border-color:#4f6ef5}.ord-rule-input-remove{flex-shrink:0}.ord-rule-variant-add{align-self:flex-start;margin-top:2px}.ord-rule-body{display:flex;flex-direction:column;gap:12px;margin-top:12px}.ord-rule-section{border-top:1px dashed #e9ecef;padding-top:10px}.ord-rule-section-title{display:block;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.4px;color:#868e96;margin-bottom:8px}.ord-poso-hint{margin:-4px 0 8px;font-size:12px;color:#868e96}.ord-rule-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.ord-dci-row{display:flex;gap:8px;align-items:center;margin-bottom:8px}.ord-dci-row input,.ord-rule-row input,.ord-poso-field input{padding:8px 10px;border:1px solid #dee2e6;border-radius:8px;font-size:13.5px}.ord-dci-row input:focus,.ord-rule-row input:focus,.ord-poso-field input:focus{outline:none;border-color:#4f6ef5}.ord-dci-name{flex:2;min-width:160px}.ord-dci-dose,.ord-dci-unit{width:80px}.ord-commercial{flex:1;min-width:220px}.ord-poso-row{display:flex;gap:12px;flex-wrap:wrap;align-items:flex-end}.ord-poso-field{display:flex;flex-direction:column;gap:4px;font-size:12.5px;font-weight:600;color:#495057}.ord-poso-field input{width:76px}.ord-poso-autre{flex:1;min-width:180px}.ord-poso-autre input{width:100%;box-sizing:border-box}.btn-small{padding:6px 12px;font-size:13px}.ord-molecules{display:flex;flex-direction:column;gap:12px}.ord-molecule{border:1px solid #e9ecef;border-radius:10px;padding:12px 14px;background:#fbfcfe}.ord-molecule-head{display:flex;gap:10px;align-items:center;margin-bottom:8px}.ord-molecule-name{flex:1;padding:8px 12px;border:1px solid #dee2e6;border-radius:8px;font-size:14px;font-weight:600}.ord-molecule-name:focus{outline:none;border-color:#4f6ef5}.ord-doses-label{display:block;font-size:12.5px;font-weight:600;color:#868e96;margin-bottom:6px}.ord-doses-label em{font-weight:400}.ord-doses-list{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.ord-add-dose{display:inline-flex;gap:6px;align-items:center}.ord-add-dose input{width:70px;padding:6px 8px;border:1px solid #dee2e6;border-radius:8px;font-size:13px}.ord-add-dose input:focus{outline:none;border-color:#4f6ef5}.ord-unites{display:flex;flex-direction:column;gap:10px}.ord-unites-actions{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.ord-unite{display:flex;gap:10px;align-items:center;flex-wrap:wrap;border:1px solid #e9ecef;border-radius:10px;padding:10px 14px;background:#fbfcfe}.ord-unite-name{width:90px;padding:8px 10px;border:1px solid #dee2e6;border-radius:8px;font-size:14px;font-weight:600}.ord-unite-conv-label{font-size:13px;color:#868e96}.ord-unite-conv{display:inline-flex;gap:6px;align-items:center;font-size:13.5px;color:#495057}.ord-unite-conv input{width:80px;padding:6px 8px;border:1px solid #dee2e6;border-radius:8px;font-size:13px}.ord-unite-conv input:focus,.ord-unite-name:focus{outline:none;border-color:#4f6ef5}.ws-paraclinique-warn{padding:14px 40px 0;margin:0}.bt-input{max-height:240px}.bt-separated{display:flex;flex-direction:column;gap:18px}.bt-group .output-display{min-height:120px;max-height:320px;overflow-y:auto}.ws-imagerie-toolbar{display:flex;justify-content:flex-end}.ws-imagerie-groups{display:grid;grid-template-columns:1fr 1fr;gap:18px;border-top:2px dashed #e9ecef;padding-top:18px}.ws-imagerie-group .output-display{min-height:120px;max-height:360px;overflow-y:auto}@media (max-width: 1024px){.ws-imagerie-groups,.ws-settings{grid-template-columns:1fr}.ws-settings-sidebar{border-right:none;border-bottom:1px solid #e9ecef}.ws-section-toggle{padding:14px 16px 4px}.ws-section-toggle-btn{padding:9px 14px;font-size:14px}.ord-bloc-2col,.ord-bloc-3col{grid-template-columns:1fr}}.st-bio-template{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:16px;align-items:start}.st-bio-template-editor,.st-bio-template-palette{display:flex;flex-direction:column;gap:8px;min-width:0}.st-bio-template-head{display:flex;align-items:center;justify-content:space-between;gap:10px}.st-bio-template-head label{font-weight:600;font-size:14px;color:#343a40}.st-bio-template-actions{display:flex;align-items:center;gap:10px}.st-bio-template-status{font-size:12px;color:#6c757d;white-space:nowrap}.st-bio-template-input{width:100%;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:13px;line-height:1.6;padding:12px;border:1px solid #dee2e6;border-radius:10px;background:#fbfcfe;resize:vertical;-moz-tab-size:8;tab-size:8}.st-bio-template-input:focus{outline:none;border-color:#667eea;background:#fff}.st-bio-template-warn{margin:0;font-size:13px;color:#b45309;background:#fffbeb;border:1px solid #fde68a;border-radius:8px;padding:8px 10px}.st-bio-template-filter{width:100%;padding:7px 10px;border:1px solid #dee2e6;border-radius:8px;font-size:13px}.st-bio-template-filter:focus{outline:none;border-color:#667eea}.st-bio-template-tags{display:flex;flex-wrap:wrap;gap:6px;max-height:320px;overflow-y:auto;padding:10px;border:1px solid #e9ecef;border-radius:10px;background:#fbfcfe;align-content:flex-start}.st-bio-tag{padding:4px 8px;border:1px solid #dee2e6;border-radius:6px;background:#fff;color:#495057;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;cursor:pointer;transition:all .15s ease;box-shadow:none;transform:none}.st-bio-tag:hover{border-color:#667eea;background:#667eea14;color:#667eea;transform:none;box-shadow:none}@media (max-width: 900px){.st-bio-template{grid-template-columns:1fr}.st-bio-template-tags{max-height:200px}}.ocr-scan-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}.ocr-scan-item{background:#f8f9fa;border:1px solid #dee2e6;border-radius:8px;padding:12px 14px}.ocr-scan-head{display:flex;justify-content:space-between;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:6px}.ocr-scan-label{font-weight:600;color:#343a40;overflow-wrap:anywhere}.ocr-scan-date{font-size:12px;color:#868e96;white-space:nowrap}.ocr-scan-text{margin:0 0 10px;padding:8px 10px;background:#fff;border:1px solid #e9ecef;border-radius:6px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:12.5px;line-height:1.5;color:#495057;white-space:pre-wrap;overflow-wrap:anywhere;max-height:7.5em;overflow:hidden;cursor:pointer}.ocr-scan-text.expanded{max-height:none}.ocr-scan-actions{display:flex;justify-content:flex-end;gap:8px}.ocr-empty{color:#868e96;font-style:italic;margin:12px 0}.modal-content.ocr-modal{max-width:700px}.ocr-flatten-option{display:flex;align-items:center;gap:8px;margin:0 0 14px;font-size:14px;color:#495057;cursor:pointer}.ws-ocr-row{display:flex;justify-content:flex-end;margin-bottom:8px}.ocr-capture-launch{display:flex;align-items:center;flex-wrap:wrap;gap:10px 14px;padding:14px;margin-bottom:16px;background:#eef6ff;border:1px solid #cfe4ff;border-radius:10px}.ocr-capture-launch-hint{font-size:12.5px;color:#5f6b7a}.ocr-saved-title{margin:4px 0 10px;font-size:.95rem;color:#495057}.modal-content.ocr-capture-modal{max-width:720px}.ocr-capture-intro{margin:0 0 14px;font-size:13.5px;line-height:1.55;color:#6c757d}.ocr-dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;padding:36px 20px;border:2px dashed #b9c4d0;border-radius:12px;background:#f8f9fa;text-align:center;cursor:pointer;transition:border-color .15s,background .15s}.ocr-dropzone:hover{border-color:#74c0fc;background:#f1f8ff}.ocr-dropzone.over{border-color:#4dabf7;background:#e7f5ff}.ocr-dropzone-icon{font-size:34px;line-height:1}.ocr-dropzone-title{margin:0;font-size:14.5px;font-weight:600;color:#343a40}.ocr-dropzone-hint{margin:0;font-size:13px;color:#6c757d}.ocr-dropzone-hint kbd{display:inline-block;padding:1px 6px;font-family:inherit;font-size:12px;color:#343a40;background:#fff;border:1px solid #ced4da;border-bottom-width:2px;border-radius:4px}.ocr-capture-crop{display:flex;align-items:center;justify-content:center;max-height:58vh;margin-bottom:14px;background:#15171a;border-radius:8px;padding:6px}.ocr-capture-crop .rect-selector img{max-height:54vh}.ocr-capture-reading{text-align:center;padding:32px 16px;color:#495057}.ocr-capture-reading .scan-spinner{border-color:#0000001f;border-top-color:#4dabf7}.ocr-capture-reading .scan-progress-bar{background:#e9ecef}.ocr-capture-reading .scan-progress-fill{background:#4dabf7}.ocr-capture-bar{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px;margin-top:14px}.ocr-capture-main{font-weight:600}.ocr-capture-savealso{margin:12px 0 0}.scan-page{max-width:720px;margin:0 auto;padding:14px 14px 24px}.scan-file-input{display:none}.scan-btn,.scan-bar-btn{min-height:44px;padding:10px 14px;font-size:15px}.scan-start-row{display:flex;gap:10px}.scan-start-row .scan-btn{flex:1 1 auto}.scan-hint{margin:10px 0;font-size:13px;color:#6c757d;line-height:1.5}.scan-error{margin:10px 0;padding:8px 12px;background:#f8d7da;border:1px solid #f5c2c7;border-radius:8px;color:#842029;font-size:13.5px}.scan-saved{margin:0 0 10px;padding:8px 12px;background:#d1e7dd;border:1px solid #badbcc;border-radius:8px;color:#0f5132;font-size:13.5px}.scan-list-title{margin:20px 0 10px;font-size:1.05rem;color:#343a40}.scan-overlay{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1100;display:flex;flex-direction:column;background:#15171a;height:100vh;height:100dvh}.scan-overlay-center{justify-content:center;align-items:center}.scan-overlay-top{display:flex;align-items:flex-start;gap:8px;padding:10px 12px}.scan-overlay-hint{flex:1;margin:0;font-size:13px;line-height:1.45;color:#ced4da}.scan-overlay-close{flex:none;width:36px;height:36px;padding:0;border-radius:50%;background:#ffffff1f;color:#f1f3f5;font-size:17px;line-height:1}.scan-overlay-error{margin:0 12px 8px}.scan-overlay-body{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:4px}.scan-overlay-bar{display:flex;gap:8px;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:#1f2226}.scan-overlay-bar .scan-bar-btn{flex:1 1 0}.scan-bar-btn-main{flex:1.6 1 0;font-weight:600}.rect-selector{position:relative;display:inline-block;line-height:0;max-width:100%;max-height:100%;touch-action:none;user-select:none;-webkit-user-select:none}.rect-selector img{display:block;max-width:100%;max-height:calc(100dvh - 170px);pointer-events:none}.rect-svg{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;overflow:visible}.rect-shade{fill:#0000008c;pointer-events:none}.rect-outline{fill:transparent;stroke:#74c0fc;stroke-width:2px;cursor:move;touch-action:none}.rect-handle{position:absolute;width:30px;height:30px;transform:translate(-50%,-50%);border-radius:50%;background:#74c0fc59;border:3px solid #74c0fc;box-shadow:0 0 0 1px #0006;cursor:grab;touch-action:none}.rect-handle:active{cursor:grabbing;background:#74c0fc99}.scan-progress{text-align:center;padding:24px;color:#e9ecef}.scan-spinner{width:36px;height:36px;margin:0 auto 16px;border:4px solid rgba(255,255,255,.2);border-top-color:#74c0fc;border-radius:50%;animation:scan-spin .8s linear infinite}@keyframes scan-spin{to{transform:rotate(360deg)}}.scan-progress-bar{margin:16px auto 0;width:min(320px,70vw);height:8px;background:#ffffff26;border-radius:4px;overflow:hidden}.scan-progress-fill{height:100%;background:#74c0fc;border-radius:4px;transition:width .2s ease}.scan-preview-head{display:flex;align-items:center;justify-content:space-between;gap:8px}.scan-preview-head .scan-overlay-close{background:#e9ecef;color:#495057}.scan-label-row{display:flex;flex-direction:column;gap:6px;margin-bottom:10px;font-size:14px;font-weight:500;color:#495057}.scan-label-row input{padding:10px 12px;border:1px solid #dee2e6;border-radius:8px;font-size:15px}.scan-preview-text{width:100%;padding:10px 12px;border:1px solid #dee2e6;border-radius:8px;font-family:Monaco,Menlo,Ubuntu Mono,monospace;font-size:14px;line-height:1.5;resize:vertical;box-sizing:border-box}.scan-preview-bar{position:sticky;bottom:0;display:flex;gap:8px;margin:12px -14px 0;padding:10px 14px calc(10px + env(safe-area-inset-bottom));background:#fffffff5;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);border-top:1px solid #e9ecef}.scan-preview-bar .scan-bar-btn{flex:1 1 0}@media (max-width: 600px){.navbar-container{flex-wrap:wrap;gap:8px}}
