:root {
  color-scheme: light;
  --paper: #f6f8f7;
  --sheet: #ffffff;
  --ink: #172b24;
  --muted: #60716a;
  --line: #dfe7e2;
  --line-strong: #becfc5;
  --green: #176b50;
  --green-soft: #eaf4ee;
  --focus: #147957;
  --on-green: #ffffff;
  --green-hover: #254633;
  --disabled-ink: #7b8880;
  --disabled-bg: #e5ebe7;
  --quiet-hover: #edf2ef;
  --workspace-width: 1280px;
  --workspace-gutter: 48px;
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif;
  font-synthesis: none;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #131416; --sheet: #1b1d20; --ink: #ededef; --muted: #a6a9ae;
  --line: #32353a; --line-strong: #51555d; --green: #8bd6ac; --green-soft: #25292a;
  --focus: #a1e5bf; --on-green: #10291c; --green-hover: #a6e4bf;
  --disabled-ink: #85888e; --disabled-bg: #2b2e33; --quiet-hover: #282b30;
}
.theme-toggle { position: absolute; z-index: 20; top: 22px; right: 18px; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--sheet); color: var(--muted); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); background: var(--green-soft); }
[data-hosting-shell]:has([data-runner]:not([hidden])) > .theme-toggle { right: max(var(--workspace-gutter), calc((100% - var(--workspace-width)) / 2 + var(--workspace-gutter))); }
.header-main { padding-right: 56px; }
.login-screen { min-height: 100dvh; display: grid; place-items: center; padding: 72px 24px; }
.login-card { display: flex; flex-direction: column; align-items: center; width: min(100%, 340px); text-align: center; }
.login-brand { font: 700 64px/1 Georgia, serif; letter-spacing: -.07em; }
.login-brand span { color: var(--green); }
.login-card h1 { font-size: 25px; letter-spacing: -.04em; margin: 18px 0 34px; }
.login-card .button { min-width: 220px; background: var(--sheet); }
.login-card .account-status { margin-top: 22px; text-align: center; }
.user-guide-link { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 12px; border-radius: 8px; color: var(--muted); font-size: 13px; text-decoration: none; }
.user-guide-link:hover { color: var(--ink); background: var(--quiet-hover); }
.user-guide-link > span { font-size: 16px; }
.investigation-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; max-height: min(66dvh, 840px); overflow-y: auto; scrollbar-gutter: stable; padding: 4px; margin: -4px; }
.investigation-entry { min-width: 0; position: relative; border-radius: 8px; }
.investigation-entry:hover { background: var(--sheet); }
.investigation-entry[data-selected="true"] { background: var(--green-soft); box-shadow: inset 2px 0 var(--green); }
.run-choice { display: block; width: 100%; padding: 13px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.run-choice:disabled { cursor: default; opacity: .6; }
.run-choice-title { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; font-size: 13px; line-height: 1.6; font-weight: 550; overflow-wrap: anywhere; }
.run-choice-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 4px 10px; color: var(--muted); margin-top: 7px; font-size: 11px; line-height: 1.6; }
.run-choice-time { white-space: nowrap; }
.run-choice-state { font-size: 11px; }
.directory-refresh { width: 36px; min-height: 36px; padding: 8px; justify-content: center; }
.directory-refresh svg { display: block; width: 16px; height: 16px; }
.investigation-entry[data-status="running"] .run-choice-state::before, .investigation-entry[data-status="queued"] .run-choice-state::before { content: ''; display: inline-block; margin-right: 6px; width: 6px; height: 6px; border-radius: 50%; background: var(--green); }
.paragraph-comment { display: inline-flex; vertical-align: middle; align-items: center; justify-content: center; width: 36px; min-width: 36px; height: 36px; margin: -6px 0 -6px 6px; padding: 10px; border: 0; border-radius: 50%; color: var(--muted); background: transparent; cursor: pointer; }
.paragraph-comment::before { content: ''; width: 16px; height: 16px; flex-shrink: 0; background: currentColor; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8 8 0 0 1-8 8H5l-3 2v-6a8 8 0 1 1 18-4Z'/%3E%3C/svg%3E") center/contain no-repeat; }
.paragraph-comment:hover, .paragraph-comment:focus-visible { opacity: 1; color: var(--green); background: var(--green-soft); }
@media (pointer: coarse), (max-width: 760px) { .paragraph-comment { width: 44px; min-width: 44px; height: 44px; padding: 14px; margin-block: -10px; } }
@media (max-width: 760px) { .investigation-list { max-height: 290px; } .theme-toggle { top: 16px; right: 12px; } }
input { font: inherit; color: inherit; }
input:focus-visible, summary:focus-visible, a:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.review-account { font-size: 12px; max-width: 340px; text-align: right; color: var(--muted); }
.review-account summary { cursor: pointer; min-height: 28px; }
.review-account code { display: block; user-select: all; overflow-wrap: anywhere; }
.live-feedback-choice { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 20px; font-size: 14px; }
.live-feedback-choice input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; }
.research-limit-fields, .review-access-panel { margin-top: 12px; padding: 16px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; }
.research-limit-fields label, .review-access-panel label { display: flex; flex-direction: column; gap: 5px; margin-top: 12px; }
.research-limit-fields input, .review-access-panel input, .feedback-field input { min-height: 44px; width: 100%; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--sheet); padding: 8px 10px; }
.research-limit-fields details { margin-top: 14px; }
.research-limit-fields summary, .review-access-panel summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.research-process-sheet { margin: 0 0 20px; min-width: 0; border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); }
.research-process-shell > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; padding: 16px 24px; cursor: pointer; font-weight: 650; }
.research-process-shell > summary::before { content: '+'; color: var(--green); font-size: 22px; font-weight: 400; }
.research-process-shell[open] > summary::before { content: '−'; }
.research-process-shell > summary > :first-child { margin-right: auto; }
.research-process-content { border-top: 1px solid var(--line); padding: 20px 24px; }
.process-toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.process-current { flex: 1 1 260px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.process-read-status { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.research-steps { display: grid; gap: 8px; }
.research-step { border: 1px solid var(--line); border-radius: 10px; min-width: 0; }
.research-step > details > summary { display: flex; align-items: center; gap: 16px; list-style: none; padding: 14px 16px; cursor: pointer; overflow-wrap: anywhere; }
.research-step > details > summary::-webkit-details-marker { display: none; }
.process-step-heading { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.process-step-metadata { color: var(--muted); font-size: 12px; line-height: 1.5; font-weight: 400; }
.process-step-question { display: block; font-size: 14px; line-height: 1.6; font-weight: 550; }
.research-step > details:not([open]) .process-step-question { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.process-step-chevron { width: 8px; height: 8px; flex-shrink: 0; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); margin-right: 3px; }
.research-step > details[open] > summary .process-step-chevron { transform: rotate(45deg); }
.research-step > details[open] > summary { border-bottom: 1px solid var(--line); }
.research-step-frame { padding: 14px 18px 18px; min-width: 0; }
.research-steps + button { margin-top: 16px; }
.research-step-frame.has-feedback { display: grid; grid-template-columns: minmax(0, 1fr) minmax(270px, .8fr); gap: 24px; align-items: start; }
.research-step-content, .research-feedback-slot { min-width: 0; overflow-wrap: anywhere; }
.research-step-content h4 { font-size: 13px; margin: 18px 0 6px; }
.research-step-content p { font-size: 14px; margin-bottom: 10px; white-space: pre-wrap; }
.process-step-state, .process-time { color: var(--muted); font-size: 12px !important; }
.decision-guidance { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; min-width: 0; }
.decision-guidance > summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--muted); font-size: 13px; }
.decision-guidance-item { margin: 12px 0; min-width: 0; overflow-wrap: anywhere; }
.decision-guidance-item p { font-size: 13px; line-height: 1.65; margin: 6px 0; }
.decision-guidance-label { font-weight: 600; }
.decision-guidance-item ul { padding-left: 18px; margin: 8px 0 12px; }
.decision-guidance-item li { margin: 8px 0; font-size: 13px; line-height: 1.65; }
.decision-guidance-detail { display: block; color: var(--muted); }
.process-sources details { border-top: 1px solid var(--line); padding: 5px 0; }
.process-sources summary, .research-step-content > details > summary { min-height: 44px; cursor: pointer; padding: 10px 0; font-size: 13px; }
.process-sources a { display: inline-flex; min-height: 44px; align-items: center; color: var(--green); font-size: 13px; }
.process-collected-text { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; padding: 14px; background: var(--paper); font-size: 14px; line-height: 1.75; }
.feedback-composer { border: 1px solid var(--line-strong); border-radius: 10px; padding: 20px; background: var(--green-soft); min-width: 0; }
.feedback-composer h3 { font-size: 17px; margin-bottom: 8px; }
.feedback-prompt { font-size: 14px; line-height: 1.65; margin-bottom: 14px; }
.feedback-field { display: flex; flex-direction: column; gap: 7px; margin: 14px 0; font-size: 13px; font-weight: 550; }
.feedback-field textarea { width: 100%; min-height: 112px; padding: 12px; resize: vertical; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--sheet); color: var(--ink); font-size: 15px; line-height: 1.65; }
.feedback-field select { width: 100%; min-height: 44px; padding: 8px; background: var(--sheet); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 7px; }
.feedback-options > summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-size: 13px; }
.feedback-save-status { font-size: 13px; margin-top: 12px; color: var(--green); overflow-wrap: anywhere; }
.feedback-quote { margin: 12px 0; padding: 10px 14px; border-left: 3px solid var(--green); background: var(--sheet); font-size: 14px; max-height: 180px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.step-feedback-thread { padding: 0 18px; }
.feedback-entry { padding: 18px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.feedback-author, .feedback-disposition { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.feedback-comment { font-size: 14px; white-space: pre-wrap; margin-bottom: 10px; }
.feedback-entry > p { margin-bottom: 8px; }
.feedback-entry-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.feedback-entry-actions .button { font-size: 12px; padding: 8px 12px; min-height: 44px; }
.feedback-context-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--green); font-size: 13px; margin-right: 12px; }
.feedback-history { margin-top: 12px; padding: 12px; background: var(--paper); }
.feedback-assessment { color: var(--green); font-size: 13px; }
.document-feedback-controls { display: flex; align-items: center; gap: 16px; margin: 16px 0 24px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.document-feedback-controls .button { flex-shrink: 0; }
.document-feedback-controls .field-description { margin: 0; }
.document-feedback-slot:empty, .paragraph-feedback-slot:empty { display: none; }
.document-feedback-slot, .paragraph-feedback-slot { margin: 16px 0 24px; }
.paragraph-feedback-controls { margin: -8px 0 16px; }
.paragraph-feedback-controls .button { min-height: 44px; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 12px; color: var(--green); padding: 8px 0; }
.manuscript-feedback-list > summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-size: 15px; font-weight: 600; }
.manuscript-feedback-dock > .feedback-composer { margin-bottom: 20px; }
.feedback-revision-form { margin-top: 18px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; }
.feedback-revision-form h4 { margin: 0 0 14px; font-size: 15px; }
.revision-feedback-selection { display: grid; gap: 10px; max-height: 400px; overflow: auto; margin-bottom: 20px; }
.revision-feedback-choice { display: flex; gap: 12px; padding: 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 8px; background: var(--sheet); font-size: 14px; cursor: pointer; }
.revision-feedback-choice > input { width: 20px; height: 20px; accent-color: var(--green); flex-shrink: 0; margin-top: 3px; }
.revision-feedback-choice > span { min-width: 0; overflow-wrap: anywhere; }
.revision-feedback-choice strong { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.revision-feedback-choice span span { white-space: pre-wrap; }
.revision-limits { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px 20px; margin: 20px 0; }
.revision-limits h4 { grid-column: 1/-1; }
.revision-limits .feedback-field { margin: 4px 0 8px; }
.revision-feedback-result { padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.revision-change { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; margin: 18px 0; }
.revision-change > div { min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.revision-change > div:last-child { background: var(--green-soft); }
.revision-change h5 { margin: 0 0 12px; font-size: 13px; }
.revision-change p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
[data-revision-view] > div > h4 { font-size: 18px; margin: 0 0 10px; }
@media (max-width: 600px) { .document-feedback-controls { flex-direction: column; align-items: start; gap: 10px; } .revision-limits, .revision-change { grid-template-columns: 1fr; } .feedback-revision-form { padding: 16px; } }
[data-manuscript-feedback], [data-revision-view] { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
@media (max-width: 1100px) { .research-step-frame.has-feedback { grid-template-columns: 1fr; gap: 16px; } }
@media (max-width: 600px) { .research-process-content { padding: 16px; } .research-process-shell > summary { padding: 16px; } .research-process-shell .section-caption { display: none; } .feedback-composer { padding: 16px; } .review-account { max-width: 270px; } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, textarea, select { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
button, textarea, select { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
button:focus-visible, textarea:focus-visible, select:focus-visible, [role="tabpanel"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, p { margin: 0; }
.workspace-header { padding: 0 var(--workspace-gutter); background: var(--sheet); border-bottom: 1px solid var(--line); }
.header-main { max-width: calc(var(--workspace-width) - 2 * var(--workspace-gutter)); min-height: 92px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.brand-mark { font-family: "Iowan Old Style", "Palatino Linotype", Georgia, serif; font-size: 40px; font-weight: 700; letter-spacing: -.07em; line-height: 1; }
.brand-mark > span { color: #66825b; }
.brand-copy { display: flex; flex-direction: column; border-left: 1px solid var(--line-strong); padding-left: 15px; gap: 3px; }
.brand-name { font-size: 12px; font-weight: 750; letter-spacing: .12em; }
.brand-subtitle { font-family: "Iowan Old Style", Georgia, serif; color: var(--muted); font-size: 15px; font-style: italic; }
.account-area { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; min-width: 0; }
.account-status { font-size: 13px; color: var(--muted); text-align: right; max-width: 620px; overflow-wrap: anywhere; }
.account-session { color: var(--muted); font-size: 13px; line-height: 1.5; text-align: right; }
.account-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 18px; border: 1px solid transparent; border-radius: 8px; font-size: 13px; font-weight: 650; line-height: 1.4; cursor: pointer; white-space: nowrap; }
.button-compact { min-height: 44px; padding: 9px 12px; font-size: 12px; }
.button-outline { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-outline:not(:disabled):hover { background: var(--green-soft); border-color: var(--green); }
.button-outline:disabled { color: #8a938d; border-color: var(--line); background: #f9f9f5; }
.button-quiet { color: var(--muted); background: transparent; }
.button-quiet:not(:disabled):hover { color: var(--ink); background: #edf0e9; }
.button-quiet:disabled { color: #9a9f97; }
.button-primary { min-height: 48px; min-width: 160px; background: var(--green); color: white; padding: 13px 20px; font-size: 14px; justify-content: space-between; }
.button-primary > span { font-size: 21px; font-weight: 400; }
.button-primary:not(:disabled):hover { background: #254633; }
.button-primary:disabled { background: #e2e8dd; color: #84917d; border-color: #d7dfd1; }
.connection-bar { max-width: calc(var(--workspace-width) - 2 * var(--workspace-gutter)); min-height: 43px; margin: 0 auto; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 16px; padding: 10px 0; font-size: 13px; line-height: 1.55; }
.connection-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; flex-shrink: 0; }
.connection-symbol { width: 7px; height: 7px; border: 1px solid #929d93; border-radius: 50%; }
.connection-bar > p { color: var(--muted); overflow-wrap: anywhere; }
.workspace-label { margin-left: auto; padding-left: 18px; font-size: 9px; letter-spacing: .14em; color: var(--muted); white-space: nowrap; }
.workspace-content { max-width: var(--workspace-width); margin: 0 auto; padding: 0 var(--workspace-gutter) 64px; }
.workspace-nav { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 24px; margin-bottom: 38px; }
.tabs { display: flex; gap: 30px; }
.tab { min-height: 74px; position: relative; display: inline-flex; align-items: baseline; gap: 11px; padding: 23px 0 22px; border: 0; background: transparent; color: #7f8880; cursor: pointer; font-weight: 600; font-size: 14px; white-space: nowrap; }
.tab-caption { font-family: "Iowan Old Style", Georgia, serif; font-size: 13px; font-weight: 400; }
.tab::after { content: ""; position: absolute; bottom: -1px; left: 0; right: 0; height: 3px; background: transparent; }
.tab[aria-selected="true"] { color: var(--ink); }
.tab[aria-selected="true"]::after { background: var(--green); }
.tab[aria-selected="false"]:hover { color: var(--green); }
.nav-note { font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.page-intro { margin-bottom: 31px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 10px; font-weight: 650; line-height: 1.6; letter-spacing: .13em; }
.eyebrow-line { display: inline-block; height: 1px; width: 25px; background: #93a18c; }
h1 { font-size: clamp(32px, 3.3vw, 43px); line-height: 1.3; letter-spacing: -.055em; font-weight: 700; margin: 15px 0 14px; word-break: keep-all; }
.intro-description { color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.mobile-break { display: none; }
.new-research-layout { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 48px; align-items: start; }
.brief-sheet, .result-sheet { border: 1px solid var(--line); border-radius: 14px; background: var(--sheet); }
.brief-sheet { padding: 28px 30px 28px; box-shadow: 0 8px 32px #172b2405; }
.sheet-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.sheet-heading h2 { font-size: 15px; font-weight: 700; letter-spacing: -.025em; }
.section-caption { color: var(--muted); font-size: 9px; letter-spacing: .12em; white-space: nowrap; }
label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 7px; }
.field-description { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 15px; word-break: keep-all; }
textarea { display: block; width: 100%; min-height: 252px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; padding: 19px 18px; background: var(--sheet); color: var(--ink); line-height: 1.85; font-size: 14px; }
textarea::placeholder { color: var(--muted); font-size: 13px; }
textarea:hover { border-color: var(--line-strong); }
textarea:focus { border-color: var(--green); background: var(--sheet); }
.field-limit { text-align: right; color: var(--muted); font-size: 13px; margin-top: 8px; }
.submit-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.submit-note { color: var(--muted); font-size: 13px; line-height: 1.65; }
.editor-note { padding-top: 7px; }
.editor-note > .eyebrow { font-size: 9px; letter-spacing: .1em; color: var(--muted); }
.editor-note > h2 { font-size: 21px; letter-spacing: -.04em; line-height: 1.5; font-weight: 550; margin: 16px 0 22px; }
.question-guide { list-style: none; padding: 0; margin: 0; }
.question-guide li { display: flex; gap: 14px; padding: 17px 0; border-top: 1px solid var(--line); }
.guide-number { color: #889680; font-family: "Iowan Old Style", Georgia, serif; font-size: 13px; line-height: 1.5; }
.question-guide h3 { font-size: 14px; font-weight: 650; margin-bottom: 7px; letter-spacing: -.02em; }
.question-guide p { font-size: 13px; color: var(--muted); line-height: 1.8; word-break: keep-all; }
.editor-note-footer { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 3px; color: var(--muted); font-size: 13px; line-height: 1.8; }
.history-intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.refresh-button { margin-bottom: 2px; }
.refresh-button > span { font-size: 18px; line-height: 1; }
.history-layout { display: grid; grid-template-columns: 292px minmax(0, 1fr); gap: 30px; align-items: start; }
.run-directory { min-width: 0; padding-top: 24px; }
.run-directory .sheet-heading { margin-bottom: 20px; padding-bottom: 20px; }
select { height: 46px; display: block; width: 100%; min-height: 46px; padding: 11px 34px 11px 12px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--sheet); color: var(--ink); font-size: 14px; text-overflow: ellipsis; }
select:disabled { color: #929b90; background: #f0f2eb; border-color: var(--line); cursor: not-allowed; }
.list-status { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 12px; }
.refresh-status:empty { display: none; }
.run-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 23px; }
.run-actions .button { font-size: 13px; padding: 11px 8px; }
.run-actions .cancel-button { grid-column: 1 / -1; justify-self: start; padding-left: 0; min-height: 44px; font-weight: 450; }
.cancel-button:not(:disabled):hover { color: #9a5043; background: transparent; }
.permissions-note { display: flex; gap: 10px; margin-top: 27px; padding-top: 18px; border-top: 1px solid var(--line); }
.note-mark { width: 14px; height: 14px; border: 1px solid #98a08e; border-radius: 50%; color: #829073; font: italic 10px/12px Georgia, serif; text-align: center; flex-shrink: 0; margin-top: 3px; }
.permissions-note p { color: var(--muted); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.result-sheet { min-width: 0; padding: 28px 30px; min-height: 420px; }
.result-sheet .sheet-heading { margin-bottom: 0; }
.run-guidance { margin-top: 20px; padding: 14px 16px; border-left: 2px solid var(--line-strong); background: #f5f7f0; color: var(--muted); font-size: 13px; line-height: 1.85; white-space: pre-line; overflow-wrap: anywhere; }
.result-body { min-height: 317px; }
.empty-state { min-height: 317px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 36px 12px; }
.empty-page { display: flex; flex-direction: column; gap: 6px; justify-content: center; width: 35px; height: 44px; border: 1px solid #bac4b3; border-radius: 2px; padding: 8px; margin-bottom: 21px; transform: rotate(-5deg); background: #f7f9f3; }
.empty-page > span { display: block; height: 1px; background: #bac4b3; }
.empty-page > span:last-child { width: 65%; }
.empty-state h3 { font-size: 14px; font-weight: 550; color: #68745f; margin-bottom: 10px; letter-spacing: -.03em; }
.empty-state p { color: var(--muted); font-size: 13px; line-height: 1.85; }
.result-body:has([data-output]:not(:empty)) .empty-state { display: none; }
pre[data-output] { font: 14px/1.95 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Segoe UI", sans-serif; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; padding-top: 25px; color: var(--ink); }
pre[data-output]:empty { display: none; }
.related-evaluations { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; overflow-wrap: anywhere; }
.related-evaluations h3 { font-size: 17px; line-height: 1.6; }
.related-evaluations p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.related-evaluations .related-boundary { color: var(--ink); font-weight: 600; }
.related-evaluations > details { border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; padding: 14px; }
.related-evaluations summary { cursor: pointer; font-size: 14px; line-height: 1.8; font-weight: 600; }
.related-evaluations pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 14px/1.9 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", sans-serif; }
.related-evaluations .related-dates { white-space: pre-line; font-size: 12px; }
.related-evaluations .related-identity, .related-evaluations .related-assessment { font-family: ui-monospace, monospace; font-size: 12px; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: calc(100% - 2 * var(--workspace-gutter)); max-width: calc(var(--workspace-width) - 2 * var(--workspace-gutter)); margin: 0 auto; padding: 22px 0 28px; border-top: 1px solid var(--line); color: var(--muted); }
.workspace-footer > span { font-size: 9px; letter-spacing: .14em; }
.workspace-footer > p { font-size: 12px; }
@media (min-width: 1450px) { .workspace-content { padding-top: 6px; } }
@media (max-width: 1100px) {
  :root { --workspace-gutter: 32px; }
  .new-research-layout { grid-template-columns: minmax(0, 1fr) 222px; gap: 28px; }
  .history-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 24px; }
  .brief-sheet, .result-sheet { padding: 22px; }
  .nav-note { display: none; }
}
@media (max-width: 780px) {
  :root { --workspace-gutter: 24px; }
  .header-main { min-height: 116px; gap: 20px; }
  .brand-copy { padding-left: 11px; }
  .brand { gap: 11px; }
  .brand-name { font-size: 10px; }
  .brand-subtitle { font-size: 13px; }
  .brand-mark { font-size: 40px; }
  .account-actions { gap: 3px; }
  .button-compact { min-height: 44px; padding-inline: 9px; font-size: 11px; }
  .account-status { max-width: 360px; font-size: 13px; }
  .workspace-label { display: none; }
  .workspace-content { padding: 0 var(--workspace-gutter) 42px; }
  .workspace-nav { margin-bottom: 34px; }
  .new-research-layout { grid-template-columns: minmax(0, 1fr); gap: 31px; }
  .editor-note { display: grid; grid-template-columns: 1fr 2fr; column-gap: 26px; padding-top: 10px; }
  .editor-note > .eyebrow { grid-column: 1; }
  .editor-note > h2 { grid-column: 1; margin-top: 9px; }
  .question-guide { grid-column: 2; grid-row: 1 / span 3; }
  .question-guide li:first-child { padding-top: 0; border-top: 0; }
  .editor-note-footer { grid-column: 1; border: 0; padding: 0; }
  .history-layout { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .run-directory { padding-top: 4px; }
  .run-actions { grid-template-columns: max-content max-content max-content; margin-top: 15px; }
  .run-actions .button { padding-inline: 14px; }
  .run-actions .cancel-button { grid-column: auto; }
  .permissions-note { margin-top: 15px; padding-top: 15px; }
  .result-sheet { min-height: 350px; }
  .result-body, .empty-state { min-height: 260px; }
}
@media (max-width: 520px) {
  :root { --workspace-gutter: 20px; }
  .header-main { align-items: flex-start; flex-direction: column; gap: 17px; padding: 23px 0 17px; }
  .brand-mark { font-size: 38px; }
  .brand-name { font-size: 11px; }
  .account-area { width: 100%; align-items: flex-start; gap: 9px; }
  .account-status { text-align: left; max-width: none; font-size: 14px; }
  .account-actions { gap: 5px; justify-content: flex-start; }
  .button-compact { min-height: 44px; padding-inline: 10px; font-size: 11px; }
  .account-session { text-align: left; }
  .submit-note, .list-status, .permissions-note p, .field-limit, .account-session, .question-guide p { font-size: 14px; }
  .connection-bar { gap: 11px; align-items: flex-start; font-size: 14px; padding: 12px 0; }
  .connection-label { gap: 6px; }
  .workspace-content { padding: 0 var(--workspace-gutter) 34px; }
  .tabs { gap: 28px; }
  .tab { min-height: 73px; padding: 21px 0 18px; gap: 5px; flex-direction: column; font-size: 13px; line-height: 1.3; }
  .tab-caption { font-size: 11px; }
  .workspace-nav { margin-bottom: 24px; }
  .eyebrow { font-size: 9px; }
  h1 { font-size: 31px; margin: 12px 0; }
  .intro-description { font-size: 14px; }
  .mobile-break { display: block; }
  .page-intro { margin-bottom: 22px; }
  .brief-sheet, .result-sheet { padding: 20px 18px; border-radius: 6px; }
  .sheet-heading { padding-bottom: 15px; margin-bottom: 18px; }
  .sheet-heading h2 { font-size: 13px; }
  .section-caption { font-size: 8px; }
  .field-description { font-size: 14px; line-height: 1.7; }
  textarea { min-height: 228px; padding: 14px; font-size: 16px; }
  textarea::placeholder { font-size: 14px; }
  .submit-row { align-items: flex-start; flex-direction: column; gap: 16px; padding-top: 18px; margin-top: 17px; }
  .submit-note br { display: none; }
  .button-primary { width: 100%; min-height: 48px; }
  .editor-note { grid-template-columns: 1fr; gap: 0; padding-top: 4px; }
  .editor-note > h2 { font-size: 20px; margin-bottom: 22px; }
  .editor-note > h2 br { display: none; }
  .question-guide { grid-column: 1; grid-row: auto; }
  .question-guide li:first-child { border-top: 1px solid var(--line); padding-top: 17px; }
  .question-guide li { gap: 16px; padding-block: 15px; }
  .question-guide p { font-size: 14px; }
  .editor-note-footer { border-top: 1px solid var(--line); padding-top: 17px; }
  .editor-note-footer br { display: none; }
  .history-intro { flex-direction: column; align-items: flex-start; gap: 20px; }
  .refresh-button { font-size: 13px; min-height: 44px; }
  select { font-size: 16px; }
  .run-actions { grid-template-columns: 1fr 1fr; }
  .run-actions .cancel-button { grid-column: 1 / -1; }
  .result-body, .empty-state { min-height: 250px; }
  .empty-state p { font-size: 14px; }
  pre[data-output] { font-size: 14px; }
  .workspace-footer { align-items: flex-start; flex-direction: column; gap: 8px; padding: 20px 0 24px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Compact, legible workspace controls within the existing layout. */
textarea:focus { box-shadow: 0 0 0 3px #176b5010; }
.button-primary:not(:disabled) { box-shadow: 0 2px 4px #176b5015; }
.result-sheet { box-shadow: 0 8px 32px #172b2404; }
@media (max-width: 720px) { .brief-sheet, .result-sheet { padding: 22px 20px; border-radius: 12px; } }

/* Read, trace and translate within the established workspace. */
h1 { letter-spacing: -.035em; }
textarea[name=topic] { min-height: 112px; }
textarea[name=context] { min-height: 112px; margin-top: 8px; }
.topic-examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; align-items: center; }
.topic-examples > span { width: 100%; font-size: 12px; color: var(--muted); }
.topic-examples button { border: 1px solid var(--line); border-radius: 20px; background: var(--paper); color: var(--green); padding: 8px 12px; font-size: 12px; cursor: pointer; min-height: 40px; }
.optional-context { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 16px; }
summary { cursor: pointer; }
.optional-context summary { font-size: 13px; font-weight: 650; }
.optional-context summary span { color: var(--muted); font-weight: 400; margin-left: 6px; }
.optional-context label { margin-top: 16px; }
.start-readiness { font-size: 12px; color: var(--muted); margin-top: 14px; }
.history-layout { grid-template-columns: minmax(220px, 280px) minmax(0, 1fr); align-items: start; gap: 28px; }
.run-directory { position: sticky; top: 24px; }
.run-directory select { text-overflow: ellipsis; }
.access-note { font-size: 12px; color: var(--muted); margin-top: 20px; border-top: 1px solid var(--line); padding-top: 12px; }
.access-note p { margin-top: 8px; }
.investigation-main { min-width: 0; }
.selected-run-title { font-size: 21px; line-height: 1.4; margin: 0 0 20px; overflow-wrap: anywhere; font-weight: 650; }
.progress-sheet { border: 1px solid var(--line); background: var(--sheet); border-radius: 14px; padding: 24px; margin-bottom: 16px; }
.progress-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.progress-heading h2 { font-size: 15px; }
.revision-badge { color: var(--muted); font-size: 11px; white-space: nowrap; }
.progress-steps { list-style: none; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; padding: 0; margin: 22px 0 16px; }
.step { display: flex; flex-direction: column; font-size: 11px; gap: 5px; color: var(--muted); border-top: 2px solid var(--line); padding-top: 10px; }
.step-icon { font-size: 15px; }
.step small { font-size: 9px; }
.step-complete { color: var(--green); border-color: #76a58c; }
.step-current { color: var(--ink); border-color: var(--green); font-weight: 700; }
.step-current .step-icon { color: var(--green); }
.progress-caption { font-size: 11px; color: var(--muted); }
.activity-log { border-top: 1px solid var(--line); margin-top: 16px; padding-top: 12px; font-size: 12px; color: var(--muted); }
.activity-log ol { padding-left: 20px; max-height: 260px; overflow: auto; margin-bottom: 0; }
.activity-log li { padding: 5px 0; }
.status-sheet { border-left: 3px solid var(--green); padding: 12px 16px; margin-bottom: 20px; background: var(--green-soft); font-size: 12px; }
.current-message { font-size: 14px; font-weight: 650; margin-bottom: 6px; }
.run-details { margin-top: 12px; color: var(--muted); }
.run-guidance { margin: 10px 0 0; padding: 0; border: 0; background: none; font-size: 12px; }
.document-heading { display: none; }
.document-tabs { display: flex; gap: 25px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.document-tabs button { border: 0; background: transparent; color: var(--muted); padding: 12px 0; font-size: 14px; cursor: pointer; min-height: 44px; border-bottom: 2px solid transparent; }
.document-tabs [aria-selected=true] { color: var(--green); border-color: var(--green); font-weight: 700; }
.translation-toolbar { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.translation-toolbar label { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--muted); margin: 0; font-weight: 400; }
.translation-toolbar select { width: auto; min-height: 44px; max-width: 180px; margin: 0; font-size: 12px; padding: 8px 28px 8px 10px; }
.translation-toolbar .button { min-height: 44px; font-size: 12px; padding: 9px 13px; }
.translation-notice { font: 11px/1.6 system-ui, sans-serif; color: var(--muted); background: var(--paper); padding: 10px 12px; border-radius: 6px; margin-bottom: 26px; }
.article-content { font: 16px/1.85 Georgia, "Iowan Old Style", "Apple SD Gothic Neo", serif; color: var(--ink); overflow-wrap: anywhere; }
.article-content h1 { font-size: clamp(27px, 3vw, 35px); line-height: 1.28; margin: 0 0 26px; letter-spacing: -.035em; word-break: normal; }
.article-content h2 { font-size: 24px; line-height: 1.4; margin: 32px 0 18px; letter-spacing: -.02em; }
.article-content h3 { font-size: 20px; margin: 26px 0 14px; }
.article-content p { margin: 0 0 20px; white-space: pre-line; }
.article-content li { margin: 8px 0; }
.article-content a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article-content code { font-size: 12px; background: var(--paper); padding: 2px 4px; }
.article-content pre { overflow: auto; padding: 16px; background: var(--paper); }
.citation { display: inline; background: var(--green-soft); color: var(--green); border: 0; border-radius: 4px; font: 11px/1.8 system-ui, sans-serif; padding: 1px 4px; cursor: pointer; vertical-align: baseline; }
.citation:hover { background: #cfe7d8; text-decoration: underline; }
.sources-intro { font: 13px/1.7 system-ui, sans-serif; color: var(--muted); }
.source-list { padding-left: 22px; font: 13px/1.7 system-ui, sans-serif; }
.source-card { padding: 18px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.source-title { font-size: 15px; font-weight: 650; }
.article-content .source-url { font-size: 11px; color: var(--muted); margin: 6px 0; overflow-wrap: anywhere; }
.article-content .source-scope { font-size: 11px; margin: 0; color: var(--muted); }
@media (max-width: 1000px) { .history-layout { grid-template-columns: 1fr; } .run-directory { position: static; } .run-actions { display: flex; flex-wrap: wrap; } .progress-steps { gap: 14px; } }
@media (max-width: 600px) { .nav-note { display: none; } .tab { flex-direction: row; } .page-intro h1 { font-size: 32px; } .progress-sheet { padding: 20px 16px; } .progress-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 18px; } .progress-heading { align-items: start; } .translation-toolbar { align-items: center; } .translation-toolbar label { width: 100%; } .article-content { font-size: 16px; } .article-content h1 { font-size: 28px; } .article-content h2 { font-size: 22px; } .selected-run-title { font-size: 19px; } textarea[name=topic] { min-height: 112px; } .source-title { font-size: 14px; } }
.document-tabs { position: sticky; top: 0; z-index: 2; background: var(--sheet); padding-top: 4px; }
.source-card:focus { outline: 2px solid var(--green); outline-offset: 6px; border-radius: 4px; background: var(--green-soft); }
.source-preview-button { display: block; margin-top: 8px; padding: 7px 10px; min-height: 40px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); color: var(--green); font: 12px system-ui, sans-serif; cursor: pointer; }
body:has(.source-dialog[open]) { overflow: hidden; }
.source-dialog { width: min(900px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--sheet); color: var(--ink); box-shadow: 0 24px 80px #102a1f40; overscroll-behavior: contain; }
.source-dialog::backdrop { background: #14282080; backdrop-filter: blur(3px); }
.source-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; position: sticky; top: 0; z-index: 3; padding: 18px 24px; background: var(--sheet); border-bottom: 1px solid var(--line); }
.source-dialog-heading h2 { margin: 0; font-size: 20px; line-height: 1.4; }
.source-dialog-heading button { flex-shrink: 0; }
.source-dialog-content { padding: 8px 28px 28px; }
.source-preview-card { padding: 18px 0; border-top: 1px solid var(--line); }
.source-preview-card h3 { margin: 0 0 12px; font: 650 18px/1.5 system-ui, sans-serif; overflow-wrap: anywhere; }
.source-original-link { display: inline-block; padding: 8px 12px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 13px; font-weight: 650; }
.source-dialog .source-url { overflow-wrap: anywhere; font: 11px/1.7 system-ui, sans-serif; color: var(--muted); margin: 8px 0; }
.source-dialog .source-scope { font: 12px/1.7 system-ui, sans-serif; color: var(--muted); }
.source-reading-label { margin: 22px 0 10px; font: 650 11px/1.6 system-ui, sans-serif; color: var(--muted); }
.source-excerpt-label { margin-bottom: 8px; font: 650 12px/1.6 system-ui, sans-serif; color: var(--green); }
.source-excerpt { margin: 0 0 18px; padding: 14px 18px; border-left: 3px solid var(--green); background: var(--green-soft); font: 16px/1.8 Georgia, serif; white-space: pre-wrap; overflow-wrap: anywhere; }
.collected-source { margin-top: 18px; border: 1px solid var(--line); border-radius: 8px; }
.collected-source > summary { padding: 13px 16px; min-height: 44px; cursor: pointer; color: var(--green); font: 650 13px/1.5 system-ui, sans-serif; }
.collected-source-content { padding: 0 16px 16px; }
.source-loading { font-size: 13px; color: var(--muted); }
.collected-source-text { font: 15px/1.8 Georgia, serif; overflow-wrap: anywhere; }
.collected-source-text h1 { font: 650 24px/1.4 system-ui, sans-serif; }
.collected-source-text h2 { font: 650 20px/1.4 system-ui, sans-serif; }
.collected-source-text h3 { font-size: 17px; }
.collected-source-text pre { white-space: pre-wrap; }
@media (max-width: 600px) { .source-dialog { width: calc(100vw - 16px); max-height: calc(100dvh - 20px); border-radius: 12px; } .source-dialog-heading { padding: 12px 16px; gap: 10px; } .source-dialog-heading h2 { font-size: 18px; } .source-dialog-content { padding: 4px 16px 20px; } .source-preview-card h3 { font-size: 16px; } .source-excerpt { font-size: 15px; padding: 12px; } }
.phase-status { color: var(--muted); font-size: 11px; margin-bottom: 6px; }
[data-has-run="true"] .history-intro { display: none; }

.button-primary { color: var(--on-green); }
.button-primary:not(:disabled):hover { background: var(--green-hover); }
.button-quiet:not(:disabled):hover { background: var(--quiet-hover); }
.button-primary:disabled, .button-outline:disabled, select:disabled { background: var(--disabled-bg); color: var(--disabled-ink); border-color: var(--line); }
.button-quiet:disabled, .tab, .guide-number, .empty-state h3 { color: var(--muted); }
.run-guidance, .empty-page { background: var(--paper); }
.empty-page, .note-mark { border-color: var(--line-strong); color: var(--muted); }
.empty-page > span { background: var(--line-strong); }
.citation:hover { background: var(--green-soft); }
.english-tools { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; margin: -5px 0 12px; font: 11px/1.6 -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: var(--muted); }
.english-toggle { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 7px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); font: inherit; font-weight: 600; cursor: pointer; }
.english-toggle::before { content: 'A'; font-size: 12px; font-weight: 600; border: 1px solid var(--line-strong); border-radius: 3px; width: 17px; height: 17px; line-height: 15px; text-align: center; }
.english-toggle:hover, .english-toggle:focus-visible { background: var(--green-soft); color: var(--green); }
.english-toggle:disabled { cursor: wait; }
.english-copy-status:empty { display: none; }
.english-copy-status { max-width: 460px; overflow-wrap: anywhere; }
.investigation-entry > .english-tools { justify-content: flex-start; margin: -4px 0 0; padding: 0 12px 9px; gap: 6px; }
.investigation-entry .english-toggle { padding-inline: 0; }
.investigation-entry .english-copy-status { font-size: 10px; }
.process-toolbar { flex-wrap: wrap; }
.process-toolbar .process-current { flex: 1; min-width: 180px; }
.process-toolbar .english-tools { flex-basis: 100%; margin: -8px 0 0; }
@media (pointer: coarse), (max-width: 760px) { .english-toggle { min-height: 44px; padding-inline: 10px; } .directory-refresh { width: 44px; min-height: 44px; } }
