/* Project navigation and account library; configurator surfaces retain their own styles. */
.workspace-v2 #quoterow[hidden]{display:none!important}
#toast{display:flex;visibility:hidden;align-items:center;gap:12px;top:76px;bottom:auto!important;max-width:min(560px,calc(100vw - 24px));padding:12px 16px!important;font-size:13px!important;pointer-events:none}
#toast.show{visibility:visible;pointer-events:auto}
#toastMessage{min-width:0;overflow-wrap:anywhere}
#toastDismiss{border:0;background:transparent;color:inherit;font-size:22px;cursor:pointer;padding:4px;flex:none}
.workspace-import{width:min(440px,calc(100vw - 24px));border:1px solid #d5dfe4;border-radius:8px;padding:22px;color:#23313a}
.workspace-import form{display:grid;gap:16px}
.workspace-import label{display:grid;gap:7px;font-size:13px}
.workspace-import label[hidden]{display:none}
.workspace-import input,.workspace-import select{width:100%;min-width:0;box-sizing:border-box;font:inherit;padding:9px;border:1px solid #c4d2dc;border-radius:5px}
.workspace-import h2{font-size:18px;margin:0}
.workspace-import form>div{display:flex;justify-content:flex-end;gap:10px}
#transfer-error{color:#a51b35;margin:0;font-size:13px}
.workspace-v2{--tools-width:192px;--v2-accent:#21765b;--v2-ink:#23313a;padding-right:var(--tools-width);color:var(--v2-ink)}
.workspace-v2.tools-collapsed{--tools-width:58px}
.workspace-v2 #topbar{min-height:64px;height:auto;gap:12px;padding:10px 18px;background:#fff;color:#304d5e;border-bottom:1px solid #dce4e8;box-shadow:none}
.workspace-v2 #topbar .home,.workspace-v2 #topbar .acctchip{color:#304d5e}
.workspace-v2 #topbar .home .mk b,.workspace-v2 #topbar .home .mk small{letter-spacing:0}
.workspace-v2 #topbar .home{flex-shrink:0}
.workspace-v2 #topbar .projsel,.workspace-v2 #btnRename,.workspace-v2 #demoBadge{display:none!important}
.workspace-v2 #navBtn{display:flex;align-items:center;gap:8px;background:#f5f7f8;border:1px solid #d9e1e5;border-radius:6px;color:#334b59;padding:9px 12px;min-width:0}
.workspace-v2 #navName{text-align:left;white-space:normal;font-size:12px;line-height:1.4}
.workspace-v2 #navName small{display:block;font-weight:400;color:#657580;font-size:11px}
.workspace-v2 .acctchip{max-width:230px;min-width:0}
.workspace-v2 #projbar{display:none}
.workspace-v2 #v2ProjectHeader{display:none}
.workspace-v2.in-project #v2ProjectHeader{display:grid;grid-template-columns:auto minmax(0,1fr)}
#v2ProjectHeader{gap:8px 16px;align-items:center;padding:12px 18px;border-bottom:1px solid #dae2e6;background:#fff;min-width:0;flex:none}
#v2ProjectImage{width:70px;height:62px;object-fit:contain;background:#f4f6f7;border:1px solid #e0e6e9;border-radius:6px;flex:none}
#v2ProjectHeader>div{min-width:0;flex:1}
.v2-project-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap;min-width:0}
.v2-project-title h1{font-size:19px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.v2-project-title .v2-button{padding:4px 7px;font-size:11px}
#v2ProjectNotes{font:inherit;font-size:12px;color:#657580;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0;border:0;background:none;text-align:left;cursor:pointer;flex:1 1 200px;min-width:0;padding:4px 0}
#v2ProjectNotes[aria-expanded=true]{flex-basis:100%;white-space:pre-wrap;overflow-wrap:anywhere}
#v2ProjectNotes:focus-visible{outline:2px solid #278c9c;outline-offset:2px}
#v2ProjectNotes:empty{display:none}
#v2ProjectMeta{display:flex;gap:18px;flex-wrap:wrap;font-size:11px;color:#596d79;margin-top:4px}
#v2ProjectMeta small{font-size:10px;color:#83909a;overflow-wrap:anywhere}
#v2Rail{position:fixed;right:0;top:0;bottom:0;width:var(--tools-width);border-left:1px solid #dae2e6;background:#fbfcfd;z-index:45;padding:9px 7px;display:flex;flex-direction:column;gap:8px;overflow:auto}
#v2Rail .v2-rail-button,#v2Rail #chatLaunch{display:flex;align-items:center;gap:10px;padding:10px 9px;min-height:54px;width:100%;border:1px solid transparent;border-radius:6px;background:transparent;color:#3d5260;text-align:left;position:static;box-shadow:none;font:inherit;cursor:pointer;flex-shrink:0}
#v2Rail .v2-rail-button:hover{background:#eef3f5;border-color:#dce4e8}
#v2Rail .v2-rail-button svg{width:22px;height:22px;flex:none}
#v2Rail .v2-rail-button span{min-width:0}
#v2Rail .v2-rail-button b{display:block;font-size:12px;font-weight:650;white-space:normal}
#v2Rail .v2-rail-button small{display:block;font-size:10px;line-height:1.4;color:#71838f;margin-top:3px}
#v2Rail #v2RailToggle{border-bottom:1px solid #e1e6e9;border-radius:0;min-height:54px;margin-bottom:7px}
.tools-collapsed #v2Rail .v2-rail-button span{display:none}
.tools-collapsed #v2Rail .v2-rail-button{justify-content:center;padding:10px 0}
.workspace-v2 #chatPanel{right:calc(var(--tools-width) + 12px);bottom:14px;max-width:calc(100vw - var(--tools-width) - 24px)}
.v2-button,.v2-icon{font:inherit;font-size:12px;display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid #d5dfe4;border-radius:6px;background:#fff;color:#344f5f;cursor:pointer;padding:9px 12px;text-decoration:none;line-height:1.3}
.v2-button svg,.v2-icon svg{flex:none;width:17px;height:17px}
.v2-button:hover,.v2-icon:hover{background:#eef3f5;border-color:#a8bdc9}
.v2-button.primary{background:#21765b;border-color:#21765b;color:#fff}
.v2-button.primary:hover{background:#175b45}
.v2-icon{width:34px;height:34px;padding:6px;flex:none}
.v2-button:focus-visible,.v2-icon:focus-visible,[data-v2]:focus-visible{outline:2px solid #278c9c;outline-offset:2px}
.workspace-v2 #quoterow{padding:8px 12px;gap:8px;flex-wrap:wrap;flex-shrink:0;background:#fff9de;overflow:visible}
.workspace-v2 #qtyBar{min-width:0;flex-shrink:1;flex-wrap:wrap;flex:1 1 340px;gap:7px;padding:0}
.workspace-v2 #qtyBar .qlbl{flex:0 0 100%;font-size:11px;color:#75642e}
#v2Duplicate{margin-left:auto;align-self:center;white-space:nowrap;font-size:11px;padding:7px 9px;background:#fffdf5}
#v2EstimateBand{display:flex;align-items:center;gap:10px;padding:8px 12px;background:#edf7f0;border-bottom:1px solid #c8dfcd;flex:0 0 auto;flex-wrap:wrap}
#v2EstimateBand #bomEstimate{border:0;flex:1 1 200px;min-width:0;margin:0;background:transparent;max-height:160px;overflow:auto}
#v2EstimateBand .estimate-row{padding:0;gap:7px;flex-wrap:wrap;min-width:0}
#v2EstimateBand .estimate-row>strong{flex-basis:100%;width:auto;font-size:11px}
#v2EstimateBand .estimate-price{width:auto;min-width:80px;flex:0 0 auto;white-space:nowrap;border:1px solid #c8dfcd;border-radius:4px;background:#f9fffb;padding:4px 2px}
#v2EstimateBand .estimate-status{padding:0;flex-wrap:wrap}
#v2EstimateBand .estimate-disclaimer,#v2EstimateBand .estimate-note{padding:3px 0}
#v2EstimateBand #btnRfq{position:static!important;background:#21765b;border:1px solid #196047;color:#fff;border-radius:6px;padding:10px 12px;box-shadow:none;font-size:12px;flex:none;margin-left:auto}
#v2EstimateBand #btnRfq:disabled{opacity:.45;cursor:not-allowed}
#v2EstimateBand #qtyBar{flex:1 1 340px;gap:6px;align-items:center;display:flex;flex-wrap:wrap}
#v2EstimateBand #qtyBar .qlbl{font-size:10px;flex-basis:100%;color:#49695b}
#v2EstimateBand .qhint{display:none}
#v2EstimateBand .qslot{display:grid;grid-template-columns:minmax(45px,1fr) 16px;flex:0 0 80px;min-width:0;max-width:90px;background:#fff;border:1px solid #c8dfcd;border-radius:4px;overflow:hidden}
#v2EstimateBand .qslot input{width:100%;min-width:0;border:0;background:transparent;text-align:center;padding:5px 0;font-size:12px}
#v2EstimateBand .qx{position:static;border:0;padding:0;background:none;width:16px;font-size:12px}
#v2EstimateBand .v2-slot-price{grid-column:1/-1;text-align:center;font-size:13px;color:#24634b;padding:0 4px 5px;white-space:nowrap}
#v2EstimateBand .v2-slot-price:empty{display:none}
#v2EstimateBand.has-paired-prices .estimate-row{display:none}
#v2EstimateBand #bomEstimate{flex-basis:100%;max-height:none;overflow:visible}
#v2EstimateBand #bomEstimate:empty{display:none}
#v2EstimateBand #v2Duplicate{margin:0;font-size:10px;padding:7px}
/* Keep the complete quantity/estimate workflow inside one responsive band. */
#v2EstimateBand{display:grid;grid-template-columns:minmax(0,1fr) auto auto;align-items:center;min-width:0;max-width:100%;box-sizing:border-box}
#v2EstimateBand #qtyBar{min-width:0;max-width:100%;width:100%}
#v2EstimateBand #bomEstimate{grid-column:1/-1;width:100%;min-width:0;max-width:100%;max-height:none;overflow:visible;box-sizing:border-box}
#v2EstimateBand .estimate-status{align-items:baseline;gap:6px 12px;min-width:0;max-width:100%;line-height:1.5}
#v2EstimateBand .estimate-status strong{flex:0 1 auto;overflow-wrap:anywhere}
#v2EstimateBand .estimate-status span{flex:1 1 260px;overflow-wrap:anywhere;white-space:normal}
#v2EstimateBand .estimate-note,#v2EstimateBand .estimate-disclaimer{min-width:0;max-width:100%;overflow-wrap:anywhere;white-space:normal}
#v2EstimateBand .estimate-disclaimer p{margin:6px 0;line-height:1.5}
#v2EstimateBand .v2-slot-price{white-space:normal;overflow-wrap:anywhere;line-height:1.3}
@media(max-width:1000px){#v2EstimateBand{grid-template-columns:minmax(0,1fr) auto}#v2EstimateBand #qtyBar{grid-column:1/-1}#v2EstimateBand #btnRfq{justify-self:start;margin-left:0}#v2EstimateBand #v2Duplicate{justify-self:end}}
@media(max-width:480px){#v2EstimateBand{grid-template-columns:minmax(0,1fr)}#v2EstimateBand #btnRfq,#v2EstimateBand #v2Duplicate{justify-self:stretch;white-space:normal;justify-content:center}#v2EstimateBand .qslot{flex:1 0 76px;max-width:110px}}
.workspace-v2 #viewBuilder{padding:12px;gap:14px}
#viewDashboard{height:100%;overflow:auto;padding:26px 30px 50px;background:#f5f7f8}
.v2-dashboard-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}
.v2-dashboard-head small{font-size:10px;font-weight:700;color:#738894;letter-spacing:0}
.v2-dashboard-head h1{font-size:25px;margin:5px 0 0;line-height:1.25;overflow-wrap:anywhere}
.v2-dashboard-head>.v2-button{background:#21765b;color:#fff;border-color:#21765b;flex:none}
.v2-dash-tabs{display:flex;gap:24px;border-bottom:1px solid #d8e1e6;overflow:auto}
.v2-dash-tabs button{font:inherit;font-size:13px;padding:12px 0;display:flex;align-items:center;gap:7px;background:none;border:0;border-bottom:2px solid transparent;color:#6d7f8a;white-space:nowrap;cursor:pointer}
.v2-dash-tabs button svg{width:17px;height:17px}
.v2-dash-tabs button[aria-current=page]{color:#236c58;border-bottom-color:#21765b;font-weight:650}
.v2-dashboard-tools{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:22px 0 16px}
.v2-search{display:flex;align-items:center;gap:9px;border:1px solid #d6e0e5;border-radius:6px;padding:8px 12px;background:white;max-width:420px;min-width:0;flex:1}
.v2-search svg{width:17px;height:17px;color:#8798a3;flex:none}
.v2-search input{border:0;outline:0;background:transparent;min-width:0;width:100%;font:inherit;font-size:13px;color:#233b49}
.v2-folders{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:22px;align-items:center}
.v2-folders button{font:inherit;font-size:12px;display:flex;align-items:center;gap:6px;border:1px solid #dce4e8;background:#fff;color:#4d6472;border-radius:5px;padding:7px 10px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}
.v2-folders button[aria-pressed=true]{background:#e5f1eb;color:#236448;border-color:#b4d5c2}
.v2-folders svg{width:15px;height:15px;flex:none}
.v2-folders small{color:#7a8d97}
.v2-project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(270px,100%),1fr));gap:18px}
.v2-project{position:relative;border:1px solid #dbe3e7;background:white;border-radius:8px;overflow:hidden;min-width:0}
.v2-project.is-selected{border-color:#21765b;box-shadow:0 0 0 1px #21765b}
.v2-project-select{position:absolute;top:10px;left:10px;z-index:1;display:grid;place-items:center;width:32px;height:32px;border:1px solid #d5dfe4;border-radius:5px;background:#fff;cursor:pointer}
.v2-project-select input,.v2-selection-bar input,.v2-folder-picker input{width:17px;height:17px;margin:0;accent-color:#21765b;cursor:pointer;flex:none}
.v2-project-select:focus-within{outline:2px solid #278c9c;outline-offset:2px}
.v2-selection-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px;min-height:36px}
.v2-selection-bar>label{display:flex;align-items:center;gap:9px;font-size:12px;color:#4d6472;margin-right:auto;cursor:pointer;min-height:34px}
.v2-selection-bar .v2-button{padding:8px 10px}
.v2-button:disabled,.v2-icon:disabled{opacity:.45;cursor:default}
.v2-folder-picker{display:flex;flex-direction:column;gap:6px}
.v2-folder-picker>label{display:flex;align-items:center;gap:12px;padding:9px;border:1px solid #dce4e8;border-radius:5px;cursor:pointer;min-width:0}
.v2-folder-picker>label:has(input:checked){border-color:#21765b;background:#edf7f1}
.v2-folder-picker img{width:56px;height:42px;object-fit:contain;background:#f0f3f4;flex:none}
.v2-folder-picker span{min-width:0;overflow-wrap:anywhere}
.v2-folder-picker small{display:block;font-size:11px;color:#657580;margin-top:4px}
.v2-project-open{display:block;background:transparent;border:0;padding:0;width:100%;text-align:left;font:inherit;color:inherit;cursor:pointer}
.v2-cover{width:100%;height:160px;object-fit:contain;display:block;background:#f0f3f4;padding:14px}
.v2-project-open:hover .v2-cover{background:#eaf0f2}
.v2-project-copy{display:block;padding:16px;min-height:144px}
.v2-project-copy h3{margin:7px 0;font-size:16px;line-height:1.35;overflow-wrap:anywhere}
.v2-project-copy>span{display:block;font-size:12px;color:#6a7f8b;overflow-wrap:anywhere}
.v2-project-copy small{display:block;font-size:10px;color:#7b8c96;line-height:1.5}
.v2-project-copy small:last-child{margin-top:14px}
.v2-card-actions{border-top:1px solid #edf0f2;padding:9px 12px;display:flex;align-items:center;gap:8px}
.v2-card-actions .v2-button{padding:6px 9px;border:0;font-size:11px}
.v2-card-actions .v2-icon{margin-left:auto;border:0;color:#8b989f}
.v2-card-actions .v2-move-project{margin-left:0;color:#344f5f}
.v2-empty{padding:45px 20px;text-align:center;color:#73858f;grid-column:1/-1}
.v2-empty h3{font-size:17px;color:#415966;margin:12px 0 18px}
.v2-empty p{font-size:13px}
.v2-part{display:flex;align-items:center;gap:14px;width:100%;background:white;border:0;border-bottom:1px solid #dfe6e9;padding:12px;text-align:left;font:inherit;font-size:12px;cursor:pointer;color:#344e5d}
.v2-part img{width:64px;height:52px;object-fit:contain;flex:none}
.v2-part>span:first-of-type{flex:1;min-width:0;overflow-wrap:anywhere}
.v2-part small{display:block;color:#7c8f99;margin-top:4px}
.v2-file-row{display:flex;align-items:center;gap:12px;padding:12px 0;border-bottom:1px solid #e1e7ea}
.v2-file-name{border:0;background:transparent;font:inherit;text-align:left;min-width:0;flex:1;cursor:pointer;color:#324e5e;overflow-wrap:anywhere}
.v2-file-name b{font-size:13px}.v2-file-name small{display:block;color:#8a98a0;font-size:10px;margin-top:5px}
.v2-file-icon{padding:9px;background:#eaf1f4;border-radius:5px;color:#597b8e;display:flex}
.v2-file-project{font-size:11px;color:#758995;max-width:25%;overflow-wrap:anywhere}
.v2-file-tools{display:flex;align-items:center;gap:12px;font-size:12px;color:#778b98}
.v2-file-preview{width:100%;max-height:55vh;object-fit:contain;background:#f4f7f8;margin-bottom:16px}
.v2-pdf{width:100%;height:55vh;border:1px solid #d6e0e5;margin-bottom:16px}
.v2-account{padding:10px 0;max-width:720px}.v2-account h2{font-size:22px}.v2-account p{color:#72858e;font-size:13px}
.v2-account dl{display:grid;grid-template-columns:120px 1fr;font-size:13px;gap:15px;margin:25px 0}.v2-account dt{color:#82919a}.v2-account dd{margin:0;overflow-wrap:anywhere}
.v2-account-actions{display:flex;gap:10px;flex-wrap:wrap}
#v2Dialog{border:1px solid #d9e2e7;border-radius:8px;width:min(680px,calc(100vw - 28px));max-height:90dvh;padding:0;color:#2d4755;box-shadow:0 18px 80px #102f4938}
#v2Dialog::backdrop{background:#152b3c73}
#v2Dialog form{margin:0;display:flex;flex-direction:column;max-height:88dvh}
#v2Dialog header{display:flex;align-items:center;gap:12px;justify-content:space-between;padding:17px 22px;border-bottom:1px solid #e2e7ea;flex:none}
#v2Dialog h2{font-size:18px;line-height:1.3;margin:0;overflow-wrap:anywhere}
.v2-dialog-body{padding:20px 22px;overflow:auto;min-height:0;font-size:13px}
#v2Dialog footer{display:flex;gap:10px;justify-content:flex-end;padding:14px 22px;border-top:1px solid #e2e7ea;flex:none}
.v2-dialog-body>label{display:block;font-size:12px;font-weight:600;margin-bottom:16px}
.v2-dialog-body label>input:not([type=radio]):not([type=checkbox]),.v2-dialog-body label>select,.v2-dialog-body label>textarea{display:block;box-sizing:border-box;width:100%;margin-top:7px;border:1px solid #cbd8df;background:#fff;border-radius:5px;padding:10px;font:inherit;font-size:14px;color:#304d5e}
.v2-dialog-body textarea{resize:vertical;min-height:85px}
.v2-dialog-body fieldset{border:0;padding:0;margin:0 0 18px}
.v2-dialog-body legend{font-size:12px;font-weight:600;margin-bottom:10px}
.v2-types label{display:inline-flex;align-items:center;gap:6px;margin:0 18px 8px 0;font-size:13px}
.v2-starters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}
.v2-starters label{border:1px solid #d6e0e6;border-radius:6px;overflow:hidden;font-size:11px;cursor:pointer}
.v2-starters label:has(input:checked){border-color:#27866a;box-shadow:0 0 0 1px #27866a}
.v2-starters img{width:100%;height:67px;object-fit:contain;background:#f3f6f7;padding:5px}
.v2-starters span{display:flex;align-items:center;gap:4px;padding:8px 5px;overflow-wrap:anywhere}
.v2-number{font-size:10px;color:#8497a2;overflow-wrap:anywhere}
#v2Error{color:#b33838;font-size:12px;white-space:pre-wrap}#v2Error:empty{display:none}
@media(min-width:1081px) and (max-width:1300px){.workspace-v2:not(.tools-collapsed) #viewBuilder{grid-template-columns:220px minmax(0,1fr)}.workspace-v2:not(.tools-collapsed) #catalogPane{grid-column:1/-1;min-height:260px}.workspace-v2:not(.tools-collapsed) #viewBuilder{overflow:auto}.workspace-v2:not(.tools-collapsed) .catresize{display:none}}
@media(max-width:767px){
  .workspace-v2 #navName{display:block}
  .workspace-v2 .line{display:grid;grid-template-columns:18px 36px minmax(0,1fr) 30px;gap:8px;align-items:start}
  .workspace-v2 .line>.selbox{grid-column:1;grid-row:1;margin-top:10px}
  .workspace-v2 .line>.thumb,.workspace-v2 .line>.ico{grid-column:2;grid-row:1}
  .workspace-v2 .line>.info{grid-column:3/5;grid-row:1;min-width:0}
  .workspace-v2 .line .pn{white-space:normal;overflow-wrap:anywhere}
  .workspace-v2 .line>.qty{grid-column:3;grid-row:2;justify-self:end}
  .workspace-v2 .line>.del{grid-column:4;grid-row:2}
  .workspace-v2{--tools-width:54px}.workspace-v2.tools-collapsed{--tools-width:54px}
  .workspace-v2:not(.tools-collapsed) #v2Rail{width:192px;box-shadow:-8px 0 25px #19374e18}
  .workspace-v2 #topbar{padding:8px;gap:6px;min-height:58px}.workspace-v2 #topbar .mk{display:none}.workspace-v2 #topbar .home img{width:25px;height:25px}.workspace-v2 #navBtn{padding:8px;gap:5px;font-size:11px}.workspace-v2 .acctchip{padding:3px;gap:4px}.workspace-v2 #navAvatar{display:none}.workspace-v2 #navName{font-size:10px}.workspace-v2 #navName small{font-size:9px}
  .workspace-v2.in-project #projbar{display:flex;padding:0 6px}.workspace-v2 #mtabs{width:100%;margin:0}.workspace-v2 #mtabs button{font-size:10px;padding:8px 5px;flex:1}
  .workspace-v2.in-project #v2ProjectHeader{padding:9px;gap:8px;order:0}.v2-project-title{gap:5px}.v2-project-title h1{font-size:15px}.v2-project-title .v2-button{font-size:10px;padding:3px 5px}#v2ProjectImage{width:44px;height:46px}#v2ProjectNotes{flex-basis:100%;font-size:11px}#v2ProjectMeta{gap:3px;font-size:10px}#v2ProjectMeta small{font-size:8px;max-width:100%}
  .workspace-v2 #viewBuilder{padding:6px;height:100%;gap:0}.workspace-v2 #views{overflow:hidden}
  .workspace-v2 #quoterow{padding:7px}.workspace-v2 #qtyBar{gap:4px;flex-basis:100%}.workspace-v2 #qtyBar .qslot input{width:43px;font-size:12px}.workspace-v2 #qtyBar .qlbl{flex-basis:100%}#v2Duplicate{padding:4px 7px;font-size:10px}
  #v2EstimateBand{padding:7px;gap:7px}#v2EstimateBand #bomEstimate{flex-basis:100%;max-height:none}#v2EstimateBand #btnRfq{padding:7px 10px;font-size:11px}#v2EstimateBand .estimate-price{width:auto;min-width:72px;flex-basis:auto;font-size:11px}
  #viewDashboard{padding:20px 12px 30px}.v2-dashboard-head{align-items:flex-start;gap:8px}.v2-dashboard-head h1{font-size:20px}.v2-dashboard-head>.v2-button{padding:8px;font-size:11px}.v2-dash-tabs{gap:16px}.v2-dash-tabs button{font-size:11px;gap:4px}.v2-dash-tabs svg{width:14px!important}.v2-dashboard-tools{gap:6px}.v2-dashboard-tools>.v2-button{font-size:10px;padding:8px}.v2-search{padding:8px;max-width:100%}.v2-search input{font-size:12px}.v2-project-grid{grid-template-columns:1fr}.v2-cover{height:140px}.v2-project-copy{min-height:120px}
  .v2-starters{grid-template-columns:repeat(2,minmax(0,1fr))}.v2-file-project{display:none}.v2-dialog-body{padding:16px}#v2Dialog header,#v2Dialog footer{padding:12px 16px}.v2-part{gap:8px;padding:10px 0}.v2-part img{width:42px;height:42px}
}

/* Customer workspace navigation and account history. */
.v2-dash-tabs{gap:8px;padding:4px 0 14px;flex-wrap:wrap;overflow:visible}
.v2-dash-tabs button{padding:10px 14px;border:1px solid #cbd7df;border-radius:8px;background:#fff;min-height:44px;color:#334c5c}
.v2-dash-tabs button:hover{background:#eef5f2;border-color:#7caa98}
.v2-dash-tabs button[aria-current=page]{background:#e1f0e8;border-color:#4e9579;color:#175d46;box-shadow:inset 0 0 0 1px #4e9579}
.v2-dash-tabs button:focus-visible{outline:3px solid #2865a6;outline-offset:2px}
.v2-quote-badge,.v2-history-new{background:#bd1731;color:#fff;border-radius:20px;font-size:11px;padding:2px 7px;line-height:1.5}
.v2-quote-badge[hidden]{display:none}
.v2-history-head,.v2-history-paging{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0}
.v2-history-head h2{font-size:20px;margin:0}
.v2-history-card,.v2-history-verify{background:white;border:1px solid #cddce5;border-radius:10px;padding:16px;margin:12px 0;overflow-wrap:anywhere}
.v2-history-card summary{display:flex;justify-content:space-between;gap:16px;cursor:pointer;min-height:44px;align-items:center}
.v2-history-card small{display:block;color:#5d7080;font-size:12px;margin-top:5px}
.v2-history-card li{margin:8px 0}.v2-history-status{text-align:right}.v2-history-verify h3{margin:0 0 10px}
#historyCodeForm{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-top:14px}#historyCodeForm input{font:inherit;padding:10px;border:1px solid #abbfcf;border-radius:6px;max-width:140px}
@media(max-width:767px){.v2-dash-tabs{gap:8px}.v2-dash-tabs button{padding:10px;font-size:12px}.v2-history-card summary{align-items:flex-start;flex-wrap:wrap}.v2-history-status{text-align:left}}
/* Folder membership is visible without opening project details. */
.v2-project-copy .v2-project-folder{display:flex;align-items:center;gap:5px;align-self:flex-start;max-width:100%;padding:4px 7px;border:1px solid #cbd9e8;border-radius:6px;background:#edf4fb;color:#244b75;font-size:12px;line-height:1.4;text-align:left}
.v2-project-folder svg{width:15px;height:15px;flex:none}
.v2-project-folder>span{overflow-wrap:anywhere;white-space:normal}

/* Project pricing belongs to the full-width banner, leaving the CAD column clear. */
#v2ProjectHeader #v2EstimateBand{grid-column:1/-1;min-width:0;padding:7px 10px;border:1px solid #d7e7dc;border-radius:6px;gap:6px 10px}
#v2ProjectHeader #v2EstimateBand #bomEstimate{margin:0}
#v2ProjectHeader #v2EstimateBand .qslot{flex-basis:74px;max-width:82px}
#v2ProjectHeader #v2EstimateBand .qslot input{width:100%;min-width:0;padding:3px 0}
#v2ProjectHeader #v2EstimateBand .v2-slot-price{padding-bottom:3px}
#v2ProjectHeader #v2EstimateBand #btnRfq{padding:8px 10px}
@media(max-width:480px){#v2ProjectHeader #v2EstimateBand{padding:7px}#v2ProjectHeader #v2EstimateBand .qslot{flex:1 0 72px;max-width:95px}}

/* Browse folders first; assigned projects appear when their folder is opened. */
.v2-folder-card{display:flex;align-items:center;gap:16px;width:100%;min-width:0;min-height:132px;padding:22px;border:1px solid #cdded5;border-radius:8px;background:#f1f7f3;color:#275c47;text-align:left;font:inherit;cursor:pointer}
.v2-folder-card:hover{background:#e4f0e9;border-color:#91b6a2}
.v2-folder-card:focus-visible{outline:2px solid #278c9c;outline-offset:3px}
.v2-folder-card>svg:first-child{width:48px;height:48px;flex:none}
.v2-folder-card>svg:last-child{margin-left:auto;flex:none}
.v2-folder-card>span{min-width:0;overflow-wrap:anywhere}
.v2-folder-card b{display:block;font-size:17px;line-height:1.4}
.v2-folder-card small{display:block;margin-top:6px;color:#587363;font-size:12px}
.v2-folders h2{display:flex;align-items:center;gap:8px;font-size:17px;margin:0 auto 0 0;overflow-wrap:anywhere;min-width:0}
.v2-folders>span{font-size:12px;color:#657580}
@media(max-width:480px){.v2-folder-card{min-height:106px;padding:16px;gap:12px}.v2-folders h2{flex-basis:100%;font-size:16px}}

.v2-folder-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(270px,100%),1fr));gap:18px;margin-bottom:22px}

/* Workspace home: compact folders, readable projects, contextual bulk actions. */
#viewDashboard{padding:24px clamp(16px,2.2vw,36px) 48px;background:#f6f8fa}
.v2-dashboard-head{margin-bottom:18px}
.v2-dashboard-head small{font-size:11px;letter-spacing:.08em;color:#5b7181}
.v2-dashboard-head h1{font-size:clamp(22px,2vw,28px);letter-spacing:-.025em;color:#17324d}
.v2-dashboard-head>.v2-button{min-height:42px;border-radius:8px;padding:10px 16px;font-weight:650}
.v2-dash-tabs{gap:6px;padding-bottom:10px}
.v2-dash-tabs button{padding:10px 14px;border:1px solid transparent;border-radius:7px;font-size:14px;min-height:42px;color:#4b6072}
.v2-dash-tabs button[aria-current=page]{background:#e7f2ed;border-color:#b7d2c5;color:#205b46}
.v2-dashboard-tools{margin:18px 0 10px}
.v2-search{max-width:460px;min-height:44px;border-radius:8px;padding:10px 12px}
.v2-search input{font-size:14px}
.v2-search:focus-within{border-color:#245c94;box-shadow:0 0 0 3px #245c941a}
.v2-dashboard-tools>.v2-button{min-height:42px}
.v2-folders{margin-bottom:20px;gap:10px;min-height:32px}
.v2-folder-summary{font-size:12px;color:#5c7181}
.v2-section-heading{display:flex;align-items:center;gap:12px;min-width:0}
.v2-section-heading h2{display:flex;align-items:center;gap:8px;margin:0;font-size:16px;font-weight:650;color:#233e55}
.v2-section-heading h2>span{display:inline-grid;place-items:center;min-width:24px;height:24px;border-radius:6px;background:#e7edf2;color:#50677a;font-size:12px;font-weight:600;padding:0 6px}
.v2-folder-section>.v2-section-heading{margin-bottom:10px}
.v2-folder-grid{grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:10px;margin-bottom:24px;max-width:1040px}
.v2-folder-card{min-height:78px;padding:15px 16px;gap:12px;border-radius:10px;background:#fff;border-color:#d7e2dd;transition:border-color .15s,box-shadow .15s}
.v2-folder-card:hover{border-color:#78a58f;box-shadow:0 3px 10px #183e2810;background:#f6fbf8}
.v2-folder-card>svg:first-child{width:30px;height:30px}
.v2-folder-card>svg:last-child{width:17px;height:17px;opacity:.7}
.v2-folder-card b{font-size:14px;line-height:1.35}
.v2-folder-card small{font-size:12px;margin-top:3px;color:#587163}
.v2-project-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px;min-height:44px}
.v2-project-toolbar .v2-section-heading{flex-wrap:wrap}
.v2-sort-label{font-size:12px;color:#5e7486}
.v2-selection-bar{margin:0;min-height:40px;gap:8px}
.v2-selection-bar>label{margin:0;font-size:13px;min-height:40px;padding:0 4px}
.v2-selection-bar.has-selection{background:#e7f2ed;border-radius:8px;padding:0 8px}
#v2SelectionBar [hidden]{display:none!important}
.v2-project-grid{grid-template-columns:repeat(auto-fill,minmax(min(280px,100%),1fr));gap:18px;align-items:stretch}
.v2-project{display:flex;flex-direction:column;border-radius:12px;border-color:#d5e0e9;transition:border-color .15s,box-shadow .15s}
.v2-project:hover{border-color:#9cb2c6;box-shadow:0 5px 16px #183e6010}
.v2-project-open{flex:1;display:flex;flex-direction:column}
.v2-cover,.v2-project-open:hover .v2-cover{height:166px;background:#fff;padding:18px 36px;border-bottom:1px solid #edf1f5}
.v2-project-copy{display:flex;flex-direction:column;align-items:flex-start;gap:9px;width:100%;min-height:166px;padding:16px 18px}
.v2-project-copy>small:first-child{font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#536f88;margin:0}
.v2-project-copy h3{font-size:17px;line-height:1.4;letter-spacing:-.012em;margin:0;color:#17324d;min-height:2.8em}
.v2-project-copy .v2-project-folder{display:inline-flex;width:fit-content;max-width:100%;padding:3px 7px;border-color:#e0e7ec;background:#f5f8fa;color:#4c6579;font-size:11px;line-height:1.4}
.v2-project-copy .v2-project-folder svg{width:13px;height:13px}
.v2-project-copy .v2-part-number{font-size:12px;color:#36516a}
.v2-project-copy small.v2-project-updated{font-size:11px;color:#617587;margin-top:auto;padding-top:4px}
.v2-card-actions{padding:8px 12px;gap:4px;min-height:50px;flex-wrap:wrap}
.v2-card-actions .v2-button{font-size:12px;min-height:36px;padding:7px 9px;border-radius:6px;color:#355674}
.v2-card-actions .v2-button:hover,.v2-card-actions .v2-icon:hover{background:#eef3f7}
.v2-card-actions .v2-icon{min-width:36px;min-height:36px}
.v2-card-actions .v2-icon[data-v2=delete]{color:#798b9a}
.v2-card-actions .v2-icon[data-v2=delete]:hover{color:#b5223b;background:#fff0f2}
.v2-no-project-results{grid-column:1/-1;color:#536b7f;font-size:14px;padding:20px 0}
#viewDashboard button:focus-visible,#viewDashboard a:focus-visible{outline:2px solid #245c94;outline-offset:3px}
@media(max-width:767px){
  #viewDashboard{padding:20px 14px 40px}
  .v2-dashboard-head{align-items:flex-start;gap:10px;margin-bottom:16px}
  .v2-dashboard-head h1{font-size:22px}
  .v2-dashboard-head>.v2-button{padding:10px;font-size:12px;gap:5px}
  .v2-dash-tabs{gap:4px}
  .v2-dash-tabs button{padding:10px;font-size:13px}
  .v2-dashboard-tools{flex-wrap:wrap;margin-top:16px}
  .v2-search{flex-basis:100%;max-width:none}
  .v2-dashboard-tools>.v2-button{margin-left:auto}
  .v2-folders{margin-bottom:14px}
  .v2-folder-summary{font-size:11px}
  .v2-folder-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}
  .v2-folder-card{padding:12px 10px;gap:8px;min-height:74px}
  .v2-folder-card>svg:first-child{width:24px;height:24px}
  .v2-folder-card>svg:last-child{display:none}
  .v2-folder-card b{font-size:13px}
  .v2-project-toolbar{gap:6px}
  .v2-sort-label{display:none}
  .v2-project-grid{grid-template-columns:1fr;gap:14px}
  .v2-cover{height:180px}
  .v2-project-copy{min-height:150px}
  .v2-card-actions .v2-button,.v2-card-actions .v2-icon{min-height:44px}
}
/* Home shows the library, so do not label it with the last opened project. */
body:has(#viewDashboard:not(.hide)) #modeProject{visibility:hidden}
@media(max-width:767px){
  .v2-dash-tabs{flex-wrap:nowrap;overflow-x:auto;padding-bottom:8px}
  .v2-dash-tabs button{flex-shrink:0}
  .v2-dashboard-tools{flex-wrap:nowrap;gap:8px}
  .v2-search{flex:1 1 0;min-width:0}
  .v2-dashboard-tools>[data-v2=new-folder]{flex:none;width:44px;height:44px;justify-content:center;padding:10px}
  .v2-dashboard-tools>[data-v2=new-folder]>span{display:none}
  .v2-folder-grid{display:flex;overflow-x:auto;gap:8px;padding:2px 2px 8px;scroll-snap-type:x proximity}
  .v2-folder-card{flex:0 0 168px;min-height:74px;scroll-snap-align:start}
}
/* Compact project banner (desktop): identity, quote quantities and actions share one row. */
@media(min-width:1001px){
  .workspace-v2.in-project #v2ProjectHeader{grid-template-columns:auto minmax(160px,max-content) minmax(0,1fr);gap:2px 16px;padding:8px 16px}
  #v2ProjectHeader #v2ProjectImage{width:42px;height:40px;border-radius:5px}
  #v2ProjectHeader>div:not(#v2EstimateBand){max-width:360px}
  #v2ProjectHeader .v2-project-title{gap:6px;flex-wrap:nowrap}
  #v2ProjectHeader .v2-project-title h1{font-size:16px;line-height:1.25;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
  #v2ProjectHeader .v2-project-title .v2-button{padding:3px 6px;font-size:10.5px;flex:none}
  #v2ProjectHeader .v2-project-title #v2ProjectNotes{display:none}
  #v2ProjectHeader #v2ProjectMeta{margin-top:1px;gap:4px 10px;white-space:nowrap;overflow:hidden;flex-wrap:nowrap}
  #v2ProjectHeader #v2ProjectMeta>*{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
  #v2ProjectHeader #v2EstimateBand{grid-column:3;grid-row:1;align-self:center;background:#edf7f0;border:1px solid #d7e7dc;border-radius:8px;padding:5px 8px 5px 12px;gap:4px 8px;grid-template-columns:minmax(0,1fr) auto auto}
  #v2ProjectHeader #v2EstimateBand #qtyBar{flex-wrap:nowrap;gap:5px;overflow-x:auto;scrollbar-width:none}
  #v2ProjectHeader #v2EstimateBand #qtyBar .qlbl{flex:0 0 auto;flex-basis:auto;margin-right:4px;font-size:10px;line-height:1.2;max-width:96px;white-space:normal}
  #v2ProjectHeader #v2EstimateBand .qslot{flex:0 0 58px;max-width:64px}
  #v2ProjectHeader #v2EstimateBand .qslot input{padding:3px 0;font-size:12px}
  #v2ProjectHeader #v2EstimateBand .qaddslot{flex:none;padding:4px 8px;font-size:11px;white-space:nowrap}
  #v2ProjectHeader #v2EstimateBand #btnRfq{padding:7px 12px;font-size:12px;white-space:nowrap}
  #v2ProjectHeader #v2EstimateBand #v2Duplicate{padding:6px 8px;font-size:10.5px}
  #v2ProjectHeader #v2EstimateBand #bomEstimate{font-size:11px}
  #v2ProjectHeader #v2EstimateBand .estimate-disclaimer p{margin:2px 0;line-height:1.35}
}
@media(min-width:1001px) and (max-width:1320px){
  #v2ProjectHeader #v2EstimateBand #v2Duplicate span{display:none}
  #v2ProjectHeader #v2EstimateBand #v2Duplicate{padding:6px 7px}
  #v2ProjectHeader>div:not(#v2EstimateBand){max-width:240px}
}

/* Yellow estimate: priced, requires engineering review before ordering. */
#v2EstimateBand:has(.estimate-review){background:#fdf6e1;border-color:#ecd28a}
.estimate-review .estimate-price b{color:#8a5a00}
.estimate-flag{display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;margin-left:5px;border-radius:50%;background:#f6c343;color:#5c3d00;font-size:10.5px;cursor:help;vertical-align:middle}
