.next-step,.draft-banner{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 24px;margin-bottom:22px;border:1px solid #b8cdf6;border-left:4px solid #245bd6;background:#f0f5ff;border-radius:10px}.next-step.waiting{background:#f7f9fc;border-color:#d9e2ed;border-left-color:#8191a7}.next-step h2{margin:5px 0}.next-step p,.draft-banner p{margin:4px 0;max-width:760px;color:#435874}.draft-banner{background:white;border:1px solid #d9e2ed}.draft-tools{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 18px;margin-bottom:16px;border:1px solid var(--line);background:white;border-radius:8px}.draft-tools>span{font-size:12px;color:#435874}.draft-tools>div{display:flex;gap:8px;flex-wrap:wrap}.partner-tasks{padding:20px 24px;margin-bottom:22px;background:white;border:1px solid var(--line);border-radius:10px}.partner-task{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:12px 0;border-top:1px solid var(--line)}.partner-task p{margin:3px 0}.mobile-prices{display:none}.next-step button{white-space:normal}.table-wrap:focus-visible{outline:2px solid var(--blue)}
@media(max-width:850px){.sidebar-foot>strong,.sidebar-foot>button{display:none}.sidebar .navitem{min-height:48px}}
@media(max-width:650px){input,select,textarea{font-size:16px!important}button,.small,.ghost.small{min-height:44px}.next-step,.draft-banner{align-items:stretch;flex-direction:column;gap:14px;padding:18px}.next-step button,.draft-banner button{width:100%}.next-step h2{font-size:19px}.draft-tools{align-items:stretch}.draft-tools>div{width:100%}.draft-tools button{white-space:normal;flex:1;min-width:115px}.desktop-prices{display:none}.mobile-prices{display:block;padding:0 16px}.mobile-prices article{padding:16px 0;border-bottom:1px solid var(--line)}.mobile-prices article:last-child{border-bottom:0}.mobile-prices strong{display:block;line-height:1.4;font-size:14px}.mobile-prices article>div{display:flex;gap:12px;justify-content:space-between;align-items:baseline;margin-top:9px}.mobile-prices span{color:var(--muted);font-size:12px}.mobile-prices b{white-space:nowrap}.tabs{gap:10px;overflow-x:auto;scrollbar-width:thin}.tabs button{min-height:44px;flex-shrink:0}.fields.three{grid-template-columns:1fr}.wizard-footer{gap:12px}.wizard-footer button{white-space:normal}.partner-tasks{padding:18px}.partner-task{align-items:flex-start}.topactions{gap:4px}.topactions button{padding-inline:8px;font-size:12px}.total{gap:12px;flex-wrap:wrap}.total strong{font-size:24px}}
@media(max-width:570px){.sidebar{height:calc(66px + env(safe-area-inset-bottom));padding:4px 6px calc(4px + env(safe-area-inset-bottom));justify-content:flex-start;gap:2px;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain}.sidebar .navitem{flex:1 0 60px;max-width:none;min-height:54px;padding:4px 2px;display:flex;flex-direction:column;gap:4px}.sidebar .navitem>span{display:block;font-size:10px;line-height:1.2;white-space:nowrap}.sidebar .navitem .icon{width:20px;height:20px}.content{padding-bottom:calc(95px + env(safe-area-inset-bottom))}.topbar{top:0}.modal-overlay{padding:10px}.modal{max-height:calc(100dvh - 20px)}.table-wrap{overflow-x:auto}.project .pagehead{flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}
/* Keep the existing PONTOSPOOL palette; clear hierarchy, wrapping and touch targets. */
.main,.content,.pagehead>div,.row>div{min-width:0}.pagehead{flex-wrap:wrap}.pagehead h1{overflow-wrap:anywhere;line-height:1.2}.row.between{gap:14px}.card h2,.card h3{line-height:1.35}.project-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto}.project-tabs a{flex-shrink:0;padding:14px 16px;min-height:48px;border-bottom:3px solid transparent;color:#52647b;font-size:13px;font-weight:600;white-space:nowrap}.project-tabs a.active{color:var(--blue);border-bottom-color:var(--blue)}.project-tabs a span{font-size:11px;margin-left:4px}.project-record{display:flex;justify-content:space-between;gap:24px;padding:22px 24px;border-bottom:1px solid var(--line);color:inherit}.project-record:last-child{border:0}.project-record:hover{background:#f8faff}.project-record h3{margin:7px 0;overflow-wrap:anywhere}.project-record p{margin:4px 0}.project-record small{color:var(--muted)}.project-record>div{min-width:0}.project-record-status{display:flex;flex-direction:column;align-items:flex-end;gap:12px;flex-shrink:0}.project-record-status strong{font-size:13px}.media-upload{display:flex;flex-direction:column;gap:10px}.media-upload input{max-width:100%;margin:0}.media-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(220px,100%),1fr));gap:18px}.media-card{overflow:hidden;border:1px solid var(--line);border-radius:10px;min-width:0}.media-preview{display:flex;aspect-ratio:4/3;background:#f3f6fa;align-items:center;justify-content:center}.media-preview img{width:100%;height:100%;object-fit:contain}.media-preview>span{display:grid;gap:8px;justify-items:center}.media-preview .icon{width:36px;height:36px}.media-card>div{padding:14px;display:grid;gap:8px}.media-card strong{font-size:13px;overflow-wrap:anywhere}.media-card small{color:var(--muted)}.media-card a.link{padding:7px 0}.claim-text,.bubble{overflow-wrap:anywhere;white-space:pre-wrap}.claim-files{display:grid;gap:12px}.claim-files a{overflow-wrap:anywhere;display:flex;align-items:center;gap:8px}.claim-attachments{border:1px solid var(--line);border-radius:8px;min-width:0}.claim-attachments span{overflow-wrap:anywhere}.modal{overscroll-behavior:contain}.modal form>.field+.field{margin-top:16px}.modal legend{font-size:12px}.upload input{width:100%}.notice>div{min-width:0;overflow-wrap:anywhere}button,a,input,select,textarea{touch-action:manipulation}a:focus-visible,button:focus-visible{outline:3px solid #245bd6;outline-offset:3px}.file>div,.keyvalue b{overflow-wrap:anywhere}.project-record .badge{white-space:normal}.message .bubble{line-height:1.6}
@media(max-width:650px){.pagehead{gap:16px}.pagehead>.row{width:100%;justify-content:flex-start}.pagehead .primary{font-size:13px;padding:12px 16px}.project-record{padding:18px;flex-direction:column;gap:16px}.project-record-status{align-items:flex-start;flex-direction:row;flex-wrap:wrap;gap:12px}.project-record-status>.link{width:100%}.project-tabs a{padding:12px;font-size:13px}.cardhead{flex-wrap:wrap;gap:10px}.version{gap:12px;flex-wrap:wrap}.keyvalue{grid-template-columns:1fr}.keyvalue .wide{grid-column:auto}.option{flex-wrap:wrap}.option>button{margin-left:auto}.message{max-width:100%}.message small{font-size:11px}.message form .row{flex-wrap:wrap}.toolbar .search{min-width:0;flex-basis:100%}.metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.modalbody,.modalhead{padding:18px}.empty{padding:24px 16px}.media-upload{padding:20px 14px}#toast{bottom:calc(80px + env(safe-area-inset-bottom))}.pagehead h1{font-size:25px}.field{min-width:0}.row.between:has(textarea),form>.row.between{flex-wrap:wrap}}
@media(max-width:650px){.project-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding-bottom:12px;overflow:visible;border-bottom:0}.project-tabs a{white-space:normal;border:1px solid var(--line);border-radius:7px;background:white;padding:12px;display:flex;align-items:center}.project-tabs a.active{background:#edf3ff;border-color:#9bb8ec}.next-step button{flex-shrink:0}}
@media(min-width:651px){.next-step>button{min-width:150px}}
@media(min-width:651px){.project-tabs{flex-wrap:wrap;overflow:visible}.project-tabs a{padding-inline:12px}}

/* Rare UI folder + active navigation interaction patterns, independently adapted
   for the existing vanilla portal. Reference: https://www.rareui.com/
   No third-party React source or runtime is included. */
:root{--radius:14px;--line:#dfe7f0;--bg:#f4f7fb;--muted:#596d85}
.card{box-shadow:0 2px 4px #172b4603}.cardhead{background:#fcfdff}.content{max-width:1500px}.pagehead{margin-bottom:30px}.pagehead .eyebrow{color:#416c9d}.pagehead h1{letter-spacing:-.8px;font-weight:700}.pagehead .subtitle{font-size:14px;line-height:1.6;max-width:680px}.workspace{background:#f2f6fc;border-color:#e2eaf4;border-radius:12px}.sidebar .navitem{position:relative;border-radius:10px;transition:background .18s,color .18s}.sidebar .navitem.active{background:#eaf1ff;color:#174aa7;box-shadow:inset 0 0 0 1px #d7e5fc}.sidebar .navitem.active:before{content:"";position:absolute;left:0;top:15px;bottom:15px;width:3px;background:#245bd6;border-radius:3px;animation:nav-arrive .28s ease-out}.sidebar-foot{padding-inline:5px}.topbar{background:#ffffffed}.crumb{font-size:13px}.primary{box-shadow:0 2px 3px #153f8c16,inset 0 1px 0 #ffffff26}button{transition:background .16s,border-color .16s,box-shadow .16s;min-height:40px}button:active:not(:disabled){box-shadow:inset 0 2px 4px #142e5118}.primary:focus-visible{outline-color:#6a91e7}.badge{border-radius:20px;padding:5px 10px;font-size:11px}.metric strong{font-variant-numeric:tabular-nums}.metric .label{letter-spacing:.65px;color:#4c6583}.toolbar{padding:14px;background:white;border:1px solid var(--line);border-radius:12px}.toolbar .search{max-width:none}.toolbar select{min-height:44px}.toolbar input{min-height:44px;background:#f8fafc}.project-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(320px,100%),1fr));gap:16px;padding:18px}.project-list>.empty{grid-column:1/-1}.project-list .project-folder{position:relative;display:grid;grid-template-columns:58px minmax(0,1fr);align-content:start;gap:16px;padding:22px;border:1px solid var(--line);border-radius:12px;background:white;transition:border-color .18s,box-shadow .18s}.project-list .project-folder:last-child{border:1px solid var(--line)}.project-list .project-folder:hover,.project-list .project-folder:focus-visible{border-color:#8daee2;box-shadow:0 5px 18px #1b4b8a0c}.project-folder h3{font-size:17px;line-height:1.4;margin:5px 0 7px}.project-folder .eyebrow{font-size:10px;letter-spacing:1px}.project-folder p{font-size:13px}.project-folder small{font-size:12px;line-height:1.6}.project-folder .project-record-status{grid-column:1/-1;display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;gap:12px;border-top:1px solid #edf1f6;padding-top:16px;margin-top:2px}.project-folder .project-record-status strong{margin-left:auto;font-size:13px;font-weight:550}.project-folder .project-record-status .link{width:100%;font-size:13px;padding-top:3px}.folder-art{display:block;position:relative;width:54px;height:48px;margin-top:4px;perspective:160px}.folder-art:before{content:"";position:absolute;inset:9px 0 0;background:#4879c6;border-radius:4px 6px 6px 6px}.folder-art:after{content:"";position:absolute;left:0;top:4px;width:24px;height:14px;background:#4879c6;border-radius:5px 6px 0 0}.folder-art i{position:absolute;left:5px;right:5px;height:29px;top:10px;background:white;border:1px solid #cfddf2;border-radius:3px;z-index:1;transition:transform .25s}.folder-art i:nth-child(2){top:14px;left:8px;right:3px;background:#f7faff}.folder-art b{position:absolute;inset:20px -1px 0 0;background:#dceaff;border:1px solid #8db2e6;border-radius:4px 4px 6px 6px;z-index:2;transform-origin:bottom;transition:transform .25s}.project-folder:hover .folder-art i:first-child,.project-folder:focus-visible .folder-art i:first-child{transform:translateY(-5px) rotate(-5deg)}.project-folder:hover .folder-art i:nth-child(2),.project-folder:focus-visible .folder-art i:nth-child(2){transform:translateY(-3px) rotate(4deg)}.project-folder:hover .folder-art b,.project-folder:focus-visible .folder-art b{transform:rotateX(-18deg)}.project-tabs{gap:6px;padding:5px;border:1px solid var(--line);border-radius:12px;background:#eaf0f7;margin-bottom:24px}.project-tabs a{border:0;border-radius:8px;padding:11px 14px;min-height:44px;color:#4c617b;transition:background .18s,box-shadow .18s}.project-tabs a.active{background:white;color:#174da9;box-shadow:0 1px 4px #172b4612}.next-step{background:#edf4ff;border-color:#c5d8f6;border-left-color:#245bd6;border-radius:12px}.next-step .eyebrow{color:#315b93}.next-step p{font-size:13px;line-height:1.65}.media-upload{position:relative;background:#f5f9ff;border:1px dashed #92aed3;border-radius:12px;padding:28px;transition:background .18s,border-color .18s}.media-upload:hover,.media-upload:focus-within{background:#edf4ff;border-color:#245bd6}.media-upload strong{font-size:16px}.media-upload input::file-selector-button{border:1px solid #ccd9eb;border-radius:8px;background:white;color:#23466e;padding:10px 14px;margin-right:12px;cursor:pointer}.media-card{box-shadow:0 2px 8px #172b4605}.empty{line-height:1.7}.ui-credit a{text-decoration:underline;text-underline-offset:3px}.modal{border:1px solid #dce5f0;border-radius:16px}.modalhead{background:#fafcff}.modalbody{line-height:1.6}.field input,.field select,.field textarea{border-radius:9px}.stages .stage{line-height:1.5}.message .bubble{border:1px solid #e3eaf4;border-radius:12px}.message.mine .bubble{border-color:#d9e6fb}.hero{background:#17375e;border:1px solid #234875}.hero h2{font-weight:650}.hero p{color:#d1deee}
@keyframes nav-arrive{from{transform:scaleY(.4);opacity:.3}to{transform:scaleY(1);opacity:1}}
@media(max-width:650px){button,.small{min-height:44px}.pagehead{margin-bottom:22px}.pagehead .subtitle{font-size:13px}.project-list{padding:12px;gap:12px;grid-template-columns:minmax(0,1fr)}.project-list .project-folder{padding:18px;gap:12px;grid-template-columns:46px minmax(0,1fr)}.folder-art{transform:scale(.8);transform-origin:top left}.project-folder h3{font-size:16px}.project-folder .project-record-status strong{margin-left:0}.project-folder .project-record-status{align-items:flex-start;gap:10px}.toolbar{padding:12px}.project-tabs{gap:6px;padding:6px}.project-tabs a{border:0;background:transparent;font-size:12px;white-space:normal}.project-tabs a.active{border:0;background:white}.media-upload{padding:22px 14px}.media-upload input::file-selector-button{display:block;margin:0 0 10px;min-height:44px}.metrics .metric{padding:18px 14px}.metric .label{font-size:10px}.next-step{padding:18px}.sidebar .navitem.active:before{display:none}}
@media(prefers-reduced-motion:reduce){.folder-art i,.folder-art b{transform:none!important}.sidebar .navitem.active:before{animation:none}}
#project-results{background:transparent;border:0;box-shadow:none;overflow:visible}#project-results>.project-list{padding:0}.project-list:has(>.project-folder:only-child){grid-template-columns:minmax(0,1fr)}
.phone-nav,.phone-title{display:none}.phone-menu{display:grid;gap:8px}.phone-menu a{display:flex;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:10px;min-height:52px}.phone-menu a>span:last-child{margin-left:auto}.phone-menu a[aria-current]{background:#edf3ff;border-color:#a5bee7}.phone-account{border-top:1px solid var(--line);margin-top:24px;padding-top:20px;overflow-wrap:anywhere}.phone-account p{font-size:13px}
@media(max-width:700px){
.sidebar{display:none!important}.main{margin-left:0}.topbar{height:58px;padding:0 16px;position:sticky;top:0;background:#fffffff5;backdrop-filter:blur(10px);z-index:25}.topbar .crumb{display:none}.phone-title{display:block;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:650;font-size:14px}.topactions{margin-left:auto;flex-shrink:0}.topactions button:last-child{display:none}.topactions button{min-height:44px;padding-inline:10px}.content{padding:22px 16px calc(105px + env(safe-area-inset-bottom))}.phone-nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));position:fixed;inset:auto 0 0;background:#fffffff5;backdrop-filter:blur(12px);border-top:1px solid #dce5f0;box-shadow:0 -3px 18px #162b4607;padding:6px 8px calc(6px + env(safe-area-inset-bottom));z-index:30}.phone-nav a,.phone-nav button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:52px;border:0;border-radius:9px;background:transparent;font-size:11px;color:#516781;padding:6px 2px;font-weight:550;white-space:nowrap}.phone-nav [aria-current],.phone-nav .selected{color:#194fae;background:#eaf1ff}.phone-nav .icon{width:21px;height:21px}.phone-nav a:focus-visible,.phone-nav button:focus-visible{outline-offset:-3px}.pagehead .primary{min-height:48px}.field input,.field select{min-height:48px}.field textarea{min-height:120px}.option{min-height:60px}.option input,.check input{width:21px;height:21px}.check{gap:14px;min-height:52px;align-items:center}.check input{margin:0}.search input{padding-right:10px}.toolbar select{flex:1;width:auto!important;max-width:none}.toolbar #project-count{white-space:nowrap}.wizard-footer{position:sticky;bottom:calc(70px + env(safe-area-inset-bottom));z-index:15;background:white;padding:12px;margin:24px -12px -12px;border:1px solid var(--line);border-radius:10px;box-shadow:0 -3px 12px #162b4608}.wizard-footer button{min-height:48px;flex:1;padding:10px;font-size:13px}.modal-overlay{padding:0;align-items:flex-end}.modal{width:100%;max-width:none;max-height:calc(100dvh - 14px);border-radius:18px 18px 0 0;overflow:auto}.modalhead{position:sticky;top:0;background:white;z-index:2;padding:16px 20px}.modalhead h2{font-size:18px}.modalbody{padding:20px 20px calc(24px + env(safe-area-inset-bottom))}.modalbody form>button[type=submit]{width:100%;min-height:50px}.modalfoot{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.modalhead button{min-width:44px;min-height:44px}.project-tabs{grid-template-columns:repeat(2,minmax(0,1fr));display:grid}.project-tabs a{min-height:48px;font-size:13px;white-space:normal}.project-record-status .small{min-height:44px}.media-upload input{padding:10px;font-size:16px}.keyvalue{gap:16px}.summaryline{gap:16px;line-height:1.6}.summaryline>span{min-width:0}.summaryline>b{flex-shrink:0}#toast{bottom:calc(84px + env(safe-area-inset-bottom));max-width:calc(100vw - 24px);width:max-content;line-height:1.5}.account-layout .account{padding-top:28px}.account-layout .account h1{font-size:27px}.account-description{margin-bottom:24px}.account .auth-input{margin-bottom:18px}
}
@media(max-width:360px){.content{padding-inline:12px}.pagehead h1{font-size:23px}.project-folder .project-record-status{flex-direction:column;align-items:flex-start}.account-layout .account{padding-inline:20px}}
@media(max-width:700px){.toolbar{flex-wrap:wrap}.toolbar .search{flex:1 0 100%;max-width:100%;min-width:0}.toolbar select{min-width:150px;flex:1 1 150px}.toolbar #project-count{flex:0 0 auto}}
.official-brand img{display:block;width:100%;height:auto;object-fit:contain}.sidebar .official-brand{padding:0 8px;min-height:65px}.account-intro .authbrand img{width:220px;max-width:100%;height:auto;display:block}@media(min-width:701px) and (max-width:850px){.sidebar .official-brand{padding:0;min-height:36px;margin-bottom:22px}.sidebar .official-brand img{width:48px}}@media(max-width:700px){.account-intro .authbrand img{width:175px}}
/* Project orientation is visible throughout the record, not only on overview. */
.project-flow{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;margin:20px 0 16px}.project-flow a{display:flex;align-items:center;gap:9px;color:#61758c;padding:12px 10px;border-bottom:2px solid #dce5ef;min-width:0;font-size:12px}.project-flow a>span{display:grid;place-items:center;border:1px solid #cbd8e7;width:26px;height:26px;border-radius:50%;flex-shrink:0;font-size:11px}.project-flow a b{font-weight:550;overflow-wrap:anywhere}.project-flow a.current{color:#184fae;border-color:#245bd6}.project-flow a.current>span{background:#245bd6;color:white;border-color:#245bd6}.project-flow a.complete{color:#27735b;border-color:#9ecbbb}.project-flow a.complete>span{background:#edf8f2;border-color:#b9dccc}.workflow-guide{padding:20px 24px;background:#edf4ff;border:1px solid #ccdff8;border-radius:12px;display:flex;align-items:center;justify-content:space-between;gap:22px;margin:0 0 22px}.workflow-guide.waiting{background:#f8fafd;border-color:#dce5f0}.workflow-guide>div{min-width:0}.workflow-guide h2{font-size:17px;margin:7px 0}.workflow-guide p{font-size:13px;line-height:1.65;margin:0;max-width:800px}.workflow-guide button{flex-shrink:0;white-space:normal;max-width:260px}.workflow-here{font-size:12px;color:#41618a;flex-shrink:0}.flow-action{display:inline-flex;min-height:44px;align-items:center;color:#245bd6;font-weight:600;font-size:13px}.action-error{background:#fff1ef;color:#8d332a;border:1px solid #e7bbb4;border-left:4px solid #b7493c;padding:15px 18px;line-height:1.65;border-radius:9px;margin-bottom:20px;overflow-wrap:anywhere}.action-error:focus{outline:2px solid #b7493c;outline-offset:3px}.card:has(form[onsubmit="sendMessage(event)"])>.row{flex-wrap:wrap}.card form[onsubmit="sendMessage(event)"]>.row{gap:14px;flex-wrap:wrap}
@media(max-width:850px){.project-flow a{flex-direction:column;align-items:flex-start;padding:10px 5px;gap:7px;font-size:11px}.workflow-guide{align-items:stretch;flex-direction:column;gap:14px}.workflow-guide button{max-width:none;align-self:flex-start}.workflow-here{flex-shrink:1}}
@media(max-width:700px){.project-flow{gap:4px;margin-top:14px}.project-flow a{font-size:10px;min-height:78px;line-height:1.4}.project-flow a>span{width:24px;height:24px}.workflow-guide{padding:18px;margin-bottom:18px}.workflow-guide h2{font-size:17px}.workflow-guide button{width:100%;min-height:46px}.card form[onsubmit="sendMessage(event)"] button[type=submit]{width:100%;min-height:48px}}

@media(max-width:700px){.project-tabs{display:flex;flex-wrap:nowrap;overflow-x:auto;gap:4px;padding:6px;scrollbar-width:thin}.project-tabs a{flex:0 0 auto;white-space:nowrap;min-height:44px;padding:11px 12px}.project-flow a{min-height:70px}.project-flow a b{hyphens:auto}.workflow-guide{padding:15px}.workflow-guide p{line-height:1.5}}

.workflow-actions{display:flex;flex-direction:column;align-items:flex-start;gap:10px;flex-shrink:0}.upload-feedback{padding:14px;border-radius:8px;line-height:1.6;overflow-wrap:anywhere}.upload-success{background:#edf8f2;color:#246249}.upload-warning{background:#fff6e5;color:#80521c}@media(max-width:700px){.workflow-actions{width:100%;align-items:stretch}.workflow-actions button{width:100%}}

/* Navigation: project context above workflow guidance; all mobile destinations visible in one selector. */
.project-breadcrumb{display:flex;align-items:center;gap:12px;min-height:44px;margin-bottom:12px;font-size:13px;color:#61758c}.project-breadcrumb a{display:inline-flex;align-items:center;min-height:44px;color:#214e86;font-weight:600}.project-breadcrumb [aria-current]{color:#243b56}.project-navigation{margin:0 0 18px}.project-navigation .project-tabs{margin:0;border-radius:10px;padding:5px;background:#edf1f6;border:1px solid #dce5ef;display:flex;flex-wrap:wrap;overflow:visible}.project-navigation .project-tabs a{border:0;border-radius:7px;min-height:44px;display:flex;align-items:center;justify-content:center;padding:10px 14px;white-space:nowrap}.project-navigation .project-tabs a.active{background:white;box-shadow:0 1px 3px #172c4514;color:#174ba2}.project-section-picker{display:none}.project-flow{margin-top:0}.sidebar .navitem span{line-height:1.3}.project-navigation+.project-flow{margin-top:0}
@media(max-width:700px){.project-navigation .project-tabs{display:none}.project-section-picker{display:flex;align-items:center;gap:12px;background:white;border:1px solid #dce5ef;border-radius:10px;padding:8px 12px}.project-section-picker>span{font-size:12px;color:#61758c;flex-shrink:0}.project-section-picker select{flex:1;min-width:0;min-height:44px;border:0;background:white;color:#183e70;font-family:inherit;font-size:16px;font-weight:600;padding:8px;border-radius:6px}.project-navigation{margin-bottom:16px}.project-breadcrumb{margin-bottom:8px}.project-flow{margin-top:0}.project-flow a{min-height:64px}.project-flow a b{font-size:9px}.pagehead{margin-bottom:18px}}

.chat-history{margin:24px 0}.chat-history .message{max-width:85%;margin-bottom:18px}.chat-history .mine{margin-left:auto}.chat-history .bubble{line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere}.chat-card #chat-composer{border-top:1px solid #dce5ef;padding-top:20px;scroll-margin:80px}.chat-meta{display:flex;justify-content:space-between;gap:12px;color:#61758c;font-size:12px;margin:10px 0 16px}.chat-meta span:last-child{white-space:nowrap}.chat-card [aria-busy=true]{opacity:.75}.chat-card button:disabled{cursor:wait}.chat-card .field textarea{min-height:140px}@media(max-width:700px){.chat-history .message{max-width:95%}.chat-card #chat-composer button[type=submit]{width:100%;min-height:48px}.chat-meta{flex-wrap:wrap}.chat-card .row>button{min-height:44px}}

.project-controls{background:white;border:1px solid #dce5ef;border-radius:12px;padding:18px}.project-search{display:flex;width:100%;min-height:48px;border:1px solid #cdd9e8;border-radius:8px;align-items:center}.project-search input{width:100%;min-width:0;font-size:16px}.project-filter-row{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end;margin-top:16px}.project-filter-row label{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#52647b;flex:1;min-width:150px}.project-filter-row select{width:100%;min-height:44px}.project-filter-row>button{min-height:44px}.project-result-count{font-size:13px;color:#52647b;margin:18px 0 12px}.project-folder-info .project-list-next{margin-top:12px;font-size:13px;font-weight:600;color:#234d80}.project-list-date{display:flex;align-items:center;gap:8px;font-size:12px;color:#52647b}.project-list-date .icon{width:16px;height:16px}.project-empty p{max-width:480px;margin:12px auto 20px;line-height:1.6}@media(max-width:700px){.project-controls{padding:14px}.project-filter-row{gap:12px}.project-filter-row label{min-width:calc(50% - 12px)}.project-filter-row label:last-of-type{flex-basis:100%}.project-filter-row>button{width:100%}.project-folder-info .project-list-next{line-height:1.5}}

.additional-parts{padding:20px;border:1px dashed #9eb7d7;border-radius:12px;background:#f5f9ff}.additional-parts>p{font-size:13px;line-height:1.6}.part-request-summary{border-top:1px solid #dce5ef;margin-top:18px;padding-top:16px}.part-request-summary>p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.6}.part-request-summary strong{font-size:13px;color:#80521c}@media(max-width:700px){.additional-parts{padding:16px}.additional-parts>button{width:100%;min-height:48px}}

.agenda-card{display:block;color:inherit;text-decoration:none}.agenda-card[hidden]{display:none}.agenda-card:focus-visible{outline:3px solid #245bd6;outline-offset:3px}

/* Revision comparisons remain readable without horizontal scrolling on phones. */
.draft-compare{table-layout:fixed;width:100%;min-width:0}.draft-compare td{overflow-wrap:anywhere;white-space:normal}
@media(max-width:700px){.draft-compare,.draft-compare tbody{display:block;width:100%;min-width:0}.draft-compare thead{display:none}.draft-compare tr{display:block;border:1px solid var(--line,#dbe3ec);border-radius:10px;padding:12px;margin-bottom:12px}.draft-compare td{display:block;width:auto;border:0;padding:5px 0}.draft-compare td:first-child{font-weight:700;margin-bottom:6px}.draft-compare td[data-label]::before{content:attr(data-label);display:block;font-size:11px;font-weight:700;color:var(--muted,#62748b);margin-bottom:3px}}

/* Independent calculator: readable inputs and long values on small screens. */
.area-tool-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.area-tool-grid>section{min-width:0}.area-tool-grid label{display:grid;gap:6px;min-width:0}.area-tool-grid .formgrid{display:grid;gap:16px}.area-tool-grid input,.area-tool-grid select{min-width:0;max-width:100%}.area-tool-total{font-size:clamp(28px,4vw,40px);margin:16px 0;overflow-wrap:anywhere}#area-tool-result strong,#area-tool-result p{overflow-wrap:anywhere}@media(max-width:800px){.area-tool-grid{grid-template-columns:minmax(0,1fr)}}

/* Preserve native hidden state even when component rules set display. */
[hidden]{display:none!important}

.pool-plan-live{max-width:620px;margin:16px auto 24px;padding:16px;border:1px solid #dce5ef;border-radius:12px;background:#f7fbfd}.pool-plan-live .configured-pool{max-height:270px;width:100%;display:block}.pool-plan-live .pool-caption{font-size:12px;line-height:1.5}@media(max-width:600px){.pool-plan-live{padding:12px;margin:12px 0 20px}.pool-plan-live .configured-pool{max-height:220px}}

.project-quick-actions{display:flex;flex-wrap:wrap;gap:8px;grid-column:1/-1;border-top:1px solid var(--line,#dce4ee);padding-top:14px}.project-quick-actions a,.project-quick-actions button{min-height:44px;padding:10px 14px;border:1px solid #dce4ee;border-radius:8px;background:white;font:inherit;text-decoration:none;color:#24496a;display:inline-flex;align-items:center}.project-quick-actions button:last-child{color:#a52727}.project-folder:has(.project-quick-actions){cursor:default}
/* Detailed pool planning: progressive disclosure and touch-friendly controls. */
.modal:has(#pool-setup-form){max-width:1000px;width:calc(100vw - 32px)}
.plan-section{border:1px solid #dce5ee;border-radius:12px;margin:12px 0;background:#fff}
.plan-section>summary{padding:18px;font-weight:650;cursor:pointer;min-height:48px;color:#173655}
.plan-section-body{padding:0 18px 18px}.plan-section-body textarea{min-height:100px;width:100%}
.plan-step,.plan-element{border:1px solid #e0e8ef;border-radius:8px;padding:12px;margin:12px 0;min-width:0}
.plan-step legend,.plan-element legend{font-size:14px;font-weight:650;padding:0 6px}
.plan-section .fields{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.plan-notes{font-size:13px;line-height:1.6;color:#645427;padding-left:20px}
#pool-setup-preview{margin-top:20px;border:1px solid #dce5ee;border-radius:12px;padding:16px;background:#f7fbfd}
@media(max-width:600px){.modal:has(#pool-setup-form){width:100%;max-height:100dvh;border-radius:0}.plan-section .fields{grid-template-columns:1fr}.plan-section-body{padding:0 12px 14px}.plan-section>summary{padding:16px 12px}#pool-setup-form button{min-height:44px}#pool-setup-preview{padding:8px}.plan-step .fields{gap:8px}}
.modal:has(#pool-setup-form){max-width:1240px}.pool-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 350px;gap:24px;align-items:start}.pool-editor-fields{min-width:0}.pool-editor-preview{position:sticky;top:0}.pool-editor-preview #pool-setup-preview{margin-top:0}.plan-preview-jump{display:none}.plan-save-actions{position:sticky;bottom:-24px;background:white;padding:16px 0;border-top:1px solid #dce5ee;z-index:2}
@media(max-width:850px){.pool-editor-grid{grid-template-columns:1fr}.pool-editor-preview{position:static}.plan-preview-jump{display:inline-flex;margin-bottom:16px}.plan-save-actions{bottom:-16px}.plan-save-actions button{flex:1}}
.pool-simple-nav{display:flex;gap:8px;margin:0 0 22px}.pool-simple-nav button{flex:1;min-height:44px;background:#f1f5f9;color:#51697e;border:1px solid transparent}.pool-simple-nav button[aria-current=step]{background:#e9f0ff;border-color:#2860c8;color:#174596;font-weight:700}.shaft-side-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:12px 0}.shaft-side-grid button{display:flex;flex-direction:column;align-items:center;gap:8px;padding:12px;min-height:88px}.shaft-side-grid svg{width:72px;max-width:100%}.shaft-side-grid button[aria-pressed=true]{border:2px solid #2660c6;background:#eef4ff;color:#19489c}.pool-expert{margin-top:24px}.pool-expert>p{padding:0 16px}.pool-expert>.plan-section{margin:10px}.plan-save-actions [hidden],[data-pool-step][hidden],#simple-shaft-position[hidden]{display:none!important}.plan-notes>summary{cursor:pointer;min-height:32px;padding:6px 0}.plan-notes{list-style:none;padding:0;font-size:12px;color:#61758a}
@media(max-width:600px){.shaft-side-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.pool-simple-nav{gap:4px}.pool-simple-nav button{padding:10px 4px;font-size:13px}}
.picture-select-source{display:none!important}.pool-picture-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0 18px;grid-column:1/-1}.pool-picture-choices button{display:flex;flex-direction:column;align-items:center;padding:10px;min-width:0;gap:6px;font-size:13px;line-height:1.3}.pool-picture-choices svg{width:90px;max-width:100%;height:62px}.pool-picture-choices button[aria-pressed=true],.touch-element-tabs button[aria-pressed=true]{border:2px solid #2660c6;background:#edf4ff;color:#174596}.touch-element-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}.touch-element-tabs button{min-height:44px}.touch-instruction{font-weight:600;color:#173b5e;margin:12px 0}.pool-tap-canvas{position:relative;width:100%;max-width:520px;background:#f5fafc;border-radius:12px}.pool-tap-canvas>.configured-pool{display:block;width:100%;height:auto;margin:0}.pool-tap-targets{position:absolute;inset:0;pointer-events:none}.pool-tap-targets button{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;background:white;border:2px solid #2760c5;color:#215ac0;font-size:24px;box-shadow:0 2px 5px #17355520}.pool-tap-targets button[aria-pressed=true]{background:#245ac4;color:white}.shaft-side-grid[hidden]{display:none!important}@media(max-width:600px){.pool-picture-choices{grid-template-columns:repeat(2,minmax(0,1fr))}.pool-picture-choices button{min-height:108px}.pool-editor-preview{display:none}#pool-setup-form:has([data-pool-step="0"]:not([hidden])) .pool-editor-preview{display:block}.plan-preview-jump{display:none}}

/* Clear single-action collision suggestions, including narrow mobile dialogs. */
#pool-layout-issues .notice{display:block;min-width:0;max-width:100%;overflow-wrap:anywhere}#pool-layout-issues ul{padding-left:20px}#pool-layout-issues .row{display:block}#pool-layout-issues button{white-space:normal;max-width:100%;min-height:44px;text-align:center;width:100%}

/* Mobile pool choice readability and step navigation. */
.pool-picture-choices button{white-space:normal;overflow-wrap:anywhere;text-align:center}.pool-picture-choices button>*{max-width:100%}
#pool-setup-form [data-pool-step]{scroll-margin-top:84px}
@media(max-width:600px){#simple-stair-mount select{font-size:16px;min-height:48px}.pool-simple-nav button{white-space:normal}.plan-save-actions button{min-height:44px}}

.project-folder{cursor:pointer}.project-folder:has(a:focus-visible){outline:3px solid #2563eb;outline-offset:3px}
.version{gap:16px;flex-wrap:wrap}.version .row{flex-wrap:wrap}

.next-action-list{display:grid;gap:12px;margin:20px 0}.next-action-list button{min-height:48px;text-align:left;white-space:normal}#simple-stair-count{padding:18px}#simple-stair-count [aria-pressed="true"]{background:#eaf1ff;border:2px solid #255bd8;color:#1747a3}.offer-check{padding:20px;background:#f1f6ff;border:1px solid #cbdcf8;border-radius:14px;margin:16px 0 24px}.offer-check .keyvalue>div{display:flex;flex-direction:column;align-items:flex-start;gap:8px}.wizard-footer button{white-space:normal}

.offer-edit-row{border:1px solid var(--line,#dbe5ef);border-radius:12px;padding:18px;margin:18px 0;min-width:0}
.offer-edit-row legend{font-weight:700;padding:0 6px}
.offer-edit-values{display:grid;grid-template-columns:1fr 1fr 1.5fr 1fr;gap:14px;align-items:center}
.offer-edit-values strong{display:block;margin-top:8px}
#offer-editor-form .total{position:sticky;bottom:0;background:#f4f8ff;z-index:1;padding:18px;border-radius:12px}
@media(max-width:600px){.offer-edit-values{grid-template-columns:1fr 1fr}.offer-edit-row{padding:12px}#offer-editor-form .total{position:static}#offer-editor-form button{min-height:44px;white-space:normal}}

.modal:has(#offer-editor-form){width:min(1050px,96vw);max-width:1050px}
@media(max-width:600px){.modal:has(#offer-editor-form){width:100%;max-width:100%}}
.smart-pool-check{background:#f4f8ff;border:1px solid #cfddf0;border-radius:14px;padding:20px;margin:16px 0;overflow-wrap:anywhere}
.smart-pool-check h3{margin:0 0 10px}.smart-pool-check p{margin:8px 0 12px;line-height:1.5}
.smart-pool-item{border-top:1px solid #d5e1ef;padding:14px 0}.smart-pool-item:last-child{padding-bottom:0}
.smart-pool-check summary{cursor:pointer;min-height:44px;padding:12px 0;font-weight:600}
.smart-pool-check button{white-space:normal;min-height:44px}

/* Shape-specific measurements stay out of the way until they apply. */
#pool-basic-details [hidden],#pool-diameter-hint[hidden]{display:none!important}
#pool-basic-details{margin-top:20px}
#pool-setup-form input[readonly]{background:#f1f5f9;color:#52677d}
.offer-comparison{margin-bottom:24px;border:2px solid #b8cafa}.offer-change{border-top:1px solid #dce5f0;padding:16px 0}.offer-change-values{display:grid;grid-template-columns:1fr 1fr;gap:20px}.offer-change-values>div{min-width:0;overflow-wrap:anywhere}.partner-project-group{padding:20px}.partner-project-group+.partner-project-group{border-top:2px solid #dce5f0}#pool-close-warning{scroll-margin:24px} @media(max-width:600px){.offer-change-values{grid-template-columns:1fr;gap:10px}.partner-project-group{padding:12px}}
.offer-change-values small{display:block;margin-bottom:6px;color:#536987}
.partner-detail-nav{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:24px}.partner-detail-section{margin-bottom:28px;scroll-margin-top:90px}.partner-detail-row{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:20px 0;border-bottom:1px solid #dce5f0}.partner-detail-row>div{min-width:0;overflow-wrap:anywhere}.partner-offer-history{margin:12px 0 20px}.partner-offer-history summary{cursor:pointer;padding:12px 0;font-weight:600}.partner-detail-section .keyvalue a{display:block;overflow-wrap:anywhere}@media(max-width:600px){.partner-detail-row{align-items:stretch;flex-direction:column}.partner-detail-nav>button{flex:1 1 44%}.partner-detail-section{scroll-margin-top:70px}}
/* Keep fields and confirmation actions clear of the sticky wizard and phone navigation. */
@media(max-width:650px){#wizard-form button,#wizard-form input,#wizard-form select,#wizard-form textarea{scroll-margin-top:90px;scroll-margin-bottom:190px}#smart-fittings-confirmation{scroll-margin-block:90px 190px}}
@media(max-width:650px){.wizard-footer{position:static}}
