.template-card .format-labels{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
.template-card .format-labels span{padding:3px 9px;border-radius:999px;background:var(--band);color:var(--brand);font-size:.78rem;font-weight:750}
.template-filters{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0}
.template-filters button{padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:#fff;font:inherit;font-weight:700;cursor:pointer}
.template-filters button:hover{border-color:#9ebdb7}
.template-filters button.is-active{background:var(--brand);border-color:var(--brand);color:#fff}
.template-actions{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:22px 0}
.template-actions .copy-status{color:var(--muted);font-size:.88rem}
.worksheet{margin:26px 0}
.worksheet-note{margin-bottom:16px}
.worksheet-table-wrap{overflow-x:auto}
table.worksheet-table{width:100%;border-collapse:collapse;min-width:840px}
table.worksheet-table th,table.worksheet-table td{border:1px solid var(--line);padding:10px;text-align:left;vertical-align:top}
table.worksheet-table thead th{background:#eef4f2}
table.worksheet-table td{height:44px}
.worksheet-checklist section{margin:22px 0}
.worksheet-checklist h3{margin-bottom:10px}
.worksheet-checklist ul{list-style:none;margin:0;padding:0;display:grid;gap:2px}
.worksheet-checklist label{display:flex;align-items:flex-start;gap:10px;min-height:40px;padding:8px 0;border-bottom:1px solid var(--line)}
.worksheet-checklist input[type="checkbox"]{width:18px;height:18px;flex:0 0 18px;margin-top:2px}
@media (max-width: 760px){
  .template-actions{flex-direction:column;align-items:stretch}
}
@media print{
  .template-actions,.template-filters{display:none!important}
  .worksheet-table-wrap{overflow:visible}
  table.worksheet-table{min-width:0;width:100%;font-size:7.5pt;table-layout:fixed}
  table.worksheet-table th,table.worksheet-table td{padding:4px 5px;overflow-wrap:anywhere}
  table.worksheet-table td{height:28px}
  .worksheet-checklist label{break-inside:avoid}
  @page{margin:.4in}
}
