/* 대시보드형 인터페이스(시안 A) — 밝은 바탕: 다른 페이지 히어로와 같은 배경(--hero-bg + hero-deco), 색은 토큰만(다크 모드 자동) */
.if-a.ol-fit { background: var(--hero-bg, var(--bg)); color: var(--text); }
.if-a > .container { position: relative; z-index: 1; }
.if-a h1 { color: var(--text); }
.if-a .ol-sub { color: var(--text-2); }
.if-a .ol-crumb { color: var(--text-2); }
.if-a .ol-crumb [aria-current] { color: var(--text); }
.if-a .oa-cap { color: var(--text-2); }
.if-a .oa-menu { border-top-color: var(--line); }
.if-a .oa-i { border-bottom-color: var(--line); color: var(--text-2); border-radius: 0; transition: background .25s; }
.if-a .oa-i:hover .oa-t, .if-a .oa-i[aria-pressed="true"] .oa-t { color: var(--text); }
.if-a .oa-i[aria-pressed="true"] { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 85%); }
.if-a .oa-d { color: var(--text-2); }
.if-a .st { border-color: var(--line); box-shadow: var(--shadow-lg); }
.if-a .oa-foot { border-top-color: var(--line); }
.if-a .oa-foot h2 { color: var(--text); }
.if-a .oa-foot p { color: var(--text-2); }

/* 클릭 유도 */
.if-a .oa-cap { margin-bottom: 6px; }
.oa-hint { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 clamp(8px, 1.4vh, 14px); padding: 5px 12px 5px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); color: var(--accent); font-size: clamp(.75rem, 1.6vh, .8125rem); font-weight: 700; transition: opacity .4s; }
.oa-hint svg { width: 16px; height: 16px; flex: none; animation: oa-tap 1.4s ease-in-out infinite; }
.oa-hint.is-done { opacity: .6; }
.oa-hint.is-done svg { animation: none; }
@keyframes oa-tap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.if-a .oa-i { cursor: pointer; padding-inline: 8px; margin-inline: -8px; width: calc(100% + 16px); border-radius: 10px; }
.if-a .oa-i:hover { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.if-a .oa-i:hover .st-go { opacity: 1; color: var(--accent); }
/* 번호 = 누를 수 있는 동그라미 */
.if-a .oa-n { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line-strong, var(--line)); font-size: 11px; color: var(--text-2); transition: background .25s, border-color .25s, color .25s; }
.if-a .oa-i:hover .oa-n { border-color: var(--accent); color: var(--accent); }
.if-a .oa-i[aria-pressed="true"] .oa-n { background: var(--grad, var(--accent)); border-color: transparent; color: #fff; }
@media (prefers-reduced-motion: reduce) { .oa-hint svg { animation: none; } }

/* 배치: 위 = 제목·안내(.oa-top), 가운데 = 1~5 목록(왼쪽) | 영상(오른쪽) 한 줄로 묶음(.oa-row, 윗선 맞춤), 아래 = .oa-foot */
.if-a .oa { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto; }
.if-a .oa-top { display: flex; flex-direction: column; align-items: flex-start; }
.if-a .oa-top h1 { margin-bottom: clamp(4px, .8vh, 8px); }
.if-a .oa-top .oa-cap { margin-top: clamp(10px, 2.2vh, 26px); }
.if-a .oa-top .oa-hint { margin-bottom: 0; }
.if-a .oa-row { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(28px, 3.6vw, 64px); align-items: start; min-height: 0; }
.if-a .oa-row .oa-menu { align-self: start; }
.if-a .oa-row .oa-r { align-self: stretch; place-items: start end; }
@media (max-width: 1100px) {
  .if-a .oa { grid-template-rows: none; }
  .if-a .oa-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}

/* 1~5 설명은 누르지 않아도 항상 보임(고른 단계만 색 강조) */
.if-a .oa-d { display: block; margin-top: 2px; color: var(--text-3, var(--text-2)); opacity: .85; }
.if-a .oa-i[aria-pressed="true"] .oa-d { color: var(--text-2); opacity: 1; }
.if-a .oa-i { padding-block: clamp(6px, 1.1vh, 11px); }
/* 세로가 낮은 화면: 한 화면에 맞추지 않고 내용만큼 늘어남(목록이 하단과 겹치지 않게) */
@media (min-width: 1101px) and (max-height: 800px) {
  .if-a.ol-fit { min-height: 0; }
  .if-a .oa { height: auto; grid-template-rows: none; }
  .if-a .oa-row .oa-r { container-type: inline-size; height: auto; }
  .if-a .oa-row .oa-r .st { width: 100%; }
}

/* 배경 설명 + 지금 샘플 보기: 제목 아래로 올림 */
.if-a .oa { grid-template-rows: auto minmax(0, 1fr); }
.if-a .oa-top .oa-foot { align-self: stretch; margin-top: clamp(12px, 2.4vh, 28px); padding: clamp(12px, 2vh, 20px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); align-items: center; }
@media (min-width: 1101px) and (max-height: 800px) { .if-a .oa { grid-template-rows: none; } }

/* ===== 개선(2026-11-05 미리보기 반영): 문구·안내 한 줄, 진행 막대, 재생 아이콘, 글자 단계, 모바일 영상 위 ===== */
/* 1) 문구 + 안내 한 줄, 5) 오른쪽 끝에 샘플 보기 */
.if-a .oa-caprow { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; align-self: stretch; margin-top: clamp(10px, 2.2vh, 26px); }
.if-a .oa-caprow-l { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; }
.if-a .oa-top .oa-cap { margin: 0; }
.if-a .oa-cta { gap: 6px; }
.if-a .oa-cta svg { width: 14px; height: 14px; }
@media (min-width: 1101px) { .if-a .oa-top .oa-foot { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
/* 3) 안내 알약: 보라 계열 */
.if-a .oa-hint { color: #6a4cff; background: color-mix(in srgb, #7c5cff 9%, var(--surface)); border-color: color-mix(in srgb, #7c5cff 30%, transparent); }
[data-theme="dark"] .if-a .oa-hint { color: #b9a8ff; }
/* 4) 재생 아이콘: 고른 항목·마우스 올린 항목만 또렷하게 */
.if-a .st-go { width: 12px; height: 12px; opacity: .25; }
.if-a .oa-i:hover .st-go, .if-a .oa-i[aria-pressed="true"] .st-go { opacity: 1; color: var(--accent); }
/* 2) 영상 바로 아래(영상 밖) 5칸 진행 막대: 지난 단계 = 가득, 지금 단계 = 재생 시간만큼, 다음 단계 = 빈 칸 */
.if-a .oa-seg { position: absolute; z-index: 2; display: flex; gap: 6px; pointer-events: none; }
.if-a .oa-seg i { flex: 1; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--text) 12%, transparent); overflow: hidden; }
.if-a .oa-seg i::before { content: ""; display: block; height: 100%; background: var(--grad, var(--accent)); transform: scaleX(var(--p, 0)); transform-origin: left; }
@media (max-width: 1100px) { .if-a .oa-row .oa-r { padding-bottom: 14px; } }
/* 시선 순서 A) 배경 설명 두 문단의 제목을 키우고 앞에 짧은 색 막대 */
.if-a .oa-top .oa-foot h2 { position: relative; padding-left: 14px; margin-bottom: 8px; font-size: clamp(1.0625rem, 2.5vh, 1.3125rem); font-weight: 800; letter-spacing: -.02em; }
.if-a .oa-top .oa-foot h2::before { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 4px; border-radius: 4px; background: var(--grad, var(--accent)); }
.if-a .oa-top .oa-foot p { padding-left: 14px; }
/* 시선 순서 B) 연결 문구를 목록의 제목처럼: 진하고 크게 */
.if-a .oa-top .oa-cap { font-size: clamp(1.0625rem, 2.6vh, 1.375rem); font-weight: 800; letter-spacing: -.02em; color: var(--text); }
/* 시선 순서 C) 샘플 보기: 테두리 보조 버튼(영상보다 덜 튀게) */
.if-a .oa-cta { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); color: var(--text); }
.if-a .oa-cta:hover { border-color: var(--accent); color: var(--accent); }
/* 처음 재생 전: 진행 막대 1번 칸이 천천히 반짝 */
.if-a .oa-seg.is-wait i:first-child { animation: oa-wait 1.1s ease-in-out infinite; }
@keyframes oa-wait { 0%, 100% { background: color-mix(in srgb, var(--text) 12%, transparent); } 50% { background: color-mix(in srgb, var(--accent) 45%, transparent); } }
@media (prefers-reduced-motion: reduce) { .if-a .oa-seg.is-wait i:first-child { animation: none; } }
/* 글자 크기 단계: 1 제목(h1) > 2 목록 제목(이를 위해…) > 3 배경 소제목 > 본문 */
.if-a .oa-top .oa-foot { align-items: start; }
.if-a .oa-top .oa-foot h2 { font-size: clamp(1.0625rem, 2.2vh, 1.25rem); font-weight: 700; margin-bottom: 6px; color: var(--text); }
.if-a .oa-top .oa-foot h2::before { width: 3px; }
.if-a .oa-top .oa-foot p { font-size: clamp(.8125rem, 1.7vh, .875rem); }
.if-a .oa-top .oa-cap { font-size: clamp(1.25rem, 3.3vh, 1.75rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.3; }
/* 7) 모바일: 영상을 목록 위로 */
@media (max-width: 1100px) {
  .if-a .oa-row .oa-r { order: -1; }
  .if-a .oa-caprow { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 600px) { .if-a .oa-cta { align-self: stretch; justify-content: center; } }

/* 영상 자막 = 목록 둘째 줄(설명 문장). 아래 가운데, 유리 느낌. 재생 전·장면 시작 STEP 제목(0~1.7초) 동안은 숨김 */
.if-a .st .oa-sub { position: absolute; left: 50%; bottom: 14px; z-index: 2; width: max-content; max-width: min(86%, 760px); margin: 0; transform: translateX(-50%); padding: 7px 16px 8px; border-radius: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .06) 55%), rgba(22, 26, 52, .34); border: 1px solid rgba(255, 255, 255, .38); color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .5); font-size: clamp(.8125rem, 1.15vw, 1rem); font-weight: 600; line-height: 1.5; text-align: center; word-break: keep-all; text-wrap: balance; backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 30px rgba(10, 12, 30, .25); pointer-events: none; transition: opacity .35s ease; }
.if-a .st .oa-sub.is-intro { opacity: 0; }
.if-a .st .st-btn { z-index: 3; }
@media (max-width: 600px) { .if-a .st .oa-sub { bottom: 8px; left: 8px; max-width: calc(100% - 64px); transform: none; padding: 5px 10px 6px; font-size: 12px; text-align: left; } }
