/* 콘솔 공용 컴포넌트(운영, 크리에이터). R2 시각 체계: 흰 바탕, 회색 단계, 강조색 주황 하나, 16/12/24 모서리, 그림자는 카드 hover만.
 * 층: styles/core(변수, 글꼴, 기본) → components(이 파일, 컴포넌트) → app-shell → role-*. 평면 클래스 + data-/aria- 상태.
 * 값은 styles/core/ec-tokens.css의 [data-surface="console"] 변수만 읽는다(css-core S2에서 옛 0절 콘솔 토큰을 코어로 옮겼다). 이 파일은 변수를 정의하지 않는다. */
/* ===== 1. 기본 요소 ===== */
/* 리셋, 포커스 고리, [hidden], .sr-only, 한국어 줄바꿈은 코어(ec-base.css)가 정의한다. 여기는 콘솔 본문 규격만. */
@layer components {
html { min-width: 320px; background: var(--ec-bg); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--sp-11) + var(--sp-5)); }
body {
  min-width: 320px;
  min-height: 100vh;
  font-size: var(--t-body-size);
  font-weight: var(--t-body-weight);
  line-height: var(--t-body-leading);
  letter-spacing: var(--t-body-tracking);
  -webkit-font-smoothing: antialiased;
}
/* 일본어는 구 단위로 줄을 바꾼다. 코어가 :lang(ja) 모든 요소에 word-break: normal을 두므로 같은 선택 범위에서 콘솔만 auto-phrase로 둔다. */
[data-surface="console"] :lang(ja) { word-break: auto-phrase; }
:where(h1, h2, h3, .now-title, .object-title, .dialog-title) { text-wrap: balance; }
:where(.now-desc, .row-sub, .notice, p.empty, .help p) { text-wrap: pretty; }
a, button, summary, label, [role="tab"] { -webkit-tap-highlight-color: transparent; }
:where(a, button, summary, [role="tab"], input, select, textarea) { touch-action: manipulation; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-size: var(--t-body-size); font-weight: 600; line-height: var(--t-body-leading); letter-spacing: var(--t-body-tracking); }
p, figure, blockquote, dl, dd, pre { margin: 0; }
:where(ul, ol):where(.list, .stepper) { margin: 0; }
a { color: inherit; text-decoration: none; }
:where(button) { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: inherit; cursor: pointer; }
img { max-width: 100%; }
.page { min-width: 0; }
.page > * + * { margin-top: var(--section-gap); }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-8); min-width: 0; }
/* ===== 2. 버튼: 기본은 선 버튼, 주 버튼은 지금 할 행동 하나(진한 주황 면 + 흰 글자) =====
 * 위계(콘솔 버튼 API, 클래스 이름이 곧 계약): 주 .btn.primary(영역마다 하나, --ec-action 면) / 보조 .btn(기본 선 버튼) / 3차 .btn-ghost(면 없는 조용한 버튼) 또는 .btn-link(문장 안 글자 버튼)
 * / 위험 .btn.btn-danger(되돌릴 수 없는 행동, 확인 대화상자와 함께). 크기는 높이 두 단계(기본 44, .btn-sm 36)뿐이고 글자 크기와 무게는 모든 버튼이 같다(--btn-font-size, --btn-font-weight):
 * 주 버튼은 면 색으로만, 위험 버튼은 빨간 글자로만 구분한다. 테두리는 크기와 상관없이 같은 색. 상태는 :disabled(못 누름)와 [aria-busy="true"](처리 중, 누름 막음 + 돌아가는 표시).
 * 처리 중 표시는 ctx.withBusy(button, task)가 붙였다 뗀다(ops-console/ui/components.js). */
.btn, .btn-line, .cc-button, .ec-consult button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  min-height: var(--btn-height);
  padding: 0 var(--sp-7);
  border: 1px solid var(--ec-text);
  border-radius: var(--ctl-radius);
  background: var(--ec-surface);
  color: var(--ec-text);
  font: inherit;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--mo-1), border-color var(--mo-1), color var(--mo-1);
}
.btn:hover:not(:disabled), .btn-line:hover:not(:disabled), .cc-button:hover:not(:disabled), .ec-consult button:hover:not(:disabled) { background: var(--ec-surface-hover); }
.btn:active:not(:disabled), .btn-line:active:not(:disabled), .cc-button:active:not(:disabled), .ec-consult button:active:not(:disabled) { background: var(--ec-surface-active); }
.btn.primary, .btn-primary, .cc-button.cc-primary, .ec-consult .ec-primary { background: var(--ec-action); border-color: var(--ec-action); color: var(--ec-on-action); } /* 흰 글자 on #cf3600은 5.02:1이라 16px로 AA를 지킨다 */
.btn.primary:hover:not(:disabled), .btn-primary:hover:not(:disabled), .cc-button.cc-primary:hover:not(:disabled), .ec-consult .ec-primary:hover:not(:disabled) { background: var(--ec-action-hover); border-color: var(--ec-action-hover); }
.btn.primary:active:not(:disabled), .btn-primary:active:not(:disabled), .cc-button.cc-primary:active:not(:disabled), .ec-consult .ec-primary:active:not(:disabled) { background: var(--ec-action-active); border-color: var(--ec-action-active); }
.btn-ghost { border-color: transparent; background: transparent; color: var(--ec-text-muted); }
.btn-ghost:hover:not(:disabled) { background: var(--ec-surface-hover); color: var(--ec-text); }
.btn-ghost:active:not(:disabled) { background: var(--ec-surface-active); }
/* 위험 행동 단추: 흰 면 + 빨간 테두리와 빨간 글자(이중선 없음). 주 단추(주황 면)와 겹치지 않는다. hover는 .btn 규칙의 연회색 면 */
.btn-danger, .btn.danger { border-color: var(--ec-danger-ink); color: var(--ec-danger-ink); }
.btn-sm, .btn.sm { min-height: var(--btn-height-sm); padding: 0 var(--sp-6); }
/* 아이콘 버튼: 36 원, 아이콘 20 */
.btn-icon, .ec-consult .ec-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ec-text-muted);
  cursor: pointer;
  transition: background-color var(--mo-1), color var(--mo-1);
}
.btn-icon:hover:not(:disabled), .ec-consult .ec-x:hover:not(:disabled) { background: var(--ec-surface-hover); color: var(--ec-text); }
.btn-icon:active:not(:disabled), .ec-consult .ec-x:active:not(:disabled) { background: var(--ec-surface-active); }
.btn-icon svg { width: 20px; height: 20px; flex: none; }
/* 글자 버튼과 이동 링크: 밑줄 글자 하나(버튼 모양은 행동에만). 위험 행동은 빨간 글자 */
.btn-link { display: inline; min-height: 0; padding: var(--sp-2) 0; border: 0; background: none; color: var(--ec-text); font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--ec-line-strong); text-underline-offset: 4px; cursor: pointer; }
.btn-link:is(:hover, :focus-visible) { text-decoration-color: currentColor; }
.btn-link.is-danger { color: var(--ec-danger-ink); }
.btn:disabled, .btn[aria-disabled="true"], .btn-line:disabled, .btn-primary:disabled, .btn-danger:disabled, .btn-ghost:disabled, .btn-icon:disabled, .cc-button:disabled, .ec-consult button:disabled {
  border-color: var(--ec-line);
  background: transparent;
  color: var(--ec-text-disabled);
  cursor: not-allowed;
}
/* 비활성 주 버튼: 선만 남는 비활성 보조 버튼과 달리 회색 면으로 남아 어느 쪽이 주 행동인지 보인다. 연한 주황(분홍) 면은 오류처럼 읽혀 쓰지 않는다 */
.btn.primary:is(:disabled, [aria-disabled="true"]), .btn-primary:disabled, .cc-button.cc-primary:disabled, .ec-consult .ec-primary:disabled { border-color: var(--ec-surface-active); background: var(--ec-surface-active); color: var(--ec-text-disabled); }
.btn-link:disabled { color: var(--ec-text-disabled); text-decoration: none; cursor: not-allowed; }
/* 매장 링크 묶음(S1): 아이콘과 이름의 글자 링크 여러 개(Google 지도, 타베로그, Instagram, 공식 사이트). 새 탭으로 열리고 .btn-link 모양을 그대로 쓴다. 슬롯은 상자를 만들지 않는다. */
.store-links-slot { display: contents; }
.store-links { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); }
.store-link { display: inline-flex; align-items: center; gap: var(--sp-2); }
.store-link-icon { flex: none; width: 16px; height: 16px; }
/* 처리 중: 글자는 그대로 두고 앞에 돌아가는 고리를 붙인다. 누름은 막지만 포커스는 유지한다(disabled와 다름) */
.btn[aria-busy="true"], .btn-line[aria-busy="true"], .btn-icon[aria-busy="true"] { pointer-events: none; cursor: progress; }
.btn[aria-busy="true"]::before, .btn-line[aria-busy="true"]::before { content: ""; flex: none; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: mk-spin 0.8s linear infinite; }
/* ===== 3. 입력: .input과 콘솔 안 맨 입력 요소(:where, 명시도 0)가 같은 모양 ===== */
/* 폼 조립 규칙(클래스 이름이 계약): form.form > .field(라벨, 입력, 도움말, 오류 순) 하나씩 + .form-row(칸 한 줄, 아래 맞춤) + .form-actions(버튼 줄).
 * 카드 본문은 .stack(섹션 설명 .section-desc, 폼, 알림을 --sp-8 간격으로). 간격은 부모 한 곳이 소유한다: .stack이 덩어리 사이, .form이 칸과 버튼 사이(--sp-6), .field가 라벨과 입력 사이.
 * 자식은 자기 위아래 여백을 두지 않는다. .toolbar는 목록 위 필터 전용이고 폼의 칸 줄은 .form-row다. */
.field { display: grid; gap: var(--sp-3); min-width: 0; }
.form { display: grid; gap: var(--sp-6); min-width: 0; max-width: 560px; }
.form:has(> .form-row) { max-width: var(--form-max); }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--form-col)), 1fr)); gap: var(--sp-6); align-items: end; min-width: 0; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); min-width: 0; }
.section-desc { color: var(--ec-text-muted); font-size: var(--t-label-size); line-height: 1.5; text-wrap: pretty; }
fieldset.field legend { padding: 0; }
.field-label { display: block; color: var(--ec-text); font-size: var(--t-label-size); font-weight: 600; line-height: var(--t-label-leading); }
.field-hint { color: var(--ec-text-muted); font-size: var(--t-label-size); }
.field-error { display: flex; align-items: flex-start; gap: var(--sp-3); color: var(--ec-danger-text); font-size: var(--t-label-size); line-height: 1.4; }
.field-error::before { content: ""; flex: none; width: 16px; height: 16px; background: var(--dot-danger); mask: var(--ec-icon-alert) center / contain no-repeat; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { min-height: var(--field-height); border-radius: var(--ctl-radius); }
.input, :where(body[data-console]) :where(input:not([type="checkbox"], [type="radio"], [type="range"], [type="file"], [type="hidden"], [type="color"], [type="submit"], [type="button"], [type="reset"], [type="image"]), select, textarea) {
  min-width: 0;
  max-width: 100%;
  min-height: var(--field-height);
  padding: 0 var(--sp-6);
  border: 1px solid var(--ec-field-line);
  border-radius: var(--ctl-radius);
  background: var(--ec-field-bg);
  color: var(--ec-text);
  font: inherit;
  font-size: var(--t-body-size);
  line-height: 1.4;
  transition: border-color var(--mo-1);
}
.input { width: 100%; }
/* 날짜 칸은 모두 .ec-date(ec-date.js): 숫자 폭을 맞추고 날짜 글자가 잘리지 않을 최소 폭을 둔다 */
.ec-date { min-width: 12ch; font-variant-numeric: tabular-nums; }
.ec-date-help { display: block; }
.ec-date-help:empty { display: none; }
.input:hover, :where(body[data-console]) :where(input, select, textarea):hover { border-color: var(--ec-field-line-hover); }
.input:disabled, :where(body[data-console]) :where(input, select, textarea):disabled { color: var(--ec-text-disabled); cursor: not-allowed; }
/* 포커스는 ec-base 한 규칙(검정 2px 고리)뿐이고 입력 칸은 테두리를 바꾸지 않는다. 오류 칸은 위험 색 테두리 하나, 초점이 오면 그 고리만 위험 색으로 바꿔 이중선을 만들지 않는다 */
.input[aria-invalid="true"], .input.is-invalid, :where(body[data-console]) :where(input, select, textarea)[aria-invalid="true"], :where(body[data-console]) :where(input, select, textarea).is-invalid { border-color: var(--dot-danger); }
.input:is([aria-invalid="true"], .is-invalid):focus-visible, :where(body[data-console]) :where(input, select, textarea):is([aria-invalid="true"], .is-invalid):focus-visible { outline-color: var(--dot-danger); }
/* 검색칸 지우기 단추: 브라우저 기본 파란 X 대신 토큰 색 아이콘 */
:where(body[data-console]) input[type="search"]::-webkit-search-cancel-button { width: 16px; height: 16px; appearance: none; background: var(--ec-icon); mask: var(--ec-icon-close) center / contain no-repeat; cursor: pointer; }
.input::placeholder, :where(body[data-console]) :where(input, textarea)::placeholder { color: var(--ec-placeholder); opacity: 1; }
textarea.input, :where(body[data-console]) :where(textarea) { min-height: 112px; padding: var(--sp-5) var(--sp-6); line-height: var(--t-body-leading); resize: vertical; }
/* select: 네이티브 화살표 대신 토큰 색 삼각형 */
select.input, :where(body[data-console]) :where(select:not([multiple], [size])) {
  padding-right: var(--sp-10);
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--ec-icon) 50%), linear-gradient(135deg, var(--ec-icon) 50%, transparent 50%);
  background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
:where(body[data-console]) :where(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; margin: 0; }
body[data-console] :is(input[type="checkbox"], input[type="radio"], progress, input[type="range"]) { accent-color: var(--ec-action); }
body[data-console] [role="switch"][aria-checked="true"] { background: var(--ec-action); }
body[data-console] progress { height: 8px; border: 0; border-radius: 4px; background: var(--ec-line); }
body[data-console] progress::-webkit-progress-bar { border-radius: 4px; background: var(--ec-line); }
body[data-console] progress::-webkit-progress-value { border-radius: 4px; background: var(--ec-action); }
body[data-console] progress::-moz-progress-bar { border-radius: 4px; background: var(--ec-action); }
.check { display: flex; align-items: flex-start; gap: var(--sp-4); font-size: var(--t-body-size); }
.check input { margin-top: var(--sp-2); flex: none; }
.toolbar .check { align-items: center; }
.toolbar .check input { margin-top: 0; }
/* 체크 목록(동의 항목 묶음): 항목 사이는 --sp-4, 글자 간격은 기본값. 항목 하나가 한 행(투명 테두리)이라 오류는 그 행의 위험 색 테두리로만 표시한다(항목 사이에 문장을 끼우지 않는다).
 * 요약 한 줄(.field-error)은 제출 버튼 바로 위 한 곳에 둔다. 맨 위 .check-all은 항목 전체를 켜고 끄는 전체 동의 행이다. */
.check-group { display: grid; gap: var(--sp-5); min-width: 0; }
.check-list { display: grid; gap: var(--sp-4); min-width: 0; letter-spacing: normal; }
.check-list > .check { padding: var(--sp-3) var(--sp-5); border: 1px solid transparent; border-radius: var(--ctl-radius); }
.check-list > .check-all { border-color: var(--ec-line); font-weight: 600; }
.check-list > .check:has(> input[aria-invalid="true"]) { border-color: var(--dot-danger); }
/* ===== 4. 상태 칩: 회색 알약 + 상태 표식(결정 D1). 완료 = 초록 점, 내 차례 = 주황 빈 고리, 진행 = 먹 점, 위험 = 빨강 점, 해당 없음 = 회색 점 ===== */
.status, .badge, .ec-consult .ec-status-badge {
  --status-dot: var(--dot-neutral);
  display: inline-flex;
  align-items: center;
  gap: var(--sp-4);
  min-height: 28px;
  padding: 2px var(--sp-5);
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ec-surface-active);
  color: var(--ec-text);
  font-size: var(--t-label-size);
  font-weight: 600;
  line-height: var(--t-label-leading);
  white-space: nowrap;
}
.status::before, .badge::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--status-dot); }
.status[data-tone="neutral"] { --status-dot: var(--dot-neutral); }
.status[data-tone="info"] { --status-dot: var(--dot-info); }
.status[data-tone="success"], .badge.green { --status-dot: var(--dot-success); }
.status[data-tone="danger"] { --status-dot: var(--dot-danger); }
.status[data-tone="accent"], .status[data-tone="mine"], .status[data-tone="warning"], .badge.warn { --status-dot: var(--dot-warning); }
.status[data-tone="accent"]::before, .status[data-tone="mine"]::before, .status[data-tone="warning"]::before, .badge.warn::before { box-sizing: border-box; border: 2px solid var(--status-dot); background: transparent; }
/* 선택된 행의 칩은 행 바탕과 같은 회색이라 사라지므로 흰 면으로 둔다 */
:is(.row, tr):is(.is-active, [aria-current="true"], [aria-current="page"], [aria-selected="true"]) .status { background: var(--ec-surface); }
/* ===== 5. 칩과 툴바: 선택된 칩은 먹색 면(결정 D2). 주황 면은 주 버튼 하나만 쓴다 ===== */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  height: 36px;
  padding: 0 var(--sp-6);
  border: 1px solid var(--ec-line);
  border-radius: var(--r-pill);
  background: var(--ec-surface);
  color: var(--ec-text);
  font-size: var(--t-label-size);
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--mo-1), border-color var(--mo-1), color var(--mo-1);
}
.chip:hover { border-color: var(--ec-text); }
.chip:active { background: var(--ec-surface-active); }
.chip[aria-pressed="true"], .chip[aria-current="true"], .chip[aria-current="page"], .chip.is-active { border-color: var(--ec-ink); background: var(--ec-ink); color: var(--ec-on-ink); font-weight: 700; }
.chip-count { color: var(--ec-text-muted); font-size: var(--t-label-size); font-weight: 500; font-variant-numeric: tabular-nums; }
.chip:is([aria-pressed="true"], [aria-current], .is-active) .chip-count { color: inherit; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.toolbar:last-child, .stack > .toolbar { margin-bottom: 0; }
.toolbar:empty { display: none; }
.toolbar:has(> .field) { align-items: end; }
.toolbar > :where(input, .input) { width: 240px; max-width: 100%; }
.toolbar > :where(select) { width: auto; }
.toolbar-spacer { flex: 1 1 0; }
/* ===== 6. 탭 2단: 위 단계(.tabs > .tab)는 굵은 글자 + 검정 밑줄, 하위 단계(.tabs-sub > .tab)는 같은 규칙의 작은 크기. 하위 화면 전환은 칩이 아니라 .tab이고 칩은 필터만 한다 ===== */
.tabs { display: flex; gap: var(--sp-8); overflow-x: auto; border-bottom: 1px solid var(--ec-line); }
.tab { display: inline-flex; flex: none; align-items: center; height: 44px; padding: 0; border: 0; background: none; color: var(--ec-text-muted); font-size: var(--t-body-size); font-weight: 500; white-space: nowrap; cursor: pointer; transition: color var(--mo-1); }
.tab:hover, .tab:active { color: var(--ec-text); }
.tab:focus-visible { outline-offset: -2px; }
.tab:is([aria-selected="true"], [aria-pressed="true"], [aria-current="true"], [aria-current="page"], .is-active) { color: var(--ec-text); font-weight: 700; box-shadow: inset 0 -2px 0 var(--ec-text); }
.tabs-sub { gap: var(--sp-6); border-bottom: 0; }
.tabs-sub .tab { height: var(--btn-height-sm); font-size: var(--t-label-size); }
body[data-console] .tab { min-width: 44px; padding-inline: var(--sp-4); justify-content: center; }
/* 44px 눌림 영역 안에서 입력칸은 글자 첫 줄에 맞춘다: 한 줄이면 위아래 여백이 가운데로 맞추고, 여러 줄이면 입력칸이 첫 줄 옆에 남는다(전에는 가운데 정렬이라 세 줄 문장에서 입력칸이 둘째 줄 옆에 떴다). */
body[data-console] .check { min-height: 44px; min-width: 44px; align-items: flex-start; padding-block: max(0px, calc((44px - 1lh) / 2)); }
body[data-console] .btn { min-width: 44px; }
body[data-console="admin"] .title-link { min-height: 44px; }
/* 탭 줄이 가로로 넘치면 넘치는 쪽 끝이 흐려져 이어진다: styles/components/ec-scroll.css(ec-scroll.js가 위치를 알린다). 이 줄은 가로 배치와 넘침 허용만 정한다. */
.tab-count { margin-left: var(--sp-3); color: var(--ec-text-muted); font-size: var(--t-label-size); font-weight: 700; font-variant-numeric: tabular-nums; }
.tab:is([aria-selected="true"], [aria-pressed="true"], [aria-current="true"], [aria-current="page"], .is-active) .tab-count { color: var(--ec-text); }
/* ===== 7. 섹션: 흰 카드(모서리 16, 선 1, 안쪽 24). 첫 줄은 머리(제목, 건수, 조작). 안의 목록과 표는 가장자리까지 ===== */
.section { min-width: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--sp-4); margin-bottom: var(--sp-6); }
body[data-console] .section { padding: var(--card-pad-y) var(--card-pad-x); border: 1px solid var(--ec-line); border-radius: var(--r-4); background: var(--ec-surface); }
body[data-console] :is(.section, dialog, .ec-sidepanel, .ops-step, .ops-system-section, .creator-campaign-canvas, .now, .slip) .section { padding: 0; border: 0; border-radius: 0; background: none; }
body[data-console] :is(.section-title, .section > h2) { min-width: 0; overflow-wrap: anywhere; font-size: var(--t-title-2-size); font-weight: 700; letter-spacing: var(--t-title-2-tracking); line-height: var(--t-title-2-leading); }
body[data-console] .section > h2 { margin-bottom: var(--sp-6); }
.section-count { color: var(--ec-text); font-size: var(--t-title-2-size); font-weight: 700; line-height: var(--t-title-2-leading); font-variant-numeric: tabular-nums; }
.section-actions { display: flex; align-items: center; gap: var(--sp-4); margin-left: auto; }
/* 표가 카드의 첫 요소면 표 머리와 첫 행의 안쪽 여백이 카드 위 여백을 대신한다(빈 띠 없음) */
body[data-console] .section:has(> .table-wrap:first-child), body[data-console] .section:has(> .toolbar:empty:first-child + .table-wrap), body[data-console] .section:has(> .stack:first-child > .table-wrap:first-child) { padding-top: 0; }
/* 카드 안의 목록, 표, 정의 목록: 박스 안 박스 없이 카드 가장자리까지 */
body[data-console] .section > :is(.list, .table-wrap, .stack > .list, dl.kv) { margin-inline: calc(-1 * var(--card-pad-x)); }
body[data-console] .section > :is(.list, .stack > .list) { padding-inline: 0; }
body[data-console] .section > dl.kv { padding-inline: var(--card-pad-x); }
body[data-console] .section > .stack > .list { margin-inline: calc(-1 * var(--card-pad-x)); }
/* ===== 8. 목록 행: 선 하나로 나뉜 행, 앞자리는 .row-thumb(사진) 또는 .row-icon ===== */
.list { padding: 0; list-style: none; }
.table-wrap { min-width: 0; }
.store-name, .table .title-link { overflow-wrap: anywhere; min-width: 0; }
body[data-console] .table-wrap:not(.section *) { overflow: clip; border: 1px solid var(--ec-line); border-radius: var(--r-4); background: var(--ec-surface); }
.row { position: relative; display: flex; align-items: center; gap: var(--sp-6); min-height: 60px; padding: var(--sp-5) 0; color: inherit; }
.section > .list > li > .row, .section > .list > .row, .section > .stack > .list > li > .row, .section > .stack > .list > .row { padding: var(--sp-5) var(--card-pad-x); }
.list > li + li > .row, .list > .row + .row { border-top: 1px solid var(--ec-line); }
a.row:active { background: var(--ec-surface-active); }
@media (hover: hover) {
  a.row:hover { background: var(--ec-surface-hover); }
}
a.row:focus-visible { outline-offset: -2px; border-radius: var(--r-3); }
.row-main { flex: 1 1 0; min-width: 0; }
.row-title { display: -webkit-box; overflow: hidden; font-size: var(--t-title-3-size); font-weight: 700; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.row-sub { margin-top: var(--sp-1); color: var(--ec-text-muted); font-size: var(--t-label-size); }
.row-meta { flex: none; color: var(--ec-text-muted); font-size: var(--t-label-size); white-space: nowrap; }
.row-action { flex: none; }
.row-go, .row-go svg { flex: none; width: 18px; height: 18px; color: var(--ec-icon); }
/* 행 끝 행동은 두 종류뿐이다: 이동 화살표(.row-go, 행 전체가 링크) 또는 작은 보조 버튼 하나 + 「…」 메뉴(.row-end). 한 행에 둘을 섞지 않는다. */
.row-end { display: inline-flex; flex: none; align-items: center; justify-content: flex-end; gap: var(--sp-4); }
.row-end > .btn:not(.btn-icon) { min-height: var(--btn-height-sm); }

.row.is-active, .row[aria-current="true"], .row[aria-current="page"], .row[aria-selected="true"], .row[aria-pressed="true"] { background: var(--ec-surface-active); }
.list-compact .row { min-height: 48px; padding-block: var(--sp-4); gap: var(--sp-5); }
.list-compact .row-title { -webkit-line-clamp: 1; line-clamp: 1; color: var(--ec-text-muted); }
.list-compact .row:is(.is-active, [aria-current="true"], [aria-current="page"], [aria-selected="true"]) .row-title { color: var(--ec-text); }
@media (max-width: 639px) {
  .row { flex-wrap: wrap; row-gap: var(--sp-4); }
  .row-go { order: 1; }
  .row-meta, .row-action { order: 2; flex: 0 0 calc(100% - var(--row-indent, 0px)); margin-left: var(--row-indent, 0px); }
  .row-meta { white-space: normal; }
  .row:has(> :where(.row-thumb, .row-icon)) { --row-indent: calc(var(--row-lead) + var(--sp-6)); }
}
.row-thumb { display: block; flex: none; width: var(--row-lead); height: var(--row-lead); border-radius: var(--r-3); background: var(--ec-surface-active); object-fit: cover; }
.row-icon { display: grid; flex: none; place-items: center; width: var(--row-lead); height: var(--row-lead); border-radius: var(--r-3); background: var(--ec-surface-active); color: var(--ec-icon); }
.row-icon svg { width: 22px; height: 22px; }
/* ===== 9. 접힘 2종: 카드 안 접힘(클래스 없는 summary, 명시도 0)은 16px 굵은 글자 + 왼쪽 셰브런 16px. 카드 접힘(.ops-step, .ops-system-section)은 role-ops.css가 제목 22px + 오른쪽 셰브런으로 같은 셰브런을 쓴다 ===== */
:where(body[data-console] details:not(.shell-menu, .shell-tab-more) > summary:not([class])) { display: flex; align-items: center; gap: var(--sp-3); min-height: 40px; color: var(--ec-text); font-size: var(--t-title-3-size); font-weight: 700; list-style: none; cursor: pointer; }
:where(body[data-console] details:not(.shell-menu, .shell-tab-more) > summary:not([class]))::-webkit-details-marker { display: none; }
:where(body[data-console] details:not(.shell-menu, .shell-tab-more) > summary:not([class]))::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask: var(--ec-icon-chevron) center / contain no-repeat;
  transition: transform var(--mo-1);
}
:where(body[data-console] details[open]:not(.shell-menu, .shell-tab-more) > summary:not([class])) { margin-bottom: var(--sp-4); }
:where(body[data-console] details[open]:not(.shell-menu, .shell-tab-more) > summary:not([class]))::before { transform: rotate(90deg); }
/* ===== 10. 표(운영의 촘촘한 표): 행 44, 가벼운 고정 머리(회색 글자 + 아래 선), 행마다 1px 선. 390에서는 행마다 카드 ===== */
.table { width: 100%; border-collapse: separate; border-spacing: 0; }
.table th { position: sticky; top: var(--shell-top-h, 56px); z-index: 2; padding: 10px var(--sp-5); border-bottom: 1px solid var(--ec-line); background: var(--ec-surface); color: var(--ec-text-muted); font-size: var(--t-label-size); font-weight: 600; text-align: left; white-space: nowrap; }
.table th :is(button, a) { color: inherit; }
/* 표가 스스로 스크롤하는 상자(가로 스크롤 영역) 안에 있으면 머리의 고정 위치는 쪽 상단 막대 높이가 아니라 상자 맨 위다(아니면 머리가 그만큼 내려와 첫 행을 덮는다). */
:is(.ec-scroll--x, .ec-table-wrap, [data-scroll-region]) .table th { top: 0; }
.table td { padding: 10px var(--sp-5); border-bottom: 1px solid var(--ec-line); font-size: var(--t-body-size); vertical-align: middle; line-height: 1.5; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody + tbody > tr:first-child > td { border-top: 1px solid var(--ec-line); }
.table td:first-child { font-weight: 600; }
.table td, .kv dd { font-variant-numeric: tabular-nums; }
.table th:first-child, .table td:first-child { padding-left: var(--card-pad-x); }
.table th:last-child, .table td:last-child { padding-right: var(--card-pad-x); }
.cell-sub { display: block; color: var(--ec-text-muted); font-size: var(--t-label-size); font-weight: 400; }
/* 식별자 글자(마스킹한 이메일, 핸들): 줄을 바꾸지 않는다. 칸이 좁으면 말줄임으로 자르고 전문은 title에 둔다. ops-console identHtml()이 붙인다. */
.ec-ident { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.table .cell-action { width: 1%; text-align: right; white-space: nowrap; }
.table tr.is-link { cursor: pointer; }
@media (min-width: 640px) and (hover: hover) {
  .table tr.is-link:hover td { background: var(--ec-surface-hover); }
}
@media (max-width: 639px) {
  .table thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); }
  .table, .table tbody { display: block; }
  .table tr { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); padding: var(--sp-5) var(--card-pad-x); }
  .table tbody tr + tr { border-top: 1px solid var(--ec-line); }
  .table tbody + tbody > tr:first-child > td { border-top: 0; }
  .table td { display: block; min-width: 0; padding: 0; border: 0; color: var(--ec-text-muted); font-size: var(--t-label-size); }
  .table th:first-child, .table td:first-child, .table th:last-child, .table td:last-child { padding-inline: 0; }
  .table td:first-child { flex: 0 0 100%; color: var(--ec-text); font-size: var(--t-body-size); font-weight: 700; }
  .table td:empty { display: none; }
  .table .cell-action { flex: 0 0 100%; width: auto; margin-top: var(--sp-3); text-align: left; }
  .table tbody + tbody { border-top: 1px solid var(--ec-line); }
}
/* 행 전체가 행동: 버튼은 화살표 하나, 칸 덮개(td::after)가 행을 눌리게 한다 */
tr[data-row-link] { position: relative; cursor: pointer; }
tr[data-row-link] > td.cell-action { position: static; }
tr[data-row-link] > td.cell-action::after { content: ""; position: absolute; inset: 0; }
tr[data-row-link] > td.cell-action > :is(button.btn, a.btn) {
  position: relative;
  display: inline-block;
  width: 44px;
  min-width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: transparent;
  text-indent: -9999px;
  white-space: nowrap;
  vertical-align: middle;
}
tr[data-row-link] > td.cell-action > :is(button.btn, a.btn)::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--ec-icon);
  border-right: 2px solid var(--ec-icon);
  transform: translate(-65%, -50%) rotate(45deg);
  transition: transform var(--mo-1), border-color var(--mo-1);
}
tr[data-row-link] > td.cell-action > :is(button.btn, a.btn):focus-visible { outline: 0; }
tr[data-row-link]:has(> td.cell-action > :is(button.btn, a.btn):focus-visible) > td.cell-action::after { outline: 2px solid var(--ec-focus); outline-offset: -2px; }
tr[data-row-link]:hover { background: var(--ec-surface-hover); }
tr[data-row-link]:hover > td.cell-action > :is(button.btn, a.btn)::before { transform: translate(-35%, -50%) rotate(45deg); }
body[data-console] tr[data-row-link]:is(:hover, :focus-within) > td.cell-action > :is(button.btn, a.btn)::before { border-color: var(--ec-text); }
tr[data-row-link]:active { background: var(--ec-surface-active); }
@media (hover: none) {
  tr[data-row-link]:hover { background: transparent; }
  tr[data-row-link]:hover > td.cell-action > :is(button.btn, a.btn)::before { transform: translate(-65%, -50%) rotate(45deg); }
}
@media (prefers-reduced-motion: reduce) {
  tr[data-row-link] > td.cell-action > :is(button.btn, a.btn)::before { transition: none; }
}
/* ===== 11. 정의 목록 ===== */
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kv > div { min-width: 0; padding: var(--sp-5) 0; border-top: 1px solid var(--ec-line); }
.kv > div:nth-child(-n+2) { border-top: 0; }
.kv > div:nth-child(odd) { padding-right: var(--sp-8); }
.kv > div:nth-child(even) { padding-left: var(--sp-8); }
.kv dt { color: var(--ec-text-muted); font-size: var(--t-label-size); }
.kv dd { margin: var(--sp-2) 0 0; font-size: var(--t-body-size); font-weight: 400; overflow-wrap: anywhere; }
@media (max-width: 639px) {
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv > div:nth-child(n) { padding-inline: 0; border-top: 1px solid var(--ec-line); }
  .kv > div:first-child { border-top: 0; }
}
/* ===== 12. 단계 표시: 지난 단계 검정, 현재 단계 주황, 앞 단계 회색 ===== */
.stepper { display: flex; align-items: flex-start; padding: 0; list-style: none; container-type: inline-size; }
.step { display: grid; flex: 1 1 0; grid-template-columns: auto minmax(0, 1fr); align-items: center; row-gap: var(--sp-4); min-width: 0; }
.step::after { content: ""; grid-column: 2; grid-row: 1; height: 2px; margin-inline: var(--sp-4); border-radius: 1px; background: var(--ec-line); }
.step.is-done::after { background: var(--ec-text); }
.step:last-child { flex: none; }
.step:last-child::after { display: none; }
.step-dot { grid-column: 1; grid-row: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--ec-surface); box-shadow: inset 0 0 0 2px var(--ec-line-strong); }
.step.is-current .step-dot { background: var(--ec-brand); box-shadow: 0 0 0 4px var(--ec-surface-active); }
.step.is-done .step-dot { background: var(--ec-text); box-shadow: none; }
.step-label { grid-column: 1 / -1; grid-row: 2; color: var(--ec-text-muted); font-size: var(--t-label-size); white-space: nowrap; }
.step.is-current .step-label { color: var(--ec-text); font-weight: 700; }
.stepper-summary { display: none; }
/* 단계선이 좁은 칸(목록의 한 줄, 한 칸 카드)에 들어가면 지금 단계 말고는 글자가 서로 겹친다. 칸 폭에 맞춰 지금 단계의 글자만 남긴다(점과 선은 그대로). 영어는 글자가 길어 더 넓은 칸까지 적용한다. */
@container (max-width: 300px) { .step:not(.is-current) .step-label { display: none; } }
@container (max-width: 560px) { :lang(en) .step:not(.is-current) .step-label { display: none; } }
/* 좁을 때 단계선은 점 대신 「2/6 선정」 한 줄만 보인다(끝난 건은 요약이 없으므로 점이 남는다). 단계 표현은 이 한 규칙이다 */
@media (max-width: 639px) {
  .step:not(.is-current) .step-label { display: none; }
  .stepper:has(+ .stepper-summary) { display: none; }
  .stepper-summary { display: block; margin: 0; color: var(--ec-text); font-size: var(--t-label-size); font-weight: 700; }
}
/* ===== 13. 면: 지금 할 행동(.now)과 전표(.slip)도 흰 카드 ===== */
.slip, .now { border: 1px solid var(--ec-line); border-radius: var(--r-4); background: var(--ec-surface); }
.now { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--sp-6) var(--sp-8); padding: var(--sp-8); }
.now:has(> .now-icon) { grid-template-columns: auto minmax(0, 1fr) auto; }
.now-icon { display: grid; align-self: start; place-items: center; width: 32px; height: 32px; color: var(--ec-text); }
.now-icon svg { width: 28px; height: 28px; }
.now-main { display: grid; gap: var(--sp-3); min-width: 0; }
.now-title { font-size: var(--t-title-2-size); font-weight: 700; line-height: var(--t-title-2-leading); letter-spacing: var(--t-title-2-tracking); }
.now-desc { color: var(--ec-text-muted); font-size: var(--t-body-size); }
.now-meta { margin-top: var(--sp-1); color: var(--ec-text-muted); font-size: var(--t-label-size); }
.now-action { display: flex; align-items: center; gap: var(--sp-4); }
.now-action .btn { min-width: 120px; }
@media (max-width: 639px) {
  .now, .now:has(> .now-icon) { grid-template-columns: minmax(0, 1fr); padding: var(--sp-7) var(--sp-6); }
  .now:has(> .now-icon) { grid-template-columns: auto minmax(0, 1fr); column-gap: var(--sp-5); }
  .now:has(> .now-icon) > .now-action { grid-column: 1 / -1; }
  .now-icon { width: 28px; height: 28px; }
  .now-icon svg { width: 26px; height: 26px; }
  .now-action .btn { flex: 1 1 auto; min-height: 48px; }
}
.slip-night { position: relative; }
.sig { display: inline-flex; align-items: center; gap: var(--sp-4); margin: 0; color: var(--ec-text); font-size: var(--t-label-size); font-weight: 700; line-height: 1.3; }
/* ===== 14. 안내 문장(ec-notice), 한 줄 알림: 톤별 면 + 16px 아이콘(왼쪽 색 줄 금지, 2026-11-20). 안내 = 회색 면 + 정보 아이콘, 성공 = 초록 면 + 체크, 주의 = 연한 주황 면 + 경고, 오류 = 연한 빨강 면 + 경고 ===== */
.notice, .creator-inline-alert, .slip-note, .condition-confirmation-panel :is(.cc-error, .cc-warning, .cc-notice, .cc-gate), .ec-consult :is(.ec-blocked, .ec-alert, .ec-error) {
  --note-bg: var(--ec-bg-subtle);
  --note-line: var(--dot-neutral);
  --note-icon: var(--ec-icon-info);
  position: relative;
  padding: var(--sp-5) var(--sp-6) var(--sp-5) var(--sp-10);
  border: 0;
  border-radius: var(--r-3);
  background: var(--note-bg);
  color: var(--ec-text);
  font-size: var(--t-body-size);
  line-height: 1.5;
}
:is(.notice, .creator-inline-alert, .slip-note, .condition-confirmation-panel :is(.cc-error, .cc-warning, .cc-notice, .cc-gate), .ec-consult :is(.ec-blocked, .ec-alert, .ec-error))::before { content: ""; position: absolute; top: calc(var(--sp-5) + 0.1em); left: var(--sp-6); width: 16px; height: 16px; background: var(--note-line); mask: var(--note-icon) center / contain no-repeat; }
.creator-inline-alert { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-4) var(--sp-6); }
.creator-inline-alert > div { flex: 1 1 280px; min-width: 0; }
.creator-inline-alert strong { font-weight: 700; }
.creator-inline-alert dl.kv { margin-top: var(--sp-4); }
:is(.notice, .creator-inline-alert) :is(p, dl) + :is(p, dl), :is(.notice, .creator-inline-alert) strong + :is(p, dl) { margin-top: var(--sp-2); }
.notice[data-tone="success"], .creator-inline-alert.is-success { --note-bg: var(--ec-success-bg); --note-line: var(--dot-success); --note-icon: var(--ec-icon-check); }
.notice:is([data-tone="accent"], [data-tone="warning"]), .creator-inline-alert, .creator-inline-alert.is-warning, .condition-confirmation-panel .cc-warning, .ec-consult :is(.ec-blocked, .ec-alert) { --note-bg: var(--ec-accent-bg); --note-line: var(--dot-warning); --note-icon: var(--ec-icon-alert); }
.notice[data-tone="danger"], .creator-inline-alert.is-error, .slip-note[data-tone="danger"], .condition-confirmation-panel .cc-error, .ec-consult .ec-error { --note-bg: var(--ec-danger-bg); --note-line: var(--dot-danger); --note-icon: var(--ec-icon-alert); }
.notice[data-tone="info"], .slip-note[data-tone="info"], .condition-confirmation-panel .cc-notice { --note-icon: var(--ec-icon-info); }
.slip-note { display: block; margin: 0; }
/* 빈 상태: 이유 한 줄. 불러오는 중(role=status)은 스피너 */
p.empty { padding: var(--sp-3) 0; color: var(--ec-text-muted); font-size: var(--t-body-size); }
p.empty[role="status"]::before { content: ""; display: block; width: 18px; height: 18px; margin-bottom: var(--sp-4); border: 2px solid var(--ec-line); border-top-color: var(--ec-brand); border-radius: 50%; animation: mk-spin 800ms linear infinite; }
@media (prefers-reduced-motion: reduce) {
  p.empty[role="status"]::before { animation: none; }
}
body[data-console] :not(.ops-section-empty) > p.empty > span:first-child:not(:only-child) { display: block; margin-bottom: var(--sp-2); color: var(--ec-text); font-size: var(--t-body-size); font-weight: 700; }
@keyframes mk-spin { to { transform: rotate(360deg); } }
/* ec-empty(빈 상태 하나, K5): 이유 한 문장 + 행동 하나(주 버튼). 필터가 원인이면 행동은 「필터 초기화」 하나만 둔다. 「오류가 아닙니다」 같은 부정 문구와 링크 모양 행동은 쓰지 않는다. 불러오는 중은 ec-empty가 아니라 p.empty[role=status] */
.ec-empty { display: grid; justify-items: start; gap: var(--sp-5); padding: var(--sp-6) 0; color: var(--ec-text-muted); font-size: var(--t-body-size); text-wrap: pretty; }
.ec-empty > :where(p) { margin: 0; }
:is(td, p).ec-empty { display: revert; }
/* ===== 15. 메타 줄, 뒤로 링크, 대상 머리 ===== */
.meta-line { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); color: var(--ec-text-muted); font-size: var(--t-label-size); }
.back-link { display: inline-flex; align-items: center; gap: var(--sp-3); color: var(--ec-text-muted); font-size: var(--t-label-size); font-weight: 600; }
.back-link::before { content: ""; width: 7px; height: 7px; margin-left: var(--sp-1); border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; transform: rotate(45deg); }
.back-link:is(:hover, :focus-visible) { color: var(--ec-text); }
.object-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--sp-8); align-items: start; min-width: 0; padding-bottom: var(--sp-6); border-bottom: 1px solid var(--ec-line); }
.object-head > :where(.object-eyebrow, .object-title, .object-state) { grid-column: 1; }
.object-eyebrow { color: var(--ec-text-muted); font-size: var(--t-label-size); }
.object-eyebrow + .object-title { margin-top: var(--sp-2); }
.object-title { margin-bottom: var(--sp-6); font-size: var(--t-title-2-size); font-weight: 700; line-height: var(--t-title-2-leading); letter-spacing: var(--t-title-2-tracking); }
.object-state { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-5); margin-top: var(--sp-4); font-size: var(--t-body-size); }
.object-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: var(--sp-4); grid-column: -2 / -1; grid-row: 1 / span 3; }
/* FIND-11-17a P3-A: a select (campaign switch) is as wide as its longest option; capped so a long name neither squeezes the title nor pushes the page sideways */
.object-actions > select { max-width: 20rem; }
@media (max-width: 639px) {
  .object-head { grid-template-columns: minmax(0, 1fr); }
  .object-head > :where(.object-eyebrow, .object-title, .object-state, .object-actions) { grid-column: 1; }
  .object-actions { grid-row: auto; justify-content: flex-start; margin-top: var(--sp-4); }
  .object-actions > select { max-width: 100%; }
}
/* ===== 16. 대화상자, 메뉴, 토스트 ===== */
/* ec-sheet(대화상자와 시트 하나): 머리(.dialog-head 또는 .dialog-title)와 하단 행동(.dialog-actions)은 고정, 본문만 스크롤한다. 행동은 주 버튼 1개 + 보조 1개(휴대폰은 한 줄에 보조 1 : 주 2),
 * 세 번째 행동이 있으면 주 버튼이 윗줄 전폭을 갖고 나머지는 아래 한 줄에 나눈다. 어떤 길이의 본문에서도 버튼이 화면 안에 있다(상단 고정 머리 + 하단 고정 행동 + 안전 영역). */
dialog, .dialog, .ec-dialog {
  width: min(560px, calc(100vw - 32px));
  max-width: calc(100vw - 32px);
  max-height: calc(100dvh - 32px);
  padding: var(--sheet-pad) var(--sheet-pad) var(--sheet-pad-b);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--ec-line);
  border-radius: var(--r-4);
  background: var(--ec-surface);
  color: var(--ec-text);
}
dialog::backdrop, .dialog-backdrop { background: var(--ec-scrim); }
/* 고정 머리와 고정 행동 줄이 있는 대화상자에서 입력칸에 초점이 가거나 오류로 그 칸으로 이동할 때 칸 아래의 오류 문장까지 행동 줄 뒤에 가려지지 않게, 스크롤 영역의 위아래 여백을 머리와 행동 줄 높이에 오류 한 줄을 더한 만큼 둔다(1280에서 마지막 칸의 오류 문장이 행동 줄 밑에 숨던 것). */
dialog:has(.dialog-actions), .dialog:has(.dialog-actions), .ec-dialog:has(.dialog-actions) { scroll-padding-block: var(--sp-11) calc(var(--btn-height) + var(--sheet-pad) + var(--sp-8) + 2 * var(--sp-12)); }
.dialog-title { margin: 0; font-size: var(--t-title-2-size); font-weight: 700; line-height: var(--t-title-2-leading); letter-spacing: var(--t-title-2-tracking); }
:is(dialog, .dialog, .ec-dialog) > :is(.dialog-head, .dialog-title):first-child, :is(dialog, .dialog, .ec-dialog) > :is(form, .form) > :is(.dialog-head, .dialog-title):first-child { position: sticky; top: calc(-1 * var(--sheet-pad)); z-index: 2; margin: calc(-1 * var(--sheet-pad)) calc(-1 * var(--sheet-pad)) var(--sp-6); padding: var(--sheet-pad) var(--sheet-pad) var(--sp-5); background: var(--ec-surface); }
.dialog-actions { position: sticky; bottom: calc(-1 * var(--sheet-pad-b)); z-index: 2; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: var(--sp-4); margin: var(--sp-6) calc(-1 * var(--sheet-pad)) calc(-1 * var(--sheet-pad-b)); padding: var(--sp-5) var(--sheet-pad) var(--sheet-pad-b); border-top: 1px solid var(--ec-line); background: var(--ec-surface); }
.dialog-actions .btn { min-width: 0; white-space: normal; text-align: center; }
@media (max-width: 639px) {
  .dialog-actions { flex-wrap: nowrap; }
  .dialog-actions .btn { flex: 1 1 0; }
  .dialog-actions .btn:is(.primary, .btn-primary):not(:only-child) { flex-grow: 2; }
  .dialog-actions:has(> .btn:not([hidden]) ~ .btn:not([hidden]) ~ .btn:not([hidden])) { flex-wrap: wrap; }
  .dialog-actions:has(> .btn:not([hidden]) ~ .btn:not([hidden]) ~ .btn:not([hidden])) .btn:is(.primary, .btn-primary) { order: -1; flex-basis: 100%; }
}
.menu { width: max-content; min-width: 220px; max-width: calc(100vw - 32px); padding: var(--sp-3); border: 1px solid var(--ec-line); border-radius: var(--r-3); background: var(--ec-surface); color: var(--ec-text); box-shadow: var(--sh-pop); }
.menu-head { display: grid; gap: var(--sp-1); padding: var(--sp-4) var(--sp-5); min-width: 0; }
.menu-head-name { overflow: hidden; font-size: var(--t-body-size); font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.menu-head-sub { overflow: hidden; color: var(--ec-text-muted); font-size: var(--t-label-size); text-overflow: ellipsis; white-space: nowrap; }
.menu-locale { padding: var(--sp-2) var(--sp-3); }
.menu-locale .locale-control { display: block; }
.menu-locale select { width: 100%; }
.menu-item { display: flex; align-items: center; gap: var(--sp-5); width: 100%; min-height: 40px; padding: 0 var(--sp-5); border-radius: var(--r-2); color: var(--ec-text); font-size: var(--t-body-size); font-weight: 500; text-align: left; text-decoration: none; }
.menu-item:hover { background: var(--ec-surface-hover); }
.menu-item[aria-current="page"] { background: var(--ec-surface-active); font-weight: 700; }
.menu-item svg, .menu-item-icon { flex: none; width: 18px; height: 18px; color: var(--ec-icon); }
/* 언어 전환(ec-locale): 세 콘솔 공용 모양. 지구본 + 현재 언어 이름 단추 하나, 누르면 .menu가 열린다(details라 스크립트 없이 열리고 닫힌다).
 * 마크업: <details class="ec-locale"><summary class="ec-locale-trigger" aria-label="화면 언어: 한국어"><span lang="ko">한국어</span></summary>
 *   <div class="menu" role="group" aria-label="화면 언어"><button type="button" class="menu-item" lang="ko" aria-current="true">한국어</button><button type="button" class="menu-item" lang="ja">日本語</button></div></details>
 * 언어 이름은 어느 화면 언어에서도 자기 언어 글자(lang 지정). 현재 언어는 aria-current="true". 고르면 화면 쪽 스크립트가 details의 open을 지운다. 검정 왼쪽 메뉴(.shell-side) 안에서는 글자가 밝아지고 메뉴가 위로 열린다. */
.ec-locale { position: relative; display: inline-block; }
.ec-locale-trigger { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: var(--btn-height); padding: 0 var(--sp-4); border-radius: var(--ctl-radius); color: var(--ec-text); font-size: var(--t-label-size); font-weight: 600; white-space: nowrap; list-style: none; cursor: pointer; user-select: none; }
.ec-locale-trigger::-webkit-details-marker { display: none; }
.ec-locale-trigger::before { content: ""; flex: none; width: 18px; height: 18px; background: currentColor; mask: var(--ec-icon-globe) center / contain no-repeat; }
.ec-locale-trigger:hover, .ec-locale[open] > .ec-locale-trigger { background: var(--ec-surface-hover); }
.ec-locale > .menu { position: absolute; top: calc(100% + var(--sp-2)); right: 0; z-index: 30; min-width: 160px; }
.ec-locale button.menu-item { border: 0; background: none; font: inherit; font-size: var(--t-body-size); font-weight: 500; cursor: pointer; }
.ec-locale button.menu-item:hover { background: var(--ec-surface-hover); }
.ec-locale .menu-item[aria-current="true"] { background: var(--ec-surface-active); font-weight: 700; }
.toast {
  position: fixed;
  left: 50%;
  bottom: var(--sp-8);
  z-index: 2000;
  max-width: min(520px, calc(100vw - 32px));
  padding: var(--sp-5) var(--sp-6);
  border: 1px solid var(--ec-line);
  border-radius: var(--r-3);
  background: var(--ec-surface);
  box-shadow: var(--sh-pop);
  color: var(--ec-text);
  font-size: var(--t-body-size);
  line-height: 1.4;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translate(-50%, var(--sp-5));
  transition: opacity var(--mo-2), transform var(--mo-2), visibility 0s linear 180ms;
}
.toast.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
/* 토스트는 지나가는 알림(성공, 안내)용이다. 오류는 칸 옆이나 폼 안 알림에 남고 토스트는 그 보조로만 뜬다(역할 분리). 톤은 점 색(성공 초록, 안내 먹)과 오류 아이콘으로 구분한다. */
.toast { display: flex; align-items: center; gap: var(--sp-5); }
.toast::before { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--dot-info); }
.toast.success::before { background: var(--dot-success); }
.toast.error, .toast.danger, .toast.warning { border-color: var(--dot-danger); }
.toast.warning { border-color: var(--dot-warning); }
.toast.error::before, .toast.danger::before, .toast.warning::before { width: 16px; height: 16px; border-radius: 0; background: var(--dot-danger); mask: var(--ec-icon-alert) center / contain no-repeat; }
.toast.warning::before { background: var(--dot-warning); }
@media (max-width: 1023px) {
  body:has(.shell[data-shell-nav="tabs"]) :is(.toast) { bottom: calc(var(--shell-tabs-h, 56px) + env(safe-area-inset-bottom, 0px) + var(--sp-6)); }
}
/* ===== 17. 기능 패널: 조건 확인, 상담, 데모 미디어 ===== */
.condition-confirmation-panel { grid-column: 1 / -1; min-width: 0; margin-top: var(--sp-10); }
.condition-confirmation-panel > header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-6); }
.condition-confirmation-panel :is(h3, h4, h5) { margin: 0 0 var(--sp-3); }
.condition-confirmation-panel .cc-kicker { margin: 0 0 var(--sp-1); color: var(--ec-text-muted); font-size: var(--t-label-size); }
.condition-confirmation-panel .cc-body { margin-top: var(--sp-5); }
.condition-confirmation-panel .cc-request { padding-block: var(--sp-6); border-top: 1px solid var(--ec-line); }
.condition-confirmation-panel .cc-request > header { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-5); }
.condition-confirmation-panel .cc-state { font-size: var(--t-label-size); font-weight: 600; }
.condition-confirmation-panel .cc-snapshot > p { margin: var(--sp-3) 0; }
.condition-confirmation-panel .cc-terms { margin: var(--sp-5) 0; }
.condition-confirmation-panel .cc-terms > div, .condition-confirmation-panel .cc-translation dl > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: var(--sp-3) var(--sp-6); padding: var(--sp-5) 0; border-bottom: 1px solid var(--ec-line); }
.condition-confirmation-panel :is(.cc-terms, .cc-translation) dt { color: var(--ec-text-muted); font-size: var(--t-label-size); }
.condition-confirmation-panel .cc-terms dd { display: grid; gap: var(--sp-2); margin: 0; overflow-wrap: anywhere; }
.condition-confirmation-panel .cc-translation dd { margin: 0; overflow-wrap: anywhere; }
.condition-confirmation-panel .cc-translation { margin-block: var(--sp-5); padding: var(--sp-4) var(--sp-6); border-radius: var(--r-3); background: var(--ec-bg-subtle); }
.condition-confirmation-panel .cc-translation dl { margin-block: var(--sp-3); }
.condition-confirmation-panel .cc-history { margin: var(--sp-3) 0; padding: 0; list-style: none; }
.condition-confirmation-panel .cc-history li { padding-block: var(--sp-5); border-bottom: 1px solid var(--ec-line); }
.condition-confirmation-panel .cc-history p { margin: var(--sp-2) 0; overflow-wrap: anywhere; }
.condition-confirmation-panel .cc-history time { color: var(--ec-text-muted); font-size: var(--t-label-size); }
.condition-confirmation-panel .cc-form { display: grid; gap: var(--sp-6); max-width: 640px; margin-block: var(--sp-6); }
.condition-confirmation-panel .cc-form > label:not(.cc-check, .cc-radio, .cc-confirm) { display: grid; gap: var(--sp-3); }
.condition-confirmation-panel .cc-form fieldset { display: grid; gap: var(--sp-4); min-width: 0; margin: 0; padding: 0; border: 0; }
.condition-confirmation-panel .cc-form legend { padding: 0; color: var(--ec-text-muted); font-size: var(--t-label-size); font-weight: 600; }
.condition-confirmation-panel .cc-check { display: flex; align-items: flex-start; gap: var(--sp-5); padding-block: var(--sp-5); border-bottom: 1px solid var(--ec-line); }
.condition-confirmation-panel .cc-check small { display: block; margin-top: var(--sp-2); color: var(--ec-text-muted); font-size: var(--t-label-size); overflow-wrap: anywhere; }
.condition-confirmation-panel :is(.cc-radio, .cc-confirm) { display: flex; align-items: flex-start; gap: var(--sp-4); }
.condition-confirmation-panel :is(.cc-radio, .cc-confirm, .cc-check) input { margin-top: var(--sp-2); }
.condition-confirmation-panel .cc-version-pair { display: grid; gap: var(--sp-2); }
.condition-confirmation-panel .cc-muted { color: var(--ec-text-muted); }
.condition-confirmation-panel .cc-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-block: var(--sp-5); }
.condition-confirmation-panel .cc-button:disabled { cursor: wait; }
@media (max-width: 639px) {
  .condition-confirmation-panel > header, .condition-confirmation-panel .cc-request > header { flex-direction: column; align-items: stretch; }
  .condition-confirmation-panel .cc-terms > div, .condition-confirmation-panel .cc-translation dl > div { grid-template-columns: minmax(0, 1fr); gap: var(--sp-1); }
}
.ec-consult { min-width: 0; max-width: 100%; }
.ec-consult .ec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-6); margin-bottom: var(--sp-7); padding-bottom: var(--sp-6); border-bottom: 1px solid var(--ec-line); }
.ec-consult :is(h2, h3) { margin: 0 0 var(--sp-3); font-size: var(--t-body-size); font-weight: 700; }
.ec-consult p { white-space: pre-wrap; overflow-wrap: anywhere; }
.ec-consult :is(.ec-head p, .ec-meta, .ec-target, .ec-note, .ec-status) { margin: 0; color: var(--ec-text-muted); font-size: var(--t-label-size); }
.ec-consult .ec-field { display: flex; flex-direction: column; gap: var(--sp-3); min-width: 0; margin: var(--sp-5) 0; }
.ec-consult :is(.ec-field) > span { color: var(--ec-text-muted); font-size: var(--t-label-size); font-weight: 600; }
.ec-consult .ec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.ec-consult .ec-thread { display: grid; gap: var(--sp-5); margin: var(--sp-8) 0 var(--sp-6); }
.ec-consult .ec-message { min-width: 0; padding: var(--sp-6) 0 var(--sp-2); border-top: 1px solid var(--ec-line); }
.ec-consult .ec-message:first-child { border-top: 0; }
.ec-consult .ec-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-6); }
.ec-consult .ec-meta time { font-size: var(--t-label-size); }
.ec-consult .ec-original { margin: var(--sp-5) 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.ec-consult .ec-actions { display: flex; flex-wrap: wrap; gap: var(--sp-4); margin-top: var(--sp-5); }
.ec-consult .ec-translation { margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-6); border-radius: var(--r-3); background: var(--ec-bg-subtle); }
.ec-consult .ec-review-requests { margin: var(--sp-8) 0; padding-top: var(--sp-6); border-top: 1px solid var(--ec-line); }
.ec-consult .ec-review-request { padding: var(--sp-5) 0; border-bottom: 1px solid var(--ec-line); }
.ec-consult .ec-review-request p { overflow-wrap: anywhere; }
.ec-consult .ec-review-mode { margin: 0 0 var(--sp-4); font-weight: 600; }
.ec-consult .ec-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
.ec-consult .ec-compare > div { min-width: 0; padding: var(--sp-4) var(--sp-6); border-radius: var(--r-3); background: var(--ec-bg-subtle); }
.ec-consult .ec-compare p { margin: var(--sp-4) 0 0; }
.ec-consult .ec-alert { margin: var(--sp-5) 0; }
.ec-consult .ec-alert button { margin-left: var(--sp-4); }
.ec-consult .ec-x { float: right; }
.ec-consult :is(.ec-inline-review, .ec-manual) { margin: var(--sp-6) 0; padding: var(--sp-5) 0; border-top: 1px solid var(--ec-line); }
.ec-consult .ec-error { margin-top: var(--sp-5); }
.ec-consult .ec-consent { display: flex; align-items: flex-start; gap: var(--sp-4); margin: var(--sp-5) 0; }
.ec-consult .ec-consent input { margin-top: var(--sp-2); }
@media (max-width: 639px) {
  .ec-consult .ec-head { display: block; }
  .ec-consult :is(.ec-grid, .ec-compare) { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ec-consult .ec-alert button { display: block; margin: var(--sp-4) 0 0; }
}
.demo-media-campaign, .demo-media-store, .demo-media-profile, .demo-media-references { display: grid; gap: var(--sp-5); margin-block: var(--sp-6) 0; color: var(--ec-text); }
.demo-media-campaign-head { display: grid; grid-template-columns: minmax(96px, 160px) minmax(0, 1fr); gap: var(--sp-6); align-items: center; }
.demo-media-cover, .demo-media-post-image, .demo-media-reference img { display: block; width: 100%; height: 100%; min-height: 88px; max-height: 200px; border-radius: var(--r-4); background: var(--ec-surface-active); object-fit: cover; }
.demo-media-campaign-head h3, .demo-media-references h3, .demo-media-post h4, .demo-media-reference h4 { margin: 0; font-size: var(--t-body-size); font-weight: 700; }
.demo-media-campaign-head p, .demo-media-post p, .demo-media-reference p, .demo-media-caption, .demo-media-store header p { margin: 0; color: var(--ec-text-muted); font-size: var(--t-label-size); }
.demo-media-eyebrow { margin: 0; color: var(--ec-text-muted); font-size: var(--t-label-size); font-weight: 600; }
.demo-media-post-grid, .demo-media-reference-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: var(--sp-6); }
.demo-media-post, .demo-media-reference { display: grid; align-content: start; gap: var(--sp-4); min-width: 0; }
.demo-media-post > div, .demo-media-reference > div { display: grid; gap: var(--sp-2); }
.demo-media-post-image, .demo-media-reference img { height: 140px; max-height: none; }
.demo-media-reference h4 { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.demo-media-reference-thumb { position: relative; display: block; }
.demo-media-reference-thumb::after {
  content: "▶";
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 36px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: var(--r-pill);
  background: var(--ec-scrim);
  color: var(--ec-text-on-solid);
  font-size: var(--t-label-size);
  transform: translate(-50%, -50%);
}
.demo-media-reference a { color: inherit; }
.demo-media-list-thumb { display: block; flex: none; width: 40px; height: 40px; border-radius: var(--r-3); object-fit: cover; }
.demo-media-store h3 { margin: var(--sp-1) 0; font-size: var(--t-body-size); font-weight: 700; }
.demo-media-profile-head { display: flex; align-items: center; gap: var(--sp-5); }
.demo-media-portrait { flex: none; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.demo-media-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-3); }
.demo-media-thumb { width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r-3); object-fit: cover; }
.demo-media-attribution { padding: var(--sp-4) var(--sp-5); color: var(--ec-text-muted); font-size: var(--t-label-size); text-align: center; }
.demo-media-attribution a { color: inherit; }
@media (max-width: 639px) {
  .demo-media-campaign-head { grid-template-columns: minmax(0, 1fr); }
  .demo-media-cover { max-height: 160px; }
}
/* ===== 18. 차례 표시(.turn)와 도움말(.help). 「내 차례」는 굵은 글자 + 주황 점 ===== */
.turn { display: inline-flex; align-items: center; gap: var(--sp-4); color: var(--ec-text-muted); font-size: var(--t-body-size); line-height: var(--t-body-leading); }
.turn > svg { flex: none; width: 18px; height: 18px; color: var(--ec-icon); }
.turn[data-turn="you"] { color: var(--ec-text); font-weight: 700; }
.turn[data-turn="you"] > svg { color: var(--ec-text); }
.turn[data-turn="you"]::after { content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ec-brand); }
.help { min-width: 0; }
.help > summary { display: inline-flex; align-items: center; gap: var(--sp-3); min-height: 32px; color: var(--ec-text-muted); font-size: var(--t-label-size); font-weight: 600; list-style: none; cursor: pointer; }
.help > summary::-webkit-details-marker { display: none; }
.help > summary::before { content: none; }
.help > summary > svg { flex: none; width: 16px; height: 16px; color: var(--ec-icon); }
.help > summary > span { text-decoration: underline; text-decoration-color: var(--ec-line-strong); text-underline-offset: 4px; }
.help > summary:hover, .help[open] > summary { color: var(--ec-text); }
.help > :not(summary) { max-width: 560px; margin-top: var(--sp-3); color: var(--ec-text-muted); font-size: var(--t-body-size); }
/* ===== 19. 터치 대상(1024 미만 44x44). 같은 명시도라 컴포넌트 뒤에 둔다 ===== */
@media (max-width: 1023px) {
  .btn, .btn-line, .cc-button, .ec-consult button, .btn-sm, .btn.sm, .btn-icon, .ec-consult .ec-x, .chip, .tab, .menu-item, .check, .back-link, .help > summary, .row-action, .row-end > .btn:not(.btn-icon), .cell-action > :is(a, button), .section-actions > :is(a, button) { min-width: 44px; min-height: 44px; }
  .btn-link { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; padding-block: 0; }
  .check { align-items: flex-start; padding-block: var(--sp-4); }
  .check input { margin-top: var(--sp-2); }
  .table td :is(a[href], button.title-link) { display: inline-flex; align-items: center; min-height: 44px; }
  button.step-label { min-width: 44px; min-height: 44px; }
  :where(body[data-console] details:not(.shell-menu, .shell-tab-more) > summary:not([class])) { min-height: 44px; }
}
/* ===== 20. 필터 막대와 시트: 넓은 화면은 한 줄, 640 미만은 필터 버튼 + 시트(위 모서리 24) ===== */
.seg { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4); }
.fbar { justify-content: flex-start; gap: var(--sp-4); }
.fbar > .toolbar-spacer { display: none; }
.fchip { position: relative; display: inline-flex; align-items: center; min-width: 0; }
.fchip-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.fchip > select {
  width: auto;
  max-width: 240px;
  height: 40px;
  min-height: 40px;
  padding: 0 var(--sp-9) 0 var(--sp-6);
  border-radius: var(--r-pill);
  background-position: calc(100% - 17px) 50%, calc(100% - 12px) 50%;
  font-size: var(--t-label-size);
  font-weight: 600;
  text-overflow: ellipsis;
  field-sizing: content;
}
.fchip[data-active] { --ec-icon: var(--ec-on-ink); }
.fchip[data-active] > select { border-color: var(--ec-ink); background-color: var(--ec-ink); color: var(--ec-on-ink); font-weight: 700; }
.fbar-toggle { display: none; gap: var(--sp-4); min-height: 40px; border-radius: var(--r-pill); }
.fbar-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 var(--sp-3); border-radius: var(--r-pill); background: var(--ec-ink); color: var(--ec-on-ink); font-size: var(--t-label-size); font-weight: 700; }
.fbar-applied, .fsheet-head, .fsheet-scrim { display: none; }
.fsheet, .fsheet-panel, .fsheet-body { display: contents; }
@media (max-width: 639px) {
  .fbar-toggle { display: inline-flex; min-height: 44px; }
  .seg .chip { height: 44px; min-height: 44px; }
  .fbar-applied { display: flex; flex: 1 0 100%; flex-wrap: wrap; gap: var(--sp-4); }
  .fapplied { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-6); border: 1px solid var(--ec-ink); border-radius: var(--r-pill); background: var(--ec-ink); color: var(--ec-on-ink); font-size: var(--t-label-size); font-weight: 700; }
  .fsheet { display: none; }
  .fsheet[data-open] { position: fixed; inset: 0; z-index: 90; display: block; }
  .fsheet-scrim { position: absolute; inset: 0; display: block; background: var(--ec-scrim); }
  .fsheet-panel {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    max-height: 85dvh;
    padding: var(--sp-7) var(--sp-6) calc(var(--sp-7) + env(safe-area-inset-bottom, 0px));
    overflow: hidden;
    border-radius: var(--r-5) var(--r-5) 0 0;
    background: var(--ec-surface);
  }
  .fsheet-head { display: flex; flex: none; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
  .fsheet-title { font-size: var(--t-title-2-size); font-weight: 700; }
  /* 면(.fsheet-panel)은 스크롤하지 않고 본문만 스크롤한다: 막대와 흐림은 ec-scroll이 맡는다(.fsheet-body). */
  .fsheet-body { display: grid; gap: var(--sp-6); min-height: 0; overflow-y: auto; }
  .fchip { display: grid; gap: var(--sp-3); }
  .fchip-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: var(--t-label-size); font-weight: 700; }
  .fchip > select { width: 100%; max-width: none; height: var(--field-height); min-height: var(--field-height); border-radius: var(--ctl-radius); font-size: var(--t-body-size); background-position: calc(100% - 21px) 50%, calc(100% - 16px) 50%; field-sizing: fixed; }
  body:has(.fsheet[data-open]) { overflow: hidden; }
}
@media (max-width: 639px) and (prefers-reduced-motion: no-preference) {
  .fsheet[data-open] .fsheet-panel { animation: fsheet-up 200ms ease-out; }
  @keyframes fsheet-up { from { transform: translateY(24px); opacity: 0; } }
}
/* ===== 21. 숫자와 기한: 큰 숫자(.mk-figure)는 검정, 임박 기한(.mk-due)은 굵은 글자 + 주황 점 ===== */
.mk-figure { color: var(--ec-text); font-weight: 700; font-variant-numeric: tabular-nums; }
.mk-due, [data-due="soon"] { color: var(--ec-text); font-weight: 700; }
.mk-due::before, [data-due="soon"]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--sp-3); border-radius: 50%; background: var(--ec-brand); vertical-align: 0.1em; }
/* 카드 hover: 부드럽게 뜬다. 눌리는 카드에만 */
@media (hover: hover) {
  .camp-card:hover, a.card:hover { box-shadow: var(--sh-lift); }
}
/* 움직임 줄이기(접근성) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms; transition-duration: 0.01ms; }
}
}

/* FIND-11-16f P2-2 (main 11-16 09:12): at 320px (WCAG 1.4.10, 400% zoom) the auth header's logo, language selector and
   home link need about 340px. Below 360px the header takes two rows: the logo, then the language selector and the home
   link on the right. site-chrome.css is a homepage file, so this lives here; the element in :is() only lifts the rule
   above the fixed height of .site-header.auth-header. */
/* 재설정 링크 유효 시간 줄(main 11-16 cw 5): 바로 아래 「새 비밀번호」 칸과 칸 사이 간격만큼 띄운다(.auth-body .field 와 같은 값). */
.auth-body #resetForm > [data-reset-link-notice] { margin-bottom: var(--sp-7); }
@media (max-width: 359px) {
  .site-header.auth-header:is(header) { height: auto; padding-block: var(--sp-1); }
  .site-header.auth-header .gnb-wrap:is(div) { height: auto; flex-wrap: wrap; row-gap: 0; }
}
