:root{font-family:Inter,'Microsoft YaHei',system-ui,sans-serif;color:#20324b;background:#f3f6fb;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:8px;padding:11px 17px;background:#2864e9;color:white;font-weight:600}button:hover{filter:brightness(.95)}button:disabled{opacity:.5;cursor:wait}.soft{background:#eaf0ff;color:#285ac0}.quiet{background:transparent;color:#65758b;border:1px solid #dce4ef}.danger{color:#a12727}input,select,textarea{width:100%;border:1px solid #d9e1ee;background:white;border-radius:8px;padding:11px;color:#20324b;outline-color:#2864e9}textarea{resize:vertical;min-height:130px;line-height:1.7}label{display:block;font-size:13px;font-weight:600;margin:17px 0 7px}h1{font-size:27px;margin:0 0 9px;letter-spacing:-.5px}h2{font-size:17px;margin:0 0 16px}p{line-height:1.7}.muted{color:#7c8ba1;font-size:13px}.lead{color:#77889f;margin:0 0 27px;font-size:14px}.auth{max-width:450px;margin:8vh auto;padding:36px}.card{background:white;border:1px solid #e2e8f2;border-radius:14px;padding:24px;box-shadow:0 5px 18px #1d437004}.brand{font-weight:800;font-size:21px;color:#fff}.brand small{display:block;font-size:10px;letter-spacing:2px;color:#8ca6da;margin-top:7px}aside{position:fixed;inset:0 auto 0 0;width:220px;background:#111f38;padding:30px 15px;color:#cbd7ed}aside .brand{padding:0 12px 30px}nav button{display:block;width:100%;background:transparent;text-align:left;color:#b9c7de;font-size:14px;margin:4px 0;font-weight:400;padding:13px}nav button.active{background:#294a80;color:white}aside footer{position:absolute;bottom:25px;left:28px;font-size:11px;color:#7791ba;line-height:1.8}main{margin-left:220px}header{height:76px;background:white;border-bottom:1px solid #e3e9f2;padding:0 30px;display:flex;align-items:center;justify-content:space-between;gap:16px}header select{width:220px}.content{max-width:1480px;margin:auto;padding:30px}.row{display:flex;gap:9px;align-items:center;flex-wrap:wrap}.between{justify-content:space-between}.grid{display:grid;grid-template-columns:minmax(310px,.8fr) minmax(400px,1.35fr);gap:20px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-bottom:22px}.stat b{display:block;font-size:31px;color:#2a60dc;margin:12px 0 2px}.notice{background:#fff9ec;border:1px solid #f1e2bb;color:#8d6a28;font-size:12px;padding:12px 16px;border-radius:8px;margin-bottom:20px;line-height:1.7}.badge{background:#edf2fb;color:#587094;border-radius:5px;padding:4px 8px;font-size:11px}.table{overflow:auto}table{border-collapse:collapse;width:100%;font-size:13px}th{background:#f4f7fc;color:#6d7e96;font-weight:500;text-align:left;white-space:nowrap}th,td{padding:13px 10px;border-bottom:1px solid #edf1f6}td input,th input{width:auto}.empty{padding:45px;text-align:center;color:#8392a7;font-size:14px}.listitem{border-bottom:1px solid #edf1f6;padding:16px 0}.listitem:last-child{border:0}.listitem button{padding:6px 11px}.cards{display:flex;justify-content:center;margin-top:20px}canvas{width:300px;max-width:100%;height:auto;box-shadow:0 8px 24px #1e395521;border-radius:9px}.coverage{line-height:2;font-size:12px;color:#667e99;margin:15px 0}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%);background:#172c47;color:white;border-radius:9px;padding:13px 22px;display:none;max-width:90vw;z-index:100}a{color:#2864e9}.wide{width:100%;margin-top:23px}.auth .brand{color:#213b63;margin-bottom:30px}.small{font-size:12px}.spacer{margin-top:20px}.error{color:#ae3030;font-size:13px;min-height:20px}.cardtabs button{padding:8px 14px}.cardtabs .active{background:#2864e9;color:white}@media(max-width:1000px){.grid{grid-template-columns:1fr}header .email{display:none}}@media(max-width:650px){aside{position:static;width:100%;padding:12px}aside .brand{padding:8px;font-size:18px}aside .brand small,aside footer{display:none}nav{display:flex;overflow:auto}nav button{width:auto;white-space:nowrap}main{margin:0}header{padding:10px 15px;height:auto;flex-wrap:wrap}header select{width:170px}.content{padding:20px 14px}.stats{gap:8px}.stat{padding:15px}.stat b{font-size:25px}.auth{margin:30px 15px;padding:25px}}
:root{color-scheme:light}.month-scroll{overflow-x:auto}.month-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));min-width:700px;border-top:1px solid #e1e8f2;border-left:1px solid #e1e8f2;margin-top:20px}.month-head{padding:11px;background:#f3f6fb;color:#6d7e96;text-align:center;font-size:12px;border-bottom:1px solid #e1e8f2;border-right:1px solid #e1e8f2}.month-cell{min-height:115px;padding:9px;border-right:1px solid #e1e8f2;border-bottom:1px solid #e1e8f2;overflow:hidden}.month-cell.outside{background:#f8faff}.day-number{font-size:12px;color:#778ba5}.calendar-event{display:block;width:100%;margin-top:7px;padding:7px;background:#edf3ff;color:#315f9d;text-align:left;font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.calendar-event small{display:block;color:#6b83a6;margin-top:4px}.status-bar-row{display:flex;align-items:center;gap:12px;margin:22px 0;font-size:13px}.status-bar-row>span{width:55px}.status-bar-row progress{flex:1;min-width:60px;height:12px;accent-color:#2864e9}.status-bar-row>b{min-width:25px;text-align:right}#planMonth,#reportMonth{width:175px}#planSearch{max-width:260px}#planStatus{max-width:160px}#reportData .stats{margin-top:20px}
aside{overflow-y:auto;padding-bottom:28px}aside footer{position:static;margin:28px 13px 0}@media(max-width:650px){aside{padding:12px}}

/* Keep wide records inside their own scrollers, including long factory names. */
main,.content,.grid>*{min-width:0}
.card,.listitem,td{overflow-wrap:anywhere}
.table,.month-scroll{max-width:100%;overscroll-behavior-x:contain}
input,select,textarea{min-width:0;max-width:100%}
button:focus-visible,a:focus-visible{outline:3px solid #1746ac;outline-offset:3px}
nav button:focus-visible{outline-color:#c2d8ff;outline-offset:-3px}
.skip-link{position:fixed;top:8px;left:8px;z-index:200;padding:12px 18px;background:white;border:2px solid #1746ac;border-radius:8px;transform:translateY(-160%)}
.skip-link:focus{transform:translateY(0)}
@media(max-width:650px){
 input,select,textarea{font-size:16px}
 button{min-height:44px}
 header>.row{width:100%;min-width:0}
 header select{flex:1 1 150px;width:auto}
 nav{gap:4px;scroll-padding-inline:8px;overscroll-behavior-x:contain}
 nav button{flex-shrink:0;min-height:44px}
 .card{padding:18px}
 .auth{padding:25px}
 .row>input,.row>select{flex:1 1 150px;width:auto}
 .row>button{max-width:100%;white-space:normal}
 #toast{width:max-content;overflow-wrap:anywhere}
}
@media(max-width:380px){
 .stats{grid-template-columns:1fr}
 .stat b{margin:5px 0;font-size:25px}
 .content{padding:18px 10px}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.help-steps{padding-left:24px}.help-steps li{padding:12px 0 18px;border-bottom:1px solid #edf1f6}.help-steps h3{font-size:16px;margin:0 0 8px}.help-steps p{margin:8px 0 12px}details{padding:12px 0}summary{cursor:pointer;line-height:1.6}summary:focus-visible{outline:3px solid #1746ac;outline-offset:3px}

.table-wrap{overflow-x:auto}.table-wrap table{min-width:620px}

.suggestion-columns{display:grid;grid-template-columns:repeat(5,minmax(210px,1fr));gap:12px;overflow-x:auto;margin-top:16px}.suggestion-platform{border:1px solid #dce4ef;border-radius:8px;padding:12px;min-width:0}.suggestion-platform h3{margin:0 0 8px}.suggestion-scroll{max-height:390px;overflow-y:auto;margin-top:12px}.suggestion-entry{padding:10px 0;border-bottom:1px solid #e6ebf2;overflow-wrap:anywhere}.suggestion-entry label{display:inline}.suggestion-entry input{width:auto}.suggestion-entry details{margin-top:6px;font-size:12px}.suggestion-entry button{padding:3px 6px;font-size:12px}.suggestion-entry p{white-space:normal}
