/* ══════════════════════════════════════════════════════════════════
   옥션랩 — 클래시 스타일 리디자인 + 모션 레이어 (auction-lab.html 전용)
   · 1부: 화면 스타일 '현재스타일'(data-ui=current)일 때만 겉모양을 바꿉니다.
          (맥·구글·클로드·어둠 스타일은 기존 모습 그대로)
   · 2부: 움직임(커서·기울기·등장·카운트업)은 모든 스타일에 적용되며,
          auction-lab-motion.js 가 html 에 mo-* 클래스를 붙였을 때만 켜집니다.
   · 기능(요소 id, data-action, 폼 흐름)은 건드리지 않습니다.
   ══════════════════════════════════════════════════════════════════ */

/* ───────────── 1부 · 클래시 스타일 (현재스타일 전용) ───────────── */
html[data-ui='current'] {
  --ink: #11181c;
  --muted: #6b7280;
  --line: #e9ebee;
  --paper: #ffffff;
  --soft: #f5f6f7;
  --coral: #f04829;
  --coral-dark: #c9361b;
  --night: #0e1316;
  --radius-lg: 24px;
  --radius-md: 16px;
  --shadow-soft: 0 1px 2px rgba(17,24,28,.04), 0 12px 32px rgba(17,24,28,.06);
  --shadow-lift: 0 2px 4px rgba(17,24,28,.05), 0 24px 56px rgba(17,24,28,.12);
}
html[data-ui='current'][data-font='pretendard'] body { font-family: 'Pretendard Variable', Pretendard, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-ui='current'] body { background: #fff; color: var(--ink); -webkit-font-smoothing: antialiased; }
html[data-ui='current'] :is(.app-shell, .report-page) { background: #fff; }

/* 머리띠 */
html[data-ui='current'] :is(.topbar, .report-top) { height: 76px; background: rgba(255,255,255,.82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid rgba(17,24,28,.06); transition: box-shadow .35s ease, background .35s ease; }
html.mo-scrolled[data-ui='current'] :is(.topbar, .report-top) { box-shadow: 0 10px 30px rgba(17,24,28,.07); background: rgba(255,255,255,.92); }
html[data-ui='current'] .brand-mark { border-radius: 12px; background: var(--ink); font-family: inherit; font-weight: 900; font-size: 19px; letter-spacing: -.04em; }
html[data-ui='current'] .brand b { font-size: 17px; font-weight: 800; }
html[data-ui='current'] .brand small { color: #9aa1a9; letter-spacing: .18em; font-weight: 800; }
html[data-ui='current'] :is(.api-button, .study-nav-button, .style-trigger, .back-to-edit) { border-radius: 999px; border-color: #e3e6e9; background: #fff; color: var(--ink); font-weight: 800; transition: background .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease; }
html[data-ui='current'] :is(.api-button, .study-nav-button, .style-trigger, .back-to-edit):hover { border-color: var(--ink); box-shadow: 0 6px 18px rgba(17,24,28,.08); }
html[data-ui='current'] .api-button { padding: 10px 16px; font-size: 12px; }
html[data-ui='current'] .api-button strong { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 999px; background: #fff1ed; font-size: 10px; }
html[data-ui='current'] .study-nav-button { padding: 8px 16px; font-size: 13px; }
html[data-ui='current'] .study-nav-button span { font-family: inherit; }
html[data-ui='current'] .style-trigger span { font-family: inherit; font-weight: 900; }
html[data-ui='current'] .style-panel { border-radius: 22px; border-color: #eceef0; box-shadow: var(--shadow-lift); }
html[data-ui='current'] :is(.font-options button, .ui-options button) { border-radius: 14px; }
html[data-ui='current'] .style-panel-head > button { border-radius: 50%; }
html[data-ui='current'] .toast { border-radius: 999px; background: var(--ink); padding: 12px 20px; font-size: 13px; font-weight: 600; box-shadow: 0 18px 40px rgba(17,24,28,.25); }

/* 왼쪽 단계 레일 */
html[data-ui='current'] .step-rail { background: var(--soft); border-right: 1px solid #eef0f2; }
html[data-ui='current'] .step-rail > .eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; letter-spacing: .12em; }
html[data-ui='current'] .step-rail h2 { margin-top: 6px; font-family: inherit; font-size: 23px; font-weight: 800; letter-spacing: -.045em; line-height: 1.35; }
html[data-ui='current'] .progress-track { height: 6px; border-radius: 999px; background: #e4e7ea; }
html[data-ui='current'] .progress-track span { border-radius: 999px; background: linear-gradient(90deg, #ff7a45, var(--coral)); transition: width .8s cubic-bezier(.2,.8,.2,1); }
html[data-ui='current'] .progress-copy { font-size: 11px; color: #8a929a; }
html[data-ui='current'] .step-list li { margin: 4px 0; }
html[data-ui='current'] .step-list li button { border-radius: 16px; min-height: 60px; color: #7b838b; transition: background .25s ease, color .25s ease, transform .25s ease; }
html[data-ui='current'] .step-list li button:hover { background: #fff; color: var(--ink); }
html[data-ui='current'] .step-list li.active { border-left: 0; }
html[data-ui='current'] .step-list li.active button { padding-left: 10px; background: var(--ink); color: #fff; box-shadow: 0 12px 28px rgba(17,24,28,.18); }
html[data-ui='current'] .step-list li.active small { color: #aab2ba; }
html[data-ui='current'] .step-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: #fff; font-family: inherit; font-weight: 800; font-size: 11px; color: #9aa1a9; }
html[data-ui='current'] .active .step-num { background: var(--coral); color: #fff; }
html[data-ui='current'] .step-list li.done .step-num { background: #e3f3ec; color: #2f7a62; }
html[data-ui='current'] .step-list b { font-size: 13px; font-weight: 800; }
html[data-ui='current'] .step-list small { font-size: 10px; }
html[data-ui='current'] .current-dot { width: 8px; height: 8px; border-radius: 50%; box-shadow: 0 0 0 4px rgba(240,72,41,.25); }
html[data-ui='current'] .rail-note { border-top-color: #e4e7ea; }
html[data-ui='current'] .rail-note p { font-size: 11px; }

/* 본문 */
html[data-ui='current'] .main-panel { width: min(100%, 1040px); padding: 34px 52px 56px; }
html[data-ui='current'] .eyebrow { color: #8a929a; letter-spacing: .14em; }
html[data-ui='current'] .eyebrow.coral { color: var(--coral); }

html[data-ui='current'] .lesson-banner { border: 0; border-radius: 999px; padding: 10px 10px 10px 12px; background: var(--ink); color: #fff; box-shadow: 0 14px 34px rgba(17,24,28,.16); }
html[data-ui='current'] .lesson-banner > span { border-radius: 999px; padding: 8px 14px; background: var(--coral); font-size: 11px; }
html[data-ui='current'] .lesson-banner p { color: #b7bec5; font-size: 13px; }
html[data-ui='current'] .lesson-banner p b { color: #fff; }
html[data-ui='current'] .lesson-banner button { border-radius: 999px; padding: 10px 18px; background: #fff; color: var(--ink); font-size: 12px; transition: background .25s ease, color .25s ease; }
html[data-ui='current'] .lesson-banner button:hover { background: var(--coral); color: #fff; }

html[data-ui='current'] .auto-first { margin-top: 18px; border: 1px solid #eef0f2; border-left: 0; border-radius: var(--radius-lg); padding: 24px; background: #fff; box-shadow: var(--shadow-soft); }
html[data-ui='current'] .auto-number { border-radius: 50%; background: var(--coral); font: 800 20px/1 inherit; font-family: inherit; box-shadow: 0 10px 24px rgba(240,72,41,.35); }
html[data-ui='current'] .auto-first h2 { font-family: inherit; font-size: 24px; font-weight: 800; letter-spacing: -.045em; }
html[data-ui='current'] .auto-first > div:nth-child(2) > p:last-child { color: var(--muted); font-size: 13px; line-height: 1.65; }
html[data-ui='current'] .auto-state { border-radius: 16px; padding: 12px 14px; }
html[data-ui='current'] .auto-state b { font-size: 13px; }
html[data-ui='current'] .auto-state small { font-size: 11px; }
html[data-ui='current'] .auto-state button { border-radius: 999px; padding: 9px 14px; background: rgba(255,255,255,.75); font-size: 12px; }

/* 사례 히어로 카드 (어두운 바탕 + 커서 스포트라이트) */
html[data-ui='current'] .case-showcase { margin-top: 18px; position: relative; overflow: hidden; isolation: isolate; gap: 28px; padding: 40px; border-radius: 28px; background: var(--night); box-shadow: 0 30px 60px rgba(14,19,22,.22); }
html[data-ui='current'] .case-showcase::before { content: ''; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(520px circle at var(--mx, 78%) var(--my, 20%), rgba(240,72,41,.34), transparent 60%),
  radial-gradient(420px circle at 0% 100%, rgba(255,255,255,.07), transparent 70%); transition: background .2s linear; }
html[data-ui='current'] .case-showcase::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 75%); }
html[data-ui='current'] .case-copy > span { display: inline-block; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.1); color: #ffb39c; font-size: 11px; letter-spacing: .04em; }
html[data-ui='current'] .case-copy h2 { margin: 14px 0 10px; font-family: inherit; font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; letter-spacing: -.05em; line-height: 1.2; }
html[data-ui='current'] .case-copy p { color: #aeb6bd; font-size: 14px; line-height: 1.7; }
html[data-ui='current'] .case-copy button { margin-top: 22px; border-radius: 999px; padding: 14px 22px; background: var(--coral); font-size: 13px; box-shadow: 0 14px 30px rgba(240,72,41,.4); transition: box-shadow .3s ease, background .3s ease; }
html[data-ui='current'] .case-copy button:hover { background: #ff5a3a; box-shadow: 0 18px 40px rgba(240,72,41,.55); }
html[data-ui='current'] .case-metrics { gap: 12px; }
html[data-ui='current'] .case-metrics article { min-height: 96px; border-radius: 18px; padding: 18px; border-color: rgba(255,255,255,.1); background: rgba(255,255,255,.05); backdrop-filter: blur(6px); }
html[data-ui='current'] .case-metrics small { font-size: 12px; color: #9aa3ab; }
html[data-ui='current'] .case-metrics b { margin-top: 8px; font: 800 28px/1.1 inherit; font-family: inherit; letter-spacing: -.04em; }

/* 단계 머리말 */
html[data-ui='current'] .lesson-head { padding: 56px 4px 32px; }
html[data-ui='current'] .lesson-head .eyebrow { display: inline-block; margin-bottom: 18px; padding: 7px 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11px; letter-spacing: .1em; }
html[data-ui='current'] .lesson-head h1 { font-family: inherit; font-size: clamp(32px, 3.6vw, 50px); font-weight: 800; letter-spacing: -.055em; line-height: 1.2; }
html[data-ui='current'] .lead { color: var(--muted); font-size: 15px; }
html[data-ui='current'] .mini-guide { border: 0; border-radius: 20px; padding: 18px; background: var(--soft); }
html[data-ui='current'] .guide-index { font-family: inherit; font-weight: 900; font-size: 26px; }
html[data-ui='current'] .mini-guide p { font-size: 12px; color: var(--muted); }
html[data-ui='current'] .mini-guide b { color: var(--ink); }

/* 카드 공통 */
html[data-ui='current'] :is(.upload-card, .input-card, .timeline-card, .analyze-card, .market-parser) { border: 1px solid #eceef0; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); transition: box-shadow .35s ease, border-color .35s ease; }
html[data-ui='current'] :is(.upload-card, .input-card, .timeline-card, .analyze-card, .market-parser):hover { box-shadow: var(--shadow-lift); }
html[data-ui='current'] .upload-grid .upload-card { padding: 22px; }
html[data-ui='current'] :is(.input-card, .timeline-card, .analyze-card) { padding: 28px; margin-bottom: 20px; }
html[data-ui='current'] .upload-grid { gap: 16px; margin-bottom: 20px; }
html[data-ui='current'] .upload-card.ready { border-color: #bfe0d2; background: #fbfefc; }
html[data-ui='current'] .upload-card.reading { border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240,72,41,.12), var(--shadow-soft); }
html[data-ui='current'] :is(.card-icon, .section-title > span, .parser-head > span) { border-radius: 12px; }
html[data-ui='current'] :is(.card-icon, .section-title > span) { background: #fff1ed; }
html[data-ui='current'] :is(.card-heading h3, .section-title h3) { font-size: 16px; font-weight: 800; }
html[data-ui='current'] :is(.card-heading p, .section-title p) { font-size: 12px; color: #8a929a; }
html[data-ui='current'] .required { border-radius: 999px; padding: 4px 10px; font-size: 10px; }
html[data-ui='current'] .drop-zone { border-radius: 18px; border: 1.5px dashed #d8dce0; background: #fafbfb; transition: background .25s ease, border-color .25s ease, transform .25s ease; }
html[data-ui='current'] .drop-zone:hover, html[data-ui='current'] .drop-zone.mo-drag { background: #fff6f3; border-color: var(--coral); }
html[data-ui='current'] .drop-zone b { font-size: 13px; }
html[data-ui='current'] .drop-zone small { font-size: 11px; }
html[data-ui='current'] .upload-symbol { border: 0; box-shadow: 0 6px 16px rgba(17,24,28,.1); transition: transform .35s cubic-bezier(.2,.8,.2,1), background .25s ease, color .25s ease; }
html[data-ui='current'] .drop-zone:hover .upload-symbol { transform: rotate(90deg) scale(1.1); background: var(--coral); color: #fff; }
html[data-ui='current'] .file-list span { font-size: 12px; }
html[data-ui='current'] .source-link { font-size: 11px; }

/* 입력칸 */
html[data-ui='current'] :is(.form-grid input, .rights-form input, .unit-input, .memo-label textarea) { border-radius: 12px; border: 1px solid transparent; background: var(--soft); color: var(--ink); transition: background .2s ease, border-color .2s ease, box-shadow .2s ease; }
html[data-ui='current'] :is(.form-grid input, .rights-form input, .memo-label textarea):hover { background: #eff1f3; }
html[data-ui='current'] :is(.form-grid input, .rights-form input, .memo-label textarea):focus,
html[data-ui='current'] .unit-input:focus-within { background: #fff; border-color: var(--coral); box-shadow: 0 0 0 4px rgba(240,72,41,.12); }
html[data-ui='current'] :is(.form-grid label, .memo-label, .rights-form label) { color: #59616a; font-size: 12px; }

/* 버튼 */
html[data-ui='current'] .primary-button { border-radius: 999px; padding: 16px 24px; background: var(--ink); box-shadow: 0 14px 30px rgba(17,24,28,.2); transition: background .3s ease, box-shadow .3s ease; }
html[data-ui='current'] .primary-button:hover { background: var(--coral); box-shadow: 0 18px 40px rgba(240,72,41,.38); }
html[data-ui='current'] .primary-button span, html[data-ui='current'] .analyze-button span { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(255,255,255,.16); transition: transform .35s cubic-bezier(.2,.8,.2,1); }
html[data-ui='current'] :is(.primary-button, .analyze-button):hover span { transform: translateX(4px); }
html[data-ui='current'] .back-button { border-radius: 999px; padding: 10px 16px; font-size: 12px; transition: background .2s ease; }
html[data-ui='current'] .back-button:not(:disabled):hover { background: var(--soft); color: var(--ink); }
html[data-ui='current'] .step-footer { padding-top: 30px; }
html[data-ui='current'] .analyze-button { position: relative; overflow: hidden; border-radius: 999px; padding: 18px 26px; background: var(--coral); box-shadow: 0 18px 40px rgba(240,72,41,.35); }
html[data-ui='current'] .analyze-button::after { content: ''; position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: skewX(-20deg); transition: left .7s ease; pointer-events: none; }
html[data-ui='current'] .analyze-button:not(:disabled):hover::after { left: 120%; }
html[data-ui='current'] :is(.parser-toolbar button, .add-sheet-row, .parser-actions > button:last-child) { border-radius: 999px; padding: 8px 14px; }
html[data-ui='current'] .provider-row button { border-radius: 16px; padding: 16px; transition: border-color .25s ease, box-shadow .25s ease; }
html[data-ui='current'] .provider-row button.selected { box-shadow: 0 0 0 3px rgba(240,72,41,.14); background: #fff7f4; }
html[data-ui='current'] .provider-row small { font-size: 11px; }
html[data-ui='current'] .key-status { border-radius: 16px; }
html[data-ui='current'] .key-status button { border-radius: 999px; padding: 8px 12px; background: rgba(255,255,255,.7); font-size: 11px; }
html[data-ui='current'] .analysis-warning span { border-radius: 999px; padding: 6px 12px; font-size: 11px; background: var(--soft); }
html[data-ui='current'] .analysis-warning b { font-size: 12px; }
html[data-ui='current'] :is(.timeline-head h3, .analysis-summary h3) { font-family: inherit; font-weight: 800; letter-spacing: -.04em; }
html[data-ui='current'] .status { border-radius: 999px; padding: 7px 12px; }
html[data-ui='current'] .compare { background: var(--ink); font-family: inherit; }
html[data-ui='current'] .spark-warning { border-radius: 16px; font-size: 13px; }
html[data-ui='current'] .market-parser > textarea { border-radius: 14px; }
html[data-ui='current'] .sheet-wrap { border-radius: 14px; }
html[data-ui='current'] .checklist-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--night); padding: 28px; box-shadow: 0 24px 50px rgba(14,19,22,.2); }
html[data-ui='current'] .checklist-card h3 { font-family: inherit; font-weight: 800; letter-spacing: -.04em; }
html[data-ui='current'] .checklist-card label { transition: color .2s ease, padding-left .25s ease; }
html[data-ui='current'] .checklist-card label:hover { padding-left: 4px; color: #fff; }
html[data-ui='current'] .checklist-card label > span { border-radius: 7px; }
html[data-ui='current'] .score-ring span { font-family: inherit; font-weight: 900; }

/* 모달 */
html[data-ui='current'] .modal-backdrop { background: rgba(14,19,22,.55); }
html[data-ui='current'] :is(.demo-modal, .api-modal) { border-radius: 28px; background: #fff; box-shadow: 0 40px 90px rgba(14,19,22,.35); }
html[data-ui='current'] .modal-close { border-radius: 50%; background: var(--soft); transition: transform .3s ease, background .2s ease; }
html[data-ui='current'] .modal-close:hover { transform: rotate(90deg); background: #eceef0; }
html[data-ui='current'] :is(.demo-head h2, .api-modal h2) { font-family: inherit; font-weight: 800; }
html[data-ui='current'] :is(.demo-head > div > p:last-child, .modal-lead) { font-size: 13px; }
html[data-ui='current'] .demo-head > span { border-radius: 999px; font-size: 11px; }
html[data-ui='current'] :is(.demo-inputs, .demo-result) { border-radius: 20px; }
html[data-ui='current'] .demo-inputs { background: var(--soft); border-color: transparent; }
html[data-ui='current'] .demo-result { background: var(--night); }
html[data-ui='current'] .demo-form label { font-size: 11px; }
html[data-ui='current'] :is(.demo-form input, .demo-form label > div) { border-radius: 12px; }
html[data-ui='current'] .demo-form input { font-size: 13px; }
html[data-ui='current'] :is(.demo-prices article, .demo-right, .demo-alert, .demo-tip) { border-radius: 14px; }
html[data-ui='current'] :is(.demo-verdict b, .demo-prices b) { font-family: inherit; font-weight: 800; }
html[data-ui='current'] .demo-start { border-radius: 999px; padding: 15px 20px; font-size: 13px; }
html[data-ui='current'] .save-key { border-radius: 999px !important; }

/* 보고서 */
html[data-ui='current'] .report-hero { position: relative; overflow: hidden; isolation: isolate; border-radius: 0 0 32px 32px; min-height: 300px; background: var(--night); }
html[data-ui='current'] .report-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: radial-gradient(600px circle at var(--mx, 80%) var(--my, 30%), rgba(240,72,41,.32), transparent 60%); }
html[data-ui='current'] .report-hero h1 { font-family: inherit; font-weight: 800; }
html[data-ui='current'] .report-hero > div:first-child > p:last-child { font-size: 13px; }
html[data-ui='current'] .verdict { border-radius: 20px; backdrop-filter: blur(8px); }
html[data-ui='current'] .verdict small, html[data-ui='current'] .verdict span { font-size: 11px; }
html[data-ui='current'] .verdict b { font-family: inherit; font-weight: 800; font-size: 24px; }
html[data-ui='current'] .export-bar { border-radius: 24px; border-color: #eceef0; padding: 14px; box-shadow: var(--shadow-lift); }
html[data-ui='current'] .export-bar > div b { font-size: 14px; }
html[data-ui='current'] .export-bar > div small { font-size: 11px; }
html[data-ui='current'] .export-bar button { border-radius: 16px; padding: 10px; font-size: 12px; transition: border-color .2s ease, box-shadow .25s ease; }
html[data-ui='current'] .export-bar button:hover { border-color: var(--ink); box-shadow: 0 10px 24px rgba(17,24,28,.1); }
html[data-ui='current'] .report-section.intro { font-family: inherit; font-size: 18px; }
html[data-ui='current'] .critical-box { border-radius: 24px; border-left-width: 1px; box-shadow: 0 0 0 4px rgba(240,72,41,.06); }
html[data-ui='current'] .critical-title > span { border-radius: 50%; font-family: inherit; }
html[data-ui='current'] :is(.critical-title h2, .section-head h2) { font-family: inherit; font-weight: 800; letter-spacing: -.045em; }
html[data-ui='current'] .critical-title p { font-size: 11px; }
html[data-ui='current'] .critical-box article b { font-family: inherit; font-weight: 800; }
html[data-ui='current'] .section-head > p { font-size: 12px; }
html[data-ui='current'] .price-cards article { border-radius: 22px; border-color: #eceef0; box-shadow: var(--shadow-soft); }
html[data-ui='current'] .price-cards article b { font: 800 30px/1.15 inherit; font-family: inherit; letter-spacing: -.04em; }
html[data-ui='current'] .price-cards article p { font-size: 12px; }
html[data-ui='current'] .price-cards article.recommended { box-shadow: 0 24px 50px rgba(240,72,41,.35); }
html[data-ui='current'] .price-cards article.recommended > span { border-radius: 999px; font-size: 10px; padding: 5px 10px; }
html[data-ui='current'] .rights-results li span { font-family: inherit; font-weight: 800; }
html[data-ui='current'] .field-results { border-radius: 20px; background: var(--night); padding: 20px; }
html[data-ui='current'] .field-results li { font-size: 13px; }
html[data-ui='current'] .final-disclaimer { border-radius: 24px; background: var(--soft); }
html[data-ui='current'] .final-disclaimer b { font-family: inherit; font-weight: 800; }
html[data-ui='current'] .final-disclaimer p { font-size: 12px; }

@media (max-width: 820px) {
  html[data-ui='current'] .main-panel { padding: 22px 16px 40px; }
  html[data-ui='current'] .step-rail { padding: 12px 16px; }
  html[data-ui='current'] .step-rail > .eyebrow { display: none; }
  html[data-ui='current'] .step-list li button { min-height: 46px; border-radius: 999px; padding: 6px 14px 6px 6px; }
  html[data-ui='current'] .step-list li.active button { padding-left: 6px; }
  html[data-ui='current'] .step-num { width: 32px; height: 32px; }
  html[data-ui='current'] .lesson-banner { border-radius: 22px; padding: 14px; }
  html[data-ui='current'] .lesson-head { padding-top: 36px; }
  html[data-ui='current'] .lesson-head h1 { font-size: clamp(30px, 8vw, 42px); }
  html[data-ui='current'] .case-showcase { padding: 28px 22px; border-radius: 24px; }
}
@media (max-width: 620px) {
  html[data-ui='current'] :is(.topbar, .report-top) { height: 68px; padding: 0 16px; }
  html[data-ui='current'] .header-actions { gap: 8px; }
  html[data-ui='current'] .api-button { padding: 9px 11px; font-size: 11px; }
  html[data-ui='current'] .auto-first { padding: 18px; border-radius: 20px; }
  html[data-ui='current'] :is(.input-card, .timeline-card, .analyze-card, .checklist-card) { padding: 20px; border-radius: 20px; }
  html[data-ui='current'] .case-copy h2 { font-size: 28px; }
  html[data-ui='current'] .case-metrics article { min-height: 84px; padding: 14px; }
  html[data-ui='current'] .case-metrics b { font-size: 24px; }
  html[data-ui='current'] .report-hero { border-radius: 0 0 24px 24px; }
}
@media (max-width: 390px) {
  html[data-ui='current'] .lesson-head h1 { font-size: 29px; }
}

/* ───────────── 2부 · 모션 (JS 가 켰을 때만) ───────────── */

/* 스크롤 진행 막대 */
.mo-progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #ff8a5c, var(--coral, #e56445)); pointer-events: none; }

/* 커스텀 커서 (마우스가 있는 기기에서만) */
.mo-cursor-dot, .mo-cursor-ring { position: fixed; left: 0; top: 0; z-index: 9999; pointer-events: none; border-radius: 50%; opacity: 0; transition: opacity .3s ease; will-change: transform; }
.mo-cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--coral, #e56445); }
.mo-cursor-ring { width: 36px; height: 36px; margin: -18px 0 0 -18px; border: 1.5px solid rgba(255,255,255,.9); mix-blend-mode: difference; transition: opacity .3s ease, width .35s cubic-bezier(.2,.8,.2,1), height .35s cubic-bezier(.2,.8,.2,1), margin .35s cubic-bezier(.2,.8,.2,1), background .3s ease, border-color .3s ease; }
html.mo-cursor-visible .mo-cursor-dot, html.mo-cursor-visible .mo-cursor-ring { opacity: 1; }
html.mo-cursor-hover .mo-cursor-ring { width: 60px; height: 60px; margin: -30px 0 0 -30px; mix-blend-mode: normal; background: rgba(240,72,41,.12); border-color: rgba(240,72,41,.55); }
html.mo-cursor-hover .mo-cursor-dot { opacity: 0; }
html.mo-cursor-text .mo-cursor-ring { width: 3px; height: 26px; margin: -13px 0 0 -1.5px; border-radius: 2px; mix-blend-mode: normal; background: var(--coral, #e56445); border-color: transparent; opacity: .55; }
html.mo-cursor-down .mo-cursor-ring { width: 26px; height: 26px; margin: -13px 0 0 -13px; }

/* 페이지 전체를 은은하게 따라오는 빛 */
html.mo-cursor body::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(600px circle at var(--gx, 50%) var(--gy, 0%), rgba(240,72,41,.06), transparent 60%); }

/* 카드 기울기 + 빛 반사 */
html.mo-cursor :is(.case-metrics article, .upload-card, .price-cards article, .provider-row button, .demo-prices article, .export-bar button, .auto-first, .mini-guide) {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) scale(var(--sc, 1));
  transition: transform .6s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .35s ease, background-color .35s ease;
}
html.mo-cursor .mo-active { transition: transform .12s linear, box-shadow .35s ease, border-color .35s ease !important; }
html.mo-cursor :is(.upload-card, .input-card, .timeline-card, .analyze-card, .market-parser, .price-cards article, .auto-first, .export-bar, .critical-box).mo-active {
  background-image: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(240,72,41,.07), transparent 45%);
}
html.mo-cursor :is(.case-metrics article, .demo-prices article, .checklist-card, .field-results).mo-active {
  background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.14), transparent 55%);
}
html.mo-cursor .price-cards article.recommended.mo-active { background-image: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.28), transparent 55%); }

/* 마그네틱 버튼 */
html.mo-cursor :is(.primary-button, .analyze-button, .case-copy button, .lesson-banner button, .demo-start, .save-key, .api-button, .study-nav-button, .back-to-edit, .auto-state button, .style-trigger) {
  translate: var(--tx, 0px) var(--ty, 0px);
  transition: translate .5s cubic-bezier(.2,.8,.2,1), background .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease;
}
html.mo-cursor .mo-mag-active { transition: translate .1s linear, background .3s ease, color .3s ease, box-shadow .3s ease, border-color .3s ease !important; }

/* 스크롤 등장 */
.mo-reveal { opacity: 0; translate: 0 34px; transition: opacity .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms), translate .9s cubic-bezier(.2,.8,.2,1) var(--d, 0ms); }
.mo-reveal.mo-in { opacity: 1; translate: 0 0; }

/* 큰 제목 글자 등장 */
.mo-split .mo-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.mo-split .mo-c { display: inline-block; transform: translateY(105%); opacity: 0; transition: transform .8s cubic-bezier(.2,.8,.2,1) calc(var(--i) * 28ms + var(--d, 0ms)), opacity .5s ease calc(var(--i) * 28ms + var(--d, 0ms)); }
.mo-split.mo-split-in .mo-c { transform: none; opacity: 1; }

/* 점수 원 채우기 */
@property --score { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.analyze-card.mo-reveal.mo-in .score-ring { animation: mo-ring 1.4s cubic-bezier(.2,.8,.2,1) .25s both; }
@keyframes mo-ring { from { --score: 0deg; } }

/* 모달 등장 */
.mo-pop .modal-backdrop { animation: mo-fade .35s ease both; }
.mo-pop :is(.api-modal, .demo-modal) { animation: mo-rise .55s cubic-bezier(.2,.8,.2,1) both; }
@keyframes mo-fade { from { opacity: 0; } }
@keyframes mo-rise { from { opacity: 0; transform: translateY(26px) scale(.97); } }

/* 클릭 물결 */
.mo-ripple { position: fixed; z-index: 9998; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; border: 2px solid var(--coral, #e56445); pointer-events: none; animation: mo-ripple .6s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes mo-ripple { to { transform: scale(7); opacity: 0; } }

/* 움직임 줄이기 · 인쇄 · 터치 안전장치 */
@media (prefers-reduced-motion: reduce) {
  .mo-reveal, .mo-split .mo-c { opacity: 1 !important; translate: none !important; transform: none !important; transition: none !important; }
  .mo-cursor-dot, .mo-cursor-ring, .mo-ripple, .mo-progress { display: none !important; }
}
@media (hover: none), (pointer: coarse) {
  .mo-cursor-dot, .mo-cursor-ring, .mo-ripple { display: none !important; }
}
@media print {
  .mo-reveal, .mo-split .mo-c { opacity: 1 !important; translate: none !important; transform: none !important; }
  .mo-cursor-dot, .mo-cursor-ring, .mo-ripple, .mo-progress { display: none !important; }
  html.mo-cursor body::before { display: none; }
}

/* 커서 점·링 끔(2026-10-22) */
.mo-cursor-dot,.mo-cursor-ring{display:none!important}
