/* ══════════════════════════════════════════════════════════════════
   옥션랩(물건가치분석시스템) — 원본 app/globals.css를 그대로 포팅.
   원본이 같은 클래스를 여러 번(기본 → 큰글씨 패스 → 편집형 리파인 패스)
   덮어써서 최종 렌더 결과를 만들기 때문에, 여기서는 최종 계산값만
   싣는다. 값을 새로 정하지 않고 원본 캐스케이드의 마지막 승자만 사용.
   ── */

:root {
  --ink: #23211e;
  --muted: #777069;
  --line: #e7e0d7;
  --paper: #fffcf8;
  --coral: #e56445;
  --coral-dark: #bd472e;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Pretendard, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
button, input, select, textarea { font: inherit; }
button, a, label { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }

.app-shell, .study-page, .report-page { min-height: 100vh; background: var(--paper); word-break: keep-all; overflow-wrap: break-word; }
.report-page { color: var(--ink); }

.topbar, .report-top { height: 72px; padding: 0 34px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 94%, white 6%); position: sticky; top: 0; z-index: 10; }
.brand { display: flex; align-items: center; gap: 11px; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; background: var(--ink); color: white; border-radius: 5px; font-family: Georgia, serif; font-size: 21px; font-weight: 700; }
.brand b { display: block; font-size: 17px; letter-spacing: -.04em; }
.brand b em { color: #8c837a; font-size: 11px; font-style: normal; font-weight: 600; margin-left: 3px; }
.brand small { display: block; margin-top: 2px; color: #9b938b; font-size: 8px; letter-spacing: .14em; font-weight: 700; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.save-state { color: #8d857d; font-size: 12px; }
.save-state i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #65a58f; margin-right: 7px; }
.plain { border: 0; background: none; padding: 0; text-align: left; }
.api-button { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 9px 12px; color: #5d5751; font-size: 11px; font-weight: 800; }
.api-button strong { color: var(--coral); font-size: 9px; margin-left: 4px; }
.toast { position: fixed; z-index: 100; left: 50%; top: 86px; transform: translateX(-50%); background: #2b2a27; color: white; border-radius: 10px; padding: 11px 16px; font-size: 11px; box-shadow: 0 12px 35px rgba(0,0,0,.2); animation: toast-in .25s ease; }
@keyframes toast-in { from { opacity: 0; transform: translate(-50%, -8px); } }

.eyebrow { margin: 0 0 11px; color: #968d84; font-size: 11px; letter-spacing: .08em; font-weight: 800; }
.eyebrow.coral { color: var(--coral); }

.workspace { min-height: calc(100vh - 72px); display: grid; grid-template-columns: 292px minmax(0, 1fr); }
.step-rail { border-right: 1px solid var(--line); padding: 44px 30px 30px 34px; background: #f8f4ee; }
.step-rail h2 { font-family: Georgia, 'Noto Serif KR', serif; font-size: 21px; line-height: 1.45; letter-spacing: -.035em; margin: 0; }
.progress-track { height: 4px; border-radius: 3px; background: #dfd7cd; margin-top: 25px; overflow: hidden; }
.progress-track span { display: block; height: 100%; background: var(--coral); }
.progress-copy { color: #948c83; font-size: 10px; margin: 7px 0 20px; text-align: right; }
.progress-copy b { color: var(--coral); }
.step-list { list-style: none; padding: 0; margin: 0; }
.step-list li { display: block; min-height: 0; padding: 0; margin: 2px 0; }
.step-list li button { width: 100%; display: grid; grid-template-columns: 31px 1fr 8px; align-items: center; gap: 10px; min-height: 58px; padding: 9px 10px; border: 0; border-radius: 0; background: transparent; color: #958d85; text-align: left; }
.step-list li.active { background: transparent; border-left: 3px solid var(--coral); }
.step-list li.active button { padding-left: 7px; color: var(--ink); }
.step-num { font-family: Georgia, serif; font-size: 12px; color: #aaa199; }
.active .step-num { color: var(--coral); }
.step-list li.done .step-num { color: #4d8877; font-family: inherit; font-weight: 900; }
.step-list b { display: block; font-size: 12px; letter-spacing: -.02em; }
.step-list small { display: block; font-size: 9px; margin-top: 3px; color: #a59c94; }
.current-dot { width: 6px; height: 6px; border-radius: 1px; background: var(--coral); }
.rail-note { display: flex; gap: 10px; border-top: 1px solid #ddd5ca; margin-top: 24px; padding-top: 20px; color: #8c847c; }
.rail-note > span { width: 21px; height: 21px; border: 1px solid #bcb3a9; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 10px; font-weight: 800; }
.rail-note p { margin: 0; font-size: 9px; line-height: 1.55; }
.rail-note b { color: #5f5954; }

.main-panel { width: min(100%, 980px); margin: 0 auto; padding: 30px 48px 46px; min-height: calc(100vh - 72px); }
.lesson-banner { min-height: 52px; border: 0; border-top: 1px solid #e7b9aa; border-bottom: 1px solid #e7b9aa; border-radius: 0; padding: 10px 13px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: transparent; }
.lesson-banner > span { flex: none; padding: 7px 10px; background: var(--coral); color: white; border-radius: 4px; font-size: 10px; font-weight: 800; }
.lesson-banner p { margin: 0; min-width: 280px; font-size: 11px; color: #7e6a62; flex: 1; }
.lesson-banner p b { color: #4c3730; }
.lesson-banner button { border: 0; background: transparent; color: var(--coral-dark); font-size: 10px; font-weight: 800; padding: 8px; }
.lesson-head { display: grid; grid-template-columns: 1fr 255px; gap: 34px; align-items: end; padding: 40px 4px 30px; }
.lesson-head h1 { font-family: Georgia, 'Noto Serif KR', serif; margin: 0; font-size: clamp(31px, 3.1vw, 45px); line-height: 1.18; letter-spacing: -.055em; font-weight: 700; }
.lead { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 16px 0 0; }
.mini-guide { border-left: 1px solid var(--line); padding: 6px 0 6px 22px; display: flex; gap: 14px; align-items: flex-start; }
.guide-index { font-family: Georgia, serif; color: var(--coral); font-size: 23px; line-height: 1; }
.mini-guide p { margin: 0; font-size: 10px; line-height: 1.65; color: #8b837a; }
.mini-guide b { color: #554f49; }

.upload-card, .check-card { border: 1px solid var(--line); border-radius: 7px; background: white; padding: 22px; box-shadow: none; }
.card-heading { display: flex; align-items: center; gap: 11px; flex-wrap: wrap; }
.card-icon { width: 35px; height: 35px; border-radius: 4px; display: grid; place-items: center; background: #f6ece7; color: var(--coral); font-weight: 900; }
.card-heading h3, .check-card h3 { margin: 0; font-size: 14px; letter-spacing: -.03em; }
.card-heading p { margin: 3px 0 0; font-size: 9px; color: #9b938b; }
.required { margin-left: auto; color: var(--coral); background: #fff0eb; border-radius: 3px; padding: 4px 8px; font-size: 9px; font-weight: 800; }
.drop-zone { min-height: 155px; margin-top: 18px; border: 1px dashed #d5cbc0; border-radius: 5px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; transition: .2s ease; cursor: pointer; }
.drop-zone:hover { background: #fff7f3; border-color: var(--coral); }
.drop-zone input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.upload-symbol { width: 35px; height: 35px; border-radius: 50%; background: white; border: 1px solid #e5dcd2; display: grid; place-items: center; color: var(--coral); font-size: 20px; }
.drop-zone b { margin-top: 11px; font-size: 11px; }
.drop-zone small { color: #aaa29a; font-size: 9px; margin-top: 5px; }
.check-card { background: #292825; color: white; }
.check-card .eyebrow { color: #8daaa2; }
.check-card h3 { font-family: Georgia, 'Noto Serif KR', serif; font-size: 19px; }
.check-card ul { list-style: none; padding: 15px 0; margin: 12px 0; border-top: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.check-card li { display: flex; gap: 9px; align-items: center; padding: 7px 0; color: #d3d0cb; font-size: 10px; }
.check-card li span { width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: #46665e; color: #b8e6d9; font-size: 9px; }
.missing-note { color: #aaa7a1; font-size: 9px; line-height: 1.6; }
.missing-note b { color: #e1ded8; }
.step-footer { display: flex; justify-content: space-between; align-items: center; padding: 24px 4px 0; }
.step-footer > p { display: block; text-align: center; flex: 1; margin: 0; color: #a09992; font-size: 12px; line-height: 1.5; }
.step-footer > p b { color: #716a64; font-size: 12px; }
.primary-button { min-width: 210px; border: 0; border-radius: 5px; padding: 14px 17px; background: var(--ink); color: white; font-size: 15px; font-weight: 800; display: flex; justify-content: space-between; align-items: center; }
.primary-button:disabled { background: #d7d1ca; color: #f6f2ee; cursor: not-allowed; }
.back-button { border: 0; background: transparent; color: #8b837b; font-size: 10px; font-weight: 800; }
.back-button:disabled { opacity: .25; }

.auto-first { margin-top: 16px; display: grid; grid-template-columns: 48px minmax(0,1fr); align-items: start; gap: 16px; border: 1px solid var(--line); border-left: 4px solid var(--coral); border-radius: 7px; padding: 18px; background: color-mix(in srgb, var(--paper) 82%, white 18%); }
.auto-number { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 4px; background: var(--coral); color: white; font: 700 21px Georgia,serif; }
.auto-first h2 { margin: -4px 0 4px; font-family: Georgia,'Noto Serif KR',serif; font-size: 21px; letter-spacing: -.05em; }
.auto-first > div:nth-child(2) > p:last-child { margin: 0; color: #837970; font-size: 11px; line-height: 1.55; }
.auto-state { grid-column: 1 / -1; width: 100%; min-width: 0; display: grid; grid-template-columns: 26px 1fr auto; gap: 9px; align-items: center; border-radius: 5px; padding: 10px; background: #fff0e4; color: #805d3c; }
.auto-state.ready { background: #eaf6f1; color: #3f6f60; }
.auto-state > i { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #d99758; color: white; font-size: 9px; font-style: normal; font-weight: 900; }
.auto-state.ready > i { background: #4e8b77; }
.auto-state b, .auto-state small { display: block; }
.auto-state b { font-size: 11px; }
.auto-state small { margin-top: 2px; opacity: .72; font-size: 10px; }
.auto-state button { border: 0; background: transparent; color: inherit; font-size: 10px; font-weight: 900; white-space: nowrap; }

.case-showcase { margin-top: 16px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: center; padding: 24px; border-radius: 8px; color: white; background: #292825; }
.case-copy > span { color: #efa58d; font-size: 8px; font-weight: 900; letter-spacing: .08em; }
.case-copy h2 { margin: 5px 0 7px; font-family: Georgia,'Noto Serif KR',serif; font-size: 25px; letter-spacing: -.05em; }
.case-copy p { max-width: 410px; margin: 0; color: #c9c4bd; font-size: 9px; line-height: 1.6; }
.case-copy button { margin-top: 14px; border: 0; border-radius: 5px; padding: 10px 13px; background: var(--coral); color: white; font-size: 9px; font-weight: 900; }
.case-copy button b { margin-left: 15px; }
.case-metrics { display: grid; grid-template-columns: repeat(2,1fr); gap: 8px; }
.case-metrics article { min-height: 72px; border: 1px solid rgba(255,255,255,.12); border-radius: 5px; padding: 13px; background: rgba(255,255,255,.06); }
.case-metrics small, .case-metrics b { display: block; }
.case-metrics small { color: #b9b4ae; font-size: 8px; }
.case-metrics b { margin-top: 5px; font: 700 18px Georgia,serif; }
.case-metrics article.risk { border-color: rgba(239,145,114,.45); background: rgba(229,100,69,.14); }
.case-metrics article.risk b { color: #ffad91; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(31,28,25,.62); backdrop-filter: blur(8px); }
.demo-backdrop { padding: 26px; }
.demo-modal, .api-modal { width: min(960px,100%); max-height: calc(100vh - 52px); overflow: auto; position: relative; border-radius: 8px; background: #fffdf9; padding: 30px; box-shadow: 0 24px 64px rgba(0,0,0,.22); }
.api-modal { width: min(520px, 100%); max-height: calc(100vh - 40px); }
.modal-close { position: absolute; right: 18px; top: 16px; width: 32px; height: 32px; border: 0; background: #f2ede7; border-radius: 4px; color: #655e57; font-size: 20px; }
.demo-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding-right: 34px; }
.demo-head h2, .api-modal h2 { margin: 0; font-family: Georgia,'Noto Serif KR',serif; font-size: 28px; letter-spacing: -.05em; }
.demo-head > div > p:last-child, .modal-lead { margin: 8px 0 0; color: #837b73; font-size: 10px; line-height: 1.65; }
/* API 키 창 안쪽 — 2026-10-20 기본 모양이 빠져 있어 맨 글자로 보이던 것 보강 */
.api-modal .modal-lead { margin-bottom: 16px; font-size: 12px; }
.provider-tabs { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 8px; background: #f2ede7; }
.provider-tabs button { flex: 1 1 0; min-width: 72px; padding: 9px 8px; border: 0; border-radius: 6px; background: transparent; color: #6e665f; font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; }
.provider-tabs button.active { background: #fff; color: var(--coral); box-shadow: 0 1px 4px rgba(31,28,25,.12); }
.key-guide { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 0 0 10px; padding: 12px; border: 1px solid #ece4da; border-radius: 8px; background: #fff; }
.key-guide > span { flex: 0 0 26px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--coral); color: #fff; font-size: 12px; font-weight: 900; }
.key-guide > div { flex: 1 1 200px; min-width: 0; }
.key-guide b { display: block; font-size: 13px; color: #2b2622; }
.key-guide p { margin: 3px 0 0; color: #837b73; font-size: 11.5px; line-height: 1.55; }
.key-guide a { flex: 0 0 auto; padding: 8px 12px; border-radius: 6px; background: #fbeee9; color: var(--coral-dark); font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.key-input { display: flex; gap: 6px; margin: 0 0 10px; padding: 6px; border: 2px solid #e2d8cc; border-radius: 8px; background: #fff; }
.key-input:focus-within { border-color: var(--coral); }
.key-input input { flex: 1 1 auto; min-width: 0; padding: 8px 6px; border: 0; outline: 0; background: transparent; color: #2b2622; font: inherit; font-size: 14px; }
.key-input button { flex: 0 0 auto; padding: 8px 12px; border: 0; border-radius: 6px; background: #f2ede7; color: #6e665f; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; }
.privacy-note { margin: 4px 0 14px; padding: 10px 12px; border-radius: 8px; background: #f6f3ee; color: #6e665f; font-size: 11.5px; line-height: 1.6; }
.save-key { display: block; width: 100%; padding: 14px; border: 0; border-radius: 8px; background: var(--coral); color: #fff; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }
.save-key:hover { background: var(--coral-dark); }
.demo-head > span { border-radius: 3px; padding: 7px 10px; background: #f2ede7; color: #6e665f; font-size: 8px; font-weight: 900; white-space: nowrap; }
.demo-layout { display: grid; grid-template-columns: .95fr 1.05fr; gap: 18px; margin-top: 22px; }
.demo-inputs, .demo-result { border: 1px solid var(--line); border-radius: 5px; padding: 20px; }
.demo-inputs { background: #faf7f2; }
.demo-inputs h3 { margin: 0 0 15px; font-size: 13px; }
.demo-form { display: grid; grid-template-columns: repeat(2,1fr); gap: 11px; }
.demo-form label { display: flex; flex-direction: column; gap: 6px; color: #716961; font-size: 8px; font-weight: 900; }
.demo-form label > div { display: flex; align-items: center; border: 1px solid #ddd4ca; border-radius: 5px; background: white; overflow: hidden; }
.demo-form input { width: 100%; min-width: 0; border: 1px solid #ddd4ca; border-radius: 5px; background: white; outline: none; padding: 10px; color: #2b2926; font-size: 10px; }
.demo-form label > div input { border: 0; border-radius: 0; }
.demo-form label > div em { padding-right: 9px; color: #a39a91; font-size: 10px; font-style: normal; white-space: nowrap; }
.demo-form input:focus { box-shadow: inset 0 0 0 1px var(--coral); }
.demo-tip { margin-top: 13px; border-radius: 5px; padding: 11px; background: #f1e9df; color: #7a6e63; }
.demo-tip b { font-size: 11px; color: #594f47; }
.demo-tip p { margin: 3px 0 0; font-size: 11px; line-height: 1.55; }
.demo-result { background: #292825; color: white; }
.instant-label { display: flex; align-items: center; gap: 7px; color: #a9c9be; font-size: 11px; font-weight: 900; letter-spacing: .05em; }
.instant-label i { width: 7px; height: 7px; border-radius: 50%; background: #71b59f; }
.demo-verdict { margin-top: 13px; }
.demo-verdict small, .demo-verdict b { display: block; }
.demo-verdict small { color: #aaa59e; font-size: 8px; }
.demo-verdict b { margin-top: 4px; color: #ff9e7e; font-family: Georgia,'Noto Serif KR',serif; font-size: 21px; }
.demo-verdict p { margin: 5px 0 0; color: #bbb6af; font-size: 11px; }
.demo-prices { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; margin-top: 15px; }
.demo-prices article { border: 1px solid rgba(255,255,255,.12); border-radius: 5px; padding: 11px 8px; background: rgba(255,255,255,.05); text-align: center; }
.demo-prices article.main { background: var(--coral); border-color: var(--coral); }
.demo-prices small, .demo-prices b { display: block; }
.demo-prices small { color: #b9b4ad; font-size: 10px; }
.demo-prices article.main small { color: #ffe0d5; }
.demo-prices b { margin-top: 5px; font: 700 15px Georgia,serif; }
.demo-right { display: flex; align-items: center; gap: 10px; margin-top: 12px; border-radius: 5px; padding: 10px; background: rgba(255,255,255,.06); }
.demo-right > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; font-size: 10px; font-weight: 900; }
.demo-right > span.ok { background: #427364; color: #c7eee1; }
.demo-right > span.caution { background: #966d2f; color: #ffe5b7; }
.demo-right p { margin: 0; color: #aba69f; font-size: 11px; line-height: 1.5; }
.demo-right b { color: white; font-size: 9px; }
.demo-alert { margin-top: 10px; border: 1px solid rgba(255,139,101,.35); border-radius: 5px; padding: 10px; color: #d6aaa0; background: rgba(229,100,69,.11); font-size: 11px; line-height: 1.5; }
.demo-alert b { color: #ffb49c; }
.demo-start { width: 100%; margin-top: 12px; display: flex; justify-content: space-between; border: 0; border-radius: 5px; padding: 12px 14px; background: white; color: #292825; font-size: 9px; font-weight: 900; }

.input-card, .timeline-card, .analyze-card { border: 1px solid var(--line); border-radius: 7px; background: #fff; padding: 22px; box-shadow: none; margin-bottom: 18px; }
.section-title { display: flex; align-items: center; gap: 11px; margin-bottom: 18px; }
.section-title > span { width: 35px; height: 35px; display: grid; place-items: center; border-radius: 4px; background: #f6ece7; color: var(--coral); font-weight: 900; }
.section-title h3 { margin: 0; font-size: 14px; letter-spacing: -.03em; }
.section-title p { margin: 3px 0 0; color: #9a928a; font-size: 9px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.form-grid label, .memo-label { display: flex; flex-direction: column; gap: 6px; color: #777069; font-size: 12px; font-weight: 800; }
.form-grid label.wide { grid-column: span 2; }
.form-grid input, .rights-form input, .unit-input, .memo-label textarea { width: 100%; border: 1px solid #ded6cd; border-radius: 5px; background: #fdfbf9; color: #2c2926; padding: 11px 12px; outline: none; font-size: 14px; }
.form-grid input:focus, .rights-form input:focus, .memo-label textarea:focus { border-color: var(--coral); box-shadow: 0 0 0 3px rgba(229,100,69,.09); }
.upload-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.upload-grid:not(.many) .upload-card:only-child { grid-column: 1 / -1; }
.upload-grid .upload-card { padding: 18px; }
.upload-card.ready { border-color: #abc9bd; background: #fbfefa; }
.upload-card.ready .card-icon { background: #e5f3ed; color: #3f7e6c; }
.upload-card.reading { border-color: var(--coral); box-shadow: inset 3px 0 0 var(--coral); }
.upload-card.reading .card-icon { background: var(--coral); color: white; }
.drop-zone.compact { min-height: 104px; margin-top: 14px; }
.file-list { width: 100%; display: flex; flex-direction: column; gap: 7px; padding: 4px 8px; pointer-events: none; }
.file-list span { color: #4b7367; font-size: 9px; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.auto-reading { display: flex; flex-direction: column; align-items: center; color: #7a665d; pointer-events: none; }
.auto-reading i { width: 22px; height: 22px; margin-bottom: 8px; border: 2px solid #ead3cb; border-top-color: var(--coral); border-radius: 50%; animation: spin .8s linear infinite; }
.auto-reading b { font-size: 9px; }
.auto-reading small { margin-top: 3px; color: #aaa097; font-size: 7px; }
.source-link { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; color: #9a928a; font-size: 8px; }
.source-link a { color: var(--coral-dark); font-weight: 900; text-decoration: none; }
.market-source-grid { display: grid; grid-template-columns: .78fr 1.5fr; gap: 14px; align-items: stretch; margin-bottom: 18px; }
.market-source-grid > .upload-grid { display: block; margin: 0; }
.market-source-grid > .upload-grid .upload-card { height: 100%; }
.market-parser { min-width: 0; border: 1px solid #d9d1c8; border-radius: 7px; background: #fff; padding: 18px; }
.parser-head { display: flex; align-items: center; gap: 10px; }
.parser-head > span { width: 35px; height: 35px; display: grid; place-items: center; flex: none; border-radius: 4px; background: #292825; color: #fff; font-size: 15px; }
.parser-head > div { flex: 1; }
.parser-head h3, .parser-head p { margin: 0; }
.parser-head h3 { font-size: 12px; }
.parser-head p { margin-top: 3px; color: #958d84; font-size: 11px; }
.parser-head > b { border-radius: 3px; background: #e8f5ef; color: #3f7e6c; padding: 5px 8px; font-size: 8px; }
.parser-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 13px 0 7px; }
.parser-toolbar button, .add-sheet-row { border: 1px solid #e7c9bf; border-radius: 7px; background: #fff6f2; color: var(--coral-dark); padding: 6px 8px; font-size: 11px; font-weight: 900; }
.parser-toolbar span { color: #a49b92; font-size: 11px; }
.market-parser > textarea { width: 100%; min-height: 78px; resize: vertical; border: 1px dashed #d7ccc1; border-radius: 5px; background: #fdfbf8; padding: 10px; color: #48413b; outline: none; font: 11px/1.55 inherit; }
.market-parser > textarea:focus { border-style: solid; border-color: var(--coral); box-shadow: 0 0 0 3px rgba(229,100,69,.08); }
.parser-empty { min-height: 80px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #817970; text-align: center; }
.parser-empty b { font-size: 9px; }
.parser-empty span { color: #aaa198; font-size: 10px; }
.sheet-wrap { max-width: 100%; margin-top: 9px; overflow-x: auto; border: 1px solid #ded7cf; border-radius: 5px; }
.sheet-wrap table { width: 100%; min-width: 690px; border-collapse: collapse; table-layout: fixed; }
.sheet-wrap th { background: #f0ece7; color: #746d66; padding: 7px 5px; border-right: 1px solid #ded7cf; text-align: left; font-size: 10px; }
.sheet-wrap th:first-child { width: 155px; }
.sheet-wrap th:nth-child(2) { width: 62px; }
.sheet-wrap th:last-child { width: 28px; }
.sheet-wrap td { border-top: 1px solid #e5dfd8; border-right: 1px solid #e5dfd8; background: white; padding: 0; }
.sheet-wrap input, .sheet-wrap select { width: 100%; min-width: 0; border: 0; background: transparent; padding: 7px 5px; outline: 0; color: #4e4842; font-size: 11px; }
.sheet-wrap input:focus, .sheet-wrap select:focus { background: #fff4ef; box-shadow: inset 0 0 0 1px var(--coral); }
.sheet-wrap td > button { width: 100%; border: 0; background: transparent; color: #b58b7f; font-size: 13px; }
.parser-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.parser-actions > span { flex: 1; color: #8d857d; text-align: center; font-size: 11px; }
.parser-actions > button:last-child { border: 0; border-radius: 5px; background: var(--coral); color: white; padding: 8px 11px; font-size: 11px; font-weight: 900; }
.parser-actions > button.applied { background: #4f8d78; }

.timeline-head { display: flex; align-items: flex-start; justify-content: space-between; }
.timeline-head h3 { margin: 0; font-family: Georgia, 'Noto Serif KR', serif; font-size: 21px; }
.status { padding: 7px 10px; border-radius: 3px; font-size: 12px; font-weight: 900; }
.status.safe { color: #337260; background: #e6f4ef; }
.status.warn { color: #a66a21; background: #fff4df; }
.rights-form { display: grid; grid-template-columns: 1fr 40px 1fr 1fr; gap: 12px; align-items: center; padding: 24px 0 18px; }
.rights-form label { display: flex; flex-direction: column; gap: 7px; color: #777069; font-size: 12px; font-weight: 800; }
.rights-form small { color: var(--coral); font-size: 11px; }
.compare { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: #292825; color: white; font: 800 9px Georgia, serif; }
.spark-warning { border-radius: 5px; background: #fff7f3; border: 1px solid #f0c6b9; color: #855141; padding: 12px 14px; font-size: 11px; line-height: 1.6; }

.cost-grid { display: grid; grid-template-columns: 1.5fr .8fr; gap: 16px; }
.unit-input { display: flex; padding: 0; overflow: hidden; align-items: center; }
.unit-input input { border: 0 !important; box-shadow: none !important; background: transparent; flex: 1; min-width: 0; }
.unit-input em { padding-right: 10px; color: #a39a91; font-size: 11px; font-style: normal; }
.memo-label { margin-top: 15px; }
.memo-label textarea { min-height: 90px; resize: vertical; font: 14px/1.6 inherit; }
.checklist-card { border-radius: 8px; background: #292825; color: white; padding: 22px; }
.checklist-card h3 { font-family: Georgia, 'Noto Serif KR', serif; margin: 0 0 16px; font-size: 19px; }
.checklist-card label { display: flex; align-items: center; gap: 9px; padding: 9px 0; color: #c9c6c0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 12px; cursor: pointer; }
.checklist-card label.checked { color: white; }
.checklist-card input { position: absolute; opacity: 0; }
.checklist-card label > span { width: 18px; height: 18px; display: grid; place-items: center; border: 1px solid #65635f; border-radius: 5px; color: #bce4d7; }
.checklist-card label.checked > span { background: #477065; border-color: #477065; }

.analysis-summary { display: flex; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.analysis-summary h3 { margin: 0 0 4px; font-family: Georgia, 'Noto Serif KR', serif; font-size: 21px; }
.analysis-summary > div:last-child > p:last-child { margin: 0; color: #898178; font-size: 10px; }
.score-ring { --score: 0deg; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--coral) var(--score), #eee8e1 0); position: relative; flex: none; }
.score-ring::before { content: ''; position: absolute; inset: 6px; border-radius: 50%; background: white; }
.score-ring span { position: relative; z-index: 1; font: 700 17px Georgia, serif; }
.score-ring small { font-size: 8px; }
.provider-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 18px 0; }
.provider-row button { border: 1px solid var(--line); border-radius: 5px; padding: 12px; background: #fff; color: #544e48; text-align: left; }
.provider-row button.selected { border-color: var(--coral); box-shadow: inset 3px 0 0 var(--coral); background: #fff8f5; }
.provider-row b, .provider-row small { display: block; }
.provider-row b { font-size: 12px; }
.provider-row small { margin-top: 4px; color: #989087; font-size: 8px; }
.key-status { display: flex; align-items: center; flex-wrap: wrap; gap: 11px; border: 1px solid #ead8bd; border-radius: 5px; background: #fff8e9; padding: 12px; }
.key-status.connected { border-color: #bfddd1; background: #edf8f3; }
.key-status > span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #e9c98e; color: white; font-size: 10px; font-weight: 900; }
.key-status.connected > span { background: #4f8d78; }
.key-status p { flex: 1; min-width: 180px; margin: 0; color: #8b7252; font-size: 11px; line-height: 1.5; }
.key-status.connected p { color: #557568; }
.key-status p b { color: #654a2c; font-size: 10px; }
.key-status.connected p b { color: #365f52; }
.key-status button { border: 0; background: transparent; color: var(--coral-dark); font-size: 9px; font-weight: 900; }
.analysis-warning { margin: 16px 0; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.analysis-warning b { font-size: 9px; margin-right: 4px; }
.analysis-warning span { border-radius: 3px; background: #f2eee9; padding: 5px 8px; color: #7d756e; font-size: 8px; }
.analyze-button { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; border: 0; border-radius: 5px; padding: 15px 20px; background: var(--coral); color: white; font-size: 15px; font-weight: 900; box-shadow: none; }
.analyze-button span { margin-left: auto; }
.analyze-button:disabled { opacity: .75; }
.analyze-button i { width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.4); border-top-color: white; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.style-picker { position: relative; z-index: 30; }
.style-trigger { min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #554f49; padding: 0 11px; }
.style-trigger span { font: 800 13px/1 Georgia,serif; }
.style-trigger b { font-size: 12px; }
.style-picker.open .style-trigger { border-color: var(--coral); color: var(--coral); background: #fff8f5; }
.style-panel { width: min(430px,calc(100vw - 28px)); position: absolute; right: 0; top: calc(100% + 11px); border: 1px solid var(--line); border-radius: 6px; background: rgba(255,253,250,.98); padding: 18px; color: var(--ink); box-shadow: 0 24px 64px rgba(0,0,0,.22); backdrop-filter: blur(18px); }
.style-panel-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-bottom: 13px; border-bottom: 1px solid var(--line); }
.style-panel-head small { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .12em; }
.style-panel-head h3 { margin: 3px 0 0; font-size: 18px; }
.style-panel-head > button { width: 36px; height: 36px; flex: none; border: 0; border-radius: 4px; background: #f0ebe5; color: #6c645d; font-size: 21px; }
.style-panel section { margin-top: 15px; }
.style-panel section > p { margin: 0 0 8px; color: #766e67; font-size: 12px; font-weight: 900; }
.font-options { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 7px; }
.font-options button { min-height: 68px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; border: 1px solid #e2dbd3; border-radius: 6px; background: white; color: #625b54; padding: 8px 5px; }
.font-options button b { font-size: 18px; }
.font-options button span { font-size: 10px; font-weight: 800; }
.font-options button i { position: absolute; right: 6px; top: 5px; color: var(--coral); font-size: 10px; font-style: normal; }
.font-options button.selected, .ui-options button.selected { border-color: var(--coral); background: #fff5f1; box-shadow: inset 3px 0 0 var(--coral); }
.ui-options { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 6px; }
.ui-options button { min-height: 54px; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; border: 1px solid #e2dbd3; border-radius: 6px; background: white; color: #625b54; padding: 7px 3px; }
.ui-options button > i { width: 18px; height: 18px; border-radius: 6px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.ui-options button span { font-size: 9px; font-weight: 800; white-space: nowrap; }
.ui-options button b { position: absolute; right: 5px; top: 3px; color: var(--coral); font-size: 9px; }
.style-save-note { margin-top: 14px; border-radius: 6px; background: #f2eee9; color: #837b73; padding: 9px 11px; text-align: center; font-size: 10px; }

.study-nav-button, .lecture-toggle, .study-back { min-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #58514b; padding: 8px 11px; font-size: 14px; font-weight: 900; white-space: nowrap; }
.study-nav-button span { margin-right: 5px; color: var(--coral); font: 800 11px Georgia,serif; }

.study-page { background: var(--paper); color: var(--ink); }
.study-hero { min-height: 360px; display: flex; align-items: center; justify-content: space-between; gap: 50px; padding: 70px max(34px,calc((100vw - 1180px)/2)); color: white; background: #292825; border-bottom: 5px solid var(--coral); position: relative; overflow: hidden; }
.study-hero > div { position: relative; z-index: 1; }
.study-hero h1 { margin: 0; font-family: Georgia,'Noto Serif KR',serif; font-size: clamp(36px,5vw,58px); line-height: 1.2; letter-spacing: -.055em; color: #fff; }
.study-hero > div:first-child > p:last-child { max-width: 700px; margin: 20px 0 0; color: #c5c0b9; font-size: 18px; line-height: 1.75; }
.study-visual { width: min(470px,43vw); flex: none; }
.study-visual > img { width: 100%; aspect-ratio: 16 / 8.8; display: block; object-fit: cover; border: 1px solid rgba(255,255,255,.16); border-radius: 5px; box-shadow: none; }
.study-hero-stats { min-width: 270px; display: grid; gap: 8px; }
.study-visual .study-hero-stats { grid-template-columns: repeat(3,minmax(0,1fr)); margin-top: 10px; }
.study-hero-stats article { display: flex; align-items: baseline; justify-content: space-between; gap: 22px; border-bottom: 1px solid rgba(255,255,255,.13); padding: 13px 0; }
.study-visual .study-hero-stats article { display: block; }
.study-hero-stats b { color: #f29577; font: 700 27px Georgia,serif; }
.study-hero-stats span { color: #aaa59e; font-size: 14px; }
.study-layout { width: min(1180px,calc(100% - 40px)); display: grid; grid-template-columns: 300px minmax(0,1fr); gap: 34px; margin: 42px auto; align-items: start; }
.study-index { position: sticky; top: 92px; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 16px; box-shadow: none; }
.study-index > div { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 13px; border-bottom: 1px solid var(--line); }
.study-index > div p { margin: 0; font-size: 16px; font-weight: 900; }
.study-index > div span { color: var(--coral); font: 700 14px Georgia,serif; }
.study-index nav { display: grid; gap: 0; margin-top: 9px; }
.study-index nav button { width: 100%; display: grid; grid-template-columns: 29px 1fr; gap: 8px; align-items: center; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); background: transparent; color: #817970; padding: 10px 8px; text-align: left; }
.study-index nav button > b { color: #b0a79e; font: 700 14px Georgia,serif; }
.study-index nav button > span { font-size: 14px; font-weight: 800; line-height: 1.4; }
.study-index nav button small { display: block; margin-bottom: 2px; color: #aaa198; font-size: 11px; letter-spacing: .08em; }
.study-index nav button.active { border-left: 3px solid var(--coral); background: transparent; box-shadow: none; color: #3d3631; }
.study-index nav button.active > b, .study-index nav button.active small { color: var(--coral); }
.study-content { min-width: 0; }
.study-content > header { border-bottom: 1px solid var(--line); padding: 6px 0 28px; }
.study-content > header > div { display: flex; align-items: center; gap: 10px; }
.study-content > header > div span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; background: var(--coral); color: #fff; font: 700 14px Georgia,serif; }
.study-content > header > div p { margin: 0; color: var(--coral); font-size: 13px; font-weight: 900; letter-spacing: .14em; }
.study-content > header h2 { margin: 22px 0 8px; font-family: Georgia,'Noto Serif KR',serif; font-size: clamp(30px,4vw,45px); line-height: 1.25; letter-spacing: -.055em; }
.study-content > header h3 { margin: 0; color: #746b63; font-size: 20px; }
.study-content > header > p { margin: 18px 0 0; color: #6f675f; font-size: 17px; line-height: 1.8; }
.study-compare { display: grid; grid-template-columns: 1fr 45px 1fr; gap: 12px; align-items: center; margin: 28px 0 4px; }
.study-compare article { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 20px; }
.study-compare small, .study-compare b, .study-compare span { display: block; }
.study-compare small { color: var(--coral); font-size: 13px; font-weight: 900; }
.study-compare b { margin: 8px 0; font-size: 20px; }
.study-compare span { color: #8d847c; font-size: 14px; }
.study-compare > i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: #292825; color: #fff; font: 800 11px Georgia,serif; font-style: normal; }
.market-snapshot { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 9px; margin: 28px 0 4px; }
.market-snapshot article { border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 16px; }
.market-snapshot small, .market-snapshot b { display: block; }
.market-snapshot small { color: #8f877f; font-size: 13px; }
.market-snapshot b { margin-top: 8px; color: var(--coral); font: 700 26px Georgia,serif; }
.study-points { display: grid; gap: 0; margin-top: 28px; border-top: 1px solid var(--line); }
.study-points > article { display: grid; grid-template-columns: 42px 1fr; gap: 14px; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 24px 4px; box-shadow: none; }
.study-points > article > span { color: var(--coral); font: 700 14px Georgia,serif; }
.study-points h4 { margin: 0; font-size: 20px; }
.study-points p { margin: 8px 0 0; color: #6e665f; font-size: 16px; line-height: 1.8; }
.lecture-notes { margin-top: 24px; border-radius: 8px; background: #292825; color: #fff; padding: 23px; border-left: 5px solid var(--coral); }
.lecture-notes > div { display: flex; align-items: center; gap: 10px; }
.lecture-notes > div span { min-width: 64px; border-radius: 3px; background: var(--coral); padding: 7px 10px; font: 800 14px Georgia,serif; text-align: center; letter-spacing: .03em; }
.lecture-notes h3 { margin: 0; font-size: 17px; }
.lecture-notes > p { margin: 13px 0 0; border-left: 2px solid var(--coral); padding-left: 13px; color: #d8d3cd; font-size: 17px; line-height: 1.75; }
.study-caution { display: flex; gap: 14px; align-items: flex-start; margin-top: 16px; border: 1px solid #edc7bb; border-left-width: 4px; border-radius: 6px; background: transparent; padding: 18px; }
.study-caution > span { width: 30px; height: 30px; display: grid; place-items: center; flex: none; border-radius: 4px; background: var(--coral); color: white; font: 900 17px Georgia,serif; }
.study-caution b { font-size: 16px; }
.study-caution p { margin: 6px 0 0; color: #795d53; font-size: 15px; line-height: 1.75; }
.study-next { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; margin-top: 28px; }
.study-next button { border: 0; background: transparent; color: #655e57; padding: 10px 0; font-size: 15px; font-weight: 900; }
.study-next button:disabled { opacity: .25; }
.study-next > span { height: 4px; overflow: hidden; border-radius: 5px; background: #e5ddd4; }
.study-next > span i { display: block; height: 100%; background: var(--coral); transition: width .3s ease; }
.study-sources { width: min(1180px,calc(100% - 40px)); display: grid; grid-template-columns: .8fr 1.2fr; gap: 38px; margin: 60px auto 0; border-top: 1px solid var(--line); padding: 42px 0 70px; }
.study-sources h2 { margin: 0; font-family: Georgia,'Noto Serif KR',serif; font-size: 27px; }
.study-sources > div:first-child > p:last-child { color: #817970; font-size: 14px; line-height: 1.6; }
.study-sources > div:last-child { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.study-sources a { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--line); border-radius: 4px; background: transparent; color: #625b54; padding: 12px; text-decoration: none; font-size: 14px; font-weight: 800; }
.study-sources a span { color: var(--coral); }
.lecture-mode .study-hero { min-height: 280px; padding-block: 42px; }
.lecture-mode .study-hero-stats, .lecture-mode .study-index, .lecture-mode .study-sources { display: none; }
.lecture-mode .study-layout { display: block; width: min(1120px,calc(100% - 48px)); }
.lecture-mode .study-content > header h2 { font-size: clamp(42px,5vw,64px); }
.lecture-mode .study-content > header h3 { font-size: 24px; }
.lecture-mode .study-content > header > p, .lecture-mode .study-points p, .lecture-mode .lecture-notes > p { font-size: 19px; }
.lecture-mode .study-points h4 { font-size: 24px; }

/* Report */
.report-page { background: var(--paper); }
.back-to-edit { border: 1px solid var(--line); border-radius: 6px; background: white; padding: 9px 13px; color: #6f6860; font-size: 9px; font-weight: 800; }
.report-hero { min-height: 250px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 50px max(24px, calc((100vw - 1120px)/2)); background: #292825; color: white; border-radius: 8px; }
.report-hero h1 { margin: 0 0 12px; max-width: 760px; font-family: Georgia, 'Noto Serif KR', serif; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.055em; }
.report-hero > div:first-child > p:last-child { color: #aaa6a0; font-size: 11px; }
.verdict { min-width: 190px; position: relative; z-index: 1; border: 1px solid rgba(255,255,255,.15); border-radius: 6px; padding: 20px; background: rgba(255,255,255,.06); }
.verdict small, .verdict b, .verdict span { display: block; }
.verdict small { color: #c6bfb8; font-size: 8px; }
.verdict b { margin: 8px 0 12px; color: #f29476; font-family: Georgia, 'Noto Serif KR', serif; font-size: 20px; }
.verdict span { color: #aaa6a0; font-size: 8px; }
.export-bar { width: min(1120px, calc(100% - 32px)); margin: -26px auto 0; min-height: 76px; position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 7px; background: white; padding: 12px; box-shadow: 0 4px 14px rgba(50,42,34,.08); }
.export-bar > div { flex: 1; padding: 0 10px; }
.export-bar > div b, .export-bar > div small { display: block; }
.export-bar > div b { font-size: 11px; }
.export-bar > div small { margin-top: 4px; color: #999087; font-size: 8px; }
.export-bar button { min-width: 92px; border: 1px solid var(--line); border-radius: 5px; background: #fdfbf8; padding: 8px; color: #6e665f; font-size: 11px; font-weight: 800; }
.export-bar button span { display: block; margin-bottom: 2px; color: var(--coral); font-size: 10px; }
.export-bar button.kakao { background: #fee500; border-color: #fee500; color: #332c00; }
.export-bar button.kakao span { color: #332c00; }
.report-body { width: min(1050px, calc(100% - 40px)); margin: 44px auto 0; padding-bottom: 70px; }
.report-section.intro { border-left: 3px solid var(--coral); padding: 4px 0 4px 20px; font-family: Georgia, 'Noto Serif KR', serif; font-size: 17px; line-height: 1.8; }
.report-section.intro p { margin: 0; }
.report-section.intro small { display: block; margin-top: 8px; color: #91887f; font: 9px sans-serif; }
.critical-box { margin: 35px 0; border: 1px solid var(--coral); border-left-width: 5px; border-radius: 6px; background: #fff8f5; padding: 24px; box-shadow: none; }
.critical-title { display: flex; align-items: center; gap: 13px; margin-bottom: 15px; }
.critical-title > span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 4px; background: var(--coral); color: white; font: 900 22px Georgia, serif; }
.critical-title p, .critical-title h2 { margin: 0; }
.critical-title p { color: var(--coral-dark); font-size: 8px; font-weight: 900; }
.critical-title h2 { margin-top: 3px; font-family: Georgia, 'Noto Serif KR', serif; font-size: 22px; }
.critical-box article { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid #ecd9d2; }
.critical-box article b { color: var(--coral); font: 700 12px Georgia, serif; }
.critical-box article p { margin: 0; color: #6a544c; font-size: 13px; line-height: 1.65; }
.price-section, .report-columns > section { margin-top: 40px; }
.section-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.section-head h2 { margin: 0; font-family: Georgia, 'Noto Serif KR', serif; font-size: 24px; }
.section-head > p { color: #8a8179; font-size: 9px; }
.price-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.price-cards article { position: relative; border: 1px solid var(--line); border-radius: 7px; background: white; padding: 22px; }
.price-cards article small, .price-cards article b { display: block; }
.price-cards article small { color: #8b837b; font-size: 13px; }
.price-cards article b { margin: 10px 0; font: 700 26px Georgia, serif; }
.price-cards article p { margin: 0; color: #9a9289; font-size: 8px; }
.price-cards article.recommended { background: var(--coral); color: white; border-color: var(--coral); }
.price-cards article.recommended small, .price-cards article.recommended p { color: #ffe2d8; }
.price-cards article.recommended > span { position: absolute; right: 12px; top: 12px; border-radius: 3px; background: white; color: var(--coral); padding: 4px 7px; font-size: 7px; font-weight: 900; }
.report-columns { display: grid; grid-template-columns: 1.2fr .8fr; gap: 34px; }
.rights-results { list-style: none; margin: 0; padding: 0; }
.rights-results li { display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.rights-results li span { color: var(--coral); font: 700 10px Georgia, serif; }
.rights-results li p { margin: 0; color: #655e57; font-size: 13px; line-height: 1.55; }
.field-results { list-style: none; margin: 0; padding: 16px; border-radius: 6px; background: #292825; color: #ddd9d4; }
.field-results li { padding: 9px 0; border-bottom: 1px solid rgba(255,255,255,.08); font-size: 9px; }
.final-disclaimer { margin-top: 45px; border-radius: 6px; background: #e9e3dc; padding: 22px; color: #615a53; }
.final-disclaimer b { font-family: Georgia, 'Noto Serif KR', serif; font-size: 18px; }
.final-disclaimer p { margin: 8px 0 0; font-size: 9px; line-height: 1.7; }

@media (max-width: 820px) {
  .workspace { grid-template-columns: 1fr; }
  .step-rail { display: block; order: 0; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); overflow: hidden; }
  .step-rail > :is(.eyebrow, h2, .progress-track, .rail-note) { display: none; }
  .progress-copy { margin: 0 2px 9px; text-align: left; }
  .step-list { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 3px; }
  .step-list li { flex: 0 0 auto; margin: 0; }
  .step-list li button { min-height: 44px; grid-template-columns: auto auto; gap: 7px; padding: 8px 11px; white-space: nowrap; }
  .step-list small, .current-dot { display: none; }
  .main-panel { order: 1; width: 100%; padding: 22px 18px 38px; }
  .lesson-banner { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 10px 12px; }
  .lesson-banner p { min-width: 0; }
  .lesson-banner button { grid-column: 1 / -1; width: 100%; margin: 0; border-radius: 4px; text-align: center; }
  .lesson-head { grid-template-columns: 1fr; padding-top: 28px; }
  .lesson-head h1 { font-size: clamp(31px, 8vw, 42px); line-height: 1.25; }
  .mini-guide { display: none; }
  .auto-first { grid-template-columns: 42px minmax(0,1fr); padding: 16px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .cost-grid, .report-columns, .market-source-grid { grid-template-columns: 1fr; }
  .case-showcase { grid-template-columns: 1fr; }
  .demo-layout { grid-template-columns: 1fr; }
  .export-bar > div { flex-basis: 100%; }
  .export-bar button { flex: 1; }
  .study-hero { flex-direction: column; align-items: flex-start; min-height: 0; padding: 52px 28px; }
  .study-hero-stats { width: 100%; min-width: 0; grid-template-columns: repeat(3,1fr); }
  .study-visual { width: 100%; max-width: 680px; }
  .study-hero-stats article { display: block; }
  .study-hero-stats span { display: block; margin-top: 5px; }
  .study-layout { grid-template-columns: 1fr; }
  .study-index { position: static; overflow: hidden; }
  .study-index nav { display: flex; overflow-x: auto; }
  .study-index nav button { min-width: 190px; flex: 0 0 auto; }
  .study-sources { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .topbar { padding: 0 18px; }
  .save-state { display: none; }
  .lesson-banner { grid-template-columns: 1fr; }
  .lesson-banner > span { justify-self: start; }
  .lesson-banner button { grid-column: 1; }
  .content-grid, .upload-grid, .form-grid, .price-cards { grid-template-columns: 1fr; }
  .form-grid label.wide { grid-column: span 1; }
  .check-card { order: 2; }
  .step-footer { align-items: stretch; flex-direction: column; gap: 16px; }
  .step-footer > p { display: none; }
  .primary-button { width: 100%; }
  .rights-form { grid-template-columns: 1fr; }
  .compare { margin: -2px auto; }
  .provider-row { grid-template-columns: 1fr; }
  .key-status { align-items: flex-start; flex-wrap: wrap; }
  .api-button { padding: 9px 10px; white-space: nowrap; }
  .demo-backdrop { padding: 10px; }
  .demo-modal { max-height: calc(100vh - 20px); padding: 23px 16px; }
  .demo-head { flex-direction: column; gap: 9px; }
  .demo-head h2 { font-size: 24px; }
  .demo-form, .demo-prices { grid-template-columns: 1fr; }
  .api-modal { padding: 24px 18px; }
  .key-guide { align-items: flex-start; }
  .export-bar { width: calc(100% - 20px); }
  .export-bar button { min-width: calc(50% - 8px); }
  .report-hero { flex-direction: column; align-items: flex-start; }
  .verdict { width: 100%; }
  .price-cards article.recommended { transform: none; }
  .study-nav-button, .lecture-toggle, .study-back { display: none; }
  .study-hero { padding: 40px 18px; }
  .study-hero h1 { font-size: 34px; }
  .study-hero > div:first-child > p:last-child { font-size: 16px; }
  .study-hero-stats { grid-template-columns: 1fr; }
  .study-hero-stats article { display: flex; }
  .study-layout, .study-sources { width: calc(100% - 28px); margin-top: 24px; }
  .study-content > header h2 { font-size: 31px; }
  .study-content > header h3 { font-size: 16px; }
  .study-compare { grid-template-columns: 1fr; }
  .study-compare > i { margin: -3px auto; }
  .market-snapshot { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .study-points > article { grid-template-columns: 31px 1fr; }
  .study-points h4 { font-size: 18px; }
  .study-points p, .study-caution p { font-size: 15px; }
  .lecture-notes > p { font-size: 16px; }
  .study-next { gap: 10px; }
  .study-next button { font-size: 13px; }
  .study-sources > div:last-child { grid-template-columns: 1fr; }
  .study-index nav button { min-width: 220px; }
  .lecture-mode .study-layout { width: calc(100% - 28px); }
  .lecture-mode .study-content > header h2 { font-size: 35px; }
  .lecture-mode .study-content > header > p, .lecture-mode .study-points p, .lecture-mode .lecture-notes > p { font-size: 16px; }
  .style-panel { position: fixed; top: 74px; right: 10px; left: 10px; width: auto; max-height: calc(100vh - 86px); overflow: auto; }
  .font-options, .ui-options { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ui-options button:last-child { grid-column: 1 / -1; }
}
@media (max-width: 390px) {
  .lesson-head h1 { font-size: 29px; }
  .case-metrics { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .export-bar button { min-width: 100%; }
}
@media print {
  .topbar, .step-rail, .lesson-banner, .step-footer, .report-top, .export-bar { display: none !important; }
  .workspace { display: block; }
  .main-panel { width: 100%; padding: 0; }
  .report-page { background: white; }
  .report-hero { min-height: 0; padding: 30px; color: #222; background: white; border: 1px solid #ddd; border-bottom: 3px solid #e56445; }
  .verdict { border-color: #ddd; }
  .report-body { width: 100%; margin-top: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* 글씨체 · 화면 스타일 선택 (사이트 전역 아님 — 이 도구 전용, localStorage 로 두 페이지 공유) */
html[data-font='pretendard'] body { font-family: Pretendard, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; }
html[data-font='noto'] body { font-family: 'Noto Sans KR', 'Noto Sans', Arial, sans-serif; }
html[data-font='system'] body { font-family: Arial, 'Malgun Gothic', sans-serif; }
html[data-font='hand'] body { font-family: 'Nanum Pen Script', 'Segoe Print', 'Comic Sans MS', cursive; }
[data-font-preview='pretendard'] b { font-family: Pretendard, 'Noto Sans KR', sans-serif; }
[data-font-preview='noto'] b { font-family: 'Noto Sans KR', sans-serif; }
[data-font-preview='system'] b { font-family: Arial, 'Malgun Gothic', sans-serif; }
[data-font-preview='hand'] b { font-family: 'Nanum Pen Script', 'Segoe Print', cursive; }

html[data-ui='mac'] { --paper: #f4f5f7; --line: #d9dde2; --coral: #5c75a6; --coral-dark: #405b91; }
html[data-ui='mac'] :is(.primary-button,.analyze-button) { background: #1f2937; }
html[data-ui='google'] { --paper: #f8fafd; --line: #dfe3e7; --coral: #1a73e8; --coral-dark: #1558b0; }
html[data-ui='google'] :is(.primary-button,.analyze-button) { background: #1a73e8; }
html[data-ui='google'] .brand-mark { background: #1a73e8; }
html[data-ui='claude'] { --paper: #f7f3ed; --line: #ded5c9; --coral: #d97757; --coral-dark: #a84d34; }
html[data-ui='claude'] :is(.primary-button,.analyze-button) { background: #d97757; }
html[data-ui='claude'] .brand-mark { background: #3f372f; }
html[data-ui='dark'] { --ink: #f5f1eb; --muted: #aaa39a; --line: #393936; --paper: #151513; --coral: #ef805e; --coral-dark: #ff9a79; color-scheme: dark; }
html[data-ui='dark'] body { background: #151513; color: #f5f1eb; }
html[data-ui='dark'] :is(.upload-card,.input-card,.timeline-card,.analyze-card,.market-parser,.api-modal,.demo-modal,.export-bar,.price-cards article,.study-index,.study-compare article,.market-snapshot article) { background: #1d1d1b; border-color: #393936; color: #f5f1eb; }
html[data-ui='dark'] :is(.form-grid input,.rights-form input,.unit-input,.memo-label textarea,.market-parser > textarea,.sheet-wrap td,.sheet-wrap input,.sheet-wrap select,.key-input,.key-input input,.font-options button,.ui-options button,.style-trigger) { background: #262624; border-color: #454540; color: #f5f1eb; }
html[data-ui='dark'] :is(.style-panel) { background: #232320; border-color: #4a3a34; color: #f5f1eb; }
html[data-ui='dark'] :is(.style-panel-head > button,.style-save-note,.sheet-wrap th,.provider-tabs,.back-to-edit) { background: #30302d; color: #d3cdc5; border-color: #454540; }
html[data-ui='dark'] :is(.card-heading h3,.section-title h3,.style-panel-head h3,.style-panel section > p,.key-status p b) { color: #f5f1eb; }
html[data-ui='dark'] :is(.font-options button.selected,.ui-options button.selected) { background: #302722; }
html[data-ui='dark'] :is(.primary-button,.analyze-button) { background: #ef805e; }
html[data-ui='dark'] .brand-mark { background: #ef805e; }
html[data-ui='dark'] :is(.topbar,.report-top,.auto-first,.study-points > article,.study-sources a) { background: var(--paper); }
html[data-ui='dark'] :is(.study-caution,.study-index nav button.active) { background: #302722; border-color: #67463b; }
html[data-ui='dark'] .study-caution p { color: #e0b8aa; }
html[data-ui='dark'] :is(.study-content > header h3,.study-content > header > p,.study-points p,.study-sources > div:first-child > p:last-child,.study-compare span) { color: #b9b2aa; }
