:root{--bg: #f5f4ed;--surface: #faf9f5;--surface-soft: #f1efe6;--surface-muted: #e8e6dc;--ink: #141413;--ink-soft: #3d3d3a;--muted: #504e49;--faint: #6b6a64;--line: #e8e6dc;--line-strong: #d8d5c9;--accent: #1b365d;--accent-ink: #1b365d;--accent-soft: #eef2f7;--blue: #1b365d;--blue-soft: #eef2f7;--amber: #504e49;--amber-soft: #f1efe6;--danger: #8f3d31;--danger-soft: #f7ebe7;--shadow: 0 1px 0 #e8e6dc, 0 16px 40px rgba(20, 20, 19, .045);--shadow-tight: 0 1px 0 #e8e6dc, 0 8px 20px rgba(20, 20, 19, .04);--radius: 8px;font-family:Pretendard,Noto Sans KR,Apple SD Gothic Neo,Malgun Gothic,-apple-system,BlinkMacSystemFont,system-ui,sans-serif;color:var(--ink);background:var(--bg);font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}body{margin:0;min-width:320px;background:var(--bg);overflow-x:hidden}button,input,select,textarea{max-width:100%;min-width:0;font:inherit}button{border:0;-webkit-tap-highlight-color:transparent}button,summary{touch-action:manipulation}.page{width:100%;max-width:1120px;margin:0 auto;padding:40px 24px 68px}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:26px}.brandCluster{display:flex;min-width:0;align-items:center;gap:13px}.brandMark{display:grid;flex:0 0 auto;width:38px;height:38px;place-items:center;border:1px solid var(--accent);border-radius:6px;color:var(--accent);background:var(--surface);box-shadow:none;font-size:12px;font-weight:650;letter-spacing:0}.topbarActions{display:flex;flex:0 0 auto;align-items:center;gap:10px}h1,h2,h3,h4,p{margin:0}h1{color:var(--ink);font-size:22px;font-weight:650;letter-spacing:0;line-height:1.2}.brandCluster p{margin-top:3px;color:var(--muted);font-size:13px;font-weight:520;line-height:1.35}h2{color:var(--ink);font-size:15px;font-weight:650;letter-spacing:0;line-height:1.35}h3{margin:18px 0 8px;color:var(--ink);font-size:17px;font-weight:650;letter-spacing:0}h4{margin:16px 0 7px;color:var(--ink);font-size:15px;font-weight:650;letter-spacing:0}label{display:block;margin-bottom:9px;color:var(--ink-soft);font-size:13px;font-weight:600}.workspace{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:start}.panel{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);box-shadow:var(--shadow)}.composer{position:sticky;top:22px;display:flex;flex-direction:column;padding:22px}.panelHeader,.sectionHeader{display:flex;align-items:center;justify-content:space-between;gap:12px}.panelHeader{margin-bottom:18px}.panelHeader h2,.sectionHeader h2{border-left:3px solid var(--accent);padding-left:10px}.panelHeader p,.sectionHeader p{margin-top:10px;padding-left:13px;color:var(--faint);font-size:12px;font-weight:500;line-height:1.35}textarea{width:100%;min-height:268px;max-height:48vh;resize:vertical;border:1px solid var(--line-strong);border-radius:6px;padding:17px 18px;color:var(--ink);background:#fffdf8;box-shadow:inset 0 1px #f1efe6;font-size:15px;line-height:1.62;overflow-wrap:break-word;transition:border-color .16s ease,box-shadow .16s ease,background .16s ease}textarea::placeholder{color:#8a877d}textarea:focus{border-color:var(--accent);background:#fffdf8;box-shadow:0 0 0 3px #e4ecf5,inset 0 1px #f1efe6;outline:none}.composerFooter{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}.depthControl{display:grid;flex:1 1 220px;grid-template-columns:repeat(3,minmax(0,1fr));gap:2px;max-width:270px;border:1px solid var(--line);border-radius:6px;padding:3px;background:var(--surface-muted)}.depthOption{height:34px;border-radius:4px;color:var(--muted);background:transparent;cursor:pointer;font-size:13px;font-weight:600;letter-spacing:0;transition:color .16s ease,background .16s ease,box-shadow .16s ease}.depthOption:hover,.depthOption:focus-visible{color:var(--ink)}.depthOption.isActive{color:var(--ink);background:var(--surface);box-shadow:0 0 0 1px #d8d5c9}.primaryAction,.ghost{display:inline-flex;align-items:center;justify-content:center;height:42px;border-radius:6px;padding:0 16px;cursor:pointer;font-size:14px;font-weight:650;letter-spacing:0;white-space:nowrap;transition:transform .12s ease,border-color .16s ease,background .16s ease,color .16s ease,opacity .16s ease,box-shadow .16s ease}.primaryAction{border:1px solid var(--accent-ink);color:#faf9f5;background:var(--accent-ink);box-shadow:0 0 0 1px var(--accent-ink)}.primaryAction:hover:not(:disabled){border-color:var(--accent);background:var(--accent);box-shadow:0 0 0 1px var(--accent)}.ghost{border:1px solid var(--line-strong);color:var(--ink-soft);background:var(--surface)}.ghost:hover:not(:disabled){border-color:var(--accent);color:var(--ink);background:#fffdf8;box-shadow:none}.primaryAction:active:not(:disabled),.ghost:active:not(:disabled),.depthOption:active:not(:disabled){transform:translateY(1px)}.primaryAction:disabled,.ghost:disabled{border-color:var(--line);color:#9a968b;background:#ebe9df;box-shadow:none;cursor:not-allowed}button:focus-visible,summary:focus-visible{outline:3px solid #d0dce9;outline-offset:2px}.copyButton{min-width:94px}.statusChip{display:inline-flex;align-items:center;gap:7px;min-height:32px;border:1px solid var(--line);border-radius:999px;padding:0 11px;color:var(--muted);background:var(--surface);font-size:12px;font-weight:600;line-height:1;white-space:nowrap}.statusChip:before{content:"";width:7px;height:7px;border-radius:999px;background:currentColor}.status-loading{border-color:#d8d5c9;color:var(--muted);background:#f1efe6}.status-done{border-color:#d0dce9;color:var(--accent);background:var(--accent-soft)}.status-error{border-color:#e7c8bf;color:var(--danger);background:var(--danger-soft)}.answerSection{overflow:hidden}.sectionHeader{margin:0;border-bottom:1px solid var(--line);padding:18px 22px 14px;background:var(--surface)}.answer{min-height:163px;padding:24px 26px;color:var(--ink);background:#fffdf8;font-size:15px;line-height:1.62}.answer>.empty{display:grid;min-height:133px;place-items:center;border:1px dashed var(--line-strong);border-radius:6px;background:var(--surface-soft);text-align:center}.answer p+p{margin-top:12px}.answer ul{margin:10px 0 14px;padding-left:22px}.answer li{margin:6px 0}.answer strong{color:#111318;font-weight:650}.answer code{border:1px solid #d0dce9;border-radius:4px;padding:1px 5px;color:var(--ink);background:var(--accent-soft);font-family:SFMono-Regular,Consolas,monospace;font-size:.92em}.answer .tableScroll{margin:16px 0 20px;overflow-x:auto}.answer table{width:100%;min-width:560px;overflow:hidden;border:1px solid var(--line);border-collapse:separate;border-spacing:0;border-radius:6px;background:var(--surface);font-size:14px;line-height:1.48}.answer th,.answer td{border-bottom:1px solid var(--line);padding:11px 12px;text-align:left;vertical-align:middle}.answer th{color:var(--ink-soft);background:#f1efe6;font-weight:600}.answer td{color:var(--muted)}.answer td:not(:first-child),.answer th:not(:first-child){text-align:right}.answer tr:last-child td{border-bottom:0}.loadingState{display:grid;gap:12px;padding-top:3px}.skeletonLine{display:block;width:92%;height:14px;overflow:hidden;border-radius:999px;background:linear-gradient(90deg,#ece9df,#faf9f5 48%,#ece9df);background-size:220% 100%;animation:shimmer 1.25s ease-in-out infinite}.skeletonWide{width:100%}.skeletonMedium{width:74%}.skeletonShort{width:48%}.skeletonGap{height:14px}@keyframes shimmer{0%{background-position:120% 0}to{background-position:-120% 0}}.calcBox{margin:0 20px 20px;border:1px solid #d0dce9;border-radius:6px;padding:14px 16px;color:var(--accent);background:var(--accent-soft)}.calcBox h3{margin:0 0 8px;color:var(--accent);font-size:14px}.calcBox p{line-height:1.58}.calcBox p+p{margin-top:6px}.interpretationPanel{margin:0 20px 20px;border:1px solid var(--line);border-radius:6px;background:var(--surface)}.interpretationPanel summary{padding:12px 14px;color:var(--ink-soft);cursor:pointer;font-weight:600;list-style:none}.interpretationPanel summary::-webkit-details-marker{display:none}.interpretationSummary{padding:0 14px 12px;color:var(--muted);line-height:1.55}.interpretationGrid{display:grid;gap:8px;padding:0 14px 12px}.interpretationItem{border-left:2px solid var(--line-strong);padding-left:10px}.interpretationItem strong{display:block;margin-bottom:3px;color:var(--ink);font-size:13px}.interpretationItem p{color:var(--muted);line-height:1.55}.interpretationItem span{display:inline-block;margin-top:5px;color:var(--faint);font-size:12px}.interpretationNotes{margin:0;padding:0 28px 12px 34px;color:var(--muted);line-height:1.55}.interpretationMeta{padding:0 14px 14px;color:var(--faint);font-size:13px}.empty{color:var(--faint)}.error{margin-top:12px;border:1px solid #e7c8bf;border-radius:6px;padding:10px 12px;color:var(--danger);background:var(--danger-soft);font-size:13px;line-height:1.45}.evidenceList{display:grid;gap:8px;padding:14px 22px 22px}.evidenceList>.empty{display:grid;min-height:108px;place-items:center;border:1px dashed var(--line-strong);border-radius:6px;background:var(--surface-soft);text-align:center}.evidencePane>.empty{display:grid;min-height:82px;margin:14px 22px 22px;place-items:center;border:1px dashed var(--line-strong);border-radius:6px;background:var(--surface-soft);text-align:center}.evidencePane .sectionHeader{border-top:1px solid var(--line);padding-top:16px}.evidence{border:1px solid var(--line);border-radius:6px;background:var(--surface);transition:border-color .16s ease,box-shadow .16s ease}.evidence[open]{border-color:#d0dce9;box-shadow:0 0 0 1px #d0dce9}.evidence summary{display:grid;grid-template-columns:auto minmax(0,1fr) auto 12px;align-items:center;gap:10px;padding:12px 14px;cursor:pointer;list-style:none}.evidence summary:after{content:"";width:7px;height:7px;border-right:1.5px solid var(--faint);border-bottom:1.5px solid var(--faint);transform:rotate(45deg);transition:transform .16s ease}.evidence[open] summary:after{transform:rotate(-135deg)}.evidence summary::-webkit-details-marker{display:none}.evidenceTitle{overflow:hidden;color:var(--ink-soft);text-overflow:ellipsis;white-space:nowrap;font-weight:620}.source{border-radius:4px;padding:3px 7px;font-size:12px;font-weight:600;line-height:1.2}.source-handout,.source-mainbook{color:var(--accent);background:var(--accent-soft)}.source-style{color:var(--muted);background:#f1efe6}.pageRef{color:var(--faint);font-size:13px;font-weight:620;white-space:nowrap}.evidence p{border-top:1px solid var(--line);padding:13px 14px 14px;color:var(--muted);background:#fffdf8;line-height:1.55}@media (prefers-reduced-motion: reduce){*,*:before,*:after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}@media (max-width: 960px){.workspace{grid-template-columns:1fr}.composer{position:static;height:auto}textarea{min-height:250px;max-height:none}.answer{min-height:220px}}@media (max-width: 720px){.page{padding:22px 12px 40px}.topbar{align-items:flex-start;margin-bottom:20px}.brandMark{width:38px;height:38px}h1{font-size:19px}.composer,.answer{padding:18px}.sectionHeader{padding:16px 18px 13px}.composerFooter{align-items:stretch;flex-wrap:wrap}.depthControl{max-width:none}.primaryAction{flex:1 1 180px}.interpretationPanel,.calcBox{margin-right:18px;margin-left:18px}.evidenceList{padding:14px 18px 18px}.evidencePane>.empty{margin:14px 18px 18px}.evidence summary{grid-template-columns:auto 1fr 12px}.pageRef{grid-column:2;grid-row:2;justify-self:start}.evidence summary:after{grid-column:3;grid-row:1 / span 2}.evidenceTitle{grid-column:2;white-space:normal}}@media (max-width: 520px){.topbar{flex-direction:column}.topbarActions{width:100%}.copyButton{flex:1 1 auto}.composerFooter{display:grid;grid-template-columns:1fr}.primaryAction,.depthControl{width:100%}textarea{min-height:280px;padding:15px}.answer{min-height:220px}}
