:root{--bg:#f3f5f8;--surface:#fff;--ink:#172334;--muted:#64748b;--line:#e2e8f0;--blue:#2563eb;--blue-soft:#eff6ff;--green:#247350;--amber:#94621a;--radius:14px;--sidebar:220px;--shadow:0 2px 6px rgba(20,25,40,.025)}
*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font-family:-apple-system,"SF Pro Text","PingFang SC","Noto Sans SC",sans-serif;font-size:14px;-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}a{color:var(--blue)}h1,h2,h3,p{margin:0}h1,h2,h3{text-wrap:balance}p{text-wrap:pretty}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #78baff;outline-offset:3px}button{color:inherit}svg{flex-shrink:0}button svg{pointer-events:none}.boot{padding:100px 30px;text-align:center}.boot p{margin-top:12px;color:var(--muted)}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar);background:#fbfbfc;border-right:1px solid var(--line);padding:30px 16px;display:flex;flex-direction:column;z-index:10}.brand{padding:0 16px 36px}.brand-name{font-size:23px;font-weight:650}.brand-sub{margin-top:6px;font-size:11px;color:var(--muted)}.nav{display:flex;flex-direction:column;gap:7px}.nav button{border:0;background:transparent;display:flex;align-items:center;gap:11px;padding:13px 16px;border-radius:11px;text-align:left;color:var(--muted);font-weight:550}.nav button.active{background:var(--blue-soft);color:var(--blue)}.nav button:hover:not(.active){background:#eeeef1}.sidebar-bottom{margin-top:auto;padding:20px 16px 0;color:var(--muted);font-size:11px;line-height:1.8}.sidebar-bottom strong{color:var(--ink);font-weight:550;display:block}.main{margin-left:var(--sidebar);min-height:100dvh}.topbar{height:70px;display:flex;justify-content:space-between;align-items:center;padding:0 40px;background:rgba(255,255,255,.75);border-bottom:1px solid var(--line);gap:20px}.topbar-label{color:var(--muted);font-size:12px}.preview-badge{padding:5px 10px;border:1px solid var(--line);border-radius:7px;color:var(--muted);font-size:11px;white-space:nowrap}.topbar-right{display:flex;align-items:center;gap:16px}.profile{display:flex;align-items:center;gap:8px;font-size:12px}.avatar{display:grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#e8edf3;color:#4c596a;font-size:11px;font-weight:600}.content{max-width:1300px;margin:0 auto;padding:38px 40px 60px}.page-heading{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;margin-bottom:26px}.eyebrow{font-size:11px;color:var(--muted);margin-bottom:8px}h1{font-size:29px;font-weight:650;line-height:1.35}h2{font-size:19px;font-weight:600}h3{font-size:16px;font-weight:600}.subtitle{margin-top:10px;color:var(--muted);font-size:13px;line-height:1.7}.button{border:1px solid #d9d9df;border-radius:9px;background:#fff;padding:10px 15px;display:inline-flex;justify-content:center;align-items:center;gap:7px;font-weight:500;min-height:40px;white-space:nowrap}.button:hover{background:#f7f7f9}.button.primary{background:var(--blue);border-color:var(--blue);color:#fff}.button.primary:hover{background:#0068d2}.button.small{padding:7px 11px;min-height:33px;font-size:12px}.text-button{border:0;background:transparent;color:var(--blue);padding:7px 0;display:inline-flex;align-items:center;gap:5px;font-weight:500}.text-button:hover{text-decoration:underline}.button-group{display:flex;gap:9px;flex-wrap:wrap}.toolbar{display:flex;justify-content:space-between;gap:18px;align-items:center;margin:24px 0}.search-box{display:flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:10px;padding:0 12px;width:290px;min-height:40px;color:var(--muted)}.search-box input{border:0;background:transparent;outline:none;width:100%;min-width:0;padding:10px 0}.filters{display:flex;gap:8px;align-items:center}.filters select{border:1px solid var(--line);border-radius:9px;background:#fff;padding:10px;max-width:180px;color:#55555c}.count{color:var(--muted);font-size:12px}.notice{background:#eeeff2;border-radius:10px;color:var(--muted);padding:12px 16px;line-height:1.6;font-size:12px;display:flex;gap:8px;align-items:center}.notice.info{background:var(--blue-soft);color:#346293}.notice.warning{background:#faf4e9;color:var(--amber)}.project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.project-card{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);padding:25px;box-shadow:var(--shadow);min-width:0}.card-head{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:18px}.project-code{font-size:11px;color:var(--muted)}.tag{display:inline-flex;align-items:center;gap:4px;border-radius:6px;font-size:11px;padding:5px 8px;background:#f0f1f3;color:#67676d;white-space:nowrap}.tag.green{background:#edf6f0;color:var(--green)}.tag.amber{background:#faf4e9;color:var(--amber)}.project-title{font-size:18px;line-height:1.5;font-weight:600;border:0;background:transparent;text-align:left;padding:0;display:block}.project-title:hover{color:var(--blue)}.card-meta{font-size:12px;color:var(--muted);line-height:1.8;margin-top:8px;display:flex;flex-wrap:wrap;gap:3px 12px}.card-period{font-size:12px;color:var(--muted);margin-top:3px}.card-metrics{display:grid;grid-template-columns:1.16fr 1.16fr 1fr;gap:12px;margin:26px 0 20px}.metric-label{font-size:12px;color:var(--muted);margin-bottom:9px}.metric-value{font-size:25px;font-weight:620;line-height:1.25;font-variant-numeric:tabular-nums;white-space:nowrap}.metric-value.placeholder{font-size:18px;color:#8d8d93;font-weight:500}.metric-note{font-size:10px;color:var(--muted);margin-top:6px;line-height:1.6}.metric-value.blue{color:var(--blue)}.card-footer{border-top:1px solid var(--line);padding-top:13px;display:flex;justify-content:space-between;gap:12px;align-items:center}.card-footer .text-button{font-size:12px}.card-state{font-size:11px;color:var(--muted)}.back{margin-bottom:21px;border:0;background:transparent;color:var(--muted);display:inline-flex;gap:5px;align-items:center;padding:0;font-size:12px}.back:hover{color:var(--blue)}.hero-metrics{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:28px 32px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-bottom:20px}.hero-metrics .metric-value{font-size:36px}.hero-metrics>div+div{border-left:1px solid var(--line);padding-left:30px}.hero-metrics .metric-note{font-size:11px}.project-info{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px;margin:22px 0 28px}.info-label{font-size:11px;color:var(--muted);margin-bottom:7px}.info-value{font-size:13px;line-height:1.5;overflow-wrap:anywhere}.tabs{display:flex;gap:28px;border-bottom:1px solid #dddddf;margin:22px 0;overflow-x:auto}.tabs button{border:0;background:transparent;white-space:nowrap;padding:14px 0;color:var(--muted);font-weight:500;border-bottom:2px solid transparent}.tabs button.active{color:var(--ink);border-bottom-color:var(--ink)}.section-heading{display:flex;justify-content:space-between;gap:15px;align-items:center;margin:25px 0 16px}.section-heading p{font-size:12px;color:var(--muted);margin-top:7px}.panel{background:#fff;border:1px solid var(--line);border-radius:16px;padding:24px;margin-top:18px}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:18px 0}.category{padding:16px;border:1px solid var(--line);border-radius:12px;background:#fff;text-align:left}.category:hover,.category.selected{border-color:#9ccaff;background:var(--blue-soft)}.category span{font-size:12px;color:var(--muted)}.category strong{display:block;font-size:19px;font-variant-numeric:tabular-nums;margin-top:9px;font-weight:600}.table-wrap{overflow-x:auto;border:1px solid var(--line);border-radius:14px;background:#fff}.ledger{border-collapse:collapse;width:100%;text-align:left;font-size:13px}.ledger th{font-weight:500;color:var(--muted);font-size:11px;padding:14px 18px;background:#fafafa;white-space:nowrap}.ledger td{border-top:1px solid var(--line);padding:17px 18px;vertical-align:middle}.ledger .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.ledger td small{display:block;color:var(--muted);font-size:11px;margin-top:5px;line-height:1.5}.row-title{border:0;background:transparent;padding:0;text-align:left;font-weight:500;font-size:13px}.row-title:hover{color:var(--blue)}.receipt-link{border:0;background:transparent;color:var(--blue);display:flex;align-items:center;gap:5px;font-size:12px;padding:4px 0}.two-col{display:grid;grid-template-columns:1.1fr 1fr;gap:20px}.definition-list{display:grid;grid-template-columns:minmax(90px,.55fr) 1.5fr;gap:14px 20px;font-size:13px;line-height:1.6}.definition-list dt{color:var(--muted)}.definition-list dd{margin:0;font-variant-numeric:tabular-nums}.amount-large{font-size:28px;font-weight:600;font-variant-numeric:tabular-nums}.vendor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.vendor-card{border:1px solid var(--line);background:#fff;border-radius:16px;padding:23px}.vendor-card .card-metrics{margin:22px 0}.vendor-card .metric-value{font-size:22px}.divider{height:1px;background:var(--line);margin:20px 0}.list-row{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;padding:17px 0;border-bottom:1px solid var(--line);font-size:13px}.list-row:last-child{border-bottom:0}.list-row small{display:block;font-size:11px;color:var(--muted);margin-top:7px}.empty{padding:45px 25px;text-align:center;background:white;border:1px dashed #d7d7dd;border-radius:15px;grid-column:1/-1}.empty p{color:var(--muted);font-size:13px;margin:12px 0 20px}.material-list{display:grid;gap:14px}.material-row{padding:18px;background:#fff;border:1px solid var(--line);border-radius:12px;display:flex;justify-content:space-between;gap:12px;align-items:center}.material-row p{color:var(--muted);font-size:12px;margin-top:6px}.advance-summary{display:flex;justify-content:space-between;align-items:center;gap:20px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:25px;margin:20px 0}.advance-summary .card-metrics{flex:1;margin:0}.person-chip{background:#f4f4f7;padding:10px 13px;border-radius:10px;font-size:12px}.details-subheading{color:var(--muted);font-size:12px;line-height:1.8}.inline-cost-link{border:0;background:transparent;font-size:11px;color:var(--blue);padding:0;margin-top:7px}.modal{padding:0;border:1px solid var(--line);border-radius:20px;box-shadow:0 24px 80px rgba(0,0,0,.18);width:min(640px,calc(100vw - 32px));max-height:calc(100dvh - 48px);color:var(--ink);background:#fff}.modal::backdrop{background:rgba(20,22,28,.3)}.modal.wide{width:min(860px,calc(100vw - 32px))}.modal-header{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;padding:24px 27px 18px;border-bottom:1px solid var(--line)}.modal-header p{font-size:12px;color:var(--muted);margin-top:8px;line-height:1.6}.icon-button{display:grid;place-items:center;border:0;background:#f1f1f4;width:30px;height:30px;border-radius:50%;color:var(--muted);flex-shrink:0}.icon-button:hover{background:#e6e6eb}.modal-body{padding:24px 27px;overflow:auto;max-height:calc(100dvh - 220px)}.modal-footer{display:flex;justify-content:flex-end;gap:10px;padding:17px 27px;border-top:1px solid var(--line)}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.field{display:flex;flex-direction:column;gap:8px;font-size:12px;min-width:0}.field.full{grid-column:1/-1}.field input,.field select,.field textarea{width:100%;border:1px solid #d9d9df;border-radius:9px;background:#fff;padding:11px 12px;min-width:0;color:var(--ink)}.field textarea{min-height:80px;resize:vertical}.field small{color:var(--muted);line-height:1.6}.field-error,.error{color:#b52b35;font-size:12px;margin-top:8px;line-height:1.6}.upload{padding:18px;border:1px dashed #c5c5cd;border-radius:11px;background:#fafafa}.upload input{padding:0;border:0;background:transparent}.file-preview{display:flex;align-items:center;gap:9px;overflow-wrap:anywhere;background:#f4f4f7;border-radius:10px;padding:12px;margin-top:12px;font-size:12px}.file-preview img{height:60px;width:60px;object-fit:cover;border-radius:7px}.receipt-paper{background:#fafafa;border:1px solid #e1e1e6;border-radius:10px;padding:25px;max-width:460px;margin:0 auto}.receipt-paper .receipt-mark{font-size:11px;color:#9b6b30;border:1px solid #dbbf95;padding:5px 10px;border-radius:5px;display:inline-block;margin-bottom:28px}.receipt-paper h3{margin-bottom:8px}.receipt-paper .receipt-bottom{margin-top:25px;color:var(--muted);font-size:11px;line-height:1.8}.image-preview{display:block;max-width:100%;max-height:470px;object-fit:contain;margin:auto}.bill-header{text-align:center;padding:4px 0 25px}.bill-header p{color:var(--muted);font-size:12px;margin-top:8px}.bill-total{display:flex;justify-content:space-between;align-items:center;margin-top:20px;padding:20px;background:#f5f5f7;border-radius:10px}.bill-total strong{font-size:25px;font-variant-numeric:tabular-nums}.toast{position:fixed;bottom:30px;left:calc(50% + 80px);transform:translateX(-50%);background:#202126;color:#fff;padding:13px 20px;border-radius:11px;box-shadow:0 7px 24px #0002;z-index:40;max-width:calc(100vw - 32px);text-align:center;font-size:12px}.checkbox{width:16px;height:16px;accent-color:var(--blue)}.check-label{display:flex;align-items:center;gap:7px;color:var(--muted);font-size:12px}.footnote{font-size:11px;color:var(--muted);line-height:1.9;margin-top:16px}.show-mobile{display:none}.print-only{display:none}
.project-card{display:flex;flex-direction:column}.project-card .card-footer{margin-top:auto}
@media(min-width:1550px){.project-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.content{max-width:1450px}.card-metrics .metric-value{font-size:23px}}
@media(max-width:1150px){:root{--sidebar:180px}.content{padding:30px 26px 50px}.topbar{padding:0 26px}.project-card{padding:22px}.card-metrics{grid-template-columns:1fr 1fr;gap:18px}.card-metrics>div:last-child{grid-column:1/-1}.card-metrics .metric-value{font-size:24px}.card-metrics>div:last-child .metric-value{font-size:22px}.vendor-card .card-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.vendor-card .card-metrics>div:last-child{grid-column:auto}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.project-info{grid-template-columns:repeat(2,minmax(0,1fr))}.advance-summary .card-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.advance-summary .card-metrics>div:last-child{grid-column:auto}}
@media(max-width:860px){.project-grid{grid-template-columns:1fr}.two-col,.vendor-grid{grid-template-columns:1fr}.card-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.card-metrics>div:last-child{grid-column:auto}.hero-metrics{padding:24px}.hero-metrics .metric-value{font-size:28px}.hero-metrics>div+div{padding-left:19px}.advance-summary{align-items:flex-start;flex-direction:column}.advance-summary .card-metrics{width:100%}.toolbar{align-items:stretch;flex-direction:column}.search-box{width:100%}.filters{justify-content:space-between}.topbar-right .profile{display:none}}
@media(max-width:640px){:root{--sidebar:0px}.sidebar{inset:auto 0 0 0;width:100%;height:auto;padding:8px 10px max(8px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid var(--line);background:#fafafd}.brand,.sidebar-bottom{display:none}.nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.nav button{padding:9px 4px;flex-direction:column;gap:5px;font-size:11px;justify-content:center;border-radius:8px}.nav button svg{width:19px;height:19px}.main{margin-left:0}.content{padding:26px 18px 115px}.topbar{height:56px;padding:0 18px}.topbar-label{font-size:12px;color:var(--ink);font-weight:550}.preview-badge{font-size:10px;padding:4px 6px}.topbar-right{gap:8px}.page-heading{margin-bottom:21px;gap:12px}h1{font-size:25px}.page-heading .button{padding:9px 11px;font-size:12px}.page-heading .button svg{display:none}.project-card{padding:22px 20px}.project-title{font-size:17px}.project-grid{gap:16px}.card-metrics .metric-value{font-size:23px}.card-metrics>div:last-child .metric-value{font-size:21px}.metric-label{font-size:11px}.card-metrics{gap:8px;margin:25px 0 20px}.metric-value.placeholder{font-size:17px!important}.card-footer{gap:8px}.card-footer .text-button{font-size:11px}.hero-metrics{padding:22px 18px;gap:12px}.hero-metrics .metric-value{font-size:24px}.hero-metrics>div+div{padding-left:12px}.hero-metrics .metric-note{font-size:10px}.project-info{gap:20px 12px}.tabs{gap:24px}.tabs button{font-size:12px}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.category{padding:13px 10px}.category strong{font-size:17px}.category span{font-size:11px}.section-heading{align-items:flex-start}.section-heading h2{font-size:17px}.section-heading p{line-height:1.7}.section-heading .button-group{justify-content:flex-end}.notice{padding:11px 12px;align-items:flex-start;font-size:11px}.table-wrap{border-radius:12px}.ledger th{padding:12px}.ledger td{padding:15px 12px}.panel{padding:20px 17px}.modal-body{padding:22px 20px}.modal-header{padding:22px 20px 17px}.modal-footer{padding:15px 20px}.field-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.toast{left:50%;bottom:100px;width:max-content}.advance-summary{padding:22px 18px}.advance-summary .metric-value{font-size:23px}.vendor-card{padding:21px 18px}.vendor-card .metric-value{font-size:21px}.button-group{gap:7px}.show-mobile{display:inline}.hide-mobile{display:none}.material-row{align-items:flex-start}.bill-total{gap:10px}.bill-total strong{font-size:22px}}
@media(max-width:360px){.hero-metrics{grid-template-columns:1fr}.hero-metrics>div+div{border-left:0;border-top:1px solid var(--line);padding:14px 0 0}.hero-metrics .metric-value{font-size:28px}.card-metrics .metric-value{font-size:20px}.card-metrics>div:last-child .metric-value{font-size:19px}.card-footer{flex-direction:column;align-items:flex-start}}
@media(max-width:640px){.index-notice{display:none}.page-heading .eyebrow{display:none}.toolbar{margin:18px 0;gap:12px}.subtitle{font-size:12px}.content{padding-top:22px}.filters select{padding:8px 10px}.project-card .card-meta{font-size:11px}}
@media(max-width:340px){.project-card .card-metrics{grid-template-columns:1fr 1fr;gap:17px 10px}.project-card .card-metrics>div:last-child{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{body{background:white}.sidebar,.main,.toast{display:none}.modal{position:absolute;inset:0;border:0;box-shadow:none;width:100%;max-height:none;margin:0;padding:0}.modal::backdrop{background:white}.modal-header,.modal-footer{display:none}.modal-body{max-height:none;overflow:visible}.print-only{display:block}.ledger th,.ledger td{padding:12px}.bill-header{padding-top:25px}}
.form-fieldset{border:0;padding:0;margin:0;min-width:0}.source-details{margin-top:24px;padding:16px;color:var(--muted);font-size:11px;line-height:1.9;background:#f0f0f4;border-radius:10px;overflow-wrap:anywhere}.source-details summary{cursor:pointer;color:var(--ink)}.source-details p{margin-top:12px}.attachment-tabs{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:18px}.attachment-tabs button{max-width:100%;overflow-wrap:anywhere;white-space:normal;text-align:left}.pdf-preview{width:100%;height:440px;border:1px solid var(--line);border-radius:9px}.utility-links{display:flex;flex-direction:column;gap:6px;margin:14px 0 10px}.utility-links button{background:none;border:0;padding:0;text-align:left;color:var(--blue);font-size:11px}.utility-links a{text-decoration:none}.right{text-align:right}.definition-list dd{overflow-wrap:anywhere}.project-title{overflow-wrap:anywhere}.mobile-storage{margin-top:30px;padding-top:16px;border-top:1px solid var(--line);font-size:10px;color:var(--muted)}.mobile-storage span{display:block;margin-bottom:8px}.mobile-storage a{margin-left:15px}.field-check{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.7}.field-check input{width:16px;height:16px;margin-top:2px;accent-color:var(--blue)}.quote-edit-list{display:grid;gap:14px}.quote-edit-row{padding:16px;background:#f7f7f9;border:1px solid var(--line);border-radius:12px}.quote-edit-row .field-grid{gap:14px}.contract-editor-section{margin-top:24px}.form-section{margin:24px 0 12px}.field input[type=checkbox]{width:16px;height:16px}.button:disabled,.icon-button:disabled{opacity:.55}.field input[type=datetime-local]{min-width:0}.source-details+div{margin-top:16px}
.metric-link{display:block;background:transparent;border:0;padding:0;text-align:left;min-width:0;border-radius:6px;width:100%}.metric-link:hover .metric-value{color:var(--blue)}.metric-link:hover .metric-label{text-decoration:underline;text-underline-offset:4px}.metric-link:focus-visible{outline-offset:6px}
.metric-entry{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;border-radius:10px;min-height:100%}.metric-action{display:flex;align-items:center;gap:4px;margin-top:auto;padding-top:10px;color:var(--blue);font-size:11px;line-height:1.5}.metric-entry:hover .metric-action{text-decoration:underline;text-underline-offset:3px}
@media(max-width:640px){.mobile-storage{display:block}.definition-list{grid-template-columns:90px minmax(0,1fr);gap:13px}.page-heading{flex-wrap:wrap}.page-heading>div:first-child{min-width:0;width:100%}.vendor-card .card-footer{flex-wrap:wrap}.modal-footer{flex-wrap:wrap}.advance-summary .metric-value{font-size:21px}.metric-value{overflow-wrap:anywhere}}
@media print{.attachment-tabs,.source-details,.mobile-storage{display:none}}
.modal[open]{display:flex;flex-direction:column;overflow:hidden}.modal-header,.modal-footer{flex:0 0 auto}.modal-body{flex:1 1 auto;min-height:0;max-height:none;overflow:auto}.modal-footer{flex-wrap:wrap;min-width:0;padding-bottom:max(20px,env(safe-area-inset-bottom));background:var(--surface,#fff)}.modal-footer>.button,.modal-footer>.text-button{max-width:100%;white-space:normal;overflow-wrap:anywhere}.backup-help{margin-top:10px;color:var(--muted);line-height:1.7}.backup-help summary{cursor:pointer;font-size:11px}.backup-help a,.backup-help small{display:block;margin-top:8px;overflow-wrap:anywhere}.check-label{min-width:0;overflow-wrap:anywhere}.num,.metric-value{font-variant-numeric:tabular-nums}
.audit-list{overflow-wrap:anywhere}
@media print{.modal[open]{display:block;overflow:visible}.modal-body{overflow:visible;max-height:none}.modal-footer{display:none}}
/* Project-first dashboard. Only short transform/opacity motion; amounts never animate. */
.project-card-interactive{cursor:pointer;position:relative;transition:transform 180ms ease-out;isolation:isolate}
.project-card-open{position:absolute;inset:0;border:0;border-radius:inherit;padding:0;background:transparent;z-index:0}
.project-card-interactive>:not(.project-card-open){position:relative;z-index:1;pointer-events:none}
.project-card-interactive :is(button,a,input,select,summary,details){pointer-events:auto}
.project-card-open:focus-visible{outline:3px solid var(--blue);outline-offset:4px}
.project-card-interactive :is(button,summary):focus-visible{outline-color:var(--blue)}
.project-card-interactive:hover{transform:translateY(-3px);border-color:#b7cde7;background:#fcfdff;box-shadow:0 14px 30px rgba(36,61,100,.075)}
.project-card-interactive:active{transform:translateY(-1px)}
.project-card-interactive:focus-visible{outline:2px solid #78baff;outline-offset:4px}
.project-card-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:24px 0 17px}
.project-card-title h3{font-size:19px;line-height:1.45;font-weight:600;overflow-wrap:anywhere}
.project-card-title>svg{flex-shrink:0;margin-top:5px;color:#8c98a8;transition:transform 180ms ease}
.project-card-interactive:hover .project-card-title>svg{color:var(--blue);transform:translateX(3px)}
.status-entry{background:none;border:0;padding:0;text-align:right;max-width:70%;border-radius:8px}
.tag.blue{color:#1465b9;background:#eaf3ff}.tag.cyan{color:#256b75;background:#eaf6f7}.tag.gray{color:#656976;background:#f0f1f4}.tag.green{color:#247d53;background:#e9f6ed}.tag.amber{color:#946221;background:#fcf2e2}
.project-card .four-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px 18px}
.project-card .four-metrics>*:last-child{grid-column:auto}
.project-card .metric-value{font-size:25px;line-height:1.3;margin-top:10px}
.metric-value.tone-green,.metric-value.green,.green-text{color:#247d53}.metric-value.tone-amber,.metric-value.amber{color:#946221}.metric-value.tone-danger,.metric-value.danger,.danger-text{color:#b52b35}
.metric-value.placeholder{color:var(--muted)}.metric-link{position:relative}.metric-link:hover{background:#f2f7ff}.metric-link .metric-label{text-decoration:none!important}.metric-link:focus-visible{outline-offset:5px}
.compact-card-footer{padding-top:16px;margin-top:auto;color:var(--muted)}.card-open-hint{font-size:11px;white-space:nowrap;display:flex;align-items:center;gap:5px}.project-card:hover .card-open-hint{color:var(--blue)}
.company-summary{padding:25px 28px;background:#fff;border:1px solid var(--line);border-radius:20px;margin:22px 0 30px}
.summary-title{display:flex;justify-content:space-between;align-items:center;gap:15px}.summary-title h2{font-size:15px}.summary-title>span{font-size:11px;color:var(--muted)}
.summary-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:24px 0}.summary-metrics .metric-value{font-size:28px}.summary-metrics .metric-note{font-size:11px}
.composition-bar{display:flex;overflow:hidden;border-radius:5px;height:9px;background:#eceff3}.composition-cost{background:#637d9c}.composition-profit{background:#5da985}
.composition-legend{display:flex;gap:24px;font-size:11px;color:var(--muted);margin-top:10px}.composition-legend>span{display:flex;align-items:center;gap:7px}.dot{display:inline-block;width:7px;height:7px;border-radius:50%}.dot.cost{background:#637d9c}.dot.profit{background:#5da985}
.summary-coverage{display:grid;grid-template-columns:auto minmax(90px,1fr) auto;gap:14px;align-items:center;font-size:11px;color:var(--muted);border-top:1px solid var(--line);padding-top:17px}.coverage-track{height:5px;background:#edf0f4;overflow:hidden;border-radius:8px}.coverage-track>span{height:100%;display:block;background:#72a1d5}
.archive-group{margin:30px 0 20px;border-top:1px solid var(--line);padding-top:22px}.archive-group>summary{display:flex;justify-content:space-between;align-items:center;gap:14px;cursor:pointer;list-style:none;padding:10px 0 18px}.archive-group>summary::-webkit-details-marker{display:none}.archive-group>summary>span:first-child{display:flex;align-items:center;gap:10px;font-size:15px;color:#427658}.archive-group>summary>span:last-child{font-size:11px;color:var(--muted);display:flex;align-items:center;gap:8px}.archive-group>summary b{font-size:11px;background:#e9f4ec;border-radius:6px;padding:3px 7px}.archive-group>summary>span:last-child svg{transform:rotate(90deg);transition:transform 180ms ease}.archive-group[open]>summary>span:last-child svg{transform:rotate(-90deg)}
.archive-group[open]>.project-grid{animation:dashboard-open 180ms ease-out}.project-card.is-archived{background:#f8fbf8;border-color:#dce9df}.project-card.is-archived:hover{background:#f2f8f3;border-color:#9fc1a8}
.settlement-group>summary>span:first-child{color:#936018}.settlement-group>summary b{background:#fff2dc}.settlement-group .project-card{background:#fffcf6;border-color:#eadcc4}
.quick-costs{cursor:auto;margin-bottom:18px;font-size:12px}.quick-costs>summary{cursor:pointer;color:var(--blue);padding:8px 0}.quick-costs>summary>span{color:var(--muted);margin-left:5px}.quick-categories{border:1px solid #e6ebf1;border-radius:10px;overflow:hidden;background:#fff;margin-top:6px}.quick-categories>details+details{border-top:1px solid #edf0f4}.quick-categories summary{cursor:pointer;display:flex;gap:8px;align-items:center;padding:11px 12px;list-style:none}.quick-categories summary strong{margin-left:auto;font-variant-numeric:tabular-nums;font-weight:500}.category-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#8a939f;flex:0 0 7px}.category-dot.blue{background:#5488c2}.category-dot.cyan{background:#4b9cab}.category-dot.purple{background:#a180b9}.category-dot.amber{background:#b9975e}.quick-cost-row{width:100%;display:flex;text-align:left;align-items:center;gap:10px;padding:11px 12px;border:0;background:#f8fafc;font-size:11px}.quick-cost-row+button{border-top:1px solid #edf0f4}.quick-cost-row>span{flex:1;min-width:0}.quick-cost-row strong{font-weight:500;white-space:nowrap}.quick-cost-row:hover{background:#eaf3ff;color:var(--blue)}
.hero-metrics.four-metrics{grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.hero-metrics.four-metrics .metric-value{font-size:29px}.hero-metrics.four-metrics>*+*{border-left:1px solid var(--line);padding-left:22px}
.completion-panel{border:1px solid var(--line);background:#fff;border-radius:16px;padding:20px 22px;margin:20px 0}.completion-title{display:flex;align-items:center;justify-content:space-between;gap:12px}.completion-title>span{font-size:11px;color:var(--muted)}.completion-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:18px}.completion-step{display:flex;gap:10px;align-items:flex-start;border:1px solid #eceef2;border-radius:10px;background:#fafbfc;padding:13px;text-align:left;min-width:0}.completion-step:hover{border-color:#9cbce4;background:#f2f7ff}.completion-step.done{background:#f5faf6;border-color:#deebe1}.completion-step .step-mark{font-size:12px;background:#e8ebf0;color:#606b7c;width:19px;height:19px;border-radius:50%;flex-shrink:0;display:grid;place-items:center}.completion-step.done .step-mark{background:#def0e4;color:#267c4d}.completion-step>span:nth-child(2){flex:1;min-width:0}.completion-step strong{font-size:12px;font-weight:500}.completion-step small{display:block;font-size:11px;color:var(--muted);line-height:1.6;margin-top:7px}.completion-step>svg{flex-shrink:0;margin-top:3px;color:#8491a3}
.profit-total{display:flex;align-items:center;gap:20px;flex-wrap:wrap;margin-top:28px;background:#fff;border:1px solid var(--line);border-radius:16px;padding:25px}.profit-total>div{flex:1}.profit-total h2{font-size:15px}.profit-total p,.profit-total>small{font-size:11px;color:var(--muted);margin-top:7px}.profit-total>strong{font-size:28px;font-variant-numeric:tabular-nums}.profit-total>small{width:100%;text-align:right}
.profit-formula{display:flex;align-items:center;justify-content:space-around;gap:12px;border:1px solid var(--line);background:white;border-radius:14px;padding:23px;margin-bottom:18px}.profit-formula>button{border:0;background:none;cursor:pointer;color:var(--ink);text-align:left}.profit-formula>button:hover{color:var(--blue)}.profit-formula>button>span,.profit-formula>div>span{font-size:11px;display:block;color:var(--muted);margin-bottom:9px}.profit-formula strong{font-size:24px;font-variant-numeric:tabular-nums;font-weight:600}.profit-category{display:flex;align-items:center;gap:12px;font-size:12px;padding:12px 0}.profit-category>span:nth-child(2){width:32px}.profit-category>strong{font-weight:500;min-width:90px;text-align:right;font-variant-numeric:tabular-nums}.profit-category-track{height:6px;flex:1;background:#edf1f5;border-radius:6px;overflow:hidden}.profit-category-track>span{display:block;height:100%;background:#7f9cb8}
@keyframes dashboard-open{from{opacity:0;transform:translateY(-3px)}to{opacity:1;transform:translateY(0)}}
@media(max-width:1150px){.summary-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.summary-coverage{grid-template-columns:1fr 1fr}.summary-coverage>span:last-child{grid-column:1/-1}.hero-metrics.four-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.hero-metrics.four-metrics>*+*{padding-left:0;border-left:0}.completion-steps{grid-template-columns:1fr}.completion-step{align-items:center}}
@media(max-width:640px){.nav{grid-template-columns:repeat(4,minmax(0,1fr))}.nav button{font-size:10px}.company-summary{padding:21px 18px;margin:22px 0}.summary-title{align-items:flex-start;flex-direction:column;gap:8px}.summary-metrics .metric-value{font-size:24px}.summary-metrics{gap:22px 12px}.summary-coverage{display:flex;align-items:flex-start;flex-direction:column;gap:9px}.coverage-track{width:100%}.project-card .four-metrics{gap:23px 14px}.project-card .cost-card-metrics{grid-template-columns:1fr 1fr;gap:22px 14px}.project-card .cost-card-metrics>*:last-child{grid-column:1/-1}.project-card-title h3{font-size:18px}.card-open-hint{display:none}.completion-panel{padding:17px}.completion-title{align-items:flex-start;flex-direction:column;gap:8px}.hero-metrics.four-metrics .metric-value{font-size:24px}.archive-group>summary{align-items:flex-start;flex-direction:column;gap:9px}.profit-formula{padding:20px 14px;gap:9px;flex-wrap:wrap}.profit-formula strong{font-size:19px}.profit-category>strong{min-width:85px}.profit-total{padding:20px}.project-card-interactive:hover{transform:none}}
@media(prefers-reduced-motion:reduce){.project-card-interactive,.project-card-title>svg,.archive-group>summary svg{transition:none!important}.project-card-interactive:hover,.project-card-interactive:active,.project-card-interactive:hover .project-card-title>svg{transform:none!important}.archive-group[open]>.project-grid{animation:none!important}}
.card-metrics>*,.hero-metrics>*,.summary-metrics>*{min-width:0}.card-metrics .metric-value,.hero-metrics .metric-value,.summary-metrics .metric-value{white-space:normal;overflow-wrap:anywhere}
.project-card{padding:24px;gap:0}.project-card-title{margin:18px 0 12px}.project-card .card-metrics{margin:20px 0;align-items:start}.project-card .metric-value.placeholder{font-size:17px;line-height:1.5}.project-card .metric-note{font-size:11px;line-height:1.6}.project-card .card-state{font-size:11px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.project-card .compact-card-footer{margin-top:12px}.profit-table-wrap{overflow-x:auto;background:var(--panel,#fff);border:1px solid var(--line);border-radius:18px}.profit-list{width:100%;border-collapse:collapse;min-width:850px;font-variant-numeric:tabular-nums}.profit-list th{font-size:12px;color:var(--muted);text-align:left;background:#f8fafc;padding:16px}.profit-list td{font-size:14px;padding:17px 16px;border-top:1px solid var(--line);white-space:nowrap}.profit-list td:first-child{min-width:230px;white-space:normal}.profit-list small{display:block;margin-top:5px;font-size:11px;color:var(--muted)}.profit-list tbody tr:hover{background:#f5f9ff}.profit-list .text-button{text-align:left;font-weight:600}.profit-list td:nth-child(n+2):nth-child(-n+5),.profit-list th:nth-child(n+2):nth-child(-n+5){text-align:right}
@media(max-width:360px){.project-card .four-metrics,.hero-metrics.four-metrics,.summary-metrics{grid-template-columns:1fr}.project-card .four-metrics>*:last-child{grid-column:auto}.hero-metrics.four-metrics>*+*{padding:16px 0 0;border-left:0;border-top:1px solid var(--line)}.summary-metrics .metric-value,.hero-metrics.four-metrics .metric-value{font-size:28px}}
/* Refined workbench: stable type scale, quiet chrome, dense financial surfaces. */
.sidebar{background:#142033;border-color:#253348;color:#e2e8f0;padding:28px 14px}.brand-name{color:#f8fafc;font-size:22px}.brand-sub,.sidebar-bottom{color:#94a3b8}.brand{padding:0 14px 32px}.sidebar-bottom strong{color:#e2e8f0}.nav button{color:#b6c2d4;min-height:44px;border-radius:8px}.nav button.active{background:#263d60;color:#fff}.nav button:hover:not(.active){background:#213048;color:#fff}.sidebar .utility-links button,.sidebar .utility-links a{color:#9dc1ff}.topbar{height:62px;background:#fff;padding:0 28px}.content{max-width:1440px;padding:28px 28px 64px}h1{font-size:27px}h1,h2,h3{text-wrap:balance}.subtitle,.footnote{text-wrap:pretty}.page-heading{margin-bottom:20px}.eyebrow{font-size:11px}.button{min-height:42px;border-radius:8px}.button.small{min-height:38px}.project-grid{gap:16px}.project-card{padding:22px!important;border-radius:14px}.card-head{margin-bottom:0}.project-card-title{margin:18px 0 6px}.project-card-title h3{font-size:18px;line-height:1.45}.card-meta{margin-top:0}.project-card .card-metrics{margin:22px 0 16px;gap:18px}.project-card .metric-value{font-size:26px;line-height:1.3;overflow-wrap:normal;white-space:nowrap}.project-card .metric-value.placeholder{font-size:15px!important;white-space:normal;line-height:1.5;color:#64748b}.metric-label{font-size:12px;margin-bottom:7px}.metric-note{font-size:11px}.metric-link{text-align:left}.company-summary{border-radius:14px;margin:20px 0 24px;padding:24px}.summary-title h2{font-size:16px}.summary-metrics{gap:20px;margin-top:22px}.summary-metrics .metric-value{font-size:30px;white-space:nowrap}.summary-metrics .metric-value.placeholder{font-size:23px}.summary-coverage{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.card-footer{padding-top:14px}.card-open-hint{font-size:11px}.customer-receipt-strip{width:100%;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#f8fafc;border:1px solid var(--line);border-radius:8px;padding:10px 12px;font-size:11px;text-align:left;color:var(--muted)}.customer-receipt-strip>span{display:flex;align-items:center;gap:7px;flex-wrap:wrap}.customer-receipt-strip:hover{border-color:#b3c8ed;background:#eff6ff}.tag{font-size:11px;padding:4px 7px;border-radius:5px}.profit-table-wrap{border-radius:12px}.profit-list th{padding:13px 16px;font-weight:500}.profit-list td{padding:13px 16px;font-size:13px}.profit-list tr{scroll-margin:24px}.profit-list .text-button{font-size:13px;min-height:32px}.completion-steps{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}.completion-panel{border-radius:12px;padding:18px}.completion-step small{margin-top:4px}.settlement-condition{display:flex;flex-direction:column;gap:12px;padding:18px 0;border-bottom:1px solid var(--line)}.settlement-condition:first-child{padding-top:0}.settlement-condition label:not(.field){display:flex;align-items:center;gap:10px;font-size:13px;line-height:1.6}.settlement-condition input[type=checkbox]{width:18px;height:18px;flex-shrink:0;accent-color:var(--blue)}.settlement-condition>small{font-size:11px;color:var(--muted)}.settlement-money{display:flex;gap:20px;font-variant-numeric:tabular-nums;font-size:13px}.settlement-condition strong{display:flex;align-items:center;gap:10px;font-size:14px}.settlement-condition .field-grid{margin-top:2px}.modal{border-radius:14px}.modal-header{padding:22px 24px 18px}.modal-body{padding:22px 24px}.modal-footer{padding:16px 24px}.ledger th{background:#f8fafc;font-weight:500}.ledger td{padding:15px 16px}.table-wrap{border-radius:12px}.archive-group>summary{font-size:14px}.project-card-interactive{transition:transform 160ms ease-out}.project-card-interactive:hover{transform:translateY(-2px)}
@media(max-width:1100px){.project-card .cost-card-metrics{grid-template-columns:1fr 1fr}.cost-card-metrics>*:last-child{grid-column:1/-1}.completion-steps{grid-template-columns:repeat(2,minmax(0,1fr))}.summary-metrics .metric-value{font-size:27px}}
@media(max-width:760px){.content{padding:24px 18px 110px}.page-heading{flex-wrap:wrap}.completion-steps{grid-template-columns:1fr}.customer-receipt-strip{align-items:flex-start;flex-direction:column}.project-card .metric-value{font-size:23px}.summary-metrics .metric-value{font-size:24px}}
@media(max-width:640px){.sidebar{padding:6px 8px max(6px,env(safe-area-inset-bottom));border-top-color:#263d60}.nav button{color:#b6c2d4;min-height:52px}.topbar{padding:0 18px}.project-card{padding:20px!important}.project-card .card-metrics{gap:16px}.summary-title{gap:6px}}
@media(prefers-reduced-motion:reduce){.project-card-interactive{transition:none}.project-card-interactive:hover{transform:none}}

/* Main boards: compact, readable finance hierarchy without changing detail forms. */
.project-board{min-width:0;color:var(--ink)}
.project-board .page-heading{margin-bottom:20px;align-items:center;gap:16px}
.project-board .page-heading>div:first-child{min-width:0;flex:1}
.project-board h1{font-size:28px;line-height:1.35}
.project-board .subtitle{max-width:68ch;font-size:13px;line-height:1.6;margin-top:8px}
.project-board .toolbar{margin:20px 0;gap:14px;flex-wrap:wrap}
.project-board .search-box{flex:1;max-width:360px;min-width:200px;min-height:44px}
.project-board .filters{flex-wrap:wrap;justify-content:flex-end;gap:10px}
.project-board .count{font-size:12px;line-height:1.6}
.project-board .project-grid{gap:18px}
.project-board .project-card-title{margin:16px 0 6px}
.project-board .project-card-title h3{font-size:18px;line-height:1.5}
.project-board .card-period{font-size:12px;line-height:1.5}
.project-board .card-metrics{gap:16px;margin:20px 0 16px;align-items:start}
.project-board .metric-link{min-width:0;border-radius:8px;padding:6px 4px;margin:-6px -4px}
.project-board .metric-label{font-size:12px;line-height:1.5;margin-bottom:6px}
.project-board .metric-value{font-size:clamp(21px,1.8vw,27px);line-height:1.3;white-space:normal;overflow-wrap:anywhere}
.project-board .metric-value.placeholder{font-size:15px!important;line-height:1.5;color:var(--muted);overflow-wrap:break-word}
.project-board .metric-note{font-size:12px;line-height:1.6;margin-top:6px}
.project-board .card-state{font-size:12px;line-height:1.6}
.project-board .company-summary{padding:22px;margin:20px 0 24px}
.project-board .summary-metrics{gap:20px;margin:20px 0}
.project-board .summary-metrics .metric-value{font-size:clamp(23px,2.2vw,31px);white-space:normal;overflow-wrap:anywhere}
.project-board .summary-metrics .metric-value.placeholder{font-size:22px!important}
.project-board .summary-title{gap:12px;line-height:1.6}
.project-board .summary-title>span,.project-board .summary-coverage{font-size:12px;line-height:1.6}
.project-board .summary-coverage{grid-template-columns:minmax(180px,auto) minmax(100px,1fr) minmax(160px,auto)}
.project-board .archive-group{margin:24px 0 18px;padding-top:18px}
.project-board .archive-group>summary{padding:8px 0 16px;gap:12px}
.project-board .archive-group>summary>span:last-child{font-size:12px;line-height:1.6}
.project-board>.footnote{font-size:12px;max-width:100ch}
.project-board .profit-total{padding:20px 22px;border-radius:12px;margin-top:24px;background:var(--surface)}
.project-board .profit-total p,.project-board .profit-total>small{font-size:12px;line-height:1.6}
.project-board .profit-total>strong{font-size:28px;overflow-wrap:anywhere}
.profit-list{min-width:780px;background:var(--surface)}
.profit-list th{padding:12px 16px;line-height:1.5}
.profit-list td{padding:12px 16px;vertical-align:middle}
.profit-row{cursor:pointer}
.profit-row:focus-visible{outline:3px solid var(--blue);outline-offset:-3px}
.profit-row:focus-within{background:var(--blue-soft)}
.profit-list .profit-row-entry{width:100%;min-height:44px;justify-content:space-between;gap:10px;color:var(--ink);text-align:left;text-decoration:none!important}
.profit-row-entry>span{min-width:0;overflow-wrap:anywhere}
.profit-row-entry>svg{color:var(--muted)}
.profit-row-entry:hover,.profit-row-entry:focus-visible{color:var(--blue)}
.profit-cell-link{display:block;width:100%;min-height:44px;padding:8px 6px;border:0;border-radius:6px;background:transparent;text-align:right;color:inherit;font-size:14px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.profit-cell-link:hover{background:var(--blue-soft);color:var(--blue);text-decoration:underline;text-underline-offset:3px}
.profit-cell-link:focus-visible,.profit-row-entry:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
.profit-cell-link.is-unknown{font-size:13px;font-weight:500;color:var(--muted)}
.profit-list small{font-size:12px;line-height:1.5;margin-top:2px}
.profit-date-cell{font-size:12px!important;color:var(--muted);line-height:1.6}
@media(max-width:1100px){
  .project-board .summary-coverage{grid-template-columns:1fr 1fr}
  .project-board .summary-coverage>span:last-child{grid-column:1/-1}
  .project-board .page-heading{align-items:flex-start}
}
@media(max-width:760px){
  .project-board .page-heading{gap:14px}
  .project-board .page-heading>.button-group{width:100%}
  .project-board h1{font-size:25px}
  .project-board .search-box{max-width:none;width:100%}
  .project-board .filters{justify-content:space-between;width:100%}
  .project-board .filters .count{flex:1;min-width:180px}
  .project-board .project-grid{grid-template-columns:1fr;gap:14px}
  .project-board .company-summary{padding:18px}
  .project-board .summary-metrics{gap:18px 12px}
  .project-board .summary-coverage{display:flex;flex-direction:column;align-items:stretch;gap:10px}
  .project-board .summary-title{align-items:flex-start;flex-direction:column;gap:6px}
  .project-board .profit-total{padding:18px}
  .project-board .profit-total>strong{font-size:25px}
  .project-board .profit-total>small{text-align:left}
  /* Reflow the same six-column ledger; every value, date and native entry remains. */
  .profit-table-wrap{overflow:visible}
  .profit-list{min-width:0;display:block}
  .profit-list thead{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  .profit-list tbody{display:block}
  .profit-list .profit-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:14px 16px;gap:10px 16px;min-width:0}
  .profit-list .profit-row+.profit-row{border-top:1px solid var(--line)}
  .profit-list td{display:block;border:0;padding:0;white-space:normal;min-width:0;text-align:left!important}
  .profit-list td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:400;line-height:1.5}
  .profit-list td:first-child::before{display:none}
  .profit-project-cell,.profit-date-cell{grid-column:1/-1}
  .profit-list .profit-row-entry{font-size:14px!important;padding:4px 0;min-height:44px}
  .profit-cell-link{width:100%;padding:4px 0;text-align:left;white-space:normal;overflow-wrap:anywhere;font-size:16px;line-height:1.4}
  .profit-list .profit-date-cell{display:flex;align-items:baseline;gap:10px;padding-top:4px;font-size:12px!important}
  .profit-list .profit-date-cell::before{flex-shrink:0}
  .profit-row:focus-visible{outline-offset:-3px}
}
/* One type scale and control rhythm across this project's workflows. */
:root{--wuyun-logo-size:72px;--control-height:42px}
.wuyun-logo,.sidebar .wuyun-logo,.cloud-login .wuyun-logo{width:var(--wuyun-logo-size);height:var(--wuyun-logo-size);object-fit:contain;padding:6px;background:#fff;border-radius:12px;flex:none}
.field input:not([type=checkbox]):not([type=radio]):not([type=file]),.field select{min-height:var(--control-height);box-sizing:border-box;font:inherit}
.field textarea{font:inherit;min-height:88px}.completion-card h3,.completion-card strong,.metric-label,.card-title{font-family:inherit;font-size:14px;font-weight:600;line-height:1.45}
.cloud-session{gap:12px;flex-wrap:wrap}.cloud-session-identity{max-width:180px}.cloud-session-identity small{white-space:normal}.account-home{max-width:520px}.account-actions{display:grid;gap:12px}.account-email{overflow-wrap:anywhere}.entry-review{border:1px solid var(--line,#e5dfd8);padding:18px;border-radius:12px;margin-block:16px;background:var(--surface,#fff)}
.entry-review label,.project-documents>label{display:flex;align-items:flex-start;gap:8px;margin-block:12px}.entry-review .field{display:flex;flex-direction:column}.project-documents .material-row{list-style:none;align-items:flex-start;gap:12px}.project-documents .material-row strong{overflow-wrap:anywhere}.project-documents .material-row>div{min-width:0}.project-documents .material-row p{margin:6px 0}.entry-review td input{width:100%;min-width:100px}.cost-share-details .button-group{padding:0 12px 12px}
#project-workspace-content{scroll-margin-top:20px}.accounting-explanation,.footnote{line-height:1.65}
@media(max-width:600px){.cloud-session{gap:8px}.cloud-session-identity{max-width:110px}.project-documents .material-row{flex-direction:column}.entry-review{padding:12px}.button-group{flex-wrap:wrap}.account-home{width:calc(100vw - 24px)}}
@media(max-width:640px){.nav{grid-template-columns:repeat(5,minmax(0,1fr));gap:0}.nav button{min-height:54px;padding:7px 2px;font-size:10px;white-space:nowrap}.nav button svg{width:19px;height:19px}.workspace{padding-bottom:80px}}
/* Keep scrolling inside the active dialog and preserve the page gutter. */
html:has(dialog[open]){overflow:hidden;scrollbar-gutter:stable}
.modal-body{overscroll-behavior:contain}

/* Paid records retain their date-pending state; keep its workspace entry compact. */
.pending-payment-notice{margin:0 0 20px;border:1px solid #eadbc3;border-radius:10px;background:#faf4e9;color:var(--amber);font-size:12px}
.pending-payment-notice>summary{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 14px;list-style:none;cursor:pointer}
.pending-payment-notice>summary::-webkit-details-marker{display:none}
.pending-payment-notice>summary>strong{font-size:13px;white-space:nowrap}
.pending-payment-total,.pending-payment-amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.pending-payment-toggle{margin-left:auto;display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:var(--ink)}
.pending-payment-notice .when-open,.pending-payment-notice[open] .when-closed{display:none}
.pending-payment-notice[open] .when-open{display:inline}
.pending-payment-notice[open] .pending-payment-toggle svg{transform:rotate(90deg)}
.pending-payment-notice>summary:focus-visible,.pending-payment-cost:focus-visible{outline:2px solid var(--blue);outline-offset:3px;border-radius:7px}
.pending-payment-details{border-top:1px solid #eadbc3;padding:4px 14px 0;background:#fff;border-radius:0 0 10px 10px}
.pending-payment-caption{margin:12px 0;color:var(--muted);line-height:1.6;font-variant-numeric:tabular-nums;text-wrap:pretty}
.pending-payment-details>ul{list-style:none;padding:0;margin:0;max-height:min(320px,45dvh);overflow:auto;overscroll-behavior:contain}
.pending-payment-details li{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:12px;align-items:center;border-top:1px solid var(--line);padding:10px 0}
.pending-payment-item{min-width:0}
.pending-payment-cost{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;max-width:100%;border:0;background:none;padding:4px 0;color:var(--ink);font:inherit;text-align:left;line-height:1.5;overflow-wrap:anywhere}
.pending-payment-cost:hover{text-decoration:underline}
.pending-payment-item>small{display:block;color:var(--muted);font-size:11px;line-height:1.5;overflow-wrap:anywhere}
.pending-payment-amount{color:var(--ink);font-size:12px}
.pending-payment-details .button.small{min-height:44px;color:var(--ink);padding:7px 10px}
@media(max-width:640px){.pending-payment-notice{margin-bottom:18px}.pending-payment-notice>summary{gap:8px;padding:10px 12px}.pending-payment-total{display:none}.pending-payment-details{padding:4px 12px 0}.pending-payment-details li{grid-template-columns:minmax(0,1fr) auto;gap:8px 12px}.pending-payment-item{grid-column:1/-1}.pending-payment-amount{justify-self:start}.pending-payment-details .button.small{justify-self:end}.pending-payment-caption{font-size:11px}}
