/* 기능 상세 페이지(대시보드, AI 에이전트, 소재 기획, 경쟁사 리서치)의 화면 예시 그림. 틀과 글 스타일은 /guide/guide.css를 그대로 씀.
   색은 검정과 회색만 쓰고, 그림마다 "화면 예시입니다. 수치는 가상입니다."를 붙임 */
.fx { margin: 24px 0 0; padding: clamp(12px, 3vw, 20px); border: 1px solid var(--rule); border-radius: 4px; background: #F6F8F8; }
.fx figcaption { margin-top: 12px; font-size: 0.8125rem; color: var(--pencil); line-height: 1.6; }
.fx ul, .fx ol, .fx dl { list-style: none; margin: 0; padding: 0; }
.fx li + li { margin-top: 0; }
.fx p, .fx dd, .fx dt { margin: 0; }
.fx-win { background: #fff; border: 1px solid #E3E7E9; border-radius: 10px; overflow: hidden; font-size: 0.875rem; line-height: 1.5; color: #0B0E10; }
.fx-win + .fx-win { margin-top: 10px; }
.fx-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid #E3E7E9; font-weight: 600; }
.fx-top span { font-size: 0.75rem; font-weight: 400; color: #63717A; }
.fx-body { padding: 14px; }
.fx-muted { color: #63717A; }
.fx-small { font-size: 0.75rem; }
.fx-btn { display: inline-block; padding: 4px 10px; border-radius: 6px; background: #181D20; color: #fff; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.fx-btn.is-ghost { background: #fff; color: #181D20; box-shadow: inset 0 0 0 1px #B8C0C4; }
.fx-tag { display: inline-block; padding: 1px 8px; border-radius: 99px; background: #EEF1F1; font-size: 0.6875rem; font-weight: 600; white-space: nowrap; }
.fx-tag.is-ink { background: #181D20; color: #fff; }

/* 숫자 타일, 알림, 막대 */
.fx-alert { padding: 10px 12px; border-radius: 8px; background: #F6EDE6; }
.fx-alert b { display: block; font-weight: 600; }
.fx-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.fx-kpis dt { font-size: 0.75rem; color: #63717A; }
.fx-kpis dd { font-size: 1.125rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.fx-kpis dd + dd { font-size: 0.6875rem; font-weight: 400; letter-spacing: 0; color: #63717A; }
.fx-bars { display: flex; align-items: flex-end; gap: 3px; height: 88px; margin-top: 14px; border-bottom: 1px solid #E3E7E9; }
.fx-bars i { flex: 1; background: #181D20; border-radius: 2px 2px 0 0; }
.fx-bars i.is-soft { background: #C9CDCF; }
.fx-axis { display: flex; justify-content: space-between; margin-top: 4px; font-size: 0.6875rem; color: #63717A; }

/* 줄 목록(제안, 예약 작업, 변화 기록) */
.fx-rows li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid #E3E7E9; }
.fx-rows li:first-child { border-top: 0; padding-top: 0; }
.fx-rows li:last-child { padding-bottom: 0; }
.fx-rows b { display: block; font-weight: 600; }
.fx-rows small { display: block; font-size: 0.75rem; color: #63717A; }
.fx-rows .fx-acts { display: flex; gap: 6px; flex: none; }
.fx-rows time { flex: none; width: 3.4em; font-size: 0.75rem; color: #63717A; }
.fx-rows time + div { flex: 1; }

/* 메뉴 묶음, 흐름, 두 칸 비교, 조각 격자 */
.fx-menu { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.fx-menu > li { padding: 12px; border: 1px solid #E3E7E9; border-radius: 10px; background: #fff; font-size: 0.875rem; line-height: 1.5; }
.fx-menu small { display: block; margin-bottom: 6px; font-size: 0.6875rem; color: #63717A; }
.fx-menu span { display: block; padding: 3px 0; font-weight: 500; }
.fx-flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; counter-reset: fx; }
.fx-flow li { counter-increment: fx; padding: 12px 10px; border: 1px solid #E3E7E9; border-radius: 10px; background: #fff; font-size: 0.8125rem; line-height: 1.45; color: #63717A; }
.fx-flow li::before { content: counter(fx); display: flex; align-items: center; justify-content: center; width: 20px; height: 20px; margin-bottom: 8px; border-radius: 50%; background: #181D20; color: #fff; font-size: 0.6875rem; font-weight: 700; }
.fx-flow b { display: block; color: #0B0E10; font-size: 0.875rem; font-weight: 600; }
.fx-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fx-two > div { padding: 14px; border: 1px solid #E3E7E9; border-radius: 10px; background: #fff; }
.fx-two small { display: block; font-size: 0.75rem; color: #63717A; }
.fx-two strong { display: block; margin: 2px 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.fx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fx-grid li { padding: 8px; border: 1px solid #E3E7E9; border-radius: 10px; background: #fff; font-size: 0.75rem; font-weight: 600; }
.fx-grid li::before { content: ""; display: block; aspect-ratio: 4 / 3; margin-bottom: 6px; border-radius: 6px; background: #EEF1F1; }
.fx-grid li.is-src { background: #181D20; color: #fff; border-color: #181D20; }
.fx-grid li.is-src::before { background: #3A4145; }

/* 대화 */
.fx-chat { display: grid; gap: 10px; }
.fx-me { justify-self: end; max-width: 86%; padding: 7px 12px; border-radius: 14px 14px 4px 14px; background: #181D20; color: #fff; }
.fx-ai { max-width: 92%; }
.fx-who { margin-bottom: 2px; font-size: 0.6875rem; color: #63717A; }
.fx-card { margin-top: 6px; padding: 12px; border: 1px solid #E3E7E9; border-radius: 10px; }
.fx-card b { font-weight: 600; }
.fx-card .fx-acts { display: flex; gap: 6px; margin-top: 10px; }

/* 장면별 유지율, 가격 지수, 행사 달력 */
.fx-ret li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) 3em; align-items: center; gap: 10px; padding: 6px 0; font-size: 0.8125rem; }
.fx-ret i { display: block; height: 12px; border-radius: 2px; background: #181D20; }
.fx-ret li.is-drop i { background: #C9CDCF; }
.fx-ret span:last-child { text-align: right; font-weight: 600; }
.fx-heat { width: 100%; min-width: 0; border-collapse: separate; border-spacing: 4px; font-size: 0.8125rem; line-height: 1.4; }
.fx-heat th, .fx-heat td { padding: 8px 6px; border: 0; text-align: center; }
.fx-heat thead th { font-weight: 600; color: #63717A; border: 0; }
.fx-heat tbody th { text-align: left; font-weight: 600; }
.fx-heat td { border-radius: 6px; background: #EEF1F1; font-weight: 600; }
.fx-heat td.is-us { background: #fff; box-shadow: inset 0 0 0 1px #B8C0C4; }
.fx-heat td.is-hi1 { background: #C9CDCF; }
.fx-heat td.is-hi2 { background: #63717A; color: #fff; }
.fx-heat td.is-hi3 { background: #181D20; color: #fff; }
.fx-heat td.is-lo { background: #fff; box-shadow: inset 0 0 0 2px #181D20; }
.fx-heat td.is-none { background: none; color: #63717A; font-weight: 400; }
.fx-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 0.75rem; color: #63717A; }
.fx-key i { display: inline-block; width: 12px; height: 12px; margin-right: 5px; border-radius: 3px; vertical-align: -2px; background: #EEF1F1; }
.fx-cal li { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; font-size: 0.8125rem; }
.fx-cal .fx-track { position: relative; height: 24px; border-radius: 4px; background: repeating-linear-gradient(to right, #EEF1F1 0 1px, transparent 1px 25%); }
.fx-cal .fx-track span { position: absolute; top: 3px; bottom: 3px; padding: 0 6px; border-radius: 4px; background: #181D20; color: #fff; font-size: 0.6875rem; font-weight: 600; line-height: 18px; white-space: nowrap; overflow: hidden; }
.fx-cal .fx-track span.is-soft { background: #C9CDCF; color: #0B0E10; }
.fx-vp { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fx-vp > li { padding: 12px; border: 1px solid #E3E7E9; border-radius: 10px; background: #fff; font-size: 0.8125rem; line-height: 1.5; }
.fx-vp b { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; }
.fx-vp dt { margin-top: 8px; font-size: 0.6875rem; color: #63717A; }

/* 기능 페이지끼리 오가는 목록 */
.feat-nav { margin-top: 52px; padding-top: 22px; border-top: 1px solid var(--rule); }
.feat-nav h2 { margin: 0; padding: 0; border: 0; font-size: 1rem; }

@media (max-width: 640px) {
  .fx-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fx-flow { grid-template-columns: 1fr; }
  .fx-flow li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; }
  .fx-flow li::before { grid-row: span 2; margin: 0; }
  .fx-two, .fx-vp { grid-template-columns: 1fr; }
  .fx-rows li { flex-wrap: wrap; }
  .fx-heat { font-size: 0.75rem; border-spacing: 2px; }
  .fx-heat th, .fx-heat td { padding: 6px 3px; }
  .fx-ret li { grid-template-columns: 6em minmax(0, 1fr) 2.6em; }
}
