*{box-sizing:border-box}body{margin:0;background:#f4f6fa;color:#1d2939;font:14px/1.6 "Segoe UI","Microsoft YaHei",sans-serif}button,input,select,textarea{font:inherit}button{cursor:pointer;border:1px solid #d6deea;background:white;color:#344054;border-radius:7px;padding:7px 13px}button:hover{background:#edf2fb}button:disabled{opacity:.5;cursor:wait}.primary{background:#325ad6;color:white;border-color:#325ad6}.primary:hover{background:#274bbc}.danger{color:#b42318}.shell{display:grid;grid-template-columns:224px 1fr;min-height:100vh}.sidebar{background:#152342;color:#aab8d0;padding:25px 15px;position:fixed;width:224px;top:0;bottom:0;overflow:auto}.brand{color:white;font-size:18px;font-weight:700;padding:0 12px 25px}.brand small{display:block;font-size:11px;letter-spacing:1.2px;font-weight:400;color:#8fa6cb;margin-top:3px}.nav-title{font-size:11px;color:#7389ae;padding:17px 13px 6px;letter-spacing:1px}.nav{display:block;width:100%;text-align:left;background:transparent;color:#afbdd4;border:0;margin:3px 0;padding:10px 13px}.nav.active{background:#2c4370;color:white}.sidebar-foot{margin-top:30px;padding:12px;border-top:1px solid #2c3d5e;font-size:12px}.main{grid-column:2;min-width:0}.topbar{background:white;border-bottom:1px solid #e5eaf1;padding:15px 28px;display:flex;align-items:center;gap:12px;flex-wrap:wrap}.topbar select{max-width:240px}.user{margin-left:auto;font-size:12px}.content{padding:26px 30px;max-width:1700px;margin:auto}.heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.heading h1{font-size:24px;margin:0}.subtitle{color:#667085;font-size:13px;margin-top:5px}.cards{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:22px}.card,.panel{background:white;border:1px solid #e3e8f0;border-radius:10px;padding:20px;box-shadow:0 2px 4px #15234203}.card .label{font-size:12px;color:#667085}.card .value{font-size:29px;font-weight:650;margin:8px 0}.card .hint{font-size:12px;color:#7a8699}.panel{margin-bottom:20px}.panel h2{font-size:16px;margin:0 0 15px}.grid2{display:grid;grid-template-columns:1.3fr 1fr;gap:20px}.toolbar{display:flex;gap:10px;align-items:center;margin-bottom:16px;flex-wrap:wrap}input,select,textarea{border:1px solid #cdd6e4;border-radius:6px;background:white;padding:9px 11px;min-width:0;outline:none}input:focus,select:focus,textarea:focus{border-color:#4269db;box-shadow:0 0 0 3px #4269db15}textarea{min-height:85px;resize:vertical}table{border-collapse:collapse;width:100%;font-size:13px}th{text-align:left;font-size:12px;font-weight:500;color:#667085;background:#f8faff;padding:12px;border-bottom:1px solid #e4e9f2}td{padding:13px 12px;border-bottom:1px solid #eef1f6;vertical-align:top}td .actions{display:flex;flex-wrap:wrap;gap:5px}td button{font-size:12px;padding:4px 8px}tbody tr:hover{background:#fafcff}.table-wrap{overflow:auto}.badge{display:inline-block;font-size:11px;border-radius:20px;background:#eef2f8;color:#52617a;padding:3px 9px;white-space:nowrap}.green{background:#ecfdf3;color:#027a48}.yellow{background:#fffaeb;color:#b54708}.red{background:#fef3f2;color:#b42318}.blue{background:#eff4ff;color:#3538cd}.empty{padding:48px 20px;text-align:center;color:#7a8699}.error{background:#fff2f0;border:1px solid #fecaca;border-radius:7px;padding:14px;color:#b42318;margin:12px 0}.notice{background:#eef4ff;color:#37599c;padding:12px 15px;border-radius:7px;font-size:12px;margin-bottom:18px}.progress{height:7px;background:#edf1f8;border-radius:6px;margin-top:7px;overflow:hidden}.progress i{height:100%;display:block;background:#4269db}.modal-backdrop{position:fixed;inset:0;background:#101b37a0;display:flex;align-items:center;justify-content:center;padding:25px;z-index:10}.modal{width:730px;max-width:100%;max-height:92vh;overflow:auto;background:white;border-radius:12px;box-shadow:0 20px 60px #0004}.modal-head{padding:20px 25px;border-bottom:1px solid #e8edf5;display:flex;justify-content:space-between;align-items:center}.modal-head h2{font-size:19px;margin:0}.modal-body{padding:23px 25px}.modal-foot{padding:16px 25px;border-top:1px solid #e8edf5;display:flex;justify-content:flex-end;gap:10px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.field{display:flex;flex-direction:column;gap:6px}.field label{font-size:12px;color:#475467}.field.wide{grid-column:1/-1}.field small{color:#7a8699;font-size:11px}.dimension{border:1px solid #e1e7f2;padding:12px;margin-bottom:10px;border-radius:7px}.dimension header{font-weight:600;margin-bottom:8px}.dimension .row{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.dimension input,.dimension select{width:100%}.dimension .reason{width:100%;margin-top:8px}.login-screen{min-height:100vh;display:grid;grid-template-columns:1.2fr 1fr}.login-intro{background:linear-gradient(135deg,#17284a,#294d8b);color:white;padding:12vh 8vw}.login-intro h1{font-size:37px;line-height:1.4;margin:45px 0 20px}.login-intro p{color:#bbcee9;max-width:440px}.login-card{align-self:center;justify-self:center;width:380px;max-width:90%;background:white;border:1px solid #e5eaf1;border-radius:12px;padding:35px}.login-card h2{margin:0 0 8px;font-size:24px}.login-card .field{margin-top:18px}.login-card button{width:100%;margin-top:23px}.loading{padding:50px;text-align:center;color:#667085}#toast{position:fixed;bottom:28px;right:28px;z-index:25;background:#18355d;color:white;padding:12px 20px;border-radius:8px;display:none;max-width:450px}pre{white-space:pre-wrap;word-break:break-word;font-size:12px;background:#f7f9fc;padding:15px;border-radius:7px}.pagination{display:flex;gap:12px;align-items:center;justify-content:flex-end;margin-top:15px}.muted{color:#7a8699}.metric-row{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid #edf1f5}.module-title{font-weight:600}.login-note{font-size:11px;color:#7a8699;margin-top:20px}.split-actions{display:flex;gap:8px;flex-wrap:wrap}.quality-row{display:flex;gap:14px;flex-wrap:wrap;margin:20px 0}.quality-row .badge{padding:10px 16px}.detail-line{margin:12px 0}.dim-table input{width:100%}@media(max-width:1000px){.cards{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}.sidebar{width:184px}.shell{grid-template-columns:184px 1fr}.content{padding:20px}.topbar{padding:12px 20px}}@media(max-width:650px){.sidebar{position:static;width:auto}.shell{display:block}.sidebar .brand{padding-bottom:5px}.sidebar nav{display:flex;flex-wrap:wrap}.nav{width:auto;padding:6px 10px}.nav-title,.sidebar-foot{display:none}.main{display:block}.cards{gap:10px}.card{padding:14px}.form-grid{grid-template-columns:1fr}.dimension .row{grid-template-columns:1fr}.login-screen{display:block;padding:30px 0}.login-intro{display:none}.login-card{margin:30px auto}.content{padding:15px}.user{margin-left:0}.modal-backdrop{padding:10px}}

.overview-summary{display:grid;grid-template-columns:1fr 1.5fr 1fr;gap:20px;padding:16px 0;margin-bottom:14px;border-bottom:1px solid #e4e9f2}.overview-summary>div>.muted{display:block;margin-bottom:6px}.overview-quality{display:flex;gap:5px;flex-wrap:wrap}.overview-project table{min-width:760px}.overview-project-head h2{margin-bottom:4px}@media(max-width:650px){.overview-summary{grid-template-columns:1fr;gap:12px}}
.overview-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.overview-metric-action{padding:0;border:0;color:#667085;text-align:left;background:transparent}.overview-focus{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.overview-alert{border-left:3px solid #dba841;padding-left:14px}.overview-alert.urgent{border-color:#c34040}.overview-alert button{margin-top:8px}.overview-project-toggle{font-weight:600;border:0;background:#edf2ff;color:#2447a2}.overview-iteration-name{padding-left:22px}.overview-foot{font-size:12px;color:#667085;margin-top:15px}@media(max-width:800px){.overview-focus{grid-template-columns:1fr}}@media(max-width:650px){.overview-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}.project-board-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:22px;padding:12px 0;border-bottom:1px solid #dce4f1}.project-board-stages{display:grid;grid-template-columns:1fr 1fr;gap:18px}.project-board-selected{border-color:#4269db}.project-board-context{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.project-board-cards{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.project-board-stages .quality-row{font-size:12px;gap:10px}.project-board-tabs~.panel table th{white-space:nowrap}.project-board-tabs~.panel table td{min-width:110px}.project-board-tabs~.panel table td .muted{font-size:11px}@media(max-width:800px){.project-board-stages{grid-template-columns:1fr}}.case-workload-panel table{min-width:1150px}.case-workload-panel td:last-child,.case-workload-panel th:last-child{min-width:230px;position:sticky;right:0;background:white;border-left:1px solid #e4e9f2}.case-workload-panel th:last-child{background:#f8faff}.case-workload-panel td:last-child button{white-space:nowrap;margin:2px}@media(max-width:650px){.case-workload-panel td:last-child,.case-workload-panel th:last-child{position:static}}.case-workload-panel.case-workload-summary table{min-width:900px}.case-workload-panel.case-workload-summary table td{min-width:0}.case-workload-panel.case-workload-summary td:last-child,.case-workload-panel.case-workload-summary th:last-child{min-width:230px}
.case-module-list table{table-layout:fixed;min-width:720px}.case-module-list th,.case-module-list td{min-width:0!important;overflow-wrap:anywhere}.case-module-list th:first-child{width:12%}.case-module-list th:nth-child(2){width:26%}.case-module-list th:nth-child(3),.case-module-list th:nth-child(4){width:10%}.case-module-list th:nth-child(5){width:12%}.case-module-list th:nth-child(6){width:10%}.case-module-list th:last-child{width:20%}.case-module-list td:last-child button{display:block;white-space:nowrap;margin-bottom:6px}.case-module-pager{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin:16px 0}.case-module-list .table-wrap{overflow-x:auto}.case-module-list details{margin:14px 0}

.project-board-subtabs{display:flex;flex-wrap:wrap;gap:8px;margin:-10px 0 22px}.case-module-pager select{padding:5px 8px}.case-module-pager label{display:flex;align-items:center;gap:6px}

.case-editor-modal{width:640px}.case-editor-modal .modal-head{padding:12px 18px}.case-editor-modal .modal-head h2{font-size:15px}.case-editor-modal .modal-body{padding:10px 18px}.case-editor-modal .modal-foot{padding:10px 18px}.case-editor-tip{color:#667085;font-size:12px;margin:6px 0}.case-editor-grid{table-layout:fixed;width:100%;border-collapse:collapse;margin:8px 0}.case-editor-grid th,.case-editor-grid td{border:1px solid #d8e0ec;padding:0;height:32px;vertical-align:middle}.case-editor-grid th{font-weight:400;padding:4px 8px;background:#f1f5fc}.case-editor-grid th:first-child{width:29%}.case-editor-grid thead th{text-align:center}.case-editor-grid .case-grid-input{width:100%;padding:5px 12px;border:0;border-radius:0;text-align:right;font-variant-numeric:tabular-nums;appearance:textfield;font-size:13px}.case-grid-input::-webkit-inner-spin-button{appearance:none}.case-editor-grid .case-grid-input:focus{outline:2px solid #325ad6;outline-offset:-2px;box-shadow:none;background:#f1f5fc}.case-editor-grid tfoot td{text-align:right;background:#f1f5fc;padding:4px 12px}.case-editor-bugs th:first-child{width:50%}.case-editor-reason .field{flex-direction:row;align-items:center;gap:10px;margin-top:10px}.case-editor-reason label{white-space:nowrap}.case-editor-reason input{flex:1;min-width:0;padding:7px 10px}.case-editor-modal .modal-body>#form-error .error{padding:8px;margin:8px 0}@media(pointer:coarse){.case-editor-grid .case-grid-input,.case-editor-reason input{font-size:16px;min-height:44px}}@media(max-width:400px){.case-editor-modal .modal-body,.case-editor-modal .modal-head,.case-editor-modal .modal-foot{padding-left:10px;padding-right:10px}.case-editor-grid .case-grid-input{padding-left:6px;padding-right:6px}}

.qa-text{white-space:pre-wrap;overflow-wrap:anywhere;max-width:440px}.panel:has(.qa-text) td{vertical-align:top}.qa-text+h3{margin-top:12px}


/* Preserve native hidden semantics when form fields use flex layout. */
.modal .field[hidden]{display:none!important}
