:root{--navy:#102b52;--blue:#2563eb;--ink:#182c48;--muted:#71809a;--bg:#f3f6fb;--line:#e7edf5;--green:#0d8965;--red:#d24740;--amber:#ac7016}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--ink);font:14px/1.55 -apple-system,BlinkMacSystemFont,'Segoe UI','Microsoft YaHei',sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0}button:disabled{opacity:.45;cursor:default}input,select,textarea{width:100%;padding:12px;border:1px solid #d9e2ef;background:#fff;border-radius:10px;color:var(--ink);outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb14}textarea{resize:vertical;min-height:85px}button:focus-visible,a:focus-visible{outline:3px solid #7db3ff}h1,h2,h3,p{margin:0}h1{font-size:23px;letter-spacing:1px}h2{font-size:19px}h3{font-size:15px}small{font-size:12px}svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.top{background:var(--navy);color:white;padding:8px 20px}.top-inner,.content{max-width:960px;margin:auto}.topline{display:flex;justify-content:space-between;align-items:center}.brand{display:flex;gap:10px;align-items:center}.logo{width:37px;height:37px;border:1px solid #ffffff40;border-radius:11px;display:grid;place-items:center;background:#ffffff0e}.eyebrow{font-size:10px;letter-spacing:2px;color:#90abd0;font-weight:600;margin-bottom:3px}.top .sub{color:#a6bedc;font-size:12px;margin-top:10px}.sync{font-size:11px;display:flex;align-items:center;gap:6px}.dot{width:6px;height:6px;border-radius:50%;background:#5fdbb5}.dot.off{background:#f2b456}.content{padding:19px 18px 100px}.row{display:flex;justify-content:space-between;align-items:center;gap:10px}.muted{color:var(--muted)}.section{margin:24px 0 12px}.section:first-child{margin-top:0}.btn{padding:11px 16px;border-radius:10px;background:var(--blue);color:white;font-weight:600;display:inline-flex;align-items:center;justify-content:center;gap:7px}.btn.secondary{background:#eaf0fb;color:#28518f}.btn.quiet{background:transparent;color:var(--blue);padding:8px 3px;font-size:12px}.btn.danger{background:#fff0ef;color:var(--red)}.btn.full{width:100%}.btn.small{font-size:12px;padding:8px 12px}.card{padding:17px;background:white;border-radius:15px;border:1px solid var(--line);margin-bottom:12px}.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.metric{background:#fff;border:1px solid var(--line);border-radius:13px;padding:15px 13px;text-align:left;color:var(--ink)}.metric label{font-size:12px;color:var(--muted);display:block}.metric strong{font-size:28px;line-height:1.45;display:block;letter-spacing:-1px}.metric small{font-size:10px;color:var(--muted)}.metric.hot strong{color:var(--red)}.metric .mark{display:inline-flex;padding:5px;border-radius:7px;color:var(--blue);background:#edf3ff;margin-bottom:10px}.metric.hot .mark{background:#fff0ed;color:var(--red)}.hero{padding:22px;border:0;background:linear-gradient(115deg,#1c4d8d,#2378bd);color:white;margin-bottom:16px;position:relative;overflow:hidden}.hero:after{content:'';position:absolute;width:160px;height:160px;border:24px solid #ffffff09;border-radius:50%;right:-60px;top:-58px;pointer-events:none}.hero .muted{color:#b8d4f3}.hero h2{font-size:19px;margin:6px 0}.hero p{font-size:12px}.hero .btn{background:#ffffff21;margin-top:15px;border:1px solid #ffffff35;font-size:12px}.herohead{font-size:10px;letter-spacing:1.5px}.count-tag{font-size:11px;color:var(--muted)}.workcard{cursor:pointer;transition:box-shadow .15s}.workcard:hover{box-shadow:0 5px 16px #163a6810}.id{font-size:12px;letter-spacing:.4px;color:#416493;font-weight:600}.product{font-size:13px;font-weight:600;margin-top:9px;overflow-wrap:anywhere;line-height:1.65}.workmeta{font-size:11px;display:flex;gap:12px;flex-wrap:wrap;margin-top:7px;color:var(--muted)}.cardfoot{display:flex;justify-content:space-between;align-items:center;padding-top:12px;margin-top:12px;border-top:1px solid #f0f3f8;font-size:11px}.chip{border-radius:6px;font-size:10px;padding:4px 7px;background:#edf2fa;color:#4a6386;white-space:nowrap}.chip.red{background:#ffefed;color:var(--red)}.chip.green{background:#e8f8f1;color:var(--green)}.chip.amber{background:#fff5e5;color:var(--amber)}.chip.blue{background:#edf3ff;color:var(--blue)}.late{color:var(--red)}.search{position:relative;margin:15px 0 12px}.search svg{position:absolute;top:13px;left:13px;color:#8799b3;width:18px}.search input{padding-left:40px;border-color:var(--line);box-shadow:0 2px 4px #13325602}.filters{display:flex;gap:7px;overflow-x:auto;padding-bottom:9px;margin-bottom:7px;scrollbar-width:none}.filter{white-space:nowrap;padding:7px 12px;border-radius:8px;background:#e8edf5;color:#6e809b;font-size:11px}.filter.active{background:#163c6b;color:#fff}.pipeline{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.pipe{padding:13px;border-radius:10px;background:#f7f9fd;text-align:left}.pipe b{display:block;margin-top:5px;font-size:20px;color:#244d80}.pipe span{font-size:11px;color:var(--muted)}.bar{height:4px;background:#e5ecf6;border-radius:4px;margin-top:9px}.bar i{display:block;min-width:0;height:100%;background:#447bd4;border-radius:4px}.nav{position:fixed;bottom:0;left:0;right:0;background:#ffffffee;border-top:1px solid var(--line);backdrop-filter:blur(14px);z-index:10;padding:8px 10px max(8px,env(safe-area-inset-bottom));display:flex;justify-content:space-around}.nav button{background:none;color:#91a0b6;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;flex:1;max-width:150px}.nav button.active{color:var(--blue);font-weight:700}.nav button.active svg{stroke-width:2.3}.banner{background:#fff4df;color:#90621f;padding:9px 18px;font-size:12px}.empty{text-align:center;color:var(--muted);padding:40px 16px}.empty svg{width:30px;height:30px;margin-bottom:10px}.modalback{position:fixed;inset:0;background:#0a1f3c75;z-index:30;display:flex;align-items:flex-end;justify-content:center}.modal{background:var(--bg);border-radius:22px 22px 0 0;max-width:680px;width:100%;max-height:92vh;display:flex;flex-direction:column}.modalhead{padding:20px 20px 14px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);background:white;border-radius:22px 22px 0 0}.close{background:#f0f4fa;color:#60799b;border-radius:50%;width:30px;height:30px;font-size:22px;line-height:1}.modalbody{padding:18px 20px;overflow-y:auto}.modalfoot{padding:12px 20px 20px;background:white;border-top:1px solid var(--line)}.field{margin-bottom:14px}.field label{display:block;font-size:12px;color:#6c7f98;margin-bottom:6px}.field small{display:block;color:var(--muted);font-size:11px;margin-top:5px}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:0 12px}.detail{display:grid;grid-template-columns:100px 1fr;gap:10px;font-size:12px;padding:10px 0;border-bottom:1px solid var(--line)}.detail dt{color:var(--muted)}.detail dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.login{max-width:440px;margin:50px auto 0}.login-brand{margin-bottom:27px}.login h1{font-size:28px;margin:10px 0 5px}.login .card{padding:23px}.login .logo{background:var(--navy);color:#fff;width:49px;height:49px}.hint{font-size:12px;color:var(--muted);line-height:1.7;margin:14px 0}.error{background:#fff0ee;color:var(--red);padding:10px;border-radius:9px;font-size:12px;margin-bottom:12px}.timeline{padding-left:19px;border-left:2px solid #dfe7f3;margin-left:6px}.event{position:relative;margin:0 0 21px}.event:before{content:'';position:absolute;width:8px;height:8px;background:#7a9ccf;border:3px solid var(--bg);border-radius:50%;top:4px;left:-27px}.event strong{font-size:12px;display:block}.event p{font-size:12px;color:#506580;margin-top:4px;white-space:pre-wrap}.event small{font-size:10px;color:var(--muted)}.settingsrow{padding:12px 0;border-bottom:1px solid var(--line)}.settingsrow:last-child{border:0}.settingsrow p{font-size:12px;color:var(--muted);margin-top:3px}#toast{position:fixed;left:50%;bottom:92px;transform:translateX(-50%);max-width:90%;background:#152f51;color:white;padding:12px 20px;border-radius:11px;box-shadow:0 4px 20px #0d254d30;z-index:100;font-size:12px;display:none;white-space:pre-wrap}.securitynote{font-size:11px;line-height:1.8;color:#73849d}.pill{border:1px solid #dce6f3;border-radius:30px;padding:3px 9px;font-size:10px;color:#879bb5}.progress{height:5px;background:#edf2f8;border-radius:3px;overflow:hidden;flex:1;margin:0 12px}.progress i{height:100%;background:#50a68e;display:block}.note{padding:12px;background:#f8faff;border-left:3px solid #a3bce3;font-size:12px;white-space:pre-wrap;margin:12px 0}.loading{padding:60px;text-align:center;color:var(--muted)}details{font-size:12px;margin-top:16px}summary{color:var(--blue);cursor:pointer}a{color:var(--blue)}@media(max-width:550px){.metrics{grid-template-columns:repeat(2,1fr)}.metric{padding:12px 14px;position:relative}.metric .mark{position:absolute;right:13px;top:15px;margin:0}.metric .mark svg{width:17px;height:17px}.metric strong{font-size:27px}.top{padding:8px 14px}.content{padding-top:17px}.hero{padding:19px}.grid2{grid-template-columns:1fr}.login{margin-top:25px}}@media(min-width:750px){.workgrid{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.modalback{align-items:center}.modal{border-radius:20px}.modalhead{border-radius:20px 20px 0 0}.modalfoot{border-radius:0 0 20px 20px}.content{padding-bottom:105px}}@media(prefers-reduced-motion:reduce){*{transition:none!important}}

.history-changes{margin:8px 0;border:1px solid var(--line);border-radius:9px;background:#f8faff;padding:4px 12px}.history-change{padding:8px 0;font-size:12px}.history-change+.history-change{border-top:1px solid var(--line)}.history-change>b{display:block;color:#355782;margin-bottom:5px}.history-change-values{display:grid;gap:4px;overflow-wrap:anywhere;word-break:break-word}.history-change-values strong{font-weight:600;color:var(--ink)}.event>p{white-space:pre-wrap;overflow-wrap:anywhere}

.production-table-scroll{overflow:auto;max-width:100%;margin:10px 0}.production-table{border-collapse:collapse;width:100%;min-width:340px;font-size:12px;table-layout:fixed}.production-table td,.production-table th{position:static!important;background:#fff!important;border:1px solid var(--line);padding:8px;overflow-wrap:anywhere;white-space:normal;vertical-align:top;text-align:left!important}.production-table th{color:#486487;background:#edf3fb!important}.production-table th:first-child{width:65px}.production-edit-row{border:1px solid var(--line);border-radius:10px;padding:13px;margin:10px 0;background:white;min-width:0}.production-edit-row legend{font-weight:600;color:#355782}.production-section .hint{margin:7px 0}.history-change .production-table{min-width:280px}.product{white-space:pre-line}

/* Keep the signed-in workspace header compact, with all controls visible. */
.top-inner{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:20px}
.top .brand{gap:8px;min-width:0}.top .brand-copy{display:flex;align-items:baseline;gap:9px;min-width:0}
.top h1{font-size:18px;line-height:1.3;letter-spacing:.5px;white-space:nowrap}
.top .eyebrow{font-size:9px;letter-spacing:1.2px;margin:0;white-space:nowrap}
.top .logo{width:30px;height:30px;border-radius:8px;flex-shrink:0}.top .logo svg{width:19px;height:19px}
.top .sub{font-size:11px;line-height:1.4;margin:0;min-width:0;gap:14px}
.top .sub>span:first-child{white-space:nowrap}.top .sub>span:last-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.top .sync{white-space:nowrap}.top .reminder-bell{width:32px;height:32px;border-radius:8px;margin-left:6px}.top .reminder-bell svg{width:20px;height:20px}
@media(max-width:700px){.top-inner{grid-template-columns:minmax(0,1fr) auto;gap:4px 10px}.top .brand{grid-column:1;grid-row:1}.top .sync{grid-column:2;grid-row:1}.top .sub{grid-column:1/-1;grid-row:2}.top .reminder-bell{width:36px;height:36px}}
@media(max-width:550px){.top .eyebrow{display:none}}

/* Login password visibility: native form/autofill stays on the same input. */
.login-password{position:relative}
.login-password input{padding-inline-end:56px}
.password-toggle{position:absolute;inset-inline-end:3px;top:50%;transform:translateY(-50%);width:44px;height:44px;display:grid;place-items:center;padding:0;border-radius:8px;background:transparent;color:var(--muted);touch-action:manipulation}
.password-toggle svg{width:21px;height:21px;pointer-events:none}
.password-toggle:hover,.password-toggle[aria-pressed="true"]{background:#edf3ff;color:var(--blue)}
.password-toggle:focus-visible{outline-offset:1px}
