/*
 * 성장체크 화면 — easyclass-design (Soft Pastel Card)
 * 라벤더 바탕 · 흰 카드(그림자만, 테두리 없음) · 오렌지는 주 버튼·진행률에만 · 파스텔은 작은 면적(칩·썸네일)
 */
.as {
  /* 기본(aiblock)에서는 이 화면 고유의 색 — 사이트 디자인 색(관리자 › 화면 테마)과 따로. 다른 화면 테마를 고르면 아래 규칙이 테마 색으로 바꾼다 */
  --on-accent: #fff;   /* 강조색 바탕 위 글자 — 어두운 테마는 테마가 정한 색 */
  --ok-ink: #13804A;   /* 초록 글자 — 바탕이 어두우면 밝은 초록 */
  --dark: #1C1C28;   /* 진한 칩 · 단추 바탕 — 어두운 테마에서도 흰 글자가 읽히도록 글자색(--ink)과 나눔 */
  --bg-page: #EDEDF5; --bg-card: #FFFFFF; --bg-panel: #F0E7FB;
  --ink: #1C1C28; --mut: #9AA0AC; --sub: #5B5F6B;
  --accent: #F97316; --accent-soft: #FEEBDC; --ok: #2FC272; --danger: #F4506B;
  --p-blue: #D9E8F5; --p-purple: #E4D6F7; --p-pink: #F9D2DA; --p-mint: #D8F3E3; --p-yellow: #FCF0D4; --p-sky: #DDE3FF;
  --sh: 0 8px 24px rgba(28, 28, 40, .06); --r: 22px;
  color: var(--ink); font-family: var(--en-font, 'Pretendard Variable', 'Pretendard', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif);
  word-break: keep-all; -webkit-font-smoothing: antialiased;
}
/* 다른 화면 테마(개발자 페이지 › 테마)를 고르면 색 · 모서리 · 그림자가 그 테마를 따른다 (기본 aiblock 은 위 고유 색 그대로) */
body:not(.theme-aiblock) .as {
  --bg-page: var(--c-bg, #EDEDF5); --bg-card: var(--c-card, #FFFFFF); --bg-panel: var(--c-panel, #F0E7FB);
  --ink: var(--c-text, #1C1C28); --mut: var(--c-muted, #9AA0AC); --sub: color-mix(in srgb, var(--c-text, #1C1C28) 72%, var(--c-card, #fff));
  --accent: var(--c-accent, #F97316); --accent-soft: var(--c-accent-soft, #FEEBDC); --ok: var(--c-ok, #2FC272); --danger: var(--c-err, #F4506B);
  --p-blue: var(--pastel-blue, #D9E8F5); --p-purple: var(--pastel-purple, #E4D6F7); --p-pink: var(--pastel-pink, #F9D2DA); --p-mint: var(--pastel-mint, #D8F3E3); --p-yellow: var(--pastel-yellow, #FCF0D4);
  --sh: var(--shadow, 0 8px 24px rgba(28, 28, 40, .06)); --r: var(--radius, 22px);
  --ok-ink: color-mix(in srgb, var(--c-ok, #2FC272) 45%, var(--c-text, #1C1C28)); --dark: var(--c-dark, #1C1C28); --on-accent: var(--dk-on-accent, #fff);
}

.as *, .as *::before, .as *::after { box-sizing: border-box; }
.as a { color: inherit; text-decoration: none; }
.as-page { width: min(1240px, calc(100% - 48px)); margin: 0 auto; padding: 32px 0 64px; display: flex; flex-direction: column; gap: 24px; }
.as-read { max-width: 760px; }
.as-card { background: var(--bg-card); border-radius: var(--r); padding: 24px; box-shadow: var(--sh); }
.as-panel { background: var(--bg-panel); border-radius: var(--r); padding: 24px; }
.as-label { display: block; margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--mut); }
.as h1 { margin: 0; font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.as h2 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.4; }
.as h3 { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.4; }
.as p { margin: 0; line-height: 1.7; }
.as-muted { color: var(--mut); }
.as-sub { color: var(--sub); }
.as-small { font-size: 13px; }
.as-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border: 0; border-radius: 9999px;
  background: var(--accent); color: var(--on-accent, #fff) !important; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 18px color-mix(in srgb, var(--accent) 30%, transparent);
  transition: transform .15s, box-shadow .15s; white-space: nowrap; }
.as-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 22px rgba(249, 115, 22, .34); }
.as-btn--ghost { background: var(--accent-soft); color: var(--accent) !important; box-shadow: none; }
.as-btn--line { background: #fff; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px #E3E4EC; }
.as-btn--dark { background: var(--dark); box-shadow: none; color: #fff !important; }
.as-btn--sm { min-height: 38px; padding: 0 16px; font-size: 13.5px; }
.as-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.as-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 9999px; background: var(--bg-page); font-size: 12px; font-weight: 600; color: var(--sub); white-space: nowrap; }
.as-chip--area { color: var(--ink); }
.as-chip--free { background: var(--p-mint); color: #13804A; }
.as-chip--paid { background: var(--accent-soft); color: #C2410C; }
.as-alert { padding: 14px 18px; border-radius: 16px; background: var(--p-yellow); font-size: 14px; line-height: 1.6; }
.as-alert--err { background: var(--p-pink); }
.as-alert--ok { background: var(--p-mint); }
.as-note { font-size: 12.5px; line-height: 1.7; color: var(--mut); }

/* 머리 (목록 · 자료실) */
.as-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; padding: 16px 0 4px; }
.as-head p { margin-top: 10px; color: var(--sub); font-size: 15.5px; max-width: 640px; }
.as-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.as-filters a { padding: 9px 16px; border-radius: 9999px; background: #fff; font-size: 14px; font-weight: 600; color: var(--sub); box-shadow: var(--sh); }
.as-filters a.on { background: var(--dark); color: #fff; }
.as-filters .sep { width: 1px; margin: 6px 4px; background: #D9DAE3; }

/* 검사 카드 */
.as-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.as-test { position: relative; display: flex; flex-direction: column; background: var(--bg-card); border-radius: var(--r); box-shadow: var(--sh); overflow: hidden; transition: transform .2s, box-shadow .2s; }
.as-test:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(28, 28, 40, .1); }
.as-test-thumb { position: relative; aspect-ratio: 16 / 10; background: var(--p-purple); }
.as-test-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-test-thumb .as-chip { position: absolute; left: 14px; top: 14px; background: rgba(255, 255, 255, .92); }
.as-test-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.as-test-body h3 { font-size: 18px; }
.as-test-body p { font-size: 14px; color: var(--sub); line-height: 1.6; }
.as-test-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: auto; padding-top: 10px; font-size: 12.5px; color: var(--mut); }
.as-test-meta b { margin-left: auto; font-size: 15px; color: var(--ink); }
.as-test-state { position: absolute; right: 14px; top: 14px; padding: 4px 10px; border-radius: 9999px; background: var(--dark); color: #fff; font-size: 11.5px; font-weight: 700; }
.as-grid--compact .as-test-thumb { aspect-ratio: 16 / 8; }

/* 6대 영역 */
.as-areas { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.as-area { display: flex; flex-direction: column; gap: 10px; padding: 20px 18px; border-radius: 20px; background: #fff; box-shadow: var(--sh); transition: transform .2s; }
.as-area:hover { transform: translateY(-3px); }
.as-area i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-size: 19px; font-weight: 800; }
.as-area b { font-size: 16px; }
.as-area span { font-size: 13px; color: var(--sub); line-height: 1.55; }
.as-area small { margin-top: auto; font-size: 12px; font-weight: 600; color: var(--mut); }

/* 상세 */
.as-detail { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.as-detail-hero { display: flex; flex-direction: column; gap: 16px; }
.as-detail-hero .as-sub { font-size: 16px; }
.as-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 4px; }
.as-fact { display: flex; align-items: center; gap: 10px; }
.as-fact i { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-style: normal; font-size: 15px; }
.as-fact b { display: block; font-size: 14px; }
.as-fact small { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--mut); }
.as-buy { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 14px; }
.as-buy .price { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.as-buy .price small { font-size: 14px; font-weight: 600; color: var(--mut); margin-left: 4px; }
.as-buy form { display: flex; flex-direction: column; gap: 10px; }
.as-buy .as-btn { width: 100%; }
.as-who { display: flex; flex-direction: column; gap: 8px; }
.as-who label { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg-page); cursor: pointer; font-size: 14px; font-weight: 600; }
.as-who label:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent); }
.as-who input { accent-color: var(--accent); width: 18px; height: 18px; }
.as-body { font-size: 15px; line-height: 1.8; }
.as-body h2, .as-body h3 { margin: 28px 0 10px; }
.as-body ul { padding-left: 20px; } .as-body li { margin: 4px 0; }
.as-domains { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.as-domains li { list-style: none; display: flex; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-page); }
.as-domains ul { margin: 0; padding: 0; }
.as-domains b { display: block; font-size: 14.5px; }
.as-domains span { font-size: 13px; color: var(--sub); line-height: 1.55; }
.as-domains i { width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; }
.as-sample { border-radius: 18px; overflow: hidden; background: var(--bg-page); }
.as-sample img { display: block; width: 100%; height: auto; }
.as-history li { list-style: none; display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid #F1F1F5; font-size: 14px; }
.as-history ul { margin: 0; padding: 0; }

/* 응시 */
.as-take { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 24px 0 120px; display: flex; flex-direction: column; gap: 18px; }
.as-take-top { position: sticky; top: 0; z-index: 5; padding: 14px 0 12px; background: var(--bg-page); }
.as-take-top .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--sub); }
.as-take-top b { color: var(--ink); }
.as-track { position: relative; height: 8px; margin-top: 10px; border-radius: 9999px; background: #fff; overflow: hidden; }
.as-track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: inherit; background: var(--accent); transition: width .35s ease; }
.as-q { padding: 24px; border-radius: var(--r); background: #fff; box-shadow: var(--sh); scroll-margin-top: 90px; }
.as-q.is-missing { box-shadow: 0 0 0 2px var(--danger), var(--sh); }
.as-q-n { font-size: 12px; font-weight: 700; letter-spacing: .06em; color: var(--mut); }
.as-q h3 { margin: 6px 0 16px; font-size: 18px; line-height: 1.55; }
.as-opts { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 8px; }
.as-opt { position: relative; }
.as-opt input { position: absolute; opacity: 0; pointer-events: none; }
.as-opt span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 64px; padding: 10px 6px; border-radius: 16px;
  background: var(--bg-page); font-size: 13.5px; font-weight: 600; text-align: center; line-height: 1.35; cursor: pointer; transition: background .15s, box-shadow .15s, transform .1s; }
.as-opt span::before { content: ""; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #CFD1DB; transition: box-shadow .15s; }
.as-opt input:checked + span { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); }
.as-opt input:checked + span::before { box-shadow: inset 0 0 0 6px var(--accent); }
.as-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.as-opt span:active { transform: scale(.98); }
.as-take-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(237, 237, 245, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.as-take-nav .in { width: min(760px, 100%); margin: 0 auto; display: flex; gap: 10px; align-items: center; }
.as-take-nav .as-btn { flex: 1; }
.as-take-nav .as-btn--line { flex: 0 0 auto; }
.as-saved { font-size: 12px; color: var(--mut); min-width: 64px; text-align: right; }
.as-intro { display: flex; gap: 14px; align-items: flex-start; }
.as-intro i { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; font-style: normal; font-size: 20px; background: var(--p-yellow); }
[data-page][hidden] { display: none !important; }

/* 결과 */
.as-result { display: flex; flex-direction: column; gap: 24px; }
.as-res-hero { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: center; }
.as-res-hero .lead { font-size: 19px; line-height: 1.7; }
.as-res-hero .lead b { font-weight: 800; background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.as-ring { position: relative; width: 220px; aspect-ratio: 1; margin: 0 auto; }
.as-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.as-ring .t { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.as-ring .t b { display: block; font-size: 44px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.as-ring .t small { display: block; margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--mut); }
.as-bars { display: flex; flex-direction: column; gap: 16px; }
.as-bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 16px; align-items: center; }
.as-bar b { font-size: 15px; }
.as-bar .tr { position: relative; height: 12px; border-radius: 9999px; background: var(--bg-page); }
.as-bar .tr i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: var(--dark); }
.as-bar .tr i.high { background: var(--ok); } .as-bar .tr i.low { background: #F5A15C; }
.as-bar .tr em { position: absolute; top: -4px; width: 2px; height: 20px; background: #C4C6D2; }
.as-bar .bd { font-size: 13px; font-weight: 700; text-align: right; }
.as-bar .bd.high { color: #13804A; } .as-bar .bd.low { color: #C2410C; } .as-bar .bd.mid { color: var(--sub); }
.as-bar .prev { display: block; font-size: 11.5px; font-weight: 600; color: var(--mut); }
.as-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.as-split > div { padding: 20px; border-radius: 18px; background: var(--bg-page); }
.as-split h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.as-split h3 i { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 14px; }
.as-split p { font-size: 14.5px; color: var(--sub); }
.as-dom { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; padding: 22px 0; }
.as-dom + .as-dom { border-top: 2px solid var(--bg-page); }
.as-dom .num { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.as-dom h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.as-dom p { margin-top: 6px; font-size: 14.5px; color: var(--sub); }
.as-dom .detail { margin-top: 12px; padding: 14px 16px; border-radius: 14px; background: var(--bg-page); font-size: 14px; line-height: 1.75; }
.as-dom ul { margin: 10px 0 0; padding-left: 18px; font-size: 14px; color: var(--sub); line-height: 1.7; }
.as-steps { display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.as-steps li { list-style: none; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.65; counter-increment: s; }
.as-steps ol { margin: 0; padding: 0; }
.as-steps li::before { content: counter(s); width: 26px; height: 26px; flex: none; border-radius: 50%; background: var(--dark); color: #fff; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; margin-top: 1px; }
.as-recs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.as-rec { display: flex; flex-direction: column; border-radius: 18px; background: var(--bg-page); overflow: hidden; transition: transform .2s; }
.as-rec:hover { transform: translateY(-3px); }
.as-rec .th { aspect-ratio: 16 / 10; background: var(--p-blue); }
.as-rec .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-rec .bd { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1; }
.as-rec .bd b { font-size: 14.5px; line-height: 1.45; }
.as-rec .bd span { font-size: 12.5px; color: var(--sub); line-height: 1.5; }
.as-rec .bd small { margin-top: auto; padding-top: 6px; font-size: 12px; font-weight: 700; color: var(--ink); }
.as-rec .why { font-size: 12px; color: #C2410C; font-weight: 600; }
.as-disc { display: flex; gap: 12px; padding: 18px 20px; border-radius: 18px; background: #fff; box-shadow: var(--sh); font-size: 13px; line-height: 1.7; color: var(--sub); }
.as-disc i { font-style: normal; font-size: 18px; }
.as-upsell { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; }
.as-res-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.as-compare td, .as-compare th { padding: 10px 12px; text-align: left; font-size: 14px; }
.as-compare { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.as-compare tbody td { background: var(--bg-page); }
.as-compare tbody td:first-child { border-radius: 12px 0 0 12px; } .as-compare tbody td:last-child { border-radius: 0 12px 12px 0; }
.as-up { color: #13804A; font-weight: 700; } .as-down { color: #C2410C; font-weight: 700; }

/* MY */
.as-my { display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
.as-my .as-card { padding: 20px; }
.as-my-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.as-my-head a { font-size: 13px; font-weight: 600; color: var(--sub); }
.as-list { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; }
.as-list li { list-style: none; display: flex; align-items: center; gap: 12px; }
.as-list .th { width: 48px; height: 48px; flex: none; border-radius: 14px; display: grid; place-items: center; font-size: 18px; overflow: hidden; }
.as-list .th img { width: 100%; height: 100%; object-fit: cover; }
.as-list .tx { flex: 1; min-width: 0; }
.as-list .tx b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-list .tx small { font-size: 12.5px; color: var(--mut); }
.as-timeline { position: relative; margin: 0; padding: 0 0 0 22px; }
.as-timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: #E4E5EE; }
.as-timeline li { position: relative; list-style: none; padding: 0 0 18px; }
.as-timeline li::before { content: attr(data-i); position: absolute; left: -22px; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px #CFD1DB; font-size: 9px; display: grid; place-items: center; }
.as-timeline li.k-test_done::before, .as-timeline li.k-retest::before { box-shadow: 0 0 0 2px var(--accent); }
.as-timeline li.k-course_done::before { box-shadow: 0 0 0 2px var(--ok); }
.as-timeline b { font-size: 14px; } .as-timeline small { display: block; font-size: 12px; color: var(--mut); }
.as-map { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.as-map > div { padding: 16px; border-radius: 16px; background: var(--bg-page); min-height: 112px; }
.as-map > div b { display: block; font-size: 14px; margin-bottom: 6px; }
.as-map > div.empty { opacity: .6; }
.as-map > div a { display: block; font-size: 13px; color: var(--sub); line-height: 1.6; }
.as-prof { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.as-prof > div { padding: 18px; border-radius: 18px; background: var(--bg-page); display: flex; flex-direction: column; gap: 6px; }
.as-prof .av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--p-purple); }
.as-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.as-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--sub); }
.as-form input, .as-form select { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--bg-page); font: inherit; font-size: 15px; color: var(--ink); }
.as-form .full { grid-column: 1 / -1; }
.as-consent { display: flex !important; flex-direction: row !important; align-items: flex-start; gap: 10px; padding: 14px 16px; border-radius: 14px; background: var(--p-yellow); font-weight: 500 !important; color: var(--ink) !important; line-height: 1.6; }
.as-consent input { min-height: 0 !important; width: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }

/* 자료실 */
.as-res-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.as-resource { display: flex; flex-direction: column; background: #fff; border-radius: 20px; box-shadow: var(--sh); overflow: hidden; scroll-margin-top: 100px; }
.as-resource .th { aspect-ratio: 4 / 3; background: var(--p-yellow); }
.as-resource .th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-resource .bd { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; flex: 1; }
.as-resource .bd b { font-size: 15.5px; line-height: 1.45; }
.as-resource .bd p { font-size: 13px; color: var(--sub); line-height: 1.6; }
.as-resource .ft { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; }
.as-resource:target { box-shadow: 0 0 0 3px var(--accent), var(--sh); }

/* 인쇄 */
@media print {
  .enh, .en-header, header, footer, .as-take-nav, .as-res-actions, .enm-bar, .no-print { display: none !important; }
  body { background: #fff !important; }
  .as-card, .as-disc { box-shadow: none !important; border: 1px solid #E5E6EE; break-inside: avoid; }
  .as-page { width: 100%; padding: 0; }
}

@media (max-width: 1080px) {
  .as-areas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .as-recs, .as-res-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .as-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-detail, .as-res-hero, .as-head { grid-template-columns: minmax(0, 1fr); }
  .as-buy { position: static; }
  .as-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-bar { grid-template-columns: 110px minmax(0, 1fr) 92px; gap: 10px; }
  .as-map { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .as-page { width: calc(100% - 32px); padding: 20px 0 48px; gap: 16px; }
  .as-card, .as-panel { padding: 20px; }
  .as-grid, .as-split, .as-domains, .as-form, .as-upsell { grid-template-columns: minmax(0, 1fr); }
  .as-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .as-recs, .as-res-grid { grid-template-columns: minmax(0, 1fr); }
  .as-opts { grid-template-columns: minmax(0, 1fr); --n: 1 !important; }
  .as-opt span { flex-direction: row; justify-content: flex-start; min-height: 52px; padding: 0 16px; font-size: 15px; }
  .as-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .as-bar .tr { grid-column: 1 / -1; order: 3; }
  .as-res-actions .as-btn, .as-upsell .as-btn { width: 100%; }
  .as-q { padding: 20px; }
  .as-q h3 { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .as-test, .as-area, .as-rec, .as-btn { transition: none; } }

/* ── 리포트 고도화 (2026-10) — 한눈에 · 전문가 해석 · 강점 발전 · 성장 처방 · 4주 로드맵 · 응답에서 보인 모습 · 읽는 법 ── */
.as-hero-keys { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.as-hero-keys div { padding: 10px 16px; border-radius: 16px; background: var(--bg-page); }
.as-hero-keys small { display: block; font-size: 11.5px; font-weight: 600; color: var(--mut); }
.as-hero-keys b { font-size: 15px; }
.as-ring-band { display: inline-block; margin-top: 8px; padding: 3px 10px; border-radius: 9999px; font-size: 11.5px; font-weight: 700; background: var(--bg-page); color: var(--sub); }
.as-ring-band.high { background: var(--p-mint); color: #13804A; } .as-ring-band.low { background: var(--accent-soft); color: #C2410C; }
.as-glance { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 28px; align-items: center; }
.as-glance.no-radar { grid-template-columns: minmax(0, 1fr); }
.as-radar-svg { width: 100%; height: auto; overflow: visible; }
.as-bar-g { display: flex; flex-direction: column; gap: 8px; }
.as-facets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 18px; padding-left: 166px; }
.as-facet { display: grid; grid-template-columns: minmax(0, 1fr) 70px 26px; gap: 8px; align-items: center; font-size: 12.5px; color: var(--sub); }
.as-facet span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-facet .tr { position: relative; height: 6px; border-radius: 9999px; background: var(--bg-page); }
.as-facet .tr i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; background: #B9A6E8; }
.as-facet small { font-weight: 700; color: var(--ink); text-align: right; }
.as-insights { display: grid; gap: 12px; }
.as-pattern { padding: 18px 20px; border-radius: 18px; background: var(--bg-page); }
.as-pattern.is-key { background: var(--bg-panel); }
.as-pattern .tag { display: inline-block; margin-bottom: 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: #6D4AE0; }
.as-pattern h3 { margin-bottom: 6px; }
.as-pattern p { font-size: 14.5px; color: var(--sub); }
.as-pattern .tip { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: #fff; color: var(--ink); }
.as-pattern .tip b { color: #C2410C; margin-right: 6px; }
.as-deep { padding: 22px 0; }
.as-deep + .as-deep { border-top: 2px solid var(--bg-page); }
.as-deep header { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; margin-bottom: 12px; }
.as-deep .num { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 18px; font-weight: 800; }
.as-deep h3 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.as-deep .lead { font-size: 15.5px; font-weight: 600; line-height: 1.7; }
.as-deep .insight { margin-top: 10px; font-size: 14.5px; line-height: 1.85; color: var(--sub); }
.as-deep h4 { margin: 18px 0 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; color: var(--ink); }
.as-plan { margin: 0; padding: 0; display: grid; gap: 10px; }
.as-plan-i { list-style: none; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--bg-page); }
.as-plan-i .no { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--dark); color: #fff; }
.as-plan-i .no.up { background: #2FC272; } .as-plan-i .no.rx { background: var(--accent); }
.as-plan-i b { display: block; font-size: 15px; line-height: 1.5; }
.as-plan-i p { margin-top: 4px; font-size: 14px; line-height: 1.75; color: var(--sub); }
.as-plan-i .why { font-size: 13px; color: var(--mut); }
.as-plan-i .why em { font-style: normal; font-weight: 700; color: #6D4AE0; margin-right: 6px; }
.as-scripts { margin: 0; padding: 0; display: grid; gap: 8px; }
.as-scripts li { list-style: none; position: relative; padding: 12px 16px 12px 40px; border-radius: 16px; background: #FFF8F1; font-size: 14.5px; line-height: 1.6; }
.as-scripts li::before { content: "\201C"; position: absolute; left: 14px; top: 4px; font-size: 28px; font-weight: 800; color: var(--accent); }
.as-shadow { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--p-sky); }
.as-shadow.is-warn { background: var(--p-yellow); }
.as-shadow b { font-size: 13px; }
.as-shadow p { margin-top: 4px; font-size: 14px; color: var(--sub); }
.as-facet-note { margin-top: 10px; padding: 10px 14px; border-radius: 12px; background: var(--bg-panel); font-size: 13.5px; color: var(--sub); }
.as-age { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--p-mint); }
.as-age b { font-size: 13.5px; } .as-age p { margin-top: 4px; font-size: 14px; color: #24553A; }
.as-age-all, .as-more, .as-refs { margin-top: 14px; }
.as-age-all summary, .as-more summary, .as-refs summary { cursor: pointer; font-size: 13.5px; font-weight: 700; color: #6D4AE0; }
.as-age-all > div { margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: var(--bg-page); }
.as-age-all b { font-size: 13px; } .as-age-all p { font-size: 13.5px; color: var(--sub); margin-top: 2px; }
.as-more .as-plan { margin-top: 10px; }
.as-road { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.as-road li { list-style: none; display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: 18px; background: var(--bg-page); }
.as-road li.strength { background: var(--p-mint); }
.as-road .wk { align-self: flex-start; padding: 3px 10px; border-radius: 9999px; background: var(--dark); color: #fff; font-size: 12px; font-weight: 700; }
.as-road small { font-size: 12px; color: var(--mut); font-weight: 600; }
.as-road b { font-size: 14.5px; line-height: 1.5; }
.as-road p { font-size: 13px; line-height: 1.65; color: var(--sub); }
.as-moments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.as-moments h3 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.as-moments h3 i { width: 28px; height: 28px; border-radius: 10px; display: grid; place-items: center; font-style: normal; font-size: 14px; }
.as-mo { padding: 12px 16px; border-radius: 14px; background: var(--bg-page); margin-bottom: 8px; }
.as-mo p { font-size: 14.5px; }
.as-mo small { font-size: 12px; color: var(--mut); }
.as-mo small b { color: var(--ink); }
.as-rel { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 9999px; }
.as-rel.up { background: var(--p-mint); color: #13804A; } .as-rel.down { background: var(--accent-soft); color: #C2410C; }
.as-dom .why { font-size: 13.5px; }
.as-dom .why b { color: #6D4AE0; margin-right: 4px; }
.as-method p { font-size: 14px; color: var(--sub); margin-top: 8px; }
.as-method p b { color: var(--ink); }
.as-quality { margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--p-mint); font-size: 14px; }
.as-quality.check { background: var(--p-yellow); }
.as-quality ul { margin: 6px 0 0; padding-left: 18px; color: var(--sub); line-height: 1.7; }
.as-quality p { margin-top: 4px; }
.as-refs ol { margin: 10px 0 0; padding-left: 20px; font-size: 12.5px; line-height: 1.75; color: var(--sub); }
@media (max-width: 900px) {
  .as-glance { grid-template-columns: minmax(0, 1fr); }
  .as-radar { max-width: 360px; margin: 0 auto; width: 100%; }
  .as-facets { padding-left: 0; }
  .as-road { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .as-road, .as-moments { grid-template-columns: minmax(0, 1fr); }
  .as-plan-i { padding: 12px 14px; }
  .as-hero-keys div { flex: 1 1 40%; }
}
