:root{--ink:#1b2d4b;--muted:#61718a;--accent:#2563eb;--accent-hover:#1d4ed8;--line:#e0e7f1;--bg:#f5f8ff;--card:#fff;--soft:#eaf1ff;--gold:#a4651c;--radius:18px;font:15px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none}*{box-sizing:border-box}body{margin:0}a{color:inherit;text-decoration:none}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.6}svg{width:21px;height:21px;flex-shrink:0;vertical-align:middle}h1,h2,h3,p{margin-top:0}h1{font-size:34px;line-height:1.2;letter-spacing:-1.1px;margin-bottom:12px}h2{font-size:19px;line-height:1.35;letter-spacing:-.35px;margin-bottom:14px}h3{font-size:16px;line-height:1.45;margin-bottom:7px}p{margin-bottom:14px}small,.small{font-size:12px}strong{font-weight:600}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #dcab58;outline-offset:3px}a:hover.text-link{text-decoration:underline}.muted{color:var(--muted)}.preserve{white-space:pre-wrap;overflow-wrap:anywhere}.sr-only,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.skip:focus{position:fixed;z-index:100;left:15px;top:15px;background:#fff;padding:15px}.sidebar{position:fixed;inset:0 auto 0 0;width:248px;background:#fff;border-right:1px solid var(--line);padding:34px 22px 20px;display:flex;flex-direction:column;z-index:20}.brand{display:flex;align-items:center;font-size:26px;line-height:1;font-weight:800;letter-spacing:1px}.brand-mark{font-size:26px;background:var(--accent);color:#fff;border-radius:9px;width:34px;height:36px;text-align:center;line-height:36px;margin-right:9px;font-style:italic}.brand-dot{color:var(--accent);margin-left:1px}.brand-caption{color:var(--muted);font-size:11px;margin:9px 0 35px 44px}.organization{display:flex;gap:10px;padding-bottom:24px;border-bottom:1px solid var(--line);margin-bottom:22px;align-items:center;min-width:0}.organization small{display:block;color:var(--muted);font-size:10px}.organization strong{font-size:13px;display:block;overflow-wrap:anywhere}.org-avatar{width:34px;height:34px;border-radius:10px;background:#edf2fc;display:grid;place-items:center;font-weight:700;flex-shrink:0}.sidebar nav{display:flex;flex-direction:column;gap:7px}.sidebar nav a{display:flex;align-items:center;gap:12px;padding:13px 14px;border-radius:9px;font-size:13px;color:#5d6f8b;min-height:46px}.sidebar nav a[aria-current],.sidebar nav a:hover{background:var(--soft);color:var(--accent);font-weight:600}.nav-count{margin-left:auto;background:var(--accent);color:#fff;border-radius:6px;padding:0 6px;font-size:11px}.sidebar-bottom{margin-top:auto;padding-top:30px}.manager-note{border:1px solid var(--line);border-radius:12px;padding:14px;font-size:11px}.online-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#527dd1;margin-right:5px}.manager-note p{color:var(--muted);margin:5px 0 10px}.manager-note a{font-weight:600;font-size:10px}.manager-note svg{width:13px}.profile{display:flex;align-items:center;gap:10px;margin-top:22px}.profile strong{font-size:12px}.profile small{display:block;color:var(--muted);font-size:10px}.avatar{display:grid;place-items:center;border-radius:50%;background:#dce7fb;color:var(--accent);font-size:15px;width:38px;height:38px;flex-shrink:0;font-weight:600}.avatar.small{width:32px;height:32px;font-size:12px}.workspace{margin-left:248px;min-height:100vh}.topbar{height:76px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 42px;background:#fff}.breadcrumb{color:var(--muted);font-size:12px}.breadcrumb span{margin:0 13px;color:#a3afc2}.topbar-actions{display:flex;gap:24px;align-items:center}.icon-button{position:relative;display:grid;place-items:center;width:44px;height:44px}.icon-button i{position:absolute;right:9px;top:8px;width:6px;height:6px;border-radius:50%;background:var(--gold)}.test-strip{background:#fbf5e5;color:#8b6a2e;font-size:10px;padding:5px 42px;border-bottom:1px solid #efe5cf}main:not(.auth-page){max-width:1480px;margin:auto;padding:40px 42px 70px}.page-heading{display:flex;gap:24px;justify-content:space-between;align-items:center;margin-bottom:32px}.eyebrow,.mini-label{font-size:10px;font-weight:700;letter-spacing:1.4px;color:var(--muted)}.eyebrow{margin-bottom:12px}.subtitle{color:var(--muted);font-size:14px;margin-bottom:0}.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:45px;border-radius:9px;font-weight:600;font-size:12px;padding:12px 18px;border:1px solid transparent;line-height:1.5;text-align:center;transition:background .15s}.button.primary{background:var(--accent);color:#fff}.button.primary:hover{background:var(--accent-hover)}.button.outline{border-color:#cedcf1;background:transparent;color:var(--ink)}.button.outline:hover{background:var(--soft)}.button.full{width:100%}.button svg{width:17px;height:17px}.text-link,.text-button{display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:var(--accent);min-height:44px}.text-button{border:0;background:none;padding:0}.text-link svg{width:16px}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) 288px;gap:26px;align-items:start}.dashboard-main,.dashboard-side,.detail-main,.detail-side{min-width:0}.attention-panel{background:#fff;border:1px solid #e7decc;border-radius:var(--radius);padding:23px}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}.section-heading h2{margin:0}.section-heading>.muted{font-size:10px}.count-pill{display:inline-block;vertical-align:middle;background:#f6edd9;color:#92712a;border-radius:6px;font-size:11px;min-width:23px;text-align:center;line-height:23px;margin-left:5px}.attention-row{display:flex;align-items:center;gap:14px;padding:17px 0;border-top:1px solid #edf1f8}.attention-row h3{font-size:14px;margin:4px 0}.attention-row p{margin:0;color:var(--muted);font-size:11px}.attention-row .mini-label{color:#a3712c;font-size:8px;letter-spacing:1px}.action-icon{width:40px;height:40px;display:grid;place-items:center;border-radius:12px;background:#fcf0dc;color:#b08134;flex-shrink:0}.action-icon.green{background:var(--soft);color:var(--accent)}.row-arrow{margin-left:auto;color:#617caa;flex-shrink:0}.row-arrow svg{width:17px}.spaced{margin-top:30px;margin-bottom:15px}.task-list{display:grid;gap:12px}.task-row{display:block;border:1px solid var(--line);background:#fff;border-radius:13px;padding:19px 21px;transition:border-color .15s,box-shadow .15s}.task-row:hover{border-color:#a6bfe9;box-shadow:0 3px 15px #17315b06}.task-row-top{display:flex;align-items:center;gap:10px;margin-bottom:10px}.task-number{font-size:10px;color:#64748b}.status{display:inline-flex;align-items:center;font-size:10px;font-weight:600;padding:4px 8px;border-radius:5px;background:#edf1f8;color:#5f728e;white-space:nowrap}.status.working,.status.planned{background:#e8f0f7;color:#47728f}.status.review,.status.done{background:#e9efff;color:#365e9d}.status.approval,.status.clarifying{background:#fcf0da;color:#9c732b}.task-row h3{font-size:15px;margin-bottom:6px;overflow-wrap:anywhere}.task-next{font-size:12px;color:var(--muted);margin-bottom:19px;overflow-wrap:anywhere}.task-row-bottom{display:flex;align-items:center;gap:16px;font-size:10px;color:var(--muted)}.project-tag{display:flex;align-items:center;gap:6px}.project-tag i{width:5px;height:5px;background:#7b9bd1;border-radius:50%}.task-date svg{width:12px;height:12px;margin-right:4px}.package-card{background:#edf3ff;border:1px solid #d7e3f7;border-radius:var(--radius);padding:23px}.package-card>.muted{font-size:11px}.package-card h2{font-size:20px;margin-bottom:5px}.remaining{margin:29px 0 20px}.remaining strong{display:block;font-size:36px;letter-spacing:-1.5px;line-height:1.2}.remaining span{font-size:11px;color:var(--muted)}.budget-bar{display:flex;width:100%;height:7px;border-radius:10px;overflow:hidden;background:#dce6f7}.budget-bar span{height:100%}.budget-bar .used{background:var(--accent)}.budget-bar .reserved{background:#94b2e8}.budget-legend{font-size:11px;margin:18px 0 22px}.budget-legend p{display:flex;align-items:center;margin:10px 0;gap:7px;color:var(--muted)}.budget-legend strong{margin-left:auto;color:var(--ink)}.budget-legend i{width:6px;height:6px;border-radius:50%}.used-dot{background:var(--accent)}.reserved-dot{background:#94b2e8}.help-card{padding:24px;border:1px solid var(--line);border-radius:var(--radius);background:#f0f4fc;margin-top:18px}.help-card h2{font-size:19px;margin-top:13px}.help-card p{font-size:12px;color:var(--muted)}.quiet-note{display:flex;gap:11px;margin:22px 6px;font-size:10px;color:var(--muted)}.quiet-note svg{width:16px}.panel{padding:26px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);margin-bottom:20px;min-width:0}.empty-state{text-align:center;padding:50px 25px;border:1px dashed #d5e0f1;border-radius:var(--radius);background:#fff}.empty-state p{color:var(--muted);font-size:13px}.empty-state h3{margin-top:15px}.large-icon{display:inline-grid;place-items:center;width:56px;height:56px;background:var(--soft);border-radius:18px;color:var(--accent);margin-bottom:15px}.empty-inline{display:flex;gap:15px;align-items:center;padding:20px 0}.empty-inline h3{font-size:13px}.empty-inline p{font-size:12px;color:var(--muted);margin:0}.list-toolbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:24px}.tabs{display:flex;gap:3px;padding:4px;background:#eaf0fb;border-radius:10px;max-width:100%;overflow:auto;white-space:nowrap}.tabs a{font-size:12px;padding:10px 15px;border-radius:7px;min-height:44px}.tabs a[aria-current]{background:#fff;box-shadow:0 1px 5px #21406c12;color:var(--accent);font-weight:600}.search-form{display:flex;min-width:180px;align-items:center;position:relative}.search-form input{padding-right:42px;font-size:12px;background:#fff}.search-form button{position:absolute;right:0;border:0;background:none;width:44px;height:44px;color:var(--muted)}.task-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.pagination{display:flex;justify-content:center;gap:25px;padding:25px}.pagination a{color:var(--accent);min-height:44px}.back-link{display:inline-flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);min-height:44px;margin-bottom:12px}.back-link svg{width:16px}.form-layout{display:grid;grid-template-columns:minmax(0,700px) minmax(220px,1fr);gap:40px;align-items:start}.form-help{padding:12px 0;max-width:310px}.form-help h2{margin-top:18px}.steps{list-style:none;padding:0;margin:25px 0}.steps li{display:flex;gap:14px;margin:22px 0;font-size:12px}.steps li>span{display:grid;place-items:center;width:25px;height:25px;border:1px solid #c6d7ef;border-radius:50%;flex-shrink:0;color:var(--accent);font-size:11px}.steps p{font-size:12px;margin:6px 0;color:var(--muted)}.field{margin-bottom:22px}.field label{display:block;font-size:13px;font-weight:600;margin-bottom:8px}.optional{font-weight:400;color:var(--muted);margin-left:5px}input:not([type=checkbox]):not([type=radio]),textarea,select{display:block;min-height:46px;width:100%;border:1px solid #d3dff0;border-radius:8px;background:#fafbff;color:var(--ink);padding:11px 13px;font-size:14px;max-width:100%}input[type=checkbox]{accent-color:var(--accent);width:19px;height:19px;vertical-align:middle;flex-shrink:0}textarea{resize:vertical;min-height:112px}input::placeholder,textarea::placeholder{color:#6b7c97}.helptext,.field small{display:block;font-size:11px;color:var(--muted);margin-top:6px}.errorlist{list-style:none;padding:0;color:#b04736;font-size:12px}.errorlist li{margin:5px 0}.field:has(.errorlist) input,.field:has(.errorlist) textarea{border-color:#bc7767}.upload-zone{border:1px dashed #c5d7f0;border-radius:10px;padding:21px;background:#f7faff;text-align:center}.upload-zone>svg{color:#6988b8}.upload-zone p{font-size:12px;margin:8px 0}.upload-zone input[type=file]{font-size:11px;background:#fff}.upload-zone small{font-size:10px}.form-footer{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px}.draft-status{font-size:10px;color:var(--muted)}.detail-heading h1{max-width:800px;font-size:29px}.detail-heading .status{margin-left:10px}.detail-heading .eyebrow{display:flex;align-items:center}.detail-grid{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:25px;align-items:start}.decision-panel{border-color:#e5d7b9;background:#fffefb}.result-panel{border-color:#b7cef2}.estimate-metrics,.metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:25px 0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.estimate-metrics small,.metrics small{display:block;color:var(--muted);font-size:10px}.estimate-metrics strong,.metrics strong{font-size:22px;display:block}.metrics{grid-template-columns:repeat(4,minmax(0,1fr))}.metrics strong{font-size:30px}.check-label{display:flex;align-items:start;gap:9px;font-size:12px;margin:18px 0;cursor:pointer;min-height:44px}.check-label input{margin-top:1px}.decision-actions{display:flex;flex-wrap:wrap;gap:10px}.facts dl{margin:0}.facts dl>div{margin:18px 0}.facts dt{font-size:10px;color:var(--muted);margin-bottom:4px}.facts dd{margin:0;font-size:12px}.timeline{padding:0 0 0 14px;list-style:none;border-left:1px solid var(--line)}.timeline li{position:relative;margin:18px 0}.timeline li:before{content:'';position:absolute;width:6px;height:6px;background:#b4c8e8;border-radius:50%;left:-18px;top:6px}.timeline p{font-size:11px;margin:0}.timeline time{font-size:9px;color:var(--muted)}.discussion{display:flex;flex-direction:column;gap:18px;margin:20px 0 30px}.message{max-width:92%;border-radius:12px;background:#f1f5fd;padding:15px;align-self:flex-start;overflow-wrap:anywhere}.message.mine{background:#e7efff;align-self:flex-end}.message.internal{background:#fff1dc;border:1px dashed #d5b781}.message header{display:flex;gap:14px;font-size:10px;margin-bottom:9px;justify-content:space-between}.message header time{color:var(--muted);font-size:9px}.message p{font-size:13px;margin:0;white-space:pre-wrap}.message-form{border-top:1px solid var(--line);padding-top:20px}.message-form textarea{min-height:100px}.message-tools{display:flex;align-items:center;gap:12px;justify-content:space-between;margin:12px 0}.file-row{display:flex;gap:12px;align-items:center;padding:15px 0;border-top:1px solid var(--line);min-width:0}.file-row>div{min-width:0;overflow-wrap:anywhere}.file-row strong{font-size:12px;display:block}.file-row small{display:block;color:var(--muted);font-size:10px}.file-row .text-link{margin-left:auto}.file-icon{color:#5b7cab}details{border-top:1px solid var(--line);padding:15px 0}summary{cursor:pointer;font-size:13px;font-weight:600;min-height:34px}details form{padding-top:15px}.flash{display:flex;align-items:start;gap:12px;border:1px solid #bdd0ef;background:#edf3ff;border-radius:12px;padding:15px 20px;font-size:13px;margin-bottom:20px}.flash.error,.notice.error{background:#fff0eb;border-color:#e0bcaf;color:#963d2c}.notice{background:#faf3e4;border:1px solid #e6dac1;color:#866530;border-radius:10px;padding:15px;font-size:12px;margin:15px 0}.notification{display:flex;gap:15px;padding:22px 0;border-bottom:1px solid var(--line)}.notification>div{flex:1;min-width:0}.notification strong{font-size:14px}.notification p{font-size:12px;color:var(--muted);margin:5px 0;overflow-wrap:anywhere}.notification small{font-size:10px;color:var(--muted)}.unread-dot{width:7px;height:7px;background:var(--accent);border-radius:50%;flex-shrink:0;margin-top:8px}.notification:not(.unread){opacity:.75}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:25px;align-items:start}.settings-grid aside>.panel p{font-size:13px;overflow-wrap:anywhere}.settings-grid .field:has(input[type=checkbox]){display:flex;align-items:center;gap:12px}.settings-grid .field:has(input[type=checkbox]) label{margin:0;order:2}.member-row{display:flex;align-items:center;gap:12px;margin:20px 0;font-size:12px}.member-row small{display:block;color:var(--muted);font-size:10px}.ledger-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:20px 0;border-top:1px solid var(--line);font-size:12px}.ledger-row small{display:block;color:var(--muted);font-size:10px}.ledger-row small a{color:var(--accent)}.ledger-values{display:flex;flex-direction:column;text-align:right;font-size:11px}.auth-page{min-height:100dvh;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:35px 20px;background:radial-gradient(ellipse at 15% 15%,#dce8ff,transparent 60%),#f5f8ff}.auth-brand{font-size:30px;font-weight:800;letter-spacing:2px;margin-bottom:32px}.auth-brand span{color:var(--accent)}.auth-card{max-width:440px;width:100%;background:#fff;padding:36px;border:1px solid var(--line);border-radius:22px;box-shadow:0 20px 70px #213e6b07}.auth-card h1{font-size:29px}.auth-card .subtitle{margin-bottom:28px;font-size:13px}.auth-card>.small{margin-top:18px}.auth-card>.text-link{margin-top:8px}.auth-caption{font-size:11px;color:var(--muted);margin-top:25px;text-align:center}.network-status{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);max-width:600px;width:calc(100% - 30px);padding:15px;background:#5f452b;color:#fff;border-radius:12px;font-size:12px;z-index:100}.mobile-header,.bottom-nav,.mobile-task-action{display:none}.org-switch{margin-bottom:16px}.org-switch select{font-size:11px}
@media(min-width:1500px){main:not(.auth-page){padding-top:50px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 320px;gap:32px}.task-row{padding:23px}.attention-panel{padding:28px}}
@media(max-width:1190px){.sidebar{width:210px;padding-left:16px;padding-right:16px}.workspace{margin-left:210px}.topbar{padding:0 28px}main:not(.auth-page){padding:32px 28px 70px}.test-strip{padding-left:28px}.dashboard-grid{grid-template-columns:minmax(0,1fr) 250px;gap:20px}.detail-grid{grid-template-columns:minmax(0,1fr) 230px;gap:18px}.task-grid{grid-template-columns:1fr}.settings-grid{grid-template-columns:minmax(0,1fr) 240px;gap:18px}.panel{padding:22px}.section-heading>.muted{display:none}.list-toolbar{align-items:stretch;flex-direction:column}.search-form{max-width:360px}.page-heading h1{font-size:29px}}
@media(max-width:960px){.dashboard-grid,.detail-grid,.settings-grid{grid-template-columns:1fr}.dashboard-side{display:grid;grid-template-columns:1fr 1fr;gap:18px}.dashboard-side .help-card{margin:0}.quiet-note{grid-column:1/-1;margin-top:0}.detail-side{display:grid;grid-template-columns:1fr 1fr;gap:18px}.form-layout{grid-template-columns:1fr}.form-help{max-width:none}.steps{display:flex;gap:18px}.steps li{flex:1}.page-heading{align-items:flex-start}.page-heading>.button{flex-shrink:0}}
@media(max-width:700px){:root{font-size:15px}.sidebar,.topbar{display:none}.workspace{margin:0}.mobile-header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:18px 20px;background:#fff;border-bottom:1px solid var(--line)}.mobile-header .brand{font-size:23px;letter-spacing:1px}.mobile-org{display:flex;gap:9px;align-items:center;font-size:11px;color:var(--muted);min-height:30px;max-width:65%}.mobile-org svg{width:18px}.test-strip{font-size:9px;padding:6px 20px}.bottom-nav{position:fixed;display:flex;bottom:0;left:0;right:0;z-index:30;justify-content:space-around;background:#fffffff5;border-top:1px solid var(--line);padding:6px 8px calc(6px + env(safe-area-inset-bottom));backdrop-filter:blur(12px)}.bottom-nav a{display:flex;align-items:center;justify-content:center;gap:4px;flex-direction:column;min-width:64px;min-height:48px;color:#65758d;font-size:9px}.bottom-nav a[aria-current]{color:var(--accent);font-weight:600}.bottom-nav svg{width:22px;height:22px}main:not(.auth-page){padding:27px 18px 105px}.page-heading{margin-bottom:25px;flex-direction:column;gap:18px}.page-heading h1,h1{font-size:28px;letter-spacing:-.8px;margin-bottom:10px}.subtitle{font-size:12px}.eyebrow{font-size:9px;margin-bottom:10px}.page-heading>.button{width:100%;min-height:47px;font-size:13px}.dashboard-grid{gap:23px}.attention-panel{padding:19px 17px}.section-heading h2{font-size:17px}.attention-row{gap:11px;padding:16px 0}.attention-row h3{font-size:13px}.attention-row p{font-size:10px}.action-icon{width:35px;height:35px;border-radius:10px}.attention-row .mini-label{font-size:8px}.task-row{padding:17px}.task-row h3{font-size:14px}.task-next{font-size:12px}.task-row-bottom{font-size:10px;gap:10px;flex-wrap:wrap}.task-date{margin-left:auto}.task-row-bottom .row-arrow{display:none}.dashboard-side,.detail-side{display:block}.dashboard-side .help-card{margin-top:18px}.package-card{padding:22px}.quiet-note{margin-top:18px}.section-heading.spaced{margin-top:25px}.list-toolbar{gap:15px}.tabs a{padding:10px 12px;font-size:11px;flex:1;text-align:center}.tabs{width:100%}.search-form{max-width:none}.panel{padding:20px 17px;border-radius:14px}.field{margin-bottom:23px}input:not([type=checkbox]):not([type=radio]),textarea,select{font-size:16px;min-height:48px}.field label{font-size:13px}textarea{min-height:140px}.upload-zone{padding:17px 10px}.form-footer{flex-direction:column;align-items:stretch;gap:14px}.form-footer .button{width:100%}.form-footer .draft-status{text-align:center}.form-layout{gap:16px}.steps{display:block}.steps li{margin:20px 0}.form-help{padding:0 10px}.detail-heading h1{font-size:25px;line-height:1.3}.detail-heading .subtitle{font-size:13px}.detail-grid{gap:0}.detail-side{margin-top:5px}.decision-panel .estimate-metrics,.estimate-metrics{gap:12px;grid-template-columns:1fr 1fr}.estimate-metrics strong{font-size:21px}.estimate-metrics>div:last-child{grid-column:1/-1}.decision-actions{flex-direction:column}.decision-actions .button{width:100%}.message{max-width:96%;padding:13px}.message p{font-size:14px}.message-tools{flex-wrap:wrap}.message-tools .button{flex:1}.metrics{grid-template-columns:1fr 1fr;gap:20px}.metrics strong{font-size:27px}.ledger-row{align-items:start;flex-direction:column;gap:9px}.ledger-values{text-align:left;flex-direction:row;flex-wrap:wrap;gap:12px}.notification{gap:11px}.notification strong{font-size:13px}.settings-grid{gap:0}.mobile-task-action{display:block;position:sticky;bottom:calc(75px + env(safe-area-inset-bottom));z-index:15;background:#f5f8ffe6;padding:12px 0 0;margin-bottom:6px;backdrop-filter:blur(5px)}.network-status{bottom:85px}.auth-card{padding:30px 23px;border-radius:18px}.auth-card h1{font-size:26px}.check-label{font-size:12px}.facts dl{display:grid;grid-template-columns:1fr 1fr;gap:5px 20px}.facts dd{font-size:12px}.test-strip{line-height:1.4}.button{min-height:46px}.message-form input[type=file]{font-size:12px}.page-heading form{width:100%}.page-heading form .button{width:100%}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}@media print{.sidebar,.topbar,.bottom-nav,.mobile-header,.test-strip,.mobile-task-action,.button{display:none!important}.workspace{margin:0}main:not(.auth-page){padding:0}.panel,.task-row{break-inside:avoid}}
.detail-heading{margin-bottom:26px}.detail-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:25px;align-items:start}.estimate-panel{border-color:#e5d7b9;background:#fffefb}.estimate-summary{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:22px 0;padding:20px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.estimate-summary small{display:block;font-size:10px;color:var(--muted)}.estimate-summary strong{display:block;font-size:23px}.estimate-due{font-size:12px;margin:20px 0 26px;display:flex;gap:6px;flex-wrap:wrap}.estimate-due svg{width:16px}.consent-note{display:flex;gap:10px;background:#edf3ff;border-radius:10px;padding:15px;margin:20px 0;color:#436393;font-size:11px}.consent-note p{margin:0}.consent-note svg{width:18px}.button-row{display:flex;gap:10px;flex-wrap:wrap}.change-details{margin-top:20px}.change-details textarea{margin:10px 0}.decision-stamp{color:var(--accent);font-size:12px;margin-top:15px}.message{display:flex;gap:10px}.message-content{min-width:0}.message-meta{display:flex;align-items:center;gap:10px;font-size:10px;margin-bottom:7px;flex-wrap:wrap}.message-meta time{color:var(--muted);font-size:9px}.empty-conversation{font-size:13px;color:var(--muted)}.file-button{display:flex;gap:7px;align-items:center;cursor:pointer;min-height:44px;color:var(--accent);font-size:12px;border:1px solid var(--line);padding:9px 12px;border-radius:9px}.file-button input{position:absolute;width:1px!important;height:1px!important;min-height:0!important;opacity:0;overflow:hidden;pointer-events:none}.file-button:focus-within{outline:3px solid #dcab58}.live-update{position:sticky;top:8px;z-index:25;background:#e8f1ff;border:1px solid #b4ccee;border-radius:9px;padding:12px 16px;font-size:12px;margin-bottom:18px;box-shadow:0 5px 15px #14346c12}.live-update a{font-weight:700;color:var(--accent);margin-left:12px;display:inline-block;min-height:32px}.live-update[hidden]{display:none}.detail-layout .panel p{overflow-wrap:anywhere}
@media(max-width:1190px){.detail-layout{grid-template-columns:minmax(0,1fr) 230px;gap:18px}}@media(max-width:960px){.detail-layout{grid-template-columns:1fr}.detail-layout .detail-side{display:block}}@media(max-width:700px){.detail-layout{gap:0}.estimate-summary{grid-template-columns:1fr 1fr;gap:18px}.estimate-summary>div:last-child{grid-column:1/-1}.estimate-summary strong{font-size:25px}.button-row{flex-direction:column}.button-row .button{width:100%}.detail-heading{margin-bottom:23px}.message{gap:7px}.message>.avatar{width:25px;height:25px;font-size:10px}.message-content p{font-size:13px}.mobile-task-action{bottom:calc(72px + env(safe-area-inset-bottom))}.estimate-panel h3{font-size:14px}.live-update{top:8px}}
/* Phone communication: keep controls reachable and long filenames contained. */
[hidden]{display:none!important}.task-sections{display:flex;gap:8px;overflow-x:auto;padding:4px 0 14px;margin-bottom:14px;scrollbar-width:thin}.task-sections a{display:flex;align-items:center;gap:7px;white-space:nowrap;min-height:44px;padding:10px 14px;border:1px solid var(--line);background:#fff;border-radius:9px;font-size:13px}.task-sections a:first-child{color:var(--accent);border-color:#aac4ef}.task-sections svg{width:17px}section[id]{scroll-margin-top:20px}.selected-file{display:flex;align-items:center;gap:10px;text-align:left;padding:9px 0;border-bottom:1px solid var(--line);font-size:12px}.selected-file span{min-width:0;flex:1;overflow-wrap:anywhere}.selected-file img{width:44px;height:44px;object-fit:cover;border-radius:7px}.selected-file.error{color:#963d2c}.remove-file{min-width:44px;min-height:44px;border:1px solid var(--line);background:#fff;border-radius:9px;color:var(--ink);font-size:22px}.submit-feedback{padding:12px 14px;border-radius:9px;background:var(--soft);color:var(--accent);font-size:13px;margin:12px 0;overflow-wrap:anywhere}.submit-feedback.error{background:#fff0eb;color:#963d2c}.inbox-tabs{margin-bottom:20px;width:max-content}.install-steps{padding-left:22px;font-size:13px}.install-steps li{margin:10px 0}.conversation-status{margin:0}.message .file-row{margin-top:12px;flex-wrap:wrap;padding-bottom:0}.message .file-icon{display:none}.message .file-row .text-link{margin:0}.message-content{flex:1}.detail-heading h1,.mobile-org{overflow-wrap:anywhere}.notification small{display:block}.message-form textarea{max-height:320px;overflow-y:auto}
@media(max-width:700px){.task-sections{margin-left:-2px;margin-right:-2px}.task-sections a{font-size:12px}.keyboard-open .bottom-nav,.keyboard-open .mobile-task-action{display:none}.file-row{flex-wrap:wrap}.file-row>div{flex:1;min-width:100px}.inbox-tabs{width:100%}.notification strong{overflow-wrap:anywhere}.message-tools{gap:8px}.message-tools .check-label{order:3;width:100%;margin:4px 0}.message-tools .button{min-width:130px}.mobile-org{min-height:44px}.submit-feedback{font-size:13px}.draft-status{font-size:11px;display:block;overflow-wrap:anywhere}.detail-heading .task-row-top{flex-wrap:wrap}.detail-heading .status{margin-left:0}.task-number{overflow-wrap:anywhere}.pagination{gap:15px;font-size:13px}.message .file-row>div{min-width:0;flex-basis:100%}}

/* Device controls stay usable on narrow screens. */
.push-actions{display:flex;flex-wrap:wrap;gap:10px}.push-device{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--line,#e1e7f2)}.push-device>div{min-width:0;overflow-wrap:anywhere}.push-device strong,.push-device span{display:block}.push-device button{flex-shrink:0}.push-help{margin:18px 0}.push-help summary{cursor:pointer;min-height:44px;padding:10px 0}.push-panel h3{margin-top:24px}.push-panel [hidden]{display:none!important}@media(max-width:400px){.push-actions .button{width:100%}.push-device{align-items:flex-start;flex-direction:column}.push-device .button{min-height:44px}}

/* Financial decisions: readable explanations and totals on narrow screens. */
.cost-explanation{font-size:14px;line-height:1.6;margin:16px 0;overflow-wrap:anywhere}
.cost-breakdown{margin:16px 0;padding:12px 16px;background:#f2f6ff;border-radius:12px}
.cost-breakdown>div{display:flex;justify-content:space-between;gap:16px;padding:7px 0}
.cost-breakdown dt{font-size:13px;line-height:1.5;color:#526480}
.cost-breakdown dd{margin:0;font-size:15px;font-weight:650;text-align:right;flex-shrink:0}
.decision-form .consent-note{font-size:13px;line-height:1.6}
.decision-form .change-details summary{min-height:44px;padding:12px 0;line-height:1.5}
.decision-form .change-details p{font-size:14px;line-height:1.6}
.estimate-summary small{line-height:1.45}
.estimate-due{flex-wrap:wrap}
@media(max-width:600px){.decision-form>button,.decision-form .change-details>button{width:100%}.cost-breakdown{padding:10px 12px}.cost-breakdown>div{gap:10px}.cost-breakdown dd{max-width:45%;white-space:normal}.estimate-summary strong{overflow-wrap:anywhere}.decision-stamp{flex-wrap:wrap}}
