:root{--navy:#122c50;--ink:#203451;--muted:#66758c;--line:#d6dfed;--blue:#2864b8;--light:#f3f6fb;--green:#28558e}*{box-sizing:border-box}body{margin:0;font:15px/1.55 "Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--light)}a{color:var(--blue);text-decoration:none}a:hover{text-decoration:underline}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #79a6ee;outline-offset:3px}.auth-layout{min-height:100vh;display:grid;grid-template-columns:minmax(340px,44%) 1fr}.brand-panel{padding:48px 60px;background:var(--navy);color:#fff;display:flex;flex-direction:column;justify-content:space-between;min-height:100vh;position:relative;overflow:hidden}.brand{font-size:19px;letter-spacing:3px;color:white;font-weight:700}.brand span{display:block;font-size:9px;letter-spacing:2.4px;color:#93adbc;margin-top:4px}.brand-copy{max-width:470px;margin:55px 0}.brand-copy h1{font-size:clamp(36px,3.5vw,58px);line-height:1.12;letter-spacing:-2px;font-weight:600;margin:18px 0 25px}.brand-copy>p:not(.eyebrow){color:#b8cae5;font-size:17px;max-width:365px}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:700;color:var(--muted)}.brand-copy .eyebrow{color:#8fb5f1}.brand-panel small{color:#94aaca}.pipe-symbol{width:112px;height:112px;border:1px solid #4a697c;border-radius:50%;position:relative;margin-bottom:45px}.pipe-symbol:before,.pipe-symbol:after,.pipe-symbol i{content:"";position:absolute;border:1px solid #75b9d0;border-radius:50%;inset:14px}.pipe-symbol:after{inset:29px;border-width:5px;border-color:#d6e9ef}.pipe-symbol i{inset:-12px;border:1px dashed #39566b}.steps{display:grid;gap:9px;margin-top:32px;color:#b8cae5;font-size:12px}.auth-content{display:flex;align-items:center;justify-content:center;padding:45px 30px;background:white}.auth-card{width:100%;max-width:430px}.wordmark{font-size:36px;font-weight:750;color:var(--navy);letter-spacing:-2px}.wordmark span{color:#6095ea}.auth-card>.eyebrow{margin-top:30px}.auth-card h2{font-size:28px;line-height:1.25;letter-spacing:-.8px;margin:12px 0}.muted,.hint,.footnote{color:var(--muted)}.hint{font-size:12px;margin:0}.auth-tabs{display:flex;border-bottom:1px solid var(--line);margin:24px 0}.auth-tabs a{width:50%;text-align:center;padding:12px;color:var(--muted)}.auth-tabs a.active{border-bottom:3px solid var(--blue);color:var(--ink);font-weight:600}.auth-form{display:grid;gap:16px;margin-top:25px}label{display:block;font-size:13px;font-weight:600}input,select,textarea{width:100%;border:1px solid #cad7df;border-radius:7px;background:white;padding:11px 12px;color:var(--ink);margin-top:6px;min-width:0}input:focus,select:focus,textarea:focus{border-color:var(--blue)}.password-field{position:relative}.password-field input{padding-right:85px}.show-password{position:absolute;right:10px;top:16px;border:0;background:transparent;color:var(--muted);font-size:12px}.field-pair{display:grid;grid-template-columns:1fr 1fr;gap:14px}.primary,.secondary{display:inline-flex;align-items:center;justify-content:center;border-radius:7px;padding:11px 20px;font-weight:600;font-size:14px;text-decoration:none}.primary{border:1px solid var(--blue);background:var(--blue);color:white}.primary:hover{background:#20529a;text-decoration:none}.secondary{border:1px solid var(--line);background:white;color:var(--ink)}.secondary:hover{background:var(--light);text-decoration:none}.full{width:100%;margin-top:5px}.auth-links{display:flex;justify-content:space-between;gap:12px;font-size:12px;margin-top:21px}.footnote{font-size:11px;border-top:1px solid var(--line);padding-top:20px;margin-top:28px}.notice{padding:13px 16px;border-radius:7px;margin:16px 0;font-size:13px}.success{background:#eaf1fc;color:#28558e}.error{background:#fff0ee;color:#9d3125}.workspace{display:grid;grid-template-columns:250px 1fr;min-height:100vh}.sidebar{background:var(--navy);padding:28px 20px;color:#bdcce3}.sidebar .wordmark{color:white}.sidebar nav{margin-top:40px;display:grid;gap:7px}.sidebar nav a{color:#bdcce3;padding:12px;border-radius:6px;font-size:13px}.sidebar nav a.active{color:white;background:#233f68}.sidebar nav a:hover{background:#1c365d;text-decoration:none}.sidebar .brand{font-size:11px;letter-spacing:2px;margin-top:40px;display:block}.main{padding:30px 45px;min-width:0}.topbar{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:20px;gap:15px}.account{font-size:12px;color:var(--muted)}.topbar form{margin:0}.page-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:35px 0 22px}.page-heading h1{margin:0;font-size:30px;letter-spacing:-1px}.page-heading p{margin:5px 0;color:var(--muted)}.actions{display:flex;gap:9px;flex-wrap:wrap}.panel{background:white;border:1px solid var(--line);border-radius:10px;padding:25px;margin-bottom:20px}.panel h2{font-size:18px;margin:0 0 16px}.project-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}.project-card h2{margin-bottom:7px}.project-card p{font-size:12px;color:var(--muted)}.project-card form{display:inline}.empty{text-align:center;padding:55px 25px}.empty h2{font-size:23px}.empty p{max-width:440px;margin:12px auto 22px;color:var(--muted)}.data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.module-list{display:grid;gap:12px}.module-list div{border:1px solid var(--line);border-radius:7px;padding:14px}.badge{background:#eaf0fa;color:#3c5d91;border-radius:30px;padding:4px 10px;font-size:11px}.work-note{border-left:3px solid #cc9a43;background:#fff9ee;padding:13px 16px;color:#7b5b22;font-size:13px}.inline-form{display:flex;gap:12px;align-items:end}.inline-form label{flex:1}.inline-form input{margin-top:0}footer{font-size:11px;color:var(--muted);margin:30px 0}.hidden-file{position:absolute;left:-10000px}@media(max-width:1000px){.brand-panel{padding:35px}.main{padding:25px}.workspace{grid-template-columns:210px 1fr}}@media(max-width:720px){.auth-layout{display:block}.brand-panel{min-height:0;padding:23px}.brand-copy,.brand-panel small{display:none}.auth-content{padding:30px 22px}.workspace{display:block}.sidebar{padding:15px 20px}.sidebar nav{margin-top:12px;display:flex;overflow-x:auto;gap:3px}.sidebar nav a{white-space:nowrap;padding:9px}.sidebar .brand{display:none}.main{padding:20px}.page-heading{align-items:flex-start;flex-direction:column;margin-top:25px}.data-grid{grid-template-columns:1fr}.topbar{flex-wrap:wrap}.inline-form{flex-direction:column;align-items:stretch}}@media(prefers-reduced-motion:no-preference){button,a{transition:background .15s ease}}

/* Keep browser-filled fields legible without suppressing native autofill. */
input:autofill{color:var(--ink);border-color:#8da9d3}
input:-webkit-autofill{-webkit-text-fill-color:var(--ink);caret-color:var(--ink);border-color:#8da9d3}

/* Persistent workspace menu. */
.main{--menu-inset:45px;padding-top:0}
.topbar{position:sticky;top:0;z-index:20;margin:0 calc(-1 * var(--menu-inset));padding:18px var(--menu-inset);min-height:82px;background:#dcecf5;border-bottom:1px solid #b7d2e3;box-shadow:0 2px 8px #122c500d}
.topbar .badge{background:#cbdcf5;color:#284873}
.topbar .account{color:#345b73;overflow-wrap:anywhere;min-width:0}
.topbar .secondary{background:#edf3fc;border-color:#a7bfdf;color:#284873}
.topbar .secondary:hover{background:#cbdcf5}
html{scroll-padding-top:140px}
@media(max-width:1000px){.main{--menu-inset:25px;padding-top:0}}
@media(max-width:720px){.main{--menu-inset:20px;padding-top:0}.topbar{gap:10px;padding-top:12px;padding-bottom:12px}.topbar .account{flex:1}}

.expander>summary{cursor:pointer;font-size:18px;font-weight:600;color:var(--navy);border-radius:4px}
.expander[open]>summary{margin-bottom:20px}
.expander>summary::marker{color:var(--blue)}
.expander>summary:focus-visible{outline:3px solid #79a6ee;outline-offset:5px}

/* Compact overview with every project section expanded. */
.compact-project{--menu-inset:24px;padding:0 24px 12px}
.compact-project .topbar{min-height:58px;padding-top:8px;padding-bottom:8px}
.compact-project .page-heading{margin:12px 0 10px;gap:8px}
.compact-project .page-heading h1{font-size:24px;line-height:1.2}
.compact-project .page-heading p{margin:0 0 3px}
.compact-project .notice,.compact-project .work-note{margin:8px 0;padding:7px 12px;font-size:12px}
.compact-project .panel{padding:10px 14px;margin-bottom:8px;border-radius:7px}
.compact-project .expander>summary{font-size:15px;line-height:22px}
.compact-project .expander[open]>summary{margin-bottom:8px}
.compact-project .data-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 14px;align-items:end}
.compact-project .standard-field{grid-column:auto}


.compact-project label{font-size:12px;line-height:1.3;min-width:0}
.compact-project input,.compact-project select,.compact-project textarea{font-size:13px;line-height:18px;padding:5px 8px;margin-top:3px;border-radius:5px}
.compact-project textarea{height:42px;min-height:42px;resize:vertical}
.compact-project .primary,.compact-project .secondary{padding:7px 14px;font-size:13px}
.compact-project footer{margin:10px 0 0}
@media(max-width:1200px){.compact-project .data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-project .geometry-grid,}
@media(max-width:720px){.compact-project{--menu-inset:16px;padding-right:16px;padding-left:16px}.compact-project .data-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.compact-project input,.compact-project select,.compact-project textarea{font-size:16px;min-height:36px}}
@media(max-width:420px){.compact-project .data-grid{grid-template-columns:1fr}.compact-project .standard-field{grid-column:auto}}

/* Clearer borders in the compact project form. */
.compact-project .panel{border:2px solid #8fa6c9}
.compact-project input,.compact-project select,.compact-project textarea{border:2px solid #7c98bd}
.compact-project input:focus,.compact-project select:focus,.compact-project textarea:focus{border-color:#2864b8}

.compact-project [hidden]{display:none!important}
#calculation-standard option:disabled{color:#767676}
.topbar{background:#233f68;border-color:#193254;color:#fff}
.menu-logo{display:block;flex:0 0 150px;line-height:0}
.menu-logo svg{width:150px;height:52px}
.menu-title{font-size:24px;line-height:1.2;margin:0;flex:1;color:#fff}
.topbar .account{color:#d9e5f9}
@media(max-width:720px){.menu-logo{flex-basis:105px}.menu-logo svg{width:105px;height:38px}.menu-title{font-size:20px}.topbar .account{flex-basis:50%}}

/* Pro Engineers blue palette and restrained concrete texture. */
.main{background-color:#e1e4e9;background-image:linear-gradient(rgba(219,223,230,.72),rgba(219,223,230,.72)),url('/concrete-pipe-background.png');background-position:center,right bottom;background-size:cover,1100px auto;background-repeat:no-repeat;background-attachment:scroll,fixed}
.workspace .panel{background:rgba(255,255,255,.96)}
.topbar{background:#233f68}
@media(max-width:720px){.main{background-attachment:scroll;background-size:cover,850px auto}}

/* Darker expander surfaces, unchanged input backgrounds. */
.workspace .panel.expander{background:#d7e1ef}

.workspace .panel.expander{background:rgba(188,205,227,.60)}
.menu-heading{display:flex;flex-direction:column;align-items:flex-start;gap:12px;flex:1;min-width:0}
.menu-heading .menu-logo{flex:none}
.menu-heading .menu-title{flex:none;margin:0}
.project-create{padding:12px 16px;margin-bottom:8px}
.project-search{display:flex;align-items:end;gap:12px;margin-bottom:16px;flex-wrap:wrap}
.project-search label:first-child{flex:1;min-width:220px}
.project-search label:nth-child(2){width:210px}
.project-table-scroll{overflow-x:auto}
.project-table{width:100%;border-collapse:collapse;font-size:13px;text-align:left}
.project-table th{background:#d5e1f1;color:#233f68;font-weight:600}
.project-table th,.project-table td{padding:9px 12px;border-bottom:1px solid #c9d5e7;vertical-align:middle}
.project-table tbody tr:nth-child(even){background:#f2f5fa}
.project-table tbody tr:hover{background:#e5edf9}
.project-name{font-weight:600;overflow-wrap:anywhere}
.project-date{white-space:nowrap;color:#66758c}
.project-pagination,.project-pagination>div{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.project-pagination{margin-top:14px;font-size:13px}
.project-pagination .secondary{padding:6px 12px}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.project-tools{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:16px 0}
.project-tools .project-create{margin:0;min-width:0;background:rgba(188,205,227,.60);border:2px solid #8fa6c9}
.project-tools h2{font-size:16px;margin:0 0 10px}
.project-tools .inline-form label{min-width:0}
.project-tools .inline-form button{flex-shrink:0}
@media(max-width:1100px){.project-tools .inline-form{flex-direction:column;align-items:stretch}}
@media(max-width:720px){.project-tools{grid-template-columns:1fr}}

/* Project management cards use the established project form styling. */
.project-tools{gap:14px;margin:12px 0 8px}
.project-tools .project-create,.workspace .project-list{padding:10px 14px;border:2px solid #8fa6c9;border-radius:7px;background:rgba(188,205,227,.60)}
.project-tools h2{font-size:15px;line-height:22px;margin:0 0 8px}
.project-tools label,.project-search label{font-size:12px;line-height:1.3}
.project-tools input,.project-search input,.project-search select{font-size:13px;line-height:18px;padding:5px 8px;margin-top:3px;border:2px solid #7c98bd;border-radius:5px;background:#fff}
.project-tools .primary,.project-tools .secondary,.project-search .primary,.project-search .secondary{padding:7px 14px;font-size:13px}
.project-tools input:focus,.project-search input:focus,.project-search select:focus{border-color:#2864b8}
.project-search{gap:14px;margin-bottom:10px}
@media(max-width:720px){.project-tools input,.project-search input,.project-search select{font-size:16px;min-height:36px}}

/* High contrast text on the translucent project list. */
.project-list{color:#142b4b}
.project-list .project-table th{color:#102746}
.project-list .project-table td,.project-list .project-date{color:#142b4b}
.project-list .project-table a{color:#12458c;font-weight:600}
.project-list .project-table a:hover{color:#082c62;text-decoration:underline}
.project-list .project-pagination,.project-list label{color:#142b4b;font-weight:600}
.project-list input::placeholder{color:#4b5f78;opacity:1}

.project-list,.project-list .project-table th,.project-list .project-table td,.project-list .project-date,.project-list .project-table a,.project-list .project-pagination,.project-list label{color:#080e18;font-weight:650}
.project-list .project-table a:hover{color:#000}
.project-list input::placeholder{color:#253044;opacity:1}

/* Distinct project table header and row separators. */
.project-list .project-table thead th{background:#aec3e1;color:#050a12;font-weight:750;border-top:2px solid #58759d;border-bottom:2px solid #58759d;padding:10px 12px}
.project-list .project-table tbody td{color:#050a12;border-bottom:1px solid #8199ba}
.project-list .project-table tbody a,.project-list .project-table .project-date{color:#050a12}

.project-table tr[data-project-url]{cursor:pointer}
.project-table tr[data-project-url]:focus-within{background:#d4e2f5}

.project-table [hidden]{display:none!important}
.project-count{margin:10px 0 0;font-size:13px;color:#080e18;font-weight:600}

.project-list .column-sort{display:flex;align-items:center;gap:8px;width:100%;padding:0;border:0;background:transparent;color:#050a12;font:inherit;font-weight:750;text-align:left;cursor:pointer}
.project-list .column-sort:hover{color:#12458c}
.sort-arrow{font-size:14px}

/* One consistent header for every workspace page. */
.workspace .topbar{background:#233f68;min-height:128px;padding-top:16px;padding-bottom:16px}
.workspace .menu-heading{gap:12px}
.workspace .menu-logo{flex:none}
.workspace .menu-logo svg{width:150px;height:52px}
.workspace .menu-title{font-size:24px;line-height:1.2}
.workspace .topbar .secondary{padding:11px 20px;font-size:14px}
@media(max-width:720px){.workspace .topbar{min-height:128px}.workspace .menu-logo svg{width:150px;height:52px}}

.load-tab-bar{display:flex;align-items:center;gap:8px;margin:0 0 12px}
#load-tabs{display:flex;gap:6px;overflow-x:auto;min-width:0}
.load-tab{display:flex;flex-shrink:0;border:1px solid #7c98bd;border-radius:6px;background:#d2deee;overflow:hidden}
.load-tab button{border:0;background:transparent;color:#122c50;padding:8px 12px;font-weight:600}
.load-tab button[aria-selected=true]{background:#233f68;color:white}
.load-tab .load-remove{padding:8px;font-size:18px}
.load-tab .load-remove:disabled{opacity:.3;cursor:default}
.load-tab input{width:150px;margin:0}
#load-panel:focus{outline:none}
#load-panel .hint{margin-top:8px}

/* Dense load controls with a short collapsed overview. */
.load-tab-bar{gap:6px;margin-bottom:6px}
.load-tab button{padding:4px 10px;font-size:13px;line-height:20px}
.load-tab .load-remove{padding:4px 7px;font-size:16px}
.compact-project #load-add{padding:4px 10px;line-height:20px}
.compact-project #load-editor .expander{padding:6px 12px;margin-bottom:5px}
.compact-project #load-editor .expander>summary{font-size:14px;line-height:20px}
.compact-project #load-editor .expander[open]>summary{margin-bottom:6px}
