/* BUILT FILE: static/style.css is made from static/src/css/NN-*.css (one part per feature). Edit the parts, then run
   python tools/build_static.py  — see docs/DEVELOPER_GUIDE.md. */
:root{--navy:#113451;--navy2:#0b2942;--blue:#007ccf;--cyan:#19aaf3;--ink:#1b3143;--muted:#60788e;--line:#dbe6ee;--bg:#f5f9fc;--card:#fff;--ok:#21845b;--warn:#a66a0b;--shadow:0 5px 20px rgba(17,52,81,.045)}
*{box-sizing:border-box}html{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg)}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}a{color:var(--blue)}.hidden{display:none!important}
.topbar{height:90px;background:#fff;box-shadow:0 1px 5px #c9d8e54b;display:flex;justify-content:space-between;align-items:center;padding:10px max(22px,calc((100vw - 1330px)/2));gap:20px}.brand{display:flex;align-items:center;gap:20px;min-width:0}.brand img{width:220px;max-height:72px;object-fit:contain;object-position:left}.brand-divider{height:50px;width:1px;background:var(--line)}.brand-text{display:flex;flex-direction:column;gap:4px}.brand-text strong{font-weight:800;font-size:20px;letter-spacing:-.5px;color:var(--navy)}.brand-text span{font-size:12px;color:var(--muted)}.top-actions{display:flex;gap:12px;align-items:center}.local-pill{color:#335c7b;background:#eaf5fe;border:1px solid #c3def4;font-size:11px;font-weight:750;letter-spacing:.3px;border-radius:30px;padding:9px 12px;white-space:nowrap}.dot{display:inline-block;height:7px;width:7px;background:#2497d6;border-radius:50%;margin-right:5px}
.shell{max-width:1340px;margin:auto;padding:30px 24px 65px}.workspace-header{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:30px}.eyebrow{color:var(--blue);font-size:10px;font-weight:850;letter-spacing:2px;margin:0 0 6px}.workspace-header h1{font-size:30px;color:var(--navy);letter-spacing:-1px;margin:0 0 6px}.subhead{font-size:13px;color:var(--muted);margin:0}.project-select label{display:block;font-size:10px;letter-spacing:1px;color:var(--muted);font-weight:750;margin-bottom:7px}.project-inline{display:flex;gap:8px}.project-inline select{min-width:230px;max-width:290px}.stepper{display:flex;align-items:stretch;gap:10px;margin-bottom:24px}.step{display:flex;align-items:center;text-align:left;gap:13px;flex:1;background:white;border:1px solid var(--line);border-radius:13px;padding:15px 18px;color:var(--ink);transition:.18s}.step.active{border-color:#a4d7f5;background:#e7f5ff;box-shadow:0 3px 15px #007ccf15}.step.done .step-number{background:#e4f6ed;color:var(--ok)}.step-number{display:grid;place-items:center;flex-shrink:0;width:38px;height:38px;border-radius:50%;background:#edf2f6;color:var(--navy);font-weight:850;font-size:12px}.step.active .step-number{color:white;background:#006cb7}.step b{display:block;font-size:14px;white-space:nowrap}.step small{display:block;font-size:11px;color:var(--muted);margin-top:4px}.step-line{display:block;height:2px;width:17px;background:#c6deec;align-self:center}
.panel{border:1px solid var(--line);border-radius:17px;background:white;box-shadow:var(--shadow);padding:23px}.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}.panel-heading{display:flex;align-items:center;gap:13px;margin-bottom:23px}.panel-heading h2{font-size:18px;letter-spacing:-.4px;color:var(--navy);margin:0 0 4px}.panel-heading p{font-size:12px;color:var(--muted);margin:0;line-height:1.55}.panel-symbol{height:39px;width:39px;border-radius:11px;background:linear-gradient(160deg,#18aaf0,#0069b8);color:white;font-size:15px;font-weight:800;display:grid;place-items:center;flex-shrink:0}.space-between{justify-content:space-between}.fields,.dialog-inner{display:flex;flex-direction:column;gap:15px}.fields label,.dialog-inner label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#35556d;font-weight:700}.required{color:#d04f4f}.hint{color:#8497a9;font-weight:400}.fields input,.fields textarea,.dialog-inner input,.dialog-inner select,.dialog-inner textarea,select,.search-row input{outline:none;border:1px solid #cfdee9;background:#fff;border-radius:9px;padding:10px 12px;color:var(--ink);width:100%;font-size:13px}.fields input:focus,.fields textarea:focus,select:focus,.search-row input:focus,.dialog-inner input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #007ccf13}.field-tip{border-radius:9px;background:#eff7fd;color:#4c6d85;line-height:1.6;font-size:11px;padding:11px 13px;margin:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:1px solid transparent;border-radius:9px;padding:11px 16px;font-size:13px;font-weight:750;text-decoration:none;white-space:nowrap;min-height:40px;transition:.15s}.btn:hover{filter:brightness(.97)}.btn-primary{background:linear-gradient(120deg,#0969b1,#007dcf);color:#fff;box-shadow:0 4px 8px #0074c81c}.btn-outline{background:white;color:#1264a2;border-color:#b7d5e9}.btn-sm{padding:8px 10px;font-size:11px;min-height:32px}.btn-wide{width:100%}.upload-box{display:flex;flex-direction:column;gap:12px}.upload-box>label:first-child{font-weight:750;font-size:12px;color:#35556d}.drop-file{border:1.5px dashed #a3cbe5;border-radius:13px;min-height:135px;background:#f5fbff;display:flex;flex-direction:column;gap:4px;align-items:center;justify-content:center;cursor:pointer;text-align:center;color:#1a5c88}.drop-file input{max-width:225px;margin-top:7px;font-size:11px}.drop-file span:last-of-type{color:var(--muted);font-size:11px}.drop-icon{font-size:34px;font-weight:800;line-height:1}.doc-tip{font-size:11px;line-height:1.65;background:#f5f8fa;color:#5e788c;border-radius:9px;padding:11px;margin-top:14px}.file-picked{font-size:11px;color:var(--muted)}.panel-gap{margin-top:20px}.file-list{display:flex;flex-direction:column;gap:9px}.file-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border:1px solid #e2ebf2;border-radius:10px;padding:11px}.file-main{display:flex;align-items:center;gap:11px;min-width:0}.file-icon{width:38px;height:41px;display:grid;place-items:center;border-radius:8px;background:#edf3f9;color:#426887;font-size:10px;font-weight:850;flex-shrink:0}.file-icon.pdf{color:#b63d39;background:#fff0f0}.file-icon.xlsx{color:#187a50;background:#e9f7ef}.file-name{font-size:12px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:330px}.file-meta{font-size:10px;color:var(--muted);margin-top:4px}.file-actions{display:flex;gap:6px;align-items:center}.count-chip{border-radius:20px;padding:7px 11px;background:#f0f6fa;color:#486a82;font-size:11px;font-weight:700;white-space:nowrap}.mini{border:1px solid #d0e0ed;background:#fff;color:#326a90;border-radius:7px;min-width:30px;min-height:31px;padding:5px 8px;font-size:11px;font-weight:750}.mini.red{color:#aa4b45}.mini:disabled{opacity:.3}.bottom-nav{margin-top:20px;display:flex;justify-content:space-between;align-items:center;gap:15px}.h-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.end{justify-content:flex-end}
.approval-layout{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:20px;align-items:start}.search-row{display:grid;grid-template-columns:1fr 155px;gap:8px}.explainer{font-size:11px;color:#697f8c;line-height:1.6;background:#fff9e9;border:1px solid #f6e9c3;padding:12px;border-radius:10px;margin:12px 0 16px}.approval-list{display:flex;flex-direction:column;gap:10px;max-height:670px;overflow:auto;padding-right:3px}.approval-card{border:1px solid #dce7ef;border-radius:11px;padding:13px;display:flex;gap:11px;align-items:flex-start}.approval-card.chosen{border-color:#86c0df;background:#f6fbff}.approval-title{font-size:13px;color:var(--navy);font-weight:800;overflow-wrap:anywhere}.approval-meta{font-size:11px;color:var(--muted);margin-top:5px;line-height:1.6}.approval-actions{display:flex;align-items:center;gap:6px;margin-left:auto;flex-shrink:0}.match-note{display:inline-block;font-size:10px;color:#347a94;background:#eaf5fc;padding:4px 8px;border-radius:6px;margin-top:8px;max-width:100%}.match-note.warning{color:#996b28;background:#fff4df}.pdf-frame{width:100%;height:610px;border:1px solid #d2e1eb;border-radius:11px;background:#f4f7fa}.preview-placeholder{height:610px;border:1px dashed #c9dce8;border-radius:11px;background:#f7fafc;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:11px;text-align:center;color:#7b91a1}.preview-placeholder b{font-size:13px;color:#34536a}.preview-placeholder span{font-size:11px}.big-icon{height:66px;width:66px;display:grid;place-items:center;background:#e4f4ff;color:#0074b8;border-radius:18px;font-weight:850;font-size:32px}.preview-actions{display:flex;gap:8px;margin-top:12px;justify-content:flex-end}.arrange-grid{grid-template-columns:minmax(0,.98fr) minmax(0,1.02fr)}.arrange-list{display:flex;flex-direction:column;gap:10px}.arrange-section{border:1px solid #d9e5ed;border-radius:11px;background:#fff;overflow:hidden}.arrange-section.dragging{opacity:.5}.arrange-section.drag-over{border:2px dashed #007ccf;background:#eef8fe}.arrange-head{display:flex;align-items:center;gap:8px;padding:12px}.grip{cursor:grab;font-size:17px;letter-spacing:-2px;color:#aac3d5;user-select:none}.arrange-title{flex:1;min-width:0;font-size:12px;color:var(--navy);font-weight:800}.arrange-title small{display:block;font-size:10px;color:#8095a3;font-weight:500;margin-top:3px}.arrange-number{display:grid;place-items:center;width:28px;height:28px;border-radius:7px;background:#e5f4fe;color:#1471ab;font-size:12px;font-weight:800;flex-shrink:0}.arrange-files{background:#f8fbfe;border-top:1px solid #e2edf5;padding:7px 9px}.arrange-item{display:flex;align-items:center;gap:8px;padding:8px;border-radius:7px;border:1px solid #e7eef4;background:#fff;margin-bottom:5px}.arrange-item .file-name{font-size:11px;max-width:240px;flex:1}.arrange-muted{color:#879aaa;font-size:10px;padding:6px 12px}.checkbox{accent-color:#0072b9;width:15px;height:15px;flex-shrink:0}.section-off{opacity:.5}.export-status{font-size:12px;padding:13px;background:#eef7fd;border-radius:10px;color:#456d84;line-height:1.6;margin-bottom:13px}.compact{height:280px;margin-top:14px}.final-frame{height:550px;margin-top:14px}.footnote{color:var(--muted);font-size:10px;line-height:1.7}.sticky-panel{position:sticky;top:16px}.empty{max-width:600px;margin:50px auto;text-align:center;display:flex;flex-direction:column;align-items:center;gap:13px;padding:48px}.empty h2{margin:0;font-size:24px}.empty p{margin:0 0 11px;color:var(--muted);line-height:1.6}.dialog{border:1px solid var(--line);border-radius:16px;padding:0;box-shadow:0 15px 70px #0c2e4d38;width:min(470px,95vw);max-height:92vh}.dialog::backdrop{background:#061e31a3}.large-dialog{width:min(640px,95vw)}.dialog-inner{padding:24px;gap:16px;overflow:auto;max-height:90vh}.dialog-header{display:flex;justify-content:space-between;align-items:center}.dialog-header h2{font-size:19px;color:var(--navy);margin:0}.close-dialog{background:transparent;border:0;font-size:22px;color:#71899c}.fields-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}.dialog-inner .checkbox-row{display:flex;flex-direction:row;align-items:center;gap:9px;font-weight:500}.checkbox-row input{width:15px}.dialog-inner input[type=file]{font-size:12px}.dialog-inner label{color:#35546b}.dialog-inner label>input,.dialog-inner label>select,.dialog-inner label>textarea{margin-top:4px}#toast{position:fixed;right:24px;bottom:22px;max-width:470px;z-index:99;display:none;background:#0e3d5e;color:white;border-radius:10px;padding:14px 20px;box-shadow:0 12px 30px #0003;font-size:12px;line-height:1.5}#toast.error{background:#963b39}#toast.show{display:block}
@media(max-width:1050px){.brand img{width:180px}.brand-text strong{font-size:16px}.shell{padding:25px 16px}.approval-layout,.two-col,.arrange-grid{grid-template-columns:1fr}.sticky-panel{position:static}.step b{font-size:12px}.step small{display:none}.panel{padding:19px}}@media(max-width:620px){.topbar{height:auto;padding:10px 14px}.brand{gap:9px}.brand img{width:108px;max-height:51px}.brand-divider{height:35px}.brand-text strong{font-size:12px;line-height:1.2}.brand-text span,.top-actions .local-pill{display:none}.top-actions{gap:3px}.top-actions .btn{padding:8px;font-size:10px}.workspace-header{display:block}.workspace-header h1{font-size:25px}.project-select{margin-top:18px}.project-inline select{min-width:0;max-width:none;flex:1}.stepper{gap:4px}.step-line{width:5px}.step{padding:10px 7px;flex-direction:column;gap:5px;min-width:0}.step-number{width:31px;height:31px}.step b{font-size:10px;text-align:center;white-space:normal}.step small{display:none}.panel{padding:14px;border-radius:12px}.panel-heading h2{font-size:16px}.fields-grid,.search-row{grid-template-columns:1fr}.bottom-nav{align-items:stretch;flex-direction:column}.bottom-nav .btn{width:100%}.file-name{max-width:155px}.approval-card{flex-wrap:wrap}.approval-actions{margin-left:0;width:100%}.approval-actions button{flex:1}.pdf-frame{height:430px}.arrange-head{padding:9px;gap:5px}.arrange-title{font-size:11px}.mini{padding:4px;min-width:27px}.arrange-item .file-name{max-width:125px}.preview-panel{order:2}}

/* V1.2: Project info on its own page; simple uploads by document type */
.details-panel{max-width:980px;margin:0 auto}.simple-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.simple-form-grid label:first-child{grid-column:1/-1}.upload-intro{font-size:12px;color:#325c78;border:1px solid #cae4f5;background:#f0f8fe;padding:14px;border-radius:11px;line-height:1.6;margin-bottom:20px}.upload-categories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.category-card{border:1px solid #dce8f0;background:#fff;border-radius:13px;padding:17px;min-width:0}.category-top{display:flex;align-items:flex-start;gap:10px}.category-number{width:34px;height:34px;border-radius:9px;background:#e7f4ff;color:#0874b9;display:grid;place-items:center;font-size:12px;font-weight:850;flex-shrink:0}.category-title{flex:1;min-width:0}.category-title b{font-size:14px;color:#173b55;display:block}.category-title small{font-size:11px;color:#718aa0;line-height:1.5;display:block;margin-top:3px}.category-upload{display:flex;gap:10px;align-items:center;margin:14px 0 8px}.compact-file-pick{flex:1;border:1px dashed #adcbdc;border-radius:9px;min-width:0;padding:9px;background:#f7fbff;font-size:11px;color:#536f84;cursor:pointer}.compact-file-pick input{display:block;width:100%;font-size:11px;max-width:100%;margin-bottom:5px}.compact-file-pick span{font-size:10px;color:#8097a9}.category-files{display:flex;flex-direction:column;gap:7px;margin-top:10px}.category-files .file-row{padding:8px}.category-files .file-name{max-width:240px}.category-empty{font-size:11px;color:#8094a7;margin:10px 0 0}.category-progress{font-size:11px;color:#1678ac;min-height:15px}.loading-info{padding:24px;color:#48738c;text-align:center;border:1px dashed #c0dceb;border-radius:10px}.stepper{gap:7px}.step{padding:14px 11px;gap:8px}.step-line{width:10px;flex:0 0 10px}.step b{font-size:12px}.step small{font-size:10px}.approval-actions button{white-space:nowrap}
@media(max-width:1050px){.upload-categories{grid-template-columns:1fr}}@media(max-width:620px){.simple-form-grid{grid-template-columns:1fr}.simple-form-grid label:first-child{grid-column:auto}.stepper{gap:4px}.step-line{width:4px;flex-basis:4px}.step{padding:9px 4px}.category-upload{flex-direction:column;align-items:stretch}.category-upload button{width:100%}.category-top .count-chip{padding:5px;font-size:10px}.category-files .file-name{max-width:145px}}

/* V1.3: approval catalog with nested folders, live previews and project-scoped selection */
.approval-toolbar{margin-bottom:15px}.approval-toolbar .panel-heading{margin-bottom:14px}.approval-toolbar-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}.approval-search-controls{display:grid;grid-template-columns:minmax(240px,1fr) minmax(150px,205px) minmax(150px,205px);gap:10px}.approval-review-note{color:#6a7c87;background:#fff8e9;border:1px solid #f0e4c2;padding:10px 14px;border-radius:10px;font-size:11px;line-height:1.7;margin:12px 0 0}
.approval-workspace{display:grid;grid-template-columns:minmax(190px,.75fr) minmax(270px,1.15fr) minmax(340px,1.45fr);gap:14px;align-items:start}.approval-workspace>.panel{min-width:0;padding:17px}.approval-column-heading{font-weight:800;font-size:13px;color:#123c59;border-bottom:1px solid #e6edf3;padding-bottom:13px;margin-bottom:10px}.approval-folder-tree{display:flex;flex-direction:column;gap:7px}.folder-main,.folder-child{width:100%;text-align:left;border:0;background:none;cursor:pointer;display:flex;gap:8px;align-items:center;font-size:12px;color:#33536c;border-radius:8px;padding:10px}.folder-main{font-weight:750}.folder-main.open{color:#086da9;background:#eaf5fe}.folder-main:hover,.folder-child:hover{background:#f0f7fb}.folder-icon{font-size:16px;width:16px;color:#6d9cb8}.folder-n{font-size:10px;color:#7091a4;margin-left:auto;background:#ecf3f7;border-radius:10px;min-width:22px;text-align:center;padding:2px 5px}.folder-children{padding-left:14px;display:flex;flex-direction:column;gap:3px;margin-top:3px}.folder-child{font-size:11px;padding:9px 8px}.folder-child:before{content:'›';color:#95b4c6;margin-right:1px}.folder-child.active{background:#e9f5fd;color:#0874b9;font-weight:800}.approval-sidebar-help{font-size:10px;line-height:1.7;color:#8ba0af;margin-top:17px;border-top:1px solid #e6eef4;padding-top:13px}.approval-column-top{display:flex;justify-content:space-between;gap:8px;align-items:start;margin-bottom:13px}.approval-column-top h3{font-size:15px;margin:0 0 4px;color:#133b56}.approval-column-top p{font-size:11px;line-height:1.4;color:#8096a6;margin:0;overflow-wrap:anywhere}.approval-list-tools{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 2px 12px;border-bottom:1px solid #edf2f6;margin-bottom:10px;font-size:11px;color:#71899a}.pick-all{display:flex;align-items:center;gap:8px;cursor:pointer}.pick-all input,.approval-pick input{accent-color:#0073be;width:15px;height:15px}.approval-list{max-height:680px;overflow:auto;display:flex;flex-direction:column;gap:8px}.approval-card{display:flex;flex-direction:column;gap:7px;border:1px solid #e0eaf1;border-radius:11px;background:#fff;padding:9px}.approval-card.chosen{border-color:#7eb9da;background:#f3fbff}.approval-card.previewed{outline:1px solid #0b85c9}.approval-pick{position:absolute;margin-top:12px;margin-left:5px;z-index:1;cursor:pointer}.approval-doc-focus{border:0;background:none;text-align:left;display:flex;align-items:flex-start;gap:9px;padding:4px 2px 4px 30px;width:100%;cursor:pointer;min-width:0}.approval-doc-focus:hover strong{color:#0075be}.approval-doc-body{min-width:0;display:flex;flex-direction:column;flex:1;gap:5px}.approval-doc-body strong{font-size:11px;line-height:1.5;overflow-wrap:anywhere;color:#193c56}.approval-doc-body small{font-size:10px;line-height:1.45;color:#7892a4;overflow-wrap:anywhere}.source-label{align-self:flex-start;font-size:9px;padding:3px 7px;border-radius:9px;color:#3d758d;background:#e9f3fb}.source-label.source-project{color:#895c31;background:#fff2e1}.approval-doc-tools{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:5px}.approval-doc-tools .mini{font-size:10px;min-height:27px}.approval-preview-pane{position:sticky;top:14px}.approval-preview-pane .pdf-frame,.approval-preview-pane .preview-placeholder{height:520px}.approval-preview-details{margin-top:15px;border-top:1px solid #e6edf4;padding-top:11px;display:grid;grid-template-columns:110px 1fr;gap:7px;font-size:10px;line-height:1.6;color:#557387;overflow-wrap:anywhere}.approval-preview-details b{color:#1f4c69}.approval-preview-details p{grid-column:1/-1;color:#8b98a3;margin:2px 0}.selection-summary{margin-top:14px;display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.selection-summary h3{font-size:14px;margin:0 0 5px;color:#123e58;display:flex;gap:10px;align-items:center}.selection-summary p{font-size:11px;color:#758a9a;margin:0}.chosen-documents{border-top:1px solid #e5ecf2;padding-top:11px;display:flex;flex-direction:column;gap:6px;width:100%}.chosen-row{display:flex;gap:8px;align-items:center;border:1px solid #e2edf2;border-radius:8px;padding:7px}.chosen-row>button:first-child{border:0;background:none;flex:1;text-align:left;cursor:pointer;font-size:11px;color:#256c94;overflow-wrap:anywhere}.chosen-row small{color:#8399a7;font-size:10px}.library-empty{font-size:12px;color:#7991a3;border:1px dashed #d5e3ed;background:#f6fafe;border-radius:10px;padding:18px;line-height:1.7}
@media(max-width:1250px){.approval-workspace{grid-template-columns:minmax(180px,.75fr) minmax(260px,1.2fr)}.approval-preview-pane{grid-column:1/-1;position:static}.approval-preview-pane .pdf-frame,.approval-preview-pane .preview-placeholder{height:520px}}@media(max-width:760px){.approval-search-controls{grid-template-columns:1fr}.approval-workspace{grid-template-columns:1fr}.approval-preview-pane{grid-column:auto}.approval-workspace>.panel{padding:14px}.approval-folder-tree{max-height:260px;overflow:auto}.approval-list{max-height:480px}.approval-toolbar-actions{margin-top:10px}.chosen-row{flex-wrap:wrap}.approval-preview-pane .pdf-frame,.approval-preview-pane .preview-placeholder{height:440px}}
.approval-card{position:relative}
.approval-search-controls input{outline:none;border:1px solid #cfdee9;background:#fff;border-radius:9px;padding:10px 12px;color:var(--ink);width:100%;font-size:13px;min-width:0}
.approval-search-controls input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #007ccf13}

/* V1.4: account access only – original V1.3 workflow styling is preserved. */
body.app-locked > .topbar,body.app-locked > .shell{display:none!important}
.login-shell{min-height:100vh;display:grid;place-items:center;padding:28px;background:linear-gradient(145deg,#e8f2f9,#f9fcff)}
.login-card{width:min(100%,430px);background:white;border:1px solid #dbe9f2;border-radius:20px;box-shadow:0 16px 55px #12385317;padding:35px;display:flex;flex-direction:column;gap:14px}
.login-logo{width:230px;max-width:100%;height:80px;object-fit:contain;object-position:left}
.login-card h1{color:#113451;font-size:21px;line-height:1.3;margin:4px 0 0}
.login-card>p{margin:0;color:#687f91;font-size:12px}.login-card form{display:flex;flex-direction:column;gap:14px;margin-top:6px}
.login-card label{font-size:12px;font-weight:700;color:#35556d;display:flex;flex-direction:column;gap:7px}
.login-card input{border:1px solid #cfdee9;border-radius:9px;padding:12px;font:inherit;font-size:14px}
.login-error{min-height:18px;color:#a83434!important;font-weight:700}.login-help{line-height:1.6}
.owner-panel{margin-top:22px;border-top:1px solid #dde8f0;padding-top:20px;max-width:780px}
.owner-panel>strong{color:#123c59}.owner-panel p{font-size:12px;color:#71889c}.owner-row{display:flex;gap:10px;align-items:center}.owner-row select{max-width:400px}
.users-list{max-height:350px;overflow:auto;display:flex;flex-direction:column;gap:7px}
.user-row{border:1px solid #dbe8ef;border-radius:9px;padding:10px;display:flex;align-items:center;justify-content:space-between;gap:9px}
.user-row small{display:block;color:#71889c;font-size:11px;margin-top:4px}.user-tools{display:flex;gap:5px;flex-wrap:wrap}
@media(max-width:620px){.user-row,.owner-row{flex-direction:column;align-items:stretch}.login-card{padding:22px}.top-actions{flex-wrap:wrap;justify-content:flex-end}}

/* V1.4.1: project save verification without changing the approved workflow */
.project-save-summary{border:1px solid #d8e7ef;border-radius:12px;background:#f8fbfe;margin-top:20px;padding:15px}
.project-save-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.project-save-head strong{font-size:14px;color:var(--navy)}.project-save-head p{font-size:12px;color:var(--muted);margin:5px 0 0}
.project-save-stats{display:flex;flex-wrap:wrap;gap:9px;margin:13px 0}
.project-save-stats span{background:#fff;border:1px solid #dceaf2;border-radius:9px;padding:10px 13px;font-size:12px;color:#42647e}
.project-save-stats b{color:var(--navy);font-size:17px;margin-right:5px}
.project-save-note{font-size:12px;color:#4d6b81;margin:7px 0 13px;line-height:1.6}
.project-save-note.storage-warning{color:#9d4e1d;font-weight:600}
.project-save-actions{display:flex;gap:7px;flex-wrap:wrap}


/* V1.4.2: read-only overview, existing project editing workflow unchanged */
.team-projects{margin-bottom:15px;padding:17px 22px}.team-projects-head,.full-project-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.team-projects-head h2{font-size:16px;color:#183e59;margin:0 0 4px}.team-projects-head p,.full-project-head p{font-size:11px;color:#71899a;margin:0}.team-projects-list{margin-top:12px;display:flex;flex-direction:column;gap:7px;max-height:250px;overflow-y:auto}.team-project-row{display:flex;align-items:center;gap:12px;padding:9px 12px;border:1px solid #e0eaf1;background:#fff;border-radius:10px}.team-project-row.team-current{border-color:#8bbdd7;background:#f5fafe}.team-project-info{min-width:0;flex:1}.team-project-info strong{display:block;font-size:12px;color:#183e59}.team-project-info small{font-size:10px;color:#768f9f;display:block;margin-top:4px;overflow-wrap:anywhere}.team-project-counts{display:flex;gap:5px;flex-wrap:wrap}.team-project-counts span{font-size:10px;background:#eaf4fa;color:#3b6984;border-radius:7px;padding:6px}.full-project-contents{margin-top:20px;border:1px solid #d5e6ef;border-radius:12px;padding:16px;background:#fbfdff}.full-project-head strong{font-size:14px;color:#133c55}.full-project-summary{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.full-project-summary span{font-size:11px;padding:8px;background:#fff;border:1px solid #e1edf3;border-radius:8px;color:#54738a}.full-project-documents{display:flex;flex-direction:column;gap:8px}.review-section{border:1px solid #e0eaf0;border-radius:9px;background:#fff}.review-section summary{cursor:pointer;font-size:12px;font-weight:700;color:#1d4b68;padding:11px;display:flex;align-items:center;justify-content:space-between}.review-section summary span{font-weight:400;font-size:10px;color:#7a93a5}.review-section-files{border-top:1px solid #edf2f5;padding:4px 11px 10px}.review-file{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 0;border-bottom:1px solid #f0f4f7;font-size:11px;color:#294c65}.review-file:last-child{border-bottom:0}.review-file>span{overflow-wrap:anywhere;min-width:0}.review-file a{margin-left:9px;color:#0074b7;font-weight:700;text-decoration:none}.review-file>div{white-space:nowrap}.review-file small{color:#8399a7}.review-none{font-size:11px;color:#8799a6;margin:9px 0}.storage-warning{color:#9d4e1d!important}
@media(max-width:700px){.team-project-row{flex-direction:column;align-items:stretch}.team-project-counts{order:2}.team-projects-head,.full-project-head{align-items:flex-start}.review-file{align-items:flex-start;flex-direction:column}.review-file>div{align-self:flex-end}}

/* V1.5 local OCR suggestion — complements, never replaces, V1.4.2 layout. */
.analysis-pill{border-radius:6px;padding:4px 6px;background:#eef5f8;color:#305b72;font-size:10px}
.analysis-result{padding:12px;border:1px solid #d3e3ea;border-radius:9px;background:#f6fafd;margin-top:12px;grid-column:1/-1}
.analysis-result>strong{color:#184764;display:block;margin-bottom:5px;font-size:12px}
.analysis-result>small{display:block;color:#607e90;font-size:11px;margin-bottom:8px}
.analysis-result p{margin:6px 0;line-height:1.6;overflow-wrap:anywhere}
.analysis-result .analysis-alert{color:#9e551f;background:#fff8ed;padding:7px;border-radius:7px}
.analysis-result button{margin-top:9px}

/* V1.6: filenames remain completely readable across cards and narrow screens */
.approval-doc-body strong{overflow:visible;white-space:normal;overflow-wrap:anywhere;word-break:break-word;display:block;max-width:100%;font-size:12px;line-height:1.6}
.approval-card,.approval-doc-focus,.approval-doc-body{min-width:0;max-width:100%}
.approval-doc-focus{align-items:flex-start}
.approval-doc-body .content-match{color:#145c76;background:#ecf7fa;padding:5px;border-radius:4px;line-height:1.5;overflow-wrap:anywhere;display:block}
@media(max-width:1100px){.approval-workspace{grid-template-columns:minmax(150px,.65fr) minmax(260px,1fr)}.approval-preview-pane{grid-column:1/-1;position:static}}
.btn-danger-outline{background:white;color:#aa4b45;border-color:#e8c4c1}.btn-danger-outline:hover{background:#fff5f4}
.pump-actions{margin:-8px 0 14px}.pump-list{display:flex;flex-direction:column;gap:8px}.pump-subtitle{font-size:14px;color:var(--navy);margin:22px 0 10px}
.pump-row{display:grid;grid-template-columns:minmax(100px,.9fr) minmax(150px,1.5fr) minmax(150px,1.5fr) minmax(90px,.8fr) minmax(170px,1.5fr) auto;gap:8px;align-items:center;border:1px solid #e2ebf2;border-radius:10px;padding:9px}
.pump-row input,.link-row select{outline:none;border:1px solid #cfdee9;background:#fff;border-radius:8px;padding:8px 10px;color:var(--ink);width:100%;font-size:12px;min-width:0}.pump-row input:focus,.link-row select:focus{border-color:var(--blue);box-shadow:0 0 0 3px #007ccf13}
.pump-head{border:0;padding:0 9px;font-size:11px;font-weight:750;color:#5e788c}.pump-sheet{display:flex;flex-direction:column;gap:3px;font-size:11px;min-width:0;overflow-wrap:anywhere}.pump-sheet small{color:var(--muted);font-size:10px}
.pump-ok{color:var(--ok);font-weight:700}.pump-warn{color:var(--warn);font-weight:700}.pump-note{border-radius:9px;background:#fff7e8;color:#8a5a0c;font-size:11px;line-height:1.6;padding:10px 12px;margin:0 0 6px}
.link-row{display:grid;grid-template-columns:minmax(150px,1.3fr) minmax(170px,1fr) minmax(190px,1.4fr);gap:10px;align-items:center;border:1px solid #e2ebf2;border-radius:10px;padding:9px}.link-row .file-name{max-width:none;white-space:normal;overflow-wrap:anywhere}
@media(max-width:860px){.pump-row,.link-row{grid-template-columns:1fr}.pump-head{display:none}}
.approval-filter-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:10px}.approval-filter-row label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:750;color:#35556d}.approval-filter-row select{width:100%}
.doc-tags{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}.doc-tag{border-radius:20px;padding:2px 8px;font-size:10px;font-weight:700;background:#eef5fb;color:#2c5f86}.doc-tag.brand{background:#e6f2fd;color:#0b5aa3}.doc-tag.industry{background:#f1f5ea;color:#4d6b1f}.doc-tag.missing{background:#f5f5f5;color:#8b98a5;font-weight:600}
@media(max-width:760px){.approval-filter-row{grid-template-columns:1fr}}
.ip-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(170px,1.1fr) auto auto;gap:8px;align-items:center;border:1px solid #e2ebf2;border-radius:10px;padding:8px}.ip-row input{outline:none;border:1px solid #cfdee9;background:#fff;border-radius:8px;padding:8px 10px;color:var(--ink);width:100%;font-size:12px;min-width:0}.ip-add{grid-template-columns:minmax(0,1.3fr) minmax(170px,1.1fr) auto;margin-bottom:10px;background:#f5fbff}.ip-meta{font-size:10px;color:var(--muted);white-space:nowrap}
@media(max-width:760px){.ip-row,.ip-add{grid-template-columns:1fr}}


/* V2.0: upload / export progress */
.upload-bar{display:block;height:5px;background:#e3eef6;border-radius:4px;overflow:hidden;margin-top:6px}.upload-bar i{display:block;height:100%;width:0;background:linear-gradient(90deg,#0969b1,#19aaf3);transition:width .25s}.export-progress{margin-top:10px;font-size:12px;color:#456d84}

/* V2.2: Email Intake */
.email-source{display:block;font-size:10px;color:#3f6283;margin-top:3px}
.intake-list{max-height:430px;margin-top:12px}.intake-row{align-items:flex-start}.intake-row>div{min-width:0}
.intake-manual{border-color:#efd8a4;background:#fffaf0}.intake-flag{color:#9a6a12}.intake-error{color:#963b39}
.intake-files{margin:7px 0 0;padding-left:17px;font-size:11px;line-height:1.7;color:#35556d;overflow-wrap:anywhere}
.intake-files small{display:inline;margin:0}.intake-added b{color:#21845b}.intake-link b,.intake-needs_manual b,.intake-too_many b{color:#9a6a12}
.intake-invalid b,.intake-unsupported b{color:#963b39}.dialog-inner .intake-filter{display:flex;flex-direction:row;align-items:center;gap:6px;font-size:12px;color:#35556d;font-weight:600;white-space:nowrap}.dialog-inner .intake-filter>input{margin:0;width:15px;height:15px;min-width:15px;padding:0;border:0;box-shadow:none;flex:0 0 auto}

/* V2.3: Submittal number and revisions */
.submittal-box small{color:#5f7d93}.submittal-ref{font-weight:800;color:#0b4f8f;letter-spacing:.2px}
#newVersion{margin-top:8px}.test-project-row{font-size:12px;color:#35556d;font-weight:600;margin:4px 0}
.submittal-history{margin-top:12px;display:flex;flex-direction:column;gap:6px}.submittal-history-title{font-size:12px;color:var(--navy)}
.submittal-rev{display:flex;justify-content:space-between;align-items:center;gap:8px;border:1px solid #dbe8ef;border-radius:9px;padding:8px 10px;font-size:12px}
.submittal-rev small{color:#71889c;font-size:11px}.submittal-rev.current{border-color:#a4d7f5;background:#f2f9ff}.submittal-rev a.mini{text-decoration:none;display:inline-flex;align-items:center}

/* V2.4: filters, history, Recycle Bin, Activity Log */
.team-filters,.activity-filters{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.team-filters input{flex:1 1 260px;min-width:0;border:1px solid #cfdee9;border-radius:9px;padding:9px 12px;font-size:13px}
.team-filters select,.activity-filters select,.activity-filters input{width:auto;flex:0 1 auto;min-width:130px;border:1px solid #cfdee9;border-radius:9px;padding:8px 10px;font-size:12px}
.activity-filters input[type=search]{flex:1 1 180px}.team-project-info .submittal-ref{color:#0b4f8f;font-weight:700}
.project-history{margin-top:14px}.project-history-list{max-height:320px;overflow:auto;margin-top:10px;display:flex;flex-direction:column;gap:4px}
.history-row{display:grid;grid-template-columns:150px 110px 1fr;gap:10px;font-size:12px;padding:7px 9px;border:1px solid #e3edf3;border-radius:8px;align-items:start;color:#35556d}
.history-row b{color:var(--navy);overflow-wrap:anywhere}.history-row small{color:#8aa0b0}.history-row i{color:#0b4f8f;font-style:normal}
@media(max-width:620px){.history-row{grid-template-columns:1fr}}

/* V2.4b: Tools menu (keeps the logo free) */
.topbar{height:auto;min-height:90px}.topbar .brand{flex-shrink:0}.top-actions{flex-wrap:wrap;justify-content:flex-end;min-width:0;row-gap:8px}
.tools-menu{position:relative}.tools-dropdown{position:absolute;right:0;top:calc(100% + 6px);background:#fff;border:1px solid var(--line);border-radius:11px;
box-shadow:0 12px 32px #0c2e4d26;padding:6px;display:flex;flex-direction:column;gap:2px;min-width:200px;z-index:60}
.tools-dropdown .btn{justify-content:flex-start;border-color:transparent;width:100%;min-height:36px}.tools-dropdown .btn:hover{background:#eef6fc}
.tools-dropdown .btn.hidden{display:none!important}

/* =====================================================================================
   V2.5 design refresh — same layout and functions; cleaner colors, type, spacing, buttons.
   Font: Madani Arabic (licensed web font to be added in static/fonts/; until then the copy
   installed on this computer is used through local()). Fallback: system fonts.
   ===================================================================================== */
/* Readex Pro (SIL Open Font License, static/fonts/ReadexPro-OFL.txt) - served locally, nothing loaded from the internet */
@font-face{font-family:"TSM Sans";font-weight:160 700;font-display:swap;src:url("/static/fonts/ReadexPro.ttf") format("truetype")}
:root{--navy:#0e2f4d;--navy2:#0a2440;--blue:#0b63b5;--blue2:#0a5299;--sky:#e8f3fc;--ink:#18324a;--muted:#6a8092;--line:#e2eaf0;--line2:#d4e0e9;
  --bg:#f3f6f9;--card:#fff;--ok:#1f8a5b;--warn:#a8690b;--danger:#b23b36;--radius:14px;--shadow:0 1px 2px rgba(14,47,77,.05),0 4px 14px rgba(14,47,77,.04)}
html{font-family:"TSM Sans",Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;font-size:14px;color:var(--ink);background:var(--bg);-webkit-font-smoothing:antialiased}
body{background:var(--bg)}
button,input,select,textarea{font-family:inherit}

/* header */
.topbar{min-height:74px;padding:10px max(22px,calc((100vw - 1330px)/2));box-shadow:none;border-bottom:1px solid var(--line)}
.brand img{width:190px;max-height:60px}.brand-divider{height:40px}
.brand-text strong{font-size:18px;font-weight:800;letter-spacing:-.2px}.brand-text span{font-size:12px}
.top-actions{gap:8px}.local-pill{padding:7px 11px;font-size:11px;border-radius:20px;background:#f2f7fb;border-color:var(--line2)}

/* page frame */
.shell{padding:26px 24px 30px}
.workspace-header{margin-bottom:20px}.workspace-header h1{font-size:28px;font-weight:800;letter-spacing:-.6px;margin:0 0 4px}
.eyebrow{font-size:11px;letter-spacing:1.6px;font-weight:700}.subhead{font-size:13px}

/* cards */
.panel{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:22px}
.panel-heading{margin-bottom:18px}.panel-heading h2{font-size:17px;font-weight:700;letter-spacing:-.2px}
.panel-heading p{font-size:12.5px}
.panel-symbol{height:34px;width:34px;border-radius:10px;font-size:14px;background:linear-gradient(160deg,#1a8fd6,#0b5fae)}

/* buttons: one strong primary, quiet secondary */
.btn{border-radius:10px;font-weight:600;font-size:13px;min-height:38px;padding:9px 15px;letter-spacing:.1px;transition:background .15s,border-color .15s,box-shadow .15s}
.btn-primary{background:var(--blue);box-shadow:0 1px 2px rgba(11,99,181,.25)}.btn-primary:hover{background:var(--blue2);filter:none}
.btn-outline{background:#fff;color:#0b4f8f;border-color:var(--line2)}.btn-outline:hover{background:#f2f8fd;border-color:#bcd4e6;filter:none}
.btn-sm{min-height:32px;padding:6px 11px;font-size:12px;border-radius:9px}
.mini{border-color:var(--line2);border-radius:8px;font-weight:600;color:#245f8d;min-height:28px}.mini:hover{background:#f2f8fd}
.mini.red{color:var(--danger)}

/* form fields */
.fields input,.fields textarea,.dialog-inner input,.dialog-inner select,.dialog-inner textarea,select,.search-row input,.team-filters input,.team-filters select{
  border:1px solid var(--line2);border-radius:10px;min-height:38px;font-size:13px;background:#fff}
.fields label,.dialog-inner label{font-size:12px;font-weight:600;color:#3a586f}

/* steps: slimmer, clearer current step */
.stepper{gap:8px;margin-bottom:18px}.step{padding:10px 14px;border-radius:12px;border-color:var(--line);box-shadow:none}
.step-number{width:30px;height:30px;font-size:12px}.step b{font-size:13px}.step small{font-size:11px}
.step.active{background:#fff;border-color:#9ccbee;box-shadow:inset 0 -3px 0 var(--blue)}

/* help texts: short and quiet; long ones fold (More) */
.field-tip,.doc-tip,.explainer,.upload-intro,.export-status{font-size:12px;line-height:1.6;border-radius:10px;padding:10px 12px;
  background:#f6f9fc;border:1px solid var(--line);border-left:3px solid #b9d7ee;color:#4f6a7f}
.explainer{background:#fffaf0;border-left-color:#e8c87a}
.tip-folded{display:block!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tip-more{border:0;background:none;color:#0b63b5;font-size:11.5px;font-weight:600;padding:2px 0;margin:-4px 0 8px;cursor:pointer}
/* V2.17.4: in a dialog (a flex column that scrolls) a help text and its More / Less never shrink, so
   a long list (e.g. Brands) makes the dialog scroll instead of cutting the help text */
.dialog-inner>:is(.field-tip,.doc-tip,.explainer,.upload-intro,.tip-more){flex-shrink:0}
.dialog-inner>.tip-more{align-self:flex-start}

/* chips and counters */
.count-chip{border-radius:20px;background:#eff5fa;color:#3f6582;font-weight:600}
.team-project-counts span{background:#f2f6f9;border-radius:20px;padding:4px 9px}

/* projects list: compact and foldable */
.team-projects{padding:16px 20px}.team-projects-head h2{font-size:16px}
.team-projects-list{max-height:330px;overflow:auto}.team-project-row{border-color:var(--line);border-radius:11px;padding:10px 12px}
.team-project-row:hover{border-color:#bcd4e6;background:#fbfdff}
.team-projects.folded .team-filters,.team-projects.folded .team-projects-list{display:none}
.team-count{font-size:12px;color:var(--muted);font-weight:600;margin-left:6px}

/* lists, files, approvals */
.file-row,.approval-card,.user-row,.arrange-section{border-color:var(--line);border-radius:11px}
.approval-card.chosen{border-color:#8fc3e6;background:#f5fafe}
.category-card{border-color:var(--line);border-radius:13px;box-shadow:var(--shadow)}

/* dialogs */
.dialog{border-radius:16px;border-color:var(--line)}.dialog-header h2{font-size:18px;font-weight:700}
#toast{border-radius:12px;font-size:12.5px}

/* footer artwork */
.site-footer{margin-top:28px;padding:0 0 18px;text-align:center;color:#7e93a4;font-size:11.5px;letter-spacing:.4px}
.site-footer img{display:block;width:min(1180px,94vw);margin:0 auto 10px;opacity:.85}
body.app-locked .site-footer{display:none}
@media(max-width:620px){.site-footer img{width:96vw}}

/* V2.5 icons: Lucide (ISC license, static/icons/LICENSE.txt), served locally */
[data-icon]::before{content:"";display:inline-block;flex-shrink:0;width:1.2em;height:1.2em;margin-right:.45em;vertical-align:-.22em;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.btn[data-icon]::before,.mini[data-icon]::before{margin-right:0}
.mini[data-icon]{display:inline-flex;align-items:center;gap:5px}
.step b[data-icon]::before{width:1.15em;height:1.15em;color:#5b87a8}.step.active b[data-icon]::before{color:#0b63b5}
.compact-file-pick span[data-icon]::before{color:#0b63b5}
[data-icon="badge-check"]{--ic:url("/static/icons/badge-check.svg")}
[data-icon="chevron-down"]{--ic:url("/static/icons/chevron-down.svg")}
[data-icon="circle-check"]{--ic:url("/static/icons/circle-check.svg")}
[data-icon="clipboard-list"]{--ic:url("/static/icons/clipboard-list.svg")}
[data-icon="cloud-upload"]{--ic:url("/static/icons/cloud-upload.svg")}
[data-icon="database-backup"]{--ic:url("/static/icons/database-backup.svg")}
[data-icon="download"]{--ic:url("/static/icons/download.svg")}
[data-icon="eye"]{--ic:url("/static/icons/eye.svg")}
[data-icon="eye-off"]{--ic:url("/static/icons/eye-off.svg")}
[data-icon="file-check"]{--ic:url("/static/icons/file-check.svg")}
[data-icon="file-output"]{--ic:url("/static/icons/file-output.svg")}
[data-icon="file-spreadsheet"]{--ic:url("/static/icons/file-spreadsheet.svg")}
[data-icon="flask-conical"]{--ic:url("/static/icons/flask-conical.svg")}
[data-icon="folder-open"]{--ic:url("/static/icons/folder-open.svg")}
[data-icon="git-branch-plus"]{--ic:url("/static/icons/git-branch-plus.svg")}
[data-icon="hash"]{--ic:url("/static/icons/hash.svg")}
[data-icon="history"]{--ic:url("/static/icons/history.svg")}
[data-icon="inbox"]{--ic:url("/static/icons/inbox.svg")}
[data-icon="key-round"]{--ic:url("/static/icons/key-round.svg")}
[data-icon="library"]{--ic:url("/static/icons/library.svg")}
[data-icon="list-checks"]{--ic:url("/static/icons/list-checks.svg")}
[data-icon="list-tree"]{--ic:url("/static/icons/list-tree.svg")}
[data-icon="log-out"]{--ic:url("/static/icons/log-out.svg")}
[data-icon="mail"]{--ic:url("/static/icons/mail.svg")}
[data-icon="package"]{--ic:url("/static/icons/package.svg")}
[data-icon="plus"]{--ic:url("/static/icons/plus.svg")}
[data-icon="refresh-cw"]{--ic:url("/static/icons/refresh-cw.svg")}
[data-icon="rotate-ccw"]{--ic:url("/static/icons/rotate-ccw.svg")}
[data-icon="scan-text"]{--ic:url("/static/icons/scan-text.svg")}
[data-icon="search"]{--ic:url("/static/icons/search.svg")}
[data-icon="shield-check"]{--ic:url("/static/icons/shield-check.svg")}
[data-icon="tag"]{--ic:url("/static/icons/tag.svg")}
[data-icon="trash-2"]{--ic:url("/static/icons/trash-2.svg")}
[data-icon="upload"]{--ic:url("/static/icons/upload.svg")}
[data-icon="user-check"]{--ic:url("/static/icons/user-check.svg")}
[data-icon="users"]{--ic:url("/static/icons/users.svg")}
[data-icon="wrench"]{--ic:url("/static/icons/wrench.svg")}
[data-icon="x"]{--ic:url("/static/icons/x.svg")}

/* ---- V2.5b: view tabs, summary cards, toasts, empty states, dark mode ---- */
[data-icon="moon"]{--ic:url("/static/icons/moon.svg")}
[data-icon="sun"]{--ic:url("/static/icons/sun.svg")}
[data-icon="folder-kanban"]{--ic:url("/static/icons/folder-kanban.svg")}
[data-icon="layout-dashboard"]{--ic:url("/static/icons/layout-dashboard.svg")}
[data-icon="files"]{--ic:url("/static/icons/files.svg")}
[data-icon="calendar-clock"]{--ic:url("/static/icons/calendar-clock.svg")}
[data-icon="circle-alert"]{--ic:url("/static/icons/circle-alert.svg")}
[data-icon="info"]{--ic:url("/static/icons/info.svg")}
[data-icon="file-plus-2"]{--ic:url("/static/icons/file-plus-2.svg")}

.view-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin:4px 0 18px}
.view-tab{display:inline-flex;align-items:center;gap:7px;border:0;background:none;padding:10px 16px 11px;font:inherit;font-size:13.5px;font-weight:600;color:#6b8296;cursor:pointer;border-bottom:2.5px solid transparent;margin-bottom:-1px}
.view-tab[data-icon]::before{margin-right:0}
.view-tab:hover{color:var(--navy)}
.view-tab.active{color:#0b63b5;border-bottom-color:#0b63b5}
.tab-count{background:#e8f1f8;color:#3f6582;border-radius:20px;padding:1px 8px;font-size:11px;font-weight:600}
.view-tab.active .tab-count{background:#0b63b5;color:#fff}
body[data-view="projects"] .stepper,body[data-view="projects"] .step-view,body[data-view="projects"] #emptyState,body[data-view="projects"] #projectSummary{display:none!important}
body:not([data-view="projects"]) #teamProjects{display:none!important}
body[data-view="projects"] #foldTeamProjects{display:none}
body[data-view="projects"] .team-projects-list{max-height:none;overflow:visible}

.team-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:14px 0}
.stat-card{display:flex;flex-direction:column;align-items:flex-start;gap:3px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:12px 14px;cursor:pointer;font:inherit;color:var(--ink);transition:border-color .15s,box-shadow .15s}
.stat-card:hover{border-color:#b7d5e9}
.stat-card b{font-size:22px;font-weight:700;color:var(--navy);line-height:1.1}
.stat-card span{font-size:11.5px;color:#6b8296}
.stat-card.active{border-color:#0b63b5;box-shadow:0 0 0 3px #0b63b51a}

.project-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:0 0 14px}
.sum-card{display:flex;align-items:center;gap:11px;text-align:left;border:1px solid var(--line);background:#fff;border-radius:12px;padding:11px 14px;cursor:pointer;font:inherit;color:var(--ink);min-width:0}
.sum-card:hover{border-color:#b7d5e9}
.sum-card[data-icon]::before{width:34px;height:34px;flex-shrink:0;margin:0;border-radius:9px;color:#0b63b5;-webkit-mask-size:18px;mask-size:18px;background-color:#0b63b5}
.sum-ico{width:36px;height:36px;border-radius:10px;background:#eaf3fb;color:#0b63b5;display:grid;place-items:center;flex-shrink:0}
.sum-ico i{display:block;width:18px;height:18px;background:currentColor;-webkit-mask:var(--ic) center/contain no-repeat;mask:var(--ic) center/contain no-repeat}
.sum-card div{min-width:0}
.sum-card b{display:block;font-size:15px;font-weight:700;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sum-card small{display:block;font-size:11px;color:#6b8296;margin-top:1px}
.sum-card.muted b{color:#8aa0b2;font-weight:600}

#toast{display:none!important}
#toastStack{position:fixed;right:20px;bottom:20px;z-index:200;display:flex;flex-direction:column;gap:8px;align-items:flex-end;pointer-events:none}
.tst{pointer-events:auto;display:flex;align-items:flex-start;gap:10px;max-width:420px;background:#fff;color:var(--ink);border:1px solid var(--line);border-left:4px solid #1f9d63;border-radius:12px;padding:11px 12px 11px 13px;box-shadow:0 10px 28px #0e2f4d24;font-size:12.5px;line-height:1.5;animation:tstIn .22s ease-out}
.tst.error{border-left-color:#c2413c}
.tst-ico{width:20px;height:20px;border-radius:50%;background:#1f9d63;color:#fff;display:grid;place-items:center;flex-shrink:0;font-size:12px;font-weight:700;margin-top:1px}
.tst.error .tst-ico{background:#c2413c}
.tst-x{border:0;background:none;color:#8aa0b2;cursor:pointer;font-size:15px;line-height:1;padding:0 2px;margin-left:4px}
.tst.out{animation:tstOut .2s ease-in forwards}
@keyframes tstIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes tstOut{to{opacity:0;transform:translateX(16px)}}

.category-empty,.library-empty{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;color:#7d93a5;font-size:12px;padding:18px 10px;border:1.5px dashed #cfe0ec;border-radius:12px;background:#fafcfe}
.category-empty::before,.library-empty::before{content:"";width:30px;height:30px;background:#9dbcd3;-webkit-mask:url("/static/icons/file-plus-2.svg") center/contain no-repeat;mask:url("/static/icons/file-plus-2.svg") center/contain no-repeat}
.category-card .category-empty::before{-webkit-mask-image:url("/static/icons/cloud-upload.svg");mask-image:url("/static/icons/cloud-upload.svg")}
.category-card.drag-over{border-color:#0b63b5;box-shadow:0 0 0 3px #0b63b522;background:#f4f9fe}
.category-card.drag-over .category-empty{border-color:#0b63b5;color:#0b63b5}

@media(max-width:900px){.team-stats,.project-summary{grid-template-columns:1fr 1fr}}

/* Dark mode: the page is inverted (colours keep their hue); photos, logos and PDFs are inverted back. */
html[data-theme="dark-legacy"]{filter:invert(.9) hue-rotate(180deg);background:#fff}
html[data-theme="dark-legacy"] img,html[data-theme="dark-legacy"] iframe,html[data-theme="dark-legacy"] embed,html[data-theme="dark-legacy"] object,html[data-theme="dark-legacy"] canvas,html[data-theme="dark-legacy"] video{filter:invert(1) hue-rotate(180deg)}
html[data-theme="dark-legacy"] .site-footer img{filter:none;opacity:.5}
html[data-theme="dark-legacy"] dialog{filter:invert(.9) hue-rotate(180deg)}
html[data-theme="dark-legacy"] dialog img,html[data-theme="dark-legacy"] dialog iframe{filter:invert(1) hue-rotate(180deg)}
#themeToggle{font-size:0;gap:0;padding:7px 10px}
#themeToggle::before{width:16px;height:16px}
@media(min-width:1100px){.top-actions{flex-wrap:nowrap;gap:6px}#demoTop{min-height:32px;padding:7px 11px;font-size:12px}}

/* Dark mode: blue text and blue accent lines become white; primary buttons keep their real blue. */
html[data-theme="dark-legacy"] .analysis-result>strong,
html[data-theme="dark-legacy"] .approval-column-heading,
html[data-theme="dark-legacy"] .approval-column-top h3,
html[data-theme="dark-legacy"] .approval-doc-body .content-match,
html[data-theme="dark-legacy"] .approval-doc-focus:hover strong,
html[data-theme="dark-legacy"] .approval-preview-details b,
html[data-theme="dark-legacy"] .arrange-number,
html[data-theme="dark-legacy"] .big-icon,
html[data-theme="dark-legacy"] .btn-outline,
html[data-theme="dark-legacy"] .category-card.drag-over .category-empty,
html[data-theme="dark-legacy"] .category-number,
html[data-theme="dark-legacy"] .category-progress,
html[data-theme="dark-legacy"] .chosen-row>button:first-child,
html[data-theme="dark-legacy"] .chosen-row>button[data-doc-preview],
html[data-theme="dark-legacy"] .compact-file-pick span[data-icon]::before,
html[data-theme="dark-legacy"] .doc-tag,
html[data-theme="dark-legacy"] .doc-tag.brand,
html[data-theme="dark-legacy"] .drop-file,
html[data-theme="dark-legacy"] .eyebrow,
html[data-theme="dark-legacy"] .file-icon,
html[data-theme="dark-legacy"] .folder-child.active,
html[data-theme="dark-legacy"] .folder-main.open,
html[data-theme="dark-legacy"] .full-project-head strong,
html[data-theme="dark-legacy"] .history-row i,
html[data-theme="dark-legacy"] .loading-info,
html[data-theme="dark-legacy"] .local-pill,
html[data-theme="dark-legacy"] .login-card h1,
html[data-theme="dark-legacy"] .match-note,
html[data-theme="dark-legacy"] .mini,
html[data-theme="dark-legacy"] .owner-panel>strong,
html[data-theme="dark-legacy"] .review-file a,
html[data-theme="dark-legacy"] .review-section summary,
html[data-theme="dark-legacy"] .selection-summary h3,
html[data-theme="dark-legacy"] .source-label,
html[data-theme="dark-legacy"] .step b[data-icon]::before,
html[data-theme="dark-legacy"] .step.active b[data-icon]::before,
html[data-theme="dark-legacy"] .submittal-ref,
html[data-theme="dark-legacy"] .sum-ico,
html[data-theme="dark-legacy"] .tab-count,
html[data-theme="dark-legacy"] .team-project-counts span,
html[data-theme="dark-legacy"] .team-project-info .submittal-ref,
html[data-theme="dark-legacy"] .team-project-info strong,
html[data-theme="dark-legacy"] .team-projects-head h2,
html[data-theme="dark-legacy"] .tip-more,
html[data-theme="dark-legacy"] .upload-intro,
html[data-theme="dark-legacy"] .view-tab.active,
html[data-theme="dark-legacy"] /* V1.5 local OCR suggestion — complements,
html[data-theme="dark-legacy"] /* V2.2: Email Intake */
.email-source,
html[data-theme="dark-legacy"] /* chips and counters */
.count-chip,
html[data-theme="dark-legacy"] V1.4.2 layout. */
.analysis-pill,
html[data-theme="dark-legacy"] a,
html[data-theme="dark-legacy"] never replaces{color:#000!important}
html[data-theme="dark-legacy"] [data-icon]::before{background-color:currentColor}
html[data-theme="dark-legacy"] .view-tab.active{border-bottom-color:#000!important}
html[data-theme="dark-legacy"] .step.active{border-color:#000!important}
html[data-theme="dark-legacy"] .btn-outline{border-color:#9aa5ad!important}
html[data-theme="dark-legacy"] .btn-primary,html[data-theme="dark-legacy"] .step.active .step-number,html[data-theme="dark-legacy"] .panel-symbol,html[data-theme="dark-legacy"] .view-tab.active .tab-count{filter:invert(1) hue-rotate(180deg)}

/* ================= V2.5c "glass" style (same layout, Al-Mawraqi navy / blue / white) ================= */
:root{--glass:rgba(255,255,255,.62);--glass-strong:rgba(255,255,255,.82);--glass-line:rgba(255,255,255,.75);--glass-shadow:0 8px 30px rgba(14,47,77,.08)}
body{background:
  radial-gradient(900px 520px at 8% -6%,#dbeaf7 0%,transparent 60%),
  radial-gradient(820px 520px at 100% 8%,#e4effa 0%,transparent 55%),
  radial-gradient(900px 700px at 50% 110%,#e9f2fb 0%,transparent 60%),
  linear-gradient(180deg,#f5f8fb,#eef3f8)!important;background-attachment:fixed!important}

/* floating glass top bar */
.topbar{margin:12px auto 0;width:min(1330px,calc(100% - 24px));border-radius:22px;padding:8px 18px!important;min-height:70px!important;
  background:var(--glass-strong);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow);backdrop-filter:blur(14px) saturate(140%);-webkit-backdrop-filter:blur(14px) saturate(140%)}

/* big light title */
.workspace-header h1{font-size:40px;font-weight:300;letter-spacing:-1px;color:var(--navy);line-height:1.1}
.h1-accent{font-weight:600;color:#0b63b5}
.eyebrow{letter-spacing:2.5px;font-size:10.5px;color:#6b8296!important;font-weight:500}

/* fully rounded buttons */
.btn{border-radius:999px!important}
.btn-primary{background:var(--navy)!important;border-color:var(--navy)!important;color:#fff;box-shadow:0 6px 16px rgba(14,47,77,.18)}
.btn-primary:hover{background:#163f66!important}
#generatePreview{justify-content:space-between;padding-right:6px!important;min-height:46px}
#generatePreview::after{content:"→";display:grid;place-items:center;width:34px;height:34px;border-radius:50%;background:#fff;color:var(--navy);font-size:16px;margin-left:12px}
.btn-outline{background:var(--glass-strong)}
.mini{border-radius:999px!important;padding-left:10px;padding-right:10px}
.local-pill{border-radius:999px}

/* pill tabs */
.view-tabs{display:inline-flex;gap:4px;border:1px solid var(--glass-line);border-bottom:1px solid var(--glass-line);background:var(--glass);border-radius:999px;padding:5px;margin:6px 0 18px;box-shadow:var(--glass-shadow);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.view-tab{border-radius:999px;border-bottom:0!important;margin:0;padding:8px 18px}
.view-tab.active{background:var(--navy);color:#fff}
.view-tab.active .tab-count{background:#fff;color:var(--navy)}

/* glass cards */
.sum-card,.stat-card{background:var(--glass);border:1px solid var(--glass-line);border-radius:20px;box-shadow:var(--glass-shadow);backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);padding:14px 16px}
.sum-card:hover,.stat-card:hover{background:var(--glass-strong);border-color:#cfe1ef}
.sum-ico{border-radius:50%;background:#fff;box-shadow:0 2px 8px rgba(14,47,77,.08)}
.stat-card.active{background:var(--navy);border-color:var(--navy)}
.stat-card.active b,.stat-card.active span{color:#fff}

/* pill steps */
.step{border-radius:999px!important;background:var(--glass)!important;border:1px solid var(--glass-line)!important;box-shadow:var(--glass-shadow)!important;padding:8px 16px 8px 8px!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
.step-number{border-radius:50%!important}
.step.active{background:var(--navy)!important;border-color:var(--navy)!important}
.step.active b,.step.active small{color:#fff!important}
.step.active b[data-icon]::before{color:#fff!important}
.step.active .step-number{background:#fff!important;color:var(--navy)!important}
.step.done .step-number{background:#e3f4ea!important;color:#1f8a57!important}
.step-line{opacity:.5}

/* softer panels */
.panel{border-radius:24px!important;background:var(--glass-strong)!important;border:1px solid var(--glass-line)!important;box-shadow:var(--glass-shadow)!important;backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
.category-card,.approval-card,.arrange-section,.team-project-row,.file-row{border-radius:16px!important}
.fields input,.fields textarea,select,.search-row input,.team-filters input,.approval-search-controls input{border-radius:12px!important}
.panel-symbol{border-radius:50%!important;background:var(--navy)!important}
.count-chip{background:#fff}

/* dark mode keeps working (page is inverted): keep the navy pieces readable */
html[data-theme="dark-legacy"] .view-tab.active,html[data-theme="dark-legacy"] .step.active,html[data-theme="dark-legacy"] .stat-card.active{filter:invert(1) hue-rotate(180deg)}
html[data-theme="dark-legacy"] .step.active b,html[data-theme="dark-legacy"] .step.active small{color:#fff!important}
html[data-theme="dark-legacy"] .view-tab.active{color:#fff!important}
html[data-theme="dark-legacy"] .h1-accent{color:#000!important}

/* TRIAL: footer artwork runs edge to edge (left and right empty sides too) */
.site-footer{margin-top:36px;padding:0 0 16px}
.site-footer img{display:none}
.site-footer::before{content:"";display:block;width:100%;height:clamp(120px,12vw,210px);margin-bottom:10px;
  background:url("/static/footer_skyline.png?v=3") center bottom/auto 100% repeat-x;opacity:.85;
  -webkit-mask:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%);mask:linear-gradient(90deg,transparent 0,#000 6%,#000 94%,transparent 100%)}
html[data-theme="dark-legacy"] .site-footer::before{filter:invert(1) hue-rotate(180deg);opacity:.5}

/* ===== TRIAL 2: Al-Mawraqi logo colours, smaller footer, visible glass ===== */
:root{--brand:#0060c0;--brand-sky:#18a8f8;--brand-grey:#707878;--brand-grad:linear-gradient(120deg,#0060c0 0%,#0a84de 60%,#18a8f8 100%);
  --glass:rgba(255,255,255,.48);--glass-strong:rgba(255,255,255,.7);--glass-line:rgba(255,255,255,.85);
  --glass-shadow:0 10px 32px rgba(0,70,140,.10),inset 0 1px 0 rgba(255,255,255,.9)}
.site-footer::before{height:clamp(64px,6.5vw,112px)}

/* colour blobs behind the page so the glass blur can be seen */
body{background:#eef4fa!important}
body::before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;
  background:
   radial-gradient(520px 420px at 6% 12%,rgba(24,168,248,.55),transparent 70%),
   radial-gradient(600px 460px at 96% 4%,rgba(0,96,192,.38),transparent 70%),
   radial-gradient(560px 480px at 82% 78%,rgba(24,168,248,.40),transparent 70%),
   radial-gradient(520px 420px at 14% 92%,rgba(112,120,120,.22),transparent 70%),
   radial-gradient(700px 520px at 50% 45%,rgba(152,216,248,.35),transparent 70%);
  filter:blur(10px)}
.shell,.topbar,.site-footer{position:relative}

/* stronger glass */
.topbar,.view-tabs,.sum-card,.stat-card,.step{backdrop-filter:blur(20px) saturate(160%)!important;-webkit-backdrop-filter:blur(20px) saturate(160%)!important}
.panel{background:rgba(255,255,255,.74)!important;backdrop-filter:blur(22px) saturate(150%)!important;-webkit-backdrop-filter:blur(22px) saturate(150%)!important}
.category-card,.approval-card,.arrange-section,.team-project-row,.file-row,.approval-toolbar,.library-column,.preview-panel{background:rgba(255,255,255,.66)!important}

/* brand blue instead of navy for the "selected / main" pieces */
.btn-primary{background:var(--brand-grad)!important;border-color:transparent!important;box-shadow:0 8px 18px rgba(0,96,192,.25)!important}
.btn-primary:hover{filter:brightness(1.05)}
#generatePreview::after{color:var(--brand)}
.view-tab.active,.stat-card.active,.step.active{background:var(--brand-grad)!important;border-color:transparent!important}
.step.active .step-number{color:var(--brand)!important}
.view-tab.active .tab-count{color:var(--brand)}
.panel-symbol{background:var(--brand-grad)!important}
.h1-accent{color:var(--brand);background:var(--brand-grad);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent}
.eyebrow{color:var(--brand-grey)!important}
.view-tab:not(.active){color:var(--brand-grey)}
.sum-ico{color:var(--brand)}
html[data-theme="dark-legacy"] .h1-accent{-webkit-text-fill-color:#000}
html[data-theme="dark-legacy"] body::before{opacity:.6}
html{background:#eef4fa!important}
body{background:transparent!important}

/* V2.6: brand picker preview (Project Details) */
.brand-preview{display:flex;align-items:center;gap:10px;min-height:34px;font-size:11px;font-weight:500;color:#707878}
.brand-preview img{height:30px;max-width:120px;object-fit:contain;background:#fff;border-radius:8px;padding:3px 6px;border:1px solid #e3ebf2}

.brand-box{display:flex;align-items:center;gap:12px}
.brand-box img{height:34px;max-width:110px;object-fit:contain;background:#fff;border-radius:8px;padding:3px 6px;border:1px solid #e3ebf2;flex-shrink:0}
.brand-box.brand-missing{border-left-color:#d08a1e!important;background:#fff8ec!important}
.brand-box .mini{margin-left:6px}

/* V2.6.2: the top bar (and its Tools menu) stays ABOVE the page. Since the glass style the page
   area is a positioned layer painted after the top bar, so it covered the open menu and took its
   clicks (the menu was visible through it but did not react). */
.topbar{position:relative;z-index:50}
.tools-dropdown{z-index:60}

/* V2.6.3: the buttons on the right never cover the logo or the title. The title gets "…" when
   space is short, and on narrower screens "Load Sample" becomes an icon (its name stays as tooltip). */
.topbar{display:flex;align-items:center;gap:16px}
.brand{flex:1 1 auto;min-width:0}
.brand img{flex-shrink:0}
.brand-text{min-width:0}
.brand-text strong,.brand-text span{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-actions{flex:0 0 auto}
#demoTop{font-size:0;gap:0;padding:7px 10px;min-height:32px}#demoTop::before{width:16px;height:16px}   /* Mac only (off on the server): icon, name as tooltip */
@media(max-width:1300px){.brand-text span{display:none}#loggedInUser{max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}
@media(max-width:1250px){
  .top-actions .local-pill:not(#loggedInUser){display:none}
  #changeMyPassword,#logoutButton{font-size:0;gap:0;padding:7px 10px}
  #changeMyPassword::before,#logoutButton::before{width:16px;height:16px}
}

/* V2.6.4: Tools > Brands */
.brands-list{display:flex;flex-direction:column;gap:8px;margin:12px 0 18px;max-height:46vh;overflow:auto}
.brand-row{display:flex;align-items:center;gap:14px;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:#fff}
.brand-logo{width:110px;height:44px;display:grid;place-items:center;flex-shrink:0;background:#fff;border:1px solid #edf2f6;border-radius:10px}
.brand-logo img{max-width:100px;max-height:36px;object-fit:contain}
.brand-logo span{font-size:10.5px;color:#8aa0b2}
.brand-info{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.brand-info b{color:var(--navy);font-size:13.5px}
.brand-info small{color:#707878;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.brand-actions{display:flex;gap:6px}
.brand-form{border-top:1px solid var(--line);padding-top:14px}
.brand-form h3{margin:0 0 10px;font-size:14px;color:var(--navy)}
.brand-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-bottom:12px}
@media(max-width:700px){.brand-form-grid{grid-template-columns:1fr}}
.brand-products{margin:0 0 12px;font-size:11.5px;color:#4c5f6d}
.brand-products>span{display:block;margin-bottom:6px}
#brandProducts{display:flex;flex-wrap:wrap;gap:6px 14px}
.brand-product{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:500;color:#1d2b36}


/* ======================= V2.6.6 mobile (phones, <= 760px). Nothing above 760px changes. ======================= */
.mobile-only{display:none!important}
@media (max-width:760px){
  .mobile-only:not(.hidden){display:inline-flex!important}
  body{overflow-x:hidden}
  .shell{padding:18px 14px 24px!important;max-width:100%}
  .panel{padding:16px!important;min-width:0}

  /* 1) top bar: logo + one "Menu" button; everything else inside the menu */
  .topbar{position:relative;flex-wrap:nowrap!important;width:calc(100% - 16px)!important;margin:8px auto 0!important;padding:8px 10px 8px 12px!important;min-height:58px!important;border-radius:18px!important}
  .brand{flex:1 1 auto;min-width:0;gap:0!important}
  .brand img{width:118px!important;max-height:42px}
  .brand-divider,.brand-text{display:none!important}
  #mobileMenuBtn{flex:0 0 auto;font-size:13px;padding:8px 12px;min-height:38px}
  .topbar .top-actions{display:none!important;position:absolute;top:calc(100% + 6px);left:0;right:0;flex-direction:column;align-items:stretch;flex-wrap:nowrap!important;
    gap:8px!important;padding:12px;background:#fff;border:1px solid var(--line);border-radius:16px;box-shadow:0 14px 36px rgba(0,60,120,.18);z-index:80;max-height:75vh;overflow:auto}
  .topbar.menu-open .top-actions{display:flex!important}
  .top-actions>*{width:100%!important;max-width:none!important}
  .top-actions .btn,.top-actions .local-pill{justify-content:flex-start!important;font-size:13px!important;padding:10px 14px!important;min-height:42px;gap:8px!important}
  .top-actions .btn::before{width:16px!important;height:16px!important}
  .top-actions .local-pill:not(.hidden){display:inline-flex!important}
  #loggedInUser{white-space:normal!important}
  .tools-menu{width:100%}
  .tools-dropdown{position:static!important;width:100%!important;box-shadow:none!important;border:0!important;padding:4px 0 0 12px!important;margin:0!important}

  /* header of the page */
  .workspace-header{display:block}
  .project-inline{flex-wrap:nowrap}
  .project-inline select{min-width:0;flex:1}

  /* 2) Select Approvals: categories, files and preview under each other, full width */
  .approval-workspace{grid-template-columns:minmax(0,1fr)!important;gap:12px!important}
  .approval-workspace>*{min-width:0;width:100%}
  .pdf-frame{height:62vh!important}

  /* 3) Select Approvals: title, then the buttons under each other, nothing cut */
  .approval-toolbar .panel-heading{flex-direction:column;align-items:stretch!important;gap:12px}
  .approval-toolbar-actions{flex-direction:column;align-items:stretch!important;margin-top:0!important}
  .approval-toolbar-actions>*{width:100%;justify-content:center;white-space:normal!important;text-align:center}
  .approval-toolbar-actions .count-chip{align-self:flex-start;width:auto}
  .approval-search-controls,.approval-filter-row{grid-template-columns:minmax(0,1fr)!important}

  /* 4) Arrange & Export: one column, file names on up to two lines, clear arrows */
  .two-col,.arrange-grid{grid-template-columns:minmax(0,1fr)!important}
  .two-col>*{min-width:0}
  .sticky-panel{position:static!important}
  .arrange-head{flex-wrap:wrap}
  .arrange-item{flex-wrap:wrap;align-items:center;row-gap:6px}
  .arrange-item .file-name{flex:1 1 calc(100% - 30px);max-width:none!important;white-space:normal!important;overflow:hidden;
    display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;word-break:break-word;line-height:1.35}
  .arrange-item .mini,.arrange-head .mini{min-width:38px!important;min-height:36px!important;font-size:15px!important}
  .arrange-item .mini[data-itempreview]{font-size:12px!important;margin-left:auto}

  /* 5) Upload Files: View / Remove under the file name */
  .file-row{flex-direction:column;align-items:stretch!important;gap:8px}
  .file-row .file-main{min-width:0}
  .file-row .file-name{white-space:normal!important;max-width:none!important;word-break:break-word}
  .file-row .file-actions{justify-content:flex-start;padding-left:49px}
  .category-upload{flex-direction:column;align-items:stretch}

  /* 6) PDF previews: Open in a new tab (iPhone shows only part of a PDF inside a page) */
  .preview-actions{flex-wrap:wrap}
  #openFinal:not(.hidden){display:flex!important;margin-top:8px}

  /* the 4 steps: a tidy 2 x 2 grid, number + name on one line, same height (no icon / subtitle) */
  .stepper{display:grid!important;grid-template-columns:1fr 1fr;gap:8px!important}
  .stepper .step-line{display:none!important}
  .stepper .step{flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:10px!important;
    min-width:0;min-height:56px;padding:8px 12px 8px 8px!important;border-radius:999px!important;text-align:left!important}
  .stepper .step .step-number{width:34px!important;height:34px!important;flex:0 0 34px;font-size:12px}
  .stepper .step b{font-size:12.5px!important;line-height:1.2;white-space:normal!important;text-align:left!important}
  .stepper .step b::before{display:none!important}
  .stepper .step small{display:none!important}
  /* lists / cards that could be wider than the phone */
  .team-filters{grid-template-columns:minmax(0,1fr)!important}
  .team-project-row{flex-wrap:wrap}
  .project-summary,.team-stats{grid-template-columns:1fr 1fr!important}
  .sum-card{min-width:0}
}

/* V2.6.8: custom sections in Step 02 */
.add-section-card{border:2px dashed #c9dbea!important;background:rgba(255,255,255,.45)!important;box-shadow:none!important;display:flex;padding:0!important}
.add-section-btn{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:150px;width:100%;
  border:0;background:none;cursor:pointer;font:inherit;color:#0060c0;padding:18px;border-radius:inherit}
.add-section-btn:hover{background:rgba(0,96,192,.05)}
.add-section-plus{width:42px;height:42px;border-radius:50%;display:grid;place-items:center;font-size:24px;font-weight:600;color:#fff;
  background:linear-gradient(120deg,#0060c0,#18a8f8)}
.add-section-btn b{font-size:14px}
.add-section-btn small{font-size:11.5px;color:#707878;text-align:center;max-width:260px}
.section-tools{display:flex;gap:6px;margin-left:8px;flex-wrap:wrap}
.section-suggestions{display:flex;flex-wrap:wrap;gap:6px;align-items:center;font-size:11.5px;color:#707878;margin-top:-4px}
.section-suggestions>span{width:100%}
.section-chip{border:1px solid #cfe1ef;background:#f3f8fd;color:#0060c0;border-radius:999px;padding:5px 11px;font:inherit;font-size:12px;cursor:pointer}
.section-chip:hover{background:#e3f0fb}
.section-error{color:#b3261e;font-size:12px;margin:0}
@media (max-width:760px){
  .section-tools{width:100%;margin:8px 0 0 0}
  .category-top{flex-wrap:wrap}
  #sectionDialog{width:calc(100vw - 24px);max-width:none}
}

/* V2.8: arrangement templates */
.arrange-tools{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.template-save{display:flex;gap:8px}
.template-save input{flex:1;min-width:0}
.template-sections{display:flex;flex-wrap:wrap;gap:4px;margin-top:4px}
.template-sections span{font-size:10.5px;padding:2px 8px;border-radius:999px;background:#eef6fd;color:#0060c0;border:1px solid #d6e8f6}
.template-sections span.off{background:#f3f4f5;color:#9aa3a8;border-color:#e3e6e8;text-decoration:line-through}
.template-sections span.own{background:#fff7e6;color:#9a6a12;border-color:#f3e2bd}
.template-rename{display:flex;gap:6px}
.template-rename input{flex:1;min-width:0;font-size:12px}

/* V2.8: Submittal Tracking */
body[data-view="tracking"] .stepper,body[data-view="tracking"] .step-view,body[data-view="tracking"] #emptyState,body[data-view="tracking"] #projectSummary{display:none!important}
body:not([data-view="tracking"]) #trackingView{display:none!important}
.tracking-stats{grid-template-columns:repeat(6,1fr)}
@media(max-width:1100px){.tracking-stats{grid-template-columns:repeat(3,1fr)}}
.tracking-stats .stat-card.warn b{color:#b3261e}
.tracking-list{display:flex;flex-direction:column;gap:8px}
.track-row{display:grid;grid-template-columns:minmax(150px,1.1fr) minmax(160px,1.6fr) minmax(90px,.8fr) minmax(80px,.7fr) minmax(150px,1.1fr) minmax(110px,.9fr) auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:#fff;font-size:12px}
.track-row.overdue{border-color:#f1b7b2;background:#fff6f5}
.track-row b{color:var(--navy)}
.track-row small{display:block;color:#71889c;font-size:11px;margin-top:2px}
.track-actions{display:flex;gap:6px;justify-content:flex-end}
.track-empty{color:#7b91a1;font-size:12px;padding:14px}
.status-badge{display:inline-block;font-size:11px;font-weight:700;padding:3px 9px;border-radius:999px;border:1px solid transparent;white-space:nowrap}
.status-badge.s-draft{background:#f1f3f4;color:#6b7378;border-color:#e2e5e7}
.status-badge.s-submitted{background:#e8f3fd;color:#0060c0;border-color:#cfe4f7}
.status-badge.s-A{background:#e7f6ec;color:#1d7a3e;border-color:#c6e8d1}
.status-badge.s-B{background:#eef7e3;color:#4d7a12;border-color:#d7ebbd}
.status-badge.s-C{background:#fff4df;color:#996b28;border-color:#f3e0b8}
.status-badge.s-D{background:#fdecea;color:#b3261e;border-color:#f5c9c4}
.status-badge.late{background:#fdecea;color:#b3261e;border-color:#f5c9c4}
.submittal-status-line{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
.submittal-rev .rev-status{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-top:4px}
@media(max-width:900px){
  .track-row{grid-template-columns:1fr 1fr}
  .track-row .track-actions{grid-column:1/-1;justify-content:flex-start}
}
#statusFileNote:empty{display:none}

/* ===== V2.8.1 motion (display only; nothing moves when the device asks for reduced motion) ===== */
/* Pump in the empty margin left of the page (wide screens only), pipe fills as the page scrolls. */
.pump-scroll{display:none}
@media(min-width:1440px){
  body:not(.app-locked) .pump-scroll{--w:clamp(64px, calc((100vw - 1340px) / 2 + 6px), 120px);display:flex;flex-direction:column;position:fixed;z-index:1;pointer-events:none;
    top:112px;bottom:28px;width:var(--w);left:calc(((100vw - 1340px) / 2 + 24px - var(--w)) / 2)}
}
.pump-scroll-head{position:relative;flex:0 0 auto}
.pump-scroll-pump{width:100%;height:auto;display:block}
/* V2.8.2: own layer, turned with transform only (centre = the shaft) */
.pump-scroll-impeller{position:absolute;left:58.21%;top:10.34%;width:26.87%;height:62.07%;overflow:visible;transform-origin:50% 50%;will-change:transform}
.pump-scroll-pipe{position:relative;flex:1;width:calc(var(--w) * .15);min-width:9px;margin-left:calc(71.6% - max(calc(var(--w) * .075), 4.5px));
  margin-top:-1px;border:2px solid #378ADD;border-top:0;border-radius:0 0 999px 999px;background:#ffffff8c;overflow:hidden}
.pump-scroll-water{position:absolute;left:0;right:0;top:0;height:100%;transform:translateY(-100%);will-change:transform;
  background:#18A8F8 repeating-linear-gradient(180deg,#ffffff00 0 9px,#ffffff59 9px 13px);background-size:100% 26px;
  border-radius:0 0 999px 999px}
.pump-scroll-drop{position:absolute;left:50%;bottom:-2px;width:9px;height:9px;margin-left:-4.5px;border-radius:50% 50% 50% 0;transform:rotate(-45deg) scale(0);background:#18A8F8;opacity:0}
.pump-scroll.full .pump-scroll-drop{animation:pumpDrop 1.6s ease-in infinite}
@keyframes pumpDrop{0%{opacity:0;transform:translateY(-6px) rotate(-45deg) scale(.3)}30%{opacity:1;transform:translateY(0) rotate(-45deg) scale(1)}100%{opacity:0;transform:translateY(14px) rotate(-45deg) scale(.6)}}
html[data-theme="dark-legacy"] .pump-scroll{filter:invert(1) hue-rotate(180deg)}
html[data-theme="dark-legacy"] .pump-scroll-pipe{background:#0b1e2e8c}

/* Cards come in one after the other; numbers count up (only when a view is opened, not on refresh). */
@keyframes riseIn{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}
.anim-in{animation:riseIn .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 45ms)}
@keyframes viewIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.view-in{animation:viewIn .35s ease-out both}
/* Lift on hover */
.sum-card,.stat-card,.track-row,.category-card,.approval-card,.brand-row,.arrange-section{transition:transform .18s ease,box-shadow .18s ease,border-color .15s,background .15s}
.sum-card:hover,.stat-card:hover,.track-row:hover,.category-card:hover,.brand-row:hover{transform:translateY(-3px);box-shadow:0 10px 24px #0c2e4d14}
.btn-primary{transition:transform .15s ease,box-shadow .15s ease,background .15s}
.btn-primary:hover:not(:disabled){transform:translateY(-1px)}

@media(prefers-reduced-motion:reduce){
  .anim-in,.view-in,.pump-scroll.full .pump-scroll-drop{animation:none!important}
  .sum-card:hover,.stat-card:hover,.track-row:hover,.category-card:hover,.brand-row:hover,.btn-primary:hover{transform:none!important}
}

/* V2.8.3: Android only — the PDF pages as images (Android cannot show a PDF inside the page) */
.pdf-pages{display:flex;flex-direction:column;gap:10px;max-height:72vh;overflow:auto;padding:8px;border:1px solid #d2e1eb;border-radius:11px;background:#eef3f7;margin-top:10px;-webkit-overflow-scrolling:touch}
.pdf-pages.hidden{display:none}
.pdf-pages figure{margin:0;display:flex;flex-direction:column;gap:4px}
.pdf-pages img{width:100%;height:auto;display:block;background:#fff;border-radius:4px;box-shadow:0 1px 4px #0c2e4d1f}
.pdf-pages figcaption{font-size:11px;color:#6b8296;text-align:center}
.pdf-pages .pages-note{font-size:12px;color:#6b8296;text-align:center;padding:16px}
.android-off{display:none!important}
html[data-theme="dark-legacy"] .pdf-pages img{filter:invert(1) hue-rotate(180deg)}
/* V2.8.3: phones — the Revisions row wraps so the Download button stays inside its box */
@media(max-width:760px){
  .submittal-rev{flex-wrap:wrap;align-items:flex-start}
  .submittal-rev>span{flex:1 1 180px;min-width:0}
  .submittal-rev .rev-status{min-width:0}
  .submittal-rev .status-badge{white-space:normal}
  .submittal-rev>a.mini{flex:0 0 auto;margin-left:auto}
}

/* V2.8.3: phone pump strip — slides in at the top once the top bar has scrolled away;
   water moves with transform only (same rule as the desktop pump) */
.pump-strip{display:none}
@media(max-width:760px){
  body:not(.app-locked) .pump-strip{display:flex;align-items:center;position:fixed;top:0;left:0;right:0;z-index:40;pointer-events:none;
    height:calc(24px + env(safe-area-inset-top,0px));padding:env(safe-area-inset-top,0px) 12px 0 8px;background:#f6f9fc;box-shadow:0 1px 6px #0c2e4d1f;
    transform:translateY(-110%);transition:transform .25s ease;will-change:transform}
  body:not(.app-locked) .pump-strip.show{transform:none}
}
.pump-strip-head{position:relative;flex:0 0 44px;height:16px}
.pump-strip-pump{display:block;width:100%;height:100%}
/* the impeller sits on the casing centre (100,42) of the 134 x 50 drawing */
.pump-strip-impeller{position:absolute;left:58.21%;top:12%;width:26.87%;height:72%;overflow:visible;transform-origin:50% 50%;will-change:transform}
.pump-strip-pipe{flex:1;height:8px;margin-left:-1px;border:1.5px solid #378ADD;border-left:0;border-radius:0 6px 6px 0;overflow:hidden;background:#fff}
.pump-strip-water{height:100%;width:100%;transform:translateX(-100%);will-change:transform;
  background:#18A8F8 repeating-linear-gradient(90deg,#ffffff00 0 10px,#ffffff66 10px 14px)}
html[data-theme="dark-legacy"] .pump-strip{filter:invert(1) hue-rotate(180deg);background:#10202e}
html[data-theme="dark-legacy"] .pump-strip-pipe{background:#0b1e2e}
@media(prefers-reduced-motion:reduce){.pump-strip{transition:none}}

/* V2.8.4: the side pump drips all the time from the front of the water. The drops sit on the
   water's lower edge, so they follow it with no script; only transform / opacity are animated. */
.pump-drips{position:absolute;left:50%;top:100%;width:0;height:0}
.pump-drips i{position:absolute;left:-3.5px;top:-4px;width:7px;height:9px;border-radius:50% 50% 50% 50%/60% 60% 40% 40%;background:#18A8F8;
  opacity:0;will-change:transform,opacity;animation:pumpDrip 1.8s cubic-bezier(.5,0,1,1) infinite}
.pump-drips i:nth-child(2){animation-delay:.6s}
.pump-drips i:nth-child(3){animation-delay:1.2s}
@keyframes pumpDrip{0%{opacity:0;transform:translateY(0) scale(.3)}12%{opacity:1;transform:translateY(2px) scale(1)}100%{opacity:0;transform:translateY(70px) scale(.75)}}
@media(prefers-reduced-motion:reduce){.pump-drips{display:none}}

/* V2.8.7: one clear arrow for every drop-down list (the browser's own arrow was tiny and pressed
   against the edge). The arrow is drawn in the list's own space; nothing else moves. */
select:not([multiple]):not([size]){-webkit-appearance:none;appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235b7489' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 12px center!important;background-size:15px 15px!important;padding-right:36px!important}
select:not([multiple]):not([size])::-ms-expand{display:none}
/* V2.8.7: delete a project straight from the Projects list */
.team-project-row .team-delete{color:#b3261e}
.team-project-row .team-delete:hover{background:#fdecea;border-color:#f5c9c4}

/* ===== V2.8.8: sign-in page — split layout (wide screens): brand-blue panel with a headline, three
   benefits and a live pipe network on the left; the sign-in card unchanged on the right. Phones and
   tablets keep the card alone. Decoration only; only stroke-dashoffset is animated. ===== */
.login-shell .login-card{position:relative;z-index:2}
.login-brand{display:none}
@media(min-width:1100px){
  .login-shell{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);padding:0;place-items:stretch;
    background:linear-gradient(145deg,#eef5fb,#f9fcff)}
  .login-shell .login-card{align-self:center;justify-self:center}
  .login-brand{display:flex;flex-direction:column;justify-content:flex-start;position:relative;overflow:hidden;min-height:100vh;
    padding:52px 60px;color:#fff;
    background:linear-gradient(#ffffff1f 1px,transparent 1px) 0 0/120px 120px,linear-gradient(90deg,#ffffff1f 1px,transparent 1px) 0 0/120px 120px,
      linear-gradient(#ffffff0d 1px,transparent 1px) 0 0/24px 24px,linear-gradient(90deg,#ffffff0d 1px,transparent 1px) 0 0/24px 24px,
      linear-gradient(155deg,#0060c0 0%,#0a72d1 45%,#18a8f8 100%)}   /* faint blueprint grid */
  .brand-top{position:relative;font-size:12px;letter-spacing:4px;font-weight:700;color:#e6f1fb}
  .brand-copy{position:relative;max-width:440px;margin:auto 0;padding:24px 0 calc(10vw + 110px)}
  /* the Al-Mawraqi skyline banner (Riyadh + pumps), drawn in white; a soft light runs along its lines */
  .brand-skyline{position:absolute;left:-35%;right:-35%;bottom:76px;aspect-ratio:2000/231;pointer-events:none;
    -webkit-mask:url("/static/footer_skyline.png?v=3") center/100% 100% no-repeat;mask:url("/static/footer_skyline.png?v=3") center/100% 100% no-repeat;
    background:linear-gradient(90deg,#ffffffc2 0%,#ffffffc2 42%,#ffffff 50%,#ffffffc2 58%,#ffffffc2 100%) 0 0/200% 100%;
    animation:skySweep 7s linear infinite}
  .brand-copy h2{font-size:clamp(30px,2.6vw,40px);line-height:1.12;font-weight:700;margin:0 0 14px;color:#fff;letter-spacing:-.5px}
  .brand-copy p{font-size:15px;line-height:1.6;color:#dbeeff;margin:0 0 26px}
  .brand-copy ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:14px}
  .brand-copy li{position:relative;padding-left:34px;display:flex;flex-direction:column;gap:2px}
  .brand-copy li::before{content:"";position:absolute;left:0;top:2px;width:22px;height:22px;border-radius:50%;background:#ffffff26;
    box-shadow:inset 0 0 0 1px #ffffff59}
  .brand-copy li::after{content:"";position:absolute;left:8px;top:7px;width:5px;height:9px;border:solid #fff;border-width:0 2px 2px 0;transform:rotate(45deg)}
  .brand-copy li b{font-size:14.5px;font-weight:700;color:#fff}
  .brand-copy li span{font-size:13px;color:#cfe7fb}
  .brand-foot{position:absolute;left:60px;bottom:48px;font-size:12px;letter-spacing:1px;color:#cfe7fb}
}
@keyframes skySweep{from{background-position:100% 0}to{background-position:-100% 0}}
@media(prefers-reduced-motion:reduce){.brand-skyline{animation:none!important}}
/* dark mode: the page is inverted, so the brand panel is inverted back (it keeps its blue) */
html[data-theme="dark-legacy"] .login-brand{filter:invert(1) hue-rotate(180deg)}

/* ===== V2.8.10: sign-in page on phones and tablets (< 1100px): the same brand panel as a compact
   blue header (name, headline, white Riyadh banner) above the unchanged sign-in card. ===== */
@media(max-width:1099px){
  .login-shell{display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;place-items:initial;padding:0;
    min-height:100vh;background:linear-gradient(145deg,#eef5fb,#f9fcff)}
  .login-brand{display:flex;flex-direction:column;position:relative;overflow:hidden;padding:26px 22px 0;color:#fff;
    background:linear-gradient(#ffffff1f 1px,transparent 1px) 0 0/96px 96px,linear-gradient(90deg,#ffffff1f 1px,transparent 1px) 0 0/96px 96px,
      linear-gradient(#ffffff0d 1px,transparent 1px) 0 0/24px 24px,linear-gradient(90deg,#ffffff0d 1px,transparent 1px) 0 0/24px 24px,
      linear-gradient(155deg,#0060c0 0%,#0a72d1 45%,#18a8f8 100%)}
  .login-brand .brand-top{position:relative;order:1;font-size:11px;letter-spacing:3px;font-weight:700;color:#e6f1fb}
  .login-brand .brand-copy{position:relative;order:2;margin:12px 0 0;max-width:520px}
  .login-brand .brand-copy h2{font-size:clamp(22px,6vw,30px);line-height:1.15;font-weight:700;margin:0 0 6px;color:#fff;letter-spacing:-.3px}
  .login-brand .brand-copy p{font-size:13px;line-height:1.5;color:#dbeeff;margin:0}
  .login-brand .brand-copy ul,.login-brand .brand-foot{display:none}
  .login-brand .brand-skyline{position:relative;order:3;display:block;width:160%;margin:16px 0 22px -30%;aspect-ratio:2000/231;pointer-events:none;
    -webkit-mask:url("/static/footer_skyline.png?v=3") center/100% 100% no-repeat;mask:url("/static/footer_skyline.png?v=3") center/100% 100% no-repeat;
    background:linear-gradient(90deg,#ffffffc2 0%,#ffffffc2 42%,#ffffff 50%,#ffffffc2 58%,#ffffffc2 100%) 0 0/200% 100%;
    animation:skySweep 7s linear infinite}
  .login-shell .login-card{position:relative;z-index:2;align-self:center;width:calc(100% - 32px);max-width:430px;margin:-14px auto 28px}
}

/* ======================================================================================
   V2.9: Compliance page = step 02 Compliance Sheet (#step5, internal number 5)
   ====================================================================================== */
.cmp-view{padding:22px}
.cmp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:14px}
.cmp-head h2{font-size:20px;color:var(--navy);margin:4px 0 4px;letter-spacing:-.3px}
.cmp-sub{font-size:12px;color:var(--muted);margin:0}
.cmp-back{border:0;background:none;color:var(--blue);font-size:12px;font-weight:700;padding:0;cursor:pointer}
.cmp-saved{font-size:11px;color:var(--muted)}
.cmp-section-title{font-size:13px;font-weight:800;color:var(--navy);margin:16px 0 8px}
.cmp-files{border:1px solid var(--line);border-radius:12px;background:#f8fbfd;padding:4px 14px;margin-bottom:12px}
.cmp-frow{display:grid;grid-template-columns:170px minmax(0,1fr) auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #e6eef4}
.cmp-flabel b{display:block;font-size:12.5px;color:var(--navy)}.cmp-flabel small{font-size:11px;color:var(--muted)}
.cmp-fchips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}.cmp-where{display:block;font-size:10.5px;color:var(--muted);margin-top:5px}
.cmp-fbtns{display:flex;gap:6px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.cmp-fstatus{display:flex;flex-wrap:wrap;gap:18px;padding:10px 0;font-size:12px}.cmp-fstatus b{color:var(--navy);margin-right:6px}
.cmp-actions{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px}
.cmp-action{display:flex;justify-content:space-between;align-items:center;gap:14px;border:1px solid var(--line);border-radius:12px;background:#fff;padding:14px}
.cmp-action.main{border:1.5px solid #9cc9ec;background:#f2f9ff}.cmp-action b{font-size:13px;color:var(--navy)}.cmp-action p{margin:4px 0 0;font-size:11.5px;color:var(--muted);line-height:1.5}
.cmp-send-info{color:#1f7a50!important}.cmp-send-info:empty{display:none}
.link-btn{border:0;background:none;padding:0;color:var(--blue);font:inherit;cursor:pointer;text-decoration:underline}
.cmp-file{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:12px}.cmp-file>b{color:var(--navy)}
.cmp-chip{display:inline-flex;align-items:center;gap:4px;border-radius:20px;padding:4px 10px;font-size:11px;font-weight:700;background:#eef3f7;color:#486a82;border:0}
.cmp-chip.ok{background:#e9f6ef;color:#1f7a50}.cmp-chip.red{background:#fdeeed;color:#a8322d}button.cmp-chip{cursor:pointer}
.cmp-note{font-size:11px;color:var(--muted)}
.cmp-error{flex-basis:100%;margin:0;color:#a8322d;font-size:12px}
.cmp-progress{border-radius:10px;background:#eef7fd;color:#205d88;font-size:12px;padding:10px 12px;margin-bottom:12px}
.cmp-filters{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-bottom:12px}.cmp-spacer{flex:1}
.cmp-filter{border:1px solid var(--line2,#d4e0e9);background:#fff;color:#35556d;border-radius:20px;padding:6px 12px;font-size:12px;font-weight:650}
.cmp-filter b{margin-left:3px;color:var(--navy)}.cmp-filter.red b{color:#a8322d}
.cmp-filter.active{border-color:var(--blue);background:#e8f3fc;color:var(--navy)}.cmp-filter.red.active{border-color:#d9827d;background:#fdeeed;color:#8e2a26}
.cmp-tabs{display:flex;gap:18px;border-bottom:1px solid var(--line);margin-bottom:12px}
.cmp-tab{border:0;background:none;padding:8px 0;font-size:13px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px}
.cmp-tab.active{color:var(--navy);border-bottom-color:var(--blue)}
.cmp-tab-count{display:inline-block;min-width:18px;border-radius:9px;background:#fdeeed;color:#a8322d;font-size:10px;padding:1px 5px;margin-left:3px}.cmp-tab-count:empty{display:none}
.cmp-body{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);gap:14px;align-items:start}.cmp-body.empty{display:block}
.cmp-list{border:1px solid var(--line);border-radius:12px;max-height:calc(100vh - 210px);min-height:260px;overflow:auto;background:#fff}
.cmp-part{position:sticky;top:0;z-index:1;background:#eef3f8;color:var(--navy);font-size:11px;font-weight:800;padding:7px 12px;letter-spacing:.3px}
.cmp-article{font-size:11px;font-weight:750;color:#3d6280;padding:9px 12px 4px}
.cmp-row{display:flex;width:100%;text-align:left;gap:10px;align-items:flex-start;border:0;border-bottom:1px solid #eef3f7;background:#fff;padding:9px 12px;font-size:12px;color:var(--ink)}
.cmp-row:hover{background:#f7fbfe}.cmp-row.sel{background:#e8f3fc;box-shadow:inset 3px 0 0 var(--blue)}.cmp-row.kid{padding-left:28px}
.cmp-ref{flex:0 0 64px;font-weight:800;color:var(--navy)}.cmp-text{flex:1;min-width:0;line-height:1.45}.cmp-text small{color:var(--muted)}
.cmp-pill{flex-shrink:0;border-radius:20px;padding:3px 9px;font-size:10px;font-weight:750;white-space:nowrap;background:#eef3f7;color:#486a82}
.cmp-pill.red{background:#fdeeed;color:#a8322d}.cmp-pill.ok{background:#e9f6ef;color:#1f7a50}.cmp-pill.blue{background:#e8f3fc;color:#0b5c9e}.cmp-pill.warn{background:#fff3df;color:#8a5a0b}
.cmp-detail{border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px;position:sticky;top:12px;max-height:calc(100vh - 40px);overflow:auto}
.cmp-detail-back{display:none}
.cmp-d-head{display:flex;flex-wrap:wrap;gap:10px;align-items:center;font-size:12px;color:var(--muted)}.cmp-d-head b{font-size:15px;color:var(--navy)}
.cmp-src{margin-left:auto;border-radius:20px;background:#f2f6f9;padding:3px 9px;font-size:10px;font-weight:700;color:#4f6d84}
.cmp-d-article{font-size:11px;color:#3d6280;font-weight:700;margin-top:6px}
.cmp-spec{font-size:13px;line-height:1.6;margin:10px 0;color:var(--ink);background:#f9fbfd;border-radius:10px;padding:11px 12px;border:1px solid #edf2f6}
.cmp-kids{margin:8px 0 0;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:5px}.cmp-kids li{display:block;line-height:1.5}.cmp-kids li b{margin-right:4px}.cmp-kids .cmp-pill{margin-left:6px;vertical-align:1px}
.cmp-why{border-radius:9px;background:#fdeeed;color:#8e2a26;font-size:12px;padding:8px 11px;margin-bottom:10px}
.cmp-accept{display:flex;width:100%;align-items:center;gap:10px;flex-wrap:wrap;text-align:left;border:1.5px solid #9cc9ec;background:#f2f9ff;border-radius:11px;padding:10px 12px;margin-bottom:6px;color:var(--ink);font-size:12.5px}
.cmp-accept:hover{border-color:var(--blue)}.cmp-accept>span:first-child{font-size:10.5px;color:var(--muted);font-weight:700}.cmp-accept b{color:var(--navy)}.cmp-accept em{font-style:normal;color:#35556d;flex:1;min-width:140px}
.cmp-accept-who{flex-basis:100%;font-size:10.5px;color:var(--muted)}
.cmp-accept-go{margin-left:auto;border-radius:8px;background:var(--blue);color:#fff;font-weight:750;font-size:11.5px;padding:6px 11px}
.cmp-d-label{font-size:11px;font-weight:800;color:var(--navy);margin:12px 0 6px;letter-spacing:.2px}
.cmp-d-note{font-size:11px;color:var(--muted);margin-top:6px}
.cmp-ev{width:100%;border-collapse:collapse;font-size:11.5px}.cmp-ev td{border-bottom:1px solid #eef3f7;padding:5px 6px;vertical-align:top}.cmp-ev td:first-child{color:var(--muted);white-space:nowrap}
.cmp-yes{color:#1f7a50;font-weight:800}.cmp-no{color:#a8322d;font-weight:800}
.cmp-status{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.cmp-sbtn{border:1.5px solid var(--line2,#d4e0e9);background:#fff;border-radius:10px;min-height:46px;font-size:12.5px;font-weight:750;color:#35556d;padding:6px}
.cmp-sbtn:hover{border-color:var(--blue)}.cmp-sbtn.on{border-color:var(--blue);background:#e8f3fc;color:var(--navy)}
.cmp-remark{width:100%;margin-top:8px;border:1px solid #cfdee9;border-radius:9px;padding:9px 11px;font-size:13px;resize:vertical;outline:none}.cmp-remark:focus{border-color:var(--blue);box-shadow:0 0 0 3px #007ccf13}
.cmp-sugg{display:flex;flex-wrap:wrap;gap:6px}
.cmp-sg{border:1px solid #cfe2f1;background:#f4f9fd;border-radius:9px;padding:6px 10px;font-size:11.5px;color:#1f4f74;text-align:left;max-width:100%}.cmp-sg:hover{border-color:var(--blue)}.cmp-sg b{color:var(--navy)}
.cmp-d-foot{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin-top:14px}.cmp-decided{font-size:11px;color:var(--muted)}
.cmp-empty.cmp-bad{color:#8e2a26;background:#fdeeed;border-radius:10px;text-align:left}
.cmp-empty{color:var(--muted);font-size:12.5px;padding:18px;text-align:center;margin:0}
.cmp-table{border:1px solid var(--line);border-radius:12px;overflow:hidden}
.cmp-tr{display:grid;grid-template-columns:1.2fr .9fr 1.3fr .9fr 2fr;gap:10px;padding:10px 12px;border-bottom:1px solid #eef3f7;font-size:12px;align-items:start}
.cmp-tr small{display:block;color:var(--muted);font-size:10.5px}.cmp-th{background:#f4f8fb;font-weight:750;color:#4a6880;font-size:11px}.cmp-tr.bad{background:#fffafa}
.cmp-no-line{color:#8e2a26;margin-bottom:3px}
.cmp-missing{margin:0;padding-left:18px;display:flex;flex-direction:column;gap:6px;font-size:12.5px}
.cmp-box{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #cfe2f1;background:#f5fafe;border-radius:11px;padding:11px 12px;margin:10px 0}
.cmp-box-text{display:flex;flex-direction:column;gap:6px;min-width:0}.cmp-box-text>b{font-size:12.5px;color:var(--navy)}.cmp-box-chips{display:flex;flex-wrap:wrap;gap:6px}
.cmp-duty-alert{display:flex;justify-content:space-between;align-items:center;gap:10px;border-radius:10px;background:#fff6e8;color:#7a4f0a;font-size:12px;padding:8px 11px;margin:10px 0}
@media (max-width:760px){
  .cmp-view{padding:14px}
  .cmp-body{grid-template-columns:1fr}
  .cmp-body.show-detail .cmp-list{display:none}
  .cmp-body:not(.show-detail) .cmp-detail{display:none}
  .cmp-list{max-height:none}
  .cmp-detail{position:static;max-height:none;padding:13px}
  .cmp-detail-back{display:inline-block;border:0;background:none;color:var(--blue);font-weight:700;font-size:12px;padding:0 0 10px}
  .cmp-status{grid-template-columns:1fr 1fr}
  .cmp-tr{grid-template-columns:1fr 1fr}.cmp-th{display:none}
  .cmp-ref{flex-basis:52px}
  .cmp-frow{grid-template-columns:1fr}.cmp-fbtns{justify-content:flex-start}
  .cmp-actions{grid-template-columns:1fr}.cmp-action{flex-direction:column;align-items:flex-start}
  .stepper .step:last-of-type{grid-column:1/-1}
}

/* V2.9.5: simpler Compliance step - sticky bar, files in one line, answer first then evidence */
.cmp-bar{position:sticky;top:8px;z-index:6;display:flex;align-items:center;gap:14px;flex-wrap:wrap;background:#fff;border:1.5px solid #9cc9ec;border-radius:14px;padding:10px 14px;margin:-4px 0 12px;box-shadow:0 6px 18px rgba(14,47,77,.08)}
.cmp-bar-title{min-width:0;flex:1 1 260px}.cmp-bar-title h2{font-size:17px;color:var(--navy);margin:0 0 2px;letter-spacing:-.2px}.cmp-bar-title .cmp-sub{font-size:11px}
.cmp-prog{flex:1 1 220px;min-width:200px;font-size:12px;color:var(--navy)}
.cmp-track{height:7px;border-radius:5px;background:#e8eff5;overflow:hidden;margin-top:6px}.cmp-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#0b63b5,#19aaf3);transition:width .3s}
.cmp-bar-btns{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.cmp-fileline{display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid var(--line);border-radius:12px;background:#f8fbfd;padding:8px 12px;margin-bottom:10px;font-size:12px}
.cmp-fileline>b{color:var(--navy)}.cmp-filechips{display:flex;flex-wrap:wrap;gap:6px}
.cmp-fileline .cmp-send-info{font-size:11.5px}
.cmp-minor{display:flex;flex-wrap:wrap;gap:4px;align-items:center;font-size:11.5px;color:var(--muted);margin-left:6px}
.cmp-minor-f{border:0;background:none;color:#4f6d84;font-size:11.5px;padding:3px 4px;border-radius:6px}.cmp-minor-f:hover{color:var(--blue)}.cmp-minor-f.active{color:var(--navy);font-weight:800;background:#e8f3fc}
.cmp-keys{margin-left:auto;align-self:center;font-size:10.5px;color:var(--muted)}
.cmp-status kbd,.cmp-accept kbd{font:inherit;font-size:10px;border:1px solid #c9d9e6;border-bottom-width:2px;border-radius:4px;padding:0 4px;margin-right:3px;background:#fff;color:#4f6d84}
.cmp-accept-go kbd{color:#0b63b5;border-color:#ffffff99}
.cmp-status{margin-top:10px}
.cmp-evbox{border:1.5px solid #cfe2f1;border-radius:11px;background:#f9fcff;padding:8px 11px}
.cmp-evr,.cmp-hit{display:grid;grid-template-columns:110px minmax(0,1fr) auto;gap:8px;align-items:center;padding:6px 0;border-bottom:1px solid #eaf1f7;font-size:12px}
.cmp-evr:last-of-type{border-bottom:0}.cmp-evm{color:var(--muted);font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmp-search{display:flex;gap:6px;margin-top:8px}.cmp-search input{flex:1;min-width:0;border:1px solid #cfdee9;border-radius:8px;padding:7px 10px;font-size:12px;outline:none}.cmp-search input:focus{border-color:var(--blue)}
.cmp-hits{margin-top:4px}.cmp-hit mark{background:#fff1b8;color:inherit;padding:0 1px;border-radius:2px}
.cmp-optbox{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;background:#f4f7fa;border-radius:10px;padding:9px 11px;margin-top:10px;font-size:12px}
.cmp-follow{flex-basis:100%;display:flex;flex-direction:column;gap:6px;margin-top:4px}.cmp-follow label{display:flex;gap:6px;align-items:flex-start;font-size:12px;line-height:1.45}.cmp-follow .btn{align-self:flex-start}
.cmp-more{margin-top:10px;border-top:1px solid #eaf1f7;padding-top:8px}.cmp-more summary{cursor:pointer;font-size:12px;font-weight:750;color:#3d6280}.cmp-more .cmp-sugg{margin-top:8px}
.cmp-why-text p{margin:6px 0 0;font-size:12px;color:#5a3530;background:#fdf3f2;border-radius:8px;padding:7px 9px}
@media (max-width:760px){.cmp-bar{position:static;margin-top:0}.cmp-keys{display:none}.cmp-evr,.cmp-hit{grid-template-columns:1fr}}
.cmp-evbasis{display:flex;flex-direction:column;gap:3px;font-size:12px;padding:2px 0 8px;border-bottom:1px solid #eaf1f7;margin-bottom:4px}.cmp-evbasis b{color:var(--navy);margin-right:4px}
.cmp-evsub{font-size:10.5px;color:var(--muted);font-weight:700;margin-top:4px}
.cmp-qa-head{display:flex;align-items:center;gap:8px}.cmp-qa-head .link-btn{font-size:11px;font-weight:600}
/* V2.10: AI Review */
.cmp-ai-btn{border-color:#c7b8f0!important;color:#5b3fb8!important}
.cmp-filter.ai b{color:#5b3fb8}.cmp-filter.ai.active{border-color:#9c84e6;background:#f3effe;color:#3f2a8c}
.cmp-ai-badge{flex-shrink:0;font-size:11px;font-weight:800;border-radius:10px;padding:2px 6px;margin-right:2px}
.cmp-ai-badge.ok{color:#7a68b8;background:#f4f1fd}.cmp-ai-badge.warn{color:#fff;background:#7b5cd6}.cmp-ai-badge.q{color:#5b3fb8;background:#ece6fc}
.cmp-aibox{border:1.5px solid #d5c9f5;background:#faf8ff;border-radius:11px;padding:10px 12px;margin:8px 0;font-size:12.5px}
.cmp-aibox.v-change{border-color:#9c84e6}.cmp-aibox.v-agree{border-color:#e3dcf7;background:#fcfbff}
.cmp-ai-head{color:#3f2a8c}.cmp-ai-head b{color:#5b3fb8}
.cmp-ai-sev{font-size:10px;font-weight:800;border-radius:8px;padding:1px 6px;margin-left:4px;text-transform:uppercase;background:#ece6fc;color:#5b3fb8}
.cmp-ai-sev.high{background:#fdeeed;color:#a8322d}.cmp-ai-sev.medium{background:#fff3df;color:#8a5a0b}
.cmp-ai-answer{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap;margin-top:6px;padding:6px 8px;border-radius:8px;background:#fff;border:1px solid #e3dcf7}
.cmp-ai-reason{margin:6px 0 0;color:#3b3355;line-height:1.5}
.cmp-ai-quotes{margin:6px 0 4px;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:3px;font-size:11.5px}
.cmp-ai-quotes li.ok{color:#2f5d45}.cmp-ai-quotes li.bad{color:#a8322d}


/* V2.11: Technical Submittal / BQD switch + BQD package tab (same look as the other panels) */
.mode-switch{display:flex;justify-content:flex-end;margin:0 0 12px}
.mode-switch .mode-btn{border:1px solid var(--line);background:var(--glass-strong,#fff);color:var(--navy);font-weight:700;font-size:13px;padding:9px 20px;transition:.18s}
.mode-switch .mode-btn:first-child{border-radius:999px 0 0 999px}
.mode-switch .mode-btn:last-child{border-radius:0 999px 999px 0;border-left:0}
.mode-switch .mode-btn.active{background:var(--brand-grad,#006cb7);color:#fff;border-color:transparent}
body[data-view="projects"] .mode-switch,body[data-view="tracking"] .mode-switch{display:none!important}
.bqd-list{display:flex;flex-direction:column;gap:10px}
.bqd-section{border:1px solid #d9e5ed;border-radius:11px;background:#fff;overflow:hidden}
.bqd-section.drop-over{border:2px dashed #007ccf;background:#eef8fe}
.bqd-head{display:flex;align-items:center;gap:8px;padding:11px 12px}
.bqd-title{flex:1;min-width:0;font-size:13px;color:var(--navy);font-weight:800}
.bqd-title small{display:block;font-size:10px;color:#8095a3;font-weight:500;margin-top:3px}
.bqd-rename{width:100%;max-width:340px;font-size:13px;padding:5px 8px}
.bqd-files{background:#f8fbfe;border-top:1px solid #e2edf5;padding:7px 9px}
.bqd-file .file-icon{width:30px;height:30px;font-size:8px;flex-shrink:0}
.bqd-file .file-name{max-width:none!important}
.bqd-meta{font-size:10px;color:#8095a3;white-space:nowrap}
.bqd-drop-hint{color:#879aaa;font-size:11px;padding:8px 6px;margin:0}
.bqd-empty{border:1px dashed #c0dceb;border-radius:11px;padding:22px;text-align:center;color:#48738c}
.bqd-empty b{display:block;color:var(--navy);margin-bottom:5px}.bqd-empty p{margin:0;font-size:12px}
.bqd-new{display:flex;gap:8px;margin-top:12px;align-items:center}.bqd-kind{font-size:.85rem}.bqd-new input{flex:1;min-width:0}
.bqd-foot{display:flex;align-items:center;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid #e2edf5}
.pdf-size{display:flex;align-items:center;gap:8px;margin:0 0 10px;font-size:12px;font-weight:700;color:#35556d}.pdf-size select{flex:1;padding:8px 10px;font-size:12px}.bqd-foot .pdf-size{margin:0;flex:0 1 250px}.export-size{font-size:12px;color:#35556d;margin:8px 0;text-align:center}  /* V2.17.5 */
.bqd-status{flex:1;font-size:12px;color:#456d84}
@media(max-width:760px){.mode-switch{justify-content:stretch}.mode-switch .mode-btn{flex:1}.bqd-foot{flex-wrap:wrap}.bqd-foot .btn{flex:1}.bqd-status{flex-basis:100%}
  .bqd-head{flex-wrap:wrap}.bqd-file{flex-wrap:wrap}.bqd-file .file-name{flex:1 1 calc(100% - 80px)}}
.stepper.hidden,body .stepper.hidden{display:none!important}   /* BQD tab: the phone layout sets display:grid!important on .stepper */
@media(max-width:760px){.bqd-head .bqd-title{flex:1 1 calc(100% - 70px)}.bqd-head .mini{min-height:34px}}

/* V2.11.1: Compliance Sheet generator "Coming soon" (off unless MAWRAQI_COMPLIANCE=on) */
.soon-badge{display:inline-block;vertical-align:middle;margin-left:6px;padding:2px 8px;border-radius:999px;background:#fff4df;color:#8a5a12;border:1px solid #f1d9a8;font-style:normal;font-size:10px;font-weight:700;letter-spacing:.3px}
.step.active .soon-badge{background:rgba(255,255,255,.9);border-color:transparent}
.soon-badge.big{font-size:12px;padding:5px 14px;margin:0 0 12px}
.cmp-soon{max-width:720px;margin:0 auto;text-align:center;padding:40px 32px}
.cmp-soon h2{margin:0 0 12px;color:var(--navy)}
.cmp-soon p{margin:0 auto 10px;max-width:560px;color:var(--muted);line-height:1.7;font-size:14px}
.cmp-soon .btn{margin-top:12px}
body.cmp-off .cmp-build-hint{display:none}

/* V2.12: PQ number bar in the PQD tab */
.pq-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 14px;padding:10px 14px;border:1px solid #d9e5ed;border-radius:11px;background:#f6fbff}
.pq-label{font-size:11px;font-weight:700;letter-spacing:.5px;color:#707878;text-transform:uppercase}
#pqNumber{font-size:15px;color:#0060c0}#pqNumber.pq-none{color:#9aa3a3;font-weight:600}
.pq-note{flex:1;font-size:12px;color:#60788e}

/* V2.13.1: datasheet picker in each pump row */
.pump-pick{width:100%;margin-bottom:5px;font-size:12px;padding:6px 8px}

/* V2.14.0: Tools > Brands > Applications */
.apps-section{margin-top:26px;border-top:1px solid var(--line);padding-top:16px}
.apps-section>h3{margin:0 0 6px}
.app-row .brand-info{padding-left:4px}
.app-fixed{opacity:.75}

/* V2.14.0: Step 03 > Selected for this Project: order of the approvals */
.chosen-hint{margin:0 0 6px;font-size:11px;color:var(--muted)}
.chosen-row .grip{cursor:grab;color:#8aa0b4;padding:0 4px;user-select:none}
.chosen-row .chosen-num{min-width:20px;font-size:11px;font-weight:700;color:#2b6f9e;text-align:center}
.chosen-row>button[data-doc-preview]{border:0;background:none;flex:1;text-align:left;cursor:pointer;font-size:11px;color:#256c94;overflow-wrap:anywhere}

/* V2.14.1: per-file watermark switch */
.wm-toggle{white-space:nowrap}
.wm-toggle.wm-off{color:#8a5a00;background:#fff6e5;border-color:#f0d29a}
@media(max-width:760px){.wm-toggle{font-size:10px;padding:4px 6px}}

/* V2.25.1: a section printed before the cover has no number: a small tag instead */
.arrange-number.front-badge{width:auto;min-width:0;padding:0 9px;border-radius:999px;font-size:10px;font-weight:800;letter-spacing:.02em;text-transform:uppercase;background:#fff2d6;color:#8a5a00}
.sec-type{font-weight:600;font-size:.82em;color:var(--muted,#707878);white-space:nowrap}
/* V2.26.0: Add from Library (PQD) */
.bqd-lib-tabs{display:flex;gap:6px;margin:6px 0 10px;flex-wrap:wrap}
.bqd-lib-tabs button{border:1px solid var(--line,#dbe5ee);background:transparent;border-radius:999px;padding:6px 14px;font:inherit;font-size:12px;font-weight:700;cursor:pointer;color:inherit}
.bqd-lib-tabs button.active{background:var(--brand,#0060c0);border-color:var(--brand,#0060c0);color:#fff}
.bqd-lib-search{width:100%;padding:9px 12px;border:1px solid var(--line,#dbe5ee);border-radius:12px;font:inherit;margin-bottom:8px}
.bqd-lib-list{max-height:52vh;overflow:auto;display:flex;flex-direction:column;gap:6px}
.bqd-lib-item{display:flex;align-items:center;gap:10px;border:1px solid var(--line,#e3ebf2);border-radius:12px;padding:8px 12px;background:rgba(255,255,255,.6)}
.bqd-lib-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.bqd-lib-main b{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bqd-lib-main small{font-size:11px;color:var(--muted,#707878)}
.bqd-lib-added{font-size:12px;font-weight:800;color:#1f7a4c;white-space:nowrap}
.bqd-lib-tag{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.03em;color:#0060c0;background:#e8f3fc;border-radius:999px;padding:2px 8px;white-space:nowrap}
.bqd-lib .grip-off{visibility:hidden}
.bqd-missing{background:#fff8e6!important;border-color:#f0d58c!important}
html[data-theme="dark"] .bqd-lib-item{background:#17222d;border-color:#2c3c4b}
html[data-theme="dark"] .bqd-lib-tag{background:#1b3248;color:#7ab8ee}
/* V2.26.1: pictures of the files in the PQD (list and library picker) */
.bqd-file .thumb-box,.bqd-lib-item .thumb-box{flex:0 0 40px;width:40px;height:52px}
.bqd-file .thumb-box .file-icon,.bqd-lib-item .thumb-box .file-icon{width:30px;height:30px;font-size:8px}
.bqd-file .thumb-img,.bqd-lib-item .thumb-img{cursor:zoom-in}
.bqd-lib-pic{display:flex;cursor:zoom-in}
.bqd-lib-item .mini{padding:5px 12px}
/* V2.26.3: preview inside the Add from Library window; "Added" is obvious */
.bqd-lib-count{margin:2px 0 8px;font-size:12px;color:var(--muted,#707878)}
.bqd-lib-count b{color:#1f7a4c}
.bqd-lib-prev{display:flex;flex-direction:column;gap:8px}
.bqd-lib-prevbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.bqd-lib-prevbar b{flex:1;min-width:0;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.bqd-lib-frame{width:100%;height:58vh;min-height:320px;border:1px solid var(--line,#dbe5ee);border-radius:12px;background:#fff}
.bqd-lib-done{border-color:#7cc7a0!important;background:rgba(233,247,239,.7)!important}
.bqd-lib-done .bqd-lib-added{background:#1f7a4c;color:#fff;border-radius:999px;padding:4px 12px}
html[data-theme="dark"] .bqd-lib-done{background:rgba(31,122,76,.18)!important}
/* V2.26.4: Add from Library = list on the left, preview on the right (wide screens) */
#bqdLibDialog.bqd-lib-dialog{width:min(1280px,96vw);max-width:none}
.bqd-lib-body.wide{display:grid;grid-template-columns:minmax(380px,.85fr) minmax(0,1.15fr);gap:16px;align-items:start}
.bqd-lib-body.wide .bqd-lib-list{max-height:64vh}
.bqd-lib-body.wide #bqdLibBack{display:none}
.bqd-lib-body.wide .bqd-lib-frame{height:70vh}
.bqd-lib-prevempty{display:grid;place-items:center;min-height:240px;border:1px dashed var(--line,#cfdbe6);border-radius:12px;color:var(--muted,#707878);font-size:13px;text-align:center;padding:20px}
.bqd-lib-active{border-color:var(--brand,#0060c0)!important;box-shadow:0 0 0 2px rgba(0,96,192,.18)}
.bqd-lib-body.wide .bqd-lib-prev{position:sticky;top:0}
/* V2.15.0: Fixed Files (company files in every project) */
.category-card.fixed-section{border-color:#c9dcec;background:linear-gradient(180deg,#f7fbfe,var(--card) 60px)}
.fixed-section .category-title b{color:var(--navy)}
.mini.fixed-lock{margin-left:4px}
[data-icon="lock"]{--ic:url("/static/icons/lock.svg")}[data-icon="lock-open"]{--ic:url("/static/icons/lock-open.svg")}
.fixed-ic{display:inline-block;width:15px;height:15px;margin-right:6px;vertical-align:-2px;background:#0b63b5;-webkit-mask:url("/static/icons/lock.svg") center/contain no-repeat;mask:url("/static/icons/lock.svg") center/contain no-repeat}
.fixed-section .file-row{flex-wrap:wrap}
.fixed-section .file-row .file-main{flex:1 1 100%}
.fixed-section .file-row .file-actions{flex-wrap:wrap;width:100%;padding-left:49px}
.fixed-section .file-icon{position:relative}
.fixed-section .file-icon::after{content:"";position:absolute;right:-5px;bottom:-5px;width:17px;height:17px;border-radius:50%;box-shadow:0 0 0 2px #fff;background:#0b63b5 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='11' x='3' y='11' rx='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E") center/10px no-repeat}
.file-row.fixed-excluded{opacity:.55}
.category-files .file-row.fixed-red,.fixed-admin-file.fixed-red{background:#fdf1f0!important;border-color:#efc4c0;border-radius:8px}
.fixed-expired{color:var(--danger,#b23b36);font-weight:700}
.fixed-soon{color:var(--warn);font-weight:700}
.fixed-alert{border-radius:9px;background:#fff7e8;color:#8a5a0c;font-size:12px;line-height:1.7;padding:10px 12px;margin:0 0 10px}
.fixed-admin-section{border:1px solid var(--line);border-radius:12px;padding:10px 12px;margin:0 0 10px}
.fixed-admin-head{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-bottom:6px}
.fixed-admin-head small{color:var(--muted)}
.fixed-after{display:flex;align-items:center;gap:6px;font-size:12px;margin-left:auto}
.fixed-after select{max-width:200px}
.fixed-admin-file{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:6px 4px;border-top:1px solid var(--line)}
.fixed-admin-file .file-name{flex:1 1 200px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.fixed-admin-file small{color:var(--muted)}
.fixed-admin-actions{display:flex;flex-wrap:wrap;gap:4px}
.fixed-versions{flex-basis:100%;padding:4px 0 2px 12px}
.fixed-add{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px;margin-top:12px}
.fixed-add label{flex:1 1 200px}
@media (max-width:760px){.fixed-after{margin-left:0;flex-basis:100%}.fixed-after select{max-width:none;flex:1}.fixed-add .btn{width:100%}}

/* ===== V2.16.0: side menu + top bar + one content panel (layout only; same colours, glass, font) ===== */
:root{--side-w:252px;--gap:14px}
.logo-dark{display:none!important}
html[data-theme="dark"] .logo-light{display:none!important}
html[data-theme="dark"] .logo-dark{display:block!important}
html[data-theme="dark"] .login-logo.logo-dark{display:inline-block!important}
.side-nav,.side-backdrop{display:none}
body.app-locked .side-nav,body.app-locked .side-backdrop{display:none!important}
#overviewView{display:none}
body[data-view="overview"] #overviewView{display:block}
body[data-view="overview"] .workspace-header,body[data-view="overview"] .stepper,body[data-view="overview"] .step-view,body[data-view="overview"] #emptyState,
body[data-view="overview"] #projectSummary,body[data-view="overview"] #teamProjects,body[data-view="overview"] #modeSwitch{display:none!important}
body[data-view="projects"] .workspace-header,body[data-view="tracking"] .workspace-header{display:none!important}

/* side menu items (used on every screen size) */
.side-logo{padding:6px 8px 14px;border-bottom:1px solid var(--line);margin-bottom:8px}
.side-logo img{display:block;width:100%;max-width:200px;height:auto}
.side-scroll{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;padding:0 2px}
.side-list{display:flex!important;flex-direction:column;gap:2px;border:0!important;background:none!important;box-shadow:none!important;padding:0!important;margin:0!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;border-radius:0!important}
.side-group{margin:14px 12px 4px;font-size:10.5px;font-weight:600;letter-spacing:2.2px;text-transform:uppercase;color:#7d93a5}
.side-item{display:flex!important;align-items:center;gap:12px;width:100%;border:0!important;background:none!important;border-radius:12px!important;padding:10px 12px!important;
  font:inherit;font-size:14px;font-weight:500;color:var(--ink)!important;text-align:left;cursor:pointer;margin:0!important;white-space:nowrap;min-height:40px;box-shadow:none!important}
.side-item.hidden{display:none!important}
.side-item[data-icon]::before{width:19px!important;height:19px!important;margin:0!important;flex:0 0 19px;color:#5b7488}
.side-item:hover{background:rgba(0,96,192,.07)!important}
.side-item .side-label{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis}
.side-item .tab-count{margin-left:auto;min-width:22px;height:20px;padding:0 6px;border-radius:999px;display:inline-grid;place-items:center;font-size:11px;font-weight:700;background:#fde8e6;color:#b23b36}
.side-item .tab-count:empty{display:none}
.side-item[data-view="projects"] .tab-count{background:#e3f1fc;color:var(--brand)}
.side-item.active{background:var(--brand-grad)!important;color:#fff!important;box-shadow:0 8px 18px rgba(0,96,192,.25)!important}
.side-item.active[data-icon]::before{color:#fff}
.side-item.active .tab-count{background:#fff;color:var(--brand)}
.side-user{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:12px 8px 4px;margin-top:8px}
.side-user .side-label{display:flex;flex-direction:column;min-width:0}
.side-user b{font-size:13.5px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.side-user small{font-size:11.5px;color:#707878}
.side-avatar{flex:0 0 38px;height:38px;border-radius:50%;display:grid;place-items:center;background:var(--brand-grad);color:#fff;font-weight:700;font-size:13px}
.side-avatar:empty{visibility:hidden}

/* top bar: search on the left, small round buttons on the right */
.top-search{flex:1;max-width:520px;position:relative;display:none}
.top-search input{width:100%;height:42px;border-radius:999px;border:1px solid var(--line);background:rgba(255,255,255,.75);padding:0 16px 0 42px;font-size:13.5px;color:var(--ink)}
.top-search::before{content:"";position:absolute;left:15px;top:50%;width:17px;height:17px;margin-top:-8.5px;background:#7d93a5;-webkit-mask:url("/static/icons/search.svg") center/contain no-repeat;mask:url("/static/icons/search.svg") center/contain no-repeat}
.icon-btn{position:relative}
.alert-dot{position:absolute;top:-4px;right:-4px;min-width:17px;height:17px;padding:0 4px;border-radius:999px;background:#d64541;color:#fff;font-size:10px;font-weight:700;display:grid;place-items:center;line-height:1}
.version-pill{font-weight:600;color:var(--brand)!important}

/* Overview */
.ov-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}
.ov-head h1{font-size:34px;font-weight:700;letter-spacing:-.6px;color:var(--navy);margin:0 0 4px;line-height:1.15}
.ov-head .subhead{margin:0;color:#5b7488}
.ov-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.ov-card{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:2px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;
  background:rgba(255,255,255,.66);border:1px solid var(--glass-line);border-radius:20px;padding:20px 22px;box-shadow:var(--glass-shadow);
  backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%);transition:transform .18s ease,box-shadow .18s ease}
.ov-card:hover{transform:translateY(-3px)}
.ov-card .sum-ico{margin-bottom:14px}
.ov-card b{font-size:32px;font-weight:700;color:var(--navy);line-height:1.1}
.ov-label{font-size:14px;font-weight:600;color:var(--navy)}
.ov-card small{font-size:12px;color:#707878}
.ov-chip{display:inline-block;border-radius:999px;padding:3px 10px;font-size:11.5px;font-weight:600;font-style:normal;white-space:nowrap;background:#e3f1fc;color:var(--brand)}
.ov-card .ov-chip{position:absolute;top:18px;right:18px}
.ov-chip.late,.ov-chip.bad{background:#fde8e6;color:#b23b36}
.ov-chip.wait{background:#fdf1dc;color:#a8690b}
.ov-chip.ok{background:#e2f4ea;color:#1f8a5b}
.ov-recent{padding:22px 24px!important}
.ov-recent-head h2{margin:0;font-size:18px;color:var(--navy)}
.ov-recent-head p{margin:2px 0 10px;color:#707878;font-size:12.5px}
.ov-list{display:flex;flex-direction:column}
.ov-row{display:flex;align-items:center;gap:16px;width:100%;border:0;border-top:1px solid var(--line);background:none;font:inherit;color:var(--ink);text-align:left;padding:13px 4px;cursor:pointer}
.ov-row:hover{background:rgba(0,96,192,.04)}
.ov-name{flex:1;min-width:0;display:flex;flex-direction:column}
.ov-name b{font-size:14.5px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.ov-name small{font-size:11.5px;color:#707878}
.ov-num{font-size:13px;font-weight:500;white-space:nowrap}

/* project title: the project's name, its Submittal No. / brand / consultant / industry, and the actions on the right */
.ws-title{min-width:0}
.ws-meta{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ws-meta:empty{display:none}
.ws-chip{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 13px;font-size:12.5px;font-weight:500;background:rgba(255,255,255,.75);border:1px solid var(--line);color:var(--navy)}
.ws-chip[data-icon]::before{margin:0;width:14px;height:14px;color:#5b7488}
#wsCrumb:has(.crumb-link){letter-spacing:0;font-size:13px;text-transform:none}
.crumb-link{border:0;background:none;padding:0;font:inherit;color:inherit;letter-spacing:inherit;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.ws-side{display:flex;flex-direction:column;align-items:flex-end;gap:10px;flex-shrink:0}
.ws-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.ws-row .mode-switch{margin:0!important}
#wsGenerate{min-height:44px}
.ws-side .project-select label{font-size:10px}

/* ---- tablets and laptops: side menu + top bar + one content panel ---- */
@media(min-width:761px){
  .side-nav{display:flex;flex-direction:column;position:fixed;z-index:60;left:var(--gap);top:var(--gap);bottom:var(--gap);width:var(--side-w);padding:16px 12px 12px;
    border-radius:26px;background:var(--glass-strong);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow);
    backdrop-filter:blur(20px) saturate(160%);-webkit-backdrop-filter:blur(20px) saturate(160%)}
  body:not(.app-locked){padding-left:calc(var(--side-w) + var(--gap) * 2)}
  body:not(.app-locked) > .topbar{width:auto!important;max-width:none!important;margin:var(--gap) var(--gap) 0 0!important;min-height:64px!important;padding:8px 12px 8px 14px!important;gap:12px}
  body:not(.app-locked) > .topbar .brand{display:none!important}
  .top-search{display:block}
  .top-actions{margin-left:auto;flex-wrap:nowrap!important;gap:8px!important}
  #loggedInUser{display:none!important}
  .icon-btn{font-size:0!important;gap:0!important;width:40px;height:40px;padding:0!important;justify-content:center}
  .icon-btn::before{width:17px!important;height:17px!important;margin:0!important}
  #themeToggle{width:40px;height:40px;justify-content:center}
  body:not(.app-locked) > .shell{max-width:none;margin:var(--gap) var(--gap) 0 0;padding:34px 40px 40px!important;border-radius:28px;
    background:rgba(255,255,255,.38);border:1px solid var(--glass-line);box-shadow:var(--glass-shadow)}
  .workspace-header{align-items:flex-end;margin-bottom:20px}
  .workspace-header h1{font-size:36px;font-weight:700;letter-spacing:-.8px;color:var(--navy)}
  .stepper{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px!important}
  .stepper .step-line{display:none!important}
  .stepper .step{flex-direction:row!important;align-items:center;text-align:left;padding:12px 14px!important;border-radius:18px!important}
  body:not(.app-locked) > .site-footer{margin-right:var(--gap)}
}
/* wide screens: three upload cards per row; space on the right for the standing pump */
@media(min-width:1300px){.upload-categories{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .upload-categories .file-row{flex-wrap:wrap;row-gap:6px}.upload-categories .file-main{flex:1 1 100%;min-width:0}
  .upload-categories .file-actions{flex-wrap:wrap;margin-left:auto;justify-content:flex-end}}
@media(min-width:1200px){body:not(.app-locked) > .shell{padding-right:76px!important}}
/* < 1200px: the side menu folds to icons only */
@media(min-width:761px) and (max-width:1199px){
  :root{--side-w:72px}
  .side-nav{padding:14px 8px 10px}
  .side-logo{padding:2px 0 10px}
  .side-logo img{width:38px;max-width:38px;height:40px;margin:0 auto;object-fit:cover;object-position:right center}
  .side-group{font-size:0;margin:8px 10px;border-top:1px solid var(--line)}
  .side-item{font-size:0!important;justify-content:center;padding:10px 0!important;position:relative}
  .side-item .side-label{display:none}
  .side-item .tab-count{position:absolute;top:3px;right:4px;min-width:16px;height:16px;font-size:9.5px;padding:0 4px}
  .side-user{justify-content:center;padding:10px 0 2px}
  .side-user .side-label{display:none}
  .workspace-header{flex-wrap:wrap}
  .ov-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(min-width:761px) and (max-width:1050px){.stepper .step small{display:none!important}.stepper .step{padding:10px!important}}

/* ---- phones: the side menu is a drawer opened by ☰ Menu; the rest of the phone layout is unchanged ---- */
@media(max-width:760px){
  .side-nav{display:flex;flex-direction:column;position:fixed;z-index:80;left:0;top:0;bottom:0;width:min(300px,86vw);padding:16px 12px 12px;
    background:#fff;box-shadow:0 10px 40px rgba(0,40,80,.25);border-radius:0 22px 22px 0;transform:translateX(-105%);transition:transform .22s ease;visibility:hidden}
  body.nav-open .side-nav{transform:none;visibility:visible}
  .side-backdrop{display:block;position:fixed;inset:0;z-index:79;background:rgba(10,30,50,.35);opacity:0;pointer-events:none;transition:opacity .2s}
  body.nav-open .side-backdrop{opacity:1;pointer-events:auto}
  .side-actions-slot .top-actions{display:flex!important;position:static!important;flex-direction:column;align-items:stretch;gap:6px;padding:12px 0 4px;margin-top:10px;
    border-top:1px solid var(--line);background:none!important;box-shadow:none!important;border-radius:0}
  .side-actions-slot .top-actions .btn{width:100%;justify-content:flex-start;font-size:13px!important;height:auto;padding:9px 12px!important}
  .side-actions-slot #themeToggle{font-size:13px!important;gap:8px!important}
  .side-actions-slot .icon-btn::before{margin-right:.45em!important}
  .side-actions-slot #loggedInUser{display:none!important}
  .ov-head{flex-direction:column}
  .ov-head h1{font-size:26px}
  .ov-cards{grid-template-columns:1fr 1fr;gap:10px}
  .ov-card{padding:14px}
  .ov-card b{font-size:24px}
  .ov-card .ov-chip{position:static;margin-top:6px}
  .ov-row{flex-wrap:wrap;gap:6px 10px}
  .ov-name{flex-basis:100%}
  .ws-side{align-items:stretch;margin-top:10px}
  .ws-row{justify-content:stretch}
  .workspace-header h1{font-size:26px}
}
@media(prefers-reduced-motion:reduce){.side-nav,.side-backdrop{transition:none}}

/* V2.16.0: the same pump, standing up, small, on the right inside the content panel; the pipe goes down to the
   end of the page and fills as the page scrolls (still: only transforms are written per scroll frame). */
@media(min-width:1200px){
  body:not(.app-locked) .pump-scroll{--h:30px;--L:calc(var(--h) * 134 / 58);display:flex;flex-direction:column;align-items:flex-start;position:fixed;z-index:3;pointer-events:none;
    top:118px;bottom:28px;left:auto;right:calc(var(--gap) + 22px);width:var(--h)}
  body:not(.app-locked) .pump-scroll-head{width:var(--L);height:var(--h);flex:0 0 auto;margin-bottom:calc(var(--L) - var(--h));
    transform:translate(calc((var(--h) - var(--L)) / 2),calc((var(--L) - var(--h)) / 2)) rotate(90deg);transform-origin:50% 50%}
  body:not(.app-locked) .pump-scroll-pipe{width:9px;min-width:9px;margin-left:calc(var(--h) * .586 - 4.5px);margin-top:-1px}
}

/* ===== V2.16.0 (after the user's first try): calmer project screen ===== */
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
/* current project switcher + New in the top bar */
.top-project{display:flex;align-items:center;min-width:0;flex:0 1 360px}
.top-project .project-inline{display:flex;gap:8px;width:100%;align-items:center}
.top-project select{flex:1;min-width:0;height:42px;border-radius:999px!important;padding:0 34px 0 16px}
.top-project .btn{min-height:42px;white-space:nowrap}
body[data-view="overview"] .top-project,body[data-view="projects"] .top-project,body[data-view="tracking"] .top-project{display:none!important}
/* the four summary cards become one thin line under the steps */
#projectSummary.project-summary{display:flex!important;flex-wrap:wrap;gap:8px;margin:0 0 16px}
#projectSummary .sum-card{display:inline-flex!important;flex-direction:row!important;align-items:center;gap:8px;width:auto!important;min-height:0!important;padding:6px 14px 6px 8px!important;border-radius:999px!important}
#projectSummary .sum-card>div{display:flex;align-items:baseline;gap:6px}
#projectSummary .sum-card b{font-size:14px!important;line-height:1.2}
#projectSummary .sum-card small{font-size:12px!important}
#projectSummary .sum-ico{width:26px!important;height:26px!important;flex:0 0 26px}
#projectSummary .sum-ico i{width:14px!important;height:14px!important}
/* the project form uses the full width of the panel */
@media(min-width:761px){.details-panel{max-width:none!important}}
@media(max-width:760px){
  body:not(.app-locked) > .topbar{flex-wrap:wrap!important}
  .top-project{order:3;flex:1 1 100%;margin-top:8px}
}
/* Arrange & Export: contents of the PDF */
.arrange-section .arrange-head{gap:10px}
.arrange-pos{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:#707878;margin-left:auto}
.arrange-pos select{width:64px;height:32px;border-radius:10px;padding:0 6px;font-size:13px}
.arrange-toggle{min-width:84px}
.arrange-section.open .arrange-toggle{background:#e3f1fc;color:var(--brand)}
.arrange-empty{margin-top:10px;border:1px dashed #cfe0ec;border-radius:14px;padding:10px 14px;color:#707878;font-size:12.5px}
.arrange-empty summary{cursor:pointer;font-weight:500}
.arrange-empty div{display:flex;flex-wrap:wrap;gap:6px;margin-top:8px}
.arrange-empty span{border-radius:999px;background:rgba(255,255,255,.7);border:1px solid var(--line);padding:3px 10px;font-size:12px}
@media(max-width:760px){.arrange-pos span{display:none}.arrange-toggle{min-width:0}}
/* V2.16.0: one-click upload — the whole box is the button; choosing files uploads them at once */
.category-upload:has(.one-click){display:block!important}
.compact-file-pick.one-click{position:relative;display:flex!important;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;padding:10px 14px;
  border:1.5px dashed #9cc7ea;border-radius:14px;background:rgba(255,255,255,.6);color:var(--brand);font-weight:600;font-size:13px;cursor:pointer;text-align:center}
.compact-file-pick.one-click:hover,.compact-file-pick.one-click:focus-within{background:#eef6fd;border-color:var(--brand)}
.compact-file-pick.one-click input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}
.compact-file-pick.one-click span{display:inline-flex;align-items:center;gap:6px}
/* V2.16.0: Projects list — where it stopped + Continue */
.team-project-row .team-stop{align-self:center}
.team-project-row .team-continue{white-space:nowrap}

/* ===== V2.16.0: real dark colours (no more inverting the whole page). The old inverted rules are kept
   above as html[data-theme="dark-legacy"] (switched off). Light mode is not touched. ===== */
html[data-theme="dark"]{color-scheme:dark;
  --navy:#eef5fb;--navy2:#dce7f1;--ink:#d6e2ec;--muted:#8fa4b6;--line:rgba(255,255,255,.09);--line2:rgba(255,255,255,.14);
  --bg:#0b1622;--card:#132232;--sky:rgba(24,168,248,.12);--blue:#4aa8f0;--blue2:#3b95db;
  --glass:rgba(20,34,50,.62);--glass-strong:rgba(22,38,56,.8);--glass-line:rgba(255,255,255,.08);
  --glass-shadow:0 10px 32px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.04);
  --brand-grey:#9aabb8;background:#0b1622!important;color:var(--ink)}
html[data-theme="dark"] body{color:var(--ink)}
html[data-theme="dark"] body::before{opacity:.35}
/* surfaces */
html[data-theme="dark"] :is(.panel,.category-card,.approval-card,.arrange-section,.team-project-row,.file-row,.approval-toolbar,.library-column,.preview-panel,
  .sum-card,.stat-card,.step,.ov-card,.track-row,.brand-row,.user-row,.owner-row,.history-row,.arrange-item,.category-files>*,.chosen-row,.intake-row,.export-status,
  .submittal-box,.doc-tip,.upload-intro,.category-empty,.library-empty,.preview-placeholder,.fixed-alert,.pump-row,.link-row,.ws-chip,.arrange-empty span,.view-tabs:not(.side-list),
  .mode-switch,.login-card,.tools-dropdown,.review-section,.full-project-contents,.team-stats>*,.analysis-result,.approval-preview-pane,.drop-file){
  background:rgba(22,38,56,.72)!important;border-color:var(--line)!important;color:var(--ink)}
html[data-theme="dark"] body:not(.app-locked) > .shell{background:rgba(14,26,40,.55);border-color:var(--glass-line)}
html[data-theme="dark"] .side-nav{background:rgba(16,29,44,.85)}
html[data-theme="dark"] .topbar{background:rgba(16,29,44,.8)!important}
html[data-theme="dark"] dialog{background:#122133;color:var(--ink);border:1px solid var(--line)}
html[data-theme="dark"] dialog::backdrop{background:rgba(0,0,0,.55)}
/* text */
html[data-theme="dark"] :is(h1,h2,h3,h4,b,strong,.arrange-title,.ov-label,.ov-name b,.side-user b,.category-title b,.team-project-info strong){color:var(--navy)}
html[data-theme="dark"] :is(small,.subhead,.field-tip,.footnote,.ov-card small,.ov-name small,.side-user small,.category-title span,.file-meta,.side-group,.eyebrow,p){color:var(--muted)}
html[data-theme="dark"] .side-item{color:var(--ink)!important}
html[data-theme="dark"] .side-item[data-icon]::before{color:#8fa4b6}
html[data-theme="dark"] .side-item.active,html[data-theme="dark"] .side-item.active::before{color:#fff!important}
html[data-theme="dark"] .h1-accent{-webkit-text-fill-color:transparent}
html[data-theme="dark"] a{color:#6cb8f5}
/* form controls */
html[data-theme="dark"] :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){background-color:#0f1c2a!important;color:var(--ink)!important;border-color:var(--line2)!important}
html[data-theme="dark"] ::placeholder{color:#6f8597}
html[data-theme="dark"] .top-search input{background-color:rgba(15,28,42,.8)!important}
/* buttons, chips, badges */
html[data-theme="dark"] :is(.btn-outline,.mini,.local-pill,.icon-btn,#themeToggle){background:rgba(28,46,66,.85)!important;color:var(--ink)!important;border-color:var(--line2)!important}
html[data-theme="dark"] .mini.red,html[data-theme="dark"] .btn-danger-outline{color:#f08a84!important}
html[data-theme="dark"] .version-pill{color:#6cb8f5!important}
html[data-theme="dark"] :is(.sum-ico,.category-number,.arrange-number,.panel-symbol:not(.btn-primary),.step-number,.file-icon){background:rgba(24,168,248,.14)!important;color:#7cc4f7!important;box-shadow:none!important}
html[data-theme="dark"] .step.active .step-number{background:#fff!important;color:var(--brand)!important}
html[data-theme="dark"] .panel-symbol{background:var(--brand-grad)!important;color:#fff!important}
html[data-theme="dark"] .tab-count,html[data-theme="dark"] .ov-chip{background:rgba(24,168,248,.16);color:#8fd0fb}
html[data-theme="dark"] .side-item .tab-count{background:rgba(214,69,65,.2);color:#ff9b96}
html[data-theme="dark"] .side-item[data-view="projects"] .tab-count{background:rgba(24,168,248,.18);color:#8fd0fb}
html[data-theme="dark"] .ov-chip.ok{background:rgba(31,138,91,.2);color:#7fdcae}
html[data-theme="dark"] .ov-chip.wait{background:rgba(168,105,11,.22);color:#f3c46e}
html[data-theme="dark"] :is(.ov-chip.late,.ov-chip.bad){background:rgba(214,69,65,.2);color:#ff9b96}
html[data-theme="dark"] .compact-file-pick.one-click{background:rgba(24,168,248,.06);border-color:rgba(124,196,247,.4);color:#8fd0fb}
html[data-theme="dark"] .compact-file-pick.one-click:hover{background:rgba(24,168,248,.12)}
html[data-theme="dark"] .arrange-empty{border-color:var(--line2)}
html[data-theme="dark"] .section-off{opacity:.6}
/* images and drawings: original colours; logos keep a light box so they stay readable */
html[data-theme="dark"] .site-footer::before{opacity:.28}
html[data-theme="dark"] .site-footer{color:#6f8597}
html[data-theme="dark"] .pump-scroll-pipe{background:rgba(255,255,255,.06)}
html[data-theme="dark"] .pump-strip{background:#10202e}
html[data-theme="dark"] .pump-strip-pipe{background:#0b1e2e}
html[data-theme="dark"] :is(.brand-box img,.brand-preview img,.brand-logo){background:#fff}
/* dark: second pass (found by scanning every step and dialog) */
html[data-theme="dark"] :is(label,summary,td,th,li,.intake-filter,.brand-product,.checkbox-row){color:var(--ink)}
html[data-theme="dark"] :is(dialog,.panel,.category-card) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]),select,textarea){background-color:#0f1c2a!important;color:var(--ink)!important;border-color:var(--line2)!important}
html[data-theme="dark"] input[type=checkbox]{accent-color:#18a8f8}
html[data-theme="dark"] input.checkbox{background-color:#0f1c2a!important;border-color:#5f7a90!important}
html[data-theme="dark"] input.checkbox:checked{background-color:var(--brand)!important;border-color:var(--brand)!important}
html[data-theme="dark"] input[type=file]{background-color:#0f1c2a;color:var(--ink);border-color:var(--line2)}
html[data-theme="dark"] :is(.field-tip,.tip-folded,.pump-note,.approval-review-note,.project-save-summary,.arrange-files,.pq-bar,.folder-main.open,.team-project-counts span,
  .count-chip,.doc-tag,.folder-n,.source-label,.big-icon,.storage-warning,.intake-error){background:rgba(24,40,58,.8)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] .doc-tag.missing,html[data-theme="dark"] .intake-error{background:rgba(214,69,65,.18)!important;color:#ff9b96!important}
html[data-theme="dark"] :is(.soon-badge,.soon-badge.big){background:rgba(168,105,11,.25)!important;color:#f3c46e!important;border-color:transparent!important}
html[data-theme="dark"] .btn-danger-outline{background:rgba(214,69,65,.12)!important;border-color:rgba(214,69,65,.45)!important}
html[data-theme="dark"] :is(.tip-more,.approval-column-heading,.history-row i,dialog i){color:#8fd0fb!important}
html[data-theme="dark"] .big-icon,html[data-theme="dark"] .pq-bar b{color:#8fd0fb!important}
html[data-theme="dark"] .project-history summary,html[data-theme="dark"] .project-save-summary span{color:var(--ink)!important}
html[data-theme="dark"] :is(.project-save-stats span,.full-project-summary span){background:rgba(24,40,58,.8)!important;border-color:var(--line)!important;color:var(--ink)!important}
html[data-theme="dark"] :is(.review-file span,.folder-main span,.brand-form span){color:var(--ink)!important}
html[data-theme="dark"] .login-shell{background:linear-gradient(145deg,#0b1622,#0f1e2e)!important}
html[data-theme="dark"] .login-card{background:rgba(18,33,51,.92)!important;box-shadow:0 20px 50px rgba(0,0,0,.45)!important}
/* V2.16.2: Fixed Files dialog — Technical Submittal | PQD (the dialog opens from any view) */
#fixedPkgSwitch{display:flex!important;justify-content:flex-start;margin:6px 0 4px}

/* ===== V2.17.0: Analytics page (own SVG + CSS, no chart library). Motion = transform + opacity only. ===== */
#analyticsView{display:none}
body[data-view="analytics"] #analyticsView{display:block}
body[data-view="analytics"] :is(.workspace-header,.stepper,.step-view,#emptyState,#projectSummary,#teamProjects,#modeSwitch,.top-project){display:none!important}
[data-icon="chart-column"]{--ic:url("/static/icons/chart-column.svg")}
.analytics-view{transition:opacity .25s ease}
.analytics-view.an-busy{opacity:.55}
.an-filters{display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding:12px 14px!important;margin-bottom:18px}
.an-filters select{width:auto;min-width:150px;flex:0 1 190px;border-radius:999px;padding:8px 14px}
.an-seg{display:inline-flex;gap:2px;background:#eef3f8;border-radius:999px;padding:3px}
.an-seg button{border:0;background:none;border-radius:999px;padding:7px 14px;font-size:13px;font-weight:600;color:#4f6a7f;transition:background-color .15s,color .15s}
.an-seg button.active{background:#fff;color:var(--brand);box-shadow:0 1px 4px rgba(14,47,77,.12)}
.an-dates{display:inline-flex;align-items:center;gap:6px}
.an-dates input{border:1px solid var(--line2);border-radius:999px;padding:7px 12px;font-size:13px;color:var(--ink);background:#fff}
.an-cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin-bottom:18px}
.an-card{cursor:pointer}
.an-card:not([data-an-list]){cursor:default}
.an-row{display:grid;gap:16px;margin-bottom:16px}
.an-row-a{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.an-row-b{grid-template-columns:minmax(0,1.6fr) minmax(0,1fr)}
.an-row-c{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.an-panel{padding:20px 22px!important;min-width:0}
.an-panel h2{margin:0;font-size:17px;color:var(--navy)}
.an-note{margin:2px 0 14px;font-size:12.5px;color:#707878}
.an-empty{color:var(--muted);font-size:13px;padding:22px 0;text-align:center;margin:0}
.an-head{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap}
.an-legend{display:flex;gap:14px;font-size:12px;color:#5b7488;align-items:center}
.an-legend span::before{content:"";display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:6px;vertical-align:-1px}
.an-legend .k1::before{background:#0a6fd0}.an-legend .k2::before{background:#7cc8f8}
/* horizontal bars */
.an-hbars{display:flex;flex-direction:column;gap:4px}
.an-hbar{display:grid;grid-template-columns:minmax(90px,170px) minmax(0,1fr) 40px;align-items:center;gap:12px;border:0;background:none;padding:6px 6px;border-radius:10px;font:inherit;color:var(--ink);text-align:left;cursor:pointer}
.an-hbar:hover{background:rgba(0,96,192,.06)}
.an-hname{font-size:13px;font-weight:500;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.an-hbar b{font-size:13px;text-align:right;color:var(--navy)}
.an-track{height:12px;border-radius:999px;background:#eef3f8;overflow:hidden}
.an-fill{display:block;height:100%;border-radius:999px;background:var(--brand-grad);transform-origin:left center;transition:transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--i,0)*60ms)}
.an-hbar.muted .an-fill{background:#b5c3cf}
.an-pre .an-fill{transform:scaleX(0);transition:none}
/* donut */
.an-donut{display:flex;align-items:center;gap:18px;flex-wrap:wrap}
.an-ring{width:170px;height:170px;flex:0 0 170px;transition:transform .7s cubic-bezier(.2,.7,.2,1),opacity .5s;transform-origin:50% 50%}
.an-pre .an-ring{transform:rotate(-40deg) scale(.9);opacity:0;transition:none}
.an-seg-arc{cursor:pointer;transition:opacity .45s ease calc(var(--i,0)*90ms + .15s)}
.an-seg-arc:hover{opacity:.8}
.an-pre .an-seg-arc{opacity:0;transition:none}
.an-ring-n{font-size:26px;font-weight:700;fill:var(--navy)}
.an-ring-l{font-size:11px;fill:#707878}
.an-keys{display:flex;flex-direction:column;gap:2px;flex:1;min-width:150px}
.an-keys button{display:flex;align-items:center;gap:8px;border:0;background:none;border-radius:8px;padding:5px 6px;font:inherit;font-size:13px;color:var(--ink);text-align:left;cursor:pointer}
.an-keys button:hover{background:rgba(0,96,192,.06)}
.an-keys i{width:10px;height:10px;border-radius:50%;flex:0 0 10px}
.an-keys span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.an-keys b{color:var(--navy)}
/* monthly paired columns */
.an-cols{display:flex;align-items:flex-end;gap:10px;height:230px;padding-top:6px;border-bottom:1px solid var(--line)}
.an-col{flex:1;min-width:0;height:100%;display:flex;flex-direction:column;align-items:center}
.an-col>span{font-size:11.5px;color:#707878;padding:6px 0 0;white-space:nowrap;transform:translateY(100%);margin-top:-2px}
.an-pair{flex:1;width:100%;display:flex;align-items:flex-end;justify-content:center;gap:4px}
.an-bar{width:min(26px,42%);min-height:2px;border:0;padding:0;border-radius:6px 6px 2px 2px;cursor:pointer;transform-origin:50% 100%;
  transition:transform .6s cubic-bezier(.2,.7,.2,1) calc(var(--i,0)*70ms),opacity .2s}
.an-bar.k1{background:linear-gradient(180deg,#18a8f8,#0060c0)}
.an-bar.k2{background:#7cc8f8}
.an-bar:hover{opacity:.82}
.an-pre .an-bar{transform:scale(1,0);transition:none}
.an-cols.dense .an-col>span{font-size:9.5px}
.an-cols+*{margin-top:24px}
#anMonthly{margin-bottom:22px}
/* tables */
.an-table{display:flex;flex-direction:column}
.an-tr{display:grid;grid-template-columns:minmax(0,1fr) 80px 90px;gap:10px;align-items:center;border:0;border-top:1px solid var(--line);background:none;font:inherit;font-size:13px;color:var(--ink);text-align:left;padding:10px 4px;cursor:pointer;
  transition:transform .4s ease calc(var(--i,0)*40ms),opacity .4s ease calc(var(--i,0)*40ms)}
.an-tr.rev{grid-template-columns:minmax(0,1fr) 70px 85px 80px}
.an-tr span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.an-tr b{text-align:right;color:var(--navy);font-weight:600}
button.an-tr:hover{background:rgba(0,96,192,.05)}
.an-th{cursor:default;border-top:0;font-size:11px;font-weight:600;letter-spacing:.6px;text-transform:uppercase;color:#7d93a5;padding-top:12px}
.an-th span:not(:first-child){text-align:right}
.an-pre button.an-tr{opacity:0;transform:translateY(6px);transition:none}
.an-pre .an-card{opacity:0;transform:translateY(8px)}
.an-cards .an-card{transition:transform .45s ease,opacity .45s ease}
/* tooltip + project list */
.an-tip{position:fixed;left:0;top:0;z-index:90;pointer-events:none;background:#0e2f4d;color:#fff;font-size:12px;font-weight:500;padding:7px 10px;border-radius:8px;box-shadow:0 8px 20px rgba(0,0,0,.18);max-width:300px;will-change:transform}
.an-plist{display:flex;flex-direction:column;max-height:60vh;overflow:auto}
.an-prow{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid var(--line);padding:10px 2px}
.an-prow span{display:flex;flex-direction:column;min-width:0}
.an-prow b{font-size:13.5px;color:var(--navy)}
.an-prow small{font-size:11.5px;color:#707878;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(prefers-reduced-motion:reduce){
  .analytics-view,.an-fill,.an-ring,.an-seg-arc,.an-bar,.an-tr,.an-cards .an-card{transition:none!important}
}
@media(max-width:1050px){.an-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.an-row-a,.an-row-b{grid-template-columns:1fr}}
@media(max-width:760px){
  .an-cards{grid-template-columns:1fr;gap:10px}
  .an-row,.an-row-a,.an-row-b,.an-row-c{grid-template-columns:1fr}
  .an-filters select{flex:1 1 100%}
  .an-seg{width:100%;justify-content:space-between}.an-seg button{padding:7px 8px;font-size:12px}
  .an-hbar{grid-template-columns:minmax(70px,110px) minmax(0,1fr) 34px;gap:8px}
  .an-cols{gap:4px;height:190px}
  .an-tr,.an-tr.rev{grid-template-columns:minmax(0,1fr) 56px 66px;font-size:12px}
  .an-tr.rev>:nth-child(4){display:none}
  .an-ring{width:140px;height:140px;flex-basis:140px}
}
/* dark */
html[data-theme="dark"] .an-seg{background:rgba(15,28,42,.8)}
html[data-theme="dark"] .an-seg button{color:var(--muted)}
html[data-theme="dark"] .an-seg button.active{background:rgba(40,62,86,.95);color:#8fd0fb}
html[data-theme="dark"] .an-dates input{background:#0f1c2a;color:var(--ink);border-color:var(--line2)}
html[data-theme="dark"] .an-track{background:rgba(255,255,255,.07)}
html[data-theme="dark"] .an-hbar.muted .an-fill{background:#4f6476}
html[data-theme="dark"] .an-bar.k2{background:#3f8fc9}
html[data-theme="dark"] .an-legend .k2::before{background:#3f8fc9}
html[data-theme="dark"] .an-ring circle[stroke="#9aabb8"]{stroke:#4f6476}
html[data-theme="dark"] :is(.an-note,.an-col>span,.an-prow small,.an-legend){color:var(--muted)}
html[data-theme="dark"] .an-ring-l{fill:var(--muted)}
html[data-theme="dark"] :is(.an-hbar:hover,.an-keys button:hover,button.an-tr:hover){background:rgba(24,168,248,.08)}
html[data-theme="dark"] .an-tip{background:#e8f1f8;color:#0e2f4d}

/* ===== V2.17.1: Overview = "what should I do today?" (one screen at 1440×900). Motion = transform + opacity only. ===== */
#overviewView .ov-head{margin-bottom:14px}
#overviewView .ov-head h1{font-size:30px}
.ov-chips{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.ov-pill{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:5px 12px;font-size:12.5px;color:#4f6a7f;background:rgba(255,255,255,.7);border:1px solid var(--line)}
.ov-pill b{color:var(--navy);font-size:13.5px}
.ov-link{border:0;background:none;padding:0;font:inherit;font-size:12.5px;font-weight:600;color:var(--brand);cursor:pointer;white-space:nowrap}
.ov-link:hover{text-decoration:underline}
.ov-sec{padding:16px 20px!important;margin-bottom:14px}
.ov-sec-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.ov-sec-head h2{margin:0;font-size:16px;color:var(--navy)}
.ov-empty{margin:4px 0;color:var(--muted);font-size:13px}
/* brands */
.ov-brand-list{display:flex;gap:10px;overflow-x:auto;padding:2px 2px 4px;scrollbar-width:thin}
.ov-brand{flex:0 0 auto;display:flex;align-items:center;gap:10px;min-width:150px;border:1px solid var(--line);background:#fff;border-radius:14px;padding:8px 14px 8px 8px;
  font:inherit;font-size:13px;font-weight:600;color:var(--navy);cursor:pointer;transition:transform .18s ease,box-shadow .18s ease}
.ov-brand:hover{transform:translateY(-2px);box-shadow:0 6px 16px rgba(14,47,77,.08)}
.ov-logo{flex:0 0 44px;width:44px;height:44px;border-radius:12px;background:#fff;border:1px solid var(--line);display:grid;place-items:center;overflow:hidden}
.ov-logo img{max-width:86%;max-height:70%;object-fit:contain}
.ov-logo i{font-style:normal;font-weight:700;font-size:13px;color:var(--brand)}
.ov-logo.sm{flex-basis:32px;width:32px;height:32px;border-radius:9px}.ov-logo.sm i{font-size:11px}
/* continue your work */
.ov-plist{display:flex;flex-direction:column}
.ov-prow{display:flex;align-items:center;gap:12px;border-top:1px solid var(--line);padding:10px 4px;transition:transform .18s ease}
.ov-prow:first-child{border-top:0}
.ov-prow:hover{transform:translateY(-2px)}
.ov-star{flex:0 0 auto;width:28px;height:28px;border:0;border-radius:8px;background:none;color:#b9c7d3;cursor:pointer;padding:0;display:grid;place-items:center;transition:transform .15s}
.ov-star::before{content:"";width:17px;height:17px;background:currentColor;-webkit-mask:url("/static/icons/pin.svg") center/contain no-repeat;mask:url("/static/icons/pin.svg") center/contain no-repeat;transform:rotate(35deg)}
.ov-star:hover{transform:scale(1.12);color:#7d93a5}
.ov-star.on{color:var(--brand)}
.ov-star.on::before{transform:none}
.ov-pname{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.ov-pname b{font-size:14.5px;color:var(--navy);overflow-wrap:anywhere}
.ov-pname small,.ov-itext small{font-size:12px;color:#707878}
.ov-steps{display:flex;flex-direction:column;align-items:center;gap:4px;flex:0 0 auto}
.ov-steps small{font-size:11.5px;color:#5b7488}
.ov-dots{display:flex;align-items:center}
.ov-dot{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;font-size:11px;font-weight:700;color:#7d93a5;background:#eef3f8;border:1.5px solid transparent}
.ov-dot.done{background:#e2f4ea;color:#1f8a5b}
.ov-dot.current{background:#fff;border-color:var(--brand);color:var(--brand);box-shadow:0 0 0 3px rgba(0,96,192,.12)}
.ov-dline{display:block;width:10px;height:2px;background:#dbe6ee}
.ov-go{flex:0 0 auto;min-width:112px}
/* bottom cards */
.ov-bottom{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ov-bottom[data-cols="2"]{grid-template-columns:repeat(2,minmax(0,1fr))}
.ov-bottom[data-cols="1"]{grid-template-columns:1fr}
.ov-bottom .ov-sec{margin-bottom:0;min-width:0}
.ov-items{display:flex;flex-direction:column}
.ov-item{display:flex;align-items:center;gap:10px;border-top:1px solid var(--line);padding:8px 2px}
.ov-item:first-child{border-top:0}
.ov-itext{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}
.ov-itext b{font-size:13px;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:600}
.ov-act{font-size:13px;color:var(--ink);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ov-act b{font-weight:600}
.ov-eye{display:inline-grid;place-items:center;text-decoration:none}
.ov-prefs{display:flex;flex-direction:column;gap:10px}
@keyframes ovIn{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
.ov-sec.ov-in{animation:ovIn .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0)*70ms)}
@media(prefers-reduced-motion:reduce){.ov-sec.ov-in{animation:none}.ov-prow,.ov-brand,.ov-star{transition:none}.ov-prow:hover,.ov-brand:hover{transform:none}}
@media(max-width:1050px){.ov-bottom,.ov-bottom[data-cols="3"]{grid-template-columns:1fr 1fr}}
@media(max-width:760px){
  #overviewView .ov-head h1{font-size:24px}
  .ov-bottom,.ov-bottom[data-cols]{grid-template-columns:1fr}
  .ov-prow{flex-wrap:wrap;gap:8px 10px}
  .ov-pname{flex:1 1 calc(100% - 110px)}
  .ov-steps{order:4;flex:1 1 auto;align-items:flex-start}
  .ov-go{order:5;min-width:0}
  .ov-dot{width:19px;height:19px;font-size:9.5px}.ov-dline{width:6px}
  .ov-brand{min-width:0}
}
/* dark */
html[data-theme="dark"] :is(.ov-pill,.ov-brand){background:rgba(22,38,56,.72);border-color:var(--line);color:var(--ink)}
html[data-theme="dark"] .ov-pill b,html[data-theme="dark"] .ov-brand span{color:var(--navy)}
html[data-theme="dark"] .ov-logo{border-color:var(--line)}
html[data-theme="dark"] .ov-logo:not(:has(img)){background:rgba(24,168,248,.12)}
html[data-theme="dark"] .ov-logo i{color:#8fd0fb}
html[data-theme="dark"] .ov-dot{background:rgba(255,255,255,.06);color:var(--muted)}
html[data-theme="dark"] .ov-dot.done{background:rgba(31,138,91,.22);color:#7fdcae}
html[data-theme="dark"] .ov-dot.current{background:transparent;border-color:#4aa8f0;color:#8fd0fb}
html[data-theme="dark"] .ov-dline{background:rgba(255,255,255,.1)}
html[data-theme="dark"] .ov-link{color:#6cb8f5}
html[data-theme="dark"] .ov-star{color:#5f7a90}html[data-theme="dark"] .ov-star.on{color:#6cb8f5}
html[data-theme="dark"] :is(.ov-act,.ov-steps small){color:var(--ink)}
/* V2.17.1 (user): the 4 summary cards are back at the top, smaller (the brand row was removed) */
.ov-cards.ov-cards-sm{gap:12px;margin-bottom:14px}
.ov-cards-sm .ov-card{flex-direction:row;align-items:center;gap:12px;padding:12px 14px;border-radius:16px}
.ov-cards-sm .ov-card .sum-ico{margin-bottom:0;flex:0 0 auto}
.ov-cards-sm .ov-card b{font-size:22px;min-width:26px}
.ov-cards-sm .ov-card .ov-label{font-size:13px;line-height:1.25}
.ov-cards-sm .ov-card small{display:none}
.ov-cards-sm .ov-card .ov-chip{top:8px;right:10px;font-size:10.5px;padding:2px 8px}
@media(max-width:760px){.ov-cards.ov-cards-sm{grid-template-columns:1fr 1fr;gap:8px}.ov-cards-sm .ov-card{padding:10px}.ov-cards-sm .ov-card b{font-size:20px}.ov-cards-sm .ov-card .ov-chip{position:absolute;top:5px;right:6px}.ov-cards-sm .ov-card:has(.ov-chip){padding-top:24px}}   /* V2.18.4: room above the words for "n late" */
.ov-dot.soon{background:#fffaf0;border:1.5px dashed #e0a030;color:#c58a1c;opacity:.75}   /* V2.17.1: Compliance "Coming soon" */
html[data-theme="dark"] .ov-dot.soon{background:rgba(168,105,11,.12);border-color:#c58a1c;color:#f3c46e}


/* V2.17.2: My devices (Password window) + Admin device limit */
.devices-box{border-top:1px solid var(--line);padding-top:14px}
.devices-box h3{margin:0 0 4px}
.devices-list{margin:8px 0 10px;max-height:260px}
.device-row .count-chip{margin-left:6px;vertical-align:middle}
.device-limit{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 10px}
.device-limit label{display:flex;flex-direction:row;align-items:center;gap:8px;font-size:13px;margin:0}
.device-limit input{width:64px;padding:6px 8px}
.device-limit-note{flex-basis:100%;color:var(--muted,#71889c);font-size:11px}
#usersDialog #usersList{flex-shrink:0}   /* the limit row must never squeeze the users list to nothing */
@media(max-width:760px){.device-limit label{flex:1}}

/* V2.17.3: email classification warning + Consultants table with the Approvals column */
.email-check{display:block;color:#9a5b00;font-size:11px;font-weight:650}
html[data-theme="dark"] .email-check{color:#f0b45a}
@media(max-width:760px){.an-tr.rev.cons{grid-template-columns:minmax(0,1fr) 48px 58px 58px}.an-tr.rev.cons>:nth-child(4){display:block}}

/* V2.17.5: PDF size (Standard / Compressed) next to Generate and Export PQD */
html[data-theme="dark"] :is(.pdf-size,.export-size){color:var(--ink)}
@media(max-width:760px){.bqd-foot .pdf-size{flex:1 1 100%}}

/* ===== V2.18.1: My Account + Users pages (inside the V2.16 layout; nothing else changes) ===== */
#accountView,#usersView{display:none}
body[data-view="account"] #accountView,body[data-view="users"] #usersView{display:block}
body:is([data-view="account"],[data-view="users"]) :is(.workspace-header,.stepper,.step-view,#emptyState,#projectSummary,#teamProjects,#modeSwitch,.top-project,#trackingView){display:none!important}
.side-user[role="button"]{cursor:pointer;border-radius:14px}
.side-user[role="button"]:hover,.side-user.active{background:rgba(0,96,192,.07)}
.side-user:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.acc-head{display:flex;align-items:center;gap:18px;margin-bottom:22px}
.acc-avatar{flex:0 0 64px;height:64px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:700;font-size:22px;background:var(--brand-grad)}
.acc-avatar.sm{flex-basis:44px;height:44px;font-size:15px}
.acc-head h1{font-size:30px;font-weight:700;letter-spacing:-.5px;color:var(--navy);margin:0 0 4px;line-height:1.15;overflow-wrap:anywhere}
.acc-head p{margin:0;color:#5b7488;font-size:13.5px}
.acc-role{display:inline-block;border-radius:999px;padding:3px 10px;font-size:11.5px;font-weight:600;background:#e3f1fc;color:var(--brand);margin-right:6px}
.acc-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px;align-items:start}
.acc-grid .panel{margin-bottom:16px}
.acc-grid .panel h2,.acc-grid .panel h3{font-size:17px;font-weight:700;color:var(--navy);margin:0 0 14px}
.acc-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.acc-stat{border:1px solid var(--line);border-radius:16px;padding:14px 16px;background:rgba(255,255,255,.5);min-width:0}
.acc-stat b{display:block;font-size:28px;font-weight:700;color:var(--navy);line-height:1.1}
.acc-stat span{display:block;font-size:13px;font-weight:600;color:var(--navy);margin-top:2px}
.acc-stat small{display:block;font-size:11.5px;color:#707878;margin-top:4px}
.acc-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid var(--line);padding:11px 2px}
.acc-row:first-child,h2+.acc-row{border-top:0}
.acc-row>div{min-width:0}
.acc-row b{font-size:13.5px;color:var(--navy);overflow-wrap:anywhere}.acc-row small{display:block;font-size:12px;color:#707878;margin-top:2px}
.acc-form{display:flex;flex-direction:column;gap:10px;padding:0}
.acc-note{font-size:11.5px;color:#707878}
.devices-box{margin-top:20px}
.devices-box .field-tip{margin-bottom:8px}
#signOutOthers{margin-top:10px}
.us-sum{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px}
.us-pill{border:1px solid var(--line);border-radius:999px;padding:8px 14px;font-size:13px;color:#5b7488;background:var(--glass-strong)}
.us-pill b{color:var(--navy);font-size:15px;margin-right:4px}
.us-bar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;padding:12px 14px!important;margin-bottom:16px}
.us-bar input{flex:1 1 240px;min-width:0;border-radius:999px;border:1px solid var(--line);padding:9px 16px;font-size:13.5px;background:rgba(255,255,255,.75);color:var(--ink)}
.us-bar select{width:auto;min-width:150px;flex:0 1 190px;border-radius:999px;padding:8px 14px}
.us-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:16px}
.us-card{display:flex;flex-direction:column;gap:12px;text-align:left;font:inherit;color:var(--ink);cursor:pointer;background:rgba(255,255,255,.66);border:1px solid var(--glass-line);border-radius:20px;padding:18px;box-shadow:var(--glass-shadow);min-width:0;transition:transform .18s ease}
.us-card:hover{transform:translateY(-2px)}
.us-card.off{opacity:.7}
.us-top{display:flex;align-items:center;gap:12px;min-width:0}
.us-who{min-width:0;flex:1}.us-who b{display:block;font-size:15px;color:var(--navy);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.us-who small{font-size:12px;color:#707878}
.us-meta{display:flex;justify-content:space-between;gap:8px;font-size:12px;color:#5b7488;border-top:1px solid var(--line);padding-top:10px}
.us-meta b{display:block;color:var(--navy);font-size:13px}
.us-chip{flex:0 0 auto;border-radius:999px;padding:3px 10px;font-size:11.5px;font-weight:600}
.st-on{background:#e2f4ea;color:#1f8a5b}.st-off{background:#fde8e6;color:#b23b36}
.st-text-on{color:#1f8a5b}.st-text-off{color:#b23b36}
.us-admin{display:flex;flex-wrap:wrap;gap:8px;max-height:none}
.us-create{margin-bottom:16px}
.users-view .device-limit{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.users-view .device-limit.hidden{display:none}
.users-view .device-limit label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:700;color:#35556d}
.users-view .device-limit input{width:120px}
.users-view .device-limit-note{flex-basis:100%;font-size:11.5px;color:#707878}
@media(max-width:1100px){.acc-grid{grid-template-columns:1fr}.us-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){
  .acc-head h1{font-size:24px}.acc-avatar{flex-basis:52px;height:52px;font-size:18px}
  .acc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .us-grid{grid-template-columns:1fr}
  .us-bar select{flex:1 1 100%}
  .acc-row{flex-wrap:wrap}
}
@media(prefers-reduced-motion:reduce){.us-card{transition:none}.us-card:hover{transform:none}}
html[data-theme="dark"] :is(.acc-stat,.us-card){background:rgba(22,38,56,.6);border-color:var(--line)}
html[data-theme="dark"] .us-pill{color:var(--muted)}
html[data-theme="dark"] .us-bar input{background:rgba(255,255,255,.05);border-color:var(--line2)}
html[data-theme="dark"] :is(.acc-head p,.us-meta,.acc-stat small,.acc-row small,.us-who small,.acc-note,.users-view .device-limit-note){color:var(--muted)}
html[data-theme="dark"] .acc-role{background:rgba(24,168,248,.14);color:#7cc4ff}
html[data-theme="dark"] .users-view .device-limit label{color:var(--muted)}
html[data-theme="dark"] .st-on{background:rgba(31,138,91,.2);color:#6fd3a0}
html[data-theme="dark"] .st-off{background:rgba(178,59,54,.2);color:#f08a84}
html[data-theme="dark"] .st-text-on{color:#6fd3a0}html[data-theme="dark"] .st-text-off{color:#f08a84}
html[data-theme="dark"] .side-user[role="button"]:hover,html[data-theme="dark"] .side-user.active{background:rgba(255,255,255,.06)}
.acc-form label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#35556d;font-weight:700}
.acc-form input{outline:none;border:1px solid #cfdee9;background:#fff;border-radius:9px;padding:10px 12px;color:var(--ink);width:100%;font-size:13px}
.acc-form input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #007ccf13}
.acc-head p .st-text-on{color:#1f8a5b}.acc-head p .st-text-off{color:#b23b36}
html[data-theme="dark"] .acc-form label{color:var(--muted)}
html[data-theme="dark"] .acc-form input{background:rgba(255,255,255,.05);border-color:var(--line2);color:var(--ink)}
html[data-theme="dark"] .acc-head p .st-text-on{color:#6fd3a0}html[data-theme="dark"] .acc-head p .st-text-off{color:#f08a84}
.users-view .device-limit input{outline:none;border:1px solid #cfdee9;background:#fff;border-radius:9px;padding:9px 12px;color:var(--ink);font-size:13px}
html[data-theme="dark"] .users-view .device-limit input{background:rgba(255,255,255,.05);border-color:var(--line2)}
.acc-numbers{margin-bottom:16px}
.acc-grid-even{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1100px){.acc-grid-even{grid-template-columns:1fr}}

/* ===== V2.18.2: one page head for every page and window (icon square + path + title + short line).
   Company blue only; no coloured line on top; the glass look stays. Look only: same buttons. ===== */
.page-head{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:16px!important;flex-wrap:nowrap}
.page-head>.h-actions,.page-head>.ws-side,.page-head>.close-dialog{margin-left:auto;flex-shrink:0}
.page-head>.ph-text,.page-head>.ws-title{min-width:0;flex:0 1 auto}
.ph-icon{flex:0 0 54px!important;width:54px;height:54px!important;border-radius:16px!important;display:grid;place-items:center;
  background:var(--brand-grad)!important;color:#fff;box-shadow:0 10px 22px rgba(0,96,192,.22),inset 0 1px 0 rgba(255,255,255,.35)}
.ph-icon[data-icon]::before{width:26px;height:26px;margin:0;color:#fff}
.ph-icon.ph-avatar{font-size:19px}
.ph-crumb{display:flex;flex-wrap:wrap;align-items:center;gap:0;margin:0 0 5px!important;font-size:11px!important;font-weight:600;
  letter-spacing:1.6px!important;text-transform:uppercase!important;color:#6f8aa0;line-height:1.4}
.ph-crumb .ph-part+.ph-part::before{content:"›";margin:0 8px;color:#9fb3c3;letter-spacing:0}
.ph-crumb .ph-part:last-child{color:var(--brand)}
.ph-crumb .crumb-link{text-decoration:none;font:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;border-radius:4px}
.ph-crumb .crumb-link:hover,.ph-crumb .crumb-link:focus-visible{color:var(--brand);text-decoration:underline;text-underline-offset:3px}
.page-head .ph-title{color:var(--brand)!important;-webkit-text-fill-color:currentColor}
.page-head .ph-title .h1-accent{-webkit-text-fill-color:currentColor;background:none;color:inherit}
.team-projects-head.page-head .ph-title{font-size:24px!important;font-weight:700;letter-spacing:-.4px;margin:0 0 4px}
.page-head .ph-sub{margin:2px 0 0;font-size:13px;color:#5b7488;font-weight:400}
/* windows: the same head, a bit smaller */
.dialog-header.ph-window{align-items:center!important;margin-bottom:10px}
.dialog-header.ph-window .ph-icon{flex-basis:44px!important;width:44px;height:44px!important;border-radius:13px!important}
.dialog-header.ph-window .ph-icon[data-icon]::before{width:21px;height:21px}
.dialog-header.ph-window .ph-title{font-size:20px!important;margin:0}
/* Fixed Files and Brands pages (were windows) */
.page-view{display:none}
body[data-view="fixed"] #fixedView,body[data-view="brands"] #brandsView{display:block}
body:is([data-view="fixed"],[data-view="brands"]) :is(.workspace-header,.stepper,.step-view,#emptyState,#projectSummary,#teamProjects,#modeSwitch,.top-project,#trackingView){display:none!important}
.page-view>.page-head{margin-bottom:18px}
.page-view .page-body{padding:22px 24px}
.page-view .page-body.dialog-inner{max-height:none;overflow:visible}
#sideLibraryGroup.hidden{display:none}
/* project steps: bigger; done = ✓, current = lit, next = faded (same buttons, same order) */
@media(min-width:761px){
  .stepper .step{padding:11px 14px 11px 11px!important;min-height:64px}
  .stepper .step .step-number{width:36px!important;height:36px!important;flex:0 0 36px;font-size:13px!important}
  .stepper .step b{font-size:14px!important}
  .stepper .step small{font-size:11.5px!important}
}
.stepper .step:not(.active):not(.done){opacity:.62}
.stepper .step:not(.active):not(.done):hover{opacity:.9}
.stepper .step.done .step-number{background:#e3f0fb!important;color:var(--brand)!important;font-size:0!important}
.stepper .step.done .step-number::before{content:"✓";font-size:16px;font-weight:800}
.stepper .step.active{box-shadow:0 12px 26px rgba(0,96,192,.28)!important}
/* "Soon" on step 02: on its own line under the title, so it never runs over step 03; long titles wrap inside their card */
.stepper .step{min-width:0}
.stepper .step>span:last-child{min-width:0}
.stepper .step b{white-space:normal!important;line-height:1.25}
.stepper .step .soon-badge{display:block;width:max-content;margin:4px 0 0;padding:1px 7px;font-size:9px}
.stepper .step small{display:none!important}   /* the small line under each step title: hidden (user decision) */
/* dark mode */
html[data-theme="dark"] .ph-crumb{color:#8fa4b6}
html[data-theme="dark"] .ph-crumb .ph-part+.ph-part::before{color:#5d7488}
html[data-theme="dark"] :is(.ph-crumb .ph-part:last-child,.ph-crumb .crumb-link:hover,.page-head .ph-title){color:#5cb6ff!important}
html[data-theme="dark"] .page-head .ph-sub{color:var(--muted)}
html[data-theme="dark"] .stepper .step.done .step-number{background:rgba(24,168,248,.16)!important;color:#5cb6ff!important}
/* phones (≤760px): smaller head, shorter path (last two parts); the laptop look is not changed */
@media(max-width:760px){
  .page-head{gap:12px!important;flex-wrap:wrap;flex-direction:row!important}
  .page-head>.ph-text,.page-head>.ws-title{flex:1 1 0}
  .page-head>.h-actions,.page-head>.ws-side{margin-left:0;flex-basis:100%}
  .dialog-header.ph-window{flex-wrap:nowrap}
  .dialog-header.ph-window>.close-dialog{margin-left:auto}
  .ph-icon{flex-basis:40px!important;width:40px;height:40px!important;border-radius:12px!important}
  .ph-icon[data-icon]::before{width:20px;height:20px}
  .ph-icon.ph-avatar{font-size:15px}
  .ph-crumb{font-size:9.5px!important;letter-spacing:1.1px!important}
  .ph-crumb .ph-part:not(:nth-last-child(-n+2)){display:none}
  .ph-crumb .ph-part:nth-last-child(2)::before{content:none}
  .page-head .ph-title{font-size:22px!important}
  .team-projects-head.page-head .ph-title{font-size:19px!important}
}
/* V2.18.2: step 01 folding sections (closed = title + status only) */
.fold.is-closed>:not(.fold-head){display:none!important}
.fold-head{cursor:pointer;user-select:none;display:flex;align-items:center;gap:10px;border-radius:10px}
#ownerPanel>.fold-head{display:flex}
.fold-head:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.fold-head>.fold-chev+*{flex:1 1 auto;min-width:0}
.fold-chev{flex:0 0 22px;width:22px;height:22px;border-radius:7px;display:grid;place-items:center;background:#e3f0fb;color:var(--brand);transition:transform .18s}
.fold-chev::before{content:"›";font-size:17px;font-weight:800;line-height:1;margin-top:-2px}
.fold:not(.is-closed) .fold-chev{transform:rotate(90deg)}
.fold.is-closed{padding-bottom:14px}
.fold.is-closed .fold-head{margin-bottom:0}
html[data-theme="dark"] .fold-chev{background:rgba(24,168,248,.16);color:#5cb6ff}

/* V2.18.3 (user): Projects rows — Delete is the bin icon only; the status sits next to the buttons */
.team-project-row .team-delete{padding:8px 10px;min-width:36px}
.team-project-row .team-delete::before{width:16px;height:16px}

/* ===== V2.18.5: "Saved ✓" badge, the bell + "PDF ready" notice, the welcome tour (added only) ===== */
.save-state{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border-radius:20px;font-size:11px;font-weight:600;border:1px solid transparent;white-space:nowrap}
.save-state.is-saving{color:#0060c0;background:#e8f3fc;border-color:#cfe3f6}
.save-state.is-saved{color:#21845b;background:#e9f6ef;border-color:#cfe9db}
.save-state.is-failed{color:#b3362f;background:#fdeeed;border-color:#f3cfcc}
.save-spin{display:none;width:11px;height:11px;border-radius:50%;border:2px solid #b9d6f2;border-top-color:#0060c0;animation:saveSpin .8s linear infinite}
.save-state.is-saving .save-spin{display:inline-block}
@keyframes saveSpin{to{transform:rotate(360deg)}}
.save-retry{border:0;background:#b3362f;color:#fff;border-radius:12px;padding:2px 9px;font-size:10.5px;font-weight:700}
.notif-bell{position:relative;padding-left:10px!important;padding-right:10px!important}
.notif-bell svg{fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;display:block}
.notif-count{position:absolute;top:-5px;right:-5px;min-width:17px;height:17px;padding:0 4px;border-radius:9px;background:#c2413c;color:#fff;font-size:10px;font-weight:700;line-height:17px;text-align:center;box-shadow:0 0 0 2px #fff}
.notif-panel{position:fixed;top:70px;right:20px;z-index:220;width:min(360px,calc(100vw - 24px));max-height:min(480px,calc(100vh - 100px));display:flex;flex-direction:column;
  background:var(--glass-strong);border:1px solid var(--glass-line);border-radius:18px;box-shadow:0 16px 40px rgba(0,50,100,.18);backdrop-filter:blur(16px) saturate(140%);-webkit-backdrop-filter:blur(16px) saturate(140%);overflow:hidden}
.notif-head{display:flex;justify-content:space-between;align-items:center;padding:13px 16px;border-bottom:1px solid var(--line);font-size:13px;color:var(--navy)}
.notif-readall{border:0;background:none;color:#0060c0;font-size:12px;font-weight:600;padding:0}
.notif-list{overflow:auto}
.notif-item{display:flex;gap:10px;align-items:flex-start;padding:11px 16px;border-bottom:1px solid var(--line);cursor:default}
.notif-item:last-child{border-bottom:0}
.notif-item.unread{background:rgba(0,96,192,.07)}
.notif-ico{width:22px;height:22px;border-radius:50%;background:#1f9d63;color:#fff;display:grid;place-items:center;font-size:12px;font-weight:700;flex-shrink:0}
.notif-item.failed .notif-ico{background:#c2413c}
.notif-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:12px;color:var(--ink)}
.notif-body small{color:var(--muted);font-size:11px;overflow-wrap:anywhere}
.notif-item.failed .notif-body small:nth-of-type(2){color:#b3362f}
.notif-body .notif-time{font-size:10.5px}
.notif-empty{margin:0;padding:22px 16px;color:var(--muted);font-size:12px;text-align:center}
.pdf-toast{position:fixed;right:20px;bottom:20px;z-index:230;display:flex;flex-direction:column;gap:8px;align-items:flex-end}
.pdf-toast-card{display:flex;align-items:center;gap:11px;width:min(380px,calc(100vw - 40px));background:var(--glass-strong);border:1px solid var(--glass-line);border-left:4px solid #1f9d63;border-radius:14px;
  padding:12px 12px 12px 14px;box-shadow:0 14px 34px rgba(0,50,100,.2);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);animation:tstIn .22s ease-out}
.pdf-toast-card.failed{border-left-color:#c2413c}
.pdf-toast-card.out{animation:tstOut .2s ease-in forwards}
.pdf-toast-ico{width:30px;height:30px;border-radius:9px;background:var(--brand-grad);color:#fff;display:grid;place-items:center;font-weight:800;flex-shrink:0}
.pdf-toast-card.failed .pdf-toast-ico{background:#c2413c}
.pdf-toast-body{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;font-size:13px;color:var(--navy)}
.pdf-toast-body small{font-size:11.5px;color:var(--muted);overflow-wrap:anywhere}
.pdf-toast-card.failed .pdf-toast-body small:first-of-type{color:#b3362f}
.pdf-toast-x{border:0;background:none;color:#8aa0b2;font-size:14px;padding:0 2px;align-self:flex-start}
.tour-layer{position:fixed;inset:0;z-index:300}
.tour-layer.is-welcome,.tour-layer:has(.tour-spot.hidden){background:rgba(6,30,49,.55)}
.tour-spot{position:fixed;border-radius:14px;box-shadow:0 0 0 9999px rgba(6,30,49,.55),0 0 0 3px #18a8f8;pointer-events:none;transition:left .25s ease,top .25s ease,width .25s ease,height .25s ease}
.tour-card{position:fixed;width:min(340px,calc(100vw - 24px));background:var(--glass-strong);border:1px solid var(--glass-line);border-radius:20px;padding:18px 18px 14px;
  box-shadow:0 20px 50px rgba(0,30,60,.3);backdrop-filter:blur(18px) saturate(140%);-webkit-backdrop-filter:blur(18px) saturate(140%);color:var(--ink)}
.tour-card h2{margin:2px 0 6px;font-size:17px;color:var(--navy)}
.tour-card p{margin:0 0 10px;font-size:13px;line-height:1.55;color:var(--ink)}
.tour-card.tour-free,.tour-card.tour-welcome{left:50%!important;top:50%!important;transform:translate(-50%,-50%)}
.tour-count{font-size:10.5px!important;font-weight:800;letter-spacing:.08em;color:#0060c0!important;margin:0!important}
.tour-hint{font-size:12px!important;color:var(--muted)!important;font-style:italic}
.tour-foot{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:6px}
.tour-foot{flex-wrap:wrap;row-gap:12px}.tour-foot .tour-btns{margin-left:auto}   /* V2.26.5: many steps -> the dots take their own line */
.tour-dots{flex-wrap:wrap;gap:4px}
.tour-dots{display:flex;gap:5px}
.tour-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#c9d9e6}
.tour-dot.done{background:#7fb6e6}
.tour-dot.on{background:#0060c0;width:18px;border-radius:4px}
.tour-btns{display:flex;gap:8px;align-items:center;justify-content:flex-end}
.tour-link{border:0;background:none;color:var(--muted);font-size:12px;padding:4px}
.tour-welcome{width:min(460px,calc(100vw - 24px));padding:26px 26px 20px;text-align:center}
.tour-welcome h2{font-size:21px}
.tour-badge{display:inline-grid;place-items:center;width:52px;height:52px;border-radius:16px;background:var(--brand-grad);color:#fff;font-weight:800;font-size:14px;letter-spacing:.04em;margin-bottom:10px;box-shadow:0 10px 22px rgba(0,96,192,.28)}
.tour-four{list-style:none;display:grid;grid-template-columns:repeat(4,1fr);gap:8px;padding:0;margin:14px 0 18px}
.tour-four.tour-five{grid-template-columns:repeat(5,1fr)}   /* V2.26.5: five steps in the welcome card */
.tour-four li{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11.5px;font-weight:600;color:var(--navy)}
.tour-four b{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#e8f3fc;color:#0060c0;font-size:12px}
.tour-welcome .tour-btns{justify-content:center}
html[data-theme="dark"] .save-state.is-saving{color:#8cc8ff;background:rgba(24,168,248,.12);border-color:rgba(24,168,248,.25)}
html[data-theme="dark"] .save-state.is-saved{color:#7fd6a8;background:rgba(31,157,99,.14);border-color:rgba(31,157,99,.3)}
html[data-theme="dark"] .save-state.is-failed{color:#ff9d97;background:rgba(194,65,60,.16);border-color:rgba(194,65,60,.35)}
html[data-theme="dark"] .notif-count{box-shadow:0 0 0 2px #142232}
html[data-theme="dark"] .notif-item.unread{background:rgba(24,168,248,.1)}
html[data-theme="dark"] .notif-readall,html[data-theme="dark"] .tour-count{color:#6cc0ff!important}
html[data-theme="dark"] .tour-dot{background:#3a4f63}
html[data-theme="dark"] .tour-dot.on{background:#18a8f8}
html[data-theme="dark"] .tour-four b{background:rgba(24,168,248,.15);color:#8cc8ff}
html[data-theme="dark"] .notif-panel,html[data-theme="dark"] .tour-card,html[data-theme="dark"] .pdf-toast-card{background:rgba(22,38,56,.92)}
@media(max-width:760px){
  .tour-card:not(.tour-welcome){left:12px!important;right:12px;top:auto!important;bottom:12px;width:auto;transform:none!important}
  .pdf-toast{right:12px;left:12px;bottom:12px;align-items:stretch}.pdf-toast-card{width:auto}
  .notif-panel{left:12px;right:12px!important;width:auto}
  .tour-four{gap:4px}.tour-four li{font-size:10.5px}
}
@media(prefers-reduced-motion:reduce){.tour-spot{transition:none}.save-spin{animation-duration:2s}}

/* V2.26.6: the tour walks through the pages - a progress bar instead of the dots, the page name on top */
.tour-prog{flex:1 1 120px;min-width:90px;height:5px;border-radius:3px;background:#dbe7f1;overflow:hidden}
.tour-prog i{display:block;height:100%;background:#0060c0;border-radius:3px;transition:width .25s}
html[data-theme="dark"] .tour-prog{background:#2c3e50}html[data-theme="dark"] .tour-prog i{background:#18a8f8}
/* V2.19.0: project pages tidy — step 01 Project Details (look only) */
.pd-title{display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 12px;min-width:0}
.pd-title h2{margin:0}
.pd-title .pd-desc{margin:0;font-size:12px;color:var(--muted);font-weight:500}
#step1 .simple-form-grid .test-project-row{display:flex;flex-direction:row!important;justify-content:flex-start;align-items:center;gap:8px;margin:0;align-self:end;min-height:44px;cursor:pointer}
#step1 .test-project-row small{font-weight:500;color:var(--muted)}
.pd-brand-in{display:grid;grid-template-columns:minmax(0,1fr);row-gap:4px;margin-top:6px}
.pd-brand-in>input{grid-area:1/1;margin-top:0!important}
.pd-brand-in #brandPreview{display:contents}
.pd-brand-in #brandPreview img{grid-area:1/1;justify-self:end;align-self:center;height:26px;max-width:110px;margin-right:7px;padding:2px 5px;pointer-events:none}
.pd-brand-in:has(img)>input{padding-right:126px}
#projectForm>.h-actions{margin-top:16px}
.pd-cards{display:grid;gap:10px;margin-top:22px}
#step1 .pd-card{margin:0;padding:12px 15px}
#ownerPanel.pd-card{border:1px solid #d8e7ef;border-radius:12px;background:#f8fbfe;max-width:none}
#step1 .pd-card>.fold-head{align-items:center}
#step1 .pd-card>.fold-head .fold-chev{order:9;margin-left:auto}
#step1 .pd-card .pd-ic{color:var(--brand)}
#ownerPanel>.fold-head>.pd-ic{flex:0 0 auto}
#ownerPanel>.fold-head>span:last-child{flex:1 1 auto;min-width:0}
.pd-sum{display:block;margin:3px 0 0!important;font-size:12px;font-weight:500;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#projectSaveSummary .project-save-stats,#projectSaveSummary .full-project-head{display:none}
#projectSaveSummary .full-project-contents{margin:12px 0 0;padding:0;border:0;background:none;box-shadow:none}
#fullProjectSummary>span{display:none}
#projectHistoryList.pd-limited .history-row:nth-child(n+6){display:none}
.pd-history-all{margin-top:8px}
.pd-danger{margin-top:22px;padding:10px 14px;border:1px dashed #e3b1ad;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.pd-danger>span{font-size:12px;font-weight:700;color:#b42318;letter-spacing:.02em}
.pd-danger:has(#deleteProject.hidden){display:none}
html[data-theme="dark"] #ownerPanel.pd-card{background:rgba(24,40,58,.8);border-color:var(--line)}
html[data-theme="dark"] .pd-danger{border-color:rgba(240,120,110,.4)}
html[data-theme="dark"] .pd-danger>span{color:#f19c94}
html[data-theme="dark"] #step1 .test-project-row{color:var(--ink)}
@media(max-width:760px){
  .pd-title{flex-direction:column;gap:2px}
  .pd-sum{white-space:normal}
  #step1 .simple-form-grid .test-project-row{min-height:0}
}

/* V2.19.0: step 03 Upload Files (look only) */
#uploadCategories.upload-categories{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start}
#uploadCategories .category-top{flex-wrap:nowrap!important;align-items:flex-start;gap:9px}
#uploadCategories .category-title{flex:1 1 auto;min-width:0}
#uploadCategories .category-title b{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#uploadCategories .category-title b[title]{cursor:default}   /* V2.23.5: a normal pointer (the hint still shows on hover) */
#uploadCategories .category-title .cat-hint{display:none}
#uploadCategories .category-title .cat-count{display:block;width:auto;margin-top:2px;padding:0;border:0;background:none!important;box-shadow:none;font-size:11.5px;font-weight:500;color:var(--muted)}
#uploadCategories .cat-tools{display:flex;flex-wrap:nowrap;gap:4px;flex:0 0 auto;width:auto!important;margin:0 0 0 auto!important;white-space:nowrap}
#uploadCategories .cat-tools .mini{padding:3px 7px;font-size:11px;min-height:0}
#uploadCategories .cat-empty>.category-empty{display:none}
#uploadCategories .cat-empty .category-upload:not([data-fixed]) .compact-file-pick.one-click{min-height:86px}
#uploadCategories .category-upload:not([data-fixed]) .compact-file-pick.one-click{min-height:40px;font-size:12.5px}
#uploadCategories .compact-file-pick u{text-underline-offset:2px}
#uploadCategories .compact-file-pick small{font-weight:500;color:var(--muted)}
#uploadCategories .category-card.drag-over .compact-file-pick.one-click{border-color:var(--brand);background:#eef6fd}
#uploadCategories .category-card:not(.fixed-section) .file-row{display:flex;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px}
#uploadCategories .category-card:not(.fixed-section) .file-main{flex:1 1 auto!important;min-width:0;display:flex;align-items:center;gap:10px}
#uploadCategories .category-card:not(.fixed-section) .file-main>div:last-child{flex:1 1 auto;min-width:0;overflow:hidden}
#uploadCategories .category-card:not(.fixed-section) :is(.file-name,.file-meta){white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;word-break:normal!important;overflow-wrap:normal!important}
#uploadCategories .file-meta{font-size:11px;color:var(--muted)}
#uploadCategories .category-card:not(.fixed-section) .file-actions{display:flex;flex:0 0 auto;flex-wrap:nowrap!important;align-items:center;gap:4px;margin-left:auto;padding-left:0!important;width:auto!important}
.thumb-box{position:relative;flex:0 0 36px;width:36px;height:46px;display:grid;place-items:center}
.thumb-box .thumb-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top;border-radius:6px;border:1px solid var(--line);background:#fff;opacity:0}
.thumb-box.has-thumb .thumb-img{opacity:1}
.thumb-box.has-thumb>.file-icon{visibility:hidden}
.wm-badge{position:absolute;right:-5px;bottom:-4px;z-index:1;padding:2px 3px;border-radius:5px;background:var(--brand);color:#fff;font-size:8px;font-weight:800;line-height:1;white-space:nowrap}
.wm-badge.off{background:#8b99a7}
#uploadCategories .wm-toggle{display:inline-flex!important;align-items:center;gap:6px;padding:3px 4px!important;font-size:0!important;background:none!important;border:0!important;box-shadow:none!important}
#uploadCategories .wm-toggle::before{content:"";flex:0 0 28px;width:28px;height:16px;border-radius:999px;background:radial-gradient(circle at 20px 50%,#fff 5.5px,transparent 6.2px),var(--brand)}
#uploadCategories .wm-toggle.wm-off::before{background:radial-gradient(circle at 8px 50%,#fff 5.5px,transparent 6.2px),#b8c3cd}
#uploadCategories .wm-toggle::after{content:"Watermark";font-size:11px;font-weight:600;color:var(--ink)}
#uploadCategories .wm-toggle.wm-off::after{color:var(--muted)}
#uploadCategories .wm-toggle:focus-visible{outline:2px solid var(--brand);outline-offset:2px;border-radius:8px}
#uploadCategories .mini.icon-only{width:28px;height:28px;padding:0!important;justify-content:center;font-size:0!important}
#uploadCategories .mini.icon-only::before{width:15px!important;height:15px!important;margin:0!important}
#uploadCategories .mini.icon-only.red{color:#c0392b}
html[data-theme="dark"] .thumb-box .thumb-img{border-color:var(--line2)}
html[data-theme="dark"] #uploadCategories .wm-toggle.wm-off::before{background:radial-gradient(circle at 8px 50%,#dfe7ee 5.5px,transparent 6.2px),#475a6b}
html[data-theme="dark"] #uploadCategories .mini.icon-only.red{color:#f19c94}
html[data-theme="dark"] #uploadCategories .category-card.drag-over .compact-file-pick.one-click{background:rgba(24,168,248,.12)}
@media(max-width:900px){#uploadCategories.upload-categories{grid-template-columns:minmax(0,1fr)!important}}
@media(max-width:760px){
  #uploadCategories .category-card:not(.fixed-section) .file-row{gap:8px}
  #uploadCategories .cat-tools .mini{padding:3px 5px}
}
@media(max-width:420px){#uploadCategories .wm-toggle::after{display:none}}

/* V2.19.0: step 04 Select Approvals (look only) */
.ap-info-btn{border:0;background:none;color:var(--brand);font-size:15px;line-height:1;cursor:pointer;padding:2px 4px;vertical-align:middle;border-radius:6px}
.ap-info-btn:focus-visible{outline:2px solid var(--brand)}
#apInfo{margin:10px 0 0}#apInfo p{margin:0}#apInfo .approval-sidebar-help{margin-top:6px;padding-top:6px;font-size:11px}
.ap-tools{position:relative}.ap-tools>summary{list-style:none;cursor:pointer}.ap-tools>summary::-webkit-details-marker{display:none}
.ap-tools .ap-menu{min-width:250px}.ap-tools .ap-menu .btn{justify-content:flex-start;width:100%;border:0;box-shadow:none;background:none}
.ap-tools .ap-menu .btn:hover{background:#eef6fd}
.ap-filter-line.approval-search-controls{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.ap-filter-line>input{flex:2 1 170px;min-width:150px}
.ap-filter-line>label{flex:1 1 96px;min-width:90px;margin:0}
.ap-filter-line select{width:100%}
#step3 .ap-workspace{grid-template-columns:minmax(320px,1fr) minmax(380px,1.25fr)}
.ap-tabs-row{display:flex;align-items:center;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);margin-bottom:10px;flex-wrap:wrap}
#approvalFolderTree.ap-tabs{display:flex;flex-direction:row;flex-wrap:nowrap;gap:2px;max-height:none;overflow-x:auto;overflow-y:hidden;flex:1 0 auto;max-width:100%;scrollbar-width:thin}
#approvalFolderTree.ap-tabs .folder-main{width:auto;gap:5px;padding:8px 6px;font-size:11.5px;border-radius:9px 9px 0 0;border-bottom:2px solid transparent;margin-bottom:-1px;white-space:nowrap}
#approvalFolderTree.ap-tabs .folder-main.open{background:none;border-bottom-color:var(--brand)}
#approvalFolderTree.ap-tabs .folder-icon{display:none}
#approvalFolderTree.ap-tabs .folder-n{margin-left:0;min-width:0;padding:1px 5px}
.ap-tabs-row .approval-list-tools{flex:0 0 auto;border:0;padding:6px 2px;margin:0 0 0 auto;gap:10px}
#step3 .approval-documents>.approval-column-top{margin-bottom:8px}
#step3 .approval-documents>.approval-column-top h3{font-size:13px}
#step3 .approval-documents>.approval-column-top p{font-size:11px;margin:0}
#libraryList .approval-card{position:relative}
#libraryList .approval-doc-focus .thumb-box{flex:0 0 34px;width:34px;height:44px}
#libraryList .approval-doc-tools{align-items:center}
.ap-more{position:relative}.ap-more>summary{list-style:none;cursor:pointer;width:28px;height:26px;display:grid;place-items:center;border:1px solid var(--line);border-radius:8px;font-weight:800;color:var(--ink);background:#fff}
.ap-more>summary::-webkit-details-marker{display:none}
.ap-more .ap-menu{min-width:180px;top:calc(100% + 4px)}
.ap-more .ap-menu .mini{display:flex;align-items:center;gap:6px;width:100%;justify-content:flex-start;text-align:left;border:0;background:none;box-shadow:none}
.ap-more .ap-menu .mini:hover{background:#eef6fd}
.ap-preview-head{min-width:0}.ap-preview-head h3{font-size:11px!important;text-transform:uppercase;letter-spacing:.04em;color:var(--muted)!important;margin:0 0 2px!important}
.ap-preview-head #previewLabel{font-weight:700;color:var(--ink);font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}
html[data-theme="dark"] .ap-more>summary{background:rgba(24,40,58,.8);border-color:var(--line2);color:var(--ink)}
html[data-theme="dark"] .ap-tools .ap-menu,html[data-theme="dark"] .ap-more .ap-menu{background:#132536;border-color:var(--line2)}
html[data-theme="dark"] :is(.ap-tools .ap-menu .btn,.ap-more .ap-menu .mini):hover{background:rgba(24,168,248,.12)}
html[data-theme="dark"] #approvalFolderTree.ap-tabs .folder-main.open{background:none}
@media(max-width:1250px){#step3 .ap-workspace{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
  .ap-filter-line>input{flex:1 1 100%}.ap-filter-line>label{flex:1 1 calc(50% - 8px);min-width:0}
  #approvalFolderTree.ap-tabs{flex-wrap:nowrap;overflow-x:auto;max-width:100%}
  .ap-tools .ap-menu{right:auto;left:0}
}

/* V2.19.0: step 05 Arrange & Export (look only) */
.ar-info{margin:-4px 0 12px;font-size:12px;color:var(--muted)}.ar-info p{margin:0 0 8px}.ar-info .doc-tip{margin:0}
#arrangeList .arrange-head{padding:6px 9px;gap:8px;min-height:0}
#arrangeList .arrange-section{margin-bottom:0}
#arrangeList.arrange-list{gap:6px}
#arrangeList .arrange-title{font-size:13px;display:block;min-width:0;flex:1 1 auto;line-height:1.3}
#arrangeList .arrange-title small{display:inline-block;font-size:11px;font-weight:500;color:var(--muted);margin:0 0 0 7px;white-space:nowrap}
@media(min-width:1101px){#step4 .arrange-grid{grid-template-columns:minmax(0,1.2fr) minmax(330px,.8fr)}}
#arrangeList .arrange-number{min-width:22px;height:22px;font-size:11px}
#arrangeList .arrange-pos select{padding:4px 8px;font-size:12px}
#arrangeList .arrange-toggle{padding:4px 9px}
.fs-rows{border:1px solid var(--line);border-radius:13px;overflow:hidden;margin:0 0 12px;background:rgba(255,255,255,.55)}
.fs-rows>*{margin:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;background:none!important}
.fs-rows>*+*{border-top:1px solid var(--line)!important}
.fs-rows>.submittal-box{padding:0!important}
.fs-rows>.submittal-box>.fs-row+.fs-row{border-top:1px solid var(--line)}
.fs-row,.fs-rows>.fs-brand,.fs-rows>.pdf-size{display:grid!important;grid-template-columns:104px minmax(0,1fr);align-items:center;gap:10px;padding:9px 12px!important;font-size:12.5px}
.fs-k,#exportStatus.fs-row::before,.fs-rows>.pdf-size>span{font-size:11px;font-weight:700;letter-spacing:.02em;text-transform:uppercase;color:var(--muted)}
#exportStatus.fs-row::before{content:"Contents"}
#exportStatus.fs-row{color:var(--ink);font-weight:600}
.fs-v{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px}
.fs-v small{flex:1 1 100%;color:var(--muted);font-size:11px}
.fs-v>br{display:none}
.fs-v .submittal-ref{font-weight:800;color:var(--navy)}
.fs-brand .fs-v{flex-wrap:nowrap}
.fs-brand .fs-v>img{height:26px;max-width:100px;object-fit:contain;flex:0 0 auto}
.fs-brand .fs-v>span{flex:1 1 auto;min-width:0}
.fs-rows>.pdf-size select{width:100%}
html[data-theme="dark"] .fs-rows{background:rgba(24,40,58,.55)}
@media(max-width:760px){.fs-row,.fs-rows>.fs-brand,.fs-rows>.pdf-size{grid-template-columns:88px minmax(0,1fr)}}

/* V2.19.0 fix (user): menus above the page; shorter file cards */
.tools-dropdown.ap-pop{position:fixed!important;right:auto;z-index:1000;width:auto!important;min-width:210px;max-width:calc(100vw - 16px);margin:0!important;padding:6px!important;border:1px solid var(--line)!important;box-shadow:0 12px 32px #0c2e4d26!important}
.ap-pop>button{display:flex!important;align-items:center;gap:7px;width:100%;justify-content:flex-start;text-align:left;border:0!important;background:none!important;box-shadow:none!important;padding:8px 10px!important;font-size:12.5px!important;min-height:0!important;border-radius:8px!important}
.ap-pop>button:hover:not(:disabled),.ap-pop>button:focus-visible{background:#eef6fd!important}
.ap-pop>button:disabled{opacity:.45;cursor:not-allowed}
.ap-pop>button.red{color:#c0392b}
.tools-dropdown.ap-pop{background:#fff!important}
html[data-theme="dark"] .tools-dropdown.ap-pop{background:#132536!important;border-color:var(--line2)!important}
html[data-theme="dark"] .ap-pop>button.red{color:#f19c94}
html[data-theme="dark"] .ap-pop>button:hover:not(:disabled){background:rgba(24,168,248,.12)!important}
#libraryList .approval-doc-body>small:not([class]),#libraryList .approval-doc-body>.source-label{display:none}

/* V2.19.0 (user): file buttons side by side next to View */
#libraryList .approval-doc-tools{justify-content:flex-start;flex-wrap:wrap;gap:5px}
#libraryList .approval-doc-tools .mini{padding:4px 8px;font-size:11px;min-height:0}
#libraryList .approval-doc-tools .analysis-pill{margin-left:auto}

/* V2.19.1 (user): fewer things on top. Hidden only — the elements and their code stay.
   Password: My Account page. Generate: step 05. Files / Approvals / Last Generate: Project Contents and Revisions. */
#changeMyPassword,#wsGenerate,#projectSummary.project-summary{display:none!important}
/* the frame of the opened file is drawn inside the card (the scrolling list cut it) */
#libraryList .approval-card.previewed{outline:2px solid #0b85c9;outline-offset:-2px}
/* the brand tag is as wide as its word (the logo style ".brand" stretched it) */
.doc-tags .doc-tag.brand{display:inline-block;flex:0 0 auto;gap:0;min-width:0;width:auto}

/* V2.19.2: Data Booklets card (Upload Files) + Data Booklet column of the pump table */
.bk-head{display:flex;align-items:center;gap:12px;min-width:0}
.bk-ic{display:grid;place-items:center;width:38px;height:38px;border-radius:12px;background:#e8f3fc;color:var(--brand);flex:0 0 38px}
.bk-ic[data-icon]::before{margin:0;width:18px;height:18px}
.bk-head h2{margin:0}.bk-head p{margin:2px 0 0;font-size:12px;color:var(--muted)}
.bk-list{display:flex;flex-direction:column;gap:8px;margin-bottom:10px}
.bk-row{display:flex;align-items:center;gap:12px;border:1px solid var(--line);border-radius:14px;padding:9px 11px;background:rgba(255,255,255,.7)}
.bk-row .thumb-box{flex:0 0 36px;width:36px;height:46px}
.bk-main{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px}
.bk-main>b{font-size:13px;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bk-main>small{font-size:11px;color:var(--muted)}
.bk-pumps{margin-top:2px}.bk-pump.linked{background:#e9f7ef;color:#1f7a4c}
.bk-older{color:var(--muted);font-weight:600}
.bk-none{font-style:italic}
.bk-actions{display:flex;align-items:center;gap:5px;flex:0 0 auto;flex-wrap:nowrap}
.bk-actions .mini{padding:4px 8px;font-size:11px;min-height:0}
.bk-actions .mini.icon-only{width:28px;height:28px;padding:0;justify-content:center;font-size:0}
.bk-actions .mini.icon-only::before{width:15px;height:15px;margin:0}
.bk-actions .mini.icon-only.red{color:#c0392b}
.bk-sug{font-size:11px;font-weight:700;color:#1f7a4c;background:#e9f7ef;border-radius:999px;padding:3px 8px;white-space:nowrap}
.bk-check{border-color:#e7c26a!important;color:#8a5a00!important}
.bk-missing{background:#fff8e6;border-color:#f0d58c}
.bk-warn{flex:0 0 36px;height:36px;display:grid;place-items:center;font-size:18px;color:#a66a0b}
.bk-missing .bk-main>b{color:#8a5a00}
#bookletList .wm-toggle{display:inline-flex!important;align-items:center;gap:6px;padding:3px 4px!important;font-size:0!important;background:none!important;border:0!important;box-shadow:none!important}
#bookletList .wm-toggle::before{content:"";flex:0 0 28px;width:28px;height:16px;border-radius:999px;background:radial-gradient(circle at 20px 50%,#fff 5.5px,transparent 6.2px),var(--brand)}
#bookletList .wm-toggle.wm-off::before{background:radial-gradient(circle at 8px 50%,#fff 5.5px,transparent 6.2px),#b8c3cd}
#bookletList .wm-toggle::after{content:"Watermark";font-size:11px;font-weight:600;color:var(--ink)}
#bookletList .wm-toggle.wm-off::after{color:var(--muted)}
.bk-upload .compact-file-pick.one-click{min-height:52px;font-size:12.5px}
.bk-upload small{font-weight:500;color:var(--muted)}
.bk-card.drag-over .compact-file-pick.one-click{border-color:var(--brand);background:#eef6fd}
.bk-card.bk-empty .compact-file-pick.one-click{min-height:80px}
.bk-dialog{width:min(760px,calc(100vw - 24px))}
.bk-search-row{display:flex;gap:8px;margin:4px 0 12px}.bk-search-row input{flex:1 1 auto;min-width:0}.bk-search-row select{flex:0 0 190px}
.bk-results{display:flex;flex-direction:column;gap:8px;max-height:min(52vh,460px);overflow:auto;padding:2px}
.bk-results mark{background:#fff0b3;color:inherit;border-radius:3px;padding:0 1px}
.bk-not-here{margin:12px 0 0;font-size:12px;color:var(--muted);display:flex;align-items:center;gap:8px}
#pumpList .pump-row{grid-template-columns:minmax(90px,.8fr) minmax(130px,1.3fr) minmax(130px,1.3fr) minmax(80px,.7fr) minmax(160px,1.4fr) minmax(150px,1.2fr) auto}
.pump-bk{display:flex;flex-direction:column;gap:4px;min-width:0;font-size:12px}
.pump-bk>span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:700}
.pump-bk .pump-pick{font-size:11px;padding:4px 6px}
html[data-theme="dark"] .bk-row{background:rgba(24,40,58,.6);border-color:var(--line2)}
html[data-theme="dark"] .bk-ic{background:rgba(24,168,248,.14);color:#5cb6ff}
html[data-theme="dark"] .bk-missing{background:rgba(166,106,11,.16);border-color:rgba(240,200,120,.35)}
html[data-theme="dark"] .bk-missing .bk-main>b,html[data-theme="dark"] .bk-check{color:#f3c86b!important}
html[data-theme="dark"] .bk-sug,html[data-theme="dark"] .bk-pump.linked{background:rgba(33,132,91,.22);color:#7fd8a8}
html[data-theme="dark"] .bk-results mark{background:rgba(255,214,90,.3)}
html[data-theme="dark"] #bookletList .wm-toggle.wm-off::before{background:radial-gradient(circle at 8px 50%,#dfe7ee 5.5px,transparent 6.2px),#475a6b}
@media(max-width:860px){#pumpList .pump-row{grid-template-columns:1fr}}
@media(max-width:760px){
  .bk-row{flex-wrap:wrap}
  .bk-main{flex:1 1 calc(100% - 60px)}
  .bk-actions{flex-wrap:wrap;width:100%;justify-content:flex-end}
  .bk-search-row{flex-direction:column}.bk-search-row select{flex:1 1 auto}
}

/* V2.20.0: step 04 tabs (Pre-Approvals / Certificates / O&M Manuals), the section bar and Library > Certificates */
.sd-tabs-panel{padding:10px 14px;margin-bottom:14px}.sd-tabs{display:flex;flex-wrap:wrap;gap:8px}.sd-tabs .folder-main{width:auto;padding:9px 16px;font-size:13px}.sd-tabs .folder-main:disabled{opacity:.55;cursor:default}
.sd-soon{font-size:9px;font-weight:800;color:#8a5a0c;background:#fff3d6;border-radius:9px;padding:2px 7px;margin-left:2px}.sd-hide{display:none!important}
.sd-view .panel{margin-bottom:14px}.sd-head .panel-heading{margin-bottom:0}.sd-upload{cursor:pointer}
.sd-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;padding:10px 12px;margin-bottom:12px;border-radius:12px;background:#eef6fd;border:1px solid #d6e7f6}
.sd-name{display:flex;align-items:center;gap:8px;font-size:12px;font-weight:700;color:#35556d}.sd-name input{border:1px dashed #9cc3e6;border-radius:8px;padding:6px 10px;background:#f5fbff;color:var(--ink);font-weight:700;font-size:13px;min-width:220px;outline:none}.sd-name input:focus{border-style:solid;border-color:var(--blue)}
.sd-switch{display:inline-flex;align-items:center;gap:9px;border:0;background:none;cursor:pointer;font-size:12px;font-weight:700;color:#1a477b;padding:4px}
.sd-knob{position:relative;width:38px;height:22px;border-radius:999px;background:#c9d6e2;transition:background .2s;flex-shrink:0}.sd-knob:after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:50%;background:#fff;box-shadow:0 1px 2px #0003;transition:left .2s}
.sd-switch.on .sd-knob{background:#1f6fd1}.sd-switch.on .sd-knob:after{left:19px}
.sd-body.sd-off{opacity:.4}.sd-h{font-size:15px;margin:14px 0 3px;color:var(--navy)}.sd-help{font-size:12px;color:var(--muted);margin:0 0 10px}
.sd-list{display:flex;flex-direction:column;gap:8px}.sd-doc{cursor:default}.sd-list .approval-card{flex-direction:row;align-items:center;flex-wrap:wrap}.sd-list .approval-doc-focus{flex:1;width:auto}
.doc-tag.sd-ok{background:#e3f6ea;color:#1b7a43}.doc-tag.sd-warn{background:#fff1d6;color:#8a5a0c}.doc-tag.sd-bad{background:#fde5e3;color:#a3322b}.doc-tag.sd-fixed{background:#e8eefc;color:#2f4fa0}
.cs-counts{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.cs-count{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:#fff;border-radius:10px;padding:8px 12px;font-size:12px;color:#35556d;cursor:pointer}
.cs-count b{font-size:16px}.cs-count.sd-ok b{color:#1b7a43}.cs-count.sd-warn b{color:#a66a0b}.cs-count.sd-bad b{color:#a3322b}.cs-count.active{border-color:var(--blue);box-shadow:0 0 0 3px #007ccf1a}
.cs-toolbar{display:grid;grid-template-columns:minmax(0,1fr) 170px auto;gap:8px;margin-bottom:10px}.cs-toolbar input{outline:none;border:1px solid #cfdee9;background:#fff;border-radius:9px;padding:9px 12px;color:var(--ink);font-size:13px}
.cs-upload{cursor:pointer}.cs-default{display:flex;align-items:flex-end;gap:8px;margin:4px 0 12px;flex-wrap:wrap}.cs-default label{display:flex;flex-direction:column;gap:5px;font-size:11px;font-weight:700;color:#35556d}.cs-default input{border:1px solid #cfdee9;border-radius:9px;padding:8px 10px;min-width:240px;font-size:13px;color:var(--ink)}
.cs-progress{font-size:12px;color:var(--muted);min-height:4px}
.notif-item.warn .notif-ico{background:#fff1d6;color:#8a5a0c}
body[data-view="certificates"] #certificatesView{display:block}
body[data-view="certificates"] :is(.workspace-header,.stepper,.step-view,#emptyState,#projectSummary,#teamProjects,#modeSwitch,.top-project,#trackingView){display:none!important}
html[data-theme="dark"] :is(.sd-bar){background:#16283a;border-color:#27425c}html[data-theme="dark"] .sd-name{color:#b8cde0}html[data-theme="dark"] .sd-name input{background:#0f1d2b;border-color:#36597a;color:#e6eef5}
html[data-theme="dark"] .sd-switch{color:#9cc8f0}html[data-theme="dark"] .sd-h{color:#e6eef5}html[data-theme="dark"] .cs-count{background:#132232;color:#b8cde0;border-color:#27425c}
html[data-theme="dark"] .doc-tag.sd-ok{background:#123826;color:#7fdca6}html[data-theme="dark"] .doc-tag.sd-warn{background:#3a2a0c;color:#f2c46d}html[data-theme="dark"] .doc-tag.sd-bad{background:#3d1714;color:#f39a90}html[data-theme="dark"] .doc-tag.sd-fixed{background:#1b2a4d;color:#a8bdf2}
html[data-theme="dark"] .cs-toolbar input,html[data-theme="dark"] .cs-default input{background:#0f1d2b;border-color:#2c4a66;color:#e6eef5}
@media(max-width:760px){.sd-bar{flex-direction:column;align-items:stretch}.sd-name{flex-direction:column;align-items:stretch}.sd-name input{min-width:0;width:100%}.cs-toolbar{grid-template-columns:1fr}.cs-default input{min-width:0;width:100%}.sd-tabs .folder-main{flex:1 1 auto;justify-content:center}}

/* V2.20.1: list + preview side by side, a switch per group, the lock for Fixed, the Removed list */
.sd-bar-note{font-size:11px;color:var(--muted)}
.sd-cols{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr);gap:16px;align-items:start}
.sd-preview{position:sticky;top:14px;border:1px solid var(--line);border-radius:14px;padding:12px;background:#fbfdff;display:flex;flex-direction:column;gap:6px}
.sd-preview .eyebrow{margin:0}.sd-prev-name{font-size:13px;color:var(--navy);overflow-wrap:anywhere}.sd-preview .pdf-frame,.sd-preview .preview-placeholder{height:560px}
.sd-group{margin-bottom:6px}.sd-grp-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;flex-wrap:wrap}.sd-grp-head .sd-h{margin-top:10px}
.sd-group.sd-off .sd-list{opacity:.4}.sd-switch:disabled{cursor:default;opacity:.8}.sd-lock{font-size:13px}
.sd-list .approval-card{cursor:pointer}.sd-list .approval-card.sd-locked .approval-pick input{cursor:not-allowed}
.doc-tag.sd-lock-tag{background:#eef1f6;color:#4d5d73}
.sd-removed{margin-top:14px;border-top:1px dashed var(--line);padding-top:10px}.sd-removed-toggle{border:0;background:none;color:#1264a2;font-size:12px;font-weight:700;cursor:pointer;padding:4px 0}
.sd-removed .sd-list{margin-top:8px;opacity:.8}
html[data-theme="dark"] .sd-preview{background:#0f1d2b;border-color:#27425c}html[data-theme="dark"] .sd-prev-name{color:#e6eef5}html[data-theme="dark"] .doc-tag.sd-lock-tag{background:#1c2a3a;color:#b8cde0}
@media(max-width:1100px){.sd-cols{grid-template-columns:1fr}.sd-preview{position:static}.sd-preview .pdf-frame,.sd-preview .preview-placeholder{height:420px}}
/* V2.20.2: Pre-Approvals shows the Approvals only (certificates have their own tab); Fixed certificates have no tick */
#step3 #approvalFolderTree{display:none}
.sd-list .approval-card:not(:has(.approval-pick)) .approval-doc-focus{padding-left:2px}
/* V2.20.4: Test certificates (one per pump model) + Quality / Test in the store */
.sd-test{margin-top:18px;padding-top:12px;border-top:1px solid var(--line)}.sd-name-test{margin:2px 0 10px}
.sd-model{display:flex;flex-direction:column;gap:5px}.sd-model-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--navy)}.sd-model-head small{color:var(--muted);font-size:11px}
.sd-missing{border-style:dashed}.cs-kinds{margin:12px 0 2px}
html[data-theme="dark"] .sd-model-head{color:#e6eef5}
/* V2.20.5: two separate cards; the Included switch always top right; the Test search window */
.sd-card{border:1px solid #d6e7f6;border-radius:16px;padding:14px 16px 10px;background:rgba(255,255,255,.72);margin-bottom:16px}
.sd-card-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;margin-bottom:10px}.sd-card-title{font-size:17px;margin:0 0 3px;color:var(--navy)}.sd-card-head .sd-help{margin:0}
.sd-card .sd-bar{margin-bottom:6px}
.sd-branch{border-left:3px solid #cfe1f3;padding-left:12px;margin:8px 0 10px 2px}.sd-branch .sd-h{font-size:14px;margin-top:6px}
.sd-grp-head{flex-wrap:nowrap}.sd-grp-head>div{min-width:0}.sd-grp-head .sd-switch{flex-shrink:0;white-space:nowrap;margin-top:4px}
.sd-test{margin-top:0;padding-top:14px;border-top:1px solid #d6e7f6}
.sd-model-head .sd-change{margin-left:auto}.sd-model-head{align-items:center}
.tp-search{width:100%;margin:4px 0 10px}.tp-list{max-height:52vh;overflow:auto;display:flex;flex-direction:column;gap:8px;margin-bottom:12px}.tp-now{border-color:var(--blue)}
html[data-theme="dark"] .sd-card{background:#122130;border-color:#27425c}html[data-theme="dark"] .sd-card-title{color:#e6eef5}html[data-theme="dark"] .sd-branch{border-left-color:#2c4a66}
@media(max-width:760px){.sd-card{padding:12px}.sd-card-head{flex-direction:column}.sd-card-head .btn{align-self:flex-start}}
/* V2.20.6: step 04 Certificates = the 03 Upload Files look. V2.23.2: written once for the three card lists that use it — step 04 Certificates (#sdCertCards), step 04 O&M (#sdOmCards) and the Library page (#libCards) */
:is(#sdCertCards,#sdOmCards,#libCards) .category-top{flex-wrap:nowrap!important;align-items:flex-start;gap:9px}
:is(#sdCertCards,#sdOmCards,#libCards) .category-title{flex:1 1 auto;min-width:0}
:is(#sdCertCards,#sdOmCards,#libCards) .category-title b{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
:is(#sdCertCards,#sdOmCards,#libCards) .category-title b[title]{cursor:default}   /* V2.23.5: a normal pointer (the hint still shows on hover) */
:is(#sdCertCards,#sdOmCards,#libCards) .category-title .cat-hint{display:none}
:is(#sdCertCards,#sdOmCards,#libCards) .category-title .cat-count{display:block;width:auto;margin-top:2px;padding:0;border:0;background:none!important;box-shadow:none;font-size:11.5px;font-weight:500;color:var(--muted)}
:is(#sdCertCards,#sdOmCards,#libCards) .cat-tools{display:flex;flex-wrap:nowrap;gap:4px;flex:0 0 auto;width:auto!important;margin:0 0 0 auto!important;white-space:nowrap}
:is(#sdCertCards,#sdOmCards,#libCards) .cat-tools .mini{padding:3px 7px;font-size:11px;min-height:0}
:is(#sdCertCards,#sdOmCards,#libCards) .cat-empty>.category-empty{display:none}
:is(#sdCertCards,#sdOmCards,#libCards) .cat-empty .category-upload:not([data-fixed]) .compact-file-pick.one-click{min-height:86px}
:is(#sdCertCards,#sdOmCards,#libCards) .category-upload:not([data-fixed]) .compact-file-pick.one-click{min-height:40px;font-size:12.5px}
:is(#sdCertCards,#sdOmCards,#libCards) .compact-file-pick u{text-underline-offset:2px}
:is(#sdCertCards,#sdOmCards,#libCards) .compact-file-pick small{font-weight:500;color:var(--muted)}
:is(#sdCertCards,#sdOmCards,#libCards) .category-card.drag-over .compact-file-pick.one-click{border-color:var(--brand);background:#eef6fd}
:is(#sdCertCards,#sdOmCards,#libCards) .category-card:not(.fixed-section) .file-row{display:flex;flex-direction:row!important;flex-wrap:nowrap!important;align-items:center!important;gap:10px}
:is(#sdCertCards,#sdOmCards,#libCards) .category-card:not(.fixed-section) .file-main{flex:1 1 auto!important;min-width:0;display:flex;align-items:center;gap:10px}
:is(#sdCertCards,#sdOmCards,#libCards) .category-card:not(.fixed-section) .file-main>div:last-child{flex:1 1 auto;min-width:0;overflow:hidden}
:is(#sdCertCards,#sdOmCards,#libCards) .category-card:not(.fixed-section) :is(.file-name,.file-meta){white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;word-break:normal!important;overflow-wrap:normal!important}
:is(#sdCertCards,#sdOmCards,#libCards) .file-meta{font-size:11px;color:var(--muted)}
:is(#sdCertCards,#sdOmCards,#libCards) .category-card:not(.fixed-section) .file-actions{display:flex;flex:0 0 auto;flex-wrap:nowrap!important;align-items:center;gap:4px;margin-left:auto;padding-left:0!important;width:auto!important}
:is(#sdCertCards,#sdOmCards,#libCards) .mini.icon-only{width:28px;height:28px;padding:0!important;justify-content:center;font-size:0!important}
:is(#sdCertCards,#sdOmCards,#libCards) .mini.icon-only::before{width:15px!important;height:15px!important;margin:0!important}
:is(#sdCertCards,#sdOmCards,#libCards) .mini.icon-only.red{color:#c0392b}
html[data-theme="dark"] :is(#sdCertCards,#sdOmCards,#libCards) .mini.icon-only.red{color:#f19c94}
html[data-theme="dark"] :is(#sdCertCards,#sdOmCards,#libCards) .category-card.drag-over .compact-file-pick.one-click{background:rgba(24,168,248,.12)}
:is(#sdCertCards,#sdOmCards,#libCards) .category-card:not(.fixed-section) .file-row{gap:8px}
:is(#sdCertCards,#sdOmCards,#libCards) .cat-tools .mini{padding:3px 5px}
:is(#sdCertCards,#sdOmCards,#libCards).upload-categories{display:grid;grid-template-columns:minmax(0,1fr)!important;gap:16px}
:is(#sdCertCards,#sdOmCards,#libCards) .category-card{margin:0}
.sd-sub{display:flex;justify-content:space-between;align-items:center;margin:8px 2px 2px;font-size:10.5px;font-weight:800;letter-spacing:1.4px;text-transform:uppercase;color:#6b8397}
.sd-sub .sd-switch{text-transform:none;letter-spacing:0;font-size:12px;padding:2px}
.sd-rows{display:flex;flex-direction:column;gap:7px}
:is(#sdCertCards,#sdOmCards,#libCards) .file-row{cursor:pointer;transition:border-color .15s,background .15s}
:is(#sdCertCards,#sdOmCards,#libCards) .file-row.sd-on{border-color:#a9cdea;background:#f6fbff}
:is(#sdCertCards,#sdOmCards,#libCards) .file-row.previewed{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue)}
:is(#sdCertCards,#sdOmCards,#libCards) .file-row .checkbox{margin:0 2px 0 0}
:is(#sdCertCards,#sdOmCards,#libCards) .file-meta.sd-m-ok{color:#1f8a5b;font-weight:600}:is(#sdCertCards,#sdOmCards,#libCards) .file-meta.sd-m-warn{color:#a8690b;font-weight:600}:is(#sdCertCards,#sdOmCards,#libCards) .file-meta.sd-m-bad{color:#b23b36;font-weight:600}
.sd-lock-ic{font-size:12px;color:#9fb0bf;margin-right:2px}
#sdQualityCard.sd-fixed-off #sdCertFixed{opacity:.4}
.sd-model{display:flex;gap:8px;align-items:baseline;margin:10px 2px 0;font-size:12px}.sd-model b{color:var(--navy)}.sd-model span{color:#7890a3;font-size:11px}
:is(#sdCertCards,#sdOmCards,#libCards) .sd-missing{border-style:dashed;background:#fbfdff;cursor:default}.sd-q .file-icon{background:#eef3f8!important;color:#8aa0b2!important}
:is(#sdCertCards,#sdOmCards,#libCards) .sd-missing .btn{min-height:30px;padding:6px 10px}
.sd-link{border:0;background:none;color:var(--blue);font-weight:700;font-size:12px;padding:10px 2px 0;cursor:pointer;display:inline-flex;align-items:center;gap:6px;font-family:inherit;align-self:flex-start}
:is(#sdCertCards,#sdOmCards,#libCards) .sd-empty{display:block!important;margin:4px 2px}
:is(#sdCertCards,#sdOmCards,#libCards) .sd-removed{margin-top:8px}
html[data-theme="dark"] :is(#sdCertCards,#sdOmCards,#libCards) .file-row.sd-on{background:#13283a;border-color:#2c4a66}html[data-theme="dark"] .sd-model b{color:#e6eef5}html[data-theme="dark"] .sd-sub{color:#9fb6c9}
html[data-theme="dark"] :is(#sdCertCards,#sdOmCards,#libCards) .sd-missing{background:#101e2b}
@media(max-width:760px){:is(#sdCertCards,#sdOmCards,#libCards) .sd-missing{flex-wrap:wrap!important}:is(#sdCertCards,#sdOmCards,#libCards) .sd-missing .file-actions{width:100%!important;justify-content:flex-end}}
[data-icon="pencil"]{--ic:url("/static/icons/pencil.svg")}
/* V2.21.0: O&M Manuals card = the Data Booklets card (rules copied for #omList) */
#omList .wm-toggle{display:inline-flex!important;align-items:center;gap:6px;padding:3px 4px!important;font-size:0!important;background:none!important;border:0!important;box-shadow:none!important}
#omList .wm-toggle::before{content:"";flex:0 0 28px;width:28px;height:16px;border-radius:999px;background:radial-gradient(circle at 20px 50%,#fff 5.5px,transparent 6.2px),var(--brand)}
#omList .wm-toggle.wm-off::before{background:radial-gradient(circle at 8px 50%,#fff 5.5px,transparent 6.2px),#b8c3cd}
#omList .wm-toggle::after{content:"Watermark";font-size:11px;font-weight:600;color:var(--ink)}
#omList .wm-toggle.wm-off::after{color:var(--muted)}
html[data-theme="dark"] #omList .wm-toggle.wm-off::before{background:radial-gradient(circle at 8px 50%,#dfe7ee 5.5px,transparent 6.2px),#475a6b}
#sdOmView .om-card{margin-bottom:14px}
/* V2.21.1: the O&M card = the certificate cards (V2.23.2: the shared card rules are in the V2.20.6 block above; only the O&M extras here) */
#sdOmCards .file-actions .ap-more summary{list-style:none;cursor:pointer;border:1px solid #d0e0ed;border-radius:7px;min-width:28px;height:28px;display:grid;place-items:center;color:#326a90;font-weight:800}
#sdOmCards .file-actions .ap-more summary::-webkit-details-marker{display:none}
#sdOmCards .file-actions .ap-more{position:relative}#sdOmCards .file-actions .ap-more .tools-dropdown{position:absolute;right:0;top:32px;z-index:5;min-width:210px}
#sdOmCards .bk-check{font-size:11px;padding:3px 8px}
/* V2.21.1: step 04 — the three choices as cards side by side */
#sdTabsPanel.sd-tabs-panel{background:none;border:0;box-shadow:none;padding:0;margin-bottom:16px}
#sdTabsPanel .sd-tabcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:0;padding:0;background:none}
#sdTabsPanel .sd-tabcards .folder-main{display:flex!important;align-items:center;gap:12px;text-align:left;width:auto;min-height:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;color:var(--ink);box-shadow:var(--shadow);cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s;font-weight:400}
#sdTabsPanel .sd-tabcards .folder-main:hover{border-color:#b9d6ee}
#sdTabsPanel .sd-tab-ic{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#e8f3fc;color:#0b63b5}
#sdTabsPanel .sd-tab-ic::before{margin:0!important;width:20px!important;height:20px!important}
#sdTabsPanel .sd-tab-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}#sdTabsPanel .sd-tab-t b{font-size:14px;color:var(--navy)}#sdTabsPanel .sd-tab-t small{font-size:11.5px;color:var(--muted)}
#sdTabsPanel .sd-tab-n{font-size:11px;font-weight:700;color:#4c6d85;background:#f0f6fa;border-radius:20px;padding:5px 10px;white-space:nowrap}
#sdTabsPanel .sd-tabcards .folder-main.open{background:linear-gradient(120deg,#0969b1,#007dcf);border-color:transparent;box-shadow:0 6px 16px #0074c830}
#sdTabsPanel .folder-main.open .sd-tab-ic{background:rgba(255,255,255,.18);color:#fff}#sdTabsPanel .folder-main.open .sd-tab-t b,#sdTabsPanel .folder-main.open .sd-tab-t small{color:#fff}
#sdTabsPanel .folder-main.open .sd-tab-t small{opacity:.85}#sdTabsPanel .folder-main.open .sd-tab-n{background:rgba(255,255,255,.2);color:#fff}
html[data-theme="dark"] #sdTabsPanel .sd-tabcards .folder-main:not(.open){background:#122130;border-color:#27425c}
html[data-theme="dark"] #sdTabsPanel .folder-main:not(.open) .sd-tab-t b{color:#e6eef5}html[data-theme="dark"] #sdTabsPanel .folder-main:not(.open) .sd-tab-ic{background:#16304a;color:#8cc4f2}
html[data-theme="dark"] #sdTabsPanel .folder-main:not(.open) .sd-tab-n{background:#16283a;color:#b8cde0}
@media(max-width:760px){#sdTabsPanel .sd-tabcards{grid-template-columns:1fr;gap:8px}#sdTabsPanel .sd-tabcards .folder-main{padding:10px 12px}}
/* V2.21.1: Pre-Approvals header = the card header (number, count under the title) */
.sd-cardhead{display:flex;align-items:center;gap:12px}.sd-cardhead h2{margin:0 0 2px}.sd-subline{font-size:11.5px;color:var(--muted)}
/* V2.22.0: the Library page — the step-04 tab cards (V2.23.2: the card rules are shared, see the V2.20.6 block in 18-step04-certificates-om.css) */
#libTabs.sd-tabcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border:0;padding:0;background:none}
#libTabs.sd-tabcards .folder-main{display:flex!important;align-items:center;gap:12px;text-align:left;width:auto;min-height:0;background:#fff;border:1px solid var(--line);border-radius:16px;padding:14px 16px;color:var(--ink);box-shadow:var(--shadow);cursor:pointer;transition:border-color .15s,box-shadow .15s,background .15s;font-weight:400}
#libTabs.sd-tabcards .folder-main:hover{border-color:#b9d6ee}
#libTabs .sd-tab-ic{display:grid;place-items:center;flex:0 0 42px;width:42px;height:42px;border-radius:12px;background:#e8f3fc;color:#0b63b5}
#libTabs .sd-tab-ic::before{margin:0!important;width:20px!important;height:20px!important}
#libTabs .sd-tab-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}#libTabs .sd-tab-t b{font-size:14px;color:var(--navy)}#libTabs .sd-tab-t small{font-size:11.5px;color:var(--muted)}
#libTabs .sd-tab-n{font-size:11px;font-weight:700;color:#4c6d85;background:#f0f6fa;border-radius:20px;padding:5px 10px;white-space:nowrap}
#libTabs.sd-tabcards .folder-main.open{background:linear-gradient(120deg,#0969b1,#007dcf);border-color:transparent;box-shadow:0 6px 16px #0074c830}
#libTabs .folder-main.open .sd-tab-ic{background:rgba(255,255,255,.18);color:#fff}#libTabs .folder-main.open .sd-tab-t b,#libTabs .folder-main.open .sd-tab-t small{color:#fff}
#libTabs .folder-main.open .sd-tab-t small{opacity:.85}#libTabs .folder-main.open .sd-tab-n{background:rgba(255,255,255,.2);color:#fff}
html[data-theme="dark"] #libTabs.sd-tabcards .folder-main:not(.open){background:#122130;border-color:#27425c}
html[data-theme="dark"] #libTabs .folder-main:not(.open) .sd-tab-t b{color:#e6eef5}html[data-theme="dark"] #libTabs .folder-main:not(.open) .sd-tab-ic{background:#16304a;color:#8cc4f2}
html[data-theme="dark"] #libTabs .folder-main:not(.open) .sd-tab-n{background:#16283a;color:#b8cde0}
@media(max-width:760px){#libTabs.sd-tabcards{grid-template-columns:1fr;gap:8px}#libTabs.sd-tabcards .folder-main{padding:10px 12px}}
#libTabs.sd-tabcards{grid-template-columns:repeat(4,minmax(0,1fr));margin:0 0 16px}
#libCards.upload-categories{display:flex!important;flex-direction:column;gap:10px}
.lib-tool{display:flex;gap:8px;align-items:center;flex-wrap:wrap}.lib-tool .lib-q{flex:1 1 260px;min-width:200px}
.lib-tool input,.lib-tool select{border:1px solid #cfdee9;border-radius:9px;padding:9px 11px;font-size:12.5px;background:#fff;color:var(--ink);min-width:0}
.lib-seg{display:inline-flex;background:#eef4f9;border-radius:10px;padding:3px;gap:2px}.lib-seg .folder-main{border:0!important;background:none!important;border-radius:8px!important;padding:7px 12px!important;font-weight:700;font-size:12px;color:#4c6d85;box-shadow:none!important;min-height:0}
.lib-seg .folder-main.open{background:#fff!important;color:var(--blue);box-shadow:0 1px 4px rgba(14,47,77,.1)!important}
.lib-off{display:none!important}
.lib-ci{font-size:0!important}.lib-ci::before{margin:0!important;width:18px!important;height:18px!important}
#libCards .file-actions .doc-tag{margin-right:2px;white-space:nowrap}
.lib-facts{margin-top:10px;font-size:12px;color:var(--muted);line-height:1.8}.lib-facts b{color:var(--ink)}
#libCards .cs-default{margin-top:10px}
html[data-theme="dark"] .lib-tool input,html[data-theme="dark"] .lib-tool select{background:#0f1d2b;border-color:#36597a;color:#e6eef5}html[data-theme="dark"] .lib-seg{background:#16283a}
@media(max-width:760px){#libTabs.sd-tabcards{grid-template-columns:1fr 1fr}}
/* V2.22.1: Library — Fixed / Select apart (a divider), the filters on one line, one upload icon */
.lib-sub{font-size:10.5px;font-weight:800;letter-spacing:1.2px;text-transform:uppercase;color:#6b8397;margin:6px 2px 2px}
.lib-sub.lib-sep{margin-top:14px;padding-top:14px;border-top:2px dashed #cfdde8}
#libCards .file-row.sd-on{border-color:#a9cdea;background:#f6fbff}
.lib-tool select{width:auto!important;flex:0 0 auto;max-width:220px}
.lib-dt{font-weight:inherit}
html[data-theme="dark"] .lib-sub.lib-sep{border-top-color:#2c4a66}html[data-theme="dark"] #libCards .file-row.sd-on{background:#13283a;border-color:#2c4a66}
/* V2.22.2: Library > Certificates — Quality / Test as two clear boxes side by side */
.lib-tool .lib-kinds{flex:1 1 100%}
.lib-kinds{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;margin-bottom:2px}
.lib-kinds .folder-main{display:flex!important;align-items:center;gap:10px;text-align:left;background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:11px 14px;min-height:0;color:var(--ink);box-shadow:var(--shadow);cursor:pointer;font-weight:400}
.lib-kinds .folder-main:hover{border-color:#9cc8ea}
.lib-kinds .lk-ic{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:#e8f3fc;color:#0b63b5}.lib-kinds .lk-ic::before{margin:0!important;width:18px!important;height:18px!important}
.lib-kinds .lk-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.lib-kinds .lk-t b{font-size:13.5px;color:var(--navy)}.lib-kinds .lk-t small{font-size:11px;color:var(--muted)}
.lib-kinds .lk-n{font-size:12px;font-weight:800;color:#4c6d85;background:#f0f6fa;border-radius:20px;padding:4px 10px}
.lib-kinds .folder-main.open{border-color:#0b63b5;background:#eef6fd;box-shadow:0 0 0 3px #0b63b51a}
.lib-kinds .folder-main.open .lk-ic{background:#0b63b5;color:#fff}.lib-kinds .folder-main.open .lk-n{background:#0b63b5;color:#fff}
html[data-theme="dark"] .lib-kinds .folder-main{background:#122130;border-color:#27425c}html[data-theme="dark"] .lib-kinds .lk-t b{color:#e6eef5}html[data-theme="dark"] .lib-kinds .folder-main.open{background:#16304a;border-color:#4b9be0}
@media(max-width:760px){.lib-kinds{grid-template-columns:1fr}}
/* V2.22.4: the company libraries (Library + Fixed Files) on the brand gradient (cyan → blue → navy), white cards on top,
   so nobody thinks they upload to a project. Buttons and boxes keep the normal blue. */
body:is([data-view="certificates"],[data-view="fixed"]) main.shell{background:linear-gradient(135deg,#1fb5f5 0%,#0b7fd6 28%,#0b63b5 52%,#0e3f6e 78%,#0a2238 100%)!important}
:is(#certificatesView,#fixedView) .page-head :is(h1,.subhead,.ph-crumb,.ph-part,.crumb-link){color:#fff!important}
:is(#certificatesView,#fixedView) .page-head .subhead{opacity:.88}
:is(#certificatesView,#fixedView) .page-head .ph-icon{background:rgba(255,255,255,.18)!important;color:#fff!important;box-shadow:none!important}
#libCards .category-card,#certificatesView .sd-preview,#fixedView .page-body{background:#fff!important;backdrop-filter:none!important}
#libCards .file-row{background:#fff}#libCards .file-row.sd-on{background:#f6fbff}
#certificatesView .lib-tool :is(input,select){background:#fff!important}
#certificatesView .cs-count{background:#fff!important}
#libTabs.sd-tabcards .folder-main:not(.open){background:rgba(255,255,255,.9)}
#libTabs.sd-tabcards .folder-main.open{background:#fff!important;box-shadow:0 0 0 3px rgba(255,255,255,.45),0 8px 18px rgba(0,0,0,.18)!important}
#libTabs .folder-main.open .sd-tab-t b{color:#0b63b5!important}#libTabs .folder-main.open .sd-tab-t small{color:#4c6d85!important;opacity:1}
#libTabs .folder-main.open .sd-tab-ic,#libTabs .folder-main.open .sd-tab-n{background:#0b63b5!important;color:#fff!important}
.lib-kinds .folder-main{background:#fff}
html[data-theme="dark"] body:is([data-view="certificates"],[data-view="fixed"]) main.shell{background:linear-gradient(135deg,#0b5a8a 0%,#0a4a85 35%,#0c3560 70%,#071726 100%)!important}
html[data-theme="dark"] :is(#libCards .category-card,#certificatesView .sd-preview,#fixedView .page-body){background:#102030!important}
html[data-theme="dark"] #libCards .file-row{background:#122130}
/* V2.22.5: round icon buttons — the icon exactly in the middle everywhere (the hidden word left a 5px gap that pushed it aside) */
.mini.icon-only{gap:0!important;padding:0!important;justify-content:center!important;align-items:center!important}
.mini.icon-only::before{margin:0!important}
/* V2.24.0: Companies library pickers in Project Details */
.co-pick{position:relative;display:block;margin-top:6px}
.co-pick>input{width:100%;margin-top:0!important}
.co-pick .co-logo{position:absolute;right:8px;top:50%;transform:translateY(-50%);height:26px;max-width:72px;object-fit:contain;background:#fff;border-radius:6px;padding:2px 5px;border:1px solid #e3ebf2;pointer-events:none}
.co-pick .co-logo:not(.hidden)~input{padding-right:92px}
.co-pop{position:absolute;z-index:30;left:0;right:0;top:calc(100% + 4px);max-height:280px;overflow:auto;background:var(--surface,#fff);border:1px solid #d6e0e8;border-radius:12px;box-shadow:0 12px 32px rgba(15,40,70,.18);padding:4px}
.co-pop.hidden{display:none}
.co-row{display:flex;align-items:center;gap:10px;padding:6px 8px;border-radius:8px;cursor:pointer;position:relative}
.co-row:hover{background:rgba(30,100,170,.08)}
.co-pic{flex:0 0 54px;height:28px;display:flex;align-items:center;justify-content:center}
.co-pic img{max-height:28px;max-width:54px;object-fit:contain;background:#fff;border-radius:5px;padding:1px 3px}
.co-name{flex:1;min-width:0;font-weight:600;font-size:13px}
.co-name small{display:block;font-weight:400;font-size:11px;opacity:.65}
.co-more{border:0;background:transparent;font-size:18px;line-height:1;padding:2px 8px;border-radius:8px;cursor:pointer;color:inherit}
.co-more:hover{background:rgba(30,100,170,.14)}
.co-menu{position:absolute;right:6px;top:100%;z-index:40;display:flex;flex-direction:column;min-width:110px;background:var(--surface,#fff);border:1px solid #d6e0e8;border-radius:10px;box-shadow:0 8px 22px rgba(15,40,70,.2);padding:4px}
.co-menu button{border:0;background:transparent;text-align:left;padding:7px 10px;border-radius:7px;cursor:pointer;font:inherit;color:inherit}
.co-menu button:hover{background:rgba(30,100,170,.1)}
.co-menu .red{color:#c0392b}
.co-empty{padding:8px 10px;font-size:12px;opacity:.65}
.co-add{display:block;width:100%;text-align:left;border:0;border-top:1px solid #e3ebf2;margin-top:4px;background:transparent;padding:9px 10px;font:inherit;font-weight:700;color:#1565a8;cursor:pointer;border-radius:0 0 8px 8px}
.co-add:hover{background:rgba(30,100,170,.08)}
html[data-theme="dark"] .co-pop,html[data-theme="dark"] .co-menu{background:#17222d;border-color:#2c3c4b}
html[data-theme="dark"] .co-add{border-color:#2c3c4b;color:#7ab8ee}
html[data-theme="dark"] .co-row:hover{background:rgba(120,180,240,.12)}
/* V2.24.0: Pump Schedule card (03 Upload Files) */
.ps-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ps-card.ps-compact .panel-heading{margin-bottom:0}
.ps-notice{margin:10px 0;padding:9px 12px;border-radius:12px;background:#fff8e6;border:1px solid #f0d58c;font-size:12px;color:#6b4b00;line-height:1.7}
.ps-chip{display:inline-block;margin:2px 4px 0 0;padding:1px 8px;border-radius:999px;background:#fdecc0;font-weight:600;font-size:11px}
.ps-scroll{overflow:auto;max-width:100%;border:1px solid var(--line);border-radius:12px;margin-top:10px}
.ps-table{border-collapse:collapse;font-size:12px;min-width:100%}
.ps-table th{position:sticky;top:0;background:#eef4fa;color:var(--ink);font-size:11px;padding:6px 8px;text-align:left;white-space:nowrap;border-bottom:1px solid var(--line);z-index:1}
.ps-table td,.ps-table th.ps-lab{padding:0;border-bottom:1px solid #e6edf3;border-right:1px solid #eef2f6}
.ps-pump:nth-child(even) .ps-spec>td,.ps-pump:nth-child(even) .ps-spec>th{filter:saturate(.95)}
.ps-lab{position:static!important;font-size:10px!important;text-transform:uppercase;letter-spacing:.04em;padding:6px 8px!important;white-space:nowrap}
.ps-spec>td,.ps-spec>th.ps-lab{background:#e6f1fb}
.ps-prop>td,.ps-prop>th.ps-lab{background:#fff6cc}
.ps-prop>td.ps-diff{background:#f2c200;font-weight:800}
.ps-tag{background:#fff!important;min-width:110px;vertical-align:middle;padding:4px!important}
.ps-tag .ps-in{font-weight:800}
.ps-in{width:100%;min-width:70px;border:0;background:transparent;padding:6px 8px;font:inherit;font-size:12px;color:inherit;border-radius:0}
.ps-in:focus{outline:2px solid var(--brand);outline-offset:-2px;background:rgba(255,255,255,.7)}
td.ps-edited{position:relative}
.ps-ed{position:absolute;right:3px;top:1px;font-size:8px;font-style:normal;font-weight:800;color:#1565a8;text-transform:uppercase;pointer-events:none}
.ps-na{background:#f5f8fb!important}
.ps-badge{display:inline-block;margin:2px 8px;padding:1px 7px;border-radius:999px;background:#f2c200;color:#4a3800;font-size:10px;font-weight:800}
.ps-del{background:#fff!important;padding:2px 6px!important;vertical-align:middle}
.ps-foot{margin-top:10px;display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.ps-newtag{max-width:170px;padding:6px 10px;border:1px solid var(--line);border-radius:10px;font:inherit;font-size:12px}
html[data-theme="dark"] .ps-table th{background:#1d2a37;color:#dbe6ef}
html[data-theme="dark"] .ps-spec>td,html[data-theme="dark"] .ps-spec>th.ps-lab{background:#1b3248}
html[data-theme="dark"] .ps-prop>td,html[data-theme="dark"] .ps-prop>th.ps-lab{background:#3a3315}
html[data-theme="dark"] .ps-prop>td.ps-diff{background:#a58300;color:#fff}
html[data-theme="dark"] .ps-tag,html[data-theme="dark"] .ps-del{background:#17222d!important}
html[data-theme="dark"] .ps-na{background:#1a242e!important}
html[data-theme="dark"] .ps-notice{background:#3a3315;border-color:#6b5a1d;color:#f1dc9a}
@media (max-width:720px){.ps-actions .btn{flex:1 1 auto}}
.ps-in[data-f="system"],.ps-in[data-f="location"],.ps-in[data-f="type"],.ps-in[data-f="remarks"],.ps-in[data-f="base_type"],.ps-in[data-f="model"]{min-width:140px}
.ps-in[data-f="fluid"],.ps-in[data-f="floor"],.ps-in[data-f="product_no"]{min-width:90px}
.ps-sheets{margin:10px 0 0;display:flex;flex-direction:column;gap:6px}
.ps-sheet{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12.5px}
.ps-sheet small{font-weight:400;color:var(--muted)}
.ps-when{font-size:11px;color:var(--muted)}
.ps-sheet a.mini{padding:3px 10px;border:1px solid var(--line);border-radius:999px;text-decoration:none;font-weight:700;color:var(--brand)}
.ps-opts{display:flex;gap:14px;flex-wrap:wrap;align-items:center;font-size:12px;color:var(--muted)}
.ps-opts label{display:inline-flex;gap:5px;align-items:center;color:var(--ink)}
.ps-opts label.dim{opacity:.5}
.ps-xh{background:#e9f7ef!important}
.ps-paste-text{width:100%;min-height:200px;font:12px/1.5 ui-monospace,Menlo,monospace;border:1px solid var(--line);border-radius:12px;padding:10px;margin:8px 0;resize:vertical}
#psPasteMap select{min-width:130px;font-size:11px}
/* ===== V2.26.7: TSM logo = the blue mark (image) + the words as real text (sharp, and light in dark mode).
   Sign-in: stacked in the middle. Side menu and phone top bar: mark | words. Folded menu: the mark only. ===== */
.tsm-lock{display:flex;align-items:center;gap:10px;min-width:0}
.tsm-lock .tsm-mark{display:block;height:54px;width:auto;flex:0 0 auto}
.tsm-bar{width:2px;align-self:stretch;border-radius:2px;background:linear-gradient(#5b6670,#7cc4f5)}
.tsm-words{display:flex;flex-direction:column;line-height:1.05;min-width:0}
.tsm-words b{font-size:30px;font-weight:700;color:#6d6f71;letter-spacing:.5px}
.tsm-words em{font-style:normal;font-size:10.5px;font-weight:600;color:#0a63c9;margin-top:3px;white-space:nowrap}
.tsm-words small{font-size:10px;font-weight:700;color:#7a8088;letter-spacing:2px;margin-top:4px}
html[data-theme="dark"] .tsm-words b{color:#e3e6ea}
html[data-theme="dark"] .tsm-words em{color:#6fb3ff}
html[data-theme="dark"] .tsm-words small{color:#aab2bd}
/* sign-in card */
.tsm-stack{flex-direction:column;gap:10px;text-align:center;margin:4px 0 6px}
.tsm-stack .tsm-mark{height:86px}
.tsm-stack .tsm-bar{display:none}
.tsm-stack .tsm-words{align-items:center}
.tsm-stack .tsm-words b{font-size:38px}
.tsm-stack .tsm-words em{font-size:15px}
.tsm-stack .tsm-words small{font-size:11px}
.login-card>p:not(.login-error):not(.login-help){text-align:center;padding-bottom:18px;border-bottom:1px solid var(--line)}
.login-card .login-help{text-align:center}
/* side menu */
.side-logo{padding:6px 6px 14px}
/* phone top bar (old .brand img rules must not stretch the mark) */
.brand .tsm-lock .tsm-mark{width:auto!important;height:40px!important;max-height:none}
.tsm-top .tsm-words b{font-size:22px}
.tsm-top .tsm-words em{font-size:9.5px}
.tsm-top .tsm-words small{display:none}
/* < 1200px: folded side menu shows the mark only */
@media(min-width:761px) and (max-width:1199px){
  .side-logo .tsm-lock{justify-content:center}
  .side-logo .tsm-lock .tsm-mark{width:auto;max-width:none;height:40px;object-fit:contain}
  .side-logo .tsm-bar,.side-logo .tsm-words{display:none}
}
/* V2.27.0: the logo opens the Overview; a bigger "+ New" in the top bar */
.side-logo .tsm-lock,.brand .tsm-lock{cursor:pointer;border-radius:12px;transition:opacity .15s}
.side-logo .tsm-lock:hover,.brand .tsm-lock:hover{opacity:.85}
.side-logo .tsm-lock:focus-visible,.brand .tsm-lock:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
.topbar #newProject{min-height:48px;padding:0 26px;font-size:16px;font-weight:800;gap:8px}
.topbar #newProject svg{width:19px;height:19px}
@media(max-width:760px){.topbar #newProject{min-height:42px;padding:0 18px;font-size:15px}}
/* V2.27.0: Pump Selection files are never printed (Arrange note) */
.arrange-title small.not-printed{display:block;color:var(--muted,#6b7785);font-style:italic;margin-top:2px}
/* V2.28.0: Fixed Files - one tab per brand, under Technical Submittal / PQD, on the left like them */
#fixedBrandSwitch{display:flex!important;flex-wrap:wrap;justify-content:flex-start;margin:4px 0 4px}
#fixedBrandSwitch .mode-btn small{opacity:.7;margin-left:4px}
