/* 새봄시설관리 현장 점검 시연 — 로컬 컴포넌트 CSS.
   Aquila 시맨틱 변수(--aq-*)만 읽는다. 리터럴 색 없음: 색·글꼴·반경은 css/preset.css 가 정한다.
   Aquila React 컴포넌트(Button, Badge, Table, Modal, Toast, SegmentedControl, Stepper,
   EmptyState, DescriptionList, CellGroup)의 구조를 정적 HTML 로 옮긴 .fc-* 클래스다. */

/* ── Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--aq-font);
  font-size: var(--aq-text-base);
  font-weight: var(--aq-weight-base);
  line-height: 1.55;
  background: var(--aq-bg);
  color: var(--aq-fg);
  word-break: keep-all;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}
img, svg, canvas { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--aq-accent); text-underline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Aquila 는 면 요소의 포커스를 지운다(*:focus-visible { outline: none }).
   이 앱은 키보드 조작이 합격 기준이라 조작 요소에 링을 돌려준다. */
:is(a, button, [tabindex], summary, .fc-file-label):focus-visible {
  outline: 2px solid var(--aq-ring);
  outline-offset: 2px;
}
.fc-file-input:focus-visible + .fc-file-label { outline: 2px solid var(--aq-ring); outline-offset: 2px; }

/* ── Header ───────────────────────────────────────────── */
.fc-header {
  background: var(--aq-surface);
  border-bottom: 1px solid var(--aq-border);
}
.fc-header__inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  max-width: 1160px; margin: 0 auto; padding: 12px 20px;
}
.fc-brand {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--aq-fg); text-decoration: none; font-weight: 700; font-size: 16px;
}
.fc-brand img { width: 22px; height: 22px; }
.fc-brand__role {
  font-weight: 500; font-size: 14px; color: var(--aq-fg-secondary);
  padding-left: 10px; border-left: 1px solid var(--aq-border);
}
.fc-header__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }

.fc-main { max-width: 1160px; margin: 0 auto; padding: 20px 20px 48px; }

/* ── Button ───────────────────────────────────────────── */
.fc-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 44px; padding: 0 16px;
  border: 1px solid var(--aq-border); border-radius: var(--aq-radius-el);
  background: var(--aq-surface); color: var(--aq-fg);
  font-size: 15px; font-weight: 600; text-decoration: none; text-align: center;
  transition-property: transform, background-color, border-color, color;
  transition-duration: 160ms;
  transition-timing-function: var(--aq-ease-snappy);
}
.fc-btn:hover { background: var(--aq-surface-subtle); }
.fc-btn:active { transform: scale(var(--aq-press-scale)); }
.fc-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.fc-btn svg { width: 18px; height: 18px; flex: none; }
.fc-btn--primary { background: var(--aq-accent); border-color: var(--aq-accent); color: var(--aq-fg-on-accent); }
.fc-btn--primary:hover { background: var(--aq-accent); border-color: var(--aq-accent); }
.fc-btn--ghost { border-color: transparent; background: transparent; color: var(--aq-fg-secondary); }
.fc-btn--danger { background: var(--aq-error-light); border-color: var(--aq-error); color: var(--aq-fg); }
.fc-btn--danger:hover { background: var(--aq-error-light); }
.fc-btn--danger svg { color: var(--aq-error); }
.fc-btn--sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.fc-btn--block { width: 100%; }
.fc-btn--lg { min-height: 52px; font-size: 16px; }

.aq-icon-btn.fc-icon-btn { width: 40px; height: 40px; border-radius: var(--aq-radius-sm); }
.aq-icon-btn.fc-icon-btn svg { width: 18px; height: 18px; }
.aq-icon-btn.fc-icon-btn:disabled { opacity: .35; cursor: not-allowed; background: transparent; }

/* ── Badge (상태: 아이콘 + 텍스트, 면은 feedback-light 토큰, 글자는 본문색) ── */
.fc-badge {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 26px; padding: 2px 9px;
  border-radius: var(--aq-radius-sm);
  background: var(--aq-surface-subtle); color: var(--aq-fg);
  font-size: 13px; font-weight: 600; line-height: 1.3; white-space: nowrap;
}
.fc-badge svg { width: 14px; height: 14px; flex: none; }
.fc-badge--ok, .fc-badge--done { background: var(--aq-success-light); }
.fc-badge--ok svg, .fc-badge--done svg { color: var(--aq-success); }
.fc-badge--issue, .fc-badge--received { background: var(--aq-error-light); }
.fc-badge--issue svg, .fc-badge--received svg { color: var(--aq-error); }
.fc-badge--progress { background: var(--aq-warning-light); }
.fc-badge--progress svg { color: var(--aq-warning); }
.fc-badge--pending { background: transparent; border: 1px dashed var(--aq-border-strong); color: var(--aq-fg-secondary); }
.fc-badge--neutral { background: var(--aq-surface-subtle); color: var(--aq-fg-secondary); }

/* 현장 고유색 점: --aq-cat-n 만 쓴다(피드백 색 아님) */
.fc-dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: var(--aq-radius-full); background: var(--aq-cat-5); }
.fc-dot[data-cat="1"] { background: var(--aq-cat-1); }
.fc-dot[data-cat="2"] { background: var(--aq-cat-2); }
.fc-dot[data-cat="3"] { background: var(--aq-cat-3); }
.fc-dot[data-cat="4"] { background: var(--aq-cat-4); }
.fc-dot[data-cat="5"] { background: var(--aq-cat-5); }

/* ── Panel / section ─────────────────────────────────── */
.fc-panel {
  background: var(--aq-surface);
  border: 1px solid var(--aq-border);
  border-radius: var(--aq-radius-card);
}
.fc-section + .fc-section { margin-top: 28px; }
.fc-section__head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-bottom: 10px;
}
.fc-section__title { font-size: 18px; font-weight: 700; }
.fc-section__meta { color: var(--aq-fg-secondary); font-size: 14px; }
.fc-section__tools { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fc-muted { color: var(--aq-fg-secondary); }
.fc-small { font-size: 13px; }

/* ── 오늘 요약 줄 (숫자 히어로 아님: 본문 크기 1.2배 이하) ── */
.fc-summary {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 18px; margin-bottom: 12px;
}
.fc-summary__date { font-size: 18px; font-weight: 700; }
.fc-summary__list { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.fc-summary__item { font-size: 15px; color: var(--aq-fg-secondary); }
.fc-summary__item b { font-size: 17px; color: var(--aq-fg); margin-left: 4px; }
.fc-summary__sep { color: var(--aq-border-strong); }

/* ── 현장 줄 (Variation B 의 주인공) ───────────────────── */
.fc-sites { display: grid; gap: 0; }
.fc-site {
  display: grid; align-items: center;
  grid-template-columns: minmax(180px, 1.3fr) minmax(0, 2fr) auto;
  gap: 8px 16px; min-height: 64px; padding: 10px 16px;
  border-top: 1px solid var(--aq-border);
}
.fc-site:first-child { border-top: 0; }
.fc-site__name {
  display: inline-flex; align-items: center; gap: 10px; min-width: 0;
  padding: 6px 4px; margin: -6px -4px; border: 0; background: none; border-radius: var(--aq-radius-sm);
  font-weight: 700; font-size: 16px; text-align: left; color: var(--aq-fg);
}
button.fc-site__name:hover { text-decoration: underline; text-underline-offset: 3px; }
.fc-site__area { display: block; font-weight: 400; font-size: 13px; color: var(--aq-fg-secondary); }
.fc-site__info { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; min-width: 0; color: var(--aq-fg-secondary); font-size: 14px; }
.fc-site__info strong { color: var(--aq-fg); font-weight: 600; }
.fc-site__end { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.fc-site--pending .fc-site__info { font-style: normal; }
.fc-site--pending { background: var(--aq-surface-subtle); }
.fc-sites--panel .fc-site--pending:last-child { border-radius: 0 0 var(--aq-radius-card) var(--aq-radius-card); }
.fc-sites--panel .fc-site:first-child.fc-site--pending { border-radius: var(--aq-radius-card) var(--aq-radius-card) 0 0; }
.fc-pending-text { border-bottom: 1px dashed var(--aq-border-strong); }

/* 직원 화면에서 고르는 현장 줄: 줄 전체가 버튼 */
button.fc-site {
  width: 100%; border-left: 0; border-right: 0; border-bottom: 0; background: var(--aq-surface);
  text-align: left; color: var(--aq-fg);
  grid-template-columns: minmax(0, 1fr) auto;
  transition: background-color 160ms var(--aq-ease-snappy);
}
button.fc-site:hover { background: var(--aq-surface-subtle); }
.fc-sites--panel { overflow: hidden; }

/* ── Tabs (aq-tabbar / aq-tab 재사용, 인디케이터는 glide) ── */
.fc-tabs.aq-tabbar { height: auto; padding: 0; background: transparent; margin-bottom: 20px; }
.fc-tabs .aq-tabbar-tabs { position: relative; gap: 0; --fc-tab-w: 180px; }
.fc-tabs .aq-tab {
  flex: 0 0 var(--fc-tab-w); justify-content: center; min-width: 0; height: 44px;
  padding: 0 8px; border: 0; border-radius: var(--aq-radius-sm) var(--aq-radius-sm) 0 0; margin: 0;
  font-size: 15px; background: transparent; cursor: pointer; color: var(--aq-fg-secondary);
}
.fc-tabs .aq-tab::before { display: none; }
.fc-tabs .aq-tab[aria-selected="true"] { color: var(--aq-fg); font-weight: 700; background: transparent; }
.fc-tabs .aq-tab .fc-count { margin-left: 6px; }
.fc-tabs .aq-tab-title { flex: 0 1 auto; }
.fc-tabs__ind {
  position: absolute; left: 0; bottom: 0; height: 3px; width: var(--fc-tab-w);
  background: var(--aq-accent); border-radius: 3px 3px 0 0;
  transform: translateX(calc(var(--fc-tab-i, 0) * 100%));
  transition: transform 200ms var(--aq-ease-glide);
}
.fc-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: var(--aq-radius-full); background: var(--aq-error-light); color: var(--aq-fg);
  font-size: 12px; font-weight: 700;
}

/* ── Segmented control (glide, 같은 폭 칸) ─────────────── */
.fc-seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 3px; border-radius: var(--aq-radius-el); background: var(--aq-surface-subtle);
  border: 1px solid var(--aq-border);
}
.fc-seg__ind {
  position: absolute; top: 3px; bottom: 3px; left: 3px;
  width: calc((100% - 6px) / var(--fc-seg-n, 4));
  border-radius: var(--aq-radius-sm); background: var(--aq-surface);
  border: 1px solid var(--aq-border-strong);
  transform: translateX(calc(var(--fc-seg-i, 0) * 100%));
  transition: transform 200ms var(--aq-ease-glide);
}
.fc-seg__btn {
  position: relative; z-index: 1; min-height: 38px; min-width: 56px; padding: 0 12px;
  border: 0; background: transparent; border-radius: var(--aq-radius-sm);
  color: var(--aq-fg-secondary); font-size: 14px; font-weight: 600; white-space: nowrap;
}
.fc-seg__btn[aria-checked="true"], .fc-seg__btn[aria-pressed="true"] { color: var(--aq-fg); }

/* ── Form ─────────────────────────────────────────────── */
.fc-field { display: grid; gap: 6px; min-width: 0; }
.fc-label { font-size: 13px; font-weight: 600; color: var(--aq-fg-secondary); }
.aq-input.fc-input {
  width: 100%; min-height: 40px; padding: 8px 12px;
  border-style: solid; border-radius: var(--aq-radius-sm);
  background: var(--aq-surface); color: var(--aq-fg); font-size: 15px;
  transition: box-shadow 160ms var(--aq-ease-snappy), border-color 160ms var(--aq-ease-snappy);
}
textarea.aq-input.fc-input { min-height: 84px; resize: vertical; line-height: 1.5; }
.aq-input.fc-input::placeholder { color: var(--aq-fg-placeholder); }
.fc-error-text {
  display: flex; align-items: flex-start; gap: 6px; color: var(--aq-fg); font-size: 14px; font-weight: 600;
}
.fc-error-text svg { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--aq-error); }
.fc-error-text[hidden] { display: none; }

/* ── Filter bar (≥768 그대로, <768 은 아래에서 올라오는 시트) ── */
.fc-filters {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px;
  padding: 14px 16px; margin-bottom: 12px;
}
.fc-filters__dates { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-filters__dates[hidden] { display: none; }
.fc-filters__dates .fc-field { width: 160px; }
.fc-filters__count { margin-left: auto; align-self: center; color: var(--aq-fg-secondary); font-size: 14px; }
.fc-filters__count b { color: var(--aq-fg); }
.fc-filters__sheethead { display: none; }
.fc-filter-open { display: none; }
.fc-sheet-backdrop { display: none; }

/* ── Table (≥768) → 카드 목록 (<768), 같은 DOM ────────── */
.fc-table-wrap { overflow: hidden; }
.fc-table { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.fc-table th {
  text-align: left; font-size: 13px; font-weight: 600; color: var(--aq-fg-secondary);
  padding: 10px 14px; border-bottom: 1px solid var(--aq-border); background: var(--aq-surface-subtle);
}
.fc-table td { padding: 12px 14px; border-top: 1px solid var(--aq-border); vertical-align: middle; min-width: 0; }
.fc-table tbody tr:first-child td { border-top: 0; }
.fc-table tbody tr[data-href] { cursor: pointer; transition: background-color 120ms var(--aq-ease-snappy); }
.fc-table tbody tr[data-href]:hover { background: var(--aq-surface-subtle); }
.fc-table tbody tr:focus-visible { outline: 2px solid var(--aq-ring); outline-offset: -2px; }
.fc-table .fc-col-when { width: 17%; }
.fc-table .fc-col-site { width: 22%; }
.fc-table .fc-col-staff { width: 12%; }
.fc-table .fc-col-result { width: 18%; }
.fc-table .fc-col-state { width: 16%; }
.fc-table .fc-col-link { width: 15%; }
.fc-cell-site { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.fc-result { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.fc-result__ok { color: var(--aq-fg-secondary); }
.fc-result__issue { font-weight: 700; }
.fc-id { color: var(--aq-fg-secondary); font-size: 12px; display: block; }

/* ── Empty state ─────────────────────────────────────── */
.fc-empty { padding: 36px 20px; display: grid; gap: 10px; justify-items: start; }
.fc-empty__title { font-size: 16px; font-weight: 700; }
.fc-empty p { color: var(--aq-fg-secondary); }

/* ── Issue list (이상 건 처리) ─────────────────────────── */
.fc-issues { display: grid; gap: 12px; }
.fc-issue { padding: 16px; display: grid; gap: 12px; }
.fc-issue__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.fc-issue__title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 16px; }
.fc-issue__meta { color: var(--aq-fg-secondary); font-size: 14px; }
.fc-issue__head .fc-badge { margin-left: auto; }
.fc-issue__items { display: grid; gap: 10px; }
.fc-issue__item { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; align-items: start; }
.fc-issue__item img, .fc-thumb-ph {
  width: 88px; height: 66px; object-fit: cover; border-radius: var(--aq-radius-sm);
  border: 1px solid var(--aq-border); background: var(--aq-surface-subtle);
}
.fc-issue__label { font-weight: 600; }
.fc-issue__memo { color: var(--aq-fg-secondary); font-size: 14px; }
.fc-issue__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 12px; border-top: 1px solid var(--aq-border); }
.fc-issue__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.fc-issue__actions select.fc-input { width: auto; min-height: 36px; padding: 4px 10px; }

/* ── Timeline (상태 이력) ─────────────────────────────── */
.fc-timeline { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 13px; color: var(--aq-fg-secondary); }
.fc-timeline li { display: inline-flex; align-items: center; gap: 6px; }
.fc-timeline li::before {
  content: ""; width: 7px; height: 7px; border-radius: var(--aq-radius-full); background: var(--aq-border-strong);
}
.fc-timeline b { color: var(--aq-fg); font-weight: 600; }

/* ── Template editor ─────────────────────────────────── */
.fc-note {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; margin-bottom: 14px;
  border-left: 3px solid var(--aq-accent);
}
.fc-note svg { width: 20px; height: 20px; flex: none; color: var(--aq-accent); margin-top: 1px; }
.fc-note__body { display: grid; gap: 4px; }
.fc-note__title { font-weight: 700; }
.fc-tpl { display: grid; }
.fc-tpl__row {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center;
  padding: 10px 12px 10px 16px; border-top: 1px solid var(--aq-border);
}
.fc-tpl__row:first-child { border-top: 0; }
.fc-tpl__no { font-weight: 700; color: var(--aq-fg-secondary); }
.fc-tpl__tools { display: flex; gap: 2px; }
.fc-tpl__add {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end;
  padding: 14px 16px; border-top: 1px solid var(--aq-border); background: var(--aq-surface-subtle);
  border-radius: 0 0 var(--aq-radius-card) var(--aq-radius-card);
}
.fc-tpl__save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; }
.fc-tpl__status { color: var(--aq-fg-secondary); font-size: 14px; }

/* ── Dialog (Modal) / Toast ──────────────────────────── */
.fc-dialog {
  width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px);
  padding: 0; border: 1px solid var(--aq-border); border-radius: var(--aq-radius-card);
  background: var(--aq-surface-overlay); color: var(--aq-fg);
}
.fc-dialog[open] { animation: fc-pop 180ms var(--aq-ease-snappy); }
.fc-dialog::backdrop { background: color-mix(in srgb, var(--aq-black) 55%, transparent); }
.fc-dialog__body { padding: 20px; display: grid; gap: 10px; }
.fc-dialog__title { font-size: 18px; font-weight: 700; }
.fc-dialog__foot { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: 0 20px 20px; }
.fc-dialog--photo { width: min(920px, calc(100vw - 24px)); }
.fc-dialog--photo .fc-dialog__head { display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-bottom: 1px solid var(--aq-border); }
.fc-dialog--photo .fc-dialog__head p { flex: 1; min-width: 0; font-weight: 600; }
.fc-dialog--photo img { width: 100%; max-height: calc(100dvh - 140px); object-fit: contain; background: var(--aq-surface-subtle); }
@keyframes fc-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.fc-toasts {
  position: fixed; left: 50%; bottom: calc(16px + var(--safe-bottom)); z-index: 60;
  transform: translateX(-50%); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}
.fc-toast {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  border-radius: var(--aq-radius-el); background: var(--aq-fg); color: var(--aq-bg);
  font-size: 14px; font-weight: 600;
  animation: fc-pop 180ms var(--aq-ease-snappy);
}
.fc-toast svg { width: 18px; height: 18px; flex: none; }

/* ═══════════════ index ═══════════════ */
.fc-intro { max-width: 760px; }
.fc-intro h1 { font-size: 26px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.fc-intro__lead { margin-top: 8px; font-size: 17px; color: var(--aq-fg-secondary); }
.fc-flow { margin-top: 24px; max-width: 760px; }
.fc-flow__item { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 4px 14px; padding: 18px 20px; border-top: 1px solid var(--aq-border); }
.fc-flow__item:first-child { border-top: 0; }
.fc-flow__no {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--aq-radius-full);
  border: 1px solid var(--aq-border-strong); font-weight: 700; color: var(--aq-fg);
}
.fc-flow__body { display: grid; gap: 4px; min-width: 0; }
.fc-flow__link { font-size: 18px; font-weight: 700; }
.fc-flow__desc { color: var(--aq-fg); }
.fc-flow__point { color: var(--aq-fg-secondary); font-size: 14px; }
.fc-flow__point b { color: var(--aq-fg); font-weight: 600; }
.fc-flow__meta { font-size: 13px; color: var(--aq-fg-secondary); }
.fc-demo-tools { margin-top: 20px; max-width: 760px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.fc-footer { max-width: 1160px; margin: 0 auto; padding: 0 20px 32px; color: var(--aq-fg-secondary); font-size: 13px; }

/* ═══════════════ check (390 우선, 한 손) ═══════════════ */
.fc-check-layout { max-width: 1160px; margin: 0 auto; }
.fc-reviewer { display: none; }
.fc-phone { max-width: 480px; margin: 0 auto; min-height: 100dvh; display: flex; flex-direction: column; background: var(--aq-bg); }
.fc-phone__top { position: sticky; top: 0; z-index: 10; background: var(--aq-surface); border-bottom: 1px solid var(--aq-border); padding: 10px 16px 12px; }
.fc-phone__bar { display: flex; align-items: center; gap: 10px; min-height: 32px; }
.fc-phone__bar .fc-brand { font-size: 15px; }
.fc-phone__who { margin-left: auto; font-size: 14px; color: var(--aq-fg-secondary); text-align: right; }
.fc-phone__body { flex: 1; padding: 16px 16px 24px; display: grid; align-content: start; gap: 14px; }
.fc-step-title { font-size: 20px; font-weight: 700; line-height: 1.35; }
.fc-step-desc { color: var(--aq-fg-secondary); font-size: 14px; margin-top: 2px; }
.fc-demo-note { font-size: 13px; color: var(--aq-fg-secondary); display: flex; gap: 6px; align-items: flex-start; }
.fc-demo-note svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }

/* Stepper — 5칸 같은 폭, 인디케이터는 transform 으로만 이동(glide) */
.fc-stepper { margin-top: 10px; }
.fc-stepper__track { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); height: 4px; border-radius: 4px; background: var(--aq-surface-strong); overflow: hidden; }
.fc-stepper__done { position: absolute; inset: 0; background: var(--aq-accent); transform-origin: left center; transform: scaleX(calc(var(--fc-step, 0) / 5)); transition: transform 220ms var(--aq-ease-glide); opacity: .35; }
.fc-stepper__ind { position: absolute; top: 0; bottom: 0; left: 0; width: 20%; background: var(--aq-accent); border-radius: 4px; transform: translateX(calc(var(--fc-step, 0) * 100%)); transition: transform 220ms var(--aq-ease-glide); }
.fc-stepper__labels { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 6px; font-size: 12px; color: var(--aq-fg-secondary); }
.fc-stepper__labels li { text-align: center; }
.fc-stepper__labels li[aria-current="step"] { color: var(--aq-fg); font-weight: 700; }

/* 직원 선택 셀 */
.fc-cells { overflow: hidden; }
.fc-cell {
  display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 12px 16px;
  border: 0; border-top: 1px solid var(--aq-border); background: var(--aq-surface); color: var(--aq-fg); text-align: left;
  transition: background-color 160ms var(--aq-ease-snappy);
}
.fc-cell:first-child { border-top: 0; }
.fc-cell:hover { background: var(--aq-surface-subtle); }
.fc-cell__avatar {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: var(--aq-radius-full);
  background: var(--aq-surface-subtle); border: 1px solid var(--aq-border); font-weight: 700; color: var(--aq-fg);
}
.fc-cell__main { flex: 1; min-width: 0; display: grid; }
.fc-cell__name { font-weight: 700; font-size: 16px; }
.fc-cell__sub { font-size: 13px; color: var(--aq-fg-secondary); }
.fc-cell__chev { width: 18px; height: 18px; color: var(--aq-fg-secondary); flex: none; }

/* 점검 항목 카드 */
.fc-items { display: grid; gap: 12px; }
.fc-item { padding: 14px; display: grid; gap: 12px; scroll-margin-top: 120px; }
.fc-item[data-invalid="true"] { border-color: var(--aq-error); box-shadow: inset 3px 0 0 var(--aq-error); }
.fc-item__head { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; }
.fc-item__no { display: grid; place-items: center; width: 30px; height: 30px; border-radius: var(--aq-radius-sm); background: var(--aq-surface-subtle); font-weight: 700; font-size: 14px; }
.fc-item__label { font-size: 17px; font-weight: 700; line-height: 1.4; }
.fc-item__hint { font-size: 13px; color: var(--aq-fg-secondary); }
.fc-verdict { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fc-verdict__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 56px; padding: 0 10px; border-radius: var(--aq-radius-el);
  border: 2px solid var(--aq-border); background: var(--aq-surface-subtle); color: var(--aq-fg);
  font-size: 17px; font-weight: 700;
  transition-property: transform, background-color, border-color;
  transition-duration: 160ms; transition-timing-function: var(--aq-ease-snappy);
}
.fc-verdict__btn svg { width: 20px; height: 20px; flex: none; color: var(--aq-fg-secondary); }
.fc-verdict__btn:active { transform: scale(var(--aq-press-scale)); }
.fc-verdict__btn[data-v="ok"][aria-checked="true"] { background: var(--aq-success-light); border-color: var(--aq-success); }
.fc-verdict__btn[data-v="ok"][aria-checked="true"] svg { color: var(--aq-success); }
.fc-verdict__btn[data-v="issue"][aria-checked="true"] { background: var(--aq-error-light); border-color: var(--aq-error); }
.fc-verdict__btn[data-v="issue"][aria-checked="true"] svg { color: var(--aq-error); }
.fc-issue-box { display: grid; gap: 12px; padding: 12px; border-radius: var(--aq-radius-el); background: var(--aq-surface-subtle); }
.fc-issue-box[hidden] { display: none; }
.fc-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-photo { position: relative; width: 104px; display: grid; gap: 4px; }
.fc-photo img, .fc-photo__ph { width: 104px; height: 78px; object-fit: cover; border-radius: var(--aq-radius-sm); border: 1px solid var(--aq-border); background: var(--aq-surface); }
.fc-photo[data-state="pending"] img { border: 1px dashed var(--aq-border-strong); }
.fc-photo__ph { display: grid; place-items: center; font-size: 12px; color: var(--aq-fg-secondary); }
.fc-photo__state { font-size: 12px; color: var(--aq-fg-secondary); line-height: 1.35; }
.fc-photo__state b { color: var(--aq-fg); font-weight: 600; }
.fc-photo__del { position: absolute; top: 2px; right: 2px; width: 32px; height: 32px; background: var(--aq-surface); border: 1px solid var(--aq-border); border-radius: var(--aq-radius-full); }
.fc-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.fc-file-label { cursor: pointer; }

/* 서명 */
.fc-sign { padding: 14px; display: grid; gap: 10px; }
.fc-sign__pad {
  position: relative; border: 1px dashed var(--aq-border-strong); border-radius: var(--aq-radius-el);
  background: var(--fc-sign-paper); overflow: hidden;
}
.fc-sign__pad canvas { width: 100%; height: 180px; touch-action: none; cursor: crosshair; }
.fc-sign__hint { position: absolute; left: 14px; bottom: 10px; font-size: 13px; color: var(--fc-sign-ink); opacity: .7; pointer-events: none; }
.fc-sign__pad[data-empty="false"] .fc-sign__hint { opacity: 0; }
.fc-sign__tools { display: flex; align-items: center; gap: 8px; }
.fc-sign__tools .fc-btn { margin-left: auto; }
.fc-summary-list { padding: 4px 14px; }
.fc-summary-list li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--aq-border); }
.fc-summary-list li:first-child { border-top: 0; }

/* 하단 행동 바(엄지 영역) */
.fc-actionbar {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px calc(10px + var(--safe-bottom));
  background: var(--aq-surface); border-top: 1px solid var(--aq-border);
}
.fc-actionbar__info { flex: 1; min-width: 0; font-size: 14px; color: var(--aq-fg-secondary); }
.fc-actionbar__info b { color: var(--aq-fg); }
.fc-actionbar .fc-btn--primary { min-width: 132px; }
.fc-actionbar__err { flex-basis: 100%; }

.fc-done { padding: 22px 18px; display: grid; gap: 12px; }
.fc-done__icon { width: 44px; height: 44px; color: var(--aq-success); }
.fc-done__title { font-size: 22px; font-weight: 700; }
.fc-done__actions { display: grid; gap: 8px; margin-top: 6px; }

/* ═══════════════ report ═══════════════ */
.fc-report { max-width: 820px; margin: 0 auto; padding: 16px 16px 40px; }
.fc-report__toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.fc-report__toolbar .fc-btn--primary { margin-left: auto; }
.fc-report__sheet { padding: 22px; display: grid; gap: 22px; }
.fc-report__head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 16px; padding-bottom: 16px; border-bottom: 2px solid var(--aq-fg); }
.fc-report__head h1 { font-size: 22px; font-weight: 700; }
.fc-report__id { margin-left: auto; text-align: right; font-size: 13px; color: var(--aq-fg-secondary); }
.fc-report__id b { display: block; font-size: 15px; color: var(--aq-fg); }
.fc-dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--aq-border); border-radius: var(--aq-radius-el); overflow: hidden; }
.fc-dl > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px; padding: 10px 14px; border-top: 1px solid var(--aq-border); }
.fc-dl > div:nth-child(-n+2) { border-top: 0; }
.fc-dl > div:nth-child(even) { border-left: 1px solid var(--aq-border); }
.fc-dl dt { font-size: 14px; color: var(--aq-fg-secondary); }
.fc-dl dd { margin: 0; font-size: 15px; font-weight: 600; min-width: 0; }
.fc-dl dd .fc-cell-site { font-weight: 600; }
.fc-report h2 { font-size: 17px; font-weight: 700; margin-bottom: 10px; }
.fc-rtable { width: 100%; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.fc-rtable th { text-align: left; font-size: 13px; font-weight: 600; color: var(--aq-fg-secondary); padding: 8px 10px; border-bottom: 1px solid var(--aq-fg); }
.fc-rtable td { padding: 10px; border-bottom: 1px solid var(--aq-border); vertical-align: top; min-width: 0; }
.fc-rtable .c-no { width: 56px; }
.fc-rtable th { white-space: nowrap; }
.fc-rtable .c-res { width: 82px; }
.fc-rtable tr[data-issue="true"] td:first-child { box-shadow: inset 3px 0 0 var(--aq-error); }
.fc-rtable .fc-memo { display: block; margin-top: 4px; color: var(--aq-fg-secondary); font-size: 13px; }
.fc-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fc-gallery button { display: grid; gap: 6px; padding: 0; border: 0; background: none; text-align: left; color: var(--aq-fg); border-radius: var(--aq-radius-sm); }
.fc-gallery img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--aq-radius-sm); border: 1px solid var(--aq-border); background: var(--aq-surface-subtle); }
.fc-gallery figcaption, .fc-gallery span { font-size: 13px; color: var(--aq-fg-secondary); }
.fc-sig-img { width: 260px; max-width: 100%; height: auto; border: 1px solid var(--aq-border); border-radius: var(--aq-radius-sm); background: var(--fc-sign-paper); }
.fc-report__foot { font-size: 12px; color: var(--aq-fg-secondary); padding-top: 12px; border-top: 1px solid var(--aq-border); }

/* ═══════════════ Responsive ═══════════════ */
@media (min-width: 1024px) {
  .fc-check-layout { display: grid; grid-template-columns: minmax(260px, 340px) 480px; gap: 40px; justify-content: start; padding: 0 20px; }
  .fc-reviewer { display: block; position: sticky; top: 0; align-self: start; padding: 28px 0; }
  .fc-reviewer__box { padding: 18px; display: grid; gap: 10px; }
  .fc-reviewer h2 { font-size: 16px; font-weight: 700; }
  .fc-reviewer p, .fc-reviewer li { font-size: 14px; color: var(--aq-fg-secondary); }
  .fc-reviewer ol { display: grid; gap: 6px; list-style: decimal; padding-left: 18px; }
  .fc-phone { margin: 0; border-left: 1px solid var(--aq-border); border-right: 1px solid var(--aq-border); }
}

@media (max-width: 900px) {
  .fc-site { grid-template-columns: minmax(0, 1fr) auto; }
  .fc-site__info { grid-column: 1 / -1; grid-row: 2; }
  .fc-site__end { grid-column: 2; grid-row: 1; }
}

@media (max-width: 767px) {
  .fc-main { padding: 14px 14px 40px; }
  .fc-header__inner { padding: 10px 14px; }
  .fc-brand__role { padding-left: 8px; }
  .fc-tabs .aq-tabbar-tabs { --fc-tab-w: 33.3333%; }
  .fc-tabs .aq-tab { font-size: 14px; padding: 0 4px; }

  /* 필터: 아래에서 올라오는 시트(Drawer). 같은 DOM 을 위치만 바꾼다. */
  .fc-filter-open { display: inline-flex; }
  .fc-filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; margin: 0;
    border-radius: var(--aq-radius-card) var(--aq-radius-card) 0 0; border-bottom: 0;
    padding: 16px 16px calc(16px + var(--safe-bottom));
    transform: translateY(105%); visibility: hidden;
    transition: transform var(--aq-dur-md) var(--aq-ease-emphasized), visibility 0s linear var(--aq-dur-md);
  }
  .fc-filters[data-open="true"] { transform: translateY(0); visibility: visible; transition: transform var(--aq-dur-md) var(--aq-ease-emphasized); }
  .fc-filters__sheethead { display: flex; align-items: center; width: 100%; }
  .fc-filters__sheethead p { flex: 1; font-weight: 700; font-size: 17px; }
  .fc-filters .fc-field, .fc-filters .fc-seg { width: 100%; }
  .fc-filters__dates { width: 100%; }
  .fc-filters__dates .fc-field { width: calc(50% - 4px); }
  .fc-filters__count { display: none; }
  .fc-filters__done { width: 100%; }
  .fc-sheet-backdrop[data-open="true"] { display: block; position: fixed; inset: 0; z-index: 49; background: color-mix(in srgb, var(--aq-black) 45%, transparent); }

  /* 표 → 카드 목록 */
  .fc-table, .fc-table tbody, .fc-table tr, .fc-table td { display: block; width: 100%; }
  .fc-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .fc-table colgroup { display: none; }
  .fc-table tr {
    display: grid; grid-template-columns: minmax(0, 1fr) 112px; gap: 4px 10px;
    padding: 12px 14px; border-top: 1px solid var(--aq-border);
  }
  .fc-table tbody tr:first-child { border-top: 0; }
  .fc-table td { padding: 0; border: 0; }
  .fc-table td[data-col="site"] { grid-column: 1; grid-row: 1; }
  .fc-table td[data-col="state"] { grid-column: 2; grid-row: 1; justify-self: end; }
  .fc-table td[data-col="when"] { grid-column: 1 / -1; grid-row: 2; color: var(--aq-fg-secondary); font-size: 13px; }
  .fc-table td[data-col="staff"] { display: none; }
  .fc-table td[data-col="result"] { grid-column: 1; grid-row: 3; }
  .fc-table td[data-col="link"] { grid-column: 2; grid-row: 3; justify-self: end; }
  .fc-table td[data-col="when"] .fc-id { display: inline; margin-left: 6px; }
  .fc-table td[data-col="when"] .fc-staff-inline { display: inline; }

  .fc-issue__head .fc-badge { margin-left: 0; }
  .fc-issue__actions { margin-left: 0; width: 100%; }
  .fc-issue__actions .fc-btn--primary { flex: 1; }
  .fc-issue__item { grid-template-columns: 72px minmax(0, 1fr); }
  .fc-issue__item img, .fc-thumb-ph { width: 72px; height: 54px; }

  .fc-tpl__row { grid-template-columns: 24px minmax(0, 1fr); padding: 10px 12px; }
  .fc-tpl__tools { grid-column: 2; justify-content: flex-start; }

  .fc-intro h1 { font-size: 22px; }
  .fc-intro__lead { font-size: 16px; }
  .fc-flow__item { grid-template-columns: 36px minmax(0, 1fr); padding: 16px; }
  .fc-flow__no { width: 30px; height: 30px; }

  .fc-report__sheet { padding: 16px; }
  .fc-dl { grid-template-columns: minmax(0, 1fr); }
  .fc-dl > div:nth-child(2) { border-top: 1px solid var(--aq-border); }
  .fc-dl > div:nth-child(even) { border-left: 0; }
  .fc-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .fc-staff-inline { display: none; }
  .fc-filters__done { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}

/* ═══════════════ Print (A4) ═══════════════ */
@page { size: A4; margin: 14mm; }
@media print {
  body { background: var(--aq-surface); font-size: 11pt; }
  .fc-no-print, .fc-header, .fc-toasts, .fc-report__toolbar { display: none !important; }
  .fc-report { max-width: none; padding: 0; }
  .fc-report__sheet { border: 0; padding: 0; gap: 14px; }
  .fc-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fc-gallery button, .fc-rtable tr, .fc-dl, .fc-report section { break-inside: avoid; }
  .fc-rtable tr[data-issue="true"] td:first-child { box-shadow: none; border-left: 3px solid var(--aq-error); }
  .fc-badge { background: transparent !important; border: 1px solid var(--aq-border-strong); }
}
.fc-inline { display: flex; gap: 8px; }
.fc-field > .fc-seg { justify-self: start; }
@media (max-width: 767px) { .fc-filters .fc-field > .fc-seg { justify-self: stretch; } }
