@media (max-width:520px){
.topbar{height:56px}.topbar-right .badge:nth-child(n+2){display:none}.page{padding:14px}
.card.pad{padding:14px}.summary-strip{margin-bottom:14px}.grid-two{gap:14px}.page-head{
margin-bottom:12px}.prompt-box,.result-empty{min-height:300px}.btn{height:38px}.btn.small{
height:32px}.result-panel .result-actions{display:grid;grid-template-columns:1fr}
.result-actions .btn.primary{grid-column:1/-1}.sidebar{width:min(86vw,300px)}.toolbar{
grid-template-columns:1fr auto}.table-wrap td{grid-template-columns:86px minmax(0,1fr)}
}

/* CO11 component-level formal operations hardening: table slots, spacing, chips, footer, confirm modal */
.ops-filter{align-items:center;row-gap:12px;column-gap:10px;margin-bottom:18px}
.ops-filter>.btn.primary{height:38px;min-width:104px;font-weight:850}
.ops-filter .btn.ghost.small{height:38px;border-radius:12px}
.ops-filter select,.ops-filter .search{height:38px}
.ops-table{border-collapse:separate;border-spacing:0;background:#fff;border-radius:14px;overflow:visible}
.ops-table thead th{height:46px;background:#f4fafc;color:#375462;font-size:12px;font-weight:900;border-bottom:1px solid #cfe0e7;letter-spacing:.01em;white-space:nowrap}
.ops-table tbody tr{height:88px;min-height:88px;transition:background .15s ease}
.ops-table tbody tr:hover td{background:#fbfdfe}
.ops-table th,.ops-table td{vertical-align:middle;padding:0 12px}
.ops-table td{height:88px;border-bottom:1px solid var(--line)}
.ops-table .template-name-cell,.ops-table .record-topic-cell,.ops-table .site-name-cell{height:88px;padding-top:12px;padding-bottom:12px;vertical-align:middle}
.table-main-stack{min-height:64px;display:flex;flex-direction:column;justify-content:center;gap:5px;min-width:0}
.template-title{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:1.28;font-weight:900;color:var(--text)}
.template-desc{margin:0;color:var(--muted);line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;word-break:normal;overflow-wrap:anywhere}
.ops-table .table-action-col,.ops-table .table-more-col,.ops-table .actions-cell,.ops-table .more-cell{height:88px;padding-top:0;padding-bottom:0;vertical-align:middle;text-align:center;white-space:nowrap;overflow:visible}
.table-action-slot,.table-more-slot{height:88px;min-height:88px;width:100%;display:flex;align-items:center;justify-content:center}
.table-action-slot .btn{width:112px;min-width:112px;height:34px;padding:0 10px;line-height:34px;display:inline-flex;align-items:center;justify-content:center}
.table-more-slot .more-menu{width:100%;display:flex;align-items:center;justify-content:center}
.table-more-slot .btn[data-more],.table-more-slot .btn[data-more-site]{width:50px;min-width:50px;height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.table-text,.table-badge{max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;vertical-align:middle}
.table-select{width:88px;min-width:88px;height:34px}
.table-meta{padding:0 2px;margin:0 0 14px;color:var(--muted);font-size:13px;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.table-meta strong{color:var(--text);font-weight:900}
.table-foot{min-height:40px;border-top:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:10px;color:var(--muted);font-size:13px;padding:10px 2px 0;margin-top:0}
.table-foot strong{color:var(--text)}
.filter-chips{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.filter-chip{display:inline-flex;align-items:center;gap:6px;height:30px;padding:0 9px;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--text);font-size:12px;font-weight:850}
.filter-chip button{border:0;background:transparent;color:var(--muted);font-weight:900;padding:0 2px;line-height:1;cursor:pointer}.filter-chip button:hover{color:var(--bad)}
.confirm-copy{color:var(--muted);line-height:1.65}.confirm-target{display:flex;align-items:center;
gap:8px;min-height:42px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;
background:#fff;font-weight:850;color:var(--text)}
.modal-foot .btn.danger{background:#fff5f3;color:var(--bad);border-color:#f4c7c0}.modal-foot .btn.danger:hover{background:#ffe9e5}
.toast{max-width:min(360px,calc(100vw - 32px));font-weight:850}
@media (max-width:1279px) and (min-width:1024px){.ops-table .priority-low{display:none!important}
.ops-table tbody tr,.ops-table td,.table-action-slot,.table-more-slot{height:86px;
min-height:86px}.ops-table .template-name-cell,.ops-table .record-topic-cell,.ops-table .site-name-cell{
height:86px}}
@media (max-width:1023px){.ops-table tbody tr{height:auto;min-height:0;padding:14px}
.ops-table th,.ops-table td,.ops-table .template-name-cell,.ops-table .record-topic-cell,.ops-table .site-name-cell,.ops-table .table-action-col,.ops-table .table-more-col,.ops-table .actions-cell,.ops-table .more-cell{
height:auto;min-height:0;padding:8px 0;text-align:left}.table-main-stack{min-height:0;
gap:5px}.template-title{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;
-webkit-box-orient:vertical}.table-wrap .ops-table td.table-action-col,.table-wrap .ops-table td.table-more-col{
display:inline-flex;width:auto;margin:8px 8px 0 0;vertical-align:middle;float:none}
.table-action-slot,.table-more-slot{height:36px;min-height:36px;justify-content:flex-start;
width:auto}.table-action-slot .btn{width:auto;min-width:112px}.table-more-slot .btn[data-more],.table-more-slot .btn[data-more-site]{
width:auto;min-width:56px;padding:0 10px}.table-wrap .ops-table td.table-action-col::before,.table-wrap .ops-table td.table-more-col::before{
display:none}.table-meta{align-items:flex-start}.table-foot{display:block;line-height:1.7}
}

/* CO12 mobile global action safety */
@media (max-width:520px){.topbar-right .topbar-status{display:inline-flex}.topbar-right .topbar-action[data-open-help]{display:inline-flex}.topbar-right .topbar-action[data-open-local-data]{display:none}}

/* CO12 final acceptance remediation: compact rows, stable actions, wide/desktop/mobile hard guards */
:root{--co12-row:68px;--co12-action-h:36px}
.result-actions-top{order:0;margin:0 0 2px}.result-actions-top .btn.primary{font-weight:900}.result-panel #promptOutput{order:1}.result-panel .self-check{order:2}.result-panel .recent-collapsed{order:3}
@media (min-width:1321px){.workbench-grid,.grid-two{grid-template-columns:minmax(620px,.58fr) minmax(480px,.42fr)!important}.quick-brief{min-width:560px}.result-panel{min-width:420px}}
@media (max-width:1320px){.workbench-grid,.grid-two{grid-template-columns:1fr!important}.quick-brief,.result-panel{min-width:0!important}}
.ops-table tbody tr{height:var(--co12-row)!important;min-height:var(--co12-row)!important}
.ops-table th,.ops-table td{vertical-align:middle!important;padding:0 10px!important}
.ops-table td{height:var(--co12-row)!important;max-height:var(--co12-row);line-height:1.35}
.ops-table .template-name-cell,.ops-table .record-topic-cell,.ops-table .site-name-cell{height:var(--co12-row)!important;padding-top:6px!important;padding-bottom:6px!important;vertical-align:middle!important}
.table-main-stack{min-height:54px!important;height:54px!important;display:flex!important;flex-direction:column!important;justify-content:center!important;gap:3px!important;overflow:hidden!important}
.template-title{white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important;line-height:1.25!important;font-size:14px!important}
.template-desc{line-height:1.35!important;-webkit-line-clamp:2!important;font-size:13px!important;overflow:hidden!important;word-break:normal!important;overflow-wrap:anywhere!important;margin:0!important}
.ops-table .table-action-col,.ops-table .table-more-col,.ops-table .actions-cell,.ops-table .more-cell{
height:var(--co12-row)!important;padding-top:0!important;padding-bottom:0!important;
text-align:center!important;vertical-align:middle!important;white-space:nowrap!important;
overflow:visible!important}
.table-action-slot,.table-more-slot{height:var(--co12-row)!important;min-height:var(--co12-row)!important;
width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;
margin:0!important;padding:0!important}
.table-action-slot .btn,.ops-table td[data-label="主操作"] .btn{width:112px!important;
min-width:112px!important;height:var(--co12-action-h)!important;line-height:var(--co12-action-h)!important;
padding:0 10px!important;display:inline-flex!important;align-items:center!important;
justify-content:center!important;border-radius:11px!important;white-space:nowrap!important;
align-self:center!important;margin:0!important}
.table-more-slot .table-more-trigger,.table-more-slot .btn[data-more],.table-more-slot .btn[data-more-site],.table-more-slot .btn[data-action-panel]{
width:52px!important;min-width:52px!important;height:var(--co12-action-h)!important;
line-height:var(--co12-action-h)!important;padding:0!important;display:inline-flex!important;
align-items:center!important;justify-content:center!important;margin:0!important;
border-radius:11px!important}
.table-badge,.table-text{white-space:nowrap!important;overflow:hidden!important;
text-overflow:ellipsis!important;display:inline-flex!important;max-width:100%;vertical-align:middle}
.table-select{height:36px!important;border-radius:11px!important}
.ops-table thead th{height:42px!important;background:#f2f8fb!important;color:#344f5c!important;border-bottom:1px solid #c9dce5!important}
.ops-table tbody tr:hover td{background:#fbfdfe!important}.table-card{padding:16px!important}
.table-wrap{overflow:visible!important}.ops-table{min-width:0!important;width:100%!important;
table-layout:fixed!important}.toolbar{margin-bottom:12px!important}.ops-filter{row-gap:10px!important}
@media (min-width:1200px){html,body{overflow-x:hidden!important}.table-wrap{overflow-x:visible!important}
.ops-filter>.btn.primary{flex:0 0 auto!important;order:-30}.ops-filter .search{flex:1 1 300px!important;
min-width:260px!important}.ops-filter select{flex:0 0 146px!important;min-width:128px!important}
.ops-filter .btn.ghost.small{flex:0 0 auto!important}.template-table .col-last,.template-table .col-usage{
width:82px}.template-table .col-category,.template-table .col-status{width:86px}
.template-table .col-mode{width:116px}.records-table .col-selfcheck{width:96px}.records-table .col-site{
width:120px}.records-table .col-mode{width:116px}.records-table .col-status{width:88px}
.records-table .col-last{width:92px}.site-table .col-lang{width:84px}.site-table .col-scenario{
width:108px}.site-table .col-tone{width:118px}.site-table .col-template-count{width:74px}
.site-table .col-last{width:92px}.site-table .col-health{width:116px}.ops-table .col-main-action{
width:126px!important}.ops-table .col-more{width:68px!important}}
@media (max-width:1199px) and (min-width:992px){.ops-filter>.btn.primary{flex:0 0 auto!important;
order:-30}.ops-filter .search{flex:1 1 100%!important;min-width:260px!important}
.ops-filter select {
flex:1 1 150px!important}.priority-low, .site-table col.col-tone, .site-table th:nth-child(4), .site-table td:nth-child(4), .template-table col.col-last, .template-table col.col-usage, .template-table th:nth-child(4),
.template-table td:nth-child(4), .template-table th:nth-child(5), .template-table td:nth-child(5) {
display:none!important}.ops-table .col-main-action{width:126px!important}.ops-table .col-more{
width:68px!important}}
@media (max-width:991px){.ops-filter>.btn.primary{width:100%!important;order:-30}
.ops-filter .search{width:100%!important;flex:1 1 100%!important}.table-wrap{overflow:visible!important}
.ops-table,.ops-table thead,.ops-table tbody,.ops-table tr,.ops-table td{display:block!important;
width:100%!important}.ops-table thead{display:none!important}.ops-table tbody tr{
height:auto!important;min-height:0!important;background:#fff;border:1px solid var(--line);
border-radius:16px;padding:14px!important;margin-bottom:12px!important;box-shadow:0 8px 24px rgba(15,35,45,.05)}
.ops-table td{height:auto!important;max-height:none!important;border-bottom:0!important;
padding:7px 0!important;display:grid!important;grid-template-columns:96px minmax(0,1fr)!important;
gap:10px!important;text-align:left!important}.ops-table td::before{content:attr(data-label);
font-size:12px;color:var(--muted);font-weight:900}.ops-table .template-name-cell,.ops-table .record-topic-cell,.ops-table .site-name-cell{
height:auto!important;padding:0 0 8px!important;display:block!important}.ops-table .template-name-cell::before,.ops-table .record-topic-cell::before,.ops-table .site-name-cell::before{
display:none}.table-main-stack{height:auto!important;min-height:0!important;align-items:flex-start!important}
.template-title{white-space:normal!important;display:-webkit-box!important;-webkit-line-clamp:2!important;
-webkit-box-orient:vertical}.ops-table .table-action-col,.ops-table .table-more-col,.ops-table .actions-cell,.ops-table .more-cell{
height:auto!important;display:inline-flex!important;width:auto!important;margin:6px 8px 0 0!important;
padding:0!important}.ops-table .table-action-col::before,.ops-table .table-more-col::before{
display:none!important}.table-action-slot,.table-more-slot{height:38px!important;
min-height:38px!important;justify-content:flex-start!important}.table-action-slot .btn{
width:auto!important;min-width:112px!important}.table-more-slot .table-more-trigger,.table-more-slot .btn[data-action-panel]{
width:auto!important;min-width:58px!important;padding:0 10px!important}.modal{width:calc(100vw - 24px)!important;
max-height:86vh}.modal-foot{justify-content:stretch!important;flex-wrap:wrap}.modal-foot .btn{
flex:1 1 auto}.action-panel{top:auto!important;left:12px!important;right:12px!important;
bottom:12px!important;width:auto!important;transform:none!important}.action-panel.is-open{
animation:none!important}}
@media (max-width:390px){.topbar{padding:0 10px!important}.topbar-right{gap:6px}
.topbar-status{font-size:12px;padding:4px 8px}.page{padding:14px!important}.page-title p{
white-space:normal!important}.mode-tabs{flex-wrap:nowrap!important;overflow-x:auto!important}
.mode-tab{flex:0 0 auto!important}.result-actions-top{display:grid!important;grid-template-columns:1fr!important}
.prompt-box,.result-empty{min-height:300px!important}}
