/* GYMTOSS X 센터 체크리스트 — 트레이너 수행 / 관리 화면
   토큰은 gymtos-design.css 의 GYMTOS 시안 시스템을 그대로 쓴다 (다크 테마 포함). */
.cl-root { display: flex; flex-direction: column; gap: 0; margin: -14px -16px 0; min-height: calc(100vh - 120px); background: var(--surface-app); color: var(--text-body); font-family: var(--font-core); }
.cl-root button { font-family: inherit; }
.cl-banner { flex: 0 0 auto; padding: 10px 28px; background: rgba(255, 176, 32, .16); color: #8a5b00; font-size: 12px; font-weight: 700; border-bottom: 1px solid var(--line-hairline); }
.cl-error { flex: 0 0 auto; margin: 24px 28px; padding: 16px; border-radius: var(--radius-3); background: rgba(240, 58, 58, .1); color: var(--state-danger); font-weight: 700; }
.cl-loading { padding: 40px; text-align: center; color: var(--text-muted); }

/* 공통 타이포 */
.cl-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--text-accent); }
.cl-h1 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--text-strong); }
.cl-cap { font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--text-faint); text-transform: uppercase; }
.cl-cap.is-accent { color: var(--text-accent); }
.cl-cap--inverse { color: var(--steel-400); }
.cl-title { font-size: 16px; font-weight: 800; color: var(--text-strong); }
.cl-title--accent { color: var(--text-accent); }
.cl-sub { font-size: 12px; color: var(--text-muted); }
.cl-sub.is-danger, .is-danger { color: var(--state-danger); }
.is-ok { color: var(--cyan-600); }
.is-accent { color: var(--text-accent); }
.cl-sub--inverse { color: var(--steel-300); font-size: 12px; }
.cl-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cl-strong { font-weight: 700; }
.cl-ml { margin-left: auto; }
.cl-note { line-height: 1.5; margin-top: 4px; }
.cl-center { text-align: center; }
.cl-right { text-align: right; }

/* 상단 바 */
.cl-bar { flex: 0 0 auto; display: flex; align-items: center; gap: 14px; padding: 14px 28px; background: var(--surface-card); border-bottom: 1px solid var(--line-hairline); }
.cl-bar--top { align-items: flex-start; }
.cl-bar-title { display: flex; align-items: center; gap: 12px; margin-top: 4px; flex-wrap: wrap; }
.cl-bar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.cl-chip-date { font-family: var(--font-mono); font-size: 13px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-3); background: var(--surface-card); color: var(--text-strong); white-space: nowrap; }
.cl-select { min-height: 34px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-3); background: var(--surface-card); color: var(--text-strong); font-size: 13px; font-weight: 700; }
.cl-count { text-align: right; }
.cl-count-label { font-size: 11px; color: var(--text-muted); }
.cl-count-value { font-family: var(--font-mono); font-size: 21px; font-weight: 700; color: var(--text-strong); }
.cl-count-value.is-danger { color: var(--state-danger); }
.cl-kpis { margin-left: auto; display: flex; gap: 26px; align-items: flex-end; }
.cl-kpi { text-align: right; }
.cl-kpi-label { font-size: 11px; color: var(--text-muted); }
.cl-kpi-value { font-size: 21px; font-weight: 700; color: var(--text-strong); }
.cl-kpi-value.is-warn { color: var(--state-warning); }
.cl-kpi-value.is-danger { color: var(--state-danger); }
.cl-kpi-suffix { font-size: 12px; color: var(--text-faint); }

/* 탭 */
.cl-tabs { flex: 0 0 auto; display: flex; gap: 26px; padding: 0 28px; background: var(--surface-card); border-bottom: 1px solid var(--line-hairline); overflow-x: auto; }
.cl-tab { display: flex; align-items: baseline; gap: 8px; padding: 12px 0; background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer; font-size: 13px; font-weight: 800; color: var(--text-muted); white-space: nowrap; }
.cl-tab .cl-mono { font-size: 13px; color: var(--text-faint); }
.cl-tab.is-on { color: var(--text-strong); border-bottom-color: var(--surface-accent); }
.cl-tab.is-on .cl-mono { color: var(--text-accent); }

/* 그리드 */
.cl-grid { display: grid; gap: 16px; padding: 16px 28px; align-items: start; flex: 1; }
.cl-grid--trainer { grid-template-columns: minmax(0, 1fr) 364px; }
.cl-grid--admin { grid-template-columns: 210px minmax(0, 1fr) 340px; }
.cl-grid--template { grid-template-columns: 200px minmax(0, 1fr) 280px; }
.cl-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cl-col--side { position: sticky; top: 76px; }

/* 패널 */
.cl-panel { background: var(--surface-card); border: 1px solid var(--line-hairline); border-radius: var(--radius-3); box-shadow: var(--elev-1); display: flex; flex-direction: column; min-width: 0; }
.cl-pad { padding: 16px; gap: 8px; }
.cl-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line-hairline); flex-wrap: wrap; }
.cl-head--flat { padding: 0; border: 0; }
.cl-head-num { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--text-strong); }
.cl-panel-foot { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-top: 1px solid var(--line-hairline); font-size: 12px; }
.cl-empty { padding: 28px 12px; text-align: center; color: var(--text-muted); font-size: 13px; }

/* 칩 */
.cl-chip { display: inline-flex; align-items: center; font-size: 11px; font-weight: 700; padding: 3px 7px; border-radius: var(--radius-pill); white-space: nowrap; background: var(--surface-sunken); color: var(--text-muted); border: 1px solid var(--line-hairline); }
.cl-chip--accent { background: var(--surface-accent-soft); color: var(--text-accent); border-color: var(--line-accent); }
.cl-chip--warn { background: rgba(255, 176, 32, .16); color: #8a5b00; }
.cl-chip--bad { background: rgba(240, 58, 58, .12); color: var(--state-danger); }
.cl-chip--mono { font-family: var(--font-mono); font-size: 10px; }
.cl-chip--btn { cursor: pointer; }
.cl-mini { min-height: 22px; padding: 0 8px; border-radius: var(--radius-2); border: 1px solid var(--line-strong); background: var(--surface-card); color: var(--text-body); font-size: 11px; font-weight: 700; cursor: pointer; }
.cl-mini:disabled { opacity: .4; cursor: default; }
.cl-link { background: none; border: 0; padding: 0; color: var(--text-accent); font-size: 12px; font-weight: 700; cursor: pointer; }

/* 자동 집계 */
.cl-metrics { gap: 10px; }
.cl-metrics-head { display: flex; align-items: center; gap: 8px; }
/* 건수 카드와 금액 카드는 담는 글자 수가 다르다. 여섯 칸을 똑같이 나누면 금액이 칸을
   뚫고 나가 자동 집계 묶음 전체를 옆으로 밀어낸다. 금액 칸만 넓게 잡는다. */
.cl-metric-grid { display: flex; flex-wrap: wrap; gap: 10px; }
/* 카드를 누르면 그 숫자를 만든 내역이 열린다. 버튼이 되어도 생김새는 그대로다. */
.cl-metric { appearance: none; text-align: left; font: inherit; color: inherit; flex: 1 1 92px; max-width: 200px; box-sizing: border-box; padding: 10px 12px; border-radius: var(--radius-3); background: var(--surface-sunken); border: 1px solid var(--line-hairline); min-width: 0; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
/* 줄이 넘어가면 마지막 한 칸이 한 줄을 통째로 먹는다. 상한을 둬서 그러지 못하게 한다. */
.cl-metric--wide { flex-basis: 148px; max-width: 260px; }
.cl-metric.is-fail { border-color: var(--state-danger); background: var(--surface-card); }
.cl-metric-k { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* 값은 어떤 자릿수가 와도 칸 안에 머문다. 넘치면 잘릴지언정 옆 칸을 밀지 않는다. */
.cl-metric-v { font-size: 21px; font-weight: 700; color: var(--text-strong); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.cl-metric-v.is-money, .cl-metric-v.is-fail { font-size: 16px; }
.cl-metric-v.is-fail { color: var(--state-danger); }
.cl-metric.is-openable { cursor: pointer; }
.cl-metric.is-openable:hover { border-color: var(--line-accent); }
.cl-metric.is-openable:focus-visible { outline: none; box-shadow: var(--ring-focus, 0 0 0 3px rgba(0, 174, 239, .35)); }
/* GYMTOSS 상세 모달: gymtos-design.css 의 시안·스틸 표면과 공통 모달 폭을 따른다. */
.cl-modal--wide { width: min(880px, calc(100vw - 32px)); max-height: min(88vh, 820px); padding: 20px; border: 1px solid var(--line-strong); border-radius: var(--radius-3); box-shadow: var(--elev-3); }
.cl-modal--wide .cl-modal-body { overflow-y: auto; min-height: 0; }
.cl-modal--wide .cl-modal-title { font-size: 22px; line-height: 1.25; }
.cl-modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.cl-modal-kicker { margin-bottom: 5px; color: var(--text-accent); font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.cl-detail-context { margin-bottom: 14px; }
.cl-detail-scope-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-detail-explain { margin-top: 8px; color: var(--text-muted); font-size: 12px; line-height: 1.5; }
.cl-detail-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
.cl-detail-stat { min-width: 0; padding: 10px 12px; border: 1px solid var(--line-hairline); border-radius: var(--radius-2); background: var(--surface-sunken); }
.cl-detail-stat-label { display: block; color: var(--text-muted); font-size: 11px; }
.cl-detail-stat-value { display: block; margin-top: 3px; overflow: hidden; color: var(--text-strong); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.cl-detail-limit { margin: 0 0 8px; }
.cl-detail-table-wrap { max-height: 480px; overflow: auto; border: 1px solid var(--line-hairline); border-radius: var(--radius-2); }
.cl-detail-table { min-width: 760px; }
.cl-detail-table th, .cl-detail-table td { padding: 10px 12px; }
.cl-detail-time { display: flex; flex-direction: column; gap: 3px; }
.cl-detail-time strong { color: var(--text-strong); font-size: 13px; }
.cl-detail-member { color: var(--text-strong) !important; font-weight: 700; white-space: nowrap; }
.cl-detail-status { white-space: nowrap; }
.cl-detail-empty { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 32px 16px; border: 1px solid var(--line-hairline); border-radius: var(--radius-2); background: var(--surface-sunken); color: var(--text-muted); text-align: center; }
.cl-detail-empty strong { color: var(--text-strong); font-size: 14px; }
.cl-metric-scope { font-size: 11px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.cl-metric-why { font-size: 11px; line-height: 1.45; color: var(--state-danger); word-break: keep-all; }

/* 청소 릴레이 표 */
.cl-table-wrap { overflow-x: auto; }
.cl-table { border-collapse: collapse; width: 100%; }
.cl-table th { font-size: 11px; font-weight: 800; letter-spacing: .04em; color: var(--text-muted); text-transform: uppercase; text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line-hairline); white-space: nowrap; }
/* 칸마다 '사진 0/1' 이 있고 없고가 달라, 가운데 정렬은 X 를 서로 다른 높이에 놓는다.
   위를 기준으로 맞춰 한 줄에서 체크가 나란히 서게 한다. 담당자 이름만 가운데다. */
.cl-table td { font-size: 13px; color: var(--text-body); padding: 7px 10px; border-bottom: 1px solid var(--line-hairline); vertical-align: top; }
.cl-table td:first-child { vertical-align: middle; }
.cl-table tr.is-me { background: var(--surface-accent-soft); }
.cl-person { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cl-person-name { font-weight: 700; color: var(--text-strong); }
.cl-cell { width: 62px; height: 30px; border-radius: var(--radius-2); display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; letter-spacing: .02em; border: 1px solid var(--line-strong); background: var(--surface-card); color: var(--state-danger); cursor: default; }
.cl-cell.is-done { background: var(--surface-accent-soft); color: var(--text-accent); border-color: transparent; }
.cl-cell.is-editable { cursor: pointer; box-shadow: inset 0 0 0 1px var(--line-accent); }
.cl-cell.is-locked { border-style: dashed; }
.cl-cell-photo { display: block; margin: 4px auto 0; background: none; border: 0; padding: 0; font-family: var(--font-mono); font-size: 11px; color: var(--text-accent); cursor: pointer; }
.cl-cell-photo.is-muted { color: var(--text-faint); }

/* 항목 리스트 */
.cl-items { gap: 6px; }
.cl-section { margin-top: 6px; }
.cl-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius-3); cursor: pointer; border: 1px solid var(--line-hairline); background: var(--surface-card); }
.cl-item.is-locked { background: var(--surface-sunken); }
.cl-item.is-selected { border-color: var(--line-accent); background: var(--surface-accent-soft); }
.cl-item-body { min-width: 0; flex: 1; }
.cl-item-label { font-size: 13px; font-weight: 700; color: var(--text-strong); }
.cl-check { width: 22px; height: 22px; border-radius: var(--radius-2); flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-strong); background: var(--surface-card); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; padding: 0; }
.cl-check.is-done { background: var(--surface-accent); border-color: var(--surface-accent); }
.cl-check.is-locked { border-color: var(--state-warning); }

/* 상세 패널 */
.cl-detail { gap: 14px; word-break: keep-all; }
.cl-detail-title { margin-top: 6px; }
.cl-drop { min-height: 96px; border-radius: var(--radius-3); border: 1px dashed var(--line-strong); background: var(--surface-sunken); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; cursor: pointer; color: var(--text-muted); padding: 12px; text-align: center; }
.cl-drop.is-locked { border-color: var(--state-danger); background: rgba(240, 58, 58, .06); color: var(--state-danger); }
.cl-drop.is-disabled { cursor: default; opacity: .6; }
.cl-drop-title { font-size: 13px; font-weight: 700; color: var(--text-body); }
.cl-drop.is-locked .cl-drop-title { color: var(--state-danger); }
.cl-photos-head { display: flex; justify-content: space-between; align-items: baseline; }
.cl-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.cl-thumb-wrap { display: flex; flex-direction: column; gap: 3px; }
.cl-thumb { width: 84px; height: 60px; border-radius: var(--radius-2); background: var(--surface-sunken); border: 1px solid var(--line-hairline); display: flex; align-items: center; justify-content: center; color: var(--text-faint); overflow: hidden; }
.cl-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cl-thumb-meta { display: flex; justify-content: space-between; gap: 6px; font-size: 11px; color: var(--text-muted); }
.cl-textarea, .cl-input { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 8px 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-2); background: var(--surface-card); color: var(--text-strong); font-size: 12px; font-family: inherit; resize: none; }
.cl-input { margin-top: 0; min-height: 32px; }
.cl-input--sm { min-height: 28px; padding: 4px 8px; font-size: 12px; }
.cl-textarea:focus, .cl-input:focus { outline: none; box-shadow: var(--ring-focus, 0 0 0 3px rgba(0, 174, 239, .35)); }
.cl-na { display: flex; align-items: center; gap: 10px; }
.cl-record { padding: 12px; background: var(--surface-sunken); border-radius: var(--radius-3); border: 1px solid var(--line-hairline); }
.cl-record-body { display: flex; flex-direction: column; gap: 3px; margin-top: 6px; font-size: 12px; color: var(--text-body); white-space: normal; }

/* 하단 제출 바 */
/* 화면에 붙어 따라다니며 표 마지막 줄을 계속 가렸다. 문서 흐름에 그대로 둔다. */
.cl-bottom { flex: 0 0 auto; z-index: 5; display: flex; align-items: center; gap: 24px; padding: 12px 28px; background: var(--surface-card); border-top: 1px solid var(--line-hairline); box-shadow: 0 -2px 8px rgba(20, 23, 26, .05); flex-wrap: wrap; }
.cl-progress { display: flex; align-items: center; gap: 10px; }
.cl-progress-label { font-size: 12px; font-weight: 700; color: var(--text-muted); }
.cl-progress-num { font-size: 13px; font-weight: 700; color: var(--text-strong); }
.cl-track { height: 6px; border-radius: 999px; background: var(--steel-200); overflow: hidden; min-width: 140px; }
.cl-fill { height: 6px; background: var(--surface-accent); transition: width var(--dur-base, 200ms) var(--ease-out, ease-out); }
.cl-bottom-msg { font-size: 12px; font-weight: 700; }
.cl-bottom-action { margin-left: auto; }

/* 토스트 · 모달 */
.cl-toast { position: fixed; left: 50%; bottom: 86px; transform: translateX(-50%); z-index: 50; padding: 10px 16px; border-radius: var(--radius-3); background: var(--surface-inverse); color: #fff; font-size: 13px; font-weight: 600; box-shadow: var(--elev-3); max-width: 520px; }
.cl-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(20, 23, 26, .42); display: flex; align-items: center; justify-content: center; padding: 16px; }
.cl-modal { width: 420px; max-width: 100%; background: var(--surface-card); border-radius: var(--radius-3); box-shadow: var(--elev-3); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.cl-modal-title { font-size: 16px; font-weight: 800; color: var(--text-strong); }
.cl-modal-body { font-size: 13px; line-height: 1.7; color: var(--text-body); }
.cl-modal-list { margin-bottom: 6px; }
.cl-modal-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 4px; }

/* 관리: 슬롯 카드 · 배정 */
.cl-slotcards { display: flex; flex-direction: column; gap: 10px; }
.cl-slotcard { padding: 14px; border-radius: var(--radius-3); cursor: pointer; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line-hairline); background: var(--surface-card); color: var(--text-body); box-shadow: var(--elev-1); }
.cl-slotcard-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 800; color: var(--text-strong); }
.cl-dot { margin-left: auto; width: 8px; height: 8px; border-radius: var(--radius-1); background: var(--steel-300); }
.cl-slotcard-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.cl-slotcard-chips span { font-family: var(--font-mono); font-size: 11px; padding: 2px 6px; border-radius: var(--radius-1); background: var(--surface-sunken); color: var(--text-muted); }
.cl-slotcard.is-on { background: var(--surface-inverse); border-color: var(--steel-900); color: #fff; }
.cl-slotcard.is-on .cl-slotcard-head { color: #fff; }
.cl-slotcard.is-on .cl-sub { color: var(--steel-300); }
.cl-slotcard.is-on .cl-dot { background: var(--surface-accent); }
.cl-slotcard.is-on .cl-slotcard-chips span { background: rgba(255, 255, 255, .12); color: #fff; }
.cl-duties { margin-top: 4px; }
.cl-duty { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.cl-duty-name { font-size: 12px; font-weight: 700; color: var(--text-strong); white-space: nowrap; }
.cl-duty .cl-input--sm { width: 120px; }

/* 관리: 인원별 표 */
.cl-detail-tr td { background: var(--surface-sunken); }
.cl-detail-row { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 12px; }

/* 관리: 보드 */
.cl-board { display: grid; grid-template-columns: 1fr 56px 56px 56px; gap: 6px; align-items: center; }
.cl-board-h { font-size: 11px; color: var(--text-muted); text-align: center; }
.cl-board-name { background: none; border: 0; padding: 0; text-align: left; font-size: 12px; font-weight: 600; color: var(--text-body); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-board-name.is-on { font-weight: 800; color: var(--text-strong); text-decoration: underline; text-underline-offset: 3px; }
.cl-board-cell { font-size: 11px; text-align: center; padding: 5px 0; border-radius: var(--radius-2); font-weight: 700; }
.cl-board-cell.is-ok, .cl-legend-dot.is-ok { background: rgba(143, 224, 0, .25); color: var(--steel-800); }
.cl-board-cell.is-late, .cl-legend-dot.is-late { background: rgba(255, 176, 32, .2); color: #8a5b00; }
.cl-board-cell.is-busy, .cl-legend-dot.is-busy { background: var(--surface-accent-soft); color: var(--text-accent); }
.cl-board-cell.is-missed, .cl-legend-dot.is-missed { background: rgba(240, 58, 58, .12); color: var(--state-danger); }
.cl-board-cell.is-none, .cl-legend-dot.is-none { background: var(--surface-sunken); color: var(--text-faint); }
.cl-legend { display: flex; gap: 12px; flex-wrap: wrap; padding-top: 8px; border-top: 1px solid var(--line-hairline); font-size: 11px; color: var(--text-muted); }
.cl-legend span { display: inline-flex; align-items: center; gap: 5px; }
.cl-legend-dot { width: 9px; height: 9px; border-radius: var(--radius-1); display: inline-block; }

/* 관리: 자동 보고 */
.cl-report { background: var(--surface-inverse); border: 1px solid rgba(255, 255, 255, .12); border-radius: var(--radius-3); padding: 16px; display: flex; flex-direction: column; gap: 12px; color: #fff; }
.cl-report-head { display: flex; align-items: baseline; gap: 8px; justify-content: space-between; }
.cl-report-title { font-size: 16px; font-weight: 800; }
.cl-report-empty { padding: 18px 0; line-height: 1.6; }
.cl-report-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.cl-report-kpis > div { padding: 8px 10px; border-radius: var(--radius-2); background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.cl-report-k { font-size: 11px; color: var(--steel-400); }
.cl-report-v { font-size: 21px; font-weight: 700; color: #fff; }
.cl-report-v span { font-size: 11px; }
.cl-report-v.is-accent { color: var(--cyan-300); }
.cl-report-row { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 12px; color: var(--steel-300); }
.cl-report-row .cl-mono { margin-left: auto; font-size: 13px; font-weight: 700; color: #fff; }
.cl-report-row .cl-mono.is-fail { color: #ff8f8f; }
.cl-report-src { font-family: var(--font-mono); font-size: 10px; padding: 2px 5px; border-radius: var(--radius-1); background: rgba(255, 255, 255, .12); color: var(--steel-200); }
.cl-report-src.is-fail { background: rgba(240, 58, 58, .2); color: #ffb4b4; }
.cl-report-missing { padding: 10px; border-radius: var(--radius-2); background: rgba(240, 58, 58, .12); border: 1px solid rgba(240, 58, 58, .3); font-size: 12px; color: var(--steel-200); line-height: 1.5; }
.cl-report-missing-title { font-size: 12px; font-weight: 800; color: #ff8f8f; margin-bottom: 4px; }
.cl-report-actions { display: flex; gap: 8px; }
.cl-btn-inverse { flex: 1; min-height: 38px; padding: 0 14px; border-radius: var(--radius-3); border: 1px solid rgba(255, 255, 255, .24); background: transparent; color: #fff; font-size: 13px; font-weight: 700; cursor: pointer; }
.cl-btn-inverse--ghost { flex: 0 0 auto; color: var(--steel-300); }

/* 관리: 템플릿 편집기 */
.cl-sections, .cl-slotcfg, .cl-history { gap: 8px; }
.cl-section-row { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: var(--radius-2); background: var(--surface-sunken); font-size: 12px; font-weight: 700; color: var(--text-strong); justify-content: space-between; }
.cl-slotcfg-row { display: flex; gap: 8px; }
.cl-slotcfg label, .cl-slotcfg-title { display: flex; flex-direction: column; gap: 5px; flex: 1; font-size: 11px; font-weight: 700; color: var(--text-muted); }
.cl-history-row { display: flex; align-items: baseline; gap: 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line-hairline); font-size: 12px; }
.cl-history-row .cl-mono:last-child { margin-left: auto; font-size: 11px; }
.cl-editor { min-height: 560px; }
.cl-editor-title { font-size: 16px; margin-top: 4px; }
.cl-editor-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cl-seg { display: inline-flex; gap: 2px; padding: 2px; background: var(--surface-sunken); border: 1px solid var(--line-hairline); border-radius: var(--radius-2); }
.cl-seg-btn { min-height: 26px; padding: 0 10px; border: 0; border-radius: var(--radius-1); background: transparent; color: var(--text-muted); font-size: 12px; font-weight: 700; cursor: pointer; }
.cl-seg-btn.is-on { background: var(--surface-accent); color: #fff; }
.cl-tpl-head, .cl-tpl-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 44px 92px 44px 110px 40px; gap: 6px; align-items: center; padding: 8px 16px; }
.cl-tpl-head { background: var(--surface-sunken); border-bottom: 1px solid var(--line-hairline); font-size: 11px; font-weight: 800; letter-spacing: .06em; color: var(--text-muted); text-transform: uppercase; }
.cl-tpl-rows { flex: 1; min-height: 0; overflow: auto; }
.cl-tpl-row { border-bottom: 1px solid var(--line-hairline); }
.cl-tpl-row.is-drag { background: var(--surface-accent-soft); }
.cl-tpl-sec { background: none; border: 0; padding: 0; text-align: left; font-size: 11px; font-weight: 700; color: var(--text-accent); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cl-tpl-name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cl-tpl-label { background: none; border: 0; padding: 0; text-align: left; font-size: 13px; color: var(--text-strong); cursor: text; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.cl-pill { min-width: 26px; height: 24px; padding: 0 6px; border-radius: var(--radius-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; font-weight: 700; cursor: pointer; border: 1px solid var(--line-hairline); background: var(--surface-sunken); color: var(--text-faint); }
.cl-pill.is-on { background: var(--surface-accent); color: #fff; border-color: transparent; }
.cl-pill:disabled { opacity: .35; cursor: default; }
.cl-stepper { display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.cl-stepper .cl-mono { min-width: 12px; text-align: center; font-size: 12px; font-weight: 700; }
.cl-tpl-tools { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.cl-tpl-tools .cl-link { color: var(--text-faint); font-size: 13px; }
.cl-grab { color: var(--text-faint); cursor: grab; font-size: 13px; }
.cl-editor-foot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-top: 1px solid var(--line-hairline); flex-wrap: wrap; }
.cl-editor-actions { display: flex; gap: 8px; }
.cl-preview-body { border: 1px solid var(--line-hairline); border-radius: var(--radius-3); background: var(--surface-sunken); padding: 10px; display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow-y: auto; }
.cl-preview-sec { display: flex; flex-direction: column; gap: 5px; }
.cl-preview-item { display: flex; align-items: center; gap: 6px; padding: 6px 8px; background: var(--surface-card); border: 1px solid var(--line-hairline); border-radius: var(--radius-2); font-size: 12px; color: var(--text-body); }
.cl-preview-box { width: 14px; height: 14px; border-radius: var(--radius-1); border: 1px solid var(--line-strong); flex: 0 0 auto; }
.cl-preview-chips { margin-left: auto; display: flex; gap: 4px; }
.cl-preview-chips .cl-chip { font-size: 10px; padding: 2px 5px; }

/* 반응형 */
@media (max-width: 1100px) {
  .cl-grid--admin, .cl-grid--template { grid-template-columns: 1fr; }
  .cl-metric { flex-basis: 116px; }
  .cl-metric--wide { flex-basis: 172px; }
  .cl-col--side { position: static; }
}
@media (max-width: 768px), (max-height: 540px) and (pointer: coarse) {
  /* 좌우로 빼내는 마진은 바깥 여백이 정확히 그만큼일 때만 맞는다. 좁은 화면에서는
     어긋나 화면이 가로로 밀렸다. 가장자리까지 끄는 것보다 안 밀리는 게 낫다. */
  .cl-root { margin: -8px 0 0; }
  .cl-bar, .cl-tabs, .cl-grid, .cl-bottom { padding-left: 14px; padding-right: 14px; }
  .cl-bar { flex-wrap: wrap; }
  .cl-bar-right { width: 100%; margin-left: 0; justify-content: space-between; }
  .cl-h1 { font-size: 21px; }
  .cl-grid--trainer { grid-template-columns: 1fr; gap: 12px; }
  .cl-metric-grid { flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0 -16px; padding: 0 16px 4px; }
  .cl-metric { flex: 0 0 132px; }
  .cl-metric--wide { flex: 0 0 176px; }
  .cl-kpis { width: 100%; margin-left: 0; justify-content: flex-start; gap: 18px; }
  .cl-item { min-height: 56px; }
  .cl-check { width: 26px; height: 26px; }
  .cl-cell { width: 56px; height: 36px; }
  .cl-table th, .cl-table td { padding: 6px; }
  .cl-bottom { gap: 10px; }
  .cl-progress .cl-track { min-width: 80px; }
  .cl-bottom-msg { width: 100%; order: 3; }
  .cl-bottom-action .btn { min-height: 48px; padding: 0 22px; }
  .cl-modal--wide { width: calc(100vw - 20px); max-height: calc(100dvh - 20px); padding: 18px; }
  .cl-modal--wide .cl-modal-title { font-size: 19px; }
  .cl-detail-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cl-detail-table-wrap { max-height: 55vh; }
  .cl-tpl-head { display: none; }
  .cl-tpl-row { grid-template-columns: 1fr 1fr; }
}

/* 브랜드·슈퍼: 전 지점 KPI */
.cl-kpi-grid { flex: 0 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; padding: 16px 28px 0; }
.cl-kpi-card { background: var(--surface-card); border: 1px solid var(--line-hairline); border-radius: var(--radius-3); box-shadow: var(--elev-1); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.cl-kpi-card .cl-kpi-value { font-size: 21px; }
@media (max-width: 768px), (max-height: 540px) and (pointer: coarse) { .cl-kpi-grid { padding: 12px 14px 0; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
