:root{--ink:#1e2b3e;--muted:#738094;--navy:#172338;--line:#e6e9ed;--paper:#f6f7f7;--white:#fff;--gold:#b48a50;--gold-soft:#f9f1e6;--red:#b9685e;--shadow:0 12px 40px rgba(25,42,63,.055)}
.login-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}.login-actions .button{width:100%;white-space:nowrap}.register-dialog{width:min(420px,calc(100vw - 28px));max-height:calc(100vh - 24px);padding:24px;border:1px solid #dfe4e8;border-radius:12px;box-shadow:0 24px 70px rgba(23,35,56,.22);color:var(--ink)}.register-dialog::backdrop{background:rgba(17,30,49,.48)}.register-dialog form{display:grid;gap:15px}.register-heading{display:flex;align-items:center;justify-content:space-between}.register-heading h2{margin:0;font-size:22px}.register-heading button{border:0;background:transparent;color:#7b8897;font-size:25px;line-height:1}.register-dialog label{display:grid;gap:6px;color:#576477;font-size:13px;font-weight:700}.register-dialog input{width:100%;height:44px;border:1px solid #dce2e7;border-radius:5px;padding:0 12px}.register-dialog label small{min-height:16px;font-size:11px;font-weight:500;color:#6b8292}.register-dialog label small.unavailable{color:#b45d52}.register-dialog .form-error{margin:0!important}.register-dialog .button{height:44px;text-align:center}
.brand-symbol{position:relative;display:block;flex:none;width:42px;height:42px;overflow:hidden;background:#fff;border-radius:6px}.brand-symbol img{position:absolute;display:block;width:84px;height:84px;max-width:none;left:-21px;top:-17px}.gateway-brand-symbol{width:52px;height:52px;border-radius:8px;z-index:1}.gateway-brand-symbol img{width:104px;height:104px;left:-26px;top:-23px}.login-wordmark{margin-top:24px;padding-top:18px;border-top:1px solid #e6e9ed}.login-wordmark img{display:block;width:100%;height:auto}@media(max-width:640px){.brand-symbol{width:36px;height:36px}.brand-symbol img{width:72px;height:72px;left:-18px;top:-15px}.gateway-brand-symbol{width:44px;height:44px}.gateway-brand-symbol img{width:88px;height:88px;left:-22px;top:-19px}.login-wordmark{margin-top:20px;padding-top:14px}}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--paper);color:var(--ink);font-family:Inter,"PingFang SC","Microsoft YaHei",Arial,sans-serif;font-size:14px}button,input,select{font:inherit}button{cursor:pointer}button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.hidden{display:none!important}.app-shell{max-width:1660px;margin:auto;min-height:100vh}.topbar{height:82px;background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 4.8%;border-bottom:1px solid var(--line)}.brand{display:flex;align-items:center;gap:13px}.brand-mark{width:38px;height:38px;border-radius:10px;background:var(--navy);color:#fff;display:grid;place-items:center;font-size:19px;font-weight:800;letter-spacing:-2px}.brand-mark span{color:#d4a76c}.brand strong{display:block;font-size:16px;letter-spacing:.03em}.brand small{display:block;color:#9aa4b0;font-size:9px;font-weight:700;letter-spacing:.16em;margin-top:3px}.top-actions{display:flex;align-items:center;gap:24px}.local-pill{color:#60726b;font-size:12px}.local-pill i{display:inline-block;width:7px;height:7px;background:#61a783;border-radius:100%;margin-right:7px}.button{border:0;border-radius:6px;padding:11px 17px;font-weight:650}.button-outline{border:1px solid #d4dbe1;background:white;color:var(--ink)}.button-outline span{margin-left:12px;color:var(--gold)}.button-text{background:transparent;color:var(--gold);padding:8px 0}
main{padding:0 4.8% 80px}.hero{background:var(--navy);color:#fff;min-height:290px;margin:28px 0 25px;border-radius:10px;display:flex;justify-content:space-between;align-items:stretch;overflow:hidden;position:relative}.hero:after{content:"";position:absolute;right:18%;top:-150px;width:500px;height:500px;border:1px solid rgba(255,255,255,.055);border-radius:50%;box-shadow:0 0 0 65px rgba(255,255,255,.018),0 0 0 130px rgba(255,255,255,.012);pointer-events:none}.hero>div:first-child{padding:40px 55px;position:relative;z-index:1}.eyebrow,.section-kicker{font-size:11px;text-transform:uppercase;font-weight:800;letter-spacing:.16em;color:var(--gold)}.hero .eyebrow{color:#d3a876}.hero h1{font-size:clamp(30px,3.2vw,49px);line-height:1.25;letter-spacing:-.04em;margin:15px 0 13px;font-weight:700}.hero h1 em{font-style:normal;color:#d8b480}.hero p{max-width:590px;color:#b7c1d0;line-height:1.85;margin:0;font-size:13px}.hero-side{position:relative;z-index:1;width:250px;min-width:250px;border-left:1px solid rgba(255,255,255,.11);padding:37px 30px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px}.hero-side span:not(.hero-line){color:#8796a9;font-size:11px;letter-spacing:.08em}.hero-side strong{font-size:13px;font-weight:600;margin-bottom:10px}.hero-line{width:27px;height:3px;background:#d5ae78;margin-bottom:12px}
.control-card,.panel{background:#fff;border:1px solid var(--line);border-radius:9px;box-shadow:var(--shadow)}.control-card{padding:26px 32px 28px}.control-heading,.area-heading,.panel-tools{display:flex;justify-content:space-between;align-items:center}.control-heading h2,.area-heading h2{font-size:21px;margin:5px 0 0;letter-spacing:-.02em}.draft-badge{border:1px solid #e4d4bd;background:#fbf6ed;color:#947449;border-radius:4px;padding:7px 10px;font-size:11px;font-weight:700}.controls{display:grid;grid-template-columns:1.1fr 1fr 1fr .7fr;gap:23px;margin-top:25px}.controls label{display:block;position:relative;font-size:12px;font-weight:700;color:#536176}.controls input,.controls select{display:block;width:100%;margin-top:9px;padding:12px 13px;border:1px solid #dce2e7;background:#fbfcfd;color:var(--ink);border-radius:5px;height:43px;font-weight:650}.controls label small{display:block;margin-top:7px;color:#9aa4af;font-weight:400;font-size:11px}.unit{float:right;color:#9aa4af;font-weight:400}.control-end{display:flex;flex-direction:column;align-items:flex-end;justify-content:center}.control-end span{font-size:11px;color:#9aa4af;margin-top:8px}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-top:18px}.metric{position:relative;overflow:hidden;background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px 23px 21px;min-height:132px}.metric-primary{background:#edf1f4;border-color:#e4e9ed}.metric-alert{background:#faf5f2;border-color:#f1e5e1}.metric span{color:#69778a;font-size:12px;font-weight:700}.metric strong{display:block;font-size:31px;letter-spacing:-.04em;margin:10px 0 4px;line-height:1.1}.metric strong small{font-size:14px;font-weight:600;margin-left:4px;color:#8190a0}.metric>small{font-size:11px;color:#9aa4af}.metric b{position:absolute;right:19px;top:16px;color:#dce2e8;font-size:12px;letter-spacing:.1em}.metric-alert strong{color:var(--red)}
.work-area{margin-top:41px}.area-heading{margin-bottom:18px}.segmented{background:#e9ecef;border-radius:7px;padding:4px;display:flex;gap:3px}.segmented button{background:transparent;border:0;border-radius:5px;padding:10px 18px;color:#758192;font-size:12px;font-weight:700}.segmented button.active{background:#fff;color:var(--navy);box-shadow:0 1px 5px rgba(20,30,40,.09)}.panel-tools{padding:22px 26px;border-bottom:1px solid var(--line);gap:12px}.panel-tools h3{margin:0 0 5px;font-size:16px}.panel-tools p{margin:0;color:#97a1ad;font-size:11px}.search,.space-tools select{height:38px;border:1px solid #e0e5e9;border-radius:5px;padding:0 12px;background:#fff;color:var(--ink);min-width:225px}.space-tools{display:flex;gap:8px}.space-tools select{min-width:130px}.table-scroll{overflow:auto;max-height:560px}.matrix,.space-table{border-collapse:separate;border-spacing:0;width:100%;white-space:nowrap}.matrix th,.space-table th{position:sticky;top:0;background:#f9fafb;text-align:left;padding:15px 17px;font-size:11px;color:#8895a4;font-weight:750;letter-spacing:.025em;border-bottom:1px solid var(--line);z-index:2}.matrix th:first-child,.space-table th:first-child{padding-left:26px}.matrix td,.space-table td{border-bottom:1px solid #eef0f2;padding:9px 17px;font-size:12px;height:48px}.matrix td:first-child,.space-table td:first-child{padding-left:26px}.matrix tr:hover td,.space-table tr:hover td{background:#fbfcfd}.matrix .factor{font-weight:700;color:#344357}.matrix .option{color:#637084}.matrix input{width:87px;border:1px solid transparent;border-radius:4px;background:#f7f8f9;padding:8px;text-align:right;color:#38475a;font-size:12px}.matrix input:focus{background:#fff;border-color:#c9ab83}.matrix input.empty{color:#aeb7c1;font-weight:400}.matrix td.selected-tier,.matrix th.selected-tier{background:#fbf4e9}.matrix tr:hover td.selected-tier{background:#f8eddd}.matrix input.edited{border-color:#c69d61;background:#fff8ed;color:#8d642e;font-weight:700}.matrix input:disabled{background:transparent;color:#c0c6cc}.panel-foot{display:flex;justify-content:space-between;padding:15px 25px;color:#9ba5ae;font-size:11px}.foot-dot{display:inline-block;width:7px;height:7px;background:#d4ad75;border-radius:50%;margin-right:7px}.space-table tbody tr{cursor:pointer}.space-table .number{font-weight:800;color:var(--navy)}.space-table .price{font-weight:800;font-size:14px}.space-table .adjust.positive{color:#4e9173}.space-table .adjust.negative{color:#b66b63}.status{display:inline-block;border-radius:3px;padding:5px 7px;font-size:10px;font-weight:700;background:#edf4ef;color:#5e9470}.status.warn{background:#fff3e5;color:#b78343}.pagination{display:flex;justify-content:flex-end;gap:8px;padding:0 24px 20px}.pagination button{padding:7px 12px;border:1px solid var(--line);background:#fff;color:#667487;border-radius:4px;font-size:11px}.pagination button:disabled{opacity:.35;cursor:not-allowed}
.notice{display:flex;gap:16px;margin-top:20px;padding:21px 25px;border:1px solid #e8dfd0;background:#fbf8f3;border-radius:7px}.notice-symbol{border:1px solid #b99664;width:20px;height:20px;border-radius:50%;text-align:center;line-height:19px;font-size:12px;color:#b08a57;flex:none}.notice strong{font-size:12px;color:#6e634f}.notice p{margin:6px 0 0;color:#978c79;font-size:11px;line-height:1.8}footer{display:flex;justify-content:space-between;padding:24px 4.8% 40px;color:#aab2bb;font-size:11px}.backdrop{position:fixed;inset:0;background:rgba(15,26,42,.45);z-index:10}.drawer{position:fixed;right:0;top:0;bottom:0;width:min(510px,100vw);background:#fff;z-index:11;box-shadow:-15px 0 50px rgba(0,0,0,.12);display:flex;flex-direction:column}.drawer-head{display:flex;justify-content:space-between;align-items:flex-start;padding:28px 30px;border-bottom:1px solid var(--line)}.drawer-head h2{margin:8px 0 0;font-size:23px}.drawer-head button{border:0;background:transparent;font-size:27px;color:#9aa4af;line-height:1}.drawer-body{overflow:auto;padding:24px 30px 40px}.drawer-price{background:#f3f6f8;border-radius:7px;padding:21px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:end}.drawer-price span{color:#8b98a7;font-size:11px}.drawer-price strong{display:block;font-size:30px;margin-top:5px}.drawer-section{margin:22px 0}.drawer-section h3{font-size:13px;border-bottom:1px solid var(--line);padding-bottom:10px}.detail-row{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid #f2f3f5;font-size:12px}.detail-row span{color:#758295}.detail-row strong{text-align:right;font-size:12px}.detail-row small{display:block;color:#aab4bf;font-weight:400;margin-top:3px}.drawer-warning{background:#fff5e8;color:#926e43;border-radius:5px;padding:10px 12px;margin:7px 0;font-size:11px;line-height:1.5}
@media(max-width:1000px){.hero-side{display:none}.controls{grid-template-columns:repeat(2,1fr)}.metrics{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.topbar{height:68px;padding:0 18px}.top-actions .local-pill{display:none}.top-actions .button{font-size:0;padding:9px 11px}.top-actions .button span{font-size:16px;margin:0}.brand small{font-size:8px}main{padding:0 14px 45px}.hero{margin:14px 0;min-height:auto}.hero>div:first-child{padding:30px 24px}.hero h1{font-size:31px}.control-card{padding:20px}.draft-badge{display:none}.controls{grid-template-columns:1fr 1fr;gap:16px}.control-end{align-items:flex-start}.metrics{gap:8px;margin-top:10px}.metric{padding:15px;min-height:110px}.metric strong{font-size:23px}.metric>small{font-size:10px}.work-area{margin-top:30px}.area-heading{align-items:flex-start;gap:12px;flex-direction:column}.panel-tools{padding:17px;align-items:stretch;flex-direction:column}.search{width:100%}.space-tools{flex-direction:column}.matrix th:first-child,.space-table th:first-child,.matrix td:first-child,.space-table td:first-child{padding-left:16px}footer{padding:20px 15px;gap:10px;flex-direction:column}}
.gateway{min-height:100vh;display:grid;grid-template-columns:1fr 1fr;background:#fff}.gateway-art{position:relative;background:var(--navy);color:#fff;min-height:650px;padding:50px 8%;display:flex;flex-direction:column;justify-content:space-between;overflow:hidden}.gateway-art:after{content:"";position:absolute;right:-180px;top:12%;width:600px;height:600px;border:1px solid rgba(255,255,255,.09);border-radius:50%;box-shadow:0 0 0 90px rgba(255,255,255,.025),0 0 0 180px rgba(255,255,255,.015)}.gateway-copy{position:relative;z-index:1}.gateway-copy h1{font-size:clamp(35px,4vw,62px);line-height:1.3;letter-spacing:-.045em;margin:22px 0}.gateway-copy p{color:#aebccf;line-height:1.9}.gateway-bottom{position:relative;z-index:1;color:#70819a;font-size:10px;letter-spacing:.2em}.login-card{width:min(380px,calc(100% - 48px));margin:auto;display:flex;flex-direction:column}.login-card h2{font-size:30px;margin:12px 0 8px}.login-card>p{color:#8b98a8;margin:0 0 28px}.login-card label{font-size:12px;font-weight:700;color:#576477;margin-bottom:18px}.login-card input,.new-project input{display:block;width:100%;height:46px;border:1px solid #dce2e7;border-radius:5px;padding:0 13px;margin-top:8px}.login-card .button{height:46px;text-align:center;position:relative}.login-card .button span{float:none;position:absolute;right:16px;top:50%;transform:translateY(-50%)}.button-solid{background:var(--navy);color:#fff}.button-solid span{float:right}.login-card small{font-size:11px;color:#a5aeb8;line-height:1.7;margin-top:16px}.form-error{color:#b45d52!important;font-size:11px;margin:0 0 12px!important;min-height:15px}.projects-main{padding-top:65px;min-height:calc(100vh - 82px)}.projects-heading{display:flex;justify-content:space-between;align-items:center;gap:20px}.projects-heading h1{font-size:37px;margin:10px 0}.projects-heading p{color:#8e9aaa}.project-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:35px}.project-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:26px;min-height:190px;display:flex;flex-direction:column;justify-content:space-between;box-shadow:var(--shadow)}.project-card .project-icon{width:38px;height:38px;border-radius:7px;background:#eaf0f3;color:#667f91;display:grid;place-items:center;font-weight:800}.project-card h3{font-size:18px;margin:16px 0 6px}.project-card p{color:#9aa5b1;font-size:11px;margin:0}.project-card footer{display:flex;justify-content:space-between;align-items:center;padding:20px 0 0}.project-card button{border:0;background:none;color:#a76960;padding:4px;font-size:11px}.project-card .open-project{color:var(--gold);font-weight:750;font-size:12px}.new-project{max-width:530px;background:#fff;border:1px solid var(--line);border-radius:8px;padding:25px;margin-top:25px}.new-project h3{margin:0 0 20px}.new-project label{font-size:12px;font-weight:700}.new-project>div{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}.upload-card{background:#fff;border:1px solid var(--line);border-radius:8px;padding:20px 27px;display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px}.upload-card h2{font-size:16px;margin:5px 0}.upload-card p{font-size:11px;color:#94a0ac;margin:0}.upload-actions{display:flex;gap:8px}.file-button{display:inline-flex;align-items:center;font-size:12px}.upload-message{padding:14px 20px;background:#edf5ee;border:1px solid #d6e9d9;border-radius:6px;color:#5e8067;margin:-6px 0 18px;font-size:12px;line-height:1.6}.upload-message.error{background:#fff1ed;border-color:#efd3ca;color:#a65e52}
@media(max-width:900px){.project-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.gateway{display:block}.gateway-art{min-height:240px;padding:24px}.gateway-copy h1{font-size:28px;margin:12px 0}.gateway-copy p,.gateway-bottom{display:none}.login-card{padding:35px 0}.projects-main{padding-top:35px}.projects-heading{align-items:flex-start;flex-direction:column}.projects-heading h1{font-size:30px}.project-grid{grid-template-columns:1fr;margin-top:24px}.upload-card{padding:18px;align-items:flex-start;flex-direction:column}.upload-actions{width:100%}.upload-actions label{flex:1;justify-content:center}.top-actions #backProjects{font-size:11px;padding:7px}}
.type-count{font-size:12px;font-weight:750;color:#92704a;background:#fbf4e9;border:1px solid #e8d9c2;border-radius:5px;padding:8px 10px;white-space:nowrap}.type-matrix td:first-child{font-size:13px}.type-status{display:block;font-size:10px;color:#a39279;font-weight:500;margin-top:5px}.type-matrix td:nth-child(2){max-width:230px;overflow:hidden;text-overflow:ellipsis}.type-matrix td:nth-child(3){font-weight:800}.type-matrix td:nth-child(4){color:#8e9ba8}.type-matrix input{width:83px}@media(max-width:640px){.segmented{width:100%;overflow:auto}.segmented button{white-space:nowrap;padding:10px 12px}.type-count{display:none}}
.template-bar{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px 26px;background:#fbf8f3;border-bottom:1px solid #ece3d6}.template-bar h3{margin:7px 0 8px;font-size:18px}.template-bar p{margin:0;max-width:720px;color:#8e8a80;font-size:12px;line-height:1.7}.template-actions{display:flex;align-items:end;gap:9px;flex:none}.template-actions label{display:block;align-self:center;color:#786e61;font-size:12px;font-weight:700}.template-actions select{height:39px;min-width:110px;border:1px solid #dfd2bd;border-radius:5px;background:#fff;color:#344357;padding:0 10px}.template-actions .button{height:39px;white-space:nowrap}@media(max-width:800px){.template-bar{align-items:stretch;flex-direction:column}.template-actions{align-items:center;flex-wrap:wrap}}@media(max-width:640px){.template-bar{padding:18px}.template-actions label{width:100%}.template-actions select,.template-actions .button{flex:1}}
.control-card{margin-bottom:18px}.controls{grid-template-columns:1.1fr 1fr .7fr}.upload-actions .button{white-space:nowrap}.weights-modal{position:fixed;inset:4vh 4vw;margin:auto;max-width:1100px;max-height:92vh;background:#fff;border-radius:10px;box-shadow:0 24px 80px rgba(12,24,40,.27);z-index:21;display:flex;flex-direction:column;overflow:hidden}.weights-modal~.backdrop{z-index:10}#weightsBackdrop{z-index:20}.weights-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 26px;border-bottom:1px solid var(--line)}.weights-head h2{font-size:24px;margin:5px 0}.weights-head p{margin:0;color:#8c98a5;font-size:12px}.weights-close{border:0;background:transparent;color:#8b97a4;font-size:28px;line-height:1;padding:2px 8px}.weights-content{min-height:0;display:flex;flex-direction:column;overflow:hidden}.weights-content .table-scroll{min-height:130px;max-height:none;flex:1}.weights-content .upload-message{margin:10px 26px 0}.weights-footer{border-top:1px solid var(--line);padding:14px 26px;display:flex;align-items:center;justify-content:space-between;gap:15px}.weights-footer .button-solid{min-width:105px}.weights-modal .panel-tools{flex:none}.weights-modal .panel-foot{flex:none}@media(max-width:1000px){.controls{grid-template-columns:repeat(2,1fr)}}@media(max-width:640px){.controls{grid-template-columns:1fr 1fr}.weights-modal{inset:0;max-height:100vh;border-radius:0}.weights-head{padding:16px 18px}.weights-content .panel-tools{padding:15px 18px}.weights-content .template-bar{padding:15px 18px}.weights-footer{padding:11px 18px}.upload-actions .button{flex:1}}
.control-card{margin-top:28px}.source-line{font-size:11px;color:#9aa5b0;margin:18px 0 0;padding-top:14px;border-top:1px solid var(--line)}.source-line span{color:#748196}
.app-shell{--page-gutter:clamp(14px,3.5vw,44px);max-width:1320px}.app-shell>.topbar{height:72px;margin:18px var(--page-gutter) 0;padding:0 24px;border:1px solid var(--line);border-radius:8px}.app-shell>main{padding:0 var(--page-gutter) 54px}.app-shell>footer{margin:0 var(--page-gutter);padding:20px 24px 34px;border-top:1px solid var(--line)}.app-shell .control-card{margin-top:18px}@media(max-width:640px){.app-shell>.topbar{height:64px;margin:12px var(--page-gutter) 0;padding:0 14px}.app-shell>main{padding:0 var(--page-gutter) 36px}.app-shell>footer{padding:18px 14px 28px}}
.stepper{display:flex;align-items:center;gap:14px;padding:25px 2px 5px}.stepper div{display:flex;align-items:center;gap:10px;color:#a3acb7;font-size:12px;font-weight:700;white-space:nowrap}.stepper b{display:grid;place-items:center;width:29px;height:29px;border:1px solid #dce1e5;border-radius:50%;background:#fff;color:#9ba5b0;font-size:11px}.stepper i{width:50px;height:1px;background:#dce1e5}.stepper .current{color:var(--navy)}.stepper .current b{background:var(--navy);border-color:var(--navy);color:#fff}.stepper .done{color:#8b795f}.stepper .done b{background:#f6ebd9;border-color:#e6d2af;color:#957349}.step-view{min-height:380px}.step-view>.control-card{margin-top:20px}.step-view .controls{grid-template-columns:repeat(2,minmax(0,1fr));max-width:820px}.step-actions{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 4px}.step-actions>span{color:#8d98a4;font-size:12px}.step-actions .button-solid{margin-left:auto;min-width:205px}.step-error{font-size:12px;color:#a75950;margin:12px 4px}.step-source{font-size:11px;color:#97a2ad;margin:0 2px 20px}.step-source span{color:#6f7d8d}.step-view .work-area{margin-top:32px}.detail-heading{margin:22px 0 18px}.detail-heading .button{white-space:nowrap}@media(max-width:640px){.stepper{gap:7px;padding:19px 0 2px}.stepper div{gap:5px;font-size:10px}.stepper b{width:24px;height:24px;font-size:9px}.stepper i{width:14px}.step-view .controls{grid-template-columns:1fr}.step-actions{align-items:stretch;flex-direction:column}.step-actions .button-solid{width:100%;margin-left:0}.step-source{line-height:1.7}.detail-heading{align-items:flex-start;gap:12px;flex-direction:column}}
#workspaceView{display:flex;flex-direction:column}#workspaceView>main{flex:1;min-width:0}.step-view .controls{max-width:none;gap:26px}@media(max-width:640px){.step-view .controls{gap:16px}}
.stepper button{display:flex;align-items:center;gap:10px;padding:7px 11px;border:1px solid transparent;border-radius:8px;background:transparent;color:#909ba8;font-size:12px;font-weight:700;white-space:nowrap}.stepper button:hover:not(:disabled){background:#fff;color:var(--navy)}.stepper button.current{background:#fff;border-color:var(--line);box-shadow:var(--shadow)}.stepper button:disabled{cursor:not-allowed;opacity:.55}.stepper i{flex:0 1 50px}@media(max-width:640px){.stepper{gap:4px}.stepper button{gap:5px;padding:5px 3px;font-size:10px}.stepper i{flex:1 1 8px;min-width:5px;max-width:14px}}
.step-nav{position:sticky;top:0;z-index:8;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:12px 0;background:var(--paper);border-bottom:1px solid var(--line)}.step-nav .stepper{flex:1;min-width:0;padding:0}.step-nav-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:none}.step-nav-actions .button{min-height:38px;white-space:nowrap}.mobile-label{display:none}.step-view>.upload-card{margin-top:18px}.calculation-notes{margin-top:18px;padding:13px 18px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#778597;font-size:12px}.calculation-notes summary{cursor:pointer;color:#687788;font-weight:700}.calculation-notes p{margin:12px 0 0;line-height:1.7}.details-tools{justify-content:flex-end}.weights-head #editCount{color:#8c98a5;font-size:12px}@media(max-width:900px){.step-nav{gap:8px}.step-nav-actions .button{padding:9px 11px}.step-nav .stepper i{max-width:20px}}@media(max-width:640px){.step-nav{align-items:stretch;flex-direction:column;gap:5px;padding:8px 0}.step-nav .stepper{justify-content:space-between}.step-nav-actions{justify-content:flex-end;min-height:34px}.step-nav-actions .button{min-height:32px;padding:6px 12px;font-size:11px}.desktop-label{display:none}.mobile-label{display:inline}.calculation-notes{margin-top:14px}.step-view>.upload-card{margin-top:14px}}
@media(min-width:1001px){.step-nav-actions{width:320px}}@media(max-width:1000px){.step-nav{flex-wrap:wrap}.step-nav .stepper{flex-basis:100%}.step-nav-actions{width:100%}}
@media(max-width:640px){.metric>small{display:none}.metric{min-height:100px}}@media(max-width:360px){.metric strong{font-size:18px;white-space:nowrap}.metric strong small{font-size:9px;margin-left:2px}}
.project-view>.upload-card{margin-top:22px}.results-actions{display:flex;justify-content:flex-end;padding:25px 0 4px}.results-actions .button{min-width:185px}.modal-basic{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;padding:18px 26px;border-bottom:1px solid var(--line);flex:none}.modal-basic label{font-size:12px;font-weight:700;color:#536176}.modal-basic input,.modal-basic select{display:block;width:100%;height:40px;margin-top:8px;padding:0 12px;border:1px solid #dce2e7;border-radius:5px;background:#fbfcfd;color:var(--ink);font-weight:650}.weight-tabs{display:flex;gap:4px;padding:10px 26px 0;border-bottom:1px solid var(--line);flex:none}.weight-tabs button{border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 16px;color:#8895a4;font-size:12px;font-weight:700}.weight-tabs button.active{border-color:var(--gold);color:var(--navy)}.weight-tab-panel{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.weight-tab-panel .table-scroll{flex:1;min-height:0;max-height:none;overflow:auto}.weight-tab-panel .panel-tools,.weight-tab-panel .panel-foot{flex:none}.weights-content .step-error{margin:8px 26px 0}@media(max-width:640px){.project-view>.upload-card{margin-top:14px}.results-actions .button{width:100%}.modal-basic{grid-template-columns:1fr;gap:12px;padding:14px 18px}.weight-tabs{padding:4px 18px 0}.weight-tabs button{flex:1}.weights-content .step-error{margin:8px 18px 0}}
.exception-breakdown{margin-top:12px;padding:10px 18px;border:1px solid #eedfd7;border-radius:7px;background:#fffaf7;color:#85685f;font-size:12px}.exception-breakdown summary{cursor:pointer;font-weight:700}.exception-breakdown>div{margin-top:11px;max-height:220px;overflow:auto}.exception-breakdown>div>div{display:flex;justify-content:space-between;gap:14px;padding:7px 0;border-top:1px solid #f1e8e3}.exception-breakdown strong{white-space:nowrap}.exception-breakdown p{margin:8px 0 2px;color:#9b8175}
.weight-categories{display:flex;gap:5px;padding:12px 22px 0;border-bottom:1px solid var(--line);overflow-x:auto;flex:none;scrollbar-width:thin}.weight-categories button{flex:none;border:0;border-bottom:2px solid transparent;background:transparent;padding:10px 11px 12px;color:#7c8999;font-size:12px;font-weight:700;white-space:nowrap;cursor:pointer}.weight-categories button:hover{color:var(--navy)}.weight-categories button.active{border-bottom-color:var(--gold);color:var(--navy);background:#fbf8f3}.category-section th{position:static!important;padding:10px 26px!important;background:#f3f5f7!important;color:#586879!important;font-size:12px!important;letter-spacing:0!important}.category-section th span{margin-left:10px;color:#9ba6b1;font-weight:500}.weights-modal .matrix .category-section:hover th{background:#f3f5f7!important}@media(max-width:640px){.weight-categories{padding:6px 12px 0}.weight-categories button{padding:10px 12px}.weights-modal .matrix tbody tr.category-section{display:block;padding:0;border:0}.weights-modal .matrix .category-section th{display:block;padding:9px 16px!important}}
.weight-category-picker{display:none}@media(max-width:640px){.weight-categories{display:none}.weight-category-picker{display:block;padding:10px 18px;border-bottom:1px solid var(--line);color:#758293;font-size:11px;font-weight:700;flex:none}.weight-category-picker select{display:block;width:100%;height:38px;margin-top:5px;padding:0 11px;border:1px solid #dce2e7;border-radius:5px;background:#fff;color:var(--navy);font-size:13px;font-weight:700}}
.weights-content .template-bar{display:flex;align-items:center;justify-content:space-between;flex-direction:row;gap:12px;padding:9px 26px;background:#fbf8f3;flex:none}.template-copy{display:flex;align-items:baseline;gap:12px;min-width:0}.template-copy strong{font-size:13px;color:#536176;white-space:nowrap}.template-copy small{font-size:11px;color:#929ba4;white-space:nowrap}.weights-content .template-bar>.button{height:32px;min-height:32px;padding:0 13px;font-size:11px;white-space:nowrap;flex:none}@media(max-width:640px){.weights-content .template-bar{padding:8px 18px}.template-copy{display:block}.template-copy strong{display:block;font-size:12px}.template-copy small{display:block;margin-top:2px;font-size:10px}.weights-content .template-bar>.button{height:34px;min-height:34px}}
.weights-content .modal-basic{display:flex;align-items:center;gap:28px;padding:10px 26px}.weights-content .modal-basic label{display:flex;align-items:center;gap:10px;white-space:nowrap;min-width:0}.weights-content .modal-basic label>span{flex:none}.weights-content .modal-basic label small{font-size:10px;font-weight:400;color:#9aa4af}.weights-content .modal-basic input,.weights-content .modal-basic select{width:150px;height:34px;margin:0;padding:0 10px;flex:none}@media(max-width:640px){.weights-content .modal-basic{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding:9px 18px}.weights-content .modal-basic label{display:block}.weights-content .modal-basic label>span{display:block;font-size:11px}.weights-content .modal-basic label small{display:none}.weights-content .modal-basic input,.weights-content .modal-basic select{width:100%;height:34px;margin-top:4px}}
.matrix .reference-value{display:inline-block;min-width:75px;padding:7px 9px;color:#6b5a42;font-size:12px;font-weight:750;text-align:right}.weight-input{position:relative;display:inline-flex;align-items:center;width:112px;max-width:100%}.weights-modal .matrix .weight-input input{width:100%;padding-right:38px}.weight-input>span{position:absolute;right:8px;color:#96a0aa;font-size:11px;pointer-events:none}@media(max-width:640px){.matrix .reference-value{padding:6px 0;min-width:0;text-align:left}.weight-input{width:100%}}
.upload-card .upload-summary{min-width:0;flex:1}.upload-summary h1{margin:7px 0 11px;font-size:clamp(21px,2.2vw,28px);line-height:1.25;letter-spacing:-.025em;color:var(--navy);overflow-wrap:anywhere}.upload-source{display:flex;align-items:center;gap:10px;min-width:0;color:#8d99a5;font-size:11px}.upload-source-label{flex:none;color:#6e7d8d;font-weight:700}.upload-source-file{display:block;min-width:0;max-width:450px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-source-count{flex:none;padding:3px 7px;border-radius:4px;background:#f1f4f6;color:#68798a;font-weight:700}.upload-card .upload-actions{flex:none;align-items:center}@media(max-width:640px){.upload-card .upload-summary{width:100%}.upload-summary h1{font-size:22px;margin:7px 0 12px}.upload-source{flex-wrap:wrap;gap:5px 8px}.upload-source-file{max-width:100%;flex:1 1 calc(100% - 80px)}.upload-source-count{margin-left:0}.upload-card .upload-actions{width:100%}.upload-card .upload-actions>*{flex:1;justify-content:center}}
.results-actions{justify-content:center}.results-actions .button{min-width:260px}@media(max-width:640px){.results-actions .button{min-width:0}}
.upload-summary h1{margin-top:0}
.account-menu{position:relative;z-index:12}.account-menu summary{display:flex;align-items:center;gap:9px;min-width:138px;padding:6px 9px;border:1px solid #e1e5e9;border-radius:7px;background:#fff;cursor:pointer;list-style:none}.account-menu summary::-webkit-details-marker{display:none}.account-menu summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.account-menu[open] summary{border-color:#cdbb9f;background:#fbf8f3}.account-avatar{display:grid;place-items:center;width:30px;height:30px;flex:none;border-radius:50%;background:#e9edf2;color:var(--navy);font-size:12px;font-weight:800}.account-name{display:flex;flex-direction:column;min-width:0;line-height:1.25}.account-name small{color:#96a1ad;font-size:10px}.account-name strong{color:var(--ink);font-size:12px}.account-chevron{margin-left:auto;color:#8c99a7;font-size:17px;line-height:1;transition:transform .15s}.account-menu[open] .account-chevron{transform:rotate(180deg)}.account-menu-list{position:absolute;top:calc(100% + 7px);right:0;min-width:155px;padding:5px;border:1px solid var(--line);border-radius:7px;background:#fff;box-shadow:0 12px 28px rgba(25,42,63,.13)}.account-menu-list button{display:block;width:100%;padding:10px 12px;border:0;border-radius:4px;background:transparent;text-align:left;color:#536176;font-size:12px}.account-menu-list button:hover,.account-menu-list button:focus-visible{background:#f4f6f8;color:var(--navy)}@media(max-width:640px){.account-menu summary{min-width:112px;gap:6px;padding:5px}.account-avatar{width:28px;height:28px}.account-name small{font-size:9px}.account-name strong{font-size:11px}.account-chevron{font-size:14px}}
.projects-main{padding-top:24px}.projects-board{min-height:calc(100vh - 142px);padding:26px 28px 36px;border:1px solid var(--line);border-radius:10px;background:#fff;box-shadow:var(--shadow)}.projects-toolbar{display:flex;justify-content:flex-end}.projects-board .project-grid{margin-top:22px;gap:16px}.projects-board .project-card{min-height:178px;padding:22px;background:#fafbfc;box-shadow:none}.projects-board .project-card h3{margin:13px 0 7px;font-size:17px;line-height:1.4;overflow-wrap:anywhere}.projects-board .project-card p{font-size:12px}.projects-board .project-card footer{padding-top:18px}.projects-board .new-project{margin-top:20px;background:#f9fafb}@media(max-width:640px){.projects-main{padding-top:14px}.projects-board{min-height:calc(100vh - 110px);padding:16px}.projects-board .project-grid{margin-top:16px}.projects-board .project-card{min-height:168px;padding:19px}.projects-board .project-card footer{flex-direction:row;gap:10px;padding:16px 0 0}.projects-board .new-project{padding:18px}}
.projects-main{padding-top:18px}.projects-page-tools{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:54px;margin-bottom:12px}.projects-signature{display:flex;align-items:center;gap:12px}.projects-signature span{color:var(--gold);font-size:11px;font-weight:800;letter-spacing:.18em}.projects-signature small{padding-left:12px;border-left:1px solid #d9dee3;color:#8693a2;font-size:11px}.projects-board{position:relative;isolation:isolate;overflow:hidden;min-height:calc(100vh - 185px);padding:35px;border-color:#dbe2e7;border-radius:14px;background:linear-gradient(140deg,#f8fafb 0%,#f1f4f6 100%);box-shadow:inset 0 1px 0 rgba(255,255,255,.95),0 22px 45px rgba(28,47,67,.075)}.projects-board::before{content:"";position:absolute;top:0;left:0;width:126px;height:4px;background:linear-gradient(90deg,var(--navy) 0 70%,var(--gold) 70% 100%)}.projects-board::after{content:"";position:absolute;right:-175px;bottom:-235px;width:520px;height:520px;border:1px solid rgba(80,108,131,.07);border-radius:50%;box-shadow:0 0 0 70px rgba(80,108,131,.018),0 0 0 140px rgba(80,108,131,.01);pointer-events:none}.projects-board .project-grid{position:relative;z-index:1;margin-top:0;gap:18px}.projects-board .project-card{min-height:215px;padding:24px;background:#fff;border-color:#e0e6ea;border-radius:9px;box-shadow:0 8px 22px rgba(23,35,56,.045);transition:transform .18s,border-color .18s,box-shadow .18s}.projects-board .project-card:hover{transform:translateY(-2px);border-color:#d2bea0;box-shadow:0 14px 28px rgba(23,35,56,.085)}.project-index{display:flex;align-items:center;gap:8px;color:#b18b58;font-size:10px;font-weight:800;letter-spacing:.16em}.project-index i{width:22px;height:1px;background:#d4b98f}.projects-board .project-card h3{margin:25px 0 7px;font-size:19px;line-height:1.35}.projects-board .project-card p{color:#8d9aa7;font-size:12px}.projects-board .project-card footer{margin-top:24px;padding-top:16px;border-top:1px solid #edf0f2}.projects-board .project-card .open-project{color:var(--navy);font-size:12px;font-weight:800}.projects-board .project-card .open-project span{margin-left:5px;color:var(--gold)}.projects-board .project-card [data-delete]{color:#a3adb6}.projects-main>.new-project{margin:0 0 14px auto;border-color:#dce3e8;box-shadow:var(--shadow)}@media(max-width:640px){.projects-main{padding-top:12px}.projects-page-tools{min-height:48px;margin-bottom:10px}.projects-signature{gap:7px}.projects-signature span{font-size:10px}.projects-signature small{padding-left:7px;font-size:10px}.projects-board{min-height:calc(100vh - 145px);padding:20px;border-radius:10px}.projects-board::after{display:none}.projects-board .project-card{min-height:203px;padding:22px}.projects-board .project-card h3{margin-top:26px;font-size:18px}.projects-board .project-card footer{margin-top:20px}.projects-main>.new-project{max-width:none}}
#projectsView{max-width:none;background:#faf8f5}#projectsView>.topbar{height:82px;margin:0;padding:0 clamp(22px,4.5vw,70px);border:0;border-bottom:1px solid #d4c3a9;border-radius:0;box-shadow:none}#projectsView .brand{gap:15px}#projectsView .brand-mark{width:62px;height:42px;border-right:1px solid #b99b6e;border-radius:0;background:transparent;color:var(--navy);font-family:Georgia,serif;font-size:31px;font-weight:700;letter-spacing:-.08em}#projectsView .brand strong{font-family:"Songti SC","SimSun",Georgia,serif;font-size:23px;letter-spacing:.01em}#projectsView .brand small{color:#a4a8ad;font-size:9px;letter-spacing:.14em}#projectsView .account-menu summary{min-width:0;padding:5px 0;border:0;background:transparent}#projectsView .account-avatar{display:none}#projectsView .account-name small{font-size:10px}#projectsView .account-name strong{font-size:15px}#projectsView .account-chevron{font-size:18px}#projectsView .projects-main{width:min(100%,1480px);margin:auto;padding:38px clamp(22px,4.5vw,70px) 72px;min-height:calc(100vh - 82px)}#projectsView .projects-page-tools{min-height:52px;margin-bottom:25px}#projectsView .projects-signature{gap:0}#projectsView .projects-signature::before{content:"";width:4px;height:25px;margin-right:14px;border-radius:2px;background:#a77d43}#projectsView .projects-signature span{font-family:Georgia,serif;color:#5e6470;font-size:17px;font-weight:600;letter-spacing:.07em}#projectsView #newProjectButton{height:46px;padding:0 24px;border-radius:6px;background:#a77d43;color:#fff;font-size:14px;box-shadow:0 3px 9px rgba(115,81,39,.12)}#projectsView #newProjectButton:hover{background:#946b34}#projectsView .projects-board{min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}#projectsView .projects-board::before,#projectsView .projects-board::after{display:none}#projectsView .project-grid{display:flex;flex-direction:column;gap:16px;margin:0}#projectsView .project-card{display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:150px;padding:24px 30px;border:1px solid #e7ded2;border-radius:10px;background:#fff;box-shadow:0 7px 20px rgba(56,43,28,.075)}#projectsView .project-card-main{display:flex;align-items:center;gap:22px;min-width:0;flex:1}#projectsView .project-card-icon{display:block;width:74px;height:74px;flex:none;object-fit:cover;border-radius:11px}#projectsView .project-card-copy{min-width:0;padding-left:22px;border-left:1px solid #d8c9b5}#projectsView .project-card h3{margin:0 0 8px;font-family:"Songti SC","SimSun",Georgia,serif;font-size:23px;line-height:1.3;color:var(--navy);overflow-wrap:anywhere}#projectsView .project-card p{margin:0;color:#87909b;font-size:15px}#projectsView .project-card footer{display:flex;align-items:center;justify-content:flex-end;gap:12px;flex:none;margin:0;padding:0;border:0}#projectsView .project-card button{height:44px;min-width:118px;padding:0 18px;border-radius:6px;font-size:14px;font-weight:700;white-space:nowrap}#projectsView .project-card .open-project{min-width:140px;background:var(--navy);color:#fff}#projectsView .project-card .open-project span{margin-left:10px;color:#fff}#projectsView .project-card [data-delete]{border:1px solid #b39262;background:#fff;color:#8f6b3b}#projectsView .project-card [data-delete]:hover{background:#fbf6ef}#projectsView .new-project{border-color:#e7ded2;background:#fff}@media(max-width:640px){#projectsView>.topbar{height:72px;padding:0 14px}#projectsView .brand{gap:8px}#projectsView .brand-mark{width:38px;height:34px;font-size:24px}#projectsView .brand strong{font-size:14px;white-space:nowrap}#projectsView .brand small{display:block;font-size:7px;letter-spacing:.05em}#projectsView .account-name small{font-size:9px}#projectsView .account-name strong{font-size:12px}#projectsView .account-menu summary{gap:4px}#projectsView .projects-main{padding:24px 14px 50px;min-height:calc(100vh - 72px)}#projectsView .projects-page-tools{min-height:45px;margin-bottom:18px}#projectsView .projects-signature::before{height:18px;margin-right:8px}#projectsView .projects-signature span{font-size:13px}#projectsView #newProjectButton{height:40px;padding:0 13px;font-size:12px}#projectsView .project-card{display:block;min-height:0;padding:18px}#projectsView .project-card-main{gap:12px}#projectsView .project-card-icon{width:58px;height:58px}#projectsView .project-card-copy{padding-left:12px}#projectsView .project-card h3{font-size:17px;margin-bottom:6px}#projectsView .project-card p{font-size:12px}#projectsView .project-card footer{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin-top:18px}#projectsView .project-card button,#projectsView .project-card .open-project{min-width:0;width:100%;height:40px;padding:0 8px;font-size:12px}}
#projectsView .brand-mark{display:flex;align-items:baseline;justify-content:center;gap:1px}#projectsView .project-card{flex-direction:row}@media(max-width:640px){#projectsView .project-card{display:flex;flex-direction:column;align-items:stretch}}
#projectsView{max-width:1320px;background:transparent}#projectsView>.topbar{height:72px;margin:18px var(--page-gutter) 0;padding:0 24px;border:1px solid var(--line);border-radius:8px;box-shadow:none}#projectsView .brand{gap:13px}#projectsView .brand-mark{display:grid;place-items:center;width:38px;height:38px;border:0;border-radius:10px;background:var(--navy);color:#fff;font-family:inherit;font-size:19px;font-weight:800;letter-spacing:-2px}#projectsView .brand strong{font-family:inherit;font-size:16px;letter-spacing:.03em}#projectsView .brand small{display:block;color:#9aa4b0;font-size:9px;letter-spacing:.16em}#projectsView .projects-main{width:auto;margin:0;padding:32px var(--page-gutter) 72px;min-height:calc(100vh - 102px)}@media(max-width:640px){#projectsView>.topbar{height:64px;margin:12px var(--page-gutter) 0;padding:0 14px}#projectsView .brand{gap:8px}#projectsView .brand-mark{width:34px;height:34px;font-size:19px}#projectsView .brand strong{font-size:13px}#projectsView .brand small{display:none}#projectsView .projects-main{padding:24px var(--page-gutter) 50px;min-height:calc(100vh - 76px)}}
#projectsView .project-title-row{display:flex;align-items:baseline;gap:10px;min-width:0}#projectsView .project-title-row h3{min-width:0}#projectsView .project-card .project-rename-button{flex:none;width:auto;height:auto;min-width:0;padding:3px 4px;border:0;background:transparent;color:#a67e49;font-size:11px;font-weight:650}#projectsView .project-card .project-rename-button:hover{text-decoration:underline}#projectsView .project-rename-form{display:flex;align-items:center;gap:6px;margin:0 0 7px;min-width:0}#projectsView .project-rename-form input{width:min(310px,100%);min-width:0;height:36px;padding:0 10px;border:1px solid #cdbb9e;border-radius:5px;background:#fff;font-size:13px}#projectsView .project-card .project-rename-form button{width:auto;height:36px;min-width:44px;padding:0 8px;border:0;border-radius:5px;background:#f0ede7;color:#6f6557;font-size:11px}#projectsView .project-card .project-rename-form button[type="submit"]{background:var(--navy);color:#fff}@media(max-width:640px){#projectsView .project-title-row{gap:5px}#projectsView .project-card .project-rename-button{font-size:10px}#projectsView .project-rename-form input{flex:1;width:100%}}
#projectsView{display:flex;flex-direction:column}#projectsView .projects-main{flex:1}
@media(max-width:640px){.app-shell>.topbar{gap:8px}.brand{gap:8px;min-width:0}.brand-mark{width:34px;height:34px;flex:none}.brand strong{font-size:13px;white-space:nowrap}.brand small{display:none}.top-actions{gap:6px;flex:none}.top-actions #backProjects{white-space:nowrap;font-size:11px;padding:7px 2px}.step-view .table-scroll{overflow-y:auto;overflow-x:hidden}.weights-modal .matrix,.weights-modal .matrix tbody,.weights-modal .matrix tr,#typesPanel .type-matrix,#typesPanel .type-matrix tbody,#typesPanel .type-matrix tr,#spacesPanel .space-table,#spacesPanel .space-table tbody,#spacesPanel .space-table tr{display:block;width:100%;white-space:normal}.weights-modal .matrix thead,#typesPanel .type-matrix thead,#spacesPanel .space-table thead{display:none}.weights-modal .matrix tbody tr,#typesPanel .type-matrix tbody tr,#spacesPanel .space-table tbody tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px 12px;padding:12px 16px;border-bottom:1px solid var(--line)}.weights-modal .matrix td,#typesPanel .type-matrix td,#spacesPanel .space-table td{display:block;width:auto;min-width:0;height:auto;border:0;padding:4px 0;white-space:normal;overflow-wrap:anywhere}.weights-modal .matrix td:first-child,#typesPanel .type-matrix td:first-child,#spacesPanel .space-table td:first-child{padding-left:0}.weights-modal .matrix td::before,#typesPanel .type-matrix td::before,#spacesPanel .space-table td::before{content:attr(data-label);display:block;margin-bottom:5px;color:#98a4af;font-size:10px;font-weight:500}.weights-modal .matrix td.selected-tier,#typesPanel .type-matrix td.selected-tier{background:transparent}.weights-modal .matrix input,#typesPanel .type-matrix input{width:100%;text-align:left;border:1px solid #e5e9ed}.weights-modal .matrix td:nth-child(2),#typesPanel .type-matrix td:nth-child(2),#spacesPanel .space-table td:nth-child(3){grid-column:1 / -1}#typesPanel .type-matrix td:nth-child(2){max-width:none}#spacesPanel .space-table .price{font-size:18px}#spacesPanel .space-table td:last-child{grid-column:1 / -1}.weights-modal .matrix tr:hover td,#typesPanel .type-matrix tr:hover td,#spacesPanel .space-table tr:hover td{background:transparent}}
#projectsView .project-card{min-height:112px;padding:16px 22px;gap:18px}
#projectsView .project-card-main{gap:16px}
#projectsView .project-card-icon{width:58px;height:58px}
#projectsView .project-card-copy{padding-left:16px}
#projectsView .project-title-row{align-items:center;gap:9px}
#projectsView .project-card h3{margin-bottom:5px;font-size:21px}
#projectsView .project-card p{font-size:13px}
#projectsView .project-card footer{gap:9px}
#projectsView .project-card footer button{height:38px}
#projectsView .project-card .project-rename-button{display:grid;place-items:center;width:28px;height:28px;min-width:28px;padding:0;border:1px solid #c9ad86;border-radius:5px;background:#fff;color:#9b7445;line-height:1}
#projectsView .project-card .project-rename-button:hover{background:#faf4eb;border-color:#a67e49;text-decoration:none}
#projectsView .project-card .project-rename-button svg{display:block}
@media(max-width:640px){#projectsView .project-card{min-height:0;padding:14px;gap:0}#projectsView .project-card-main{gap:10px}#projectsView .project-card-icon{width:48px;height:48px}#projectsView .project-card-copy{padding-left:10px}#projectsView .project-card h3{font-size:17px;margin-bottom:4px}#projectsView .project-card p{font-size:11px}#projectsView .project-card footer{margin-top:12px;gap:8px}#projectsView .project-card footer button{height:36px}#projectsView .project-card .project-rename-button{width:27px;height:27px;min-width:27px}}
.brand-title{display:flex;align-items:baseline;gap:8px;white-space:nowrap}.brand-title strong{display:inline}.brand-version{color:#a18b6b;font-size:10px;font-weight:700;letter-spacing:.04em}.data-menu{position:relative;flex:none}.data-menu summary{position:relative;display:flex;align-items:center;justify-content:center;width:108px;height:39px;padding:0 18px 0 10px;list-style:none;white-space:nowrap;font-size:12px;text-align:center}.data-menu summary::-webkit-details-marker{display:none}.data-menu summary:focus-visible{outline:2px solid var(--gold);outline-offset:2px}.data-menu-chevron{position:absolute;right:10px;color:#8d9ba7;font-size:15px;line-height:1}.data-menu[open] .data-menu-chevron{transform:rotate(180deg)}.data-menu-panel{position:absolute;z-index:30;right:0;top:calc(100% + 7px);width:180px;padding:5px;border:1px solid #d8dfe5;border-radius:7px;background:#fff;box-shadow:0 12px 26px rgba(24,40,60,.16)}.data-menu-item{display:flex;align-items:center;width:100%;min-height:38px;padding:0 12px;border:0;border-radius:4px;background:#fff;color:var(--ink);font-size:12px;font-weight:600;text-align:left;text-decoration:none;cursor:pointer}.data-menu-item:hover,.data-menu-item:focus-visible{background:#f5f6f7}.data-menu-item input{display:none}.upload-card .upload-actions{gap:8px}.upload-card .upload-actions #openWeightsButton{height:39px;white-space:nowrap;font-size:12px}
@media(max-width:640px){.brand-title{gap:5px}.brand-version{font-size:8px}.upload-card .upload-actions{justify-content:flex-end;gap:8px}.upload-card .upload-actions>*{flex:none}.upload-card .upload-actions #openWeightsButton{flex:none;width:auto;min-width:92px;height:39px;padding:0 13px}.data-menu summary{width:104px}}
.weight-template-bar{display:flex;align-items:center;gap:8px;flex:none;padding:10px 26px;border-bottom:1px solid var(--line);background:#fbf9f6}.weight-template-bar label{flex:none;color:#657181;font-size:11px;font-weight:700}.weight-template-bar select{width:min(260px,32vw);min-width:170px;height:34px;padding:0 9px;border:1px solid #dce2e7;border-radius:5px;background:#fff;color:var(--ink);font-size:11px}.weight-template-bar .button{min-height:34px;padding:0 11px;font-size:11px;white-space:nowrap}.weight-template-bar .button-text{color:#a76960}.weight-template-save{display:flex;align-items:center;gap:8px;flex:none;padding:8px 26px;border-bottom:1px solid var(--line);background:#fff}.weight-template-save input{width:min(260px,48vw);height:34px;padding:0 10px;border:1px solid #dce2e7;border-radius:5px;font-size:11px}.weight-template-save .button{height:34px;padding:0 12px;font-size:11px}
@media(max-width:640px){.weight-template-bar{flex-wrap:wrap;gap:7px;padding:9px 18px}.weight-template-bar label{width:100%}.weight-template-bar select{flex:1;min-width:0;width:auto}.weight-template-bar .button{padding:0 9px}.weight-template-save{padding:8px 18px}.weight-template-save input{flex:1;min-width:0;width:auto}}
.rule-factor-list{display:grid;gap:12px;padding:16px 22px 24px;background:#f8f9fa}.rule-section-title{margin:6px 0 0;color:#344357;font-size:13px;font-weight:750}.rule-section-title span{margin-left:8px;color:#98a3ae;font-size:11px;font-weight:500}.rule-factor-group{overflow:hidden;border:1px solid #e4e8ec;border-radius:7px;background:#fff}.rule-factor-group h4{display:flex;align-items:center;gap:10px;margin:0;padding:12px 16px;border-bottom:1px solid #e9edf0;color:var(--navy);font-size:14px}.rule-factor-group h4 small{color:#a07b4c;font-size:10px;font-weight:600}.rule-option{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,2fr);align-items:center;gap:16px;padding:10px 16px;border-top:1px solid #f0f2f4}.rule-option:first-child{border-top:0}.rule-option-name{min-width:0;color:#4a586a;font-size:12px;overflow-wrap:anywhere}.rule-values{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.rule-value{display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0}.rule-value small{color:#8b97a4;font-size:10px;white-space:nowrap}.rule-value .reference-value{display:inline-flex;align-items:center;justify-content:center;min-width:84px;min-height:33px;padding:5px 8px;border-radius:4px;background:#fbf4e9;color:#745c3b;font-size:12px;font-weight:700;white-space:nowrap}.rule-factor-list .weight-input{width:112px;flex:none}.rule-factor-list .weight-input input{width:100%;height:34px;padding:0 34px 0 8px;border:1px solid #e2e6ea;border-radius:4px;background:#f9fafb;color:#344357;font-size:12px;text-align:right}.rule-factor-list .weight-input input.edited{border-color:#c69d61;background:#fff8ed;color:#8d642e;font-weight:700}.rule-factor-list .weight-input input:focus{border-color:#c9ab83;background:#fff}
@media(max-width:700px),(max-aspect-ratio:3/4){.rule-factor-list{gap:10px;padding:12px}.rule-factor-group h4{padding:11px 12px}.rule-option{display:block;padding:11px 12px}.rule-option-name{margin-bottom:9px;font-weight:700}.rule-values{grid-template-columns:1fr;gap:7px}.rule-value{justify-content:space-between}.rule-value .reference-value,.rule-factor-list .weight-input{width:118px;min-width:118px}.rule-section-title{margin-left:2px}}
#projectsView #templateLibraryButton{margin-left:auto;height:40px;padding:0 14px;border-color:#d6c3a8;color:#80613d;font-size:12px}#projectsView #newProjectButton{margin-left:10px}.weights-footer-actions{display:flex;align-items:center;gap:8px}.weights-footer-actions .button{min-height:36px;padding:0 13px;font-size:11px}.template-dialog{width:min(440px,calc(100vw - 28px));max-height:calc(100vh - 28px);padding:0;border:1px solid #e1e5e9;border-radius:10px;background:#fff;color:var(--ink);box-shadow:0 24px 70px rgba(21,35,53,.22)}.template-dialog::backdrop{background:rgba(20,32,49,.42)}.template-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:20px 22px 15px;border-bottom:1px solid var(--line)}.template-dialog-head h2{margin:0;color:var(--navy);font-size:18px}.template-dialog-head p{margin:5px 0 0;color:#8793a0;font-size:11px}.template-dialog-head>button{flex:none;width:28px;height:28px;border:0;background:transparent;color:#83909f;font-size:22px;line-height:1}.template-name-dialog form>p{margin:16px 22px;color:#7d8995;font-size:11px;line-height:1.7}.template-name-dialog form>label,.template-library-body>label{display:block;margin:0 22px;color:#536176;font-size:12px;font-weight:700}.template-name-dialog input,.template-library-body select{display:block;width:100%;height:39px;margin-top:8px;padding:0 11px;border:1px solid #dbe2e8;border-radius:5px;background:#fff;color:var(--ink);font-size:12px}.template-library-body{padding:18px 0 8px}.template-library-summary{min-height:42px;margin:12px 22px 0;padding:11px 12px;border-radius:5px;background:#f8f7f4;color:#766956;font-size:11px;line-height:1.5}.template-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;padding:17px 22px 20px}.template-dialog-actions .button{min-height:36px;padding:0 14px;font-size:12px}.template-dialog-actions .button-text{margin-right:auto;color:#aa6f61}
@media(max-width:640px){#projectsView #templateLibraryButton{height:36px;padding:0 9px;font-size:11px}#projectsView #newProjectButton{margin-left:7px}.weights-footer{align-items:stretch;flex-wrap:wrap}.weights-footer-actions{flex-wrap:wrap;justify-content:flex-end}.weights-footer-actions .button{min-height:34px;padding:0 10px}.template-dialog{width:calc(100vw - 24px)}}
.template-library-dialog{width:min(500px,calc(100vw - 28px))}.template-library-list{display:grid;gap:8px;max-height:min(380px,50vh);padding:0 22px;overflow:auto}.template-library-row{display:flex;align-items:stretch;gap:8px}.template-library-entry{display:flex;flex:1;flex-direction:column;align-items:flex-start;justify-content:center;gap:4px;min-height:58px;padding:10px 13px;border:1px solid #e1e5e9;border-radius:6px;background:#fff;color:var(--ink);text-align:left;cursor:pointer}.template-library-entry.active{border-color:#b99565;background:#fcf8f1}.template-library-entry strong{font-size:12px}.template-library-entry small{color:#84909d;font-size:10px}.template-library-delete{width:54px;flex:none;border:1px solid #eedbd8;border-radius:6px;background:#fff;color:#a66f65;font-size:11px;cursor:pointer}.template-library-delete:hover{background:#fff5f3}.template-library-empty{margin:6px 0 12px;color:#8b97a4;font-size:12px;line-height:1.6}.template-library-dialog .template-library-body{padding-top:16px}.template-library-dialog .template-library-summary{margin-top:14px}
.rule-factor-group summary{display:flex;align-items:center;gap:10px;min-height:45px;padding:0 16px;list-style:none;color:var(--navy);cursor:pointer}.rule-factor-group summary::-webkit-details-marker{display:none}.rule-factor-group summary:focus-visible{outline:2px solid var(--gold);outline-offset:-2px}.rule-factor-group summary strong{font-size:13px}.rule-factor-group summary small{color:#a07b4c;font-size:10px;font-weight:600}.rule-factor-count{margin-left:auto;color:#9aa5b0;font-size:11px}.rule-factor-chevron{color:#8794a2;font-size:17px;line-height:1;transition:transform .15s}.rule-factor-group[open] .rule-factor-chevron{transform:rotate(180deg)}.rule-factor-group[open] summary{border-bottom:1px solid #e9edf0;background:#fcfcfd}
@media(max-width:700px),(max-aspect-ratio:3/4){.rule-factor-group summary{padding:0 12px}}
.weights-modal{inset:50% 4vw auto;height:min(720px,92vh);transform:translateY(-50%)}.weights-content{flex:1}.weights-content .weight-tab-panel{flex:1}@media(max-width:640px){.weights-modal{inset:0;height:100vh;transform:none}}
.rule-factor-group summary{position:relative}.rule-factor-group summary strong{max-width:40%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rule-factor-chevron{position:absolute;top:50%;left:50%;width:19px;height:19px;fill:none;stroke:#788698;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round;transform:translate(-50%,-50%);transition:transform .16s,stroke .16s}.rule-factor-group[open] .rule-factor-chevron{transform:translate(-50%,-50%) rotate(180deg);stroke:#9a7447}.rule-factor-group summary:hover .rule-factor-chevron{stroke:#9a7447}
.rule-factor-chevron{left:auto;right:16px;transform:translateY(-50%)}.rule-factor-group[open] .rule-factor-chevron{transform:translateY(-50%) rotate(180deg)}
.rule-column-head,.rule-option{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(115px,.8fr) minmax(125px,.8fr);align-items:center;gap:16px;padding:10px 16px}.rule-column-head{padding-top:9px;padding-bottom:9px;background:#f7f8fa;color:#8793a0;font-size:10px;font-weight:700}.rule-option{border-top:1px solid #eef1f3}.rule-option:first-child{border-top:0}.rule-option-name{margin:0}.rule-option-reference,.rule-option-correction{min-width:0}.rule-option .reference-value{display:inline-flex;align-items:center;justify-content:center;min-width:84px;min-height:33px;padding:5px 8px;border-radius:4px;background:#fbf4e9;color:#745c3b;font-size:12px;font-weight:700;white-space:nowrap}
@media(max-width:700px),(max-aspect-ratio:3/4){.rule-column-head,.rule-option{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 12px;padding:9px 12px}.rule-column-head span:first-child,.rule-option-name{grid-column:1/-1}.rule-column-head span:first-child{display:none}.rule-option-name{margin-bottom:0}.rule-option-reference,.rule-option-correction{min-width:0}.rule-option .reference-value,.rule-factor-list .weight-input{width:100%;min-width:0}}
@media(max-width:700px),(max-aspect-ratio:3/4){.rule-column-head span:first-child{display:block}}
.modal-template-actions{display:flex;align-items:center;justify-content:flex-end;gap:12px;min-width:0}.modal-template-actions>span{color:#536176;font-size:12px;font-weight:700;white-space:nowrap}.modal-template-actions>div{display:flex;gap:8px}.modal-template-actions .button{height:40px;padding:0 13px;font-size:11px;white-space:nowrap}.template-library-group-title{margin:8px 0 2px;color:#8d99a5;font-size:10px;font-weight:750;letter-spacing:.08em}.template-library-group-title:first-child{margin-top:0}
@media(max-width:640px){.modal-template-actions{justify-content:space-between}.modal-template-actions>div{gap:7px}.modal-template-actions .button{height:35px;padding:0 10px}}
@media(max-width:640px){.weights-content .modal-basic{grid-template-columns:1fr;gap:10px}.weights-content .modal-basic label input{width:100%}.modal-template-actions{justify-content:space-between;width:100%}}
.weights-content .modal-basic .modal-template-actions{margin-left:auto}@media(max-width:640px){.weights-content .modal-basic .modal-template-actions{margin-left:0}}

/* Project list layout and compact actions */
#projectsView>.topbar{height:80px}
#projectsView .brand-mark{width:42px;height:42px;font-size:21px}
#projectsView .brand strong{font-size:18px}
#projectsView .brand small{font-size:10px}
#projectsView .projects-main{min-height:calc(100vh - 110px)}
#projectsView .project-layout-toolbar{display:flex;justify-content:flex-end;margin:0 0 12px}
#projectsView .project-layout-switch{display:inline-flex;gap:2px;padding:3px;border:1px solid #ded9d1;border-radius:7px;background:#f0ede8}
#projectsView .project-layout-button{display:grid;place-items:center;width:34px;height:30px;min-width:0;padding:0;border:0;border-radius:4px;background:transparent;color:#7b858f;cursor:pointer}
#projectsView .project-layout-button.is-active{background:#fff;color:var(--navy);box-shadow:0 1px 4px rgba(37,45,57,.13)}
#projectsView .project-layout-button:hover{color:var(--navy)}
#projectsView .project-layout-button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#projectsView .project-layout-button svg circle{fill:currentColor;stroke:none}
#projectsView .project-card footer{gap:8px}
#projectsView .project-card footer .project-action{position:relative;display:grid;place-items:center;flex:none;width:30px;height:30px;min-width:30px;padding:0;border:1px solid #c9ad86;border-radius:5px;background:#fff;color:#9b7445;cursor:pointer}
#projectsView .project-card footer .project-action:hover,#projectsView .project-card footer .project-action:focus-visible{background:#faf4eb;border-color:#a67e49;color:#755124;text-decoration:none}
#projectsView .project-card footer .open-project{background:var(--navy);border-color:var(--navy);color:#fff}
#projectsView .project-card footer .open-project:hover,#projectsView .project-card footer .open-project:focus-visible{background:#2d4261;border-color:#2d4261;color:#fff}
#projectsView .project-card footer .project-action svg{display:block;width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
#projectsView .project-card footer .project-action::after{content:attr(data-tooltip);position:absolute;z-index:3;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);padding:5px 7px;border-radius:4px;background:#25354b;color:#fff;font-size:11px;font-weight:500;line-height:1.3;white-space:nowrap;opacity:0;visibility:hidden;pointer-events:none}
#projectsView .project-card footer .project-action:hover::after,#projectsView .project-card footer .project-action:focus-visible::after{opacity:1;visibility:visible}
#projectsView .project-grid.is-card-layout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));align-items:stretch;gap:16px}
#projectsView .project-grid.is-card-layout .project-card{flex-direction:column;align-items:stretch;justify-content:space-between;min-height:190px;gap:18px;padding:20px}
#projectsView .project-grid.is-card-layout .project-card-main{align-items:flex-start;gap:13px;flex:0}
#projectsView .project-grid.is-card-layout .project-card-icon{width:48px;height:48px}
#projectsView .project-grid.is-card-layout .project-card-copy{padding-left:13px}
#projectsView .project-grid.is-card-layout .project-card h3{font-size:18px;line-height:1.35}
#projectsView .project-grid.is-card-layout .project-card footer{margin-top:auto;padding-top:14px;border-top:1px solid #eee9e3}
#projectsView .project-grid.is-card-layout .project-rename-form{flex-wrap:wrap}
@media(max-width:1000px){#projectsView .project-grid.is-card-layout{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){#projectsView>.topbar{height:70px}#projectsView .brand-mark{width:38px;height:38px;font-size:19px}#projectsView .brand strong{font-size:14px}#projectsView .brand small{display:none}#projectsView .projects-main{min-height:calc(100vh - 82px)}#projectsView .project-card footer{display:flex;justify-content:flex-end;margin-top:12px}#projectsView .project-card footer .project-action{width:30px;height:30px;min-width:30px;padding:0}#projectsView .project-grid.is-card-layout{grid-template-columns:1fr}#projectsView .project-grid.is-card-layout .project-card{min-height:160px}}

/* Project controls and denser card layout */
#projectsView .projects-page-tools{margin-bottom:18px}
#projectsView .project-layout-toolbar{align-items:center;justify-content:space-between;margin-bottom:14px}
#projectsView .projects-board .new-project{margin:0 0 14px;max-width:530px}
#projectsView .project-grid.is-card-layout{grid-template-columns:repeat(4,minmax(0,1fr))}
#projectsView .project-grid.is-card-layout .project-card{position:relative;min-height:150px;gap:0;padding:16px}
#projectsView .project-grid.is-card-layout .project-card-main{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
#projectsView .project-grid.is-card-layout .project-card-icon{width:42px;height:42px}
#projectsView .project-grid.is-card-layout .project-card-copy{width:100%;padding:0;border:0}
#projectsView .project-grid.is-card-layout .project-card h3{margin:0 0 3px;font-size:16px;line-height:1.3}
#projectsView .project-grid.is-card-layout .project-card p{font-size:12px}
#projectsView .project-grid.is-card-layout .project-card footer{position:absolute;top:16px;right:16px;display:flex;gap:5px;margin:0;padding:0;border:0}
#projectsView .project-grid.is-card-layout .project-card footer .project-action{width:27px;height:27px;min-width:27px}
#projectsView .project-grid.is-card-layout .project-card footer .project-action svg{width:15px;height:15px}
@media(max-width:1100px){#projectsView .project-grid.is-card-layout{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:800px){#projectsView .project-grid.is-card-layout{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:520px){#projectsView .project-grid.is-card-layout{grid-template-columns:1fr}}
/* Card layout: details beside the icon, actions at the lower right. */
#projectsView .project-grid.is-card-layout .project-card{min-height:142px;justify-content:space-between;gap:8px}
#projectsView .project-grid.is-card-layout .project-card-main{display:flex;flex-direction:row;align-items:flex-start;gap:12px;width:100%}
#projectsView .project-grid.is-card-layout .project-card-icon{width:66px;height:66px}
#projectsView .project-grid.is-card-layout .project-card-copy{width:auto;min-width:0;flex:1;padding:0;border:0}
#projectsView .project-grid.is-card-layout .project-card footer{position:static;align-self:flex-end;justify-content:flex-end;top:auto;right:auto;margin-top:auto;padding:0;border:0}

#projectsView .project-grid.is-card-layout .project-card{min-height:156px}
#projectsView .project-grid.is-card-layout .project-card-icon{width:80px;height:80px}
#projectsView .project-grid.is-card-layout .project-card-copy{text-align:right}
#projectsView .project-grid.is-card-layout .project-title-row{width:100%;justify-content:flex-end;text-align:right}
#projectsView .project-grid.is-card-layout .project-card h3{text-align:right}

/* Card actions share the large icon's bottom edge. */
#projectsView .project-grid.is-card-layout .project-card{min-height:114px}
#projectsView .project-grid.is-card-layout .project-card footer{position:absolute;top:auto;right:16px;bottom:17px;margin:0}

/* Keep the card content on one compact row. */
#projectsView .project-grid.is-card-layout{gap:12px}
#projectsView .project-grid.is-card-layout .project-card{min-height:106px;padding:12px}
#projectsView .project-grid.is-card-layout .project-card-copy{padding-bottom:26px}
#projectsView .project-grid.is-card-layout .project-card footer{right:12px;bottom:13px;gap:3px}
#projectsView .project-grid.is-card-layout .project-card footer .project-action{width:24px;height:24px;min-width:24px}
#projectsView .project-grid.is-card-layout .project-card footer .project-action svg{width:14px;height:14px}
/* Phone layout for the project page. */
@media(max-width:640px){
  #projectsView .brand strong{font-size:15px}
  #projectsView .projects-main{padding-top:18px}
  #projectsView .projects-page-tools{min-height:30px;margin-bottom:10px}
  #projectsView .project-layout-toolbar{margin-bottom:11px}
  #projectsView .project-card{flex-direction:row;align-items:center;min-height:76px;padding:12px;gap:8px}
  #projectsView .project-card-main{flex:1;min-width:0;gap:8px}
  #projectsView .project-card-icon{width:44px;height:44px}
  #projectsView .project-card-copy{padding-left:8px}
  #projectsView .project-card h3{font-size:15px;line-height:1.3;margin-bottom:3px}
  #projectsView .project-card p{font-size:11px}
  #projectsView .project-card footer{display:flex;flex:none;align-items:center;gap:4px;margin:0;padding:0;border:0}
  #projectsView .project-card footer .project-action{width:34px;height:34px;min-width:34px;padding:0}
  #projectsView .project-card footer .project-action svg{width:16px;height:16px}
  #projectsView .project-grid.is-card-layout .project-card{display:flex;min-height:106px;padding:12px}
  #projectsView .project-grid.is-card-layout .project-card-main{flex-direction:row;align-items:flex-start;gap:12px}
  #projectsView .project-grid.is-card-layout .project-card-icon{width:80px;height:80px}
  #projectsView .project-grid.is-card-layout .project-card-copy{padding:0 0 36px}
  #projectsView .project-grid.is-card-layout .project-card footer{right:12px;bottom:13px;gap:4px}
  #projectsView .project-grid.is-card-layout .project-card footer .project-action{width:34px;height:34px;min-width:34px}
  #projectsView .project-grid.is-card-layout .project-card footer .project-action svg{width:16px;height:16px}
}

/* New project as a centered dialog above the project list. */
#projectsView .project-modal{width:min(440px,calc(100% - 28px));max-width:none;max-height:calc(100vh - 32px);padding:0;border:0;border-radius:12px;background:#fff;box-shadow:0 24px 70px rgba(20,30,45,.27);overflow:auto}
#projectsView .project-modal::backdrop{background:rgba(18,29,44,.48)}
#projectsView .project-modal .new-project{width:100%;max-width:none;margin:0;padding:24px;border:1px solid #e7ded2;border-radius:12px;box-shadow:none}
#projectsView .project-modal-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
#projectsView .project-modal-heading h3{margin:0}
#projectsView .project-modal-heading button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:5px;background:transparent;color:#7b858f;font-size:24px;line-height:1;cursor:pointer}
#projectsView .project-modal-heading button:hover,#projectsView .project-modal-heading button:focus-visible{background:#f1ede7;color:var(--navy)}
@media(max-width:640px){#projectsView .project-modal .new-project{padding:20px}}

/* Data actions use a dialog and match the weight controls. */
#dataMenuButton,#openWeightsButton,#resetButton{box-sizing:border-box;flex:none;width:92px;min-width:92px;height:39px;padding:0 8px;font-size:12px;white-space:nowrap}
#dataDialog .data-dialog-content{padding:24px}
#dataDialog .project-modal-heading{margin-bottom:8px}
#dataDialog .project-modal-heading h2{margin:0;color:var(--navy);font-size:19px}
#dataDialog .project-modal-heading button{display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:5px;background:transparent;color:#7b858f;font-size:24px;line-height:1;cursor:pointer}
#dataDialog .project-modal-heading button:hover{background:#f1ede7;color:var(--navy)}
#dataDialog p{margin:0 0 22px;color:#798594;font-size:13px}
#dataDialog .data-dialog-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px}
#dataDialog .data-dialog-actions .button{display:flex;align-items:center;justify-content:center;min-height:42px;font-size:13px;cursor:pointer;text-decoration:none}

/* Keep project actions together on the right. */
#projectsView .project-layout-toolbar{justify-content:space-between;gap:10px}
#projectsView #newProjectButton{height:38px;margin-left:auto;padding:0 16px;font-size:12px}
@media(max-width:640px){#projectsView .project-layout-toolbar{gap:8px}#projectsView #newProjectButton{height:38px;margin-left:auto;padding:0 12px;font-size:11px}}

/* Parking types share column headers in two compact tables. */
.type-table-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:14px;padding:8px 20px;background:#f8f9fa}
.type-compact-table{width:100%;border:1px solid #e4e8ec;border-collapse:separate;border-spacing:0;border-radius:7px;background:#fff;table-layout:fixed;overflow:hidden}
.type-compact-table th,.type-compact-table td{padding:4px 7px;text-align:left;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.type-compact-table th{border-bottom:1px solid #dfe5e9;background:#f9fafb;color:#8190a0;font-size:12px;font-weight:700}
.type-compact-table td{height:32px;padding-top:3px;padding-bottom:3px;border-bottom:1px solid #eef1f3;color:#536176;font-size:13px}
.type-compact-table tbody tr:last-child td{border-bottom:0}
.type-compact-table tbody tr:hover td{background:#fcfaf7}
.type-compact-table th:nth-child(1){width:22%}.type-compact-table th:nth-child(2){width:32%}.type-compact-table th:nth-child(3){width:9%}.type-compact-table th:nth-child(4){width:15%}.type-compact-table th:nth-child(5){width:22%}
.type-table-code{color:var(--navy)!important;font-weight:700}.type-table-count{font-weight:700}.type-table-reference{color:#816540!important;font-weight:700}
.type-compact-table .weight-input{display:flex;width:100%;max-width:100%}
.type-compact-table .weight-input input{width:100%;height:26px;padding:0 24px 0 6px;border:1px solid #e2e6ea;border-radius:4px;background:#f9fafb;color:#344357;font-size:13px;text-align:right}
.type-compact-table .weight-input input[type=number]{appearance:textfield;-moz-appearance:textfield}
.type-compact-table .weight-input input[type=number]::-webkit-inner-spin-button,.type-compact-table .weight-input input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.type-compact-table .weight-input input.edited{border-color:#c69d61;background:#fff8ed;color:#8d642e;font-weight:700}
.type-compact-table .weight-input input:focus{border-color:#c9ab83;background:#fff}
.type-compact-table .weight-input>span{right:7px;font-size:11px}
.type-table-empty{grid-column:1/-1;margin:0;padding:18px;color:#8793a0;font-size:12px}
.weights-modal .panel-tools h3{margin:0}
@media(max-width:800px){.type-table-columns{grid-template-columns:1fr;gap:12px;padding:12px 18px}}
@media(max-width:500px){.type-compact-table thead{display:none}.type-compact-table,.type-compact-table tbody,.type-compact-table tr{display:block;width:100%}.type-compact-table tr{display:grid;grid-template-columns:minmax(0,1fr) 62px 78px;gap:4px 8px;padding:8px 10px;border-bottom:1px solid #eef1f3}.type-compact-table tbody tr:last-child{border-bottom:0}.type-compact-table td{display:block;min-width:0;height:auto;padding:3px 0;border:0!important}.type-compact-table td::before{content:attr(data-label);display:block;margin-bottom:3px;color:#98a4af;font-size:9px;font-weight:500}.type-compact-table .type-table-code{grid-column:1}.type-compact-table .type-table-size{grid-column:2/4;white-space:normal}.type-compact-table .type-table-count{grid-column:1}.type-compact-table .type-table-reference{grid-column:2}.type-compact-table .type-table-correction{grid-column:3}.type-compact-table .weight-input input{height:28px}}

/* The outline button's generic span spacing offsets this label. */
#dataMenuButton{display:grid;place-items:center;text-align:center}
#dataMenuButton #parkingUploadText{margin-left:0}

/* Data dialog contains only two actions and a close control. */
#dataDialog{width:min(400px,calc(100vw - 28px));max-width:none;padding:0;border:1px solid #e1e5e9;border-radius:10px;background:#fff;box-shadow:0 24px 70px rgba(21,35,53,.22)}
#dataDialog::backdrop{background:rgba(20,32,49,.42)}
#dataDialog .data-dialog-content{position:relative;padding:54px 24px 24px}
#dataDialog #closeDataDialog{position:absolute;top:12px;right:12px;display:grid;place-items:center;width:30px;height:30px;padding:0;border:0;border-radius:5px;background:transparent;color:#7b858f;font-size:24px;line-height:1;cursor:pointer}
#dataDialog #closeDataDialog:hover{background:#f1ede7;color:var(--navy)}
@media(max-width:640px){#dataDialog .data-dialog-content{padding:50px 20px 20px}}
@media(max-width:640px){#dataDialog .data-dialog-actions{grid-template-columns:1fr}#dataMenuButton,#openWeightsButton,#resetButton{width:92px;min-width:92px}}

/* Global template library uses the project list's spacing and card language. */
#projectsView .template-library-page{padding-top:38px}
.template-page-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:30px}
.template-page-heading h1{margin:15px 0 0;color:var(--navy);font-family:"Songti SC","SimSun",Georgia,serif;font-size:30px}
.template-page-heading .button{height:38px;padding:0 14px;font-size:12px}
.template-page-section{margin-top:27px}
.template-page-section h2{margin:0 0 13px;color:#5e6470;font-size:13px;font-weight:750}
.template-page-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.template-page-card{display:flex;align-items:center;gap:18px;min-height:112px;padding:19px 22px;border:1px solid #e7ded2;border-radius:10px;background:#fff;box-shadow:0 7px 20px rgba(56,43,28,.075)}
.template-page-card-icon{display:grid;place-items:center;width:54px;height:54px;flex:none;border-radius:9px;background:#f5efe6;color:#997647;font-family:Georgia,serif;font-size:22px;font-weight:700}
.template-page-card-icon span{color:#bb9a6e}
.template-page-card-icon.custom{background:#edf1f5;color:var(--navy)}
.template-page-card-copy{min-width:0;flex:1}
.template-page-card-kind{color:#a1845e;font-size:10px;font-weight:700}
.template-page-card h3{margin:5px 0 4px;color:var(--navy);font-family:"Songti SC","SimSun",Georgia,serif;font-size:20px;overflow-wrap:anywhere}
.template-page-card p{margin:0;color:#8e98a3;font-size:11px;line-height:1.5}
.template-page-delete{flex:none;padding:8px 10px;border:1px solid #c9ad86;border-radius:5px;background:#fff;color:#9b7445;font-size:11px}
.template-page-delete:hover{background:#faf4eb}
.template-page-empty{grid-column:1/-1;margin:0;padding:26px;border:1px dashed #d9d0c5;border-radius:8px;color:#8e98a3;font-size:12px}
@media(max-width:700px){#projectsView .template-library-page{padding-top:22px}.template-page-heading{align-items:center;margin-bottom:22px}.template-page-heading h1{font-size:22px}.template-page-heading .button{padding:0 9px;font-size:10px;white-space:nowrap}.template-page-grid{grid-template-columns:1fr}.template-page-card{min-height:95px;padding:15px;gap:12px}.template-page-card-icon{width:44px;height:44px;font-size:18px}.template-page-card h3{font-size:17px}}

/* Match weight controls to the readable type table. */
.weight-categories button{font-size:13px}
.rule-factor-group summary strong{font-size:14px}
.rule-factor-group summary small{font-size:11px}
.rule-section-title{font-size:14px}
.rule-column-head{font-size:12px}
.rule-option-name,.rule-option .reference-value,.rule-factor-list .weight-input input{font-size:13px}
.rule-factor-list .weight-input>span{font-size:11px}
.weights-content .modal-basic label,.modal-template-actions>span{font-size:14px}
.weights-content .modal-basic label small{font-size:11px}
.weights-content .modal-basic input{font-size:14px}
.modal-template-actions .button{font-size:12px}
@media(max-width:640px){.weights-content .modal-basic label>span{font-size:14px}.weights-content .modal-basic label small{display:inline;font-size:11px}}

/* Compact factor groups and their weight rows in two desktop columns. */
.rule-factor-list{grid-template-columns:1fr;align-content:start;gap:7px;padding:10px 20px}
.rule-section-title,.rule-factor-group[open]{grid-column:auto}
.rule-factor-group summary{min-height:39px}
.rule-factor-group summary strong{max-width:calc(100% - 42px)}
.rule-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px}
.rule-options.single{grid-template-columns:1fr}
.rule-option-column{min-width:0}
.rule-column-head,.rule-option{grid-template-columns:minmax(0,1.5fr) minmax(78px,.65fr) minmax(94px,.75fr);gap:8px;padding:6px 11px}
.rule-column-head{padding-top:7px;padding-bottom:7px}
.rule-option{min-height:37px;padding-top:4px;padding-bottom:4px}
.rule-option .reference-value{min-width:0;width:84px;min-height:28px;padding:3px 6px}
.rule-factor-list .weight-input{width:100%;max-width:100px}
.rule-factor-list .weight-input input{height:28px;padding-right:27px}
@media(max-width:700px),(max-aspect-ratio:3/4){.rule-factor-list{grid-template-columns:1fr;gap:9px;padding:10px 12px}.rule-factor-group[open]{grid-column:auto}.rule-options{grid-template-columns:1fr;gap:0}.rule-option-column + .rule-option-column .rule-column-head{display:none}.rule-column-head,.rule-option{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px;padding:8px 12px}.rule-column-head span:first-child,.rule-option-name{grid-column:1/-1}.rule-option .reference-value,.rule-factor-list .weight-input{width:100%;max-width:none}}

/* Show project creation dates without adding another row to list cards. */
#projectsView .project-created-at{display:inline-block;margin-left:0;color:#a3abb4;font-size:12px;font-weight:500}
#projectsView .project-grid.is-card-layout .project-created-at{display:block;margin:4px 0 0}
@media(max-width:640px){#projectsView .project-created-at{margin-left:0;font-size:10px}}

/* Compact reconciliation of the price changes actually applied to parking spaces. */
.adjustment-section{margin-top:17px;border:1px solid var(--line);border-radius:8px;background:#fff;overflow:hidden}
.adjustment-heading{display:flex;justify-content:space-between;align-items:center;padding:17px 22px 14px;border-bottom:1px solid #33465c;background:#1f3045}
.adjustment-heading h2{margin:0;color:#fff;font-size:17px}
.adjustment-heading>span{color:#c4d0da;font-size:11px}
.adjustment-section .positive{color:#b55f59!important}.adjustment-section .negative{color:#43826b!important}
.adjustment-column-head,.adjustment-row{display:grid;grid-template-columns:minmax(0,1fr) 110px 160px;align-items:center;gap:12px;padding:9px 22px}
.adjustment-column-head{border-bottom:1px solid #506478;background:#3b5066;color:#eef2f5;font-size:11px;font-weight:700}
.adjustment-column-head span:not(:first-child),.adjustment-row>span{text-align:right}
.adjustment-groups{max-height:420px;overflow-y:auto}
.adjustment-category{border-bottom:1px solid #dcd9d2}.adjustment-category:last-child{border-bottom:0}
.adjustment-category>.adjustment-category-row{position:relative;grid-template-columns:minmax(0,1fr) 160px;list-style:none;cursor:pointer;background:#e7e4de;padding:12px 22px 12px 51px}
.adjustment-category>.adjustment-category-row::before{content:attr(data-index);position:absolute;left:11px;top:50%;display:grid;place-items:center;width:27px;height:25px;transform:translateY(-50%);border:1px solid #c3a679;border-radius:5px;background:#f7f2e9;color:#80643e;font-size:11px;font-weight:800;letter-spacing:.02em}
.adjustment-category>.adjustment-category-row::-webkit-details-marker{display:none}
.adjustment-category>.adjustment-category-row:hover{background:#ddd9d1}
.adjustment-category>.adjustment-category-row strong{color:#2f3b49;font-size:15px;font-weight:800}
.adjustment-category>.adjustment-category-row strong::before{content:'›';display:inline-block;width:17px;color:#9b7950;font-size:20px;line-height:0;transform-origin:7px 1px;transition:transform .15s}
.adjustment-category[open]>.adjustment-category-row strong::before{transform:rotate(90deg)}
.adjustment-factor-list{padding-left:16px;background:#f4f2ee}
.adjustment-group{border-bottom:1px solid #e8e2d8}.adjustment-group:last-child{border-bottom:0}
.adjustment-group summary{list-style:none;cursor:pointer}.adjustment-group summary::-webkit-details-marker{display:none}
.adjustment-group summary{background:#f4f2ee}.adjustment-group summary:hover{background:#ece9e3}.adjustment-group summary strong{min-width:0;padding-left:13px;color:#354354;font-size:13px}
.adjustment-group summary strong::before{content:'›';display:inline-block;width:16px;color:#a48661;font-size:18px;line-height:0;transform-origin:7px 1px;transition:transform .15s}
.adjustment-group[open] summary strong::before{transform:rotate(90deg)}
.adjustment-row>span{color:#536477;font-size:12px;white-space:nowrap}
.adjustment-options{background:#fff}.adjustment-option{padding-top:8px;padding-bottom:8px;border-top:1px solid #edf0f2;border-left:3px solid #d0b38b}
.adjustment-option>span:first-child{padding-left:40px;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#35485d;font-size:13px;font-weight:600}
.adjustment-empty{margin:0;padding:16px 22px;color:#8b97a3;font-size:12px}
@media(max-width:700px){.adjustment-heading{padding:15px 14px 10px}.adjustment-column-head,.adjustment-row{grid-template-columns:minmax(0,1fr) 54px 90px;gap:7px;padding:9px 12px}.adjustment-category>.adjustment-category-row{grid-template-columns:minmax(0,1fr) 90px;padding-left:43px}.adjustment-category>.adjustment-category-row::before{left:7px;width:24px;height:23px}.adjustment-column-head{font-size:10px}.adjustment-category>.adjustment-category-row strong{font-size:13px}.adjustment-factor-list{padding-left:8px}.adjustment-group summary strong{padding-left:7px;font-size:12px}.adjustment-option>span:first-child{padding-left:25px}}

/* Weight signs color the field, while every value remains dark. */
.weights-modal .reference-value,.weights-modal .type-reference-value,.weights-modal .weight-input input,.weights-modal .weight-input>span{color:var(--ink)!important}
.weights-modal .reference-value,.weights-modal .type-reference-value{border:1px solid #e2e6ea;border-radius:4px;background:#f9fafb}
.weights-modal .type-reference-value{display:inline-block;min-width:54px;padding:3px 5px;text-align:center;white-space:nowrap;font-size:12px;font-weight:700}
.weights-modal .reference-value.weight-negative,.weights-modal .type-reference-value.weight-negative,.weights-modal .weight-input.weight-negative input{border-color:#4b9b82!important;background:#f1faf6!important}
.weights-modal .reference-value.weight-positive,.weights-modal .type-reference-value.weight-positive,.weights-modal .weight-input.weight-positive input{border-color:#ca7771!important;background:#fff5f3!important}
.weights-modal .reference-value.weight-zero,.weights-modal .type-reference-value.weight-zero,.weights-modal .weight-input.weight-zero input{border-color:#aab4bd!important;background:#f4f6f7!important}

/* Live price impact fits alongside each editable weight. */
.rule-factor-list{gap:6px;padding:8px 16px}
.rule-factor-group summary{min-height:36px}
.rule-options{column-gap:8px}
.rule-column-head,.rule-option{grid-template-columns:minmax(0,1fr) 84px 92px 88px;gap:6px;padding:5px 8px}
.rule-column-head{font-size:10px}
.rule-option{min-height:31px;padding-top:3px;padding-bottom:3px}
.rule-option .reference-value{width:82px;min-height:24px;padding:2px 4px}
.rule-factor-list .weight-input{max-width:92px}
.rule-factor-list .weight-input input{height:24px}
.rule-option-impact{min-width:0;text-align:right}
.impact-value{display:inline-block;color:#485667;font-size:11px;font-weight:700;white-space:nowrap;font-variant-numeric:tabular-nums}
.impact-value.impact-positive{color:#b55f59}.impact-value.impact-negative{color:#43826b}.impact-value.impact-zero,.impact-value.impact-empty{color:#9aa4ad}
.space-table .adjust.positive{color:#b55f59}.space-table .adjust.negative{color:#43826b}
.type-compact-table th,.type-compact-table td{padding-left:5px;padding-right:5px}
.type-compact-table th{font-size:11px}
.type-compact-table td{height:29px;padding-top:2px;padding-bottom:2px}
.type-compact-table th:nth-child(1){width:16%}.type-compact-table th:nth-child(2){width:23%}.type-compact-table th:nth-child(3){width:7%}.type-compact-table th:nth-child(4){width:14%}.type-compact-table th:nth-child(5){width:22%}.type-compact-table th:nth-child(6){width:18%}
.type-compact-table .weight-input input{height:24px}
.type-table-impact{text-align:right!important}
.type-table-impact .impact-value{font-size:11px}
.weight-impact-help{flex:none;margin:0;padding:8px 20px;border-bottom:1px solid #edf0f2;background:#fcfcfb;color:#637184;font-size:12px;line-height:1.55}
.weight-impact-help span{display:block}
.weight-impact-help strong{color:#344357;font-weight:800}
@media(max-width:700px),(max-aspect-ratio:3/4){.rule-factor-list{padding:8px 12px}.rule-column-head,.rule-option{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:5px 8px}.rule-column-head span:first-child,.rule-option-name{grid-column:1/-1}.rule-column-head span:first-child{display:block}.rule-option .reference-value,.rule-factor-list .weight-input{width:100%;max-width:none}.rule-option-impact{text-align:right}}
@media(max-width:700px){.weight-impact-help{padding:7px 12px;font-size:11px}}
@media(max-width:500px){.type-compact-table .type-table-impact{grid-column:1/-1}.type-compact-table .weight-input input{height:26px}}

/* Keep the compact weight grid legible on desktop and phones. */
.rule-column-head{padding-top:8px;padding-bottom:8px;color:#5d6e80;font-size:14px;font-weight:750;line-height:1.35}
.rule-column-head span{white-space:nowrap}
.rule-option{min-height:38px;padding-top:4px;padding-bottom:4px}
.rule-option-name{font-size:15px;font-weight:600}
.rule-option .reference-value{min-height:28px;font-size:15px}
.rule-factor-list .weight-input input{height:28px;font-size:15px}
.rule-factor-list .weight-input>span{font-size:12px}
.rule-option .impact-value{font-size:14px}
@media(max-width:700px),(max-aspect-ratio:3/4){.rule-column-head{font-size:13px}.rule-option{padding-top:7px;padding-bottom:7px}.rule-option-name{font-size:15px}}

/* Match the size table's typography to the other weight tables. */
.type-compact-table th{font-size:14px;line-height:1.35;font-weight:750;color:#5d6e80;padding-top:8px;padding-bottom:8px}
.type-compact-table td{font-size:15px;height:38px}
.type-compact-table th:nth-child(1){width:18%}.type-compact-table th:nth-child(2){width:26%}.type-compact-table th:nth-child(3){width:8%}.type-compact-table th:nth-child(4){width:14%}.type-compact-table th:nth-child(5){width:17%}.type-compact-table th:nth-child(6){width:17%}
.weights-modal .type-reference-value,.type-compact-table .weight-input input{font-size:15px}
.type-compact-table .weight-input input{height:28px}
.type-table-impact .impact-value{font-size:14px}
@media(max-width:500px){.type-compact-table td::before{font-size:13px;line-height:1.35;font-weight:750;color:#5d6e80}.type-compact-table td{height:auto;font-size:15px;padding-top:4px;padding-bottom:4px}.type-compact-table .weight-input input{height:30px}}

/* Separate the paired desktop weight tables without crowding their cells. */
.type-table-columns{column-gap:24px}
.type-table-columns:has(> .type-compact-table + .type-compact-table){background-image:linear-gradient(to right,transparent calc(50% - 1px),#c7d0d9 calc(50% - 1px),#c7d0d9 calc(50% + 1px),transparent calc(50% + 1px))}
.rule-options:not(.single){column-gap:14px}
.rule-options:not(.single)>.rule-option-column + .rule-option-column{border-left:2px solid #c7d0d9;padding-left:12px}
@media(max-width:800px){.type-table-columns{column-gap:12px;background-image:none!important}}
@media(max-width:700px),(max-aspect-ratio:3/4){.rule-options:not(.single)>.rule-option-column + .rule-option-column{border-left:0;border-top:2px solid #c7d0d9;padding-left:0}}

/* Detail-table sorting and paging use the same readable header size as weights. */
#spacesPanel .space-table th{font-size:14px;line-height:1.35;color:#5d6e80}
.space-sort-button{display:inline-flex;align-items:center;gap:5px;border:0;background:transparent;padding:0;color:inherit;font:inherit;font-weight:inherit;letter-spacing:inherit;cursor:pointer;white-space:nowrap}
.space-sort-button span{color:#9c794d;font-size:16px;line-height:1}
.space-sort-button:hover,.space-sort-button:focus-visible{color:#89673e}
.space-page-controls{display:flex;align-items:center;gap:18px}
.space-page-controls label{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.space-page-controls select{height:30px;min-width:57px;padding:0 6px;border:1px solid #dbe2e8;border-radius:4px;background:#fff;color:var(--ink);font:inherit}
@media(max-width:640px){#spacesPanel .space-table td::before{font-size:13px;font-weight:700;color:#5d6e80}#spacesPanel .panel-foot{align-items:flex-start;flex-direction:column;gap:9px;padding:13px 16px}.space-page-controls{flex-direction:column;align-items:flex-start;gap:6px}}

.weights-transfer-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.weights-transfer-actions .button{min-height:36px;padding:0 13px;font-size:12px;white-space:nowrap}
@media(max-width:640px){.weights-footer{gap:7px}.weights-transfer-actions{gap:6px}.weights-transfer-actions .button{min-height:34px;padding:0 9px;font-size:11px}}
@media(max-width:390px){.weights-footer{padding-left:10px;padding-right:10px}.weights-transfer-actions{gap:4px}.weights-transfer-actions .button{padding-left:7px;padding-right:7px}}
.import-weights-dialog{width:min(360px,calc(100vw - 28px));padding:24px 20px 20px}
.import-weights-close{position:absolute;top:8px;right:9px;width:32px;height:32px;border:0;background:transparent;color:#7d8995;font-size:24px;line-height:1}
.import-weights-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:24px}
.import-weights-actions .button{min-height:42px;padding:8px 10px;font-size:12px;white-space:nowrap}
@media(max-width:640px){#spacesPanel .space-table td:nth-child(3){grid-column:auto}}
.detail-heading-actions{display:flex;align-items:center;gap:9px;flex-wrap:wrap}
.detail-heading-actions .button{min-height:39px}
.detail-heading-actions .button:disabled{opacity:.5;cursor:not-allowed}
@media(max-width:640px){.detail-heading-actions{width:100%}.detail-heading-actions .button{flex:1;min-width:0;padding:9px 10px;font-size:12px}}

.rule-factor-help{display:inline-grid;place-items:center;flex:none;width:18px;height:18px;border:1px solid #aeb9c2;border-radius:50%;color:#65778a;font-size:12px;font-family:Georgia,serif;font-weight:700;line-height:1;cursor:help}
.rule-factor-help:hover,.rule-factor-help:focus-visible{border-color:#997550;color:#80603c;outline:none}
.rule-factor-note{margin:0;padding:8px 16px;border-bottom:1px solid #e9edf0;background:#f7f9fa;color:#526477;font-size:13px;line-height:1.55}
@media(max-width:700px){.rule-factor-note{padding:8px 12px}}

/* Readable single-space price audit. */
.space-table tbody tr{cursor:default}
.space-table .space-action{text-align:right;white-space:nowrap}
.space-detail-button{min-height:32px;padding:0 12px;border:1px solid #cbd5df;border-radius:5px;background:#fff;color:#29445d;font-size:12px;font-weight:700;cursor:pointer}
.space-detail-button:hover,.space-detail-button:focus-visible{border-color:#a78353;background:#fbf8f2;color:#7f5d34}
#detailDrawer{width:min(680px,100vw)}
#detailDrawer .drawer-body{padding-bottom:32px}
.detail-price-table{border:1px solid #e0e6eb;border-radius:7px;overflow:hidden}
.detail-price-header,.detail-price-row{display:grid;grid-template-columns:minmax(0,1fr) 100px 128px;align-items:center;gap:10px;padding:11px 13px}
.detail-price-header{background:#e8edf2;color:#40566c;font-size:12px;font-weight:800}
.detail-price-row{border-top:1px solid #e9edf0;font-size:13px}
.detail-price-row>div{min-width:0}
.detail-price-row>div>strong{display:block;color:#2f3e50;font-size:13px}
.detail-price-row small{display:block;margin-top:4px;color:#82909d;font-size:11px;overflow-wrap:anywhere}
.detail-price-row>span,.detail-price-row>.detail-amount{text-align:right;white-space:nowrap}
.detail-price-row>span{color:#596a7b}
.detail-price-row>.detail-amount.positive{color:#b55f59}
.detail-price-row>.detail-amount.negative{color:#43826b}
.detail-price-base{background:#fafbfc}
.detail-price-subtotal{background:#f6f8fa;font-weight:750}
.detail-price-total{background:#24364b;color:#fff;font-weight:800}
.detail-price-total>strong,.detail-price-total>span{color:#fff}
.detail-data-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
.detail-data-item{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-bottom:1px solid #edf0f2;font-size:12px;min-width:0}
.detail-data-item span{color:#78889a;flex:none}
.detail-data-item strong{color:#34465a;text-align:right;overflow-wrap:anywhere;min-width:0}
.detail-empty,.detail-caveat{margin:0;padding:12px 13px;color:#8290a0;font-size:12px;line-height:1.6}
.detail-caveat{padding:0 0 8px}
@media(max-width:640px){#spacesPanel .space-table thead{display:block}#spacesPanel .space-table thead tr{display:flex;width:100%;justify-content:space-between;gap:12px;padding:0 16px;background:#f4f6f8}#spacesPanel .space-table thead th{display:none;padding:11px 0;border:0}#spacesPanel .space-table thead th[data-sort-column]{display:block}#spacesPanel .space-table td:last-child{grid-column:1/-1}#spacesPanel .space-action{text-align:right}#detailDrawer .drawer-head{padding:18px 20px}#detailDrawer .drawer-body{padding:18px 16px 32px}.detail-price-header,.detail-price-row{grid-template-columns:minmax(0,1fr) 76px 100px;gap:5px;padding:10px 8px}.detail-price-header{font-size:11px}.detail-price-row,.detail-price-row>div>strong{font-size:12px}.detail-price-row small{font-size:10px}.detail-data-grid{grid-template-columns:1fr}}

/* Full-page parking-space detail keeps all categories visible without nested scrolling. */
.single-space-hero{display:flex;justify-content:space-between;align-items:end;gap:20px;padding:20px 25px;margin-bottom:18px;border:1px solid #dce4ea;border-radius:8px;background:#f4f7f9}
.single-space-hero span{display:block;color:#74869a;font-size:13px;font-weight:700}
.single-space-hero strong{display:block;margin-top:5px;color:#21344b;font-size:32px;line-height:1.2}
.single-space-hero p{margin:0;color:#8291a0;font-size:12px}
.single-space-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);align-items:start;gap:18px}
.single-space-side{display:grid;gap:18px;min-width:0}
.single-space-panel{min-width:0;padding:18px 20px;background:#fff;border:1px solid #e0e6eb;border-radius:8px}
.single-space-panel>h3{margin:0 0 15px;color:#26394d;font-size:18px}
.detail-price-category{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 13px;border-top:1px solid #dae2e8;background:#eef2f5;color:#344c62}
.detail-price-category strong{font-size:13px}
.detail-price-category span{font-size:11px;white-space:nowrap}
.detail-data-category{margin-top:15px}
.detail-data-category:first-of-type{margin-top:0}
.detail-data-category h4{margin:0;padding:8px 10px;border-left:3px solid #a98557;background:#f4f6f8;color:#3c5065;font-size:13px}
.detail-data-grid{padding:0 4px}
.detail-data-item.is-coded{grid-column:1/-1}
.detail-data-item strong small{display:block;margin-top:4px;color:#66788b;font-size:12px;font-weight:500;line-height:1.5;text-align:right}
#spaceDetailView .detail-price-row small{font-size:12px;line-height:1.5}
#spaceDetailView .detail-data-item{font-size:13px}
@media(max-width:900px){.single-space-grid{grid-template-columns:1fr}}
@media(max-width:640px){.single-space-hero{align-items:flex-start;flex-direction:column;gap:7px;padding:17px 16px}.single-space-hero strong{font-size:27px}.single-space-grid{gap:12px}.single-space-side{gap:12px}.single-space-panel{padding:15px 12px}.detail-price-category{padding:8px}.detail-price-category span{font-size:11px}#spaceDetailView .detail-price-row small{font-size:11px}.detail-data-item strong small{text-align:right;font-size:12px}}

/* One continuous audit table combines source attributes and pricing. */
.unified-panel{padding:20px;background:#fff;border:1px solid #e0e6eb;border-radius:8px}
.unified-panel>h3{margin:0 0 15px;color:#26394d;font-size:18px}
.unified-table{border:1px solid #dde5eb;border-radius:7px;overflow:hidden}
.unified-head,.unified-row{display:grid;grid-template-columns:minmax(125px,1fr) minmax(220px,1.7fr) minmax(155px,1.2fr) 115px 145px;align-items:center;gap:12px;padding:10px 14px}
.unified-head{background:#24364b;color:#fff;font-size:13px;font-weight:800}
.unified-head span:last-child,.unified-weight,.unified-impact{text-align:right}
.unified-row{min-height:43px;border-top:1px solid #e8edf1;color:#415267;font-size:13px}
.unified-factor{color:#2f4053;font-weight:700}
.unified-data{min-width:0;overflow-wrap:anywhere}
.unified-data small{display:block;margin-top:4px;color:#728396;font-size:12px;line-height:1.5}
.unified-option{min-width:0;overflow-wrap:anywhere}
.unified-weight,.unified-impact{white-space:nowrap}
.unified-impact .detail-amount.positive{color:#b55f59}
.unified-impact .detail-amount.negative{color:#43826b}
.unified-category{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px;border-top:1px solid #d6e0e8;border-left:4px solid #a98557;background:#eaf0f4;color:#344b61}
.unified-category strong{font-size:14px}
.unified-category span{font-size:12px}
.unified-base,.unified-subtotal{background:#f7f9fa;font-weight:750}
.unified-warning-head{background:#fbf2e5;border-left-color:#c79655}
.unified-warning{background:#fffcf7}
.unified-total{background:#24364b;color:#fff;font-weight:800}
.unified-total .unified-factor,.unified-total .unified-impact{color:#fff}
@media(max-width:760px){.unified-panel{padding:13px}.unified-head{display:none}.unified-row{grid-template-columns:minmax(0,1fr) 112px;grid-template-areas:'factor impact' 'data data' 'option weight';gap:6px 10px;padding:11px 12px}.unified-factor{grid-area:factor}.unified-data{grid-area:data}.unified-option{grid-area:option}.unified-weight{grid-area:weight}.unified-impact{grid-area:impact}.unified-data::before,.unified-option::before,.unified-weight::before{display:inline-block;margin-right:6px;color:#8998a7;font-size:11px;font-weight:500}.unified-data::before{content:'数据'}.unified-option::before{content:'分档'}.unified-weight::before{content:'权重'}.unified-base,.unified-subtotal,.unified-total{grid-template-areas:'factor impact';min-height:45px}.unified-base>.unified-data,.unified-base>.unified-option,.unified-base>.unified-weight,.unified-subtotal>.unified-data,.unified-subtotal>.unified-option,.unified-subtotal>.unified-weight,.unified-total>.unified-data,.unified-total>.unified-option,.unified-total>.unified-weight{display:none}.unified-category{padding:9px 10px}.unified-category strong{font-size:13px}.unified-category span{font-size:11px}}

/* Four-column detail table; split category groups only when there is room. */
.unified-columns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.unified-column{min-width:0}
.unified-column + .unified-column{border-left:2px solid #cbd6df}
.unified-head,.unified-row{grid-template-columns:minmax(90px,.95fr) minmax(0,1.55fr) 88px 112px;gap:8px;padding-left:10px;padding-right:10px}
.unified-head span:nth-child(3){text-align:right}
.unified-base-wrap .unified-row,.unified-totals .unified-row{grid-template-columns:minmax(90px,.95fr) minmax(0,1.55fr) 88px 112px}
@media(max-width:1279px){.unified-columns{grid-template-columns:1fr}.unified-column + .unified-column{border-left:0}.unified-column + .unified-column>.unified-head{display:none}}
@media(max-width:760px){.unified-row,.unified-base-wrap .unified-row,.unified-totals .unified-row{grid-template-columns:minmax(0,1fr) 112px;grid-template-areas:'factor impact' 'data data' 'weight weight';gap:5px 10px;padding:10px 12px}.unified-factor{grid-area:factor}.unified-data{grid-area:data}.unified-weight{grid-area:weight}.unified-impact{grid-area:impact}.unified-data::before,.unified-weight::before{display:inline-block;margin-right:6px;color:#8998a7;font-size:11px;font-weight:500}.unified-data::before{content:'数据'}.unified-weight::before{content:'权重'}.unified-base,.unified-subtotal,.unified-total{grid-template-areas:'factor impact'}.unified-base>.unified-data,.unified-base>.unified-weight,.unified-subtotal>.unified-data,.unified-subtotal>.unified-weight,.unified-total>.unified-data,.unified-total>.unified-weight{display:none}}

/* Keep the full detail in one column, with each category closed by default. */
.unified-group{border-top:1px solid #d6e0e8}
.unified-group>.unified-category{border-top:0;list-style:none;cursor:pointer}
.unified-group>.unified-category::-webkit-details-marker{display:none}
.unified-group>.unified-category strong::before{content:'›';display:inline-block;width:19px;color:#9a764b;font-size:22px;line-height:0;transform-origin:7px 1px;transition:transform .15s}
.unified-group[open]>.unified-category strong::before{transform:rotate(90deg)}
.unified-group>.unified-category:hover{background:#e1e9ef}
.unified-group>.unified-category:focus-visible{outline:2px solid #a98557;outline-offset:-2px}
.unified-group>.unified-head{background:#f3f6f8;color:#5d7082;border-top:1px solid #dce5eb}
.unified-group>.unified-row:last-child{border-bottom:0}
.unified-group>.unified-warning-head:hover{background:#f6e8d3}

/* Single parking space: one continuous landscape-style pricing sheet. */
.parking-sheet{padding:22px 24px 18px;background:#303233;color:#f5f5f2;border:1px solid #55585a;border-radius:3px;box-shadow:0 16px 32px rgba(24,30,35,.13)}
.sheet-header{display:grid;grid-template-columns:135px minmax(0,1fr) 285px;gap:24px;align-items:center;min-height:150px;padding:0 4px 19px}
.sheet-id{height:116px;border:2px solid #f2f2ee;border-radius:19px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.sheet-id span{color:#cbd0d0;font-size:11px;letter-spacing:.12em}.sheet-id strong{font-size:39px;font-weight:500;line-height:1;letter-spacing:.03em;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}
.sheet-identity{min-width:0;padding-left:24px;border-left:2px solid #e7e9e6}.sheet-kicker{display:block;color:#bbbfc0;font-size:10px;font-weight:750;letter-spacing:.16em}.sheet-identity h3{margin:8px 0 14px;color:#fff;font-size:27px;font-weight:600;letter-spacing:.03em}.sheet-identity dl{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0}.sheet-identity dl div{min-width:0}.sheet-identity dt{color:#b3bbbc;font-size:11px}.sheet-identity dd{margin:4px 0 0;color:#fff;font-size:14px;font-weight:600;overflow-wrap:anywhere}
.sheet-prices{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px;padding:3px 0 3px 22px;border-left:1px solid #626668}.sheet-prices>div{min-width:0}.sheet-prices span{display:block;color:#bfc5c4;font-size:11px}.sheet-prices strong{display:block;margin-top:4px;color:#fff;font-size:19px;font-weight:650;white-space:nowrap}.sheet-prices small{font-size:11px;font-weight:500}.sheet-prices .sheet-impact{font-size:18px}.sheet-prices .sheet-final strong{color:#e8c895;font-size:25px}.sheet-prices p{grid-column:1/-1;margin:0;color:#d2d6d5;font-size:11px;white-space:nowrap}
.sheet-table-title{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:11px 14px 10px;border:1px solid #d7d9d5;border-bottom:0;border-radius:9px 9px 0 0}.sheet-table-title h3{margin:0;color:#fff;font-size:18px;letter-spacing:.08em}.sheet-table-title span{color:#c5c9c7;font-size:11px}
.sheet-tables{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border-top:1px solid #d4d6d4;border-left:1px solid #d4d6d4}.sheet-table{width:100%;border-collapse:collapse;table-layout:fixed;color:#f2f3f1}.sheet-table+ .sheet-table{border-left:2px solid #d4d6d4}.sheet-table th,.sheet-table td{border-right:1px solid #858a8a;border-bottom:1px solid #858a8a;padding:6px 5px;vertical-align:middle;font-size:11px;line-height:1.35;overflow-wrap:anywhere}.sheet-table th:nth-child(1){width:29%}.sheet-table th:nth-child(2){width:34%}.sheet-table th:nth-child(3){width:17%}.sheet-table th:nth-child(4){width:20%}.sheet-table thead th{height:30px;background:#45494b;color:#f8f8f6;text-align:center;font-size:10px;font-weight:700}.sheet-table .sheet-category th{height:24px;padding:3px 8px;background:#54595a;color:#fff;text-align:left;font-size:11px;letter-spacing:.06em}.sheet-factor-row{height:43px}.sheet-factor-row th{font-weight:600;text-align:left}.sheet-factor-row th span{display:inline-block;min-width:23px;margin-right:3px;color:#b7c0c1;font-size:10px;font-weight:500}.sheet-factor-row td{text-align:center}.sheet-data small{display:block;margin-top:2px;color:#bbc5c5;font-size:10px}.sheet-weight{color:#d5d9d8}.sheet-amount{font-variant-numeric:tabular-nums}.sheet-impact{color:#e3e7e5;white-space:nowrap}.sheet-impact.positive{color:#ff7778}.sheet-impact.negative{color:#5fdb99}
.sheet-footer{display:flex;justify-content:space-between;gap:16px;padding:13px 2px 0;color:#c9cecd;font-size:11px}.sheet-footer strong{color:#fff;font-size:12px;font-weight:600;text-align:right}.sheet-warnings{display:flex;gap:12px;margin-top:14px;padding:10px 12px;border:1px solid #aa8a62;color:#f0d8b5;font-size:11px;line-height:1.5}.sheet-warnings strong{white-space:nowrap}
@media(max-width:1050px){.sheet-header{grid-template-columns:120px minmax(0,1fr);gap:17px}.sheet-prices{grid-column:1/-1;display:flex;justify-content:space-between;padding:12px 0 0;border-left:0;border-top:1px solid #626668}.sheet-prices p{align-self:end}.sheet-tables{grid-template-columns:1fr}.sheet-table+.sheet-table{border-left:0;border-top:2px solid #d4d6d4}.sheet-table th:nth-child(1){width:25%}.sheet-table th:nth-child(2){width:35%}.sheet-table th:nth-child(3){width:18%}.sheet-table th:nth-child(4){width:22%}}
@media(max-width:640px){#spaceDetailView>.detail-heading{margin-bottom:12px}.parking-sheet{padding:13px 11px 16px}.sheet-header{grid-template-columns:86px minmax(0,1fr);gap:12px;padding-bottom:13px}.sheet-id{height:83px;border-radius:13px}.sheet-id span{font-size:9px}.sheet-id strong{font-size:26px}.sheet-identity{padding-left:12px}.sheet-kicker{font-size:8px;letter-spacing:.07em}.sheet-identity h3{font-size:18px;margin:5px 0 9px}.sheet-identity dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.sheet-identity dt{font-size:9px}.sheet-identity dd{font-size:11px}.sheet-prices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.sheet-prices span{font-size:9px}.sheet-prices strong,.sheet-prices .sheet-impact{font-size:14px}.sheet-prices .sheet-final strong{font-size:17px}.sheet-prices p{grid-column:1/-1;font-size:10px}.sheet-table-title{padding:9px 8px}.sheet-table-title h3{font-size:14px}.sheet-table-title span{font-size:9px}.sheet-table th,.sheet-table td{padding:7px 4px;font-size:11px}.sheet-factor-row{height:40px}.sheet-factor-row th span{min-width:20px;font-size:9px}.sheet-footer{flex-direction:column;gap:6px}.sheet-footer strong{text-align:left}.sheet-warnings{flex-direction:column;gap:3px}}
@media print{@page{size:A4 landscape;margin:8mm}body{background:#fff}.topbar,#spaceDetailView>.detail-heading,.workspace-brand-footer{display:none!important}.app-shell,.app-shell>main{max-width:none;margin:0;padding:0!important}#spaceDetailView{display:block!important}.parking-sheet{print-color-adjust:exact;-webkit-print-color-adjust:exact;box-shadow:none;padding:8px}.sheet-header{grid-template-columns:100px minmax(0,1fr) 235px;min-height:105px;gap:12px;padding-bottom:9px}.sheet-id{height:88px}.sheet-id strong{font-size:29px}.sheet-identity h3{font-size:19px;margin:4px 0 8px}.sheet-prices{display:grid;grid-column:auto;grid-template-columns:1fr 1fr;padding:0 0 0 10px;border-top:0;border-left:1px solid #626668}.sheet-prices p{grid-column:1/-1;font-size:9px}.sheet-prices strong{font-size:14px}.sheet-prices .sheet-final strong{font-size:18px}.sheet-tables{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-table+.sheet-table{border-top:0;border-left:2px solid #d4d6d4}.sheet-table th,.sheet-table td{padding:3px;font-size:8px}.sheet-table thead th,.sheet-table .sheet-category th{font-size:8px;height:18px}.sheet-factor-row{height:31px}.sheet-factor-row th span{font-size:7px;min-width:16px}.sheet-data small{font-size:7px}.sheet-footer{padding-top:7px;font-size:8px}.sheet-footer strong{font-size:9px}.sheet-warnings{margin-top:5px;padding:5px;font-size:8px}}

/* Deepark 运筹: cinematic login poster with live, accessible brand copy. */
.gateway{grid-template-columns:minmax(0,1.12fr) minmax(400px,.88fr)}
.gateway-art{isolation:isolate;min-height:100vh;padding:clamp(30px,4vw,64px);background:#08162a url('assets/yunchou-login-poster.png') center 58%/cover no-repeat}
.gateway-art::after{inset:0;width:auto;height:auto;border:0;border-radius:0;box-shadow:none;background:linear-gradient(180deg,rgba(5,16,31,.2) 0%,rgba(5,16,31,.18) 36%,rgba(5,16,31,.02) 67%,rgba(5,16,31,.65) 100%);z-index:0}
.gateway-brand,.gateway-copy,.gateway-bottom{position:relative;z-index:1}
.gateway-brand{display:flex;align-items:center;gap:14px}
.gateway-brand-symbol{display:block;flex:none;width:35px;height:52px}
.gateway-brand-symbol svg{display:block;width:100%;height:100%}
.gateway-brand strong{display:block;font-family:"Songti SC","SimSun",Georgia,serif;font-size:29px;font-weight:700;letter-spacing:.15em;line-height:1.1}
.gateway-copy{margin:auto 0;padding:42px 0 155px;max-width:720px}
.gateway-copy .eyebrow{color:#d9b177;font-size:11px;letter-spacing:.19em}
.gateway-copy h1{margin:21px 0 21px;color:#fff;font-family:"Songti SC","SimSun",Georgia,serif;font-size:clamp(42px,4.25vw,70px);font-weight:700;line-height:1.22;letter-spacing:.045em;text-shadow:0 6px 28px rgba(0,0,0,.28)}
.gateway-copy h1 em{font-style:normal;color:#f0c787}
.gateway-copy p{margin:0;color:#d4dfeb;font-size:15px;line-height:1.9;letter-spacing:.025em;text-shadow:0 2px 10px rgba(0,0,0,.45)}
.gateway-bottom{display:flex;align-items:center;gap:12px;color:#d2dce5;font-size:11px;font-weight:650;letter-spacing:.12em}
.gateway-bottom span:last-child{margin-left:auto;color:#8ea2b7;font-size:9px;letter-spacing:.16em}
.login-card{width:min(400px,calc(100% - 60px))}
.login-card .section-kicker{color:#a87b3f}
#projectsView .brand-title strong,#workspaceView .brand-title strong{font-family:"Songti SC","SimSun",Georgia,serif;font-size:22px;letter-spacing:.09em}
#projectsView .brand small,#workspaceView .brand small{font-size:10px;letter-spacing:.07em}
@media(max-width:900px){.gateway{grid-template-columns:minmax(0,1fr) minmax(350px,.95fr)}.gateway-art{padding:30px}.gateway-copy{padding-bottom:100px}.gateway-copy h1{font-size:clamp(38px,4.8vw,55px)}.gateway-copy p{font-size:13px}.gateway-bottom span:last-child{display:none}}
@media(max-width:640px){.gateway{display:block}.gateway-art{min-height:370px;padding:22px 24px;background-position:center 53%}.gateway-brand{gap:11px}.gateway-brand-symbol{width:28px;height:42px}.gateway-brand-english{font-size:8px}.gateway-brand strong{font-size:20px}.gateway-copy{margin:auto 0;padding:26px 0 42px}.gateway-copy .eyebrow{font-size:8px;letter-spacing:.14em}.gateway-copy h1{font-size:clamp(30px,8.2vw,39px);margin:12px 0 10px;line-height:1.23}.gateway-copy p{display:none}.gateway-bottom{display:flex;font-size:9px;letter-spacing:.08em}.gateway-bottom-line{width:19px}.gateway-bottom span:last-child{display:none}.login-card{width:min(400px,calc(100% - 48px));padding:32px 0 42px}#projectsView .brand-title strong,#workspaceView .brand-title strong{font-size:17px}#projectsView .brand small,#workspaceView .brand small{display:none}}
.login-wordmark{display:flex;align-items:center;gap:0;min-width:0}
.login-wordmark-original{display:block;flex:1;min-width:0;overflow:hidden;line-height:0}
.login-wordmark-original img{display:block;width:111.1%;height:auto;max-width:none}
.login-wordmark strong{flex:none;color:#333;font-family:Arial,"Microsoft YaHei",sans-serif;font-size:15px;font-weight:550;line-height:1;white-space:nowrap;transform:skew(-8deg)}
@media(max-width:640px){.login-wordmark strong{font-size:12px}}
@media(max-width:640px){
  .gateway{display:flex;flex-direction:column;min-height:100svh}
  .gateway-art{flex:none;height:clamp(245px,35svh,300px);min-height:0;padding:18px 24px}
  .gateway-brand strong{font-size:22px}
  .gateway-copy{padding:4px 0 0}
  .gateway-copy p{display:block;margin-top:16px;font-size:clamp(11px,3.1vw,12px);line-height:1.6}
  .login-card{flex:none;margin:auto;padding:20px 0 18px;transform:translateY(clamp(-24px,-2.5svh,-12px))}
  .login-card>:not(.login-wordmark){position:relative;top:clamp(-24px,-2.5svh,-12px)}
  .login-card h2{font-size:28px;line-height:1.18;margin:6px 0 5px}
  .login-card>p{font-size:12px;margin:0 0 16px}
  .login-card label{margin-bottom:11px}
  .login-card input{height:42px;margin-top:6px}
  .login-card .button{height:42px}
  .login-wordmark{margin-top:28px;padding-top:10px}
  .login-wordmark strong{font-size:clamp(11px,3.6vw,14px);font-weight:400;transform:skew(-8deg) translateY(2px)}
}
@media(max-width:640px) and (max-height:620px){
  .gateway-art{height:200px;padding-top:12px;padding-bottom:12px}
  .gateway-brand-symbol{width:24px;height:36px}
  .gateway-brand strong{font-size:20px}
  .gateway-copy h1{font-size:25px;line-height:1.15;margin:6px 0 0}
  .gateway-copy .eyebrow{font-size:7px}
  .gateway-copy p{margin-top:10px;font-size:10px;line-height:1.45}
  .login-card{padding-top:15px;padding-bottom:12px}
  .login-card .section-kicker,.login-card>p{display:none}
  .login-card h2{margin:0 0 12px}
  .login-wordmark{margin-top:13px}
}
@media(max-width:640px) and (min-height:621px) and (max-height:700px){.login-card{padding-top:15px;padding-bottom:13px}.login-card>:not(.login-wordmark){top:0}}
@media(max-width:640px) and (min-height:621px) and (max-height:650px){.login-card>:not(.login-wordmark){top:8px}}
@media(max-width:640px){.login-card:focus-within{transform:none}.login-card:focus-within>:not(.login-wordmark){top:0}}
#projectsView .brand-title strong,#workspaceView .brand-title strong{font-size:27px}
#projectsView .brand-version,#workspaceView .brand-version{font-size:11px}
@media(max-width:640px){#projectsView .brand-title strong,#workspaceView .brand-title strong{font-size:21px}#projectsView .brand-version,#workspaceView .brand-version{font-size:9px}}
#projectsView .topbar .brand,#workspaceView .topbar .brand{gap:10px}
.topbar .brand-symbol{position:static;display:block;width:29px;height:43px;overflow:visible;background:none;border-radius:0}
.topbar .brand-symbol svg{display:block;width:100%;height:100%;fill:#2369a4}
.topbar .brand-title{gap:6px}
#projectsView .brand-title strong,#workspaceView .brand-title strong{font-size:25px;letter-spacing:.06em}
#projectsView .brand-version,#workspaceView .brand-version{font-size:10px}
#projectsView{display:flex;flex-direction:column;min-height:100vh}
#projectsView>.projects-main{flex:1;min-height:0}
#projectsView .projects-brand-footer{flex:none;display:flex;justify-content:center;padding:16px var(--page-gutter) 24px}
#projectsView .projects-brand-footer .login-wordmark{width:min(380px,100%);margin:0;padding:0;border:0}
@media(max-width:640px){
  #projectsView .topbar .brand,#workspaceView .topbar .brand{gap:8px}
  .topbar .brand-symbol{width:25px;height:37px}
  #projectsView .brand-title strong,#workspaceView .brand-title strong{font-size:21px;letter-spacing:.05em}
  #projectsView .brand-version,#workspaceView .brand-version{font-size:9px}
  #projectsView .projects-brand-footer{padding:14px var(--page-gutter) 22px}
}
#workspaceView>.workspace-brand-footer{display:flex;justify-content:center;align-items:center;margin:0;padding:16px var(--page-gutter) 24px;border-top:0}
#workspaceView .workspace-brand-footer .login-wordmark{width:min(380px,100%);margin:0;padding:0;border:0}
@media(max-width:640px){#workspaceView>.workspace-brand-footer{padding:14px var(--page-gutter) 22px}}
#spaceCount::after,#exceptionCount::after{content:"个";margin-left:4px;color:#8190a0;font-size:14px;font-weight:600;letter-spacing:0}
@media(min-width:901px){
  #workspaceView>.topbar{margin-top:12px}
  #workspaceView>main{padding-bottom:20px}
  #workspaceView #overviewView>.upload-card{margin-top:18px;margin-bottom:16px;padding:16px 24px}
  #workspaceView .upload-summary h1{margin:4px 0 6px}
  #workspaceView .metrics{margin-top:0}
  #workspaceView .metric{min-height:102px;padding:16px 18px}
  #workspaceView .metric strong{margin:7px 0 0;font-size:29px}
  #workspaceView .metric b{top:12px;right:15px}
  #workspaceView .adjustment-section{margin-top:16px}
  #workspaceView .adjustment-heading{padding:13px 20px 11px}
  #workspaceView .adjustment-column-head{padding-top:7px;padding-bottom:7px}
  #workspaceView .adjustment-category>.adjustment-category-row{padding-top:10px;padding-bottom:10px}
  #workspaceView .calculation-notes{margin-top:16px;padding:11px 16px}
  #workspaceView .results-actions{padding:16px 0 0}
  #workspaceView>.workspace-brand-footer{padding-top:8px;padding-bottom:12px}
}
.sheet-prices>div:nth-child(2) .sheet-impact{display:inline}
@media(min-width:641px) and (max-width:1050px){.sheet-tables{grid-template-columns:repeat(2,minmax(0,1fr))}.sheet-table+.sheet-table{border-top:0;border-left:2px solid #d4d6d4}.sheet-table:last-child{grid-column:1/-1;border-left:0;border-top:2px solid #d4d6d4}}
@media print{.sheet-tables{grid-template-columns:repeat(3,minmax(0,1fr))}.sheet-table:last-child{grid-column:auto;border-top:0;border-left:2px solid #d4d6d4}}
@media(min-width:1051px){.sheet-table:nth-child(3n+1){border-left:0}.sheet-table:nth-child(n+4){border-top:2px solid #d4d6d4}}
@media(min-width:641px) and (max-width:1050px){.sheet-table:nth-child(odd){border-left:0}.sheet-table:nth-child(n+3){border-top:2px solid #d4d6d4}.sheet-table:last-child{grid-column:auto;border-left:2px solid #d4d6d4}}
@media(max-width:640px){.sheet-table+.sheet-table,.sheet-table:last-child{grid-column:auto;border-left:0;border-top:2px solid #d4d6d4}}
@media print{.sheet-table:nth-child(3n+1){border-left:0}.sheet-table:nth-child(n+4){border-top:2px solid #d4d6d4}}
@media(max-width:640px){.sheet-table th,.sheet-table td{font-size:12px;line-height:1.42}.sheet-table thead th,.sheet-table .sheet-category th{font-size:11px}.sheet-factor-row{height:44px}.sheet-data small{font-size:10px}}
/* Keep the one-page layout in the workspace's existing Deepark visual language. */
.parking-sheet{background:#fff;color:#26384c;border:1px solid #dfe5ea;border-radius:9px;box-shadow:0 12px 32px rgba(25,42,63,.06);padding:0 0 16px}
.sheet-header{margin:0;padding:22px 24px 20px;background:#f5f7f8;border-bottom:1px solid #e0e6eb;border-radius:9px 9px 0 0}
.sheet-id{background:#172338;border:1px solid #172338;border-radius:13px;box-shadow:0 7px 18px rgba(23,35,56,.12)}
.sheet-id span{color:#aab8c8}.sheet-id strong{color:#fff}
.sheet-identity{border-left-color:#b48a50}.sheet-kicker{color:#947548}.sheet-identity h3{color:#21344b}.sheet-identity dt{color:#78889a}.sheet-identity dd{color:#304357}
.sheet-prices{border-left-color:#d8e0e6}.sheet-prices span{color:#78889a}.sheet-prices strong{color:#26384c}.sheet-prices .sheet-final strong{color:#a77b40}.sheet-prices p{color:#718296}
.sheet-table-title{margin:18px 20px 0;background:#172338;border:1px solid #172338;border-radius:7px 7px 0 0;padding:11px 15px}.sheet-table-title h3{color:#fff}.sheet-table-title span{color:#bdc8d3}
.sheet-tables{margin:0 20px;border-top:0;border-left:1px solid #d9e1e7;border-right:1px solid #d9e1e7;border-bottom:1px solid #d9e1e7}
.sheet-table{color:#34465a;background:#fff}.sheet-table+.sheet-table{border-left-color:#c7d2dc}.sheet-table th,.sheet-table td{border-right-color:#dbe3e9;border-bottom-color:#e2e8ed}.sheet-table thead th{background:#e9eef2;color:#42586c}.sheet-table .sheet-category th{background:#f8f3eb;color:#846744;border-left:3px solid #b48a50}.sheet-factor-row th span{color:#9ba8b5}.sheet-data small{color:#75879a}.sheet-weight{color:#536579}.sheet-impact{color:#405267}.sheet-impact.positive,.sheet-prices .sheet-impact.positive{color:#ba605a}.sheet-impact.negative,.sheet-prices .sheet-impact.negative{color:#358469}
.sheet-footer{margin:0 20px;padding:13px 3px 0;color:#8391a0}.sheet-footer strong{color:#34475c}.sheet-warnings{margin:13px 20px 0;background:#fff9f0;border-color:#ead4b6;color:#956f3e}
@media(max-width:1050px){.sheet-prices{border-top-color:#d8e0e6}.sheet-table+.sheet-table,.sheet-table:nth-child(n+3){border-top-color:#c7d2dc}}
@media(max-width:640px){.sheet-header{padding:16px 13px 14px}.sheet-table-title{margin:13px 11px 0}.sheet-tables{margin:0 11px}.sheet-footer{margin:0 11px}.sheet-warnings{margin:10px 11px 0}}
@media print{.parking-sheet{border:1px solid #dfe5ea;box-shadow:none}.sheet-header{padding:8px}.sheet-table-title{margin:6px 8px 0}.sheet-tables{margin:0 8px}.sheet-footer{margin:0 8px}}
.sheet-mobile-table{display:none}
@media(max-width:640px){.sheet-tables{display:none}.sheet-mobile-table{display:table;width:calc(100% - 22px);margin:0 11px;border:1px solid #d9e1e7}.sheet-mobile-table .sheet-category th{border-left:3px solid #b48a50}}
@media print{.sheet-mobile-table{display:none}}
