/* HT standards use the same card, typography and spacing system as the other settings. */
.control-shell .ht-panel-body{flex:none;min-height:0;display:flex;flex-direction:column}
.control-shell .ht-standard-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;flex:none;padding:12px 14px;margin-bottom:18px;background:#f7f9fc;border:1px solid #e9edf3;border-radius:8px}
.control-shell .ht-library-select{display:flex;align-items:center;gap:14px;min-width:0;flex:1;color:#596d84}
.control-shell .ht-library-select>span{white-space:nowrap;font-weight:600}
.control-shell .ht-library-select .el-select{width:320px;max-width:100%}
.control-shell .ht-library-actions{display:flex;gap:8px;flex:none}
.control-shell .ht-library-actions .el-button{margin:0}
.control-shell .ht-rule-card{min-height:0;flex:none;padding:16px}
.control-shell .ht-rule-header{display:flex;align-items:center;justify-content:space-between;gap:20px}
.control-shell .ht-name-field{display:flex;align-items:center;gap:14px;min-width:0;flex:1;max-width:560px;color:#42566e}
.control-shell .ht-name-field>span{white-space:nowrap}
.control-shell .ht-name-field .el-input{flex:1;width:100%;max-width:100%}
.control-shell .ht-mode-actions{display:flex;align-items:center;gap:14px;flex:none}
.control-shell .ht-revision{color:#8291a2}
.control-shell .ht-rule-note{margin:10px 0;color:#75879c;line-height:1.7}
.control-shell .ht-rule-note strong{color:#426079;font-weight:600}
.control-shell .ht-rules-table{table-layout:fixed;width:100%;margin:0}
.control-shell .ht-rules-table th:first-child,.control-shell .ht-rules-table td:first-child{width:16%;text-align:left}
.control-shell .ht-rules-table th,.control-shell .ht-rules-table td{width:21%;text-align:center}
.control-shell .ht-rules-table .el-input-number{width:130px;max-width:100%}
.control-shell .algorithm-rules .ht-rules-table :is(th,td){height:40px;padding-top:6px;padding-bottom:6px}
.control-shell .ht-rules-table .ht-equivalent{color:#7a8b9e}
.control-shell .ht-card-footnote{margin:14px 0 0;line-height:1.7;color:#8290a1}
#app .control-shell :is(.ht-rule-note,.ht-card-footnote,.ht-revision,.ht-task-mode,.ht-task-locked){font-size:var(--font-caption)!important}
.control-shell .ht-empty{display:flex;flex:1;min-height:220px;align-items:center;justify-content:center;flex-direction:column;gap:12px;text-align:center;padding:24px;color:#8799ab}
.control-shell .ht-empty svg{width:44px;height:44px;color:#92abc3}
.control-shell .ht-empty h3{margin:0;color:#566c84}
.control-shell .ht-empty p{margin:0 0 4px;line-height:1.8;color:#7b8da2}
.control-shell .ht-task-selection{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;align-items:center;gap:6px 12px;min-width:0;padding:10px 14px;margin:0;border:1px solid #dfe9f3;border-radius:7px;background:#f7faff}
.control-shell .ht-task-caption{display:flex;align-items:center;gap:12px;min-width:0;grid-column:1;grid-row:1}
.control-shell .ht-task-label{color:#42617d;font-weight:600;white-space:nowrap}
.control-shell .ht-task-selection>.el-select{grid-column:1/-1;grid-row:2;width:100%;max-width:100%}
.ht-standard-popper .el-select-dropdown__item{height:38px;line-height:38px;padding:0 14px}
.ht-standard-popper .ht-standard-option{display:flex;align-items:center;gap:12px;min-width:0;width:100%;height:100%}
.ht-standard-popper .ht-standard-option-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ht-standard-popper .ht-standard-option>.ht-board-label{flex:none}
.control-shell .ht-task-name{grid-column:1/-1;grid-row:2;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#365574;line-height:32px}
.control-shell .ht-task-mode{color:#7c90a5;white-space:nowrap}
.control-shell .ht-task-links{display:flex;align-items:center;gap:12px;grid-column:2;grid-row:1;flex:none}
.control-shell .ht-task-links .el-button{margin:0}
.control-shell .ht-task-locked{color:#8293a3}
.ht-detail-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:16px}
.ht-detail-heading>div:first-child{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px;min-width:0}
.ht-detail-heading strong{overflow-wrap:anywhere;color:#354e68}
.ht-detail-note{line-height:1.7;color:#7e8da0;margin:0 0 16px}
.ht-detail-table{width:100%;border-collapse:collapse;table-layout:fixed}
.ht-detail-table :is(th,td){padding:12px 8px;border-bottom:1px solid #e6edf5;text-align:center;line-height:1.5}
.ht-detail-table th{background:#f5f8fc;font-weight:400;color:#697f97}
.ht-detail-table td{color:#405871}
.ht-detail-table tr:last-child td{border-bottom:0}
.ht-detail-table :is(th,td):first-child{text-align:left;padding-left:12px}
/* A standard is one board type; a paginated library keeps the page stable. */
.control-shell .ht-list-filters{display:flex;align-items:center;gap:12px;min-width:0}
#app .control-shell .ht-list-filters>.el-input{width:300px;flex:0 1 300px}
#app .control-shell .ht-list-filters>.el-select{width:150px;flex:0 0 150px}
#app .control-shell .ht-standard-toolbar>.el-button{height:var(--control-height);padding:0 16px}
.control-shell .ht-list-card{display:flex;flex:none;min-height:0;flex-direction:column;border:1px solid #e1eaf3;border-radius:8px;padding:0 16px;background:#fcfdff}
.control-shell .ht-standards-table{width:100%;table-layout:fixed;border-collapse:collapse;margin:0}
.control-shell .ht-standards-table .ht-col-name{width:21%}
.control-shell .ht-standards-table .ht-col-mode{width:7%}
.control-shell .ht-standards-table .ht-col-threshold{width:9%}
.control-shell .ht-standards-table .ht-col-status{width:9%}
.control-shell .ht-standards-table .ht-col-actions{width:18%}
.control-shell .ht-standards-table :is(th,td){height:54px;padding:8px 12px;text-align:left;border-bottom:1px solid #e6edf5;line-height:1.5;box-sizing:border-box}
.control-shell .ht-standards-table th{color:#6e839a;background:#f6f9fc;font-weight:400;height:46px}
.control-shell .ht-standards-table thead tr:first-child th,.control-shell .ht-standards-table thead tr:last-child th{height:32px;padding-top:5px;padding-bottom:5px}
.control-shell .ht-standards-table :is(.ht-threshold-group,.ht-threshold-heading,.ht-list-threshold){text-align:center}
.control-shell .ht-standards-table :is(th,td):nth-child(2),.control-shell .ht-standards-table thead tr:first-child th:nth-last-child(-n+2),.control-shell .ht-standards-table tbody td:nth-last-child(-n+2){text-align:center}
.control-shell .ht-standards-table .ht-list-threshold{padding-left:6px;padding-right:6px;font-variant-numeric:tabular-nums;color:#4b6c89}
.control-shell .ht-list-threshold>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.control-shell .ht-standards-table td{color:#425970}
.control-shell .ht-standards-table tbody tr:hover{background:#f7faff}
.control-shell .ht-list-name{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500;color:#314d68}
.ht-board-label,.control-shell .ht-use-state{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;height:26px;padding:0 9px;border:1px solid;border-radius:4px;font-size:12px;font-weight:500;line-height:20px;white-space:nowrap;vertical-align:middle}
.ht-board-label{color:#76539a;background:#f5f0fa;border-color:#e3d7ee}
.ht-board-label[data-board="外板"]{color:#945e20;background:#fff6e8;border-color:#f3dfbf}
.control-shell .ht-task-mode .ht-board-label{height:22px;padding:0 6px;line-height:18px}
.control-shell .ht-use-state{color:#756b60;background:#f5f2ee;border-color:#e3ddd5}
.control-shell .ht-use-state.is-active{color:#2f7b50;background:#edf8f0;border-color:#cde8d4}
.control-shell .ht-row-actions{display:flex;align-items:center;justify-content:center;gap:16px;white-space:nowrap}
.control-shell .ht-row-actions .el-button{margin:0;padding:0}
.control-shell .ht-list-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:50px;margin-top:0;color:#8291a2}
.control-shell .ht-list-footer{justify-content:space-between;gap:16px;color:#7d8fa3}
#app .control-shell .ht-list-footer>span{font-size:var(--font-caption)!important}
.control-shell .ht-list-card .ht-empty{min-height:150px;padding:20px}
.ht-editor-dialog{max-width:calc(100vw - 40px);--control-height:34px}
.ht-editor-heading{display:flex;align-items:center;justify-content:space-between;gap:24px}
.ht-editor-lock-notice{margin:0 0 14px}
.ht-editor-dialog .ht-name-field{display:flex;align-items:center;gap:12px;flex:1;min-width:0;color:#476078}
.ht-editor-dialog .ht-name-field>span{white-space:nowrap}
.ht-editor-dialog .ht-required-mark{margin-right:4px;color:var(--el-color-danger,#f56c6c);font-weight:500}
.ht-editor-dialog .ht-name-field .el-input{flex:1}
.ht-editor-dialog .ht-mode-actions{display:flex;align-items:center;gap:12px;flex:none;color:#476078}
.ht-editor-dialog .el-radio-button__inner{height:34px;display:flex;align-items:center;padding:0 14px}
.ht-editor-note{font-size:12px;line-height:1.8;color:#7b8da1;margin:14px 0}
.ht-editor-note strong{font-weight:500;color:#4c6e8a;margin:0 3px}
.ht-editor-table{table-layout:fixed;border-collapse:collapse;width:100%;border:1px solid #e5edf5;border-radius:6px}
.ht-editor-table :is(th,td){text-align:center;line-height:1.5;padding:8px;border-bottom:1px solid #e6edf5;height:50px;box-sizing:border-box}
.ht-editor-table th{background:#f5f8fc;color:#72879b;font-weight:400;font-size:12px;height:42px}
.ht-editor-table :is(th,td):first-child{width:13%;text-align:left;padding-left:16px}
.ht-editor-table :is(th,td):nth-child(2){width:18%}
.ht-editor-table :is(th,td):nth-child(3),.ht-editor-table :is(th,td):nth-child(4){width:24%}
.ht-editor-table .el-input-number{width:132px;max-width:100%}
.ht-editor-dialog .ht-fixed-limit .el-input__inner{text-align:center!important}
.ht-editor-table .ht-equivalent{color:#758ba1}
.ht-editor-footnote{font-size:12px;color:#8696a7;line-height:1.6;margin:14px 0 0}
@media(min-width:1100px) and (max-height:780px){
 .control-shell .ht-standards-table td{height:42px;padding-top:4px;padding-bottom:4px}
 .control-shell .ht-standards-table th{height:38px}
 .control-shell .ht-list-pagination{min-height:44px}
 .ht-editor-dialog .el-dialog__body{padding-top:16px;padding-bottom:16px}
 .ht-editor-table td{height:46px;padding-top:6px;padding-bottom:6px}
 .ht-editor-note{margin:10px 0}
 .ht-editor-footnote{margin-top:10px}
}
@media(min-width:1100px) and (max-width:1400px){
 .control-shell .ht-standards-table :is(th,td){padding-left:8px;padding-right:8px}
 .control-shell .ht-row-actions{gap:10px}
}
@media(min-width:1100px) and (max-height:850px){
 .control-shell .ht-standard-toolbar{padding:8px 12px;margin-bottom:12px}
 .control-shell .ht-rule-card{padding:12px 14px}
 .control-shell .ht-rule-note{margin:10px 0}
 .control-shell .ht-card-footnote{margin-top:10px}
 .control-shell .ht-task-selection{padding:6px 10px;gap:4px 8px}
 .control-shell .ht-task-caption{gap:10px}
}
@media(min-width:1100px) and (min-height:851px) and (max-height:930px){
 .control-shell.is-report-pane .report-information-block,.control-shell.is-report-pane .report-task-fields{padding:16px}
 .control-shell.is-report-pane .report-task-fields{--task-block-gap:10px}
 .control-shell.is-report-pane .bundle-entry{padding:12px;gap:10px}
 .control-shell.is-report-pane .bundle-entry-fields{gap:10px}
 .control-shell.is-report-pane .report-workspace-grid{margin-top:16px}
 .control-shell .quota-counting-controls{padding:8px 10px}
}
@media(min-width:1100px) and (max-height:780px){
 .control-shell .ht-standard-toolbar{padding:6px 10px;margin-bottom:10px}
 .control-shell .ht-rule-card{padding:10px 12px}
 .control-shell .ht-rule-note{margin:8px 0}
 .control-shell .ht-card-footnote{margin-top:8px}
 .control-shell .ht-task-selection{padding:4px 8px;gap:2px 8px}
 .control-shell .algorithm-rules .ht-rules-table :is(th,td){height:36px;padding-top:2px;padding-bottom:2px}
}
@media(min-width:1100px) and (max-height:740px){
 .control-shell.is-ht-pane .control-heading{margin-bottom:8px}
 .control-shell .ht-standard-toolbar{margin-bottom:8px}
 .control-shell .ht-rule-note{margin:6px 0}
}
@media(max-width:1100px){
 .control-shell .ht-standard-toolbar,.control-shell .ht-rule-header,.control-shell .ht-task-selection{flex-wrap:wrap}
 .control-shell .ht-name-field .el-input{width:260px}
 .control-shell .ht-library-select{flex-basis:100%}
 .control-shell .ht-rules-table .el-input-number{width:100px}
}
/* List records determine height; extra viewport space remains outside the card. */
@media(min-width:1100px){
 .control-shell.is-ht-pane .control-panel.ht-configuration-panel{height:auto;min-height:0}
 .control-shell.is-ht-pane .ht-standard-toolbar{padding:0;margin-bottom:14px;background:transparent;border:0;border-radius:0}
 .control-shell.is-ht-pane .ht-list-footer{margin-top:14px;padding-top:12px}
}
