:root{
  --ink:rgb(23 42 58);
  --ink-2:rgb(79 98 115);
  --muted:rgb(95 107 119);
  --line:rgb(230 235 239);
  --line-strong:rgb(127 140 153);
  --bg:rgb(245 247 249);
  --surface-2:rgb(241 244 247);
  --white:rgb(255 255 255);
  --accent:rgb(37 75 104);
  --accent-soft:rgb(238 243 250);
  --warm:rgb(134 96 45);
  --warm-soft:rgb(250 242 231);
  --danger:rgb(179 38 30);
  --danger-soft:rgb(253 232 230);
  --success:rgb(49 87 108);
  --chart:rgb(53 104 212);
  --chart-mid:rgb(142 171 232);
  --chart-legacy:rgb(176 186 196);
  --success-soft:rgb(234 241 245);

  --brand-900:var(--ink);--brand-800:var(--accent);--brand-50:var(--accent-soft);
  --gray-0:var(--white);--gray-25:var(--bg);--gray-50:var(--surface-2);--gray-100:var(--line);--gray-200:var(--line-strong);--gray-400:var(--muted);--gray-600:var(--ink-2);--gray-800:var(--ink);
  --info:var(--accent);--info-soft:var(--accent-soft);
  --radius-sm:6px;--radius-md:10px;--radius-lg:16px;--radius:var(--radius-lg);
  --soft-shadow-color:rgb(18 40 60 / .06);--overlay:rgb(18 40 60 / .42);
  --shadow-1:0 2px 8px var(--soft-shadow-color);--shadow-2:0 12px 32px var(--soft-shadow-color);--shadow:var(--shadow-1);
  --space-1:4px;--space-2:8px;--space-3:12px;--space-4:16px;--space-6:24px;--space-8:32px;--space-12:48px;--space-16:64px;
  --text-12:12px;
  --text-13:13px;
  --text-14:14px;
  --text-16:16px;
  --text-20:20px;
  --text-24:24px;
  --text-32:32px;
}
.manual-doc h1{font-size:var(--text-24);margin:0 0 12px}.manual-doc h2{font-size:var(--text-16);margin:22px 0 8px}.manual-doc p{margin:0 0 12px}.manual-doc ul{margin:0 0 12px;padding-left:1.2em}.manual-doc li{margin:6px 0}.manual-choices{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 18px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:-apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",system-ui,sans-serif;color:var(--ink);background:var(--bg);font-size:var(--text-14);line-height:1.6;-webkit-font-smoothing:antialiased}button,input,textarea,select{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.48}button,a{touch-action:manipulation}a{color:var(--accent);text-decoration:none}h1,h2,h3,p{margin:0}h1{font-size:var(--text-32);font-weight:650;letter-spacing:-.7px;line-height:1.35}h2{font-size:var(--text-16);font-weight:650}h3{font-size:var(--text-14);font-weight:650}svg.icon{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button:focus-visible,a:focus-visible{outline:3px solid var(--line-strong);outline-offset:3px}.boot{padding:15vh 10vw}.boot b{font-size:var(--text-24);letter-spacing:2px}.boot p{margin-top:12px;color:var(--muted)}.layout{min-height:100vh}.sidebar{width:226px;position:fixed;top:0;left:0;bottom:0;padding:28px 18px;display:flex;flex-direction:column;background:var(--white);border-right:1px solid var(--line);z-index:20}.wordmark{display:flex;align-items:center;gap:10px;padding:0 12px}.brandmark{width:34px;height:40px;border:1.4px solid var(--ink);position:relative;flex-shrink:0}.brandmark:before{content:"";position:absolute;left:50%;top:0;bottom:0;border-left:1.2px solid var(--ink)}.brandmark:after{content:"";position:absolute;top:45%;left:0;right:0;border-top:1.2px solid var(--ink)}.brandname{font-size:var(--text-16);letter-spacing:.1px;font-weight:750}.brandname span{font-weight:400}.brand-sub{font-size:var(--text-12);color:var(--muted);letter-spacing:1.8px;margin-top:2px}.nav-caption{font-size:var(--text-12);color:var(--muted);letter-spacing:1.5px;margin:40px 14px 12px}.nav{display:grid;gap:6px}.nav button{display:flex;align-items:center;gap:12px;text-align:left;border:0;background:transparent;color:var(--muted);padding:13px 15px;border-radius:var(--radius-md);font-weight:550}.nav button.active{color:var(--accent);background:var(--accent-soft)}.nav button:hover{background:var(--bg)}.nav button.field-nav{color:var(--ink)}.count{margin-left:auto;padding:1px 7px;border-radius:var(--radius-sm);background:var(--line);color:var(--ink-2);font-size:var(--text-12)}.sidebar-bottom{margin-top:auto;padding:20px 12px 4px}.sidebar-bottom .edition{font-size:var(--text-12);letter-spacing:1.5px;color:var(--muted)}.sidebar-bottom p{font-size:var(--text-12);line-height:1.9;margin-top:11px;color:var(--muted)}.sidebar-bottom .tiny{margin-top:18px;font-size:var(--text-12);color:var(--muted)}.main{margin-left:226px}.topbar{height:78px;border-bottom:1px solid var(--line);padding:0 38px;background:var(--white);display:flex;align-items:center;gap:20px}.crumb{font-size:var(--text-13);color:var(--muted);white-space:nowrap;min-width:0;flex:0 1 auto;overflow:hidden;text-overflow:ellipsis}
/* RC82.1: the topbar buttons used to squeeze the path into one character per line (and pushed the page sideways
   between 701 and 960px). The page name never shrinks; less essential items give way as the window narrows. */
.topbar>.crumb{flex-shrink:0}
@media(min-width:701px) and (max-width:1100px){.crumb-root{display:none}.topbar{gap:12px}.topbar .account-nav .userinfo{display:none}}
@media(min-width:701px) and (max-width:960px){.topbar>.chip{display:none}}
/* RC82.1: cards in one row share label / number / note rows, so a two-line label moves the whole row's numbers
   together. Older browsers keep the top-aligned column above. */
@supports(grid-template-rows:subgrid){.wb-kpis>.wb-kpi,.overview-stats>button{display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;align-content:start}}
@supports(grid-template-rows:subgrid){.wb-kpis>.wb-kpi>*,.overview-stats>button>*{align-self:start}}
/* RC82.1: bottom-nav labels such as "我的 / 设置" stay on one line. */
.bottom-nav button{flex:1 1 0;min-width:0;max-width:72px;width:auto;white-space:nowrap}.bottom-nav .plus-btn{flex:0 0 44px}.crumb strong{color:var(--ink);font-weight:500}.spacer{flex:1}.search{position:relative;width:320px}.search .icon{position:absolute;left:12px;top:10px;width:17px;color:var(--muted)}.search input{width:100%;padding:8px 12px 8px 38px;border:1px solid var(--line-strong);border-radius:var(--radius-md);background:var(--bg);font-size:var(--text-12);outline:0}.avatar{width:34px;height:34px;display:flex;align-items:center;justify-content:center;background:var(--ink);color:var(--white);border-radius:50%;font-size:var(--text-12);font-weight:600;flex-shrink:0}.userbox{display:flex;gap:9px;align-items:center}.userbox small{display:block;color:var(--muted);font-size:var(--text-12)}.userbox b{font-size:var(--text-12);font-weight:600}.content{max-width:1490px;margin:auto;padding:27px 38px 56px}.notice{display:flex;gap:9px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface-2);font-size:var(--text-12);color:var(--muted);align-items:flex-start;margin-bottom:27px}.notice .icon{width:16px;height:16px;margin-top:2px}.notice.warn{background:var(--warm-soft);border-color:var(--warm-soft);color:var(--warm)}.notice.plain{background:var(--bg);color:var(--muted)}.notice.tight{margin-bottom:15px}.eyebrow{font-size:var(--text-12);letter-spacing:2.5px;color:var(--muted);font-weight:600;margin-bottom:10px}.heading{display:flex;align-items:center;gap:20px;margin-bottom:26px}.heading .sub{color:var(--muted);font-size:var(--text-12);margin-top:8px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:11px 17px;border:1px solid var(--line);background:var(--white);border-radius:var(--radius-md);color:var(--ink);font-size:var(--text-13);line-height:1.4;white-space:nowrap;transition:background .15s,transform .15s}.btn:hover{background:var(--bg)}.btn:active{transform:translateY(1px)}.btn.primary{background:var(--ink);color:var(--white);border-color:var(--ink)}.btn.primary:hover{background:var(--accent)}.btn.blue{background:var(--accent);border-color:var(--accent);color:var(--white)}.btn.soft{background:var(--accent-soft);border-color:transparent;color:var(--accent)}.btn.small{padding:7px 11px;font-size:var(--text-12);border-radius:var(--radius-md)}.btn.ghost{background:transparent;border-color:transparent;padding:4px;color:var(--muted)}.btn.full{width:100%}.btn.danger{color:var(--danger);background:var(--bg)}.btn .icon{width:17px;height:17px}.btnlink{background:none;border:0;padding:0;color:var(--accent);font-size:var(--text-12);display:inline-flex;align-items:center;gap:4px}.btnlink .icon{width:15px;height:15px}.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:27px}.kpi{border:1px solid var(--line);border-radius:var(--radius);padding:21px 23px;background:var(--white);box-shadow:var(--shadow);position:relative}.kpi .label{font-size:var(--text-12);color:var(--muted)}.kpi .number{font-size:var(--text-32);line-height:1.5;letter-spacing:-1.2px;font-weight:600;font-variant-numeric:tabular-nums;margin-top:5px}.kpi .note{color:var(--muted);font-size:var(--text-12);margin-top:5px}.kpi .iconbox{width:32px;height:32px;border:1px solid var(--line);border-radius:var(--radius-md);display:grid;place-items:center;position:absolute;top:18px;right:19px;color:var(--muted)}.kpi .iconbox svg{width:16px;height:16px}.grid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(310px,1fr);gap:23px}.panel{background:var(--white);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden}.panel-head{display:flex;align-items:center;padding:21px 23px 17px;gap:10px}.panel-head .minor{font-size:var(--text-12);color:var(--muted);margin-top:3px}.panel-body{padding:0 23px 23px}.panel-title{font-size:var(--text-14);font-weight:650}.section-gap{margin-top:23px}.project-row{display:flex;align-items:center;padding:16px 0;gap:15px;border-bottom:1px solid var(--surface-2);cursor:pointer;width:100%;background:transparent;text-align:left;border-top:0;border-left:0;border-right:0;color:inherit}.project-row:last-child{border-bottom:0}.project-row:hover{background:var(--white)}.window-thumb{width:48px;height:53px;background:var(--surface-2);border:1px solid var(--line);border-radius:var(--radius-md);display:grid;place-items:center;flex-shrink:0}.window-thumb .icon{width:25px;height:31px;stroke:var(--line-strong);stroke-width:1}.project-row .project-text{min-width:0;flex:1}.project-name{font-size:var(--text-14);font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.meta{font-size:var(--text-12);color:var(--muted);margin-top:4px}.chip{display:inline-flex;align-items:center;gap:5px;border-radius:var(--radius-sm);padding:3px 8px;line-height:1.6;font-size:var(--text-12);background:var(--surface-2);color:var(--muted);white-space:nowrap}.chip.blue{color:var(--ink-2);background:var(--accent-soft)}.chip.warm{color:var(--warm);background:var(--warm-soft)}.chip.dark{color:var(--white);background:var(--ink)}.chip.danger{color:var(--danger);background:var(--danger-soft)}.project-count{font-size:var(--text-12);color:var(--muted);text-align:right;margin-top:6px}.task-row{display:flex;gap:11px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--surface-2)}.task-row:last-child{border:0}.checkcircle{width:19px;height:19px;border:1.2px solid var(--line);border-radius:50%;background:white;display:grid;place-items:center;margin-top:3px;flex-shrink:0;color:var(--accent);padding:0}.checkcircle.done{background:var(--accent-soft);border-color:var(--line)}.checkcircle .icon{width:12px;height:12px}.tasktext{flex:1;min-width:0}.tasktext strong{font-weight:500;font-size:var(--text-12);display:block}.tasktext.done strong{text-decoration:line-through;color:var(--muted)}.tasktext .meta{font-size:var(--text-12)}.taskdate{font-size:var(--text-12);color:var(--muted);white-space:nowrap}.taskdate.late{color:var(--danger)}.accent-panel{padding:23px;background:var(--ink);border-radius:var(--radius);color:var(--white);position:relative;overflow:hidden;margin-top:21px}.accent-panel .eyebrow{color:var(--line-strong);font-size:var(--text-12)}.accent-panel h3{font-size:var(--text-16);font-weight:500;margin-bottom:7px;letter-spacing:.3px}.accent-panel p{font-size:var(--text-12);color:var(--line-strong);max-width:320px;line-height:1.9;margin-bottom:17px}.accent-panel .btn{background:var(--soft-shadow-color);color:var(--white);border-color:var(--soft-shadow-color)}.activity{padding:16px 0;border-top:1px solid var(--surface-2);display:flex;gap:12px;align-items:flex-start}.activity:first-child{border:0}.activity-dot{width:7px;height:7px;background:var(--line-strong);border-radius:50%;margin:8px 3px 0;flex-shrink:0}.activity-main{flex:1}.activity-main strong{font-size:var(--text-12);font-weight:500}.activity-main p{font-size:var(--text-12);color:var(--muted);margin-top:4px;line-height:1.8}.empty{padding:35px 15px;text-align:center;color:var(--muted);font-size:var(--text-12)}.empty .icon{width:30px;height:30px;margin-bottom:12px}.empty p{margin:8px 0 16px}.bottom-nav{display:none}.filters{display:flex;gap:9px;margin-bottom:21px;flex-wrap:wrap}.filter{border:1px solid transparent;background:transparent;padding:7px 15px;border-radius:var(--radius-md);color:var(--muted);font-size:var(--text-12)}.filter.active{background:var(--accent-soft);color:var(--ink-2);border-color:var(--line)}.project-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.project-card{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:23px;text-align:left;color:inherit;cursor:pointer;box-shadow:var(--shadow)}.project-card:hover{border-color:var(--line);transform:translateY(-2px)}.project-card-top{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:24px}.project-card h3{font-size:var(--text-16);font-weight:600}.project-card .brand{font-size:var(--text-12);color:var(--muted);margin:7px 0 18px}.project-card .card-bottom{border-top:1px solid var(--line);padding-top:15px;display:flex;justify-content:space-between;font-size:var(--text-12);color:var(--muted)}.back{margin-bottom:17px}.project-hero{border:1px solid var(--line);background:var(--white);border-radius:var(--radius);padding:26px 28px;margin-bottom:22px}.project-hero .line{display:flex;align-items:center;gap:12px}.project-hero h1{font-size:var(--text-24)}.project-hero .meta{margin-top:9px;font-size:var(--text-12)}.hero-facts{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin-top:24px;padding-top:19px;border-top:1px solid var(--line)}.hero-facts label{display:block;font-size:var(--text-12);color:var(--muted);margin-bottom:5px}.hero-facts b{font-size:var(--text-12);font-weight:550}.tabs{display:flex;gap:29px;border-bottom:1px solid var(--line);margin-bottom:22px;overflow:auto}.tabs button{background:none;border:0;padding:0 2px 12px;color:var(--muted);font-size:var(--text-13);white-space:nowrap}.tabs button.active{color:var(--accent);border-bottom:2px solid var(--accent)}.timeline{padding:4px 0}.record-card{padding:20px 22px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--white);margin-bottom:14px}.record-card .line{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.record-card h3{font-size:var(--text-14);line-height:1.8;font-weight:550;margin:10px 0}.record-card .meta{font-size:var(--text-12)}.record-card p{color:var(--muted);font-size:var(--text-12);white-space:pre-wrap}.record-card .btnlink{margin-top:13px}.photos{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.photo-tile{position:relative;width:84px;height:84px;background:var(--surface-2);border-radius:var(--radius-md);overflow:hidden;border:1px solid var(--line)}.photo-tile img{width:100%;height:100%;object-fit:cover}.photo-tile a{display:block;width:100%;height:100%}.photo-tile .remove{position:absolute;top:3px;right:3px;border:0;color:white;background:var(--overlay);border-radius:50%;width:21px;height:21px;padding:0;font-size:var(--text-14);line-height:21px}.photo-tile .photo-index{position:absolute;left:4px;bottom:3px;font-size:var(--text-12);border-radius:var(--radius-sm);color:var(--white);background:var(--overlay);padding:0 4px}.file-row{display:flex;align-items:center;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);font-size:var(--text-12)}.file-row:last-child{border:0}.file-row .icon{color:var(--muted)}.file-row small{display:block;color:var(--muted);font-size:var(--text-12)}.field-wrap{max-width:1040px;margin:auto}.steps{display:flex;gap:22px;margin:2px 0 24px;padding:0;list-style:none}.steps li{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:var(--text-12)}.steps span{display:grid;place-items:center;width:24px;height:24px;border:1px solid var(--line);border-radius:50%;font-size:var(--text-12)}.steps .active{color:var(--ink);font-weight:600}.steps .active span{background:var(--ink);color:var(--white);border-color:var(--ink)}.field-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:22px}.form-card{border:1px solid var(--line);border-radius:var(--radius-lg);padding:25px;background:var(--white);box-shadow:var(--shadow)}.form-group{margin-bottom:21px}.form-group:last-child{margin-bottom:0}.form-group label{display:block;font-size:var(--text-12);color:var(--muted);font-weight:550;margin-bottom:8px}.req{color:var(--warm);margin-left:3px}.input{width:100%;border:1px solid var(--line-strong);border-radius:var(--radius-md);background:var(--white);padding:11px 12px;font-size:var(--text-13);color:var(--ink);outline:0;transition:box-shadow .15s}.input:focus{border-color:var(--line-strong);box-shadow:0 0 0 3px var(--soft-shadow-color)}.input:disabled{color:var(--muted);background:var(--bg)}textarea.input{min-height:136px;resize:vertical;line-height:1.9}select.input{min-height:43px}.form-row{display:grid;grid-template-columns:1fr 1fr;gap:15px}.hint{font-size:var(--text-12);color:var(--muted);line-height:1.8;margin-top:6px}.upload-zone{border:1px dashed var(--line);border-radius:var(--radius-md);padding:24px 16px;text-align:center;background:var(--white)}.upload-zone .icon{color:var(--muted);width:27px;height:27px;margin-bottom:6px}.upload-zone p{font-size:var(--text-12);font-weight:500}.upload-zone .actions{display:flex;justify-content:center;gap:10px;margin:12px 0 3px}.upload-zone small{font-size:var(--text-12);color:var(--muted)}.voice-tools{display:flex;align-items:center;gap:8px;margin:10px 0 5px;flex-wrap:wrap}.voice-status{font-size:var(--text-12);color:var(--warm)}.audio-row{background:var(--bg);border-radius:var(--radius-md);padding:10px;margin-top:12px}.audio-row audio{width:100%;height:34px;display:block}.audio-row .btn{margin-top:9px}.side-note{border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--white);padding:21px;height:max-content}.side-note h3{font-size:var(--text-13);margin-bottom:15px}.side-note .step-note{display:flex;align-items:flex-start;gap:10px;margin:18px 0;color:var(--muted);font-size:var(--text-12)}.step-note b{color:var(--ink);display:block;font-weight:550;margin-bottom:4px;font-size:var(--text-12)}.side-note hr{border:0;border-top:1px solid var(--line);margin:19px 0}.checkline{display:flex;align-items:flex-start;gap:9px;font-size:var(--text-12);color:var(--muted);line-height:1.9;margin-top:12px}.checkline input{margin-top:4px;accent-color:var(--accent);width:15px;height:15px;flex-shrink:0}.ai-choice{border:1px solid var(--line);background:var(--bg);border-radius:var(--radius-md);padding:12px 14px}.ai-choice strong{font-size:var(--text-12);font-weight:550}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px;padding-top:20px;border-top:1px solid var(--line)}.review-label{font-size:var(--text-12);color:var(--ink-2);font-weight:600;margin-bottom:7px}.review-title{display:flex;gap:10px;align-items:center;margin-bottom:20px}.review-title h2{font-size:var(--text-16)}.sourcebox{background:var(--bg);padding:15px;border-radius:var(--radius-md);font-size:var(--text-12);line-height:1.9;color:var(--muted);white-space:pre-wrap;margin:12px 0 21px}.draft-section{margin:19px 0}.draft-section textarea{min-height:90px;font-size:var(--text-12)}.suggested-task{background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-md);padding:13px;margin-top:11px}.suggested-task .task-entry{display:flex;gap:9px;align-items:center;margin-bottom:10px}.suggested-task input[type=checkbox]{accent-color:var(--accent)}.suggested-task .input{font-size:var(--text-12);padding:8px 10px;min-height:35px}.suggested-task .hint{font-size:var(--text-12)}.ask-layout{max-width:860px;margin:auto}.ai-welcome{text-align:center;padding:20px 0 30px}.ai-symbol{height:53px;width:53px;border-radius:var(--radius-lg);background:var(--accent-soft);color:var(--muted);display:grid;place-items:center;margin:0 auto 15px}.ai-symbol .icon{width:25px;height:25px}.ai-welcome h1{font-size:var(--text-24)}.ai-welcome p{margin-top:10px;font-size:var(--text-12);color:var(--muted)}.quick-asks{display:flex;gap:9px;justify-content:center;margin-top:21px;flex-wrap:wrap}.quick-asks button{font-size:var(--text-12);padding:8px 13px;border:1px solid var(--line);border-radius:var(--radius-md);color:var(--muted);background:var(--white)}.ask-output{padding:23px;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--white);margin:20px 0;line-height:2;font-size:var(--text-13);white-space:pre-wrap}.sources{font-size:var(--text-12);color:var(--muted);margin-top:15px;display:flex;gap:8px;flex-wrap:wrap}.settings-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px}.setting-row{padding:13px 0;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:10px}.setting-row:last-child{border:0}.setting-row label{font-size:var(--text-12)}.setting-row small{font-size:var(--text-12);color:var(--muted)}.setting-value{font-size:var(--text-12);color:var(--muted);text-align:right;margin-left:auto}.user-item{display:flex;gap:12px;align-items:center;margin:15px 0}.user-item strong{font-size:var(--text-12);font-weight:550}.user-item small{font-size:var(--text-12);color:var(--muted);display:block}.modal-backdrop{position:fixed;inset:0;z-index:80;background:var(--overlay);backdrop-filter:blur(4px);display:flex;align-items:center;justify-content:center;padding:25px}.modal{width:min(620px,100%);max-height:88vh;overflow:auto;border-radius:var(--radius-lg);background:var(--white);box-shadow:0 20px 90px var(--soft-shadow-color);padding:28px}.modal.wide{width:min(780px,100%)}.modal-head{display:flex;align-items:center;gap:15px;margin-bottom:22px}.modal-head h2{font-size:var(--text-20)}.modal-close{border:0;background:var(--surface-2);color:var(--muted);border-radius:50%;width:30px;height:30px;padding:5px}.modal-close .icon{width:20px;height:20px}.modal .form-group{margin-bottom:18px}.modal ul{padding-left:20px;font-size:var(--text-12);color:var(--muted);line-height:2}.modal .section-label{color:var(--ink);font-size:var(--text-12);font-weight:600;margin:18px 0 8px}.login-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-brand{background:var(--ink);padding:10vh 10%;color:white;display:flex;flex-direction:column;justify-content:center;position:relative;overflow:hidden}.login-brand .wordmark{padding:0;color:white;margin-bottom:15vh}.login-brand .brandmark,.login-brand .brandmark:before,.login-brand .brandmark:after{border-color:white}.login-brand .brand-sub{color:var(--line-strong)}.login-brand h1{font-size:var(--text-32);font-weight:500;letter-spacing:1px;line-height:1.7}.login-brand p{font-size:var(--text-13);color:var(--line-strong);line-height:2;margin-top:25px}.login-form-wrap{display:flex;align-items:center;justify-content:center;padding:50px}.login-form{width:340px;max-width:100%}.login-form .eyebrow{margin-bottom:13px}.login-form h2{font-size:var(--text-24);font-weight:600;margin-bottom:10px}.login-form .sub{font-size:var(--text-12);color:var(--muted);margin-bottom:35px}.login-form .btn{margin-top:10px}.error-msg{font-size:var(--text-12);color:var(--warm);margin:12px 0;min-height:20px}#toast{position:fixed;left:50%;bottom:34px;transform:translateX(-50%) translateY(30px);padding:13px 20px;border-radius:var(--radius-md);background:var(--ink);color:var(--white);font-size:var(--text-12);box-shadow:0 8px 30px var(--soft-shadow-color);z-index:120;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;max-width:min(90vw,600px);text-align:center}#toast.show{opacity:1;transform:translateX(-50%) translateY(0)}.muted{color:var(--muted)}.mono{font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Consolas,monospace}.split{display:flex;gap:10px;align-items:center}.align-top{align-items:flex-start}.pre{white-space:pre-wrap}.footer-note{margin-top:27px;font-size:var(--text-12);color:var(--muted);letter-spacing:.2px}.loading{padding:55px;text-align:center;color:var(--muted)}.spinner{display:inline-block;border:2px solid var(--line);border-top-color:var(--line-strong);border-radius:50%;width:16px;height:16px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.mobile-only{display:none}.retry-panel{text-align:center;padding:50px}.retry-panel p{margin:15px 0;color:var(--muted)}.status-dot{width:5px;height:5px;background:currentColor;border-radius:50%;display:inline-block}.member-choice{display:flex;gap:10px;align-items:center;padding:11px 0;border-bottom:1px solid var(--line);font-size:var(--text-12)}.member-choice input{accent-color:var(--accent)}
@media(min-width:1500px){.content{padding-top:36px}.heading{margin-bottom:32px}.kpis{margin-bottom:29px}}
@media(max-width:1200px){.sidebar{width:198px;padding:28px 13px}.main{margin-left:198px}.wordmark{padding:0 8px}.brandname{font-size:var(--text-16)}.content{padding:25px}.topbar{padding:0 25px}.search{width:260px}.grid{grid-template-columns:minmax(0,1.35fr) minmax(290px,1fr);gap:17px}.kpi{padding:18px}.kpi .iconbox{right:14px}.project-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.field-layout{grid-template-columns:minmax(0,1fr) 235px;gap:17px}.field-layout .side-note{padding:18px}}
@media(max-width:950px){.sidebar{width:182px}.main{margin-left:182px}.sidebar .brandmark{width:27px;height:33px}.sidebar .wordmark{gap:7px}.brandname{font-size:var(--text-14)}.brand-sub{font-size:var(--text-12);letter-spacing:1px}.content{padding:23px}.topbar{padding:0 23px}.search{display:none}.kpis{grid-template-columns:repeat(2,1fr)}.grid{grid-template-columns:1fr}.field-layout{grid-template-columns:1fr}.side-note{display:none}.settings-grid{grid-template-columns:1fr}h1{font-size:var(--text-24)}.heading{gap:14px}}
@media(max-width:700px){body{font-size:var(--text-14)}.sidebar{display:none}.main{margin-left:0}.topbar{height:65px;padding:0 19px;background:var(--white);position:sticky;top:0;z-index:30}.crumb{display:none}.mobile-brand{font-size:var(--text-16);font-weight:750;letter-spacing:.1px}.mobile-brand span{font-weight:400}.mobile-only{display:block}.userbox .userinfo{display:none}.avatar{height:29px;width:29px;font-size:var(--text-12)}.content{padding:18px 17px 112px}.notice{font-size:var(--text-12);padding:9px 11px;margin-bottom:22px;line-height:1.8;border-radius:var(--radius-md)}.notice .icon{margin-top:2px}.topbar .chip{font-size:var(--text-12)}.heading{display:block;margin-bottom:21px}.heading .heading-action{margin-top:16px;width:100%}.heading .heading-action .btn{width:100%;min-height:44px}.heading .spacer{display:none}.heading h1{font-size:var(--text-24);letter-spacing:-.5px}.eyebrow{font-size:var(--text-12);letter-spacing:2.5px;margin-bottom:7px}.heading .sub{font-size:var(--text-12);line-height:1.9;margin-top:7px}.kpis{gap:11px;margin-bottom:21px}.kpi{padding:16px 17px;border-radius:var(--radius-lg)}.kpi .label{font-size:var(--text-12)}.kpi .number{font-size:var(--text-32);margin-top:4px}.kpi .note{font-size:var(--text-12)}.kpi .iconbox{width:26px;height:26px;right:13px;top:14px;border:0;background:var(--bg)}.kpi .iconbox svg{height:15px;width:15px}.grid{gap:18px}.panel{border-radius:var(--radius-lg)}.panel-head{padding:18px 18px 12px}.panel-body{padding:0 18px 16px}.panel-title{font-size:var(--text-13)}.panel-head .minor{font-size:var(--text-12)}.project-row{padding:14px 0;gap:12px}.window-thumb{height:46px;width:43px}.project-name{font-size:var(--text-13)}.meta{font-size:var(--text-12)}.project-count{font-size:var(--text-12)}.chip{font-size:var(--text-12);padding:3px 7px}.tasktext strong{font-size:var(--text-12)}.taskdate{font-size:var(--text-12)}.task-row{padding:13px 0}.accent-panel{padding:22px;margin-top:18px}.accent-panel h3{font-size:var(--text-20)}.accent-panel p{font-size:var(--text-12);max-width:260px}.section-gap{margin-top:18px}.bottom-nav{display:flex;position:fixed;bottom:0;left:0;right:0;z-index:50;border-top:1px solid var(--line);background:var(--white);backdrop-filter:blur(20px);padding:9px 10px calc(9px + env(safe-area-inset-bottom));justify-content:space-around;align-items:center}.bottom-nav button{border:0;background:none;color:var(--muted);width:55px;min-height:45px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:var(--text-12);padding:0}.bottom-nav .icon{width:20px;height:20px}.bottom-nav .active{color:var(--accent)}.bottom-nav .plus-btn{background:var(--ink);color:var(--white);width:44px;height:44px;min-height:44px;border-radius:var(--radius-lg);transform:translateY(-4px);box-shadow:0 4px 14px var(--soft-shadow-color)}.bottom-nav .plus-btn .icon{width:22px;height:22px}.bottom-nav .plus-btn span{display:none}.project-grid{grid-template-columns:1fr;gap:12px}.project-card{padding:18px}.project-card-top{margin-bottom:13px}.project-card-top .window-thumb{height:41px;width:41px}.project-card h3{font-size:var(--text-16)}.project-card .brand{font-size:var(--text-12);margin:5px 0 14px}.project-card .card-bottom{padding-top:13px;font-size:var(--text-12)}.filters{gap:5px;flex-wrap:nowrap;overflow:auto;margin-bottom:17px}.filter{white-space:nowrap;padding:7px 12px;font-size:var(--text-12)}.project-hero{padding:21px 18px;margin-bottom:19px}.project-hero h1{font-size:var(--text-24)}.project-hero .line{align-items:flex-start;flex-wrap:wrap}.project-hero .meta{font-size:var(--text-12);line-height:1.9}.hero-facts{grid-template-columns:1fr 1fr;gap:16px;margin-top:19px;padding-top:16px}.hero-facts label{font-size:var(--text-12)}.hero-facts b{font-size:var(--text-12)}.tabs{gap:25px;margin-bottom:18px}.tabs button{font-size:var(--text-12)}.record-card{padding:17px;border-radius:var(--radius-md)}.record-card h3{font-size:var(--text-13)}.record-card p{font-size:var(--text-12)}.photo-tile{width:76px;height:76px}.field-wrap .heading h1{font-size:var(--text-24)}.steps{gap:12px;margin-bottom:20px;justify-content:space-between}.steps li{font-size:var(--text-12);gap:5px}.steps span{width:22px;height:22px;font-size:var(--text-12)}.form-card{padding:20px 17px;border-radius:var(--radius-lg)}.input{font-size:var(--text-16);padding:10px 11px}.input::placeholder{font-size:var(--text-12)}.form-group{margin-bottom:19px}.form-group label{font-size:var(--text-12)}select.input{font-size:var(--text-13);min-height:44px}textarea.input{font-size:var(--text-16);line-height:1.8;min-height:150px}.form-row{gap:11px}.hint{font-size:var(--text-12)}.upload-zone{padding:18px 12px}.upload-zone p{font-size:var(--text-12)}.upload-zone small{font-size:var(--text-12)}.btn{font-size:var(--text-12);padding:11px 15px;min-height:43px}.btn.small{padding:7px 10px;font-size:var(--text-12);min-height:35px}.btn.ghost{min-height:28px}.form-actions .btn{flex:1}.form-actions{gap:10px;margin-top:22px;padding-top:19px}.review-title h2{font-size:var(--text-16)}.draft-section textarea{font-size:var(--text-14);min-height:105px}.sourcebox{font-size:var(--text-12)}.suggested-task .input{font-size:var(--text-12);min-height:38px}.checkline{font-size:var(--text-12)}.ask-layout .ai-welcome{padding:13px 0 25px}.ai-welcome h1{font-size:var(--text-24)}.ai-welcome p{font-size:var(--text-12)}.quick-asks{gap:8px;margin-top:18px}.quick-asks button{font-size:var(--text-12);padding:8px 10px}.ask-output{padding:19px;font-size:var(--text-12)}.modal-backdrop{padding:17px;align-items:center}.modal{padding:23px 19px;max-height:87vh;border-radius:var(--radius-lg)}.modal-head h2{font-size:var(--text-20)}.modal ul{font-size:var(--text-12)}.login-wrap{display:block}.login-brand{display:none}.login-form-wrap{min-height:100vh;padding:35px 26px}.login-form{width:380px}.login-form h2{font-size:var(--text-32)}.login-form .wordmark{padding:0;margin-bottom:55px}.login-form .brandname{font-size:var(--text-20)}.login-form .brand-sub{font-size:var(--text-12)}.login-form .input{min-height:48px}.login-form .btn{min-height:48px}#toast{bottom:100px;font-size:var(--text-12);width:max-content;max-width:88vw}.footer-note{font-size:var(--text-12);line-height:1.9}.desktop-only{display:none}.status-editor{margin-top:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.image-open{display:block;width:100%;height:100%;padding:0;border:0;background:none}.photo-expanded{display:block;max-width:100%;max-height:65vh;object-fit:contain;margin:auto;border-radius:var(--radius-md)}

/* Customer / order intake, including narrow phone screens. */
.intake-shortcuts{display:flex;flex-wrap:wrap;gap:10px;margin:0 0 24px}.intake-search{display:flex;gap:10px;margin:0 0 20px}.intake-search .input{flex:1;min-width:0}.intake-row{display:flex;align-items:center;gap:16px;width:100%;padding:20px 0;text-align:left;background:none;border:0;border-bottom:1px solid var(--line,var(--line));color:inherit;cursor:pointer}.intake-row>div:first-child{flex:1;min-width:0}.intake-row strong{font-size:var(--text-16);overflow-wrap:anywhere}.intake-row p{font-size:var(--text-12);color:var(--muted);margin:8px 0;overflow-wrap:anywhere}.intake-row small{display:block;color:var(--muted);font-size:var(--text-12);overflow-wrap:anywhere}.intake-owner{text-align:right;max-width:120px}.intake-owner b{font-size:var(--text-13)}.intake-row>.icon{flex-shrink:0}.intake-facts{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin:24px 0}.intake-facts dt{font-size:var(--text-12);color:var(--muted);margin-bottom:7px}.intake-facts dd{font-size:var(--text-14);margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.intake-label{display:block}.intake-label>span{display:block;margin-bottom:8px}.intake-label .input{display:block;width:100%}.intake-pad{padding-top:24px!important}.sourcebox{overflow-wrap:anywhere}.intake-row .chip{flex-shrink:0}.intake-search+.panel{margin-top:12px}
@media(max-width:600px){.intake-row{gap:9px;padding:17px 0}.intake-row strong{font-size:var(--text-14)}.intake-row p{font-size:var(--text-12)}.intake-row small{font-size:var(--text-12)}.intake-owner{max-width:65px}.intake-facts{gap:18px 12px}.intake-facts dd{font-size:var(--text-14)}.intake-shortcuts{gap:8px}.intake-shortcuts .btn{min-height:44px}.modal .form-row{grid-template-columns:1fr}.intake-label>span{font-size:var(--text-13)}.intake-pad .form-actions{flex-wrap:wrap}.intake-row .chip{font-size:var(--text-12)}}

.order-progress{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:24px;margin-bottom:22px}.order-progress h2{margin:8px 0;font-size:var(--text-24)}.progress-line{list-style:none;display:flex;gap:0;overflow-x:auto;padding:16px 0 22px;margin:0;scrollbar-width:thin}.progress-line li{position:relative;flex:0 0 94px;white-space:nowrap;text-align:center;font-size:var(--text-12);color:var(--muted);padding:0 8px}.progress-line li span{position:relative;z-index:1;display:block;width:12px;height:12px;border-radius:50%;border:2px solid var(--line);background:var(--white);margin:0 auto 11px}.progress-line li:not(:last-child):after{content:'';height:2px;position:absolute;background:var(--line);top:5px;left:50%;width:100%}.progress-line li.current{font-weight:700;color:var(--ink)}.progress-line li.current span{background:var(--ink);border-color:var(--ink);box-shadow:0 0 0 5px var(--line)}.progress-line li.future{opacity:.6}.progress-next{background:var(--bg);padding:14px 18px;border-radius:var(--radius-md);margin-bottom:14px}.progress-next b{font-size:var(--text-12)}.progress-next p{font-size:var(--text-14);line-height:1.8;margin:4px 0;overflow-wrap:anywhere}.progress-late{color:var(--danger);font-size:var(--text-13)}.intake-optional{margin:15px 0}.intake-optional summary{cursor:pointer;font-size:var(--text-13);padding:12px 0}.intake-optional .form-group{margin-top:14px}
@media(max-width:600px){.order-progress{padding:20px 16px;border-radius:var(--radius-lg)}.order-progress h2{font-size:var(--text-20)}.progress-next{padding:13px}.order-progress .hint{font-size:var(--text-12);line-height:1.8}}

/* RC5 workflow cards share the responsive order surface. */
.workflow-actions{flex-wrap:wrap;justify-content:flex-start;margin-bottom:20px}.drawing-card{padding:20px 0;border-top:1px solid var(--line,var(--line))}.drawing-card h4{margin:0}.drawing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:16px 0}.drawing-grid a{min-width:0;border:1px solid var(--line);border-radius:var(--radius-md);overflow:hidden;text-decoration:none;color:inherit}.drawing-grid img{display:block;object-fit:contain;background:var(--bg);width:100%;height:160px}.drawing-grid span{display:block;padding:8px;font-size:var(--text-12)}.drawing-grid .drawing-file{display:flex;align-items:center;justify-content:center;height:160px;background:var(--bg);font-weight:600;text-align:center}.workflow-signatures{display:flex;gap:15px;flex-wrap:wrap}.workflow-signatures div{display:flex;flex-direction:column;gap:5px}.workflow-signatures span,.workflow-history{font-size:var(--text-13);color:var(--ink-2)}.workflow-history{margin-top:22px}.workflow-history p{overflow-wrap:anywhere;padding:12px 0;border-bottom:1px solid var(--line)}.workflow-history a{display:inline-block;margin:3px 0}.workflow-history summary{cursor:pointer;font-weight:600}#workflow-form{overflow-wrap:anywhere}#workflow-files{max-width:100%}@media(max-width:600px){.workflow-actions>.btn{width:100%}.drawing-card .split{flex-wrap:wrap;gap:8px}.drawing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.drawing-grid img{height:130px}}

/* Production quantities stay readable on narrow phones. */
.production-counts{display:flex;flex-wrap:wrap;gap:12px;margin:14px 0}
.production-counts span{padding:9px 12px;background:var(--surface-soft,var(--surface-2));border-radius:var(--radius-md)}
.production-counts b{font-size:var(--text-16)}

.sync-bar{display:flex;align-items:center;flex-wrap:nowrap;gap:8px;margin:0 0 8px;color:var(--muted);font-size:12px;line-height:1.3}.sync-bar>span{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sync-bar>div{display:flex;gap:4px;flex-shrink:0}.sync-bar .btn.small{min-height:26px;padding:1px 8px;line-height:1.3}.sync-bar .btn[aria-pressed="true"]{background:var(--ink);color:var(--white)}@media(max-width:700px){.sync-bar{gap:6px;margin:0 0 6px}.sync-bar>span{flex-basis:auto}.sync-bar .btn{min-height:28px;padding:1px 7px}}

/* Installation self-check: keep long notes and evidence within phone width. */
.self-check-summary{margin-top:20px;padding-top:18px;border-top:1px solid var(--line,var(--line))}
.self-check-fields{display:grid;gap:16px;margin:20px 0}
.self-check-fields fieldset{min-width:0;border:1px solid var(--line,var(--line));border-radius:var(--radius-md);padding:14px}
.self-check-fields legend{font-weight:600;padding:0 6px}
.self-check-fields textarea{min-height:72px}
.self-check-report{margin-top:12px;overflow-wrap:anywhere}
.self-check-report summary{cursor:pointer;padding:10px 0}
.self-check-results{padding-left:20px;display:grid;gap:10px}
.self-check-results p{white-space:pre-wrap;margin:4px 0 0}

/* Account navigation stays visible on phones as well as desktop. */
.account-nav{display:flex;align-items:center;gap:9px;min-height:44px;flex-shrink:0;border:1px solid var(--line,var(--line));border-radius:var(--radius-md);padding:6px 10px;background:var(--white);color:inherit;cursor:pointer;text-align:left;font:inherit}
.account-nav .userinfo{display:flex;flex-direction:column;gap:3px;max-width:160px;overflow-wrap:anywhere}.account-nav .userinfo small{color:var(--muted,var(--muted))}.account-label{font-size:var(--text-12);white-space:nowrap}.account-heading{flex-wrap:wrap}.account-heading>div:nth-child(2){min-width:0;overflow-wrap:anywhere}.account-logout{margin-left:auto;min-height:44px;border-color:var(--line-strong);background:var(--bg)}.account-help{margin:0 0 16px;color:var(--muted,var(--muted));font-size:var(--text-13);line-height:1.7}.account-nav:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
@media(max-width:700px){.account-nav{padding:5px 8px;gap:6px}.account-nav .userinfo{display:none}.account-nav .avatar{width:27px;height:27px;font-size:var(--text-12)}.topbar:has(.account-nav){gap:8px}.topbar>b{font-size:var(--text-12);max-width:45%}.account-heading{gap:12px}.account-heading h3{font-size:var(--text-16)}}

.address-editor{border:1px solid var(--line,var(--line));border-radius:var(--radius-md);padding:16px;margin:16px 0;min-width:0}.address-editor legend{font-weight:600}.address-editor select,.address-editor input{width:100%;min-width:0}.address-editor [hidden]{display:none!important}.address-editor .form-row{margin-top:12px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}.address-editor .intake-label{display:block;margin-bottom:10px}.address-editor .input{margin-top:6px}

/* Administrator operational overview, same field-workspace visual language. */
.overview-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:24px 0}.overview-stats button{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;font:inherit;background:var(--paper,var(--white));border:1px solid var(--line,var(--line));border-radius:var(--radius-md);padding:18px;text-align:left;cursor:pointer;color:inherit}.overview-stats span,.overview-stats small{display:block;color:var(--muted,var(--muted))}.overview-stats strong{display:block;font-size:var(--text-32);line-height:1.35;font-weight:600;margin:5px 0}.overview-stats button:nth-child(2) strong{color:var(--danger)}.overview-filters{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0}.overview-read{line-height:1.8;margin-bottom:18px}.overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.overview-card{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);overflow:hidden}.overview-card.attention{border-top:3px solid var(--warm)}.overview-card-top{padding:21px 22px 16px;display:flex;align-items:flex-start;gap:12px;justify-content:space-between}.overview-card h2{font-size:var(--text-20);line-height:1.5;margin:5px 0;overflow-wrap:anywhere}.overview-card .chip{flex-shrink:0;white-space:normal;max-width:120px;text-align:center}.overview-code{font-size:var(--text-12);letter-spacing:.04em;color:var(--muted);overflow-wrap:anywhere}.overview-customer{font-size:var(--text-12);color:var(--muted);margin:4px 0}.overview-next{background:var(--surface-2);margin:0 18px;border-radius:var(--radius-md);padding:14px}.overview-label{font-size:var(--text-12);letter-spacing:.08em;color:var(--success)}.overview-step{margin-top:9px;display:flex;flex-direction:column;gap:4px;font-size:var(--text-13);line-height:1.65;overflow-wrap:anywhere}.overview-step b{color:var(--success)}.overview-step span{color:var(--success)}.overview-time{padding:14px 22px;display:flex;flex-direction:column;gap:5px;font-size:var(--text-12);line-height:1.7;color:var(--muted)}.overview-time time{color:var(--muted);font-size:var(--text-12)}.overview-alerts{background:var(--bg);margin:0 18px 12px;padding:13px 15px;border-radius:var(--radius-md);font-size:var(--text-12);color:var(--warm);line-height:1.8;overflow-wrap:anywhere}.overview-alerts ul{padding-left:18px;margin:4px 0}.overview-alerts p{margin:2px 0}.overview-clear{padding:0 22px;margin:0 0 12px;font-size:var(--text-12);color:var(--muted)}.overview-numbers{padding:14px 22px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr;gap:12px}.overview-numbers span{font-size:var(--text-12);color:var(--muted);display:block}.overview-numbers b{display:block;font-size:var(--text-13);margin-top:5px;line-height:1.6;overflow-wrap:anywhere}.overview-batches{padding:0 22px 14px;font-size:var(--text-12);line-height:1.8;color:var(--success)}.overview-batches span{display:block}.overview-details{padding:13px 22px;background:var(--bg);border-top:1px solid var(--line);font-size:var(--text-12);line-height:1.8}.overview-details summary{cursor:pointer;color:var(--success);font-weight:600}.overview-details p{color:var(--muted)}.overview-details ul{padding-left:18px;color:var(--warm)}.overview-product-list>div{padding:9px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.overview-product-list span{display:block;color:var(--muted)}.overview-card-footer{padding:12px 18px;text-align:right}.overview-stats button:focus-visible,.overview-details summary:focus-visible{outline:3px solid var(--success);outline-offset:2px}
@media(max-width:1150px){.overview-grid{grid-template-columns:1fr}}@media(max-width:600px){.overview-stats{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:18px 0}.overview-stats button{padding:13px}.overview-stats strong{font-size:var(--text-24)}.overview-card-top{padding:16px;flex-wrap:wrap}.overview-next,.overview-alerts{margin-left:12px;margin-right:12px}.overview-time,.overview-numbers,.overview-batches,.overview-details{padding-left:16px;padding-right:16px}.overview-clear{padding-left:16px;padding-right:16px}.overview-grid{gap:16px}.overview-filters .btn{padding:8px 10px}.overview-numbers{gap:8px}.overview-code{font-size:var(--text-12)}}

/* Separate incoming customer collections from outgoing installer payments. */
.settlement-directions{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:start}
.settlement-directions>.panel{min-width:0}.settlement-directions .panel-head h3{line-height:1.5}
.settlement-directions .intake-facts{grid-template-columns:1fr 1fr}.settlement-incoming{border-top:3px solid var(--success)}.settlement-outgoing{border-top:3px solid var(--warm)}
#finance-incoming,#finance-outgoing,[data-installation-cost]{scroll-margin-top:90px}
@media(max-width:1050px){.settlement-directions{grid-template-columns:1fr}}

/* Owner cost composition keeps recorded facts separate from confirmed profit. */
.owner-profit{overflow-wrap:anywhere}
.owner-profit .profit-summary{grid-template-columns:repeat(3,minmax(0,1fr));background:var(--surface-2);border-radius:var(--radius-md);border:0;padding:18px}
.profit-summary .profit-contract-amount b{font-size:var(--text-20);color:var(--success)}
.profit-summary small{display:block;font-size:var(--text-12);color:var(--muted);margin-top:4px}
.profit-contract-history{margin:14px 0;font-size:var(--text-12)}
.profit-contract-history summary{cursor:pointer;color:var(--success)}
.profit-contract-history article{padding:10px 0;border-bottom:1px solid var(--line)}
@media(max-width:600px){.owner-profit .profit-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.profit-summary .profit-contract-amount{grid-column:1/-1}}
.profit-cost-total{display:flex;justify-content:space-between;gap:12px;align-items:center;flex-wrap:wrap;margin-top:24px}
.profit-cost-total h4,.profit-cost-total p{margin:0}
.profit-cost-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:16px 0 22px}
.profit-cost-group{min-width:0;border:1px solid var(--line);border-radius:var(--radius-lg);background:var(--white);overflow:hidden}
.profit-cost-group-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;background:var(--surface-2);padding:16px}
.profit-cost-group-head h4{margin:0;font-size:var(--text-14);line-height:1.6}
.profit-cost-group-head h4>span{display:block;font-size:var(--text-12);letter-spacing:1px;color:var(--success);margin-bottom:3px}
.profit-cost-group-head>div{text-align:right;flex-shrink:0}
.profit-cost-group-head small,.profit-cost-group-head strong{display:block}
.profit-cost-group-head small{font-size:var(--text-12);color:var(--muted);margin-bottom:4px}
.profit-cost-group-head strong{font-size:var(--text-20)}
.profit-cost-items{padding:0 16px}
.profit-cost-item{padding:13px 0;border-bottom:1px solid var(--line)}
.profit-cost-item:last-child{border-bottom:0}
.profit-cost-item>div{display:flex;flex-wrap:wrap;justify-content:space-between;gap:6px 12px;align-items:baseline}
.profit-cost-item b{font-size:var(--text-13);font-weight:600}
.profit-cost-item span{color:var(--success);font-size:var(--text-12)}
.profit-cost-item p{font-size:var(--text-12);line-height:1.8;color:var(--success);margin:8px 0 0}
.profit-installation-scope{padding:14px 0;border-bottom:1px solid var(--line)}
.profit-installation-scope:last-child{border-bottom:0}
.profit-installation-scope h5{margin:0;font-size:var(--text-13);color:var(--success)}
.profit-installation-scope>.hint{margin:6px 0 0;font-size:var(--text-12)}
.profit-installation-scope .profit-cost-item{padding-bottom:0}
.profit-rules{border-top:1px solid var(--line);padding-top:15px}
.profit-rules summary{font-weight:600;cursor:pointer}
.profit-rules h4{margin-top:20px}
.profit-rules li{margin:8px 0}
@media(max-width:760px){
 .profit-cost-grid{grid-template-columns:1fr}
 .profit-cost-group-head{padding:14px}
 .profit-cost-items{padding:0 14px}
 .profit-cost-total{display:block}
 .profit-cost-total p{margin-top:6px}
}

.profit-cost-history{margin-top:10px}
.profit-cost-history summary{cursor:pointer;color:var(--success);font-size:var(--text-12);font-weight:600}
.profit-cost-history article{background:var(--bg);border-radius:var(--radius-md);padding:12px;margin-top:10px}
.profit-record-head{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px}
.profit-record-head b{font-size:var(--text-12);font-weight:500}
.profit-record-head strong{font-size:var(--text-13)}
.profit-cost-history .form-actions{margin-top:8px}
.profit-cost-history .btn{font-size:var(--text-12);white-space:normal}

.profit-cost-item .profit-cost-history{margin-top:0}
.profit-cost-history summary{display:block;border-radius:var(--radius-sm);outline-offset:4px}
.profit-cost-history summary:hover{background:var(--surface-2)}
.profit-cost-history summary:focus-visible{outline:2px solid var(--success)}
.profit-category-line{display:flex;justify-content:space-between;align-items:baseline;flex-wrap:wrap;gap:8px}
.profit-open-hint{display:block;margin-top:7px;font-size:var(--text-12);color:var(--success)}
.profit-open-hint:before{content:'▸ ';}
.profit-cost-history[open] .profit-open-hint:before{content:'▾ ';}

/* RC26: keep modal actions visible while the form content scrolls. */
.modal{display:flex;flex-direction:column;overflow:hidden;padding:0}
.modal-head{flex:0 0 auto;margin:0;padding:24px 28px 16px;background:var(--white);border-bottom:1px solid var(--line)}
.modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 28px 28px}
.modal-close{display:grid;place-items:center;width:40px;height:40px;padding:9px}
.modal-close-mobile{display:none}
@media(max-width:600px){
 .modal{max-height:calc(100vh - 34px);}
 @supports(height:100dvh){.modal{max-height:calc(100dvh - 34px)}}
 .modal-head{padding:15px 19px 12px}
 .modal-head h2{font-size:var(--text-16)}
 .modal-body{padding:0 19px calc(19px + env(safe-area-inset-bottom))}
 .modal-close{width:auto;min-width:82px;height:44px;padding:0 12px;border-radius:var(--radius-md);display:flex;align-items:center;justify-content:center;gap:6px;background:var(--surface-2);color:var(--ink-2);font-size:var(--text-14);font-weight:600}
 .modal-close-mobile{display:inline-flex;align-items:center;gap:5px}
 .modal-close-mobile .icon{width:19px;height:19px}
 .modal-close-desktop{display:none}
}

/* RC33 channel monthly report */
.channel-month-form{display:flex;gap:12px;align-items:end;flex-wrap:wrap;margin-bottom:24px}.channel-month-form label{display:grid;gap:6px;color:var(--muted)}.channel-month-form .input{min-width:185px}.channel-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}.channel-kpi{background:white;border:1px solid var(--line);border-radius:var(--radius-lg);padding:23px;min-width:0}.channel-kpi p{color:var(--muted);font-size:var(--text-13)}.channel-kpi strong{display:block;font-size:var(--text-24);line-height:1.6;margin:8px 0;overflow-wrap:anywhere}.channel-kpi small{color:var(--muted);font-size:var(--text-12)}.channel-table{margin-top:22px}.channel-table-head,.channel-group summary{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr) minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:center}.channel-table-head{padding:12px 0;color:var(--muted);font-size:var(--text-12);border-bottom:1px solid var(--line)}.channel-group{border-bottom:1px solid var(--line)}.channel-group summary{padding:20px 0 12px;cursor:pointer;list-style:none}.channel-group summary::-webkit-details-marker{display:none}.channel-group summary:focus-visible{outline:2px solid var(--accent);outline-offset:4px}.channel-label{display:flex;align-items:start;gap:10px;overflow-wrap:anywhere}.channel-label b{font-size:var(--text-14)}.channel-group small{display:block;color:var(--muted);font-size:var(--text-12);font-weight:400;margin-top:3px}.channel-dot{display:block;width:10px;height:10px;border-radius:50%;margin-top:7px;flex-shrink:0}.channel-color-0{background:var(--success)}.channel-color-1{background:var(--line-strong)}.channel-color-2{background:var(--warm)}.channel-color-3{background:var(--line-strong)}.channel-color-4{background:var(--line-strong)}.channel-bar{display:block;background:var(--surface-2);border-radius:var(--radius-sm);max-width:130px;height:5px;margin-top:9px}.channel-bar i{display:block;height:100%;border-radius:var(--radius-sm)}.channel-money{font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.channel-expand{grid-column:1/-1;text-align:right;font-size:var(--text-12);color:var(--accent)}.channel-orders{background:var(--bg);border-radius:var(--radius-md);margin-bottom:18px;padding:0 18px}.channel-orders article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line);overflow-wrap:anywhere}.channel-orders article:last-child{border:0}.channel-orders article p{font-size:var(--text-13)}.channel-orders article>div:last-child{display:grid;gap:6px;font-size:var(--text-12);text-align:right}.channel-notes{padding:22px 0;color:var(--muted);font-size:var(--text-12);line-height:1.8}.channel-notes p{margin-top:6px}.channel-group .channel-mobile-label{display:none}.channel-shell-warning{margin-bottom:18px}
@media(max-width:1150px){.channel-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.channel-table-head,.channel-group summary{gap:12px}.channel-money{font-size:var(--text-13)}}
@media(max-width:600px){.channel-kpis{gap:10px}.channel-kpi{padding:16px}.channel-kpi strong{font-size:var(--text-20)}.channel-table-head{display:none}.channel-group summary{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.channel-group .channel-mobile-label{display:block}.channel-orders{padding:0 12px}.channel-orders article{flex-direction:column;align-items:start;gap:10px}.channel-orders article>div:last-child{text-align:left}.channel-expand{text-align:left}.channel-group small{overflow-wrap:anywhere}.channel-month-form{gap:8px}.channel-month-form .input{min-width:150px}}

/* Company directory and customer source hierarchy. */
.partner-layout{display:grid;grid-template-columns:minmax(180px,1fr) minmax(260px,2fr);gap:28px}.partner-layout h2{margin:0 0 20px}.partner-layout h3{margin:18px 0 12px}.partner-field{display:grid;gap:7px;margin:12px 0;font-size:var(--text-13)}.partner-add{display:flex;align-items:end;gap:8px;margin:12px 0}.partner-add .partner-field{margin:0;flex:1;min-width:0}.partner-add input{min-width:0}.partner-add button{flex-shrink:0}.partner-company-list{max-height:390px;overflow:auto;margin-top:14px}.partner-company{width:100%;text-align:left;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-md);padding:14px;margin:4px 0;color:var(--ink)}.partner-company small{display:block;color:var(--muted);margin-top:7px}.partner-company.selected{background:var(--accent-soft);border-color:var(--line-strong)}.partner-company[hidden]{display:none}.partner-rebate{margin-top:25px;padding-top:8px;border-top:1px solid var(--line)}.partner-rebate details{margin-top:18px}.partner-history{padding:16px 0;border-bottom:1px solid var(--line)}.partner-history p{margin-top:8px;font-size:var(--text-13)}.partner-tags{display:flex;flex-wrap:wrap;gap:8px}.customer-partners{padding:18px;background:var(--bg);border-radius:var(--radius-lg);margin-bottom:20px}.customer-partners[hidden]{display:none}.customer-partners details{font-size:var(--text-13);margin:10px 0}.partner-rebate .checkline{margin:15px 0}#partner-content{min-width:0;overflow-wrap:anywhere}#partner-content .input{width:100%}
@media(min-width:800px){.modal:has(#partner-content){max-width:1040px;width:calc(100vw - 60px)}}
@media(max-width:700px){.partner-layout{grid-template-columns:1fr;gap:16px}.partner-company-list{max-height:190px}.partner-add{flex-wrap:wrap}.partner-add .partner-field{flex-basis:100%}.partner-add .btn{width:100%}.channel-report .heading{gap:14px}}

/* Finance identifies the order by its installation address, including narrow screens. */
.finance-workspace .heading>div:first-child{min-width:0;flex:1}
.finance-workspace .heading h1,.finance-order-address{overflow-wrap:anywhere}

/* RC47 application actions wrap inside narrow dialogs, including read-only detail. */
.application-modal .form-actions{flex-wrap:wrap;justify-content:flex-start}
.application-modal .form-actions .btn{flex:0 1 auto;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.application-modal .form-grid>*{min-width:0}
@media(max-width:600px){.application-modal .form-actions>.btn{flex:1 1 calc(50% - 10px)}}

/* RC57: signing entry remains visible on narrow customer pages. */
.store-signing-head{flex-wrap:wrap;gap:10px}.store-signing-head h3{flex:1 1 180px}.store-signing-head .btn{white-space:normal;max-width:100%}

/* RC58: address inputs are full width; technical-plan consent checkbox is not. */
.signing-plan-input .checkline input{width:15px;min-width:15px;flex:0 0 15px}
.signing-plan-input .checkline span{min-width:0;flex:1;overflow-wrap:anywhere}

/* Address-first store order navigation. */
.store-order-link{display:grid;grid-template-columns:minmax(0,1fr) auto 18px;column-gap:12px}.store-order-link .mono{margin-top:9px}.store-order-link:focus-visible{outline:2px solid var(--accent);outline-offset:3px;border-radius:var(--radius-md)}.store-order-detail .heading h1{overflow-wrap:anywhere}.store-order-detail .panel-head{gap:12px;flex-wrap:wrap}.store-order-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;padding-top:8px}.store-order-actions .btn{min-height:46px;white-space:normal;overflow-wrap:anywhere}
@media(max-width:600px){.store-order-link{grid-template-columns:minmax(0,1fr) 18px}.store-order-link>.chip{grid-column:1;grid-row:2;justify-self:start}.store-order-link>.icon{grid-column:2;grid-row:1/3}.store-order-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}

/* Store workspace in a side panel: preserve readable header at intermediate widths. */
@media(min-width:701px) and (max-width:1100px){.store-layout .topbar .crumb,.store-layout .topbar .desktop-only,.store-layout .topbar .account-nav .userinfo{display:none}.store-layout .topbar{gap:8px}.store-layout .topbar .account-nav{gap:6px;padding:5px 8px}}
.store-layout .mobile-brand{white-space:nowrap}
@media(max-width:700px){.store-layout .topbar{padding:0 12px;gap:6px}.store-layout .topbar>.chip{display:none}.store-layout .topbar .mobile-brand{font-size:var(--text-14);letter-spacing:0}}

/* Signing dossier: documents and confirmed content come before maintenance actions. */
.signing-dossier h4{margin:0 0 14px;font-size:var(--text-16);display:flex;align-items:center;gap:10px;flex-wrap:wrap}.signing-files-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}.signing-files-grid>section{min-width:0;padding:20px;background:var(--bg);border-radius:var(--radius-lg);border:1px solid var(--line)}.signing-document{display:flex;align-items:center;gap:12px;padding:16px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-md);text-decoration:none;color:inherit}.signing-document>svg{flex-shrink:0;color:var(--muted)}.signing-document>div{min-width:0;flex:1}.signing-document strong{display:block;font-size:var(--text-14);line-height:1.6;overflow-wrap:anywhere}.signing-document small{display:block;color:var(--muted);margin-top:4px}.signing-document>span{flex-shrink:0;color:var(--ink-2);font-size:var(--text-12)}.signing-document>span svg{display:none}.signing-history{margin-top:12px}.signing-history summary,.signing-edit summary{cursor:pointer;color:var(--muted);font-size:var(--text-13);padding:8px 0}.signing-history .signing-document{margin-top:10px}.signing-information{margin-top:26px}.signing-summary{margin:0;display:grid;grid-template-columns:1fr 1fr;gap:20px}.signing-summary>div:first-child{grid-column:1/-1}.signing-summary dt{font-size:var(--text-12);color:var(--muted);margin-bottom:8px}.signing-summary dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.signing-complete{color:var(--success);font-size:var(--text-13);margin:0 0 20px}.signing-edit{margin-top:20px;border-top:1px solid var(--line);padding-top:10px}.signing-next{margin:0 0 22px}.signing-next p{line-height:1.8}.signing-missing{color:var(--warm);font-size:var(--text-14)}.signing-edit .store-order-actions{margin-top:14px}
@media(max-width:850px){.signing-files-grid,.signing-summary{grid-template-columns:1fr}.signing-files-grid{gap:14px}.signing-files-grid>section{padding:16px}.signing-document{padding:12px}.signing-document>span{max-width:50px;text-align:center}.signing-dossier{padding:18px}}

/* A pending handoff exposes only its readback action, including on narrow screens. */
#order-submit-form [hidden]{display:none!important}
#order-submit-form .form-actions{flex-wrap:wrap}
#order-submit-form .form-actions .btn{white-space:normal;max-width:100%}

/* RC69: role-scoped order overview, desktop cards and compact phone layout. */
.wb-overview{max-width:1440px;margin:0 auto}.wb-overview .heading{margin-bottom:18px}.wb-scope{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:var(--success);font-size:var(--text-13);margin-bottom:24px}.wb-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:30px}.wb-kpi{font:inherit;cursor:pointer;text-align:left;display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:23px;min-width:0;box-shadow:0 4px 18px var(--soft-shadow-color);color:var(--success)}.wb-kpi:hover,.wb-kpi:focus-visible{border-color:var(--success);box-shadow:0 5px 22px var(--soft-shadow-color)}.wb-kpi.selected{border-color:var(--success);box-shadow:inset 0 0 0 1px var(--success)}.wb-label{display:flex;align-items:center;gap:10px;font-weight:650}.wb-label i{width:10px;height:10px;border-radius:50%;background:var(--success);box-shadow:0 0 0 7px var(--soft-shadow-color);margin:4px 7px 4px 4px;flex-shrink:0}.wb-kpi.amber i{background:var(--warm);box-shadow:0 0 0 7px var(--soft-shadow-color)}.wb-kpi.red i{background:var(--danger);box-shadow:0 0 0 7px var(--soft-shadow-color)}.wb-kpi.rose i{background:var(--danger);box-shadow:0 0 0 7px var(--soft-shadow-color)}.wb-kpi strong{display:block;font-size:var(--text-32);line-height:1.25;margin:20px 0 8px;font-weight:650}.wb-kpi small{color:var(--muted);font-size:var(--text-12);line-height:1.5;display:block}.wb-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-bottom:30px}.wb-tabs{display:flex;gap:8px;flex-wrap:wrap}#workbench-search{display:flex;gap:8px;max-width:420px;min-width:0}#workbench-search .input{min-width:0}.wb-list-heading{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:16px}.wb-list-heading h2{font-size:var(--text-20);margin:0}.wb-list-heading>span{color:var(--muted);font-size:var(--text-13)}.wb-orders{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.wb-order{display:flex;flex-direction:column;min-width:0;font:inherit;color:inherit;text-align:left;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:21px;cursor:pointer;box-shadow:0 3px 12px var(--soft-shadow-color)}.wb-order:hover,.wb-order:focus-visible{border-color:var(--success);transform:translateY(-1px)}.wb-order h3{font-size:var(--text-20);line-height:1.55;margin:16px 0 4px;overflow-wrap:anywhere}.wb-order-top{display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between}.wb-order .chip{max-width:100%;white-space:normal}.wb-code{color:var(--muted);font-size:var(--text-12);margin:0 0 16px;overflow-wrap:anywhere}.wb-next{font-size:var(--text-14);color:var(--success);line-height:1.6;margin:0 0 19px}.wb-order-foot{display:flex;justify-content:space-between;gap:10px;font-size:var(--text-12);color:var(--muted);margin-top:auto;padding-top:15px;border-top:1px solid var(--line)}.wb-flag{font-size:var(--text-12);color:var(--warm)}.wb-flag.late,.wb-block{color:var(--danger)}.wb-block{font-size:var(--text-12);margin-top:12px}.wb-pagination{display:flex;align-items:center;gap:10px;margin:24px 0;font-size:var(--text-13);color:var(--muted)}.wb-layout .main{background:var(--bg)}.wb-layout .content{max-width:none}.wb-layout .sidebar{background:var(--surface-2)}.wb-overview .hint{line-height:1.7}.wb-tabs .btn{white-space:normal}
@media(max-width:1100px){.wb-orders{grid-template-columns:repeat(2,minmax(0,1fr))}.wb-kpi{padding:18px}.wb-label{font-size:var(--text-14)}}
@media(max-width:650px){.wb-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.wb-kpi{padding:17px 15px;border-radius:var(--radius-lg)}.wb-kpi strong{font-size:var(--text-32);margin-top:14px}.wb-kpi small{font-size:var(--text-12)}.wb-label{gap:5px;font-size:var(--text-13)}.wb-label i{margin-right:4px;box-shadow:none!important}.wb-orders{grid-template-columns:minmax(0,1fr);gap:13px}.wb-order{padding:18px}.wb-toolbar{gap:14px;margin-bottom:24px}.wb-tabs{width:100%}#workbench-search{width:100%;max-width:none}.wb-overview .heading h1{font-size:var(--text-24)}.wb-scope{font-size:var(--text-12);gap:5px}.wb-layout .content{padding-left:16px;padding-right:16px}.wb-layout .bottom-nav span{font-size:var(--text-12)}}

/* Saved private documents open in the browser; original download remains separate. */
a[data-scan-preview]:not([hidden]){display:block;width:fit-content;max-width:100%;margin:0 0 8px;padding:8px 0;text-decoration:underline;overflow-wrap:anywhere}
.signing-file{min-width:0;margin-bottom:12px}.signing-file:last-child{margin-bottom:0}.signing-download{display:block;width:fit-content;margin:6px 0 0 auto;padding:8px 4px;font-size:var(--text-13);color:var(--muted);text-underline-offset:3px}.signing-file .file-row{margin-bottom:0}.signing-history .signing-file{margin-top:10px}

/* Newer release available: non-blocking, refresh only on request. */
.release-notice{position:fixed;top:calc(env(safe-area-inset-top,0px) + 10px);left:50%;transform:translateX(-50%);z-index:60;display:flex;align-items:center;gap:12px;width:max-content;max-width:calc(100vw - 24px);padding:10px 12px 10px 16px;border-radius:var(--radius-md);background:var(--ink);color:var(--white);box-shadow:0 10px 30px var(--soft-shadow-color);font-size:var(--text-13);line-height:1.5}.release-notice span{flex:1;min-width:0}.release-notice .btn{flex-shrink:0}
@media (max-width:560px){.release-notice{width:calc(100vw - 24px);align-items:flex-start}}
/* RC73 B: store chips, list filter and the member/manager rows of the store editor. */
.store-chip{background:var(--accent-soft);color:var(--accent);border:1px solid var(--line);margin-left:4px;vertical-align:middle}
.store-filter{display:flex;gap:10px;align-items:end;margin:0 0 18px}.store-filter .intake-label{display:grid;gap:6px;min-width:220px}
.store-member-row{display:grid;grid-template-columns:1fr auto;gap:8px;align-items:center;border-bottom:1px solid var(--line)}.store-member-row .member-choice{border-bottom:0}.store-manager-choice{margin:0;white-space:nowrap}
.store-card h3{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
@media(max-width:600px){.store-filter{margin-bottom:14px}.store-filter .intake-label{min-width:0;width:100%}.store-chip{max-width:160px}}
/* RC73 line C: message centre bell, right-hand drawer and home notice. */
.notify-bell{position:relative;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;flex-shrink:0;border:1px solid var(--line,var(--line));border-radius:var(--radius-md);background:var(--white);color:var(--ink);cursor:pointer;font:inherit;padding:0}.notify-bell .icon{width:20px;height:20px}.notify-bell.has-unread{border-color:var(--line);color:var(--ink)}.notify-bell:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.notify-badge{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 5px;border-radius:var(--radius-md);background:var(--danger);color:var(--white);font-size:var(--text-12);font-weight:600;line-height:18px;text-align:center}.notify-badge[hidden]{display:none}
.notify-backdrop{position:fixed;inset:0;z-index:70;background:var(--soft-shadow-color)}
.notify-drawer{position:fixed;top:0;right:0;bottom:0;z-index:71;width:min(420px,100vw);background:var(--white);box-shadow:-12px 0 40px var(--soft-shadow-color);overflow:auto;padding:22px 20px calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:18px}
.notify-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.notify-head h2{font-size:var(--text-16);margin:0}
.notify-group h3{display:flex;align-items:baseline;gap:8px;font-size:var(--text-13);margin:0 0 10px;color:var(--ink)}.notify-group h3 small{color:var(--muted);font-weight:400;font-size:var(--text-12)}
.notify-item{display:block;width:100%;text-align:left;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--white);padding:12px 14px;margin-bottom:8px;cursor:pointer;font:inherit;color:inherit}.notify-item.unread{border-color:var(--line);background:var(--bg)}.notify-item.reminder.late{border-color:var(--danger-soft);background:var(--bg)}
.notify-item .notify-kind{display:inline-block;font-size:var(--text-12);color:var(--muted);background:var(--surface-2);border-radius:var(--radius-sm);padding:2px 7px;margin-bottom:6px}.notify-item.late .notify-kind{background:var(--surface-2);color:var(--danger)}
.notify-item strong{display:block;font-size:var(--text-13);line-height:1.5;overflow-wrap:anywhere}.notify-item p{margin:4px 0 0;font-size:var(--text-12);color:var(--ink-2);line-height:1.6;overflow-wrap:anywhere}.notify-item small{display:block;margin-top:6px;font-size:var(--text-12);color:var(--muted)}
.notify-empty{font-size:var(--text-12);color:var(--muted);margin:0}
.notify-fold-body{margin:-4px 0 8px;padding-left:12px;border-left:2px solid var(--line)}
.notify-fold-body .notify-item:last-child{margin-bottom:0}
.notify-notice{display:flex;align-items:center;gap:12px;margin:-6px 0 20px;padding:10px 14px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--bg);font-size:var(--text-13);color:var(--ink)}.notify-notice span{flex:1}.notify-notice[hidden]{display:none}
@media(max-width:700px){.notify-bell{width:40px;height:40px;border-radius:var(--radius-md)}.notify-drawer{width:100vw;padding:16px 16px calc(20px + env(safe-area-inset-bottom))}.notify-head .btn{min-height:36px}}

/* RC73 D: read-only schedule board (7 columns on desktop, stacked days on phones) and the admin handover panel. */
.sched-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:12px 18px;margin-bottom:18px}.sched-nav{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.sched-range{color:var(--success);font-size:var(--text-13)}.sched-filters{display:flex;gap:6px;flex-wrap:wrap}.sched-person{display:flex;gap:8px;align-items:center;min-width:0}.sched-person .input{min-width:160px;max-width:240px}
.sched-week{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:10px;align-items:start}.sched-day{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:12px 10px;min-height:140px;min-width:0}.sched-day header{display:flex;align-items:baseline;gap:6px;flex-wrap:wrap;margin-bottom:10px;padding-bottom:8px;border-bottom:1px solid var(--line);font-size:var(--text-13)}.sched-day header span{color:var(--muted)}.sched-day header em{margin-left:auto;font-style:normal;font-size:var(--text-12);color:var(--accent);font-weight:650}.sched-day.today{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--bg)}.sched-empty{color:var(--muted);font-size:var(--text-12);margin:6px 0 0}
.sched-item{display:flex;flex-direction:column;gap:3px;width:100%;min-width:0;text-align:left;font:inherit;color:inherit;background:var(--bg);border:1px solid var(--line);border-left:4px solid var(--line-strong);border-radius:var(--radius-md);padding:9px 10px;margin-bottom:8px;cursor:pointer}.sched-item:hover,.sched-item:focus-visible{border-color:var(--muted);background:var(--white)}.sched-item strong{font-size:var(--text-13);line-height:1.4;overflow-wrap:anywhere}.sched-item small{display:block;font-size:var(--text-12);color:var(--muted);line-height:1.5;overflow-wrap:anywhere}.sched-kind{font-size:var(--text-12);letter-spacing:1px;color:var(--muted);font-weight:650}
.sched-item.kind-remeasure{border-left-color:var(--ink-2)}.sched-item.kind-install{border-left-color:var(--warm)}.sched-item.kind-shipment{border-left-color:var(--success)}.sched-item.kind-production{border-left-color:var(--line-strong)}.sched-item.kind-expected{border-left-color:var(--warm)}.sched-item.kind-task{border-left-color:var(--ink)}.sched-item.kind-aftercare{border-left-color:var(--muted)}
.sched-item.conflict{border-color:var(--danger);border-left-color:var(--danger);background:var(--bg)}.sched-conflict{font-style:normal;font-size:var(--text-12);color:var(--danger);font-weight:650}
@media(max-width:1200px){.sched-week{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:700px){.sched-week{grid-template-columns:1fr;gap:12px}.sched-day{min-height:0}.sched-toolbar{gap:10px}.sched-nav .btn{min-height:40px}.sched-person{width:100%}.sched-person .input{flex:1;max-width:none}}
.handover-pick{align-items:end}.handover-row{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(220px,1fr);gap:12px 18px;padding:12px 0;border-top:1px solid var(--line);align-items:start}.handover-row:first-of-type{border-top:0}.handover-what details{margin-top:6px}.handover-what summary{cursor:pointer;font-size:var(--text-12);color:var(--ink-2)}.handover-what ul{margin:6px 0 0;padding-left:18px;font-size:var(--text-12);line-height:1.7;max-height:220px;overflow:auto}.handover-to .hint{display:block;padding-top:8px}#handover-summary{margin:12px 0}
@media(max-width:600px){.handover-row{grid-template-columns:1fr;gap:8px}.handover-pick{grid-template-columns:1fr}}

/* RC74 E: customer quotes (order page panel, editor modal, admin price book). Tables scroll sideways on phones. */
.quote-version{align-items:flex-start}.quote-version small{display:block}.quote-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end}
.quote-layout{display:grid;grid-template-columns:minmax(0,1fr) 260px;gap:20px;align-items:start}.quote-side{position:sticky;top:0;border:1px solid var(--line);border-radius:var(--radius-md);padding:14px;background:var(--white);display:grid;gap:10px}
.quote-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:var(--radius-sm);margin:8px 0;max-width:100%}.quote-table{border-collapse:collapse;min-width:860px;width:100%}.quote-table th,.quote-table td{border-bottom:1px solid var(--line);padding:6px;text-align:left;vertical-align:top;font-size:var(--text-13)}.quote-table th{background:var(--bg);font-weight:600;white-space:nowrap}.quote-table .input{min-width:64px;padding:6px 8px}
.quote-amount{white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.quote-options summary{cursor:pointer;color:var(--ink-2);white-space:nowrap}.quote-options{min-width:120px}.quote-check{display:flex;gap:6px;align-items:center;font-size:var(--text-13);margin:4px 0}.quote-check small{color:var(--muted)}.quote-qty{width:64px}
.quote-services{display:flex;flex-wrap:wrap;gap:4px 18px}.quote-sum{margin:0;display:grid;gap:4px}.quote-sum div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);padding:3px 0}.quote-sum dt{color:var(--muted)}.quote-sum dd{margin:0;font-variant-numeric:tabular-nums}.quote-total dd,.quote-total dt{font-weight:700;font-size:var(--text-16);color:var(--ink)}
@media(max-width:800px){.quote-layout{grid-template-columns:1fr}.quote-side{position:static}.quote-actions{justify-content:flex-start}}
/* RC74 F: payment nodes, receivables and renovation-company statement (390px friendly, printable statement). */
.chip.danger{color:var(--danger);background:var(--surface-2)}.pp-row{border:1px solid var(--line);border-radius:var(--radius-md);padding:12px 14px;margin:0 0 14px;min-width:0}.pp-row legend{font-size:var(--text-12);color:var(--muted);padding:0 6px}.pp-row .form-row{grid-template-columns:repeat(auto-fit,minmax(130px,1fr))}.pp-payer,.pp-bind{justify-content:space-between;flex-wrap:wrap;padding:8px 0;border-bottom:1px solid var(--line);font-size:var(--text-12)}.pp-payer .input,.pp-bind .input{width:auto;min-width:170px}.settlement-tag{margin:0 0 14px}.table-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}.statement-table{width:100%;border-collapse:collapse;font-size:var(--text-12);min-width:620px}.statement-table th,.statement-table td{border-bottom:1px solid var(--line);padding:8px 6px;text-align:left;vertical-align:top}.rcv-item .btn{margin-top:8px}
@media (max-width:700px){.pp-row .form-row{grid-template-columns:1fr 1fr}.pp-payer .input,.pp-bind .input{width:100%}}
@media print{.no-print,.sidebar,.topbar,.bottom-nav,.sync-bar{display:none!important}.main{margin-left:0}.statement-sheet{box-shadow:none;border:0}.statement-table{min-width:0}}
/* RC74 G: 伙伴云 history import (admin modal) and the read-only history order notice. */
.legacy-step{margin-bottom:8px}.legacy-counts{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 16px}.legacy-table-wrap{overflow-x:auto;max-height:420px;border:1px solid var(--line);border-radius:var(--radius-md);margin:8px 0 14px}.legacy-table{width:100%;border-collapse:collapse;font-size:var(--text-12)}.legacy-table th,.legacy-table td{padding:8px 10px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;overflow-wrap:anywhere}.legacy-table th{position:sticky;top:0;background:var(--bg);color:var(--muted);font-weight:550;white-space:nowrap}.legacy-table .num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}.legacy-table small{display:block;color:var(--muted);font-size:var(--text-12)}.legacy-table tr.legacy-error td{color:var(--warm);background:var(--bg)}.legacy-map-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 15px}.legacy-map .req{font-weight:500;font-size:var(--text-12)}.legacy-confirm{margin-top:14px}.legacy-order p{margin-top:8px;font-size:var(--text-12);color:var(--muted);line-height:1.9}
@media(max-width:600px){.legacy-map-grid{grid-template-columns:1fr}.legacy-table th,.legacy-table td{padding:7px 8px}}

/* RC79 layout fixes (CSS only; no colour / type changes). */
/* (a) aftercare board: real column layout; inside a column the cards stack in one column (were squeezed to ~78px). */
.acb-columns{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px;align-items:start;margin-top:18px}
.acb-column{min-width:0;background:var(--bg);border:1px solid var(--line);border-radius:var(--radius-lg);padding:14px}
.acb-column .wb-list-heading{margin:0 0 12px}
.acb-column .wb-orders{grid-template-columns:minmax(0,1fr);gap:10px}
.acb-card{min-width:0;overflow-wrap:anywhere;text-align:left}
.acb-card .wb-order-top{flex-wrap:wrap;gap:6px}
/* Task 150: the all-zero board is one sentence on the same white card. Number cells stay on the existing grid. */
.acb-empty{margin:0;color:var(--ink);font-size:15px;line-height:1.6}
/* (b) phone: nothing may widen the page beyond the screen. */
.notice>div,.notice>p{min-width:0}
.form-actions,.heading-action{flex-wrap:wrap}
.btn{max-width:100%}
@media(max-width:600px){.btn{white-space:normal;text-align:center}}
@media(max-width:420px){.topbar{gap:6px;padding:0 12px}.topbar .account-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}}
/* (c) fixed sidebar scrolls inside itself on short screens (the last item was below a 900px-tall viewport). */
.sidebar{overflow-y:auto;overscroll-behavior:contain}
/* (e) button spacing: button rows keep an 8px gap; loose adjacent buttons get the same space. */
.heading-action{display:flex;gap:8px;align-items:center}
.form-actions{gap:8px}
.panel-body>.btn+.btn,.drawing-card>.btn+.btn,.panel-body>p>.btn+.btn{margin-left:8px}

/* UI phases 1–2: shared controls and financial tables. No navigation or permission changes. */
.btn,.btn.small,.btn.ghost{border-radius:var(--radius-md);font-size:var(--text-14);min-height:44px;padding:10px 16px;line-height:1.4}
.btn.small{min-height:32px;font-size:var(--text-13);padding:6px 12px}
.btn.ghost,.btnlink{background:transparent;border-color:transparent;color:var(--accent)}
.btn.primary,.btn.blue{background:var(--ink);border-color:var(--ink);color:var(--white)}
.btn.primary:hover,.btn.blue:hover{background:var(--accent);border-color:var(--accent)}
.btn.soft{background:var(--accent-soft);color:var(--accent);border-color:transparent}
.btn.danger{color:var(--danger);background:var(--danger-soft)}
.form-actions,.data-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
.form-actions .btn+.btn,.data-actions .btn+.btn{margin-left:0}
.chip{display:inline-flex;align-items:center;min-height:24px;padding:2px 8px;font-size:var(--text-12);line-height:1.5;border-radius:var(--radius-sm)}
.chip.blue{color:var(--info);background:var(--info-soft)}
.chip.warm{color:var(--warm);background:var(--warm-soft)}
.chip.danger{color:var(--danger);background:var(--danger-soft)}
.panel,.kpi,.project-card,.overview-card,.wb-order{border-radius:var(--radius-lg);border-color:var(--line);background:var(--white);box-shadow:var(--shadow-1)}
.panel-head{padding:var(--space-6);min-height:72px;flex-wrap:wrap}
.panel-head .chip{margin-left:auto}
.panel-body{padding:0 var(--space-6) var(--space-6);min-width:0}
.panel-body:first-child{padding-top:var(--space-6)}
.kpi,.project-card,.overview-card,.wb-order{padding:var(--space-6)}
.hint,.panel-head .minor,.notice{font-size:var(--text-12)}
.data-section-title{font-size:var(--text-16);margin:var(--space-6) 0 var(--space-3)}
.data-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:var(--space-6);margin:var(--space-6) 0;padding:0}
.data-metrics>div{min-width:0;padding-left:var(--space-4);border-left:2px solid var(--line)}
.data-metrics dt{color:var(--muted);font-size:var(--text-12)}
.data-metrics dd{margin:var(--space-2) 0 0;color:var(--ink);font-size:var(--text-24);font-weight:600;line-height:1.4;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.data-filters{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-4);align-items:end}
.data-filters .input{width:100%;min-width:0}
.data-table-scroll{width:100%;max-width:100%;min-width:0;overflow-x:auto;overscroll-behavior-x:contain;border:1px solid var(--line);border-radius:var(--radius-md);margin:var(--space-4) 0 var(--space-6);isolation:isolate}
.data-table-scroll:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.data-table{width:100%;min-width:740px;border-collapse:separate;border-spacing:0;color:var(--ink);font-size:var(--text-13);line-height:1.6}
.data-table th,.data-table td{padding:12px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;min-height:44px;background:var(--white)}
.data-table thead th{color:var(--ink-2);background:var(--surface-2);font-size:var(--text-12);font-weight:600;white-space:nowrap}
.data-table tbody th{font-weight:500;min-width:180px;max-width:240px;overflow-wrap:anywhere}
.data-table tbody tr:last-child>*{border-bottom:0}
.data-table tbody tr:hover>*{background:var(--bg)}
.data-table small{display:block;color:var(--muted);font-size:var(--text-12);font-weight:400;margin-top:4px;max-width:260px}
.data-table .is-money{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap;min-width:120px}
.data-table .is-money small{white-space:normal;min-width:120px}
.data-table .chip{white-space:normal;min-width:70px;max-width:180px}
.data-table .data-actions{min-width:240px;max-width:330px;margin:0}
.data-table tbody th:first-child,.data-table thead th:first-child{position:sticky;left:0;z-index:1;border-right:1px solid var(--line)}
.data-table thead th:first-child{z-index:2}
.collection-progress{display:block;width:100%;height:4px;margin:8px 0 0;border:0;border-radius:var(--radius-sm);background:var(--line);accent-color:var(--accent)}
.collection-progress::-webkit-progress-bar{background:var(--line);border-radius:var(--radius-sm)}
.collection-progress::-webkit-progress-value{background:var(--accent);border-radius:var(--radius-sm)}
.collection-progress::-moz-progress-bar{background:var(--accent)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@media(max-width:700px){
 .content,.main,.pp-card,.statement-sheet{min-width:0;max-width:100%}
 .panel-head{padding:var(--space-4);min-height:64px}
 .panel-body{padding:0 var(--space-4) var(--space-4)}
 .panel-body:first-child{padding-top:var(--space-4)}
 .data-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}
 .data-metrics dd{font-size:var(--text-20)}
 .data-filters{grid-template-columns:minmax(0,1fr);gap:var(--space-2)}
 .data-table tbody th{min-width:140px;max-width:160px}
 .data-table th,.data-table td{padding:12px}
 .data-actions .btn{flex:none}
}
@media print{
 .data-table-scroll{overflow:visible;border:0}
 .data-table{min-width:0;width:100%;font-size:var(--text-12)}
 .data-table thead{display:table-header-group}
 .data-table tbody th:first-child,.data-table thead th:first-child{position:static}
 .data-table .is-money{min-width:0}
 .data-table th,.data-table td{padding:8px;break-inside:avoid}
 .data-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}
}

.data-table-hint{display:none}
.data-toolbar{margin-top:0;padding-top:0;border-top:0}
@media(max-width:700px){.data-table-hint{display:block;margin-top:var(--space-4);font-size:var(--text-12);color:var(--muted)}}
@media print{.data-table-hint{display:none}}

.data-metrics dd.metric-note{font-size:var(--text-14);font-weight:500;color:var(--muted)}

/* quote-excel-1: adjustments are marked only in the internal editor. */
.quote-table .quote-overridden{background:var(--warm-soft);border-color:var(--warm)}.quote-options:has(.quote-overridden){min-width:190px}
.quote-main,.quote-side{min-width:0}.quote-main .notice{overflow-wrap:anywhere}.quote-table .quote-options{max-width:240px}
@media(max-width:800px){.quote-layout{grid-template-columns:minmax(0,1fr)}}

/* Monthly ledger detail: the amount is what finance reads first, so it gets its own line in a larger, tabular figure. */
.ledger-amount-row{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin:8px 0 4px}.ledger-amount-row span{font-size:12px;color:var(--muted)}.ledger-amount{font-size:22px;line-height:1.3;font-weight:650;letter-spacing:-.3px;font-variant-numeric:tabular-nums;color:var(--ink)}.ledger-amount.is-reference{color:var(--muted);font-weight:550}
@media(max-width:700px){.ledger-amount{font-size:20px}}
.ledger-facts dt{font-size:14px;color:var(--ink-2)}.ledger-facts~.hint{font-size:13px;line-height:1.8}.ledger-facts dd{font-size:20px;line-height:1.35;font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
@media(max-width:700px){.ledger-facts dd{font-size:18px}}
/* close-1 step 2: one white sidebar; the same complete menu is reachable on phones. */
.layout .shared-sidebar{background:var(--white);overflow-y:auto}
.mobile-menu{display:none}
@media(max-width:760px){
 .mobile-menu{display:block;position:fixed;right:14px;bottom:calc(76px + env(safe-area-inset-bottom));z-index:45}
 .mobile-menu>summary{display:flex;align-items:center;gap:6px;min-height:44px;padding:10px 14px;background:var(--white);color:var(--ink);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);cursor:pointer;list-style:none}
 .mobile-menu>summary::-webkit-details-marker{display:none}
 .mobile-menu>summary svg{width:18px;height:18px}
 .mobile-menu>.nav{position:absolute;right:0;bottom:56px;width:min(300px,calc(100vw - 28px));max-height:65vh;overflow:auto;background:var(--white);padding:12px;border:1px solid var(--line);border-radius:14px;box-shadow:var(--shadow)}
}

/* close-1 step 3: status colors are semantic, not role or module colors. */
:root{--state-normal:var(--muted);--state-reminder:var(--warm);--state-danger:var(--danger);--state-complete:var(--success)}
.chip.blue,.chip.normal{color:var(--state-normal);background:var(--surface-2)}
.chip.complete,.chip.green{color:var(--state-complete);background:var(--success-soft)}
.chip.rose{color:var(--state-reminder);background:var(--warm-soft)}
.tasktext.done strong,.checkcircle.done{color:var(--state-complete)}
.wb-kpi{color:var(--ink)}
.wb-kpi.normal i,.wb-kpi.green i{background:var(--state-normal)}
.wb-kpi.amber i,.wb-kpi.rose i{background:var(--state-reminder)}
.wb-kpi.red i{background:var(--state-danger)}
.wb-scope,.wb-next,.sched-range{color:var(--state-normal)}
.sched-item[class*="kind-"]{border-left-color:var(--state-normal)}
.sched-item.conflict{border-left-color:var(--state-danger);color:var(--state-danger)}

/* close-1 step 4: address-first summary and one task surface at a time. */
.order-summary{display:grid;grid-template-columns:2fr 1fr 2fr 1fr 1fr;gap:14px;padding:16px;background:var(--white);border:1px solid var(--line);border-radius:var(--radius-md);margin-bottom:14px}
.legacy-quiet-line{margin:0 0 14px;padding:12px 16px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--white);color:var(--ink-2);font-weight:550}
.order-summary>div{min-width:0}.order-summary small{display:block;color:var(--muted)}.order-summary strong{font-size:var(--text-13);font-weight:550;overflow-wrap:anywhere}
.order-tabs{display:flex;gap:6px;overflow:auto;border-bottom:1px solid var(--line);padding:0 0 8px;margin-bottom:14px;position:sticky;top:0;background:var(--bg);z-index:5}
.order-tabs button{white-space:nowrap;border:0;padding:12px 16px;border-radius:var(--radius-md);background:transparent;color:var(--muted)}
.order-tabs button.active{background:var(--accent-soft);color:var(--accent);font-weight:650}
.order-tab-panel[hidden]{display:none!important}.order-tab-panel>.section-gap:first-child{margin-top:0}
@media(max-width:760px){.order-summary{grid-template-columns:1fr 1fr;gap:8px;padding:12px}.order-summary>div:first-child,.order-summary>.summary-next{grid-column:1/-1}.order-summary>div:last-child{display:flex;gap:8px;align-items:center}.order-tabs button{padding:10px 12px}.order-tab-panel .panel-body>.form-actions:first-child{margin-top:12px}}
@media print{.shared-sidebar,.mobile-menu{display:none!important}}

/* Close-1: optional explanations stay beside the action and work on touch / keyboard. */
.action-info{display:inline-block;position:relative;margin:6px 8px 6px 0;vertical-align:middle;max-width:100%}
.action-info>summary{display:flex;align-items:center;justify-content:center;width:40px;min-height:40px;border:1px solid var(--line);border-radius:50%;cursor:pointer;list-style:none;color:var(--muted);background:var(--white);font-size:19px}
.action-info>summary::-webkit-details-marker{display:none}
.action-info>summary:focus-visible{outline:3px solid var(--danger);outline-offset:2px}
.action-info[open]{display:block}
.action-info>div{padding:12px 14px;margin-top:6px;background:var(--bg);border:1px solid var(--line);border-radius:10px;color:var(--muted);font-size:13px;line-height:1.6;overflow-wrap:anywhere}

/* close-1 round 2: shorter independent form stages, persistent action area. */
.close-compact .form-group{margin-bottom:10px}.close-compact .input{padding:8px 10px;min-height:42px}.close-compact textarea.input{min-height:64px}
.close-compact .form-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.close-compact .intake-label{gap:4px}.close-compact .hint{font-size:var(--text-12);line-height:1.5;margin:5px 0}
.close-compact .intake-label+p.hint,.close-compact .close-secondary{display:none}
.close-compact .intake-optional{margin:10px 0}.close-compact .intake-optional>summary{min-height:36px;cursor:pointer;color:var(--muted)}
.close-compact .address-editor{padding:10px;margin:10px 0}.compact-address>.intake-optional{margin:0 0 8px}
.intake-stages{list-style:none;display:flex;gap:12px;padding:10px 0;margin:0;color:var(--muted);font-size:var(--text-13)}.intake-stages [aria-current]{color:var(--ink);font-weight:700}
.close-footer{position:sticky;bottom:0;background:var(--white);padding:10px 0;margin:8px 0 0;border-top:1px solid var(--line);z-index:3;display:flex;justify-content:flex-end;gap:8px}
.close-compact .form-actions:has(>[type="submit"]){position:sticky;bottom:0;background:var(--white);padding:10px 0;z-index:3}
.plan-compact .form-row>p.hint{grid-column:1/-1;order:3}.plan-compact .plan-date{display:flex;align-items:end;gap:12px;flex-wrap:wrap}.plan-compact .plan-date .form-group{flex:1;min-width:130px}.plan-compact .plan-date .form-actions{margin:0 0 10px;gap:6px}
.installer-step .drawing-grid,.sc-wizard .drawing-grid{display:flex;gap:6px;overflow:auto;max-height:55px;margin:4px 0}.installer-step .drawing-grid img,.sc-wizard .drawing-grid img{height:48px;width:48px;object-fit:cover}.installer-step .drawing-grid span,.sc-wizard .drawing-grid span{display:none}
.sc-wizard .self-check-fields{gap:10px;margin:6px 0}.sc-wizard .self-check-fields fieldset{padding:10px}.sc-wizard .self-check-fields fieldset[hidden]{display:none}.sc-choices{display:flex;gap:8px;margin:6px 0}.sc-choices .btn{flex:1;min-height:44px;padding:8px}.sc-choices [aria-pressed="true"]{background:var(--ink);color:var(--white)}.sc-issue textarea{margin-top:5px;height:48px;min-height:48px!important;line-height:1.4}.sc-wizard #sc-progress{margin:10px 0;font-size:var(--text-13)}
.quote-form .quote-more{margin:12px 0}.quote-form .quote-more>summary{padding:10px 0;cursor:pointer}.quote-sum-details>summary{list-style:none;font-size:var(--text-13);cursor:pointer}.quote-sum-details strong{font-size:var(--text-18)}
@media(max-width:800px){
 .quote-form .quote-layout{display:flex;flex-direction:column;gap:8px}.quote-form .quote-main,.quote-form .quote-side{width:100%}.quote-form .quote-side{position:sticky;bottom:-1px;z-index:4;gap:5px;padding:10px}.quote-side .hint{margin:3px 0}.quote-side .action-info{position:absolute;right:8px;top:30px}
 .quote-form .quote-table{display:block;min-width:0}.quote-form .quote-table thead{display:none}.quote-form .quote-table tbody{display:block}.quote-form .quote-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));padding:8px;gap:8px}.quote-form .quote-table td{display:block;border:0;padding:0;min-width:0}.quote-form .quote-table td:before{display:block;color:var(--muted);font-size:var(--text-12);margin-bottom:3px}.quote-form .quote-table td:nth-child(1):before{content:var(--ui-label-0,'编号')}.quote-form .quote-table td:nth-child(2):before{content:var(--ui-label-1,'位置')}.quote-form .quote-table td:nth-child(3){grid-column:1/-1}.quote-form .quote-table td:nth-child(3):before{content:var(--ui-label-2,'系列 *')}.quote-form .quote-table td:nth-child(4):before{content:var(--ui-label-3,'宽 mm *')}.quote-form .quote-table td:nth-child(5):before{content:var(--ui-label-4,'高 mm *')}.quote-form .quote-table td:nth-child(6):before{content:var(--ui-label-5,'开启扇')}.quote-form .quote-table td:nth-child(8):before{content:var(--ui-label-6,'本樘金额')}.quote-form .quote-table .input{width:100%;min-width:0;min-height:40px}.quote-form .quote-table-wrap{overflow-x:visible}.quote-options{min-width:0}.quote-options[open]{background:var(--surface-2);padding:8px}
}
/* Author display rules must not expose inactive wizard steps or hidden action buttons. */
.close-compact [hidden]{display:none!important}

.sc-wizard .close-footer>.action-info{flex:none;margin:0 auto 0 0}.sc-wizard .close-footer>.action-info[open]{flex-basis:100%}.sc-wizard .close-footer>.btn{flex:1;padding:8px}

/* RC81 closeout: keep all Excel fields, compact optional per-window inputs on phones. */
.quote-row-more{display:none}
@media(max-width:800px){
 .quote-form .quote-table td:nth-child(n):before{content:none}
 .quote-form .quote-table td:nth-child(1){order:1}.quote-form .quote-table td:nth-child(1):before{content:var(--ui-label-7,'编号')}
 .quote-form .quote-table td:nth-child(2){order:2}.quote-form .quote-table td:nth-child(2):before{content:var(--ui-label-8,'位置')}
 .quote-form .quote-table td:nth-child(3){order:3;grid-column:1/-1}.quote-form .quote-table td:nth-child(3):before{content:var(--ui-label-9,'系列 *')}
 .quote-form .quote-table td:nth-child(7){order:4}.quote-form .quote-table td:nth-child(7):before{content:var(--ui-label-10,'宽 mm *')}
 .quote-form .quote-table td:nth-child(8){order:5}.quote-form .quote-table td:nth-child(8):before{content:var(--ui-label-11,'高 mm *')}
 .quote-form .quote-table td:nth-child(9){order:6}.quote-form .quote-table td:nth-child(9):before{content:var(--ui-label-12,'开启扇')}
 .quote-form .quote-table td:nth-child(11){order:7}.quote-form .quote-table td:nth-child(11):before{content:var(--ui-label-13,'本樘金额')}
 .quote-form .quote-table td:nth-child(10){order:8}.quote-form .quote-table td:nth-child(13){order:9;display:flex;gap:8px;flex-wrap:wrap}
 .quote-form .quote-table td:nth-child(4),.quote-form .quote-table td:nth-child(5),.quote-form .quote-table td:nth-child(6),.quote-form .quote-table td:nth-child(12){display:none;order:10}
 .quote-form .quote-table tr[data-extra-open="true"] td:nth-child(4),.quote-form .quote-table tr[data-extra-open="true"] td:nth-child(5),.quote-form .quote-table tr[data-extra-open="true"] td:nth-child(6),.quote-form .quote-table tr[data-extra-open="true"] td:nth-child(12){display:block}
 .quote-form .quote-table td:nth-child(4):before{content:var(--ui-label-14,'开启方式')}.quote-form .quote-table td:nth-child(5):before{content:var(--ui-label-15,'玻璃规格')}.quote-form .quote-table td:nth-child(6):before{content:var(--ui-label-16,'型材壁厚')}.quote-form .quote-table td:nth-child(12):before{content:var(--ui-label-17,'计价调整（须管理员确认）')}
 .quote-row-more{display:inline-flex}
}

/* Drawing review is responsive; financial visibility stays with the quote editor. */
.drawing-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,360px),1fr));gap:16px}.drawing-row{padding:14px;border:1px solid var(--line);border-radius:12px;min-width:0}.drawing-row header{display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px}.drawing-row img{display:block;width:100%;height:auto;margin:12px 0}.drawing-attention{border-color:var(--danger)}.drawing-errors{color:var(--danger)}.drawing-fields{display:grid;grid-template-columns:1fr 1fr;gap:10px}.drawing-fields label{min-width:0}.drawing-fields .input{width:100%;min-width:0}.drawing-row .hint{overflow-wrap:anywhere}

/* i18n: labels wrap; identifiers, values and dates keep their original formats. */
.language-picker{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:var(--muted)}
.language-picker select{max-width:110px;border:1px solid var(--line);border-radius:8px;padding:7px;background:var(--white);color:inherit}
html[lang=en] .btn,html[lang=en] .nav-item,html[lang=en] .tab,html[lang=en] button{white-space:normal;overflow-wrap:anywhere}
html[lang=en] .topbar{flex-wrap:wrap;gap:8px}
html[lang=en] .heading>div,html[lang=en] .panel-head>div{min-width:0}
@media(max-width:600px){.language-picker>span{display:none}.language-picker select{max-width:85px}.topbar{flex-wrap:wrap;gap:8px}html[lang=en] .btn{max-width:100%}html[lang=en] .form-actions{flex-wrap:wrap}html[lang=en] .form-actions>*{min-width:0}html[lang=en] h1{overflow-wrap:anywhere}html[lang=en] .quote-table td:before{white-space:normal}}

.account-menu{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin-left:auto}.account-menu .account-nav{min-width:0}@media(max-width:700px){html[lang=en] .wb-kpi small{line-height:1.4}html[lang=en] .wb-kpi{padding:16px}}

#workbench-search .btn{flex-shrink:0;min-width:76px}#workbench-search .input{min-width:0}

/* Contract settings: two comparable columns on desktop, a single readable stack on phones. */
.ct-panel{min-width:0;max-width:100%;overflow-wrap:anywhere}
.ct-panel .panel-body{padding:var(--space-5,20px)}
.ct-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ct-grid>*{min-width:0}.ct-panel input,.ct-panel select,.ct-panel textarea{width:100%;max-width:100%;min-width:0;box-sizing:border-box}
.ct-panel .btn{max-width:100%;white-space:normal;height:auto;min-height:44px}
.ct-panel ul{margin:10px 0;padding-left:20px}.ct-panel li{margin:8px 0}.ct-panel li small{display:block;color:var(--muted)}
.ct-warranty{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ct-warranty dd{margin:4px 0 0}.ct-payments{border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:20px}
@media(max-width:600px){.ct-grid{grid-template-columns:minmax(0,1fr)}.ct-panel .panel-body{padding:16px}.ct-panel h3{font-size:18px}}

/* Keep the shared header usable between phone and desktop breakpoints. */
.topbar>b{white-space:nowrap;flex-shrink:0;overflow:hidden;text-overflow:ellipsis}
.language-picker{flex-shrink:0;white-space:nowrap}
.language-picker select{min-width:65px;min-height:44px}
.topbar .account-menu{flex-shrink:0}
.topbar>.btn{flex-shrink:0}
@media(max-width:1100px){
 .language-picker>span{display:none}
 .topbar{height:auto;min-height:78px;flex-wrap:wrap;padding-top:10px;padding-bottom:10px;row-gap:8px}
}
@media(max-width:960px){.topbar .account-label{display:none}}
/* Only phone-ish widths drop desktop-only topbar actions (a 1024 px laptop / tablet keeps them). */
@media(max-width:900px){.topbar>.desktop-only{display:none}}
@media(max-width:700px){.topbar{min-height:64px}}

/* Contract informational amounts: heading above the list, including 390px. */
.ct-payments .ct-other-amounts{display:block;min-width:0;overflow-wrap:anywhere}.ct-other-amounts>b{display:block;max-width:100%;margin-bottom:8px}.ct-other-amounts>ul{margin:0;padding-left:1.25em;min-width:0}
/* Order window schedule: keep the identifier visible while narrow screens scroll. */
.window-table-scroll{max-width:100%;overflow-x:auto;isolation:isolate}.window-table-scroll table{min-width:700px}.window-table-scroll th:first-child{position:sticky;left:0;z-index:1;background:var(--white);min-width:100px;max-width:160px;overflow-wrap:anywhere}.window-table-scroll thead th:first-child{z-index:2}.ow-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.ow-drawing-image{display:block;max-width:100%;height:auto}.window-master .form-actions{flex-wrap:wrap}@media(max-width:520px){.ow-form-grid{grid-template-columns:1fr}.window-master .form-actions>.btn{flex:1 1 140px;white-space:normal}}

/* Task49: long names and per-account actions remain readable on narrow screens. */
.employee-accounts .user-item{flex-wrap:wrap;padding:12px 0;border-bottom:1px solid var(--line)}
.employee-identity{flex:1 1 200px;min-width:0;overflow-wrap:anywhere}
.employee-actions{display:flex;flex:1 1 320px;flex-wrap:wrap;gap:8px;align-items:center;justify-content:flex-end}
.account-handover-notice{display:block}.account-handover-notice p{margin:10px 0}
@media(max-width:600px){.employee-actions{flex-basis:100%;justify-content:flex-start}.employee-actions .btn{white-space:normal;min-height:40px}}

/* Contract snapshot editor, desktop and narrow screens. */
.cg-auto{background:var(--surface-2);border-radius:12px;padding:12px;overflow-wrap:anywhere}
.cg-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cg-term,.cg-node{min-width:0;border:1px solid var(--line);border-radius:12px;padding:14px;margin:14px 0}
.cg-term.cg-changed{border-color:var(--warm);background:var(--warm-soft)}
.cg-panel,.cg-card,.cg-panel .panel-body{min-width:0}.cg-panel h3,.cg-panel p{overflow-wrap:anywhere}
.cg-panel .form-actions{display:flex;flex-wrap:wrap;gap:8px}.cg-panel .form-actions .btn{max-width:100%;white-space:normal}
@media(max-width:520px){.cg-grid{grid-template-columns:minmax(0,1fr)}.cg-term,.cg-node{padding:10px}.cg-panel .form-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.cg-panel .form-actions .btn{width:100%;min-width:0}}

.contract-exception{padding:12px 0;border-bottom:1px solid var(--line)}.contract-exception-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.contract-exception-grid>div{min-width:0;overflow-wrap:anywhere}@media(max-width:520px){.contract-exception-grid{grid-template-columns:minmax(0,1fr)}}
.contract-exception .cx-same{color:var(--muted)}.contract-exception mark.cx-changed{background:var(--warm-soft);color:var(--warm);font-weight:650;border-radius:var(--radius-sm);padding:0 3px}

/* RC84.1 CC 62-3: account buttons keep their words on one line on phones. */
@media(max-width:700px){.panel-body>.split{flex-wrap:wrap}.panel-body>.split>.btn{flex:0 0 auto;white-space:nowrap}.forced-title{font-size:var(--text-20);margin:0 0 10px}}

/* Task 86: one light workbench. Huge focal number, compact cells, today rail. Red only on overdue / blocked. */
.dash-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(240px,300px);gap:18px;align-items:start}
.dash-main{min-width:0}
.dash-main>.dash-hero{margin-top:0}
.dash-hero:has(+ .dash-hero-extra){border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:0;box-shadow:none}
.dash-hero-extra{margin-top:-1px;padding:0 22px 14px;background:var(--white);border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius-lg) var(--radius-lg);box-shadow:var(--shadow)}
.dash-hero-extra .dash-visuals{margin-top:0}
.dash-hero-count{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:18px 20px 16px;box-shadow:var(--shadow)}
.dash-hero-count>span,.dash-hero .panel-head span{color:var(--muted);font-size:var(--text-13)}
.dash-focal-num{display:block;margin:2px 0 4px;font-size:clamp(44px,6vw,76px);line-height:.95;letter-spacing:-2px;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}
.dash-hero-count>small{display:block;color:var(--muted);font-size:var(--text-12)}
.dash-hero .overview-numbers{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 22px;border:0;padding:0;background:transparent}
.dash-hero .dash-focal{order:-1;flex:1 0 100%}
.dash-hero .overview-numbers b{font-size:var(--text-16);font-weight:650;color:var(--ink)}
.dash-hero .dash-focal b{font-size:32px;line-height:1.15;letter-spacing:-.4px;font-weight:650;font-variant-numeric:tabular-nums}
.dash-hero .dash-focal small,.dash-hero .overview-numbers small{display:block;margin-top:4px;color:var(--muted);font-size:var(--text-12);font-weight:450}
.dash-visuals{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:14px}
.dash-meter{flex:1 1 200px;min-width:0}
.dash-meter-label{display:flex;justify-content:space-between;gap:8px;font-size:var(--text-12);color:var(--muted);margin-bottom:6px}
.dash-meter-label b{color:var(--ink);font-weight:650;font-variant-numeric:tabular-nums}
.dash-meter-track{height:8px;border-radius:99px;background:var(--line);overflow:hidden}
.dash-meter-track>span{display:block;height:100%;background:var(--accent);border-radius:99px}
.dash-ring{display:flex;align-items:center;gap:10px;margin:0}
.dash-conic{width:72px;height:72px;border-radius:50%;flex-shrink:0;background:conic-gradient(var(--accent) calc(var(--dash-pct) * 1%), var(--line) 0);-webkit-mask:radial-gradient(farthest-side,transparent 62%,rgb(0 0 0) 63%);mask:radial-gradient(farthest-side,transparent 62%,rgb(0 0 0) 63%)}
.dash-ring figcaption{display:flex;flex-direction:column;gap:2px;font-size:var(--text-12);color:var(--muted);min-width:0}
.dash-ring figcaption b{color:var(--ink);font-size:var(--text-13)}
.dash-mini{display:grid;grid-template-columns:repeat(auto-fit,minmax(88px,1fr));gap:8px}
.dash-mini-cell{background:var(--white);border:1px solid var(--line);border-radius:10px;padding:8px 10px;min-width:0}
.dash-mini-cell span{display:block;font-size:var(--text-12);color:var(--muted)}
.dash-mini-cell b{display:block;margin-top:2px;font-size:18px;line-height:1.2;font-weight:650;color:var(--ink);font-variant-numeric:tabular-nums}
.dash-mini-cell.is-hot b{color:var(--danger)}
.dash-mini-na{font-size:var(--text-14);font-weight:600}
.dash-mini-note{margin:6px 0 0;color:var(--muted);font-size:var(--text-12);line-height:1.5}
.dash-mini-wrap{margin:12px 0}
.dash-flow{display:flex;gap:0;margin:8px 0 2px;overflow:auto;padding-bottom:2px}
.dash-flow span{position:relative;flex:1 0 auto;min-width:48px;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:var(--text-12);color:var(--muted);text-align:center}
.dash-flow i{width:8px;height:8px;border-radius:50%;background:var(--line);display:block;position:relative;z-index:1}
.dash-flow span:not(:last-child)::before{content:"";position:absolute;top:3px;left:50%;width:100%;height:2px;background:var(--line);z-index:0}
.dash-flow .done{color:var(--ink)}
.dash-flow .done i,.dash-flow .current i{background:var(--accent)}
.dash-flow .done:not(:last-child)::before{background:var(--accent)}
.dash-flow .current{color:var(--accent);font-weight:700}
.overview-card .dash-flow,.wb-order .dash-flow{padding:0 16px}
.dash-today{background:var(--white);border:1px solid var(--line);border-radius:var(--radius-lg);padding:16px 16px 8px;position:sticky;top:12px}
.dash-today h2{margin:0 0 4px;font-size:var(--text-16)}
.dash-today-count{margin:0 0 8px;color:var(--muted);font-size:var(--text-12)}
.dash-today-count b{color:var(--accent);font-size:var(--text-20);font-variant-numeric:tabular-nums}
.dash-today-count b.is-hot{color:var(--danger)}
.dash-today-item{display:block;width:100%;text-align:left;border:0;border-top:1px solid var(--line);background:transparent;padding:10px 0;color:inherit;font:inherit;cursor:pointer}
.dash-today-kicker{display:block;font-size:var(--text-12);font-weight:650;color:var(--accent)}
.dash-today-item.is-hot .dash-today-kicker{color:var(--danger)}
.dash-today-item strong{display:block;margin-top:2px;font-size:var(--text-14);font-weight:650;overflow-wrap:anywhere}
.dash-today-item>span:last-child{display:block;color:var(--muted);font-size:var(--text-12);line-height:1.45}
.dash-today-empty{margin:8px 0;color:var(--muted);font-size:var(--text-13)}
.wb-overview .wb-kpis{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}
.wb-overview .wb-kpis>.wb-kpi{display:flex;flex:1 1 140px;flex-direction:row;align-items:center;justify-content:flex-start;gap:8px;padding:7px 12px;border-radius:999px;box-shadow:none;background:var(--white)}
.wb-overview .wb-kpi strong{font-size:var(--text-16);margin:0;line-height:1.2}
.wb-overview .wb-kpi small{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.wb-overview .wb-label{font-size:var(--text-12);font-weight:600;gap:6px}
.wb-overview .wb-label i{width:7px;height:7px;margin:0;box-shadow:none}
.wb-overview .wb-kpi.selected{background:var(--accent-soft);border-color:var(--accent);box-shadow:none}
.wb-overview .wb-orders{grid-template-columns:minmax(0,1fr);gap:8px}
.wb-overview .wb-order{padding:12px 14px;box-shadow:none;border-radius:12px}
.wb-overview .wb-order h3{font-size:var(--text-16);margin:6px 0 2px}
.wb-overview .wb-next{margin:0 0 8px;color:var(--accent)}
.wb-overview .wb-code{margin:0 0 4px}
.boss-overview .overview-grid{grid-template-columns:minmax(0,1fr)}
.boss-overview .overview-stats{gap:8px;margin:8px 0 12px}
.boss-overview .overview-stats button{padding:8px 10px;border-radius:10px;box-shadow:none}
.boss-overview .overview-stats strong{font-size:18px;margin:2px 0;line-height:1.2}
.boss-overview .overview-stats button:nth-child(2) strong{color:var(--ink)}
.boss-overview .overview-card.attention{border-top-color:var(--accent)}
.boss-overview .overview-card.is-hot{border-top-color:var(--danger)}
.boss-overview .overview-label,.boss-overview .overview-step b{color:var(--ink)}
.boss-overview .overview-step span,.boss-overview .overview-batches{color:var(--muted)}
.boss-overview .overview-alerts{color:var(--ink);background:var(--bg)}
.boss-overview .overview-alerts.is-hot{color:var(--danger);background:var(--danger-soft)}
.boss-overview .overview-card h2{font-size:var(--text-16)}
.boss-overview .overview-card-top{padding:14px 16px 8px}
@media(max-width:760px){
 .dash-layout{display:flex;flex-direction:column;gap:14px}
 .dash-today{order:-1;position:static}
 .dash-focal-num{font-size:clamp(36px,12vw,52px)}
 .dash-hero .dash-focal b{font-size:28px}
 .dash-mini{gap:6px}
 .dash-mini-cell{padding:7px 8px}
 .dash-mini-cell b{font-size:16px}
 .overview-card .dash-flow,.wb-order .dash-flow{padding:0 12px}
}
.drawing-check{margin:12px 0;padding:12px 14px;border:1px solid var(--line);border-radius:var(--radius-md);font-size:var(--text-13)}.drawing-check b{display:block;margin-bottom:4px}.drawing-check ul{margin:6px 0 0;padding-left:18px}.drawing-check li{overflow-wrap:anywhere;margin:2px 0}.drawing-check.warn{border-color:var(--warn);background:color-mix(in srgb,var(--warn) 8%,transparent)}.drawing-check.ok{color:var(--ink-2)}
.win-picks{display:flex;flex-wrap:wrap;gap:8px}.win-pick{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border:1px solid var(--line);border-radius:var(--radius-md);font-size:var(--text-12)}.win-pick .input{width:64px;padding:6px 8px}.win-pick small{color:var(--muted)}

/* Task 102: phone work pages for factory intake, factory worker, installer and aftercare.
   Light surface, one accent, red only on items that need handling. Title stays above the today strip. */
.field-phone{color:var(--ink)}
.field-phone .field-today{position:static;margin:0 0 16px}
.field-phone .heading{margin-bottom:14px}
.field-phone .field-job.field-focus{box-shadow:inset 3px 0 0 var(--accent)}
.field-phone .wb-next{color:var(--accent)}
.field-phone .chip.danger,.field-phone .wb-flag.late,.field-phone .progress-late,.field-phone .dash-today-item.is-hot .dash-today-kicker{color:var(--danger)}
@media(max-width:760px){
 .field-phone .intake-facts{grid-template-columns:1fr;gap:12px;margin:12px 0}
 .field-phone .btn.primary,
 .field-phone .form-actions>.btn,
 .field-phone .form-actions>a.btn,
 .field-phone .drawing-card>.btn,
 .field-phone .panel-body>.btn{
  width:100%;
  min-height:48px;
  font-size:var(--text-16);
  padding:12px 16px;
  white-space:normal;
 }
 .field-phone .form-actions{flex-direction:column;align-items:stretch}
 .field-phone .form-actions>.btn.ghost{min-height:44px;font-size:var(--text-14)}
 .field-phone .data-table-hint{display:none}
 .field-phone .window-table-scroll,
 .field-phone .data-table-scroll{overflow:visible;border:0}
 .field-phone .window-table-scroll table,
 .field-phone table.data-table{min-width:0;width:100%}
 .field-phone table.data-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .field-phone table.data-table,
 .field-phone table.data-table tbody{display:block}
 .field-phone table.data-table tr{display:block;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0 0 10px;background:var(--white)}
 .field-phone table.data-table th,
 .field-phone table.data-table td{display:block;width:auto;min-width:0;max-width:none;position:static;border:0;padding:4px 0;background:transparent}
 .field-phone table.data-table tbody th{font-size:var(--text-16);font-weight:650;color:var(--ink);padding-bottom:6px}
 .field-phone table.data-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:var(--text-12);font-weight:450}
}
.page-memory-note{position:sticky;top:0;z-index:5}.page-memory>*:not(.page-memory-note){opacity:.72}
/* RC84.28: grouped main menu */
.nav-group{display:grid;gap:2px}.nav-group+.nav-group{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.nav-group-title{font-size:12px;font-weight:650;letter-spacing:.04em;color:var(--muted);padding:2px 15px 4px;opacity:.85}
.nav-group button{padding:9px 15px}.nav:has(.nav-group){gap:0;margin-top:14px}

/* Task 119: refund, historical repair, acceptance proof, notification audit and the
   factory lists that task 102 did not cover. Same light surface and one accent.
   Red is only pending / blocked / overdue / needs-action. Phone rules match .field-phone. */
.notice.danger{background:var(--danger-soft);border-color:var(--danger-soft);color:var(--danger)}
.v119{color:var(--ink)}
.v119 .dash-today,.v119 .field-today{position:static;margin:0 0 16px}
.v119 .field-job.is-hot{box-shadow:inset 3px 0 0 var(--danger)}
.v119 .chip.danger,.v119 .dash-today-item.is-hot .dash-today-kicker,.v119 .dash-today-count b.is-hot,.v119 .data-metrics dd.is-hot{color:var(--danger)}
.v119 .data-metrics dd.is-hot{font-weight:650}
.notify-group.v119 .notify-item.is-hot{border-color:var(--danger-soft);background:var(--danger-soft)}
.notify-group.v119 .notify-item.is-hot .notify-kind{color:var(--danger);background:var(--white)}
.notify-group.v119 .dash-today-count{margin:0 0 8px}
@media(max-width:760px){
 .v119 .intake-facts{grid-template-columns:1fr;gap:12px;margin:12px 0}
 .v119 .btn.primary,
 .v119.form-actions>.btn,
 .v119 .form-actions>.btn,
 .v119 .form-actions>a.btn,
 .v119 .panel-body>.btn,
 .v119 .heading-action .btn,
 form.v119>.btn.primary,
 form.v119 .form-actions>.btn{
  width:100%;
  min-height:48px;
  font-size:var(--text-16);
  padding:12px 16px;
  white-space:normal;
 }
 .v119.form-actions,
 .v119 .form-actions,
 form.v119 .form-actions{flex-direction:column;align-items:stretch}
 .v119 .data-table-hint{display:none}
 .v119 .window-table-scroll,
 .v119 .data-table-scroll{overflow:visible;border:0}
 .v119 .window-table-scroll table,
 .v119 table.data-table{min-width:0;width:100%}
 .v119 table.data-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .v119 table.data-table,
 .v119 table.data-table tbody{display:block}
 .v119 table.data-table tr{display:block;border:1px solid var(--line);border-radius:12px;padding:12px 14px;margin:0 0 10px;background:var(--white)}
 .v119 table.data-table th,
 .v119 table.data-table td{display:block;width:auto;min-width:0;max-width:none;position:static;border:0;padding:4px 0;background:transparent}
 .v119 table.data-table tbody th{font-size:var(--text-16);font-weight:650;color:var(--ink);padding-bottom:6px}
 .v119 table.data-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:var(--text-12);font-weight:450}
}
/* RC84.31 (owner 11-03): the 京藤门窗 mark from the brand file replaces the generic window grid */
.brandmark{border:0!important;background:url('/static/jontang-mark.svg') center/contain no-repeat}
.brandmark:before,.brandmark:after{display:none}
.login-brand .brandmark{background-color:var(--white);border-radius:6px;padding:4px;background-origin:content-box;box-sizing:content-box}

/* Task 130: the boss desk (administrator home). Light surface, dark text, one accent; red only for what needs handling. */
.owner-desk{max-width:880px;margin:0 auto;display:grid;gap:var(--space-4)}
.desk-top{display:flex;align-items:flex-end;justify-content:space-between;gap:var(--space-3)}
.desk-top h1{margin:0;font-size:24px;color:var(--ink)}
.desk-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:var(--space-2)}
.desk-jump{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--white);color:var(--ink);font:inherit;text-align:left;cursor:pointer;min-height:64px}
.desk-jump span{font-size:var(--text-12);color:var(--muted)}
.desk-jump b{font-size:20px;font-weight:700;overflow-wrap:anywhere}
.desk-jump.is-hot b{color:var(--danger)}
.desk-block{padding:var(--space-4)}
.desk-head{display:flex;align-items:center;gap:var(--space-2);margin-bottom:var(--space-2)}
.desk-head h2{margin:0;font-size:17px;color:var(--ink)}
.desk-count{display:inline-block;min-width:24px;padding:1px 8px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);font-size:var(--text-12);font-weight:700;text-align:center}
.desk-count.is-hot{background:var(--danger-soft);color:var(--danger)}
.desk-row{display:grid;gap:2px;width:100%;padding:var(--space-3) 0;border:0;border-top:1px solid var(--line);background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;min-height:44px}
.desk-row:first-of-type{border-top:0}
.desk-row strong{font-size:15px;color:var(--ink);overflow-wrap:anywhere}
.desk-kicker{font-size:var(--text-12);font-weight:700;color:var(--accent)}
.desk-row.is-hot .desk-kicker{color:var(--danger)}
.desk-detail{font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.desk-note{font-size:var(--text-12);color:var(--muted);overflow-wrap:anywhere}
.desk-empty{margin:var(--space-2) 0;color:var(--muted)}
.desk-more{margin:var(--space-2) 0 0;font-size:13px;color:var(--muted)}
.desk-chips{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 var(--space-2)}.desk-chips-label{font-size:12px;color:var(--muted);margin-right:2px}
.desk-chip{min-height:32px;padding:4px 10px;border:1px solid var(--line);border-radius:999px;background:transparent;color:inherit;font:inherit;font-size:13px;cursor:pointer;max-width:100%;overflow-wrap:anywhere}.desk-chip b{font-weight:600;font-variant-numeric:tabular-nums}.desk-chip.is-on{border-color:var(--accent);background:var(--accent);color:var(--white)}
.desk-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-3)}
.desk-tile{display:grid;gap:2px;padding:var(--space-3);border-radius:var(--radius-md);background:var(--surface-2)}
.desk-tile span{font-size:var(--text-12);color:var(--muted)}
.desk-tile b{font-size:20px;color:var(--ink);overflow-wrap:anywhere}
.desk-tile small{font-size:var(--text-12);color:var(--ink-2)}
.desk-tile.is-hot{background:var(--danger-soft)}
.desk-tile.is-hot b{color:var(--danger)}
.desk-person{padding:var(--space-3) 0;border-top:1px solid var(--line)}
.desk-person:first-of-type{border-top:0}
.desk-person-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:var(--space-2)}
.desk-work{display:flex;justify-content:space-between;gap:var(--space-2);width:100%;margin-top:6px;padding:8px 10px;border:1px solid var(--line);border-radius:var(--radius-sm);background:var(--white);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.desk-work small{color:var(--ink-2);white-space:nowrap}
@media (min-width:900px){.desk-tiles{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:520px){.desk-strip{grid-template-columns:repeat(2,minmax(0,1fr))}.desk-block{padding:var(--space-3)}}

/* Task 141: cost price books and the estimated cost on the 收款 tab. Thin lines, one accent; red only for a gap past the rule. */
.cost-kind{padding:var(--space-3) 0;border-top:1px solid var(--line)}
.cost-kind:first-child{border-top:0}
.cost-kind-head{display:flex;align-items:center;justify-content:space-between;gap:var(--space-2);margin-bottom:6px}
.cost-item{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:var(--space-2);align-items:center;padding:6px 0;font-size:14px;overflow-wrap:anywhere}
.cost-item.is-off{color:var(--muted)}
.cost-table{width:100%;border-collapse:collapse;font-size:14px}
.cost-table th,.cost-table td{padding:8px 6px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}
.cost-table th:first-child,.cost-table td:first-child{text-align:left}
.cost-table tr.is-hot td{color:var(--danger);font-weight:650}
.cost-missing{margin-top:var(--space-2);font-size:13px;color:var(--ink-2)}
.cost-book-pick{display:flex;flex-wrap:wrap;gap:var(--space-2)}
@media (max-width:520px){.cost-table{font-size:13px}.cost-table th,.cost-table td{padding:6px 3px}.cost-item{grid-template-columns:minmax(0,1fr) auto}.cost-item .btn{grid-column:1/-1;justify-self:start}}
/* Task 140: whole-order hold line above the order tabs. Red only while the order is stopped. */
.order-hold{display:grid;gap:var(--space-2);margin:0 0 var(--space-3)}
.order-hold-line{display:grid;gap:2px;padding:var(--space-3);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--white);color:var(--ink);font-size:13px}
.order-hold-line strong{font-size:15px}
.order-hold-line .btn{justify-self:start}
.order-hold-line.is-stopped{border-color:var(--danger);background:var(--danger-soft)}
.order-hold-line.is-stopped strong{color:var(--danger)}
.order-hold-asks{display:flex;flex-wrap:wrap;gap:var(--space-2)}
/* Task138: grouped order navigation, existing palette, no horizontal tab strip. */
.order-tabs{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,4fr) minmax(0,3fr);overflow:visible;position:static;gap:16px;padding:4px 0 12px}
.order-tab-group{min-width:0}.order-tab-group-label{display:block;font-size:var(--text-12);color:var(--muted);margin:0 8px 4px}
.order-tab-group>div{display:flex;flex-wrap:wrap;gap:2px}.order-tabs button{padding:8px 10px;font-size:var(--text-13);min-height:44px}
.order-tabs button.active{font-weight:550}
.order-money{position:relative;padding:16px 24px;margin-bottom:14px;background:var(--white);border-bottom:1px solid var(--line)}
.order-money dl{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;margin:0;padding-right:16px}
.order-money dt{font-size:var(--text-12);color:var(--muted)}.order-money dd{font-size:var(--text-20);font-weight:500;line-height:1.5;margin:4px 0 0;overflow-wrap:anywhere}.order-money .is-overdue dd{color:var(--danger)}
.order-money>.action-info{position:absolute;right:4px;top:10px}.order-money-state{padding:16px;margin-bottom:14px}
.order-context{padding:0 4px 16px;color:var(--ink-2)}.order-context b{font-size:var(--text-13);font-weight:550}.order-context p{margin:4px 0;overflow-wrap:anywhere}.order-context small{color:var(--muted);font-size:var(--text-12)}
.order-warranty{margin-bottom:14px}
@media(max-width:760px){.order-tabs{grid-template-columns:1fr;gap:4px}.order-tab-group{display:grid;grid-template-columns:58px minmax(0,1fr);align-items:start}.order-tab-group-label{margin:12px 0 0;font-size:var(--text-12)}.order-tab-group>div{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}.order-tabs button{padding:8px 2px;white-space:normal;line-height:1.25}.order-money{padding:14px 12px}.order-money dl{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.order-money dd{font-size:var(--text-20)}}

/* 外观 D 方案（老板 2026-11-03 选定并点头）：内容不变，只改样子。白卡细线、数字轻、红色只给要处理的事、一张数字卡 + 一本清单。 */
/* 三个方向共用：内容不变，只收字重、字号、框线 */
:root{--ink:rgb(21 38 56);--ink-2:rgb(74 88 104);--muted:rgb(120 131 143);--accent:rgb(21 38 56);--accent-soft:rgb(240 243 246);--radius-sm:4px;--radius-md:6px;--radius-lg:8px;--shadow-1:none;--shadow-2:none;--shadow:none}
.eyebrow{display:none}
.heading .sub{font-size:12.5px;color:var(--muted)}
.wb-overview .heading>div:first-child{display:none}
.wb-overview .heading:not(:has(.heading-action)){display:none}
.brand-sub{white-space:nowrap;font-size:12px;letter-spacing:1.6px}
.brandname{font-size:15px;font-weight:600;letter-spacing:0}
.brandname span{font-weight:400}
.sidebar .wordmark{gap:6px;padding:0 4px;min-width:0}
.sidebar .brandname{font-size:12px;letter-spacing:0;line-height:1.2;white-space:nowrap}
.mobile-brand{letter-spacing:0;white-space:nowrap}
@media(max-width:700px){.mobile-brand{font-size:14px;letter-spacing:0;white-space:nowrap}}
.topbar>b{font-size:15px;font-weight:600}
.language-picker>span{display:none}
.sync-bar{font-size:12px;color:var(--muted);margin-bottom:14px}

.nav-group-title{font-size:12px;font-weight:500;letter-spacing:.8px;color:var(--muted)}

.nav button .icon{width:16px;height:16px;stroke-width:1.5}
.dash-hero .dash-focal b{font-size:44px;font-weight:300;letter-spacing:-1px;line-height:1.1}
.dash-hero .panel-head h2,.dash-today h2{font-size:14px;font-weight:600}
.dash-hero .overview-numbers b{font-weight:500}
.dash-mini-cell b{font-size:17px;font-weight:400}
.dash-mini-wrap:first-of-type .dash-mini-cell:first-child.is-hot b{color:var(--ink)}
.dash-meter-track{height:3px}.dash-meter-label b{font-weight:500}
.dash-conic{width:52px;height:52px;-webkit-mask:radial-gradient(farthest-side,transparent 82%,rgb(0 0 0) 83%);mask:radial-gradient(farthest-side,transparent 82%,rgb(0 0 0) 83%)}
.dash-today-count b{font-weight:400}
.dash-today-item strong{font-weight:500;font-size:13.5px}
.dash-today-kicker{font-weight:500;font-size:12px;color:var(--muted)}
.dash-today-item.is-hot .dash-today-kicker{color:var(--danger)}
.dash-mini-note,.wb-scope{font-size:12px;color:var(--muted)}
.wb-kpi strong{font-weight:300}
.wb-order h3{font-weight:500}
:root{--bg:rgb(245 246 248);--line:rgb(232 235 239)}
.sidebar{background:rgb(245 246 248);border-right:1px solid var(--line)}
.nav-group+.nav-group{border-top:0}
.nav button.active{background:var(--white);color:var(--ink);font-weight:500;box-shadow:0 0 0 1px var(--line)}
.topbar{background:rgb(245 246 248);border-bottom:0}
.panel,.dash-today,.dash-mini-cell{border-color:var(--line);background:var(--white)}

/* 方向 D「数字带」：在 C 之上叠加。想法：一张卡装下所有数字（焦点数字 + 两排小格并成一条对齐的数字带），
   订单从 6 张同样大的卡片改成一本清单（一张面板里的横向行）。页面只剩 3 块面：数字卡、清单、今天要处理。只靠 CSS。 */
:root{--line:rgb(228 232 236);--bg:rgb(246 247 249);--accent:rgb(21 38 56)}
.sidebar{background:var(--white);border-right:1px solid var(--line)}
.nav-group+.nav-group{border-top:0}
/* Task 148 phone menu: the desktop sidebar keeps a title on a one-entry group.
   In the floating menu that title is hidden, and back-to-back one-entry groups
   sit together without the section gap, so a short job is not a tall stack of headings.
   The entries themselves stay; colors are unchanged. */
@media(max-width:760px){
 .mobile-menu .nav-group:not(:has(button+button))>.nav-group-title{display:none}
 .mobile-menu .nav-group:not(:has(button+button))+.nav-group:not(:has(button+button)){margin-top:0;padding-top:0}
}
.nav button.active{background:var(--accent-soft);color:var(--ink);font-weight:500;box-shadow:none}
.topbar{background:var(--white);border-bottom:1px solid var(--line)}
.sync-bar{margin-bottom:18px}
.dash-layout{gap:24px;grid-template-columns:minmax(0,1fr) 300px}

/* 1. 数字卡：焦点数字在左、图在右，下面接数字带 */
.dash-hero{border-radius:8px 8px 0 0!important;border-bottom:0;box-shadow:none;margin-bottom:0}
.dash-hero .panel-head{padding:22px 28px 0}
.dash-hero .panel-head h2{font-size:13px;font-weight:600;letter-spacing:.2px}
.dash-hero .panel-head span{font-size:12px}
.dash-hero .panel-body{padding:4px 28px 22px;display:grid;grid-template-columns:minmax(0,1fr) 300px;grid-template-rows:auto auto;column-gap:40px;row-gap:14px;align-items:end}
.dash-hero .overview-numbers{grid-area:1/1/2/2;display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px 40px}
.dash-hero .dash-focal{flex:1 0 100%}
.dash-hero .dash-focal>span,.dash-hero .overview-numbers>div>span{display:block;font-size:12px;color:var(--muted)}
.dash-hero .dash-focal b{display:block;font-size:52px;font-weight:300;letter-spacing:-1.5px;line-height:1.1;margin:4px 0 2px;color:var(--ink);white-space:nowrap}
.dash-hero .dash-focal small{font-size:12px;margin-top:0}
.dash-hero .overview-numbers>div:not(.dash-focal) b{font-size:20px;font-weight:400;display:block;margin-top:2px}
.dash-hero .dash-visuals{grid-area:1/2/3/3;align-self:end;margin:0 0 4px;flex-direction:column;align-items:stretch;gap:16px}
.dash-hero .dash-meter{flex:0 0 auto}
.dash-hero .dash-ring{gap:14px}
.dash-conic{width:64px;height:64px}
.dash-ring figcaption b{font-weight:500;font-size:13px}
.dash-hero .dash-mini-note{grid-area:3/2/4/3;margin:0;font-size:12px}
.dash-hero details.action-info{grid-area:2/1/3/2;justify-self:start;align-self:center}
.dash-hero .panel-body>.btn{grid-area:2/1/3/2;justify-self:start;align-self:center;margin-left:48px;position:relative;z-index:1}
.action-info>summary{width:30px;height:30px;font-size:15px;color:var(--muted);border-color:var(--line)}

/* 数字带：口径行 + 两排对齐的格子，和数字卡连成一张 */
.wb-scope{margin:0;padding:16px 28px 10px;background:var(--white);border:1px solid var(--line);border-top:1px solid var(--line);border-bottom:0;font-size:12px;letter-spacing:.2px;color:var(--muted)}
.dash-mini-wrap{margin:0;padding:0 28px 14px;background:var(--white);border:1px solid var(--line);border-top:0}
.dash-mini-wrap:last-of-type{border-radius:0 0 8px 8px;padding-bottom:20px;margin-bottom:28px}
.dash-mini-wrap+.dash-mini-wrap{padding-top:16px;border-top:1px solid var(--line)}
.dash-mini{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0}
.dash-mini-cell{background:transparent;border:0;border-left:1px solid var(--line);border-radius:0;padding:2px 0 2px 18px}
.dash-mini-cell:first-child{border-left:0;padding-left:0}
.dash-mini-cell span{font-size:12px}
.dash-mini-cell b{font-size:22px;font-weight:400;letter-spacing:-.3px;margin-top:4px}
.dash-mini[aria-label="全公司合计"] .dash-mini-cell:first-child b{color:var(--ink)}
.dash-mini-note{margin:8px 0 0;font-size:12px;color:var(--muted)}

/* 2. 筛选：四个状态改成文字页签，三个列表页签和搜索收成一行 */
.wb-overview .wb-kpis{gap:0 32px;margin:0;border-bottom:1px solid var(--line)}
.wb-overview .wb-kpis>.wb-kpi{flex:0 0 auto;border:0;border-radius:0;background:transparent;padding:4px 0 12px;box-shadow:inset 0 -2px 0 transparent;gap:8px}
.wb-overview .wb-kpis>.wb-kpi>*{align-self:center}
.wb-overview .wb-kpi.selected{background:transparent;box-shadow:inset 0 -2px 0 var(--ink)}
.wb-overview .wb-label{font-size:13px;font-weight:500;color:var(--ink-2)}
.wb-overview .wb-kpi.selected .wb-label{color:var(--ink)}
.wb-overview .wb-label i{width:6px;height:6px}
/* Task 151: a legend dot is gray at 0. Red is only for a count above 0. */
.wb-overview .wb-kpi.zero i{background:var(--muted)}
.wb-overview .wb-kpi strong{font-size:15px;font-weight:400;color:var(--muted)}
.wb-overview .wb-kpi.selected strong{color:var(--ink)}
.wb-toolbar{margin:16px 0 28px;gap:12px}
.wb-tabs{gap:4px}
.wb-tabs .btn{border-color:transparent;background:transparent;color:var(--muted);padding:6px 10px;font-size:12.5px}
.wb-tabs .btn.primary{background:var(--accent-soft);border-color:transparent;color:var(--ink);font-weight:500}
#workbench-search .input{min-height:36px;padding:6px 12px;font-size:13px;border-color:var(--line);border-radius:4px;width:280px}
#workbench-search .btn{min-height:36px;padding:6px 14px;font-size:12.5px;border-radius:4px}

/* 3. 清单：一张面板，一单一行 */
.wb-list-heading{margin-bottom:10px;padding:0 2px}
.wb-list-heading h2{font-size:14px;font-weight:600}
.wb-list-heading>span{font-size:12px}
.wb-overview .wb-orders{gap:0;background:var(--white);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.wb-overview .wb-order{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"title chips" "code flow" "next flow" "foot foot" "block block";column-gap:48px;row-gap:0;padding:16px 28px!important;border:0!important;border-top:1px solid var(--line)!important;border-radius:0!important;background:var(--white);box-shadow:none}
.wb-overview .wb-order:first-child{border-top:0!important}
.wb-overview .wb-order:hover{background:rgb(250 251 252);transform:none}
.wb-overview .wb-order h3{grid-area:title;font-size:15px;font-weight:500;line-height:1.4;margin:0}
.wb-overview .wb-code{grid-area:code;margin:2px 0 0;font-size:12px;color:var(--muted)}
.wb-overview .wb-next{grid-area:next;margin:6px 0 0;font-size:13px;color:var(--ink-2)}
.wb-overview .wb-settlement{grid-column:1;font-size:12px;color:var(--muted)}
.wb-overview .wb-order-top{grid-area:chips;justify-content:flex-end;align-self:start;gap:6px;flex-wrap:nowrap}
.wb-overview .wb-order .chip{background:transparent;border:1px solid var(--line);color:var(--ink-2);padding:1px 8px;font-size:12px;line-height:1.6;white-space:nowrap}
.wb-overview .wb-order .chip.warm,.wb-overview .wb-order .chip.rose{color:var(--ink-2);background:transparent}
.wb-overview .wb-flag{font-size:12px;color:var(--warm)}
.wb-overview .wb-flag.late{color:var(--danger)}
.wb-overview .wb-order .dash-flow{grid-area:flow;align-self:start;margin:10px 0 0;padding:0!important}
.wb-overview .dash-flow span{flex:1 1 0;min-width:0;font-size:0;gap:5px;color:var(--muted)}
.wb-overview .dash-flow .current{font-size:12px;font-weight:500;color:var(--ink);white-space:nowrap}
.wb-overview .dash-flow i{width:7px;height:7px}
.wb-overview .dash-flow span:not(:last-child)::before{height:1px;top:3px}
.wb-overview .wb-order-foot{grid-area:foot;margin-top:8px;padding-top:0;border-top:0;font-size:12px;color:var(--muted)}
.wb-overview .wb-block{grid-area:block;margin-top:4px;font-size:12px}
.wb-pagination{margin:14px 2px;font-size:12px}

/* 4. 今天要处理：同一套卡，字再收一级 */
.dash-today{padding:20px 22px 12px;border-radius:8px;top:16px}
.dash-today h2{font-size:14px;margin-bottom:2px}
.dash-today-count{font-size:12px;margin-bottom:10px}
.dash-today-count b{font-size:22px;font-weight:300;color:var(--ink)}
.dash-today-item{padding:12px 0}
.dash-today-item strong{font-size:13.5px;font-weight:500;margin-top:2px}
.dash-today-kicker{font-size:12px;letter-spacing:.3px}

/* 手机 */
@media(max-width:760px){
 .dash-layout{gap:16px;align-items:stretch}
 .dash-main{min-width:0;max-width:100%}
 .dash-hero .panel-head{padding:18px 18px 0}
 .dash-hero .panel-body{display:block;padding:4px 18px 18px}
 .dash-hero .dash-focal b{font-size:34px;letter-spacing:-1px;white-space:normal;overflow-wrap:anywhere}
 .dash-hero .dash-visuals{margin-top:16px;gap:12px}
 .dash-hero .dash-mini-note{margin-top:8px}
 .dash-hero details.action-info{display:inline-block;margin-top:12px}
 .dash-hero .panel-body>.btn{margin:12px 0 0 10px}
 .wb-scope{padding:14px 18px 8px}
 .dash-mini-wrap{padding:0 18px 12px}
 .dash-mini-wrap:last-of-type{margin-bottom:20px}
 .dash-mini{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:12px}
 .dash-mini-cell:nth-child(odd){border-left:0;padding-left:0}
 .dash-mini-cell b{font-size:19px}
 .wb-overview .wb-kpis{gap:0 20px;flex-wrap:wrap}
 .wb-overview .wb-kpis>.wb-kpi{white-space:nowrap}
 .wb-toolbar{margin:14px 0 20px}
 #workbench-search .input{width:auto}
 .wb-overview .wb-order{grid-template-columns:minmax(0,1fr);grid-template-areas:"chips" "title" "code" "next" "flow" "foot" "block";padding:14px 16px!important}
 .wb-overview .wb-order-top{justify-content:flex-start;flex-wrap:wrap}
 .wb-overview .wb-order .dash-flow{margin-top:12px}
}
/* D 延伸到其他页面：同一语言——白卡少、细线分隔、数字轻、红色只给要处理的事 */
/* 岗位工作台的大数字 */
.dash-focal-num{font-weight:300;letter-spacing:-1.5px;font-size:56px}
/* 老板台 */
.owner-desk{display:grid;gap:14px;max-width:1120px}
.desk-top h1{font-size:20px;font-weight:600}
.desk-strip{gap:0;background:var(--white);border:1px solid var(--line);border-radius:8px;padding:16px 0}
.desk-jump{border:0;border-left:1px solid var(--line);border-radius:0;background:none;padding:2px 20px}
.desk-jump:first-child{border-left:0}
.desk-jump b{font-size:30px;font-weight:300;letter-spacing:-.5px;line-height:1.2}
.desk-jump span{font-size:12px}
.desk-block{padding:18px 20px}
.desk-head h2{font-size:14px;font-weight:600}
.desk-count{font-weight:500;background:none;padding:0 2px;color:var(--muted)}
.desk-count.is-hot{background:none;color:var(--danger)}
.desk-row{padding:11px 0}.desk-row strong{font-size:13.5px;font-weight:500}
.desk-kicker{font-size:12px;font-weight:500;color:var(--muted)}
.desk-detail{font-size:12.5px;color:var(--ink-2)}
.desk-tiles{gap:0}
.desk-tile{background:none;border-left:1px solid var(--line);border-radius:0;padding:2px 20px}
.desk-tile:first-child{border-left:0;padding-left:0}
.desk-tile b{font-size:20px;font-weight:400;font-variant-numeric:tabular-nums}
.desk-tile.is-hot{background:none}
.desk-person-head strong{font-weight:500;font-size:13.5px}
.desk-work{border:0;border-top:1px solid var(--line);border-radius:0;padding:8px 0;background:none}
/* 应收 / 财务数字 */
.data-metrics{gap:0}
.data-metrics>div{border-width:0 0 0 1px;border-style:solid;border-color:var(--line);background:none;border-radius:0;padding:2px 20px}
.data-metrics>div:first-child{border-left:0;padding-left:0}
.data-metrics dd{font-size:20px;font-weight:400;font-variant-numeric:tabular-nums}
.data-metrics dt{font-size:12px;color:var(--muted)}
.data-section-title{font-size:13px;font-weight:600;margin:24px 0 10px}
.intake-facts dd{font-weight:400}
.data-filters .input{border-color:var(--line);border-radius:6px}
/* 老板订单总览：卡片收成清单 */
.overview-stats{gap:0;background:var(--white);border:1px solid var(--line);border-radius:8px;padding:16px 0}
.overview-stats button{border:0;border-left:1px solid var(--line);border-radius:0;background:none;padding:2px 20px;box-shadow:none}
.overview-stats button:first-child{border-left:0}
.overview-stats button b,.overview-stats button strong{font-size:30px;font-weight:300}
.overview-card{box-shadow:none;padding:18px 20px}
.overview-card h2{font-size:15px;font-weight:500}
.overview-card.attention,.overview-card.is-hot{border-left:2px solid var(--danger)}
.overview-alerts{background:none;border:0;padding:0}.overview-alerts b{font-weight:500}
.overview-step b{font-weight:500}
.overview-numbers b{font-weight:400}
.heading h1{font-size:20px;font-weight:600;letter-spacing:0}
.heading{margin-bottom:14px}
.data-filters{align-items:start}
/* 登录页：白色 logo 融进深蓝，去掉白底块 */
.login-brand .brandmark{background-color:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;padding:0!important;filter:brightness(0) invert(1)}
.login-brand .brandname,.login-brand .brandname span{color:var(--white)}

/* 尺寸收紧只在电脑端；手机保留 44px 触控高度 */
@media(min-width:701px){
.nav button{font-weight:400;font-size:13.5px;min-height:36px;padding-top:6px;padding-bottom:6px;border-radius:4px}
.sync-bar .btn{min-height:30px;padding:4px 10px;font-size:12px;border-radius:4px}
.topbar{height:64px}.account-nav{min-height:40px;padding:3px 10px;border:0}.topbar .icon-btn,.topbar .btn{min-height:36px}
.data-filters .input{min-height:36px}
}
@media(max-width:700px){.nav button{font-weight:400}}

/* Read-only owner rules follow the existing D settings panels. */
.owner-rule-section{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.owner-rule-section h3{margin-bottom:8px}
.owner-rule-list{margin:12px 0 0}
.owner-rule-list>div{display:grid;grid-template-columns:minmax(140px,1fr) minmax(0,2fr);gap:16px;padding:14px 0;border-bottom:1px solid var(--line)}
.owner-rule-list dt,.owner-rule-list dd{margin:0;overflow-wrap:anywhere;min-width:0}
.owner-rule-list dd .hint{margin-top:6px}
@media(max-width:600px){.owner-rule-list>div{grid-template-columns:minmax(0,1fr);gap:6px}}
/* task144：老板订单总览改成一本清单、一单一行，对齐工作台 D。不新增颜色。 */
.boss-overview .overview-grid{display:flex;flex-direction:column;gap:0;background:var(--white);border:1px solid var(--line);border-radius:8px;overflow:hidden;align-items:stretch}
.boss-overview .overview-card{display:grid;grid-template-columns:minmax(0,1fr) 320px;grid-template-areas:"title chips" "code flow" "next flow" "foot foot" "block block" "more more";column-gap:48px;row-gap:0;margin:0;padding:16px 28px;border:0;border-radius:0;border-top:1px solid var(--line);box-shadow:none;background:var(--white);min-width:0}
.boss-overview .overview-card:first-child,.boss-overview .overview-card.attention:first-child,.boss-overview .overview-card.is-hot:first-child{border-top:0}
.boss-overview .overview-card.attention,.boss-overview .overview-card.is-hot{border-top:1px solid var(--line);border-left:0}
.boss-overview .overview-card.is-hot{box-shadow:inset 2px 0 0 var(--danger)}
.boss-overview .overview-card:hover{background:rgb(250 251 252)}
.boss-overview .overview-row-top{grid-area:chips;justify-self:end;align-self:start;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:6px}
.boss-overview .overview-card h2{grid-area:title;margin:0;font-size:15px;font-weight:500;line-height:1.4}
.boss-overview .overview-row-code{grid-area:code;margin:2px 0 0;min-width:0}
.boss-overview .overview-code,.boss-overview .overview-customer{margin:0;font-size:12px;color:var(--muted)}
.boss-overview .overview-next{grid-area:next;margin:6px 0 0;padding:0;background:transparent;border-radius:0}
.boss-overview .overview-label{display:inline;margin-right:6px;font-size:12px;letter-spacing:0;color:var(--muted);font-weight:500}
.boss-overview .overview-step{display:inline;margin:0 8px 0 0;font-size:13px;color:var(--ink-2)}
.boss-overview .overview-step b{font-weight:500;color:var(--ink)}
.boss-overview .overview-step span{color:var(--ink-2)}
.boss-overview .overview-card .dash-flow{grid-area:flow;align-self:start;margin:10px 0 0;padding:0}
.boss-overview .dash-flow span{flex:1 1 0;min-width:0;font-size:0;gap:5px;color:var(--muted)}
.boss-overview .dash-flow .current{font-size:12px;font-weight:500;color:var(--ink);white-space:nowrap}
.boss-overview .dash-flow i{width:7px;height:7px}
.boss-overview .dash-flow span:not(:last-child)::before{height:1px;top:3px}
.boss-overview .overview-row-foot{grid-area:foot;margin-top:8px;display:flex;flex-wrap:wrap;gap:4px 16px;font-size:12px;color:var(--muted)}
.boss-overview .overview-row-block{grid-area:block;margin-top:4px;font-size:12px;color:var(--ink-2)}
.boss-overview .overview-row-block.is-hot,.boss-overview .overview-row-block.is-hot b{color:var(--danger)}
.boss-overview .overview-row-more{grid-area:more;min-width:0}
.boss-overview .overview-details{margin-top:8px;padding:8px 0 0;background:transparent;border-top:1px solid var(--line)}
.boss-overview .overview-card-footer{padding:8px 0 0;text-align:left}
.boss-overview .overview-card .chip{background:transparent;border:1px solid var(--line);color:var(--ink-2);padding:1px 8px;font-size:12px;line-height:1.6;max-width:none}
.boss-overview .overview-card .chip.warm,.boss-overview .overview-card .chip.blue{color:var(--ink-2);background:transparent}
/* task144：安装队 / 工厂 / 售后首页只留手上订单和今天要处理，两张白卡。 */
.wb-field-home .wb-hand{background:var(--white);border:1px solid var(--line);border-radius:8px;overflow:hidden}
.wb-field-home .dash-hero{border:0!important;border-radius:0!important;box-shadow:none;margin:0;padding:18px 28px 4px}
.wb-field-home .wb-list-heading{padding:0 28px}
.wb-field-home .wb-hand .wb-orders{border:0;border-radius:0;background:transparent}
.wb-field-home .wb-pagination{margin:8px 28px 16px}
@media(max-width:760px){
 .boss-overview .overview-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"chips" "title" "code" "next" "flow" "foot" "block" "more";padding:14px 16px}
 .boss-overview .overview-row-top{justify-self:start;justify-content:flex-start}
 .boss-overview .overview-card .dash-flow{margin-top:12px}
 .wb-field-home .dash-hero{padding:16px 16px 4px}
 .wb-field-home .wb-list-heading{padding:0 16px}
 .wb-field-home .wb-pagination{margin:8px 16px 14px}
}
/* Task 145: 乙 · 大数字. Same D tokens — white, hairline, blue-black, light figures. Red only for what needs handling. */
.owner-desk.is-numbers{max-width:none}
.owner-desk.is-numbers .desk-strip{display:none}
.desk-board{display:grid;gap:12px;min-width:0}
.desk-board-grid{display:grid;gap:12px;min-width:0;grid-template-columns:minmax(0,1.15fr) minmax(0,.85fr)}
.desk-chart,.desk-stage-line,.desk-checkin{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:8px;padding:14px 16px}
.desk-checkin{display:block;width:100%;margin:0;text-align:left;color:inherit;font:inherit;cursor:pointer}
.desk-chart h2,.desk-checkin h2,.desk-stage-line b{margin:0 0 10px;font-size:14px;font-weight:600}
.desk-stage-line b{display:block}
.desk-chart-note{margin:8px 0 0;font-size:12px;line-height:1.55;color:var(--muted)}
.desk-unreg{margin:4px 0;font-size:20px;font-weight:300;letter-spacing:-.3px;color:var(--muted)}
.desk-plain{margin:4px 0;font-size:var(--text-14);font-weight:400;line-height:1.6;letter-spacing:0;color:var(--muted)}
.desk-late{margin:8px 0 0;font-size:13px;font-weight:400;color:var(--ink-2)}
.desk-late.is-hot,.desk-figure.is-hot b,.desk-miss,.desk-hbar-name small.is-hot{color:var(--danger)}
.desk-miss{font-size:12px;font-weight:400}
.desk-hbar{display:grid;grid-template-columns:minmax(0,8.5em) minmax(0,1fr) auto;gap:4px 10px;align-items:center;padding:6px 0}
.desk-hbar-name{font-size:12px;line-height:1.4;color:var(--ink-2);overflow-wrap:anywhere}
.desk-hbar-name em{display:block;font-style:normal;color:var(--muted);font-size:12px}
.desk-hbar-name small{display:block;font-size:12px;font-weight:400;color:var(--muted)}
.desk-hbar-track{display:block;height:6px;background:var(--line);border-radius:3px;overflow:hidden}
.desk-hbar-track i{display:block;height:100%;width:0;background:var(--accent);border-radius:3px}
.desk-hbar b{font-size:16px;font-weight:300;letter-spacing:-.3px;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.desk-hbar.is-hot .desk-hbar-track i{background:var(--danger)}
.desk-hbar.is-blank{grid-template-columns:minmax(0,1fr) auto}
.desk-hbar-miss{font-size:13px;font-weight:400;color:var(--muted)}
.desk-figures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.desk-figure{min-width:0;padding:2px 16px;border-left:1px solid var(--line)}
.desk-figure:first-child{border-left:0;padding-left:0}
.desk-figure span{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
.desk-figure b{display:block;margin-top:4px;font-size:32px;font-weight:300;letter-spacing:-.8px;line-height:1.15;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.desk-figure.is-blank b{font-size:22px;font-weight:400;letter-spacing:0;color:var(--muted)}
.desk-figure i{display:block;height:3px;margin-top:10px;background:var(--line);border-radius:2px;position:relative}
.desk-figure i::after{content:"";position:absolute;left:0;top:0;bottom:0;width:var(--w,0%);background:var(--accent);border-radius:2px}
.desk-stage-line>span{display:block;margin-top:4px;font-size:22px;font-weight:300;color:var(--muted)}
.desk-stage-figures{margin-top:4px;grid-template-columns:repeat(7,minmax(0,1fr))}
.desk-stage-figures .desk-figure b{font-size:22px;letter-spacing:-.4px}
.desk-checkin .desk-figures{grid-template-columns:repeat(4,minmax(0,1fr))}
.desk-stack{display:flex;gap:3px;height:10px;border-radius:4px;overflow:hidden;background:var(--line)}
.desk-stack i{display:block;min-width:3px;background:var(--danger);border-radius:2px}
.desk-stack i.is-empty{flex:1;min-width:0;background:transparent}
.desk-legend{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:1fr 1fr;gap:6px 16px}
.desk-legend li{display:flex;justify-content:space-between;gap:8px;min-width:0;padding-top:4px;border-top:1px solid var(--line);font-size:12px;color:var(--ink-2)}
.desk-legend span{overflow-wrap:anywhere}
.desk-legend b{font-weight:400;font-variant-numeric:tabular-nums;color:var(--ink)}
.desk-legend .is-hot span,.desk-legend .is-hot b{color:var(--danger);font-weight:300}
.desk-legend .is-blank b{color:var(--muted);font-weight:400}
@media(max-width:700px){
 .desk-board-grid{grid-template-columns:minmax(0,1fr)}
 .desk-hbar{grid-template-columns:minmax(0,1fr) auto}
 .desk-hbar-track{grid-column:1/-1}
 .desk-figures{grid-template-columns:1fr}
 .desk-figure{border-left:0;padding:10px 0 0}
 .desk-figure:nth-child(n+2){border-top:1px solid var(--line);margin-top:8px}
 .desk-figure b{font-size:28px}
 .desk-checkin .desk-figures,.desk-stage-figures{grid-template-columns:repeat(2,minmax(0,1fr))}
 .desk-checkin .desk-figure,.desk-stage-figures .desk-figure{border-top:0;margin-top:0;padding:8px 12px}
 .desk-checkin .desk-figure:nth-child(odd),.desk-stage-figures .desk-figure:nth-child(odd){border-left:0;padding-left:0}
 .desk-stage-figures .desk-figure b{font-size:22px}
 .desk-legend{grid-template-columns:1fr}
}
/* Task 149: spread 乙 · 大数字 onto 本月钱一览, 应收合计, 老板订单总览的数字条,
   and the office workbench signing / company-total row. Installer, factory and
   aftercare homes are not in this block. The boss desk keeps its own rules above. */
.owner-money-top{margin:0 0 14px}
.owner-money-top .desk-figures{grid-template-columns:repeat(4,minmax(0,1fr));background:var(--white);border:1px solid var(--line);border-radius:8px;padding:14px 16px}
.owner-money-top .desk-figure b{white-space:normal}
.desk-figure small{display:block;margin-top:4px;font-size:12px;line-height:1.5;color:var(--ink-2);overflow-wrap:anywhere}
.desk-figure small em{font-style:normal;font-weight:600;color:var(--ink-2)}
.desk-figure small em.is-up{color:var(--chart)}
.money-charts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0 0 14px}
.money-card{min-width:0;background:var(--white);border:1px solid var(--line);border-radius:8px;padding:14px 16px}
.money-card.is-wide{grid-column:1 / -1}
.money-card h2{margin:0;font-size:14px;font-weight:600}
.money-card-note{margin:2px 0 12px;font-size:12px;line-height:1.55;color:var(--muted)}
.money-card h2+.desk-plain,.money-card h2+.money-hbars{margin-top:10px}
.money-cols{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
.money-col{display:flex;flex-direction:column;align-items:center;min-width:0}
.money-col-val{font-size:12px;color:var(--ink-2);font-variant-numeric:tabular-nums;white-space:nowrap}
.money-col-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;width:100%;height:150px;margin-top:4px;border-bottom:1px solid var(--line)}
.money-col-bars i{display:block;width:38%;max-width:40px;border-radius:3px 3px 0 0;background:var(--chart)}
.money-col-bars i.is-now{background:var(--chart-mid)}
.money-col-bars i.is-legacy{background:var(--chart-legacy)}
.money-col-name{margin-top:6px;font-size:12px;color:var(--muted);white-space:nowrap}
.money-legend{list-style:none;display:flex;flex-wrap:wrap;gap:4px 14px;margin:10px 0 0;padding:0;font-size:12px;color:var(--ink-2)}
.money-legend i,.money-ring-list i{display:inline-block;width:10px;height:10px;margin-right:6px;border-radius:2px;vertical-align:-1px;background:var(--chart)}
.money-legend i.is-now,.money-ring-list i.is-waiting{background:var(--chart-mid)}
.money-legend i.is-legacy{background:var(--chart-legacy)}
.money-ring-list i.is-unpaid{background:var(--danger)}
.money-ring-row{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.money-ring{position:relative;flex:none;width:132px;height:132px}
.money-ring svg{display:block;width:100%;height:100%;transform:rotate(-90deg)}
.money-ring circle.is-verified{stroke:var(--chart)}
.money-ring circle.is-waiting{stroke:var(--chart-mid)}
.money-ring circle.is-unpaid{stroke:var(--danger)}
.money-ring-mid{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center}
.money-ring-mid b{font-size:24px;font-weight:300;letter-spacing:-.4px;font-variant-numeric:tabular-nums;color:var(--ink)}
.money-ring-mid span{font-size:12px;color:var(--muted)}
.money-ring-list{list-style:none;flex:1 1 160px;min-width:0;margin:0;padding:0;display:grid;gap:8px}
.money-ring-list li{display:flex;justify-content:space-between;gap:8px;font-size:13px;color:var(--ink-2)}
.money-ring-list b{font-weight:400;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
.money-total{margin:0 0 10px;font-size:13px;color:var(--ink-2)}
.money-total b{font-weight:600;font-variant-numeric:tabular-nums;color:var(--ink)}
.money-total b.is-hot{color:var(--danger)}
.money-hbars{display:grid;gap:9px}
.money-hbar{display:grid;grid-template-columns:minmax(0,5.5em) minmax(0,1fr) auto;gap:8px;align-items:center;font-size:13px;color:var(--ink-2)}
.money-hbar>span:first-child{overflow-wrap:anywhere}
.money-hbar-track{display:block;height:12px;background:var(--surface-2);border-radius:4px;overflow:hidden}
.money-hbar-track i{display:block;height:100%;background:var(--chart);border-radius:4px}
.money-hbar.is-hot .money-hbar-track i{background:var(--danger)}
.money-hbar b{font-size:12px;font-weight:400;font-variant-numeric:tabular-nums;color:var(--ink);white-space:nowrap}
@media (max-width:760px){.money-charts{grid-template-columns:minmax(0,1fr);gap:8px;margin-bottom:8px}.money-card{padding:12px}.money-col-bars{height:120px}.money-cols{gap:4px}.owner-money-top .desk-figures .desk-figure b{font-size:20px;letter-spacing:-.3px;overflow-wrap:anywhere}}
.yi-notes{margin:0 0 16px}
.yi-notes>summary{cursor:pointer;font-size:13px;font-weight:500;color:var(--ink-2);list-style:none}
.yi-notes>summary::-webkit-details-marker{display:none}
.yi-notes[open]>summary{margin-bottom:6px}
.yi-notes .hint{margin:6px 0}
.boss-overview .overview-stats.desk-figures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;margin:0 0 16px;padding:14px 16px;background:var(--white);border:1px solid var(--line);border-radius:8px}
.boss-overview .overview-stats.desk-figures button.desk-figure{display:block;width:auto;min-height:0;border:0;border-left:1px solid var(--line);border-radius:0;background:none;box-shadow:none;padding:2px 16px;text-align:left;font:inherit;color:inherit;cursor:pointer}
.boss-overview .overview-stats.desk-figures button.desk-figure:first-child{border-left:0;padding-left:0}
.boss-overview .overview-stats.desk-figures span{display:block;font-size:12px;color:var(--muted)}
.boss-overview .overview-stats.desk-figures strong{display:block;margin-top:4px;font-size:32px;font-weight:300;letter-spacing:-.8px;line-height:1.15;font-variant-numeric:tabular-nums;color:var(--ink)}
.boss-overview .overview-stats.desk-figures button.is-hot strong{color:var(--danger)}
.boss-overview .overview-stats.desk-figures button.is-blank strong{font-size:22px;font-weight:400;letter-spacing:0;color:var(--muted)}
.dash-hero .panel-body:has(.wb-sign-figures){display:block}
.dash-hero .overview-numbers.desk-figures{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;align-items:start}
.dash-hero .overview-numbers.desk-figures>div{flex:none;min-width:0;border-left:1px solid var(--line);border-radius:0;padding:2px 16px}
.dash-hero .overview-numbers.desk-figures>div:first-child{border-left:0;padding-left:0}
.dash-hero .panel-body .overview-numbers.desk-figures>div>b{display:block;margin-top:4px;font-size:32px;font-weight:300;letter-spacing:-.8px;line-height:1.15;color:var(--ink)}
.dash-hero .overview-numbers.desk-figures>div.is-blank>b{font-size:22px;font-weight:400;letter-spacing:0;color:var(--muted)}
.dash-hero .overview-numbers.desk-figures>div>span{display:block;font-size:12px;color:var(--muted)}
.dash-hero .overview-numbers.desk-figures small{display:block;margin-top:4px;font-size:12px;font-weight:400;color:var(--muted)}
.dash-hero .panel-body:has(.wb-sign-figures) .dash-visuals{margin-top:16px}
.dash-mini-wrap .desk-figures{margin:0}
@media(max-width:700px){
 .owner-money-top .desk-figures,.boss-overview .overview-stats.desk-figures,.dash-hero .overview-numbers.desk-figures,.dash-mini-wrap .desk-figures{grid-template-columns:repeat(2,minmax(0,1fr))}
 .owner-money-top .desk-figure,.boss-overview .overview-stats.desk-figures button.desk-figure,.dash-hero .overview-numbers.desk-figures>div,.dash-mini-wrap .desk-figure{border-top:0;margin-top:0;padding:8px 12px}
 .owner-money-top .desk-figure:nth-child(odd),.boss-overview .overview-stats.desk-figures button.desk-figure:nth-child(odd),.dash-hero .overview-numbers.desk-figures>div:nth-child(odd),.dash-mini-wrap .desk-figure:nth-child(odd){border-left:0;padding-left:0}
 .owner-money-top .desk-figure:nth-child(even),.boss-overview .overview-stats.desk-figures button.desk-figure:nth-child(even),.dash-hero .overview-numbers.desk-figures>div:nth-child(even),.dash-mini-wrap .desk-figure:nth-child(even){border-left:1px solid var(--line)}
 .owner-money-top .desk-figure b,.boss-overview .overview-stats.desk-figures strong,.dash-hero .panel-body .overview-numbers.desk-figures>div>b,.dash-mini-wrap .desk-figure b{font-size:28px}
}
/* Task 151: payables list. Three figures stay on one row at 390px. Does not change the boss desk. */
.payables-board .payables-total{margin:0 0 14px}
.payables-board .payables-figures{grid-template-columns:repeat(3,minmax(0,1fr));min-width:0}
.payables-total .payables-figures{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:12px 14px}
.payables-board .desk-figure{min-width:0}
.payables-board .desk-figure b{font-size:28px;font-weight:300;letter-spacing:-.5px;white-space:normal;overflow-wrap:anywhere}
.payables-board .payables-advance{display:block;margin-top:4px;font-size:12px;font-weight:400;line-height:1.45;color:var(--muted)}
.payables-board .payables-figures>.payables-advance{grid-column:2;margin:6px 0 0;padding-left:16px}
.payables-row{background:var(--white);border:1px solid var(--line);border-radius:8px;padding:14px 16px;margin:0 0 12px;min-width:0}
.payables-row header{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:10px}
.payables-row header b{display:block;font-weight:600}
.payables-row header small,.payables-order-name small{display:block;margin-top:2px;color:var(--muted);font-size:12px;line-height:1.45;overflow-wrap:anywhere}
.payables-order{margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.payables-order-name{margin-bottom:8px}
.payables-order .desk-figure b{font-size:18px}
@media(max-width:700px){
 .payables-board .panel-body{padding-left:12px;padding-right:12px}
 .payables-board .payables-figures{grid-template-columns:repeat(3,minmax(0,1fr))}
 .payables-total .payables-figures{padding:10px 8px}
 .payables-board .desk-figure{border-left:1px solid var(--line);border-top:0;margin-top:0;padding:2px 6px}
 .payables-board .desk-figure:first-child{border-left:0;padding-left:0}
 .payables-board .desk-figure:nth-child(n+2){border-top:0;margin-top:0;padding-top:2px}
 .payables-board .desk-figure b,.payables-order .desk-figure b{font-size:15px;letter-spacing:-.2px}
 .payables-board .payables-figures>.payables-advance{grid-column:1/-1;margin-top:8px;padding-left:0}
 .payables-row{padding:12px}
 .payables-row header{flex-wrap:wrap}
}
/* Task 152 phone shell: one screen wide, the bottom bar stays on the viewport, narrow lists stack. */
html{touch-action:manipulation;-webkit-text-size-adjust:100%}
body{touch-action:manipulation}
@media(max-width:760px){
 .bottom-nav{display:flex;position:fixed;left:0;right:0;bottom:0;z-index:80;width:100%;box-sizing:border-box;margin:0;padding:6px 4px calc(6px + env(safe-area-inset-bottom));background:var(--white);border-top:1px solid var(--line);backdrop-filter:none;-webkit-backdrop-filter:none}
 .bottom-nav button{flex:1 1 0;max-width:none;width:auto;min-width:0;white-space:normal;line-height:1.15;font-size:12px;min-height:46px;overflow-wrap:anywhere}
 .content{padding-bottom:calc(132px + env(safe-area-inset-bottom))}
 .mobile-menu{z-index:60;right:12px;bottom:calc(78px + env(safe-area-inset-bottom))}
 .heading:has(+ .owner-money-top){margin-bottom:10px}
 .owner-money-top{margin:0 0 8px}
 .owner-money-top .desk-figures{padding:10px 12px}
 .owner-money-top .desk-chart-note{margin-top:6px}
 .yi-notes{margin:4px 0 0}
 .rcv-figures .desk-figures{grid-template-columns:repeat(2,minmax(0,1fr));background:var(--white);border:1px solid var(--line);border-radius:8px;padding:10px 12px}
 .rcv-figures .desk-figure{border-top:0;margin-top:0;padding:8px 10px}
 .rcv-figures .desk-figure:nth-child(odd){border-left:0;padding-left:0}
 .rcv-figures .desk-figure:nth-child(even){border-left:1px solid var(--line)}
 .rcv-figures .desk-figure b{font-size:26px;font-weight:300}
 .desk-pending .table-scroll{overflow:visible}
 .desk-pending-table{min-width:0}
 .desk-pending-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .desk-pending-table,.desk-pending-table tbody{display:block}
 .desk-pending-table tr{display:block;border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:0 0 10px;background:var(--white)}
 .desk-pending-table td{display:block;width:auto;min-width:0;border:0;padding:3px 0;white-space:normal;overflow-wrap:anywhere}
 .desk-pending-table td[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:450}
 .desk-pending-table .desk-account{font-size:14px;line-height:1.45}
 .desk-pending-table .desk-pending-act{padding-top:8px}
 .rcv-phone .data-table-hint{display:none}
 .rcv-phone .data-table-scroll{overflow:visible;border:0}
 .rcv-phone table.data-table{min-width:0;width:100%}
 .rcv-phone table.data-table thead{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
 .rcv-phone table.data-table,.rcv-phone table.data-table tbody{display:block}
 .rcv-phone table.data-table tr{display:block;border:1px solid var(--line);border-radius:8px;padding:12px 14px;margin:0 0 10px;background:var(--white)}
 .rcv-phone table.data-table th,.rcv-phone table.data-table td{display:block;width:auto;min-width:0;max-width:none;position:static;border:0;padding:4px 0;background:transparent;white-space:normal;text-align:left}
 .rcv-phone table.data-table tbody th{font-size:16px;font-weight:650;padding-bottom:6px}
 .rcv-phone table.data-table td[data-label]::before,.rcv-phone table.data-table th[data-label]::before{content:attr(data-label);display:block;color:var(--muted);font-size:12px;font-weight:450}
}
/* Company directory: one colleague per table row, including on phones. */
.colleague-top{margin:0 0 14px}
.colleague-top .desk-figures{grid-template-columns:repeat(3,minmax(0,1fr));background:var(--white);border:1px solid var(--line);border-radius:8px;padding:14px 16px}
.colleague-note{margin:0 0 16px}
.colleague-table{width:100%;table-layout:fixed;border-collapse:collapse;background:var(--white);font-size:14px;line-height:1.5}
.colleague-name-col{width:25%}.colleague-role-col{width:45%}.colleague-phone-col{width:30%}
.colleague-table th,.colleague-table td{padding:6px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:middle;overflow-wrap:anywhere}
.colleague-table thead th{padding-top:12px;padding-bottom:12px;border-top:1px solid var(--line);color:var(--muted);font-size:12px;font-weight:500}
.colleague-table tbody th{font-weight:500}
.colleague-table .colleague-role{color:var(--muted)}
.colleague-tel{display:inline-flex;align-items:center;max-width:100%;min-height:44px;font-size:14px;font-weight:400;line-height:1.5;font-variant-numeric:tabular-nums;color:var(--ink);text-decoration:none;overflow-wrap:anywhere}
a.colleague-tel{color:var(--accent)}
a.colleague-tel:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:2px}
.colleague-missing{display:inline-flex;align-items:center;min-height:44px;font-size:14px;font-weight:400;color:var(--muted)}
.colleague-table .colleague-empty{padding:20px 16px;color:var(--muted)}
.colleague-table tr.colleague-dept th{padding-top:18px;padding-bottom:8px;background:var(--white);color:var(--ink);font-size:13px;font-weight:600;border-bottom:1px solid var(--line)}
.colleague-table tr.colleague-dept th span{margin-left:10px;color:var(--muted);font-size:12px;font-weight:400}
@media(max-width:760px){
 .colleague-name-col{width:24%}.colleague-role-col{width:36%}.colleague-phone-col{width:40%}
 .colleague-table th,.colleague-table td{padding-left:8px;padding-right:8px}
 .colleague-table .colleague-role{font-size:12px}
 .colleague-top .desk-figures{grid-template-columns:repeat(3,minmax(0,1fr))}
 .colleague-top .desk-figure{border-top:0;margin-top:0;padding:2px 8px}
 .colleague-top .desk-figure:nth-child(n+2){border-top:0;margin-top:0;padding-top:2px}
 .colleague-top .desk-figure:nth-child(3n+1){border-left:0;padding-left:0}
 .colleague-top .desk-figure b{font-size:22px;white-space:normal}
}

/* Task158: every verdict remains readable in the mobile import page. */
.legacy-file-verdict{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr) minmax(0,2fr);gap:12px;margin-bottom:12px;overflow-wrap:anywhere}
.legacy-file-verdict p{margin:6px 0 0}
@media(max-width:600px){.legacy-file-verdict{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.legacy-file-verdict>div:first-child,.legacy-file-verdict>div:last-child{grid-column:1/-1}}
/* Task 155: imported history orders, one 乙 row. Hairline cells, no stage rail.
   Stays one line at 390px; the generic phone rule stacks other .desk-figures. */
button.legacy-history-line{display:block;width:100%;box-sizing:border-box;margin:0;padding:12px 16px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:var(--white);color:inherit;font:inherit;text-align:left;cursor:pointer;box-shadow:none;min-height:0}
button.legacy-history-line:hover{background:rgb(250 251 252)}
button.legacy-history-line .desk-figures{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.75fr) minmax(0,1.45fr) minmax(0,.9fr);gap:0;margin:0}
button.legacy-history-line.has-amount .desk-figures{grid-template-columns:minmax(0,.95fr) minmax(0,.7fr) minmax(0,1.25fr) minmax(0,.8fr) minmax(0,.95fr)}
button.legacy-history-line .desk-figure{min-width:0;border-left:1px solid var(--line);border-top:0;margin:0;padding:2px 10px}
button.legacy-history-line .desk-figure:first-child{border-left:0;padding-left:0}
button.legacy-history-line .desk-figure span{display:block;font-size:12px;color:var(--muted);overflow-wrap:anywhere}
button.legacy-history-line .desk-figure b{display:block;margin-top:2px;font-size:14px;font-weight:400;letter-spacing:0;line-height:1.35;white-space:normal;overflow-wrap:anywhere;color:var(--ink)}
button.legacy-history-line .desk-figure.is-blank b{font-size:13px;font-weight:400;letter-spacing:0;color:var(--muted)}
.boss-overview .overview-grid>button.legacy-history-line:last-child{border-bottom:0}
/* Task 170: the originals cell on a past-order row, past orders under the current list, search results, and the
   originals on the 合同 / 图纸 tabs. */
.legacy-history-line.has-files .desk-figures{grid-template-columns:minmax(0,1.05fr) minmax(0,.75fr) minmax(0,1.45fr) minmax(0,.8fr) minmax(0,.7fr)}
.legacy-history-line.has-amount.has-files .desk-figures{grid-template-columns:minmax(0,.95fr) minmax(0,.7fr) minmax(0,1.25fr) minmax(0,.75fr) minmax(0,.8fr) minmax(0,.7fr)}
.legacy-history-line .desk-figure.is-yes b{color:var(--success);font-weight:600}
.overview-past-head{display:flex;align-items:baseline;flex-wrap:wrap;gap:8px 12px;margin:22px 0 8px}
.overview-past-head b{font-size:16px;font-weight:600}
.overview-past-head span{color:var(--muted);font-size:13px}
.topbar .search{flex:0 1 320px;min-width:0}
.topbar .search-link{display:none}
@media(max-width:950px){.topbar .search-link{display:inline-flex}}
.search-section .panel-head h3 small,.legacy-file-kind h4 small{color:var(--muted);font-weight:400;margin-left:6px}
.search-section .legacy-history-line{border:1px solid var(--line);border-radius:var(--radius-md);margin-top:8px}
.search-section .legacy-history-line:has(+ .search-originals){border-bottom-left-radius:0;border-bottom-right-radius:0}
.search-originals{padding:8px 16px 10px;border:1px solid var(--line);border-top:0;border-radius:0 0 var(--radius-md) var(--radius-md);background:rgb(250 251 252);font-size:13px;color:var(--muted)}
.search-originals-kind{display:flex;flex-wrap:wrap;align-items:center;gap:6px 8px;padding:3px 0}
.search-originals-kind b{flex:0 0 3.6em;color:var(--ink-2);font-weight:600}
.search-original{display:inline-block;max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.legacy-order-facts{margin:10px 0 4px}
.legacy-file-kind h4{margin:16px 0 8px}
.legacy-file-kind:first-child h4{margin-top:0}
.legacy-tab-files .panel-head h3 small{color:var(--muted);font-weight:400;margin-left:6px}
.legacy-manual{margin-top:18px}
/* Task 175: the page of an order signed before this system: the usual summary strip, tab groups side by side, one
   line per original instead of a card with an empty middle. */
.order-summary.legacy-summary{grid-template-columns:minmax(0,2.4fr) repeat(4,minmax(0,1fr))}
.order-tabs.is-compact{display:flex;flex-wrap:wrap;gap:4px 28px}
.legacy-file{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.legacy-file-kind h4+.legacy-file,.legacy-tab-files .panel-body>.legacy-file:first-child{border-top:0;padding-top:0}
.legacy-file-main{flex:1;min-width:0}
.legacy-file-main strong{display:block;font-size:var(--text-14);font-weight:500;overflow-wrap:anywhere}
.legacy-file-main small{display:block;margin-top:2px;color:var(--muted);font-size:var(--text-12)}
.legacy-file-actions{display:flex;gap:8px;flex:none}
.legacy-notes-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
.legacy-origin{margin:12px 2px 0}
@media(max-width:760px){
 .order-summary.legacy-summary{grid-template-columns:1fr 1fr}
 .order-summary.legacy-summary>.is-wide{grid-column:1/-1}
 .order-tabs.is-compact{display:grid;gap:4px}
 .legacy-file{flex-wrap:wrap;gap:8px}
 .legacy-file-actions{width:100%;justify-content:flex-end}
}
.legacy-manual>summary{cursor:pointer;padding:8px 0;color:var(--muted);font-size:13px}
@media(max-width:760px){
 button.legacy-history-line.has-files .desk-figures{grid-template-columns:repeat(5,minmax(0,1fr))}
 button.legacy-history-line.has-amount.has-files .desk-figures{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:8px}
 button.legacy-history-line.has-amount.has-files .desk-figure:nth-child(3n+1){border-left:0;padding-left:0}
 button.legacy-history-line.has-amount.has-files .desk-figure:nth-child(3n+2),button.legacy-history-line.has-amount.has-files .desk-figure:nth-child(3n){border-left:1px solid var(--line);padding-left:4px}
 .search-original{max-width:100%}
 .search-originals{padding:8px 8px 10px}
}

@media(max-width:760px){
 button.legacy-history-line{padding:10px 8px}
 button.legacy-history-line .desk-figures{grid-template-columns:repeat(4,minmax(0,1fr))}
 button.legacy-history-line.has-amount .desk-figures{grid-template-columns:repeat(5,minmax(0,1fr))}
 button.legacy-history-line .desk-figure{border-top:0;margin-top:0;padding:2px 4px}
 button.legacy-history-line .desk-figure:nth-child(n+2){border-top:0;margin-top:0;padding-top:2px}
 button.legacy-history-line .desk-figure:nth-child(odd){border-left:1px solid var(--line);padding-left:4px}
 button.legacy-history-line .desk-figure:first-child{border-left:0;padding-left:0}
 button.legacy-history-line .desk-figure b,button.legacy-history-line .desk-figure.is-blank b{font-size:12px}
}
/* Task 174: the block above was left open (since 23708f0), so everything after it, the whole 157b customer library
   look included, applied on phone widths only. tests/style_braces.cjs keeps the file balanced. */
/* Task 152 (150 walk items 9, 5): phone buttons at least 44px tall (the sync bar keeps its compact size); aftercare
   charges as one card per charge on a phone. */
@media (max-width:700px){
 .content .btn.small,.modal .btn.small{min-height:44px}
 .content .sync-bar .btn{min-height:28px}
 .care-charge-cards{display:grid;gap:var(--space-3)}
 .care-charge-card{padding:var(--space-3) 0;border-top:1px solid var(--line)}
 .care-charge-card:first-child{border-top:0}
 .care-charge-head{display:flex;justify-content:space-between;align-items:flex-start;gap:var(--space-2)}
 .care-charge-head strong{font-size:var(--text-14);overflow-wrap:anywhere}
 .care-charge-meta{margin:4px 0 0;font-size:var(--text-12);color:var(--muted);overflow-wrap:anywhere}
 .care-charge-figures{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:var(--space-2);margin:var(--space-2) 0}
 .care-charge-figures dt{font-size:var(--text-12);color:var(--muted)}
 .care-charge-figures dd{margin:2px 0 0;font-size:var(--text-14);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
 .care-charge-card .data-actions{display:flex;flex-wrap:wrap;gap:var(--space-2)}
}

/* 157b: five server-paged customers; preserve the shared order-row styles. */
/* Task 177: the two customer lists, their switch, and what a signed customer's row says first. */
/* One row: the switch on the left, the store and salesperson choices on the right. Their first choice names them
   (全部门店, 全部销售), so the label above each is kept for screen readers only and the row stays one line high. */
.customer-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin:0 0 12px}
.customer-lists{display:flex;gap:8px;margin:0}.customer-lists .btn{min-height:36px}
.customer-filters{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.customer-filters:empty{display:none}
.customer-library .customer-filters .store-filter{margin:0}.customer-filters .intake-label{min-width:180px;width:auto}
.customer-filters .intake-label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.customer-signed{color:var(--ink,inherit);font-weight:600}
@media(max-width:600px){.customer-bar{display:block}.customer-lists{margin:0 0 10px}.customer-lists .btn{flex:1;min-height:44px}
 .customer-filters{display:grid;grid-template-columns:1fr 1fr;gap:8px}.customer-filters .intake-label{min-width:0;width:100%}.customer-filters .store-filter:only-child{grid-column:1/-1}}
.customer-library .intake-search{margin-bottom:12px}.customer-library .store-filter{margin-bottom:12px}.customer-library .panel-body{padding-top:10px;padding-bottom:10px}.customer-library .intake-row{padding:11px 0;min-height:66px;gap:12px}.customer-library .customer-title{font-size:16px;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.customer-library .intake-row small{margin-top:4px;line-height:1.45}.customer-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin:12px 0 0}.customer-pagination .btn{min-width:38px;min-height:36px;padding:7px 10px}.customer-total{color:var(--muted);font-size:12px;margin-left:8px;white-space:nowrap}.customer-library>.hint{margin-top:10px}
@media(max-width:600px){.customer-library .intake-row{padding:12px 0;gap:8px}.customer-library .customer-title{font-size:14px;-webkit-line-clamp:3}.customer-pagination .btn{min-width:44px;min-height:44px}.customer-total{width:100%;text-align:center;margin:4px 0 0}}
/* Task 178: the tables kept from the old system. */
.legacy-record-app h4{margin:16px 0 8px}.legacy-record-app:first-of-type h4{margin-top:8px}
.legacy-record-tables{display:flex;flex-wrap:wrap;gap:8px}
.legacy-record-tables .btn small{margin-left:6px;opacity:.7}
.legacy-record-search{display:flex;gap:8px;margin-bottom:12px}.legacy-record-search .input{flex:1;min-width:0}
.legacy-record-row{display:flex;align-items:center;gap:12px;padding:10px 0;border-top:1px solid var(--line);color:inherit;text-decoration:none}
.legacy-record-row strong{flex:1;min-width:0;font-size:var(--text-14);font-weight:500;overflow-wrap:anywhere}
.legacy-record-row small{flex:none;color:var(--muted);font-size:var(--text-12)}
.legacy-record-search+.legacy-record-row,.legacy-file-kind h4+.legacy-record-row{border-top:0}
.legacy-record-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 24px;margin:8px 0 0}
.legacy-record-fields>div{padding:8px 0;border-top:1px solid var(--line)}
.legacy-record-fields dt{color:var(--muted);font-size:var(--text-12)}
.legacy-record-fields dd{margin:2px 0 0;font-size:var(--text-14);white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:700px){.legacy-record-fields{grid-template-columns:minmax(0,1fr)}}
/* 212: a past order's kept rows by step, each row with its filled columns and originals */
.legacy-stage-tabs{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 12px}
.legacy-stage-tabs small{margin-left:4px;opacity:.75}
.legacy-record-detail{padding:4px 0 12px}
.legacy-record-detail+.legacy-record-detail{border-top:1px solid var(--line)}
.legacy-record-detail .legacy-record-row{border-top:0}
.legacy-record-detail .legacy-record-fields{margin-top:0}
.legacy-record-detail-files{margin-top:8px}
.evidence-photos .photo-tile{width:132px;height:176px}@media(max-width:700px){.evidence-photos .photo-tile{width:104px;height:139px}}
.customer-seq{color:var(--muted);font-variant-numeric:tabular-nums;margin-right:2px}
/* Task 191: each job's dashboard on top of the home page. Brand dark rgb(21 38 56) / rgb(24 38 50), a faint grid, monospaced figures;
   red = overdue / blocked, amber = due soon / to do, teal = normal. No motion beyond a light fade of the figures. */
.rdash{--rd-red:rgb(255 122 110);--rd-amber:rgb(243 189 78);--rd-teal:rgb(63 213 195);--rd-line:rgb(150 195 225 / .16);--rd-text:rgb(227 236 243);--rd-muted:rgb(147 168 185);position:relative;margin:0 0 16px;border-radius:12px;background:linear-gradient(135deg,rgb(21 38 56) 0%,rgb(24 38 50) 62%,rgb(26 46 62) 100%);color:var(--rd-text);border:1px solid var(--rd-line);box-shadow:0 8px 22px rgb(18 40 60 / .14);overflow:hidden;min-width:0}
.rdash::before{content:"";position:absolute;inset:0;pointer-events:none;background-image:linear-gradient(rgb(150 195 225 / .055) 1px,transparent 1px),linear-gradient(90deg,rgb(150 195 225 / .055) 1px,transparent 1px);background-size:22px 22px;-webkit-mask-image:linear-gradient(180deg,rgb(0 0 0) 0%,transparent 90%);mask-image:linear-gradient(180deg,rgb(0 0 0) 0%,transparent 90%)}
.rdash::after{content:"";position:absolute;left:0;right:0;top:0;height:1px;background:linear-gradient(90deg,transparent,rgb(63 213 195 / .55),transparent);pointer-events:none}
.rdash>*{position:relative}
.rdash-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:11px 16px;border-bottom:1px solid var(--rd-line)}
.rdash.is-collapsed .rdash-head{border-bottom:0}
.rdash-head h2{margin:0;font-size:15px;font-weight:650;letter-spacing:.6px;color:rgb(255 255 255)}
.rdash-dot{width:7px;height:7px;border-radius:50%;background:var(--rd-teal);box-shadow:0 0 8px var(--rd-teal);flex:none}
.rdash-dot.is-busy{background:var(--rd-amber);box-shadow:0 0 8px var(--rd-amber)}
.rdash-time{font-size:12px;color:var(--rd-muted);font-variant-numeric:tabular-nums}
.rdash-tools{margin-left:auto;display:flex;gap:6px}
.rdash-btn{min-height:32px;padding:5px 12px;border-radius:6px;border:1px solid rgb(150 195 225 / .28);background:rgb(255 255 255 / .06);color:var(--rd-text);font-size:12.5px;cursor:pointer}
.rdash-btn:hover{background:rgb(255 255 255 / .12)}.rdash-btn:disabled{opacity:.55;cursor:default}
.rdash-btn:focus-visible,.rdash-kpi:focus-visible,.rdash-cell:focus-visible,.rdash-row:focus-visible,.rdash-job:focus-visible,.rdash-cta:focus-visible{outline:2px solid var(--rd-teal);outline-offset:2px}
.rdash-body{display:grid;gap:14px;padding:14px 16px 16px;min-width:0}
.rdash-num{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-variant-numeric:tabular-nums;font-weight:600;letter-spacing:-.5px;color:rgb(255 255 255);animation:rdash-in .45s ease-out both}
@keyframes rdash-in{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.rdash-num{animation:none}}
.rdash-kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.rdash-kpi,.rdash-cell{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:3px;min-width:0;padding:12px 14px 11px;border-radius:10px;border:1px solid var(--rd-line);background:rgb(255 255 255 / .035);color:inherit;text-align:left;font:inherit;overflow:hidden}
button.rdash-kpi{cursor:pointer}.rdash-cell.is-link{cursor:pointer}
button.rdash-kpi:hover,.rdash-cell.is-link:hover{background:rgb(255 255 255 / .07);border-color:rgb(150 195 225 / .3)}  /* 190b (QA R5 P2): a shown-only owner tile (div) does not look clickable */
.rdash-kpi::before,.rdash-cell::before{content:"";position:absolute;left:0;top:10px;bottom:10px;width:3px;border-radius:0 3px 3px 0;background:transparent}
.rdash-kpi>span,.rdash-cell>span{font-size:12.5px;color:var(--rd-muted)}
.rdash-kpi .rdash-num{font-size:32px;line-height:1.1}
.rdash-cell .rdash-num{font-size:24px;line-height:1.15}
.rdash-cell.is-big .rdash-num{font-size:32px}
.rdash-kpi small,.rdash-cell small{font-size:12px;color:var(--rd-muted);line-height:1.35;overflow-wrap:anywhere}
.rdash-kpi.tone-red::before,.rdash-cell.tone-red::before{background:var(--rd-red)}.rdash-kpi.tone-red .rdash-num,.rdash-cell.tone-red .rdash-num{color:var(--rd-red)}
.rdash-kpi.tone-amber::before,.rdash-cell.tone-amber::before{background:var(--rd-amber)}.rdash-kpi.tone-amber .rdash-num,.rdash-cell.tone-amber .rdash-num{color:var(--rd-amber)}
.rdash-kpi.tone-teal::before,.rdash-cell.tone-teal::before{background:var(--rd-teal)}.rdash-kpi.tone-teal .rdash-num,.rdash-cell.tone-teal .rdash-num{color:var(--rd-teal)}
.rdash-kpi.is-zero .rdash-num,.rdash-cell.is-zero .rdash-num{color:rgb(227 236 243 / .55)}
.rdash-kpi.is-blank b,.rdash-cell.is-blank b{font-size:14px;font-weight:600;color:var(--rd-amber);padding:6px 0 2px}
.rdash-kpi.is-wait .rdash-num{color:var(--rd-muted)}
.rdash-grid{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr);gap:14px;align-items:start}
.rdash-own{display:grid;gap:14px;min-width:0}
.rdash-box{min-width:0;padding:12px 14px;border-radius:10px;border:1px solid var(--rd-line);background:rgb(255 255 255 / .025)}
.rdash-box h3{margin:0 0 10px;font-size:12px;font-weight:600;letter-spacing:1px;color:var(--rd-muted)}
.rdash-sub{margin:12px 0 6px;font-size:12px;font-weight:600;color:var(--rd-muted)}
.rdash-cells{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px}
.rdash-cells+.rdash-rows,.rdash-cells+.rdash-jobs,.rdash-cells+.rdash-bar,.rdash-cells+.rdash-chips{margin-top:12px}
.rdash-rows{display:grid;gap:6px}
.rdash-row{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:10px;row-gap:2px;align-items:baseline;width:100%;padding:8px 10px;border-radius:8px;border:1px solid var(--rd-line);border-left:3px solid var(--rd-teal);background:rgb(255 255 255 / .03);color:inherit;font:inherit;text-align:left;cursor:pointer}
.rdash-row:hover{background:rgb(255 255 255 / .07)}
.rdash-row em{grid-row:span 2;font-style:normal;font-size:12px;font-weight:600;padding:2px 7px;border-radius:999px;background:rgb(63 213 195 / .14);color:var(--rd-teal);white-space:nowrap}
.rdash-row strong{font-size:13.5px;font-weight:600;color:rgb(255 255 255);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rdash-row span{font-size:12px;color:var(--rd-muted);overflow-wrap:anywhere}
.rdash-row.tone-red{border-left-color:var(--rd-red)}.rdash-row.tone-red em{background:rgb(255 122 110 / .15);color:var(--rd-red)}
.rdash-row.tone-amber{border-left-color:var(--rd-amber)}.rdash-row.tone-amber em{background:rgb(243 189 78 / .15);color:var(--rd-amber)}
.rdash-note{margin:8px 0 0;font-size:12px;color:var(--rd-muted)}
.rdash-note.is-blank{color:var(--rd-amber);font-weight:600}
.rdash-alert{margin:0;padding:10px 12px;border-radius:8px;border:1px solid rgb(243 189 78 / .4);background:rgb(243 189 78 / .1);color:var(--rd-amber);font-weight:600;font-size:13px}
.rdash-bar{display:flex;gap:2px;height:10px;border-radius:5px;overflow:hidden;background:rgb(255 255 255 / .06)}
.rdash-bar i{display:block;min-width:4px;background:linear-gradient(90deg,rgb(42 157 147),var(--rd-teal))}
.rdash-bar i.is-late{background:linear-gradient(90deg,rgb(201 72 63),var(--rd-red))}
.rdash-steps{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;margin:10px 0 0;padding:0;list-style:none}
.rdash-steps li{display:flex;flex-direction:column;gap:1px;min-width:0;padding:7px 8px;border-radius:8px;background:rgb(255 255 255 / .03);border:1px solid var(--rd-line)}
.rdash-steps li span{font-size:12px;color:var(--rd-muted)}
.rdash-steps li .rdash-num{font-size:20px;color:var(--rd-teal)}
.rdash-steps li.is-zero .rdash-num{color:rgb(227 236 243 / .45)}
.rdash-steps li.is-late{border-color:rgb(255 122 110 / .55)}.rdash-steps li.is-late .rdash-num,.rdash-steps li small{color:var(--rd-red)}
.rdash-steps li small{font-size:12px;font-weight:600}
.rdash-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0;padding:0;list-style:none}
.rdash-chips li{display:flex;gap:8px;align-items:baseline;padding:5px 10px;border-radius:999px;border:1px solid var(--rd-line);background:rgb(255 255 255 / .04);font-size:12.5px}
.rdash-chips b{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;color:var(--rd-teal)}
.rdash-jobs{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px}
.rdash-job{display:flex;flex-direction:column;align-items:flex-start;gap:4px;min-width:0;padding:14px 16px;border-radius:10px;border:1px solid var(--rd-line);border-top:3px solid var(--rd-teal);background:rgb(255 255 255 / .05);color:inherit;font:inherit;text-align:left;cursor:pointer}
.rdash-job em{font-style:normal;font-size:12px;font-weight:600;color:var(--rd-teal)}
.rdash-job strong{font-size:19px;font-weight:650;color:rgb(255 255 255);overflow-wrap:anywhere}
.rdash-job span{font-size:14px;color:var(--rd-text);overflow-wrap:anywhere}
.rdash-job small{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;color:var(--rd-muted)}
.rdash-job.tone-red{border-top-color:var(--rd-red)}.rdash-job.tone-red em{color:var(--rd-red)}
.rdash-job.tone-amber{border-top-color:var(--rd-amber)}.rdash-job.tone-amber em{color:var(--rd-amber)}
.rdash-cta{display:flex;flex-direction:column;align-items:flex-start;gap:4px;width:100%;margin:0 0 12px;padding:16px 18px;border-radius:10px;border:1px solid rgb(63 213 195 / .55);background:linear-gradient(135deg,rgb(63 213 195 / .22),rgb(63 213 195 / .08));color:rgb(255 255 255);font:inherit;text-align:left;cursor:pointer}
.rdash-cta:hover{background:linear-gradient(135deg,rgb(63 213 195 / .3),rgb(63 213 195 / .12))}
.rdash-cta b{font-size:20px;font-weight:700;letter-spacing:1px}.rdash-cta span{font-size:12.5px;color:var(--rd-text)}
/* 191 review: an amount is never clipped. The figure is sized to its cell (container units, by digit count) so it stays on
   one line; wrapping is only the last resort for a cell narrower than any of these sizes. */
.rdash-cell.is-money{min-width:0;container-type:inline-size}
.rdash-cell.is-money .rdash-num{font-size:min(22px,15cqi);max-width:100%;overflow-wrap:anywhere;letter-spacing:-.5px}
.rdash-cell.is-money.is-long .rdash-num{font-size:max(12px,min(20px,12.5cqi))}
.rdash-cell.is-money.is-xlong .rdash-num{font-size:max(12px,min(18px,10.5cqi))}
.rdash-cell small{max-width:100%}
@media(max-width:900px){.rdash-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .rdash{margin:0 0 12px;border-radius:10px}
 .rdash-head{padding:10px 12px}
 .rdash-body{padding:12px;gap:12px}
 .rdash-kpis{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .rdash-kpi{padding:10px 12px}
 .rdash-kpi .rdash-num{font-size:28px}
 .rdash-kpi small{display:none}
 .rdash-cells{grid-template-columns:repeat(2,minmax(0,1fr))}
 .rdash-steps{grid-template-columns:repeat(4,minmax(0,1fr))}
 .rdash-jobs{grid-template-columns:minmax(0,1fr)}
 /* 191 review: the floating 菜单 button (fixed, bottom right) must not sit over the last cells; leave room under the board. */
 .rdash-body{padding-bottom:84px}
}
/* Task 210: the strip of an order signed before this system with its contract amount (administrators, finance). */
.order-summary.legacy-summary.has-amount{grid-template-columns:minmax(0,2.4fr) repeat(5,minmax(0,1fr))}
@media(max-width:760px){.order-summary.legacy-summary.has-amount{grid-template-columns:1fr 1fr}}
/* Task 226: 经营看板 月度 / 年度 (dark, same family as .rdash). Whole-yuan figures wrap rather than overflow. */
.mb-bar{margin-bottom:12px}.mb-bar .rdash-head{gap:12px}
.mb-tabs{display:flex;gap:4px;padding:3px;border-radius:8px;background:rgb(255 255 255 / .06);border:1px solid var(--rd-line)}
.mb-tab{min-height:32px;display:inline-flex;align-items:center;padding:4px 16px;border-radius:6px;color:var(--rd-muted);font-size:13.5px;text-decoration:none}
.mb-tab.is-on{background:rgb(63 213 195 / .18);color:rgb(255 255 255);font-weight:600}
.mb-tab:focus-visible{outline:2px solid var(--rd-teal);outline-offset:2px}
.mb-pick{display:flex;align-items:center;gap:6px;flex-wrap:wrap;margin-left:auto}
.mb-pick .rdash-btn{display:inline-flex;align-items:center;text-decoration:none}
.mb-pick .rdash-btn.is-on{background:rgb(63 213 195 / .18);border-color:rgb(63 213 195 / .5);color:rgb(255 255 255)}
.mb-pick .rdash-btn.is-off{opacity:.4;cursor:default}
.mb-current{font-size:14px;color:rgb(255 255 255);padding:0 6px;white-space:nowrap}
.mb-compare{margin-bottom:12px}
.mb-kpis-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.mb-kpi .rdash-num{font-size:clamp(20px,2.3vw,30px);overflow-wrap:anywhere}
.mb-kpi small em,.mb-table em{font-style:normal;font-weight:600}
.mb-kpi small em.is-up,.mb-table em.is-up{color:var(--rd-teal)}.mb-kpi small em.is-down,.mb-table em.is-down{color:var(--rd-red)}
.mb-cols{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:6px}
.mb-col{display:flex;flex-direction:column;align-items:center;min-width:0}
.mb-bars{display:flex;align-items:flex-end;justify-content:center;gap:3px;width:100%;height:170px;border-bottom:1px solid var(--rd-line)}
.mb-bar-slot{position:relative;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;width:44%;max-width:30px;height:100%}
.mb-bar-slot i{display:block;width:100%;border-radius:3px 3px 0 0}
.mb-bar-val{font-size:12px;color:var(--rd-text);font-variant-numeric:tabular-nums;white-space:nowrap;margin-bottom:2px}
.mb-bars i.is-sign,.mb-legend i.is-sign{background:var(--rd-teal)}.mb-bars i.is-in,.mb-legend i.is-in{background:rgb(120 160 255)}
.mb-col.is-future .mb-col-name{opacity:.45}
.mb-col-name{margin-top:6px;font-size:12px;color:var(--rd-muted);white-space:nowrap}
.mb-legend{display:flex;gap:16px;margin:10px 0 0;padding:0;list-style:none;font-size:12px;color:var(--rd-muted)}
.mb-legend i{display:inline-block;width:10px;height:10px;border-radius:2px;margin-right:6px;vertical-align:-1px}
.mb-ranks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.mb-rank{display:grid;grid-template-columns:18px minmax(0,6em) minmax(30px,1fr) auto;column-gap:8px;align-items:center;padding:4px 0}
.mb-rank-no{font-size:12px;color:var(--rd-muted)}.mb-rank-name{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.mb-rank-track{height:8px;border-radius:4px;background:rgb(255 255 255 / .07);overflow:hidden}.mb-rank-track i{display:block;height:100%;background:var(--rd-teal)}
.mb-rank b{font-size:13px;font-variant-numeric:tabular-nums;color:rgb(255 255 255);white-space:nowrap}
.mb-rank small{grid-column:2 / -1;font-size:12px;color:var(--rd-muted)}
.mb-empty{margin:4px 0 0;font-size:12px;color:var(--rd-muted)}
.mb-bottom{grid-template-columns:minmax(0,.7fr) minmax(0,1.6fr)}
.mb-overdue-total{margin:0 0 8px}.mb-overdue-total .rdash-num{font-size:24px;overflow-wrap:anywhere}.mb-overdue-total .is-hot{color:var(--rd-red)}
.mb-aging{display:flex;justify-content:space-between;gap:8px;padding:4px 0;font-size:12.5px;color:var(--rd-muted)}.mb-aging b{color:var(--rd-text);font-weight:600}
.mb-table-wrap{overflow-x:auto;max-width:100%}
.mb-table{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
.mb-table th,.mb-table td{padding:7px 8px;border-bottom:1px solid var(--rd-line);text-align:right;white-space:nowrap}
.mb-table th:first-child{text-align:left}.mb-table thead th{color:var(--rd-muted);font-weight:600}
.mb-table small{color:var(--rd-muted)}
@media(max-width:1100px){.mb-ranks{grid-template-columns:minmax(0,1fr)}.mb-bottom{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.mb-kpis,.mb-kpis-2{grid-template-columns:minmax(0,1fr)}.mb-unit{display:none}.mb-pick{margin-left:0}
 .mb-bars{height:150px}.mb-cols{gap:2px}.mb-bar-val{writing-mode:vertical-rl;font-size:12px;margin-bottom:3px}.mb-bar-slot{width:46%}.mb-col-name{font-size:12px}.mb-kpi .rdash-num{font-size:24px}.rdash-kpi.mb-kpi small{display:block}}

/* Task 231: 报销欠款 / 公司还欠我 */
.owed-code{display:block;width:220px;max-width:100%;height:auto;margin:0 auto var(--space-2);border:1px solid var(--line);border-radius:var(--radius-md);background:var(--white)}
.owed-row{width:100%;text-align:left;cursor:pointer}.owed-pay{margin:4px 0 0;font-size:13px;color:var(--ink-2)}
/* Task 232: phone home for owner / sales / installer (mobile_home.js). Phone width only; desktop never shows it. */
.mhome{display:none}
@media(max-width:760px){
 .mhome{display:block;margin:0 -16px}
 .mhome~.mh-rest:not(.is-open){display:none}
 .mh-rest.is-open{margin-top:12px}
 .mh-hero{background:var(--ink);background-image:linear-gradient(rgb(255 255 255 / .04) 1px,transparent 1px),linear-gradient(90deg,rgb(255 255 255 / .04) 1px,transparent 1px);background-size:22px 22px;color:var(--white);padding:16px 16px 18px}
 .mh-hero h1{font-size:var(--text-20);letter-spacing:0;line-height:1.3;color:var(--white)}
 .mh-hero p{font-size:var(--text-12);color:rgb(255 255 255 / .62);margin-top:2px}
 .mh-hero-num{display:flex;align-items:center;gap:12px;margin-top:12px}
 .mh-hero-num>b{font-size:52px;line-height:1;font-weight:700;font-variant-numeric:tabular-nums;letter-spacing:-1px}
 .mh-hero-num strong{display:block;font-size:var(--text-16);font-weight:650}
 .mh-hero-num span{display:block;font-size:var(--text-12);color:rgb(255 255 255 / .62)}
 .mh-chips{display:flex;gap:6px;overflow-x:auto;margin-top:10px;padding-bottom:2px;align-items:center;scrollbar-width:none}
 .mh-chips::-webkit-scrollbar{display:none}
 .mh-chips>span{font-size:var(--text-12);color:rgb(255 255 255 / .55);flex:0 0 auto}
 .mh-chip{flex:0 0 auto;border:0;border-radius:999px;padding:6px 12px;font-size:var(--text-13);background:rgb(255 255 255 / .1);color:var(--white);white-space:nowrap}
 .mh-chip.is-on{background:rgb(45 212 191);color:var(--ink);font-weight:600}
 .mh-body{padding:12px 12px 0;display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .mh-card,.mh-hero,.mh-quicks{min-width:0}
 .mh-card{background:var(--white);border-radius:16px;padding:14px 14px 12px;box-shadow:0 1px 3px var(--soft-shadow-color)}
 .mh-card-head{display:flex;align-items:center;gap:8px;margin-bottom:6px}
 .mh-card-head h2{font-size:var(--text-16);font-weight:650}
 .mh-spacer{flex:1}
 .mh-count{min-width:24px;padding:0 7px;border-radius:999px;background:var(--surface-2);color:var(--ink-2);font-size:var(--text-12);font-weight:600;text-align:center;line-height:22px}
 .mh-count.is-hot{background:var(--danger-soft);color:var(--danger)}
 .mh-rows{display:grid;grid-template-columns:minmax(0,1fr)}
 .mh-row{display:flex;align-items:center;gap:10px;padding:11px 0;border:0;border-bottom:1px solid var(--line);background:none;width:100%;text-align:left;color:inherit}
 .mh-row:last-child{border-bottom:0}
 .mh-row.is-hot .mh-row-text strong{color:var(--danger)}
 .mh-row-text{flex:1;min-width:0}
 .mh-row-text strong{display:block;font-size:var(--text-14);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mh-row-text>span{display:block;font-size:var(--text-12);color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 .mh-chev{font-style:normal;color:var(--muted);font-size:var(--text-20)}
 .mh-tag{flex:0 0 auto;font-size:var(--text-12);padding:2px 8px;border-radius:6px;font-weight:600;white-space:nowrap}
 .mh-tag.tone-blue{background:var(--accent-soft);color:var(--accent)}
 .mh-tag.tone-violet{background:rgb(240 236 252);color:rgb(98 70 170)}
 .mh-tag.tone-red{background:var(--danger-soft);color:var(--danger)}
 .mh-tag.tone-amber{background:var(--warm-soft);color:var(--warm)}
 .mh-tag.tone-green{background:rgb(226 246 238);color:rgb(22 120 80)}
 .mh-btn{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:8px 14px;border:0;border-radius:10px;background:var(--ink);color:var(--white);font-size:var(--text-14);font-weight:600;white-space:nowrap;text-decoration:none}
 .mh-btn.is-soft{background:var(--surface-2);color:var(--ink);font-weight:550}
 .mh-btn.is-wide{width:100%;min-height:48px;margin-top:10px;font-size:var(--text-16)}
 .mh-btn.is-go{background:rgb(45 212 191);color:var(--ink)}
 .mh-link{border:0;background:none;padding:6px 0 0;color:var(--chart);font-size:var(--text-13)}
 .mh-note{font-size:var(--text-12);color:var(--muted);margin-top:6px}
 .mh-tiles{display:grid;grid-template-columns:1fr 1fr;gap:8px}
 .mh-tile{background:var(--surface-2);border:0;border-radius:12px;padding:10px 12px;text-align:left;color:inherit;min-width:0}
 .mh-tile span{display:block;font-size:var(--text-12);color:var(--muted)}
 .mh-tile b{display:block;font-size:var(--text-20);font-weight:700;font-variant-numeric:tabular-nums;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;overflow-wrap:anywhere}
 .mh-tile.tone-green b{color:rgb(22 120 80)}
 .mh-tile.tone-red b{color:var(--danger)}
 .mh-progress{height:6px;border-radius:3px;background:var(--line);margin-top:10px;overflow:hidden}
 .mh-progress i{display:block;height:100%;background:rgb(45 212 191);border-radius:3px}
 .mh-stages{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
 .mh-stage{border:0;border-radius:10px;background:var(--surface-2);padding:8px 0;text-align:center;color:inherit}
 .mh-stage b{display:block;font-size:var(--text-16);font-weight:700}
 .mh-stage span{display:block;font-size:12px;color:var(--muted);white-space:nowrap}
 .mh-stage.is-late{background:var(--danger-soft)}.mh-stage.is-late b{color:var(--danger)}
 .mh-steps{display:flex;gap:3px;margin-top:6px}
 .mh-steps i{flex:1;height:4px;border-radius:2px;background:var(--line)}
 .mh-steps i.is-done{background:rgb(45 212 191)}
 .mh-steps i.is-now{background:rgb(240 180 60)}
 .mh-quicks{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
 .mh-quicks.is-two{grid-template-columns:1fr 1fr}
 .mh-quick{display:flex;flex-direction:column;align-items:center;gap:6px;border:0;border-radius:14px;background:var(--white);padding:12px 4px;color:var(--ink);font-size:var(--text-12);font-weight:600;box-shadow:0 1px 3px var(--soft-shadow-color)}
 .mh-quick i{display:grid;place-items:center;width:42px;height:42px;border-radius:12px;background:var(--accent-soft);color:var(--ink)}
 .mh-quick.is-primary i{background:var(--ink);color:var(--white)}
 .mh-quick span{white-space:nowrap}
 .mh-job{border:1px solid var(--line);border-radius:14px;padding:12px;margin-top:8px}
 .mh-job-top{display:flex;align-items:center;gap:8px}
 .mh-job-top b{font-size:var(--text-16);font-variant-numeric:tabular-nums}
 .mh-job>strong{display:block;font-size:var(--text-16);margin-top:4px}
 .mh-job>p{font-size:var(--text-12);color:var(--muted);margin-top:2px}
 .mh-job-tools{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:10px}
 .mh-all{width:100%;min-height:44px;border:1px dashed var(--line-strong);border-radius:12px;background:transparent;color:var(--ink-2);font-size:var(--text-13);margin-bottom:12px}
 /* The floating 菜单 button covered cards while scrolling; on a phone it is a small round button. */
 .mobile-menu>summary{padding:10px;border-radius:50%;min-width:44px;justify-content:center}
 .mobile-menu>summary span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}
