/* Renovation workspace — extends the existing HOUZY Brand System v4. */
.renovation-workspace{--ink:var(--hz-green);--muted:#6f766e;--line:#e6e8df;background:var(--hz-paper);color:var(--ink);font-size:14px;line-height:1.65;color-scheme:light}
.renovation-workspace a{text-decoration:none}
.workspace-skip{position:fixed;top:-100px;left:16px;z-index:100;background:white;color:var(--hz-green);padding:12px 18px;border:2px solid var(--hz-gold);border-radius:6px}
.workspace-skip:focus{top:12px}
.workspace-sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:linear-gradient(180deg,var(--hz-green),var(--hz-green3));color:white;display:flex;flex-direction:column;z-index:40}
.workspace-brand{display:flex;align-items:center;gap:12px;padding:28px 22px 27px;color:white;border-bottom:1px solid #ffffff18}
.workspace-brand img{border-radius:10px;border:1px solid #c8a96e60}
.workspace-brand strong{font:700 16px var(--hz-serif);letter-spacing:.6px;white-space:nowrap}
.workspace-brand small{display:block;font-size:10px;letter-spacing:2px;color:var(--hz-gold2);margin-top:6px}
.sidebar-caption{display:block;font-size:10px;letter-spacing:2px;color:var(--hz-gold2);padding:28px 24px 10px}
.workspace-nav{padding:0 12px;display:grid;gap:5px}
.workspace-nav a{display:flex;gap:12px;align-items:center;min-height:46px;padding:10px 14px;color:#e0e8df;border-radius:8px;font-size:13px;position:relative}
.workspace-nav a>span{font-size:20px;width:20px;text-align:center;line-height:1}
.workspace-nav a:hover{background:#ffffff0c}
.workspace-nav .selected{background:#c8a96e22;color:#fff}
.workspace-nav .selected:before{content:'';position:absolute;left:0;top:12px;bottom:12px;width:3px;border-radius:3px;background:var(--hz-gold)}
.workspace-nav .selected>span{color:var(--hz-gold2)}
.workspace-nav small{margin-left:auto;font-size:10px;border:1px solid #c8a96e50;color:var(--hz-gold2);padding:1px 6px;border-radius:4px}
.sidebar-project{margin:35px 24px 24px;border-top:1px solid #ffffff16}
.sidebar-project .sidebar-caption{padding:24px 0 0}
.sidebar-project p{font:500 21px/1.8 var(--hz-serif);color:#f4efe5;margin:18px 0}
.sidebar-rule{width:32px;height:1px;background:var(--hz-gold);margin-bottom:18px}
.sidebar-project small{color:#b0c0b2;font-size:11px;line-height:2.2}
.sidebar-return{margin:auto 24px 24px;border-top:1px solid #ffffff16;padding-top:20px;color:#cbd6ca;font-size:12px}
.renovation-workspace .workspace-topbar{height:68px;margin-left:232px;background:#fffdf8;border-bottom:1px solid var(--hz-line);padding:0 40px;display:flex;justify-content:space-between;position:relative;color:var(--muted)}
.workspace-topbar nav{display:flex;align-items:center;gap:14px;font-size:12px}
.workspace-topbar a{color:var(--muted);font-weight:400}
.workspace-topbar nav>span:last-child{color:var(--hz-green);font-weight:600}
.workspace-module{display:flex;gap:8px;align-items:center;font-size:11px;letter-spacing:1px}
.workspace-module i{width:6px;height:6px;background:var(--purple);border-radius:50%}
.workspace-topbar .mobile-brand,.workspace-topbar .mobile-return{display:none}
.renovation-workspace main{max-width:1600px;margin:0 0 0 232px;padding:36px 40px 80px}
.renovation-workspace .heading{align-items:center;gap:24px;margin-bottom:24px}
.renovation-workspace .eyebrow{color:#786d54;font-size:10px;letter-spacing:2px;margin-bottom:9px;font-weight:600}
.eyebrow span{margin:0 6px;color:var(--hz-gold)}
.renovation-workspace h1{font-family:var(--hz-serif);font-size:32px;line-height:1.45;letter-spacing:.4px;overflow-wrap:anywhere}
.heading-description{font-size:12px;margin:8px 0 0;max-width:540px}
.renovation-workspace button,.renovation-workspace .file{background:var(--hz-green);border-color:var(--hz-green);border-radius:8px;font-size:12px;font-weight:600;min-height:42px;padding:10px 16px;transition:background .15s,border-color .15s;line-height:1.6}
.renovation-workspace button:hover:not(:disabled),.renovation-workspace .file:hover{background:var(--hz-green2)}
.renovation-workspace button.secondary{background:white;color:var(--hz-green);border-color:#d6ddcf}
.renovation-workspace button.secondary:hover:not(:disabled){background:#f5f7f1;border-color:#aeb9a3}
.renovation-workspace #new-project{background:var(--hz-gold);border-color:var(--hz-gold);color:var(--hz-green);padding-inline:20px;box-shadow:0 3px 10px #1539270b}
.renovation-workspace #new-project:hover:not(:disabled){background:var(--hz-gold2)}
.renovation-workspace button:focus-visible,.renovation-workspace a:focus-visible,.renovation-workspace summary:focus-visible{outline:3px solid var(--hz-gold);outline-offset:3px}
.renovation-workspace #message{min-height:0;padding:11px 15px;margin:0 0 24px;background:#eef1e9;border:1px solid #dfe6d7;border-radius:8px;font-size:12px;color:#53644d;overflow-wrap:anywhere}
.renovation-workspace #message.error{background:#fff3e6;border-color:#ecd4ad;color:#855710}
.project-overview{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border:1px solid var(--hz-line);border-radius:12px;background:#fff;margin:0 0 28px;padding:23px 0;box-shadow:var(--hz-shadow)}
.overview-cell{padding:0 24px;border-right:1px solid var(--line);min-width:0}
.overview-cell:last-child{border:0}
.overview-cell>span{display:block;font-size:11px;color:var(--muted)}
.overview-cell strong{display:block;font:500 34px/1.5 var(--hz-serif);font-variant-numeric:tabular-nums;margin:4px 0;color:var(--hz-green)}
.overview-cell:nth-child(2) strong{color:#927036}
.overview-cell small{font-size:10px;color:var(--muted)}
.list-workspace{border:1px solid var(--hz-line);border-radius:12px;background:white;box-shadow:var(--hz-shadow);overflow:hidden}
.list-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;padding:22px 24px;border-bottom:1px solid var(--line)}
.list-heading h2{font:600 18px var(--hz-serif);margin:0}
.list-heading p{font-size:11px;margin:5px 0 0}
.list-count{font-size:11px;color:var(--muted);white-space:nowrap}
.list-tools{padding:18px 24px;display:flex;gap:14px;background:#fdfcf9;border-bottom:1px solid var(--line)}
.project-search{flex:1}.project-filter{width:180px}
.list-tools label>span{font-size:11px;color:var(--muted)}
.renovation-workspace input,.renovation-workspace select,.renovation-workspace textarea,.renovation-workspace output{border-color:#dfe3d9;border-radius:7px;padding:10px 12px;font-size:13px;min-height:42px;max-width:100%}
.renovation-workspace input:disabled,.renovation-workspace select:disabled{background:#f5f6f2;color:#54614e;opacity:1}
.renovation-workspace input[type=checkbox]{min-height:0;accent-color:var(--hz-green);width:17px;height:17px;flex-shrink:0}
.renovation-workspace label{font-size:12px;color:#5f6959}
.renovation-workspace #list .project{margin:0;padding:24px;border:0;border-bottom:1px solid var(--line);border-radius:0;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;box-shadow:none;background:white}
.renovation-workspace #list .project:last-child{border-bottom:0}
.project-identity{min-width:0}.project-topline{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.project-topline small{color:var(--muted);font-size:10px}
.renovation-workspace .type{font-size:10px;padding:3px 8px;font-weight:600;border-radius:4px}
.renovation-workspace #list h2{font-size:15px;margin:11px 0 5px;overflow-wrap:anywhere;font-weight:600}
.project-address{margin:0;font-size:12px;overflow-wrap:anywhere}
.project-side{display:flex;flex-direction:column;align-items:end;justify-content:center;gap:13px}
.project-amount{font-size:20px;letter-spacing:-.3px;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.project-amount small{font-size:10px;font-weight:500;letter-spacing:1px;margin-right:5px;color:var(--muted)}
.project-status{display:inline-flex;align-items:center;gap:6px;font-size:10px;border-radius:5px;padding:3px 8px;background:#f3f4ef;color:#68705f}
.project-status:before{content:'';height:5px;width:5px;border-radius:50%;background:currentColor}
.project-status[data-state=draft]{background:#faf3e5;color:#87632b}
.project-status[data-state=confirmed]{background:#edf2fb;color:#375f91}
.project-status[data-state=executing]{background:var(--purple-light);color:var(--purple)}
.project-status[data-state=accepted]{background:#eaf3e9;color:#397244}
.empty-state{text-align:center;padding:52px 24px;color:var(--muted)}
.empty-symbol{font-size:32px;display:inline-flex;width:60px;height:60px;align-items:center;justify-content:center;background:#f3f4ed;border-radius:50%;color:var(--hz-green)}
.empty-state h3{font-size:16px;color:var(--hz-green);margin:18px 0 8px}.empty-state p{font-size:12px}
.renovation-workspace:has(#editor:not([hidden])) #project-overview,.renovation-workspace:has(#editor:not([hidden])) #list-workspace{display:none}
.renovation-workspace .steps{position:sticky;top:0;z-index:20;display:flex;gap:4px;margin:0 0 24px;padding:8px;background:#fbf8f1f5;border:1px solid var(--hz-line);border-radius:10px;box-shadow:0 4px 12px #15392705;overflow-x:auto}
.steps a{flex:1;text-align:center;white-space:nowrap;padding:9px 12px;color:#65715e;font-size:12px;border-radius:6px}
.steps a:hover,.steps a[aria-current=location]{background:var(--hz-green);color:white}
.renovation-workspace .panel{border:1px solid var(--hz-line);border-radius:12px;padding:26px;margin:0 0 22px;box-shadow:var(--hz-shadow);scroll-margin-top:84px}
.panel-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;border-bottom:1px solid var(--line);padding-bottom:17px;margin-bottom:22px}
.panel-heading h2{font-family:var(--hz-serif);font-size:19px;margin:0}
.panel-heading>span{font-size:10px;letter-spacing:1px;color:#86774e;white-space:nowrap}
.renovation-workspace .panel>p{font-size:12px;max-width:900px}
.renovation-workspace .grid{gap:18px 22px}
.renovation-workspace .line{border-color:var(--line);border-left-color:#b7a2ce;border-radius:8px;background:#fff}
.renovation-workspace summary{color:var(--hz-green);font-size:13px;min-height:32px;padding-block:5px}
.renovation-workspace .file{display:flex;gap:12px;align-items:center;flex-wrap:wrap;color:white}
.renovation-workspace .file input{margin:0;min-height:32px;width:auto;padding:5px 8px;color:var(--hz-green)}
.renovation-workspace .work-section{background:#fdfcf9;border-color:var(--line);border-left-color:var(--purple)}
.renovation-workspace .work-material{border-left-color:var(--blue)}
.renovation-workspace .work-product{background:white}
.renovation-workspace #audit p{font-size:12px;padding:11px 0 11px 16px;border-left:2px solid var(--hz-line);margin:0;overflow-wrap:anywhere}
.renovation-workspace #state{font-size:11px;color:var(--purple);padding:4px 10px;background:var(--purple-light);border-radius:5px}
.renovation-workspace #revision{font-size:11px;color:var(--muted)}
.renovation-workspace #actual-payments>.grid:first-child{grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:20px 0;background:#f5f7f1;border:1px solid #e3e8db;border-radius:9px}
.renovation-workspace #actual-payments>.grid:first-child>div{padding:0 18px;border-right:1px solid #dfe5d6;font-size:11px;color:var(--muted)}
.renovation-workspace #actual-payments>.grid:first-child>div:last-child{border:0}
.renovation-workspace #actual-payments>.grid:first-child b{display:inline-block;margin-top:8px;font-size:19px;font-variant-numeric:tabular-nums;color:var(--hz-green)}
.renovation-workspace #actual-payments>.grid:first-child>div:last-child b{font-size:14px}
.renovation-workspace #project-additions>.grid:first-child{background:#f9f7fc;border:1px solid #ede5f5;border-radius:9px;padding:18px;grid-template-columns:repeat(3,minmax(0,1fr));font-size:11px}
.renovation-workspace #project-additions>.grid:first-child b{display:inline-block;font-size:18px;margin-top:8px;font-variant-numeric:tabular-nums}
.renovation-workspace #actual-payments section[aria-label="合同付款计划"] ol{border-top:1px solid var(--line)}
.renovation-workspace #actual-payments section[aria-label="合同付款计划"] li .grid{grid-template-columns:repeat(2,minmax(0,1fr));font-size:12px;background:#fafbf7;padding:12px;border-radius:6px}
@media(max-width:1150px) and (min-width:851px){.renovation-workspace #actual-payments>.grid:first-child{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 0}.renovation-workspace #actual-payments>.grid:first-child>div:nth-child(2){border:0}}
@media(max-width:600px){.renovation-workspace #actual-payments>.grid:first-child{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;gap:0}.renovation-workspace #actual-payments>.grid:first-child>div{padding:16px 12px}.renovation-workspace #actual-payments>.grid:first-child>div:nth-child(2){border-right:0}.renovation-workspace #actual-payments>.grid:first-child>div:nth-child(-n+2){border-bottom:1px solid #dfe5d6}.renovation-workspace #actual-payments>.grid:first-child b{font-size:16px}.renovation-workspace #actual-payments>.grid:first-child .muted{font-size:10px}.renovation-workspace #project-additions>.grid:first-child{grid-template-columns:1fr 1fr;gap:16px}.renovation-workspace #project-additions>.grid:first-child>div:last-child{grid-column:1/-1;border-top:1px solid #ede5f5;padding-top:12px}}
@media(min-width:1700px){.renovation-workspace main{margin-inline:auto;padding-left:272px}}
@media(max-width:1150px){.workspace-sidebar{width:204px}.workspace-brand{padding-inline:16px;gap:9px}.workspace-brand strong{font-size:14px}.renovation-workspace main{margin-left:204px;padding:28px 24px 60px}.renovation-workspace .workspace-topbar{margin-left:204px;padding-inline:24px}.overview-cell{padding:0 16px}.overview-cell small{font-size:9px}.steps a{padding-inline:10px}}
@media(max-width:850px){.workspace-sidebar{display:none}.renovation-workspace .workspace-topbar{margin:0;height:60px;padding:0 20px;background:var(--hz-green);position:sticky;top:0;z-index:30}.workspace-topbar nav,.workspace-module{display:none}.workspace-topbar .mobile-brand{display:flex;gap:9px;align-items:center;color:white;font:600 14px var(--hz-serif)}.mobile-brand img{border-radius:6px}.workspace-topbar .mobile-return{display:block;color:var(--hz-gold2);font-size:11px}.renovation-workspace main{margin:0;padding:24px 20px 60px}.renovation-workspace .steps{top:60px}.overview-cell small{font-size:10px}}
@media(max-width:600px){.renovation-workspace main{padding:24px 16px 48px}.renovation-workspace .heading{align-items:stretch;gap:16px;margin-bottom:18px}.renovation-workspace h1{font-size:27px}.heading-description{font-size:11px}.heading>.actions{margin:0;display:flex}.heading>.actions button{width:100%;min-height:44px}.renovation-workspace #message{font-size:11px;margin-bottom:18px}.project-overview{grid-template-columns:repeat(2,minmax(0,1fr));padding:0;margin-bottom:20px}.overview-cell{padding:17px 18px}.overview-cell:nth-child(2){border-right:0}.overview-cell:nth-child(-n+2){border-bottom:1px solid var(--line)}.overview-cell strong{font-size:28px;margin:1px 0}.overview-cell small{font-size:9px}.list-heading{padding:18px 16px}.list-heading p{font-size:10px}.list-count{font-size:10px}.list-tools{padding:14px 16px;flex-wrap:wrap;gap:10px}.project-search{flex-basis:100%}.project-filter{width:100%}.renovation-workspace input,.renovation-workspace select,.renovation-workspace textarea{font-size:16px}.renovation-workspace #list .project{padding:20px 16px;grid-template-columns:1fr;gap:14px}.project-side{flex-direction:row;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #f0f1eb;padding-top:14px}.project-amount{font-size:20px}.renovation-workspace #list h2{font-size:14px}.project-address{font-size:11px}.project-topline{gap:8px}.renovation-workspace .panel{padding:18px 16px;scroll-margin-top:132px}.panel-heading{padding-bottom:14px;margin-bottom:18px}.panel-heading h2{font-size:17px}.panel-heading>span{font-size:9px}.renovation-workspace .grid,.renovation-workspace .line .grid{grid-template-columns:1fr;gap:14px}.renovation-workspace .line .wide,.renovation-workspace .line .full{grid-column:1/-1}.renovation-workspace .steps{margin:0 -16px 20px;border-radius:0;border-inline:0;padding:8px 12px}.steps a{padding:8px 12px;flex:none}.renovation-workspace .actions{gap:8px}.panel>.actions>button{flex:1 1 auto}.renovation-workspace .file{width:100%}.renovation-workspace .file input{width:100%;max-width:none;font-size:12px}.renovation-workspace .payment{grid-template-columns:minmax(0,1fr) 100px}.renovation-workspace .work-controls{display:grid;grid-template-columns:1fr;width:100%}.renovation-workspace .work-controls button{width:100%}.renovation-workspace .check{align-items:flex-start;font-size:12px}.renovation-workspace .check input{margin-top:3px}.project-side button{font-size:11px;padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.renovation-workspace *{scroll-behavior:auto!important;transition:none!important}}
@media print{.workspace-sidebar,.workspace-topbar,.steps,.heading>.actions,.list-tools{display:none!important}.renovation-workspace main{margin:0;padding:0;max-width:none}.renovation-workspace .panel{box-shadow:none;break-inside:avoid}}

.renovation-workspace.editing-project #project-overview,.renovation-workspace.editing-project #list-workspace{display:none}
.renovation-workspace button.stage-statement-download{display:inline-flex;align-items:center;justify-content:center;min-height:38px;margin:8px 0 0;padding:6px 11px;border:1px solid #9db39e;border-radius:7px;background:#f5f8f3;color:#153927;font-size:12px;font-weight:600;line-height:1.4}
.renovation-workspace button.stage-statement-download:hover{background:#e8f0e7;border-color:#718d73}

/* 履约子单：进度条、逐项清单、现在要做 */
.fx-steps{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:4px 0 12px}
.fx-step{padding:4px 10px;border-radius:999px;background:#eef1ef;color:#68766e;font-size:13px;white-space:nowrap}
.fx-step.ok{background:#e7f5ec;color:#15803d}.fx-step.now{background:#fff3d6;color:#8a5a00;font-weight:600}.fx-step.bad{background:#fde8e8;color:#b42318;font-weight:600}
.fx-arrow{color:#b2bcb6;font-size:12px}
.fx-list{border:1px solid #dce2df;border-radius:10px;background:#fff;overflow:hidden}
.fx-row{display:flex;align-items:flex-start;gap:10px;padding:9px 12px;border-top:1px solid #edf0ee;margin:0;cursor:pointer}
.fx-row:first-child{border-top:0}.fx-row input{margin-top:4px;flex:none}
.fx-name{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.fx-name small{color:#68766e;font-size:12.5px;line-height:1.45}
.fx-tag{flex:none;align-self:center;padding:2px 9px;border-radius:999px;background:#eef1ef;color:#3d4d45;font-size:12.5px;white-space:nowrap}
.fx-name .fx-tag{align-self:flex-start;white-space:normal}.fx-tag.ok{background:#e7f5ec;color:#15803d}
.fx-hint{margin:6px 0 0;font-size:12.5px}
.fx-now{margin:14px 0;padding:12px 14px;border-left:3px solid #633899;background:#faf7fd;border-radius:0 10px 10px 0}
.fx-now-title{display:block;margin-bottom:4px;color:#633899}
.fx-now .work-terms{border-top:0;padding-top:4px;margin-top:4px}
.work-contract{margin:12px 0}.work-contract>summary,.fx-more>summary,.fx-records>summary{cursor:pointer;color:#3d4d45;font-weight:600}

.fx-chips{display:inline-flex;flex-wrap:wrap;gap:5px;margin-left:8px;vertical-align:middle}
.fx-chip{padding:2px 9px;border-radius:999px;font-size:12.5px;font-weight:600;line-height:1.6;white-space:nowrap;background:#eef1ef;color:#7a867f}
.fx-chip.ok{background:#e3f4e8;color:#157a3c}.fx-chip.now{background:#fff0c7;color:#8a5a00}.fx-chip.wait{background:#efe6fa;color:#633899}.fx-chip.bad{background:#fde4e4;color:#b42318}
.fx-chip.mid{background:#e6eefb;color:#245ea6}.fx-row>.fx-chip{flex:none;align-self:center}

.fx-overview{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 14px;padding:10px 12px;border:1px solid #dce2df;border-radius:10px;background:#fff}
.fx-overview-title{font-weight:700;margin-right:6px}.fx-overview-hint{font-size:12px;margin-left:auto}
.fx-overview .fx-chip{border:0;cursor:pointer;font:inherit;font-size:13px;font-weight:600;padding:4px 11px}
.fx-overview .fx-chip.on{outline:2px solid currentColor;outline-offset:1px}
.fx-chip.later{background:#eef1ef;color:#7a867f}.fx-chip.okn{display:none;background:#e3f4e8;color:#157a3c}
.fx-done>summary{cursor:pointer;font-weight:700;color:#157a3c}
.fx-shortcut{align-items:center;margin:6px 0}
@media(max-width:600px){.fx-chips .fx-chip.step,.fx-chips .fx-chip.later{display:none}.fx-chips .fx-chip.okn{display:inline}.fx-overview-hint{margin-left:0;flex-basis:100%}}
.fx-all{background:#f6f8f7}.fx-all b{color:#3d4d45}

/* 进度表（甘特图） */
.sch{border:1px solid #dce2df;border-radius:10px;background:#fff;padding:12px;margin:10px 0 14px;display:grid;gap:10px}
.sch-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px 16px;align-items:end}
.sch-sum{display:flex;flex-wrap:wrap;gap:6px 12px;align-items:center;font-size:14px}.sch-sum>b{font-size:16px}
.sch-tools{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.sch-tools label{display:grid;font-size:12.5px;color:#68766e}
.sch-empty{margin:0}
.sch-scroll{overflow-x:auto;-webkit-overflow-scrolling:touch}
.sch-grid{--label:160px;position:relative;width:calc(var(--label) + var(--w))}
.sch-row{display:flex;align-items:stretch;border-top:1px solid #edf0ee}.sch-axis{border-top:0}
.sch-label{position:sticky;left:0;z-index:3;flex:none;width:var(--label);background:#fff;text-align:left;border:0;border-radius:0;padding:5px 10px 5px 0;display:flex;flex-direction:column;justify-content:center;font:inherit;color:#22362e;cursor:pointer;min-height:36px}
.sch-label:disabled{cursor:default;opacity:1}.sch-label span{font-weight:600;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sch-label small{font-size:12px;color:#68766e}.sch-label small.ok{color:#157a3c}.sch-label .bad{color:#b42318;font-weight:600}
.sch-lane{position:relative;flex:none;width:var(--w);min-height:36px}.sch-axis .sch-lane,.sch-axis .sch-label{min-height:22px}
.sch-tick{position:absolute;top:3px;font-size:11px;color:#68766e;white-space:nowrap;border-left:1px solid #dce2df;padding-left:3px;line-height:1.3}.sch-tick.m{color:#22362e;font-weight:700}
.sch-sun i{position:absolute;top:0;bottom:0;background:#f3f5f4}
.sch-bar{position:absolute;top:7px;height:22px;border-radius:6px;overflow:hidden;cursor:grab;touch-action:none;display:flex;align-items:center;box-sizing:border-box;border:1px solid transparent;user-select:none}
.sch-bar:active{cursor:grabbing}.sch-bar i{position:absolute;inset:0 auto 0 0}
.sch-bar span{position:relative;font-size:11px;padding:0 6px;white-space:nowrap;color:#22362e;pointer-events:none}
.sch-bar b{position:absolute;right:0;top:0;bottom:0;width:10px;cursor:ew-resize;background:rgba(34,54,46,.15)}
.sch-bar.wait{background:#eef1ef;border-color:#cfd6d2}.sch-bar.active{background:#e6eefb;border-color:#9cc0f0}.sch-bar.active i{background:#bcd3f3}
.sch-bar.done{background:#d7f0e0;border-color:#7fd59f}.sch-bar.done i{background:#a9e2bf}.sch-bar.late{background:#fde4e4;border-color:#e58a80}.sch-bar.late i{background:#f6bdb6}
.sch-bar.dirty{outline:2px dashed #633899;outline-offset:1px}
.sch-none{position:absolute;top:9px;left:8px;font-size:12px;color:#9aa6a0}
.sch-today{position:absolute;top:0;bottom:0;width:2px;background:#b42318;opacity:.55;pointer-events:none;z-index:2}
.sch-edit{display:flex;flex-wrap:wrap;gap:8px;align-items:end;padding:6px 0 10px;position:sticky;left:0;max-width:100%}.sch-edit label{display:grid;font-size:12.5px;color:#68766e}
.sch-hint{font-size:12.5px;margin:0}.sch-key{display:inline-block;width:14px;height:10px;border-radius:3px;vertical-align:middle;margin:0 2px 0 8px;border:1px solid transparent}
.sch-key.wait{background:#eef1ef;border-color:#cfd6d2}.sch-key.active{background:#bcd3f3}.sch-key.done{background:#a9e2bf}.sch-key.late{background:#f6bdb6}
@media(max-width:600px){.sch-grid{--label:108px}.sch-label span{font-size:12.5px}}
.renovation-workspace .sch button.sch-label,.sch button.sch-label{background:#fff;color:#22362e;border:0;border-radius:0;box-shadow:none;padding:5px 10px 5px 0;min-height:36px;width:var(--label);font-weight:400;justify-content:center}
.sch button.sch-label:hover{background:#f6f8f7}.sch button.sch-label:focus-visible{outline:2px solid #633899;outline-offset:-2px}

/* 一行一个按钮：标题行右边是下一步 */
details.work>summary{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
details.work>summary::-webkit-details-marker{margin-right:2px}
.renovation-workspace button.fx-go,button.fx-go{margin-left:auto;width:auto;min-height:34px;padding:6px 14px;border-radius:8px;font-size:13.5px;font-weight:700;background:#153927;color:#fff;border:0;flex:none}
.renovation-workspace button.fx-go.ghost,button.fx-go.ghost{background:#fff;color:#633899;border:1px solid #c9b3ea}
.fx-assignee{display:flex;align-items:center;gap:8px;margin:6px 0 10px;flex-wrap:wrap}.fx-assignee label{font-size:13px;color:#68766e;font-weight:600}
.fx-assignee input{flex:1 1 160px;max-width:280px;min-height:34px;padding:4px 10px}
.renovation-workspace .fx-assignee button,.fx-assignee button{width:auto;min-height:34px;padding:4px 14px;flex:none}
.fulfillment:not(.picking) .fx-row input[type=checkbox],.fulfillment:not(.picking) .fx-all{display:none}
.fulfillment:not(.picking) .fx-row{cursor:default}.fx-row.same>.fx-chip{display:none}
.fulfillment.picking .fx-hint-whole,.fulfillment:not(.picking) .fx-hint-pick{display:none}
.renovation-workspace button.fx-link,button.fx-link{background:none;border:0;padding:0;min-height:0;width:auto;color:#633899;text-decoration:underline;font:inherit;font-size:12.5px;cursor:pointer}
.fx-flash{animation:fxflash 1.4s ease}@keyframes fxflash{0%{box-shadow:0 0 0 0 rgba(99,56,153,.55)}100%{box-shadow:0 0 0 14px rgba(99,56,153,0)}}
@media(prefers-reduced-motion:reduce){.fx-flash{animation:none}}
@media(max-width:600px){.renovation-workspace button.fx-go,button.fx-go{margin-left:0;width:100%}}

/* 清单紧凑一点：名称和规格一行 */
.fx-row{padding:7px 12px}.fx-name{flex-direction:row;flex-wrap:wrap;align-items:baseline;column-gap:10px;row-gap:2px}
.fx-name>small.warning,.fx-name>.fx-tag{flex-basis:100%}
.fx-now{margin:4px 0 12px}

/* 施工计划：关键工序、验收节点、交房线、材料 / 验收 / 漏项 / 师傅 */
.sch-bar.crit{box-shadow:inset 0 0 0 2px #7a2e8f}.sch-key.crit{background:#fff;border:2px solid #7a2e8f}
.sch-ms .sch-lane{min-height:30px}.sch-ms .sch-label span{font-size:12.5px;color:#68766e}
.sch-dia{position:absolute;top:6px;transform:translateX(-50%);font-size:15px;color:#9aa6a0;line-height:1;cursor:default}.sch-dia.pay{color:#633899}
.sch-hand{position:absolute;top:0;bottom:0;width:0;border-left:2px dashed #157a3c;z-index:2;pointer-events:none}.sch-hand span{position:absolute;top:2px;left:3px;font-size:11px;color:#157a3c;font-weight:700;white-space:nowrap}
.sch-extras{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:10px}
.sch-box{border:1px solid #e3e7e4;border-radius:8px;padding:8px 12px;background:#fbfcfb;min-width:0}.sch-box>summary{cursor:pointer;font-weight:700;color:#22362e}
.sch-tablewrap{overflow-x:auto}.sch-table{width:100%;border-collapse:collapse;font-size:13px;margin-top:6px}.sch-table th,.sch-table td{text-align:left;padding:6px 6px;border-top:1px solid #edf0ee;vertical-align:top}.sch-table th{color:#68766e;font-weight:500}
.sch-table td small{display:block;color:#68766e;font-size:12px}.sch-table .bad,.sch-list .bad{color:#b42318;font-weight:600}
.sch-list{margin:6px 0 0;padding-left:18px;display:grid;gap:6px;font-size:13.5px}.sch-list small{color:#68766e}.sch-note{font-size:12px;margin:6px 0 0}.ok-text{color:#157a3c;margin:6px 0 0}
.sch-crew-form{margin-top:8px}
@media(min-width:760px){.sch-extras>.sch-box:first-child{grid-column:span 2}}

/* 履约子订单两个标签 */
.fx-tabs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:6px 0 12px;border-bottom:1px solid #dce2df}
.renovation-workspace .fx-tabs button,.fx-tabs button{width:auto;min-height:38px;background:none;border:0;border-bottom:3px solid transparent;border-radius:0;color:#68766e;font-weight:600;padding:6px 12px;margin-bottom:-1px}
.fx-tabs button[aria-selected=true]{color:#153927;border-bottom-color:#153927}
.renovation-workspace .fx-tabs .fx-plan-sum,.fx-tabs .fx-plan-sum{margin-left:auto;font-weight:400;font-size:13px;color:#3d4d45;border-bottom-color:transparent}
.fx-plan-sum .bad,.sch-headline .bad,.sch-label .bad{color:#b42318}.sch-headline .ok{color:#157a3c}
.sch-headline{font-size:15px}
.sch-issues{border:1px solid #f1c5c0;background:#fdf3f2;border-radius:8px;padding:8px 12px}.sch-issues b{color:#b42318}.sch-issues ul{margin:4px 0 0;padding-left:18px;display:grid;gap:3px;font-size:13.5px}
.sch-dot{display:inline-block;width:8px;height:8px;border-radius:50%;background:#b42318;margin-left:6px;vertical-align:middle}
/* 颜色只表示一件事：卡完工的工序用深色粗框，不再用紫色；可收款的验收节点用绿色 */
.sch-bar.crit{box-shadow:inset 0 0 0 2px #22362e}.sch-key.crit{border:2px solid #22362e}
.sch-dia{display:flex;align-items:center;gap:2px;white-space:nowrap}.sch-dia em{font-style:normal;font-size:11px;color:#3d4d45;background:rgba(255,255,255,.85);padding:0 2px;border-radius:3px}
.sch-dia.pay{color:#157a3c}.sch-dia.pay em{color:#157a3c;font-weight:700}
.crew-admin{margin:14px 0}.crew-admin>summary{cursor:pointer}.crew-admin tr.off td{color:#9aa6a0}
@media(max-width:600px){.renovation-workspace .fx-tabs .fx-plan-sum,.fx-tabs .fx-plan-sum{margin-left:0;flex-basis:100%;text-align:left;padding-top:0}}
.renovation-workspace .fx-tabs button:hover,.fx-tabs button:hover,.fx-tabs button:focus{background:none;color:#153927}
.sch-ms .sch-lane{min-height:44px}.sch-dia.low{top:24px}
.fx-so-inline{margin-top:8px;padding:10px 12px;border:1px dashed rgba(99,56,153,.45);border-radius:10px;background:rgba(99,56,153,.04)}
.fx-so-inline[hidden]{display:none}
.fx-file-link{display:inline-block;padding:10px 16px;border:1px solid #d6ddcf;border-radius:7px;background:#fff;color:var(--hz-green,#153927);text-decoration:none;font-weight:500}
.fx-file-link:hover{background:#f5f7f1;border-color:#aeb9a3}
.fx-file{display:flex;flex-direction:column;gap:6px;flex:1;min-width:220px;font-size:13px;color:var(--muted)}
.fx-file-btns{display:flex;gap:8px;flex-wrap:wrap}
.fx-pick{position:relative;flex:1;min-width:110px;display:inline-flex;align-items:center;justify-content:center;padding:10px 12px;border:1px solid #d6ddcf;border-radius:7px;background:#fff;color:var(--hz-green,#153927);font-size:14px;font-weight:500;cursor:pointer}
.fx-pick:active{background:#f5f7f1}
.fx-file-input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer;margin:0}
.fx-file-name{font-size:12px;word-break:break-all}
.fx-so-lines{margin:6px 0 0;font-size:13px}.fx-so-lines summary{color:var(--muted)}.fx-so-lines ol{margin:6px 0 0;padding-left:20px}
.fx-inline-msg{flex-basis:100%;margin:8px 0 0;font-size:13px}
.fx-step{margin:10px 0 0;padding:10px 0 0;border-top:1px dashed #dce2df}.fx-step:first-of-type{border-top:0}
.fx-step>b{display:block;color:var(--hz-green,#153927)}.fx-step-wait>b{color:#9a6700}
.fx-step .fx-so-inline{border-style:solid}
/* 子单流程：编号步骤，竖排 */
.fx-flow{list-style:none;margin:10px 0 14px;padding:0;counter-reset:none}
.fx-st{position:relative;padding:0 0 14px 40px}
.fx-st:not(:last-child)::before{content:"";position:absolute;left:13px;top:28px;bottom:2px;width:2px;background:#e3e8e4}
.fx-st.done:not(:last-child)::before{background:#9fd3b0}
.fx-st-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px;min-height:28px}
.fx-st-no{position:absolute;left:0;top:0;width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;font-weight:700;background:#eef1ef;color:#8a968f;border:2px solid #e3e8e4;box-sizing:border-box}
.fx-st-head b{font-size:15px;line-height:28px;color:#8a968f}
.fx-st-sum{font-size:13px;color:#68766e}
.fx-st.done .fx-st-no{background:#15803d;border-color:#15803d;color:#fff}
.fx-st.done .fx-st-head b{color:#22362e;font-weight:600}
.fx-st.now .fx-st-no{background:#633899;border-color:#633899;color:#fff}
.fx-st.now .fx-st-head b{color:#633899;font-weight:700}
.fx-st-body{margin-top:6px;padding:12px 14px;border:1px solid #e6dcf2;border-radius:10px;background:#fbf9fe}
.fx-st-body>p{margin:0 0 8px}
.fx-form{margin:8px 0 0}
.fx-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:10px 12px;align-items:end}
.fx-fields:empty{display:none}
.fx-fields label{margin:0}
.fx-fields .fx-wide,.fx-fields .fx-file{grid-column:1/-1}
.fx-fields .check{margin:2px 0}
.fx-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:10px}
.fx-st-body .fx-so-inline{margin-top:10px;padding:12px;border:1px dashed rgba(99,56,153,.45);border-radius:10px;background:#fff}
.fx-pending{list-style:none;margin:4px 0;padding:0}.fx-pending>li{padding:8px 0;border-bottom:1px dashed #e3e8e4}.fx-pending .actions{margin:6px 0}
.fx-legacy{margin-top:10px}
@media(max-width:600px){.fx-st{padding-left:36px}.fx-st-body{padding:10px}.fx-actions button{flex:1 1 100%}}
.fx-idx{color:#8a968f;font-weight:600;margin-right:2px}
.fx-kind{margin-top:12px;font-size:14px}.fx-kind summary{color:#633899}.fx-kind .check{margin:6px 0}
/* 施工监理标签 */
.site-staff-pay{margin:6px 0 12px;padding:10px 12px;border-radius:10px;background:#e7f5ec;color:#14532d;font-size:14px}
.site-staff-list,.site-staff-log{list-style:none;margin:6px 0;padding:0}.site-staff-list>li,.site-staff-log>li{padding:8px 0;border-bottom:1px dashed #e3e8e4;font-size:14px}
.site-staff-log>li span{color:#5b6a62}
.site-staff-photos{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px;align-items:center}.site-staff-photos img{width:72px;height:72px;object-fit:cover;border-radius:6px;display:block}
.warning-chip{font-size:12px;padding:2px 8px;border-radius:999px;background:#fff3d6;color:#8a5a00}
.site-staff-pick{margin:10px 0}.site-staff-cands{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:8px;margin-top:6px}
.site-staff-cand{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:10px 12px;border:1px solid #e3e8e4;border-radius:10px;background:#fff}
.site-staff-cand small{color:#5b6a62}.site-staff-cand em{font-style:normal;font-size:12px;color:#15803d}
.site-staff-ext{margin-top:8px}.site-staff-ext summary{color:#633899;cursor:pointer}
.fx-plan-link{display:block;width:100%;text-align:left;margin:0 0 12px;padding:10px 12px;border:1px solid #e3e8e4;border-radius:10px;background:#f6f9f7;color:#3d4d45;font-size:14px;cursor:pointer}
.fx-plan-link:empty{display:none}.fx-plan-link::before{content:"施工计划：";font-weight:700;color:#153927}.fx-plan-link::after{content:" ›";color:#633899}
.fx-plan-link .bad{color:#b42318}
#site-badge{font-size:14px;font-weight:500;color:#9a6700}
/* 施工计划看板：三个大数字 + 一行工具 + 要处理（前 3 条）+ 一屏甘特图 + 上下排列的三栏 */
.sch-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:10px}
.sch-kpi{border:1px solid #e3e7e4;border-radius:12px;padding:10px 14px;background:#fff;display:flex;flex-direction:column;gap:2px;min-width:0}
.sch-kpi small{color:#68766e;font-size:12.5px}.sch-kpi>b{font-size:24px;line-height:1.2;color:#153927}.sch-kpi>span{font-size:13px;color:#5b6a62}
.sch-kpi.bad{border-color:#f1c5c0;background:#fdf6f5}.sch-kpi.bad>b{color:#b42318}.sch-kpi.ok>b{color:#157a3c}
.sch-kpi .sch-headline{font-size:13px}
.sch-tag{display:inline-block;margin-right:6px;padding:0 7px;border-radius:999px;background:#fff;border:1px solid #f1c5c0;color:#b42318;font-size:12px;font-weight:600}
.sch-issues ul{list-style:none;padding-left:0}.sch-issues details summary{cursor:pointer;color:#b42318;font-size:13px;margin-top:4px}
.sch-bar.tight span{display:none}
.sch-today span{position:absolute;top:-2px;left:4px;font-size:11px;color:#b42318;font-weight:700;white-space:nowrap;background:#fff;padding:0 2px}
.sch-skip{margin:6px 0 0;font-size:12.5px}
.sch-extras{grid-template-columns:1fr}
@media(min-width:760px){.sch-extras>.sch-box:first-child{grid-column:auto}}
.sch-box>summary{display:flex;align-items:center;gap:8px}
@media(max-width:600px){.sch-kpis{grid-template-columns:1fr 1fr}.sch-kpi:first-child{grid-column:1/-1}.sch-kpi>b{font-size:20px}}
/* 施工计划：全局 / 近 4 周 */
.sch-views{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0 6px}
.sch-views button{min-height:34px;padding:0 14px;border-radius:999px;border:1px solid #d6ddcf;background:#fff;color:#22362e;font-size:13px;cursor:pointer}
.sch-views button[aria-pressed="true"]{background:#153927;border-color:#153927;color:#fff;font-weight:600}
.sch-views .muted{font-size:12.5px;margin-left:4px}
.sch-fit{overflow-x:hidden}
.sch-compact .sch-row:not(.sch-axis){min-height:32px}
.sch-compact .sch-label small{display:none}
.sch-compact .sch-bar{height:14px}
.sch-compact .sch-bar span{display:none}
.sch-tiny .sch-sun{display:none}
/* 甘特图：工种颜色 + 天数 */
.sch-bar.tr-mep{background:#dbeafe;border-color:#93c5fd}.sch-key.tr-mep{background:#93c5fd}
.sch-bar.tr-plumb{background:#dbeafe;border-color:#93c5fd}.sch-key.tr-plumb{background:#93c5fd}
.sch-bar.tr-elec{background:#fee2e2;border-color:#f87171}.sch-key.tr-elec{background:#f87171}
.sch-bar.tr-mason{background:#fde7d3;border-color:#f4a76b}.sch-key.tr-mason{background:#f4a76b}
.sch-bar.tr-tile{background:#e7e5e4;border-color:#a8a29e}.sch-key.tr-tile{background:#a8a29e}
.sch-bar.tr-wood{background:#fef3c7;border-color:#e8c25a}.sch-key.tr-wood{background:#e8c25a}
.sch-bar.tr-paint{background:#ccfbf1;border-color:#5ecdb8}.sch-key.tr-paint{background:#5ecdb8}
.sch-bar.tr-cab{background:#ede9fe;border-color:#a78bfa}.sch-key.tr-cab{background:#a78bfa}
.sch-bar.tr-fac{background:#fce7f3;border-color:#f08cc0}.sch-key.tr-fac{background:#f08cc0}
.sch-bar.tr-clean{background:#dcfce7;border-color:#6fd394}.sch-key.tr-clean{background:#6fd394}
.sch-bar.tr-misc{background:#e5e7eb;border-color:#a3a8b0}.sch-key.tr-misc{background:#a3a8b0}
.sch-bar.tr-other{background:#eef1ef;border-color:#c3cbc6}.sch-key.tr-other{background:#c3cbc6}
.sch-bar[class*="tr-"] i{background:rgba(21,57,39,.18)}
.sch-bar.wait i{display:none}
.sch-bar.done{opacity:.55}
.sch-bar.late{border:2px solid #d92d20}.sch-key.late{background:#fff;border:2px solid #d92d20}.sch-key.active{background:rgba(21,57,39,.25)}
.sch-days{position:absolute;top:50%;transform:translateY(-50%);font-size:11.5px;font-weight:600;color:#3d4d45;white-space:nowrap;pointer-events:none}
.sch-days.bad{color:#b42318}
.sch-compact .sch-bar{top:50%;transform:translateY(-50%)}
/* 施工计划按工序 */
.sch-phase-row{background:#fff}.sch-phase-row .sch-label span{font-weight:700}
.sch-sub .sch-label{padding-left:14px!important}.sch-sub .sch-label span{font-weight:400;font-size:13px}
.sch-sub{background:#fbfcfb}
.sch-mat{position:absolute;top:50%;width:9px;height:9px;margin:-5px 0 0 -4px;transform:rotate(45deg);background:#8a968f;border:1px solid #fff;z-index:2;pointer-events:auto}
.sch-mat.soon{background:#d99a00}.sch-mat.bad{background:#d92d20}
.sch-phase-edit{display:grid;gap:8px}.sch-edit-row{display:flex;flex-wrap:wrap;gap:8px;align-items:end}.sch-edit-row>span{min-width:120px;font-size:13px;color:#3d4d45}
.sch-par{font-weight:600;color:#157a3c}
.sch-compact .sch-phase-row .sch-label small{display:block}
/* 原计划对比实际 */
.sch-base{position:absolute;top:2px;height:4px;border-radius:2px;background:#b9c2bd;pointer-events:auto;z-index:1}
.sch-act{position:absolute;bottom:2px;height:4px;border-radius:2px;background:#153927;pointer-events:auto;z-index:1}
.sch-act.done{background:#157a3c}
.sch-key.base{background:#b9c2bd;height:4px}.sch-key.act{background:#153927;height:4px}
.sch-vpos{position:absolute;top:50%;transform:translateY(-50%);white-space:nowrap;pointer-events:none}
.sch-var{font-style:normal;font-size:11.5px;font-weight:700;color:#5b6a62}.sch-var.bad{color:#b42318}.sch-var.ok{color:#157a3c}
.sch-phase-row .sch-lane{min-height:36px}
/* 时间轴：上面一行放「今天 / 交房」，下面一行放日期，互不遮挡 */
.sch-axis .sch-lane,.sch-axis .sch-label{min-height:38px}
.sch-axis .sch-tick{top:19px}
.sch-today span{top:2px;background:transparent;padding:0}
.sch-hand span{top:2px}
.sch-hand.flip span{left:auto;right:5px}
.sch-axis .sch-lane,.sch-axis .sch-label{min-height:40px}.sch-axis .sch-tick{top:22px}
.sch-today span,.sch-hand span{line-height:14px}
.sch-mclick{cursor:zoom-in;border-radius:3px}.sch-mclick:hover{background:#eef4f0;color:#153927}
.sch-axis .sch-lane{cursor:ew-resize}
.sch-views button:disabled{opacity:.4;cursor:default}
/* 工序展开：这个工种一次进场要做的项目 */
.sch-items{margin:0 0 8px calc(var(--label) - 150px);padding:10px 12px;border:1px solid #e3e8e4;border-radius:10px;background:#fbfcfb;position:sticky;left:0;max-width:min(720px,calc(100vw - 80px))}
.sch-items b{font-size:13px;color:#22362e}.sch-items ul{list-style:none;margin:6px 0 0;padding:0}
.sch-items li{display:flex;flex-wrap:wrap;gap:4px 10px;align-items:baseline;padding:4px 0;border-bottom:1px dashed #e3e8e4;font-size:13px}
.sch-items li small{color:#68766e}.sch-items li em{margin-left:auto;font-style:normal;font-size:12px;color:#68766e}
.sch-items .st-done{color:#157a3c}.sch-items .st-working,.sch-items .st-arrived{color:#633899}.sch-items .st-ordered{color:#9a6700}
/* 看板表格化：行、标签列、每周、每月都用虚线隔开 */
.sch-grid .sch-row{border-top:1px dashed #d6ddd8}.sch-grid .sch-row:last-of-type{border-bottom:1px dashed #d6ddd8}.sch-grid .sch-axis{border-top:0;border-bottom:1px dashed #b9c3bd}
.sch-grid .sch-label{border-right:1px dashed #c9d1cc!important}
.sch-sun b{position:absolute;top:0;bottom:0;width:0;border-left:1px dashed #e1e6e3}.sch-sun b.m{border-left-color:#aab5af}
.sch-tiny .sch-sun{display:block}.sch-tiny .sch-sun i{display:none}
.sch-items{border-style:dashed}
/* 预计 / 实时 */
.sch-fc{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;margin:4px 0 10px;padding:8px 12px;border:1px dashed #c9d1cc;border-radius:10px;background:#fbfcfb}
.sch-fc .sch-views{margin:0}.sch-fc .muted{font-size:13px}
.sch-fc.warn{background:#fff8e6;border-color:#e8c66a;color:#6b4e00;font-size:13px}.sch-fc.warn>span{flex:1 1 320px}
.sch-autonote{margin:0 0 10px;padding:8px 12px;border-radius:10px;background:#eef6ff;color:#1d4f86;font-size:13px}
.sch-fc-edit .sch-reason{flex:1 1 220px}.sch-fc-edit .sch-reason input{width:100%}
/* 工厂定做段：安装横条前面的斜纹 */
.sch-prod{position:absolute;top:11px;height:14px;box-sizing:border-box;border:1px dashed #9a8fc4;border-right:0;border-radius:7px 0 0 7px;background:repeating-linear-gradient(135deg,#ece8f8 0 5px,#fff 5px 9px);display:flex;align-items:center;overflow:hidden;pointer-events:auto}
.sch-prod em{font-style:normal;font-size:11px;color:#5b4e8c;padding-left:6px;white-space:nowrap}
.sch-prod.bad{border-color:#c0392b;background:repeating-linear-gradient(135deg,#fbe3e0 0 5px,#fff 5px 9px)}.sch-prod.bad em{color:#a32d1f}
.sch-prod.done{opacity:.5}
.sch-compact .sch-prod{top:50%;height:10px;transform:translateY(-50%)}
.sch-key.prod{background:repeating-linear-gradient(135deg,#cfc6ee 0 3px,#fff 3px 6px);border:1px dashed #9a8fc4}
/* 工序展开：按子单列出履约任务 */
.sch-wo{margin-top:8px;padding:8px 10px;border:1px dashed #d3dad6;border-radius:8px;background:#fff}
.sch-wo-head{display:flex;flex-wrap:wrap;align-items:center;gap:4px 12px;font-size:13px;color:#4b5a52}.sch-wo-head b{color:#22362e;font-size:13.5px}.sch-wo-head .ok{color:#157a3c}
.sch-wo-head .sch-go{margin-left:auto;padding:3px 10px;min-height:28px;font-size:12.5px}
.sch-wo-days{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:6px 0 2px;font-size:12.5px;color:#4b5a52}.sch-wo-days>span{flex:1 1 240px}.sch-wo-days .bad{color:#a32d1f}
.sch-wo-days label{display:flex;align-items:center;gap:6px;font-size:12.5px}.sch-wo-days input{width:70px;min-height:30px;padding:2px 6px}.sch-wo-days button{padding:3px 10px;min-height:30px;font-size:12.5px}

/* 现场手动调整：换工序、手动标签、加工序 */
.sch-items .sch-move{font-size:12px;padding:2px 4px;max-width:150px;border:1px solid #cfd8d2;border-radius:6px;background:#fff}
.sch-manual{font-style:normal;font-size:11px;color:#9a6700;background:#fff4d6;border-radius:4px;padding:0 4px}
.sch-custom{display:flex;flex-wrap:wrap;gap:6px 10px;align-items:center;margin-top:6px;font-size:13px;color:#4c5a52}
.sch-addphase .sch-edit-row{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin:8px 0}
.sch-addphase label{display:flex;flex-direction:column;font-size:12px;gap:2px}

/* 看板：≡ 拖动改工序先后 */
.renovation-workspace .sch button.sch-label.has-grip,.sch button.sch-label.has-grip{padding-left:22px}
.sch-grip{position:absolute;left:2px;top:50%;transform:translateY(-50%);width:18px;text-align:center;font-style:normal;font-size:17px;color:#8a978f;cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
.sch-grip:hover{color:#1f5c45}.sch-dragging{background:#f2f7f4}.sch-dragging .sch-label{background:#f2f7f4!important}
.sch-dropline{position:absolute;left:0;right:0;height:3px;background:#1f5c45;border-radius:2px;z-index:6;pointer-events:none}
.design-list{list-style:none;padding:0;margin:6px 0 0;display:grid;gap:10px}.design-item{display:flex;gap:10px;align-items:flex-start}
.design-thumb{flex:0 0 84px;width:84px;height:64px;border-radius:6px;border:1px solid var(--line,#ddd);display:flex;align-items:center;justify-content:center;overflow:hidden;font-weight:600;color:inherit;text-decoration:none;background:#f6f6f4}
.design-thumb img{width:100%;height:100%;object-fit:cover;display:block}

/* 横屏看：甘特图铺满整个屏幕；能锁横屏的手机自动转，iPhone 提示把手机横过来 */
.sch-full{position:fixed!important;inset:0;z-index:1000;margin:0!important;border-radius:0!important;background:#fff;overflow:auto;padding:10px max(10px,env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left))!important}
.sch-full .sch{margin:0;border:0;padding:0}
html.sch-full-on,html.sch-full-on body{overflow:hidden}
.sch-rotate{font-size:12px;color:#8a5a00;background:#fdf3dc;border-radius:6px;padding:2px 8px}
@media (orientation:landscape){.sch-rotate{display:none}}
.sch-full .sch-kpis,.sch-full .sch-issues,.sch-full .sch-extras,.sch-full .sch-fc,.sch-full .sch-autonote,.sch-full .sch-hint{display:none!important}
