@import url("/static/fonts/noto-sans-sc.css");

:root{--space-1:8px;--space-2:16px;--space-3:24px;--radius:8px;--radius-sm:6px;--sidebar-width:224px;--header-height:56px;--control-height:32px;--bg:#f5f5f5;--card:#fff;--line:#f0f0f0;--text:#1f1f1f;--muted:#707070;--brand:#1677ff;--brand-soft:#e6f4ff;--nav:#fff;--nav-text:#434343;--green:#169c68;--red:#d92d20;--amber:#dc8500;--blue:#2563eb;--gray:#697386;--violet:#7c3aed;--shadow:0 6px 16px rgba(0,0,0,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Noto Sans SC",sans-serif;background:var(--bg);color:var(--text);font-size:14px;line-height:1.55}
a{color:var(--brand);text-decoration:none}
.app-shell{min-height:100vh}
.sidebar{position:fixed;inset:0 auto 0 0;width:var(--sidebar-width);background:var(--nav);color:var(--text);padding:0 12px 16px;display:flex;flex-direction:column;z-index:30;overflow-y:auto;border-right:1px solid var(--line);scrollbar-width:thin}
.brand-lockup{display:flex;align-items:center;gap:8px;min-height:72px;padding:16px 12px;border-bottom:1px solid var(--line);flex-shrink:0}
.brand-lockup.brand-lockup-logo{justify-content:flex-start;padding:18px 12px}
.brand-lockup-logo img{display:block;width:164px;max-width:100%;height:auto}
.nav-label{font-size:12px;color:#8c8c8c;letter-spacing:0;margin:24px 12px 8px;font-weight:400}
.side-link{display:flex;align-items:center;gap:10px;color:var(--nav-text);padding:8px 12px;min-height:40px;border-radius:6px;margin:4px 0;font-size:14px;transition:background .15s,color .15s}
.side-link:hover{background:#fafafa;color:var(--brand)}.side-link.active{background:var(--brand-soft);color:#0958d9;font-weight:600;box-shadow:none}
.side-icon{width:20px;height:20px;display:grid;place-items:center;flex:none;color:inherit}.active .side-icon{background:transparent}
.nav-count{margin-left:auto;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:#d92d20;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-size:11px;font-weight:700}.side-sub{margin:0 0 8px 0;padding-left:20px}.side-sub a{display:flex;align-items:center;gap:8px;color:var(--muted);font-size:13px;padding:8px 12px;min-height:36px;border-radius:6px;margin:2px 0}.side-sub a:hover,.side-sub a.active{color:#0958d9;background:var(--brand-soft)}.side-sub .nav-count{height:18px;min-width:18px;font-size:10px}
.sidebar-foot{margin-top:auto;border-top:1px solid var(--line);padding:16px 8px 0}.user-chip{display:flex;align-items:center;gap:10px}.avatar{width:32px;height:32px;flex-shrink:0;border-radius:50%;background:var(--brand-soft);color:#0958d9;display:grid;place-items:center;font-weight:600}.user-chip strong{display:block;font-size:13px}.user-chip small{display:block;color:var(--muted);font-size:11px;max-width:122px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.logout{color:var(--muted);font-size:12px;margin-left:auto;flex-shrink:0}.logout:hover{color:var(--brand)}
.workspace{margin-left:var(--sidebar-width);min-height:100vh;min-width:0}.topbar{height:var(--header-height);background:#fff;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:8px;padding:0 24px;position:sticky;top:0;z-index:20}.topbar strong{font-size:14px;font-weight:500}.topbar span{color:var(--muted);font-size:13px;margin-left:0}.topbar .spacer{flex:1}.topbar-badge{background:var(--brand-soft);color:var(--brand)!important;border-radius:99px;padding:4px 10px}
main{max-width:1600px;margin:0 auto;padding:24px 24px 64px;min-width:0}.plain-main{max-width:1080px;margin:0 auto;padding:20px 14px 60px}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:24px;margin-bottom:16px;box-shadow:none}
h1{font-size:24px;font-weight:600;letter-spacing:0;margin:0 0 16px;line-height:1.4}h2{font-size:16px;margin:0 0 12px}p{margin:8px 0}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:24px}.page-head h1{font-size:24px;margin:0 0 8px}.page-desc{color:var(--muted);margin:0}.eyebrow{font-size:12px!important;color:var(--muted)!important;font-weight:400;letter-spacing:0;margin:0 0 4px!important}
table{width:100%;border-collapse:collapse;font-size:13px}th,td{border-bottom:1px solid var(--line);padding:12px 16px;text-align:left;vertical-align:top}th{background:#fafafa;font-weight:600;color:#595959;font-size:13px;letter-spacing:0}tr:last-child td{border-bottom:0}.table-wrap{overflow-x:auto}
a.btn,button.btn{display:inline-flex;align-items:center;justify-content:center;padding:4px 15px;border-radius:var(--radius-sm);border:1px solid #d9d9d9;background:#fff;color:var(--text);font-size:14px;font-weight:400;line-height:1.6;cursor:pointer;text-decoration:none;white-space:nowrap;min-height:var(--control-height)}.btn:hover{border-color:#4096ff;color:#4096ff;background:#fff}.btn.primary{background:var(--brand);border-color:var(--brand);color:#fff;box-shadow:0 2px 0 rgba(5,145,255,.1)}.btn.danger{background:#fff;border-color:#f0b4ae;color:var(--red)}.btn.success{background:var(--green);border-color:var(--green);color:#fff}.btn:disabled{opacity:.48;cursor:not-allowed}
input,select,textarea{padding:5px 11px;min-height:var(--control-height);border:1px solid #d9d9d9;border-radius:var(--radius-sm);font-size:14px;width:100%;font-family:inherit;background:#fff;color:var(--text);outline:none}input:focus,select:focus,textarea:focus{border-color:#7ba3ff;box-shadow:0 0 0 3px rgba(22,93,255,.1)}textarea{min-height:74px;resize:vertical}input[type=file]{border:1px dashed #c9d0da;padding:8px;background:#fafbfc}label{display:block;font-size:13px;color:#434343;margin:12px 0 8px;font-weight:400}
.password-field{position:relative;display:block}.password-field input{padding-right:42px}.password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);width:34px;height:32px;padding:0;border:0;background:transparent;color:#687386;display:grid;place-items:center;cursor:pointer;border-radius:6px}.password-toggle:hover{background:#f0f3f8;color:var(--brand)}.password-toggle svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.password-toggle .eye-off{display:none}.password-toggle.is-visible .eye-on{display:none}.password-toggle.is-visible .eye-off{display:block}
.photo-upload-choices{display:grid;grid-template-columns:repeat(2,minmax(0,260px));gap:12px;margin-top:14px}.photo-upload-option{border:1px solid var(--line);border-radius:11px;padding:13px;background:#fafbfc}.photo-upload-option .btn{width:100%;min-height:44px}.photo-upload-option.is-uploading{opacity:.62;pointer-events:none}.photo-source-input{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.photo-source-mark{width:25px;height:25px;border-radius:7px;display:inline-grid;place-items:center;margin-right:8px;background:rgba(255,255,255,.18);font-size:12px}.photo-upload-option:not(:first-child) .photo-source-mark{background:var(--brand-soft);color:var(--brand)}.photo-upload-help{margin:7px 1px 0;color:var(--muted);font-size:11px}.photo-upload-feedback{min-height:17px;margin-top:5px;color:var(--brand);font-size:11px}
.badge{display:inline-block;padding:2px 9px;border:1px solid #d6dce5;border-radius:99px;background:#eef2f6;color:#344054;font-size:11px;font-weight:650;line-height:1.4}.badge.revised{border-color:#f2c66d;background:#fff4d6;color:#8a5300}.badge.pending,.badge.uploaded,.badge.inspector_check,.badge.ocr_done,.badge.quality_hold,.badge.approved,.badge.rejected,.badge.outsourced{color:#fff;border-color:transparent}.badge.pending{background:var(--gray)}.badge.uploaded{background:var(--blue)}.badge.inspector_check,.badge.ocr_done{background:var(--amber)}.badge.quality_hold{background:var(--red)}.badge.approved{background:var(--green)}.badge.rejected{background:var(--red)}.badge.outsourced{background:var(--violet)}
.status-dot,.material-tag{display:inline-flex;align-items:center;border-radius:99px;padding:3px 9px;font-size:11px;font-weight:650;background:#eef1f5;color:#536071}.status-dot.ordered{background:#fff4dd;color:#a15c00}.status-dot.arrived{background:#e8f7f1;color:#087c52}.status-dot.closed{background:#edf0f4;color:#667085}.material-tag.blank{background:#fff0e8;color:#b54708}.material-tag.semi{background:#edf3ff;color:#175cd3}.material-tag.other{background:#f1edff;color:#6941c6}
.progress{height:7px;background:#e8ebf0;border-radius:99px;overflow:hidden}.progress>div{height:100%;background:var(--green);border-radius:99px;transition:width .3s}.muted{color:var(--muted);font-size:12px}.row{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:12px 18px}.span2{grid-column:1/-1}.toolbar{display:grid;grid-template-columns:minmax(220px,1fr) minmax(150px,220px) auto;gap:10px;align-items:center;margin-bottom:18px}.form-card{scroll-margin-top:85px}.section-head{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:13px;margin-bottom:12px}.section-head h2{margin:0;font-size:16px}
.metric-row{display:grid;grid-template-columns:repeat(2,minmax(0,180px));gap:12px;margin-bottom:18px}.metric{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:16px}.metric span{display:block;color:var(--muted);font-size:11px}.metric strong{font-size:24px;font-weight:600;display:block;margin-top:8px;font-variant-numeric:tabular-nums}.empty{text-align:center;color:#8a94a6;padding:34px 10px}.empty.compact{padding:18px}
.hero{background:#fff;border:1px solid var(--line);border-radius:var(--radius);color:var(--text);padding:24px;display:flex;align-items:center;justify-content:space-between;gap:24px;box-shadow:none;margin-bottom:24px;position:relative}.hero:after{content:none}.hero h1{font-size:24px;margin:0 0 8px;font-weight:600}.hero p{color:var(--muted);margin:0}.hero .eyebrow{color:var(--muted)!important;margin-bottom:8px!important}.hero-date{text-align:right;flex-shrink:0;padding-left:24px;border-left:1px solid var(--line)}.hero-date span{display:block;color:var(--muted);font-size:12px;margin-bottom:4px}.hero-date strong{font-size:16px;font-weight:500}
.module-strip{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px;margin-bottom:24px}.module-tile{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:20px;display:flex;align-items:center;gap:12px;color:var(--text);transition:border-color .15s,box-shadow .15s;min-width:0}.module-tile:hover{box-shadow:0 2px 8px rgba(0,0,0,.04);border-color:#91caff}.module-mark{width:40px;height:40px;flex-shrink:0;border-radius:8px;background:var(--brand-soft);color:var(--brand);display:grid;place-items:center}.module-tile strong{display:block;font-size:14px}.module-tile small{display:block;color:var(--muted);font-size:12px;margin-top:4px;overflow-wrap:anywhere}.module-tile b{margin-left:auto;font-weight:500;color:#a2aaba}
.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.dash-card{background:#fff;border:1px solid var(--line);border-radius:var(--radius);overflow:hidden;box-shadow:none}.dash-card:before{content:none}.dash-card.accent-amber:before{background:#e79a16}.dash-card.accent-green:before{background:#169c68}.dash-card.accent-violet:before{background:#7c3aed}.dash-card header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:20px 24px 16px}.dash-card h2{font-size:16px;margin:0;font-weight:600}.dash-count{font-size:28px;font-weight:600;line-height:1.2;color:var(--text);font-variant-numeric:tabular-nums}.card-note{margin:0 24px 16px;color:var(--muted);font-size:12px}.dash-list{border-top:1px solid #f0f2f5}.dash-item{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 24px;border-bottom:1px solid var(--line);color:var(--text)}.dash-item:hover{background:#f8faff}.dash-item>span{min-width:0;overflow-wrap:anywhere}.dash-item strong{display:block;font-size:13px}.dash-item small{display:block;color:var(--muted);font-size:12px;margin-top:4px}.dash-item b{flex:none;font-size:11px;color:var(--brand);white-space:nowrap}.dash-card footer{display:flex;align-items:center;justify-content:space-between;padding:16px 24px}.dash-card footer>a:not(.btn){font-size:12px;color:#5e6b7e}
.arrival-list{display:flex;flex-direction:column}.arrival-row{display:grid;grid-template-columns:60px 1fr auto;gap:16px;align-items:center;padding:15px 4px;border-bottom:1px solid var(--line)}.arrival-row:last-child{border:0}.arrival-date{border-right:1px solid var(--line)}.arrival-date strong,.arrival-date span{display:block}.arrival-date strong{font-size:15px}.arrival-date span{font-size:11px;color:var(--muted)}.arrival-main>.row{margin-bottom:4px}.meta-line{display:flex;gap:16px;flex-wrap:wrap;color:#8b95a7;font-size:11px;margin-top:5px}.photo-link{font-size:12px;border:1px solid var(--line);border-radius:8px;padding:6px 10px}
.lowconf{box-shadow:inset 4px 0 0 #f59e0b}.outspec{background:#fde2e2!important;border-color:#fca5a5!important}.unknown{background:#eee!important}.ok{background:#eaf7ea}.conflict{box-shadow:inset 4px 0 0 var(--red),inset 0 0 0 9999px rgba(253,226,226,.15)}.spec-mark{display:inline-block;margin-left:4px;color:var(--red);font-weight:800;cursor:help}.spec-summary{display:flex;gap:8px;flex-wrap:wrap;margin:8px 0 12px}.spec-pill{border:1px solid var(--line);border-radius:99px;padding:3px 10px;font-size:12px;background:#fff;color:var(--muted)}.spec-pill.outspec{border-color:#fca5a5;color:var(--red);background:#fff5f5}.spec-pill.unknown{border-color:#d1d5db;color:var(--gray);background:#f3f4f6}.spec-pill.conflict{border-color:var(--red);color:var(--red);font-weight:700;background:#fff5f5}.spec-state{display:block;width:max-content;margin-top:5px;padding:1px 7px;border:1px solid;border-radius:99px;background:#fff;font-size:10px;font-weight:700}.spec-state.ok{color:var(--green);border-color:#9bd5bf}.spec-state.outspec,.spec-state.spec-conflict{color:var(--red);border-color:#f0a29a}.spec-state.unknown{color:var(--gray);border-color:#cbd0d8}.spec-explanation{display:block;max-width:220px;margin-top:4px;color:#596579;font-size:10px;line-height:1.4}td input{padding:5px 7px;font-size:12px}.error{color:var(--red);font-size:13px;margin:8px 0}.note-red{color:var(--red);font-weight:700}.note-cell textarea{min-width:180px;min-height:46px;padding:6px 8px;font-size:12px}.note-cell .inspector-note-readonly{width:100%;max-width:320px;min-height:58px;background:#f8fafc;color:var(--text);border-color:var(--line);resize:vertical;cursor:text}.note-cell details summary{cursor:pointer;list-style:none}.note-cell details summary::-webkit-details-marker{display:none}
@media(max-width:960px){.sidebar{position:static;width:auto;min-height:auto;display:block;padding:12px 14px}.brand-lockup{padding:2px 4px 11px}.brand-lockup.brand-lockup-logo{justify-content:flex-start;padding:2px 4px 12px}.brand-lockup-logo img{width:176px}.nav-label,.sidebar-foot{display:none}.side-nav{display:flex;gap:5px;overflow-x:auto}.side-link{white-space:nowrap}.workspace{margin-left:0}.topbar{display:none}main{padding:20px 16px 60px}.dashboard-grid{grid-template-columns:1fr}}
@media(max-width:640px){.grid2{grid-template-columns:1fr}.span2{grid-column:auto}.page-head,.hero{display:block}.page-head>.btn{margin-top:12px}.hero-date{text-align:left;margin-top:18px}.toolbar{grid-template-columns:1fr}.metric-row{grid-template-columns:1fr 1fr}.card{padding:15px}.arrival-row{grid-template-columns:48px 1fr}.photo-link{grid-column:2}.side-link{padding:7px 9px}main{padding:15px 9px 50px}.dashboard-grid{gap:12px}.photo-upload-choices{grid-template-columns:1fr}}

.badge.quality_hold{background:#ede9fe;color:#6d28d9}.badge.rejected{background:#ffedd5;color:#9a3412}.badge.schedule-overdue{background:#fee2e2;color:#b91c1c}

.nav-module-head { display: flex; align-items: center; }
.nav-module-head > .side-link { flex: 1; min-width: 0; }
.mobile-submenu-toggle { display:inline-flex; align-items:center; justify-content:center; flex:0 0 28px; min-height:28px; padding:0; border:0; border-radius:6px; background:transparent; color:var(--muted); font-size:18px; cursor:pointer; }
.mobile-submenu-toggle[aria-expanded="true"] span { transform:rotate(180deg); }
.mobile-nav-ready .nav-module:not(.is-open) > .side-sub { display:none; }
@media (max-width: 960px) {
  .side-nav { flex-wrap: wrap; overflow: visible; align-items: flex-start; }
  .side-nav > .side-link, .nav-module { flex: 1 1 145px; min-width: 0; }
  .nav-module.is-open { flex-basis: 100%; }
  .side-nav .side-link { min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
  .mobile-submenu-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    flex: 0 0 44px; min-height: 44px; padding: 0; margin-left: 2px;
    border: 1px solid #d9d9d9; border-radius: 6px; background: #fafafa;
    color: #595959; font-size: 22px; cursor: pointer; touch-action: manipulation;
  }
  .mobile-submenu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
  .mobile-submenu-toggle:focus-visible, .side-sub a:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
  .sidebar .side-sub { display: flex; flex-wrap: wrap; gap: 4px; margin: 4px 0 10px; padding: 8px; border-radius: 8px; background: #fafafa; }
  .sidebar .side-sub a { flex: 1 1 130px; min-width: 0; min-height: 44px; padding: 10px; color: #595959; overflow-wrap: anywhere; }
  .sidebar .side-sub a.active { color: #0958d9; background: var(--brand-soft); border-radius: 6px; }
  .mobile-nav-ready .nav-module:not(.is-open) > .side-sub { display: none; }
}

/* Shared interaction states and layout primitives. Business status palettes stay in process-status.css. */
.ui-icon{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;vertical-align:middle;flex-shrink:0}
.module-mark .ui-icon{width:22px;height:22px}
:where(a,button,summary):focus-visible{outline:2px solid var(--brand);outline-offset:3px}
input:hover,select:hover,textarea:hover{border-color:#4096ff}
input:disabled,select:disabled,textarea:disabled{background:#f5f5f5;color:#8c8c8c;cursor:not-allowed}
input[type=checkbox],input[type=radio]{width:auto;min-height:0;accent-color:var(--brand)}
.btn.primary:hover{background:#4096ff;border-color:#4096ff;color:#fff}
.btn.success:hover{background:#128253;border-color:#128253;color:#fff}
.btn.danger:hover{background:#fff2f0;border-color:#ff7875;color:#cf1322}
.btn:disabled:hover{color:var(--text);border-color:#d9d9d9}
.table-wrap{max-width:100%;overscroll-behavior-x:contain}
.table-wrap:focus-visible{outline:2px solid var(--brand);outline-offset:2px}
.page-head>div,.page-head>.row,.grid2>*{min-width:0}
.page-head h1{overflow-wrap:anywhere}
.filter-bar{display:flex;gap:12px;align-items:center;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:16px}
.filter-bar input{flex:1 1 240px}.filter-bar select{width:auto;min-width:120px}
.section-label{font-size:14px;color:#595959;font-weight:500;margin:0 0 12px}
.topbar .breadcrumb{display:flex;align-items:center;gap:10px;min-width:0;flex:1}
.breadcrumb a{color:var(--muted);white-space:nowrap}.breadcrumb a:hover{color:var(--brand)}
.topbar #current-page-label{color:var(--text);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.topbar .header-action{display:inline-flex;align-items:center;gap:6px;padding:6px 8px;border-radius:6px;color:#595959;font-size:13px;white-space:nowrap}
.header-action:hover{background:var(--brand-soft);color:var(--brand)}
.topbar .header-count{background:#fff1f0;color:#cf1322;padding:0 5px;border-radius:8px;font-size:11px}
.topbar .header-account{padding-left:16px;margin-left:4px;border-left:1px solid var(--line);color:var(--muted);font-size:13px;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nav-toggle,.nav-backdrop{display:none}
.skip-link{position:fixed;top:-80px;left:16px;z-index:100001;padding:8px 16px;background:#fff;border:2px solid var(--brand);border-radius:6px}
.skip-link:focus{top:8px}
@media(min-width:961px){.sidebar .nav-label:first-of-type{margin-top:20px}.side-nav{padding-bottom:24px}.sidebar-foot{position:sticky;bottom:-16px;background:#fff;padding-bottom:16px}.side-sub a[aria-current=page]{font-weight:600}}
@media(max-width:960px){
  :root{--control-height:40px}
  .workspace{margin-left:0}.topbar{display:flex;padding:0 16px}.topbar .header-account{display:none}
  .sidebar{border-bottom:1px solid var(--line);padding:12px 16px;background:#fff;color:var(--text)}
  .brand-lockup.brand-lockup-logo{padding:0 0 12px}.brand-lockup-logo img{width:164px}
  .sidebar .side-sub{background:#fafafa}.sidebar .side-sub a{color:#595959}.sidebar .side-sub a.active{color:#0958d9;background:var(--brand-soft)}
  .mobile-submenu-toggle{background:#fafafa;border-color:#d9d9d9;color:#595959}
  .platform-ready .nav-toggle{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:0;border-radius:6px;background:transparent;color:#434343;cursor:pointer;flex-shrink:0}
  .platform-ready .nav-toggle:hover{background:var(--brand-soft)}
  .platform-ready .sidebar{position:fixed;inset:var(--header-height) auto 0 0;width:min(296px,calc(100vw - 40px));padding:16px 12px;display:none;z-index:40;box-shadow:8px 0 24px #00000014;overflow:auto}
  .platform-ready.nav-open .sidebar{display:flex;flex-direction:column}
  .platform-ready .sidebar .nav-label{display:block;margin:16px 12px 8px}
  .platform-ready .side-nav{display:block;overflow:visible}.platform-ready .side-link{white-space:normal;min-height:44px}
  .platform-ready .sidebar-foot{display:block;margin-top:24px}
  .platform-ready.nav-open .nav-backdrop{display:block;position:fixed;inset:var(--header-height) 0 0;border:0;padding:0;background:#00000045;z-index:35}
  body.nav-open{overflow:hidden}
  main{padding:20px 16px 48px}.hero{padding:20px}.hero-date{padding-left:16px}
  .dashboard-grid{grid-template-columns:1fr}.module-strip{gap:12px}
}
@media(max-width:640px){
  .page-head{flex-wrap:wrap;gap:12px;margin-bottom:16px}.page-head h1{font-size:22px}
  .hero{display:block}.hero h1{font-size:22px}.hero-date{text-align:left;margin-top:16px;padding:12px 0 0;border-left:0;border-top:1px solid var(--line)}
  .module-strip{grid-template-columns:1fr}.module-tile{padding:16px}
  .card{padding:16px}.dash-card header,.dash-item,.dash-card footer{padding:16px}.card-note{margin:0 16px 16px}
  .filter-bar input,.filter-bar select{max-width:none!important;width:100%;flex:1 1 100%;min-width:0}
  .filter-bar .btn{flex:1}.topbar .header-action{padding:8px 4px}.topbar .header-action-label{display:none}
  .project-folder-summary{flex-wrap:wrap}.folder-stats{margin-left:0;width:100%}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition:none!important;animation:none!important}}

/* Project catalogue folders. */

.project-folder { border: 1px solid var(--line); border-radius: var(--radius,8px); margin-bottom: 12px; overflow: hidden; }
.project-folder:last-child { margin-bottom: 0; }
.project-folder-summary {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: #f8fafc; cursor: pointer; list-style: none;
}
.project-folder-summary::-webkit-details-marker { display: none; }
.project-folder-summary:hover { background: #f3f6fb; }
.folder-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 25px; height: 25px; border-radius: 7px; color: #fff;
  background: var(--blue, #1f5eff); font-size: 23px; line-height: 1;
  transition: transform .16s ease;
}
.project-folder[open] .folder-icon { transform: rotate(90deg); }
.folder-name { font-size: 15px; font-weight: 750; }
.folder-count { padding: 2px 9px; border-radius: 999px; background: #e8efff; color: #3159a8; font-size: 12px; font-weight: 650; }
.folder-stats { margin-left: auto; color: var(--muted); font-size: 12px; }
.folder-table { border-top: 1px solid var(--line); }
.folder-table table { margin: 0; }
.project-group-row td { background: #f7f9fd; font-weight: 600; }
.project-group-toggle {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 0;
  border: 0; background: transparent; color: var(--blue, #1f5eff);
  font: inherit; font-weight: 700; cursor: pointer;
}
.project-chevron {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; color: #fff;
  background: var(--blue, #1f5eff); font-size: 22px; line-height: 1;
  transition: transform .16s ease;
}
.project-group-toggle[aria-expanded="true"] .project-chevron { transform: rotate(90deg); }
.suite-count {
  padding: 2px 8px; border-radius: 999px; background: #e8efff;
  color: #3159a8; font-size: 12px; font-weight: 600;
}
.suite-project-row td:first-child { padding-left: 34px; }
.suite-indent { display: inline-block; min-width: 58px; margin-right: 8px; color: #718096; font-size: 13px; }
.project-note-row td { padding: 0 12px 12px; }
.suite-project-row.project-note-row td:first-child { padding-left: 34px; }
.project-note {
  display: flex; align-items: baseline; gap: 10px; padding: 10px 14px;
  border-radius: 6px; background: #f0f1f3; color: #9a3412;
  font-size: 14px; font-weight: 600; line-height: 1.6;
}
.project-note strong { flex-shrink: 0; }
.project-note span { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }


/* Task-first workbench and reusable list/detail patterns. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.page-actions,.filter-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex-shrink:0}
.page-back{display:inline-block;font-size:13px;margin-bottom:8px;color:var(--muted)}
.list-summary{display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px;margin:0 0 16px;color:var(--muted);font-size:13px}
.list-summary strong{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.empty-state{text-align:center;padding:24px 16px;color:var(--muted);font-size:13px}
.empty-state strong{display:block;font-size:14px;font-weight:500;color:#595959}.empty-state p{margin:8px 0 12px}
.filter-form-grid{display:grid;grid-template-columns:minmax(220px,2fr) repeat(2,minmax(120px,1fr)) auto;gap:16px;align-items:end;padding-bottom:16px;border-bottom:1px solid var(--line);margin-bottom:16px}
.filter-form-grid label{margin:0 0 8px}.filter-form-grid .filter-actions{padding-bottom:1px}
.workbench-welcome{padding:20px 24px;margin-bottom:24px}.workbench-welcome h1{font-size:22px}
.workbench-section{margin-bottom:24px}.workbench-section>.section-head{border:0;padding:0;margin-bottom:12px;gap:12px;flex-wrap:wrap}
.dash-card h3{font-size:16px;font-weight:600;margin:0}.dash-card footer>.btn{min-height:28px;font-size:13px}
.module-shortcuts{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:12px}
.module-shortcut{display:flex;align-items:center;gap:10px;padding:12px 16px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);color:var(--text);min-width:0}
.module-shortcut:hover{border-color:#91caff;color:var(--brand)}.module-shortcut strong{font-size:14px;font-weight:500}.module-shortcut>span:last-child{margin-left:auto;color:var(--muted)}
.module-shortcut .module-mark{width:32px;height:32px}.module-shortcut .ui-icon{width:18px;height:18px}
.workbench-empty{padding:16px 24px}.workbench-empty summary{cursor:pointer;font-weight:500}.workbench-empty summary span{margin-left:8px;font-weight:400}
.empty-business-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 24px;padding-top:16px}
.empty-business-grid>div{display:flex;gap:12px;align-items:center;min-width:0;border-top:1px solid var(--line);padding-top:12px}
.empty-business-grid a:first-child{display:flex;justify-content:space-between;gap:12px;flex:1;min-width:0;color:#595959;font-size:13px}.empty-business-grid a:first-child:hover{color:var(--brand)}
.empty-create{font-size:12px;white-space:nowrap}
.inspection-workspace .card.detail-focus{display:grid;grid-template-columns:minmax(180px,1fr) minmax(0,2fr);gap:24px;border-left:3px solid var(--brand);padding:20px 24px;margin-bottom:16px}
.detail-focus-state{display:flex;align-items:flex-start;flex-direction:column;gap:8px;min-width:0}.detail-focus-state>strong{font-size:18px;font-weight:600}
.detail-focus-actions{border-left:1px solid var(--line);padding-left:24px;min-width:0}.inspection-workspace .detail-focus-actions h2{font-size:14px;margin:0 0 12px}
.task-action-list{display:flex;flex-wrap:wrap;gap:8px}.task-action-list .btn{white-space:normal;text-align:left}
[data-local-list] [hidden]{display:none!important}.local-list-controls{padding:16px 24px}.local-list-controls .filter-bar{border:0;padding:0;margin-bottom:12px}.local-list-controls .list-summary{margin-bottom:0}
.submit-status{color:var(--brand);font-size:13px;margin:12px 0 0}
@media(max-width:1100px){.filter-form-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){
 .filter-actions{width:100%}.filter-actions>.btn{flex:1}.filter-form-grid{grid-template-columns:1fr;gap:12px}
 .page-head{display:flex}.page-head .page-actions{width:100%}.page-head>.btn{margin-top:0}
 .module-shortcuts{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.module-shortcut{padding:12px 10px;gap:8px}.module-shortcut>span:last-child{display:none}.module-shortcut strong{font-size:13px}
 .workbench-welcome{padding:16px}.workbench-welcome .hero-date{display:none}
 .workbench-empty{padding:16px}.empty-business-grid{grid-template-columns:1fr}.workbench-empty summary span{display:block;margin:4px 0 0}
 .dash-item{align-items:flex-start}.dash-item b{white-space:normal;max-width:90px;text-align:right}.dash-item strong{overflow-wrap:anywhere}
 .inspection-workspace .card.detail-focus{grid-template-columns:1fr;gap:16px;padding:16px}
 .detail-focus-actions{border-left:0;border-top:1px solid var(--line);padding:16px 0 0}.detail-focus-state{flex-direction:row;flex-wrap:wrap;align-items:center}.detail-focus-state>strong{font-size:16px}
 .task-action-list{display:grid;grid-template-columns:1fr}.task-action-list .btn{justify-content:flex-start;min-height:44px}
 .local-list-controls{padding:16px}.project-toolbar .btn{min-height:40px}
}
.dashboard-grid>.dash-card:only-child{grid-column:1/-1}

/* Document requests: keep unfinished files visible across all groups. */
.request-pending>td{background:#fff8df}.request-group h3{margin:20px 0 12px}.request-group table{min-width:1000px}

/* 退出使用 POST 表单，保持侧栏按钮的原位置与文字样式。 */
.user-chip>form{margin-left:auto;flex-shrink:0}.logout{border:0;background:transparent;padding:0;cursor:pointer;font-family:inherit}
