:root{--paper:#f5f6f7;--white:#fff;--ink:#181a1e;--on-ink:#fff;--graphite:#22262d;--slate:#59616e;--stone:#828a96;--silver:#d8dde4;--blue:#075ec2;--wash:#eaf2fc;--ok:#166737;--warn:#995000;--bad:#b32628;--selection:#d5e7ff;color-scheme:light}
:root[data-theme="dark"]{--paper:#101216;--white:#1b1e24;--ink:#f1f3f6;--on-ink:#15181e;--graphite:#e7ebf0;--slate:#acb4c1;--stone:#758091;--silver:#39414e;--blue:#8bbfff;--wash:#23374f;--ok:#86dca1;--warn:#f4be7c;--bad:#ff9fa5;--selection:#355273;color-scheme:dark}
*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--graphite);font:16px/1.6 'Pretendard Variable',Pretendard,'Malgun Gothic','맑은 고딕',system-ui,sans-serif;letter-spacing:-.015em}button,input,textarea,select{font:inherit;color:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled,[aria-disabled="true"]{opacity:.5;cursor:default}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:2px solid var(--blue);outline-offset:3px}a{color:var(--blue);text-underline-offset:4px}::selection{background:var(--selection)}[hidden]{display:none!important}h1,h2,h3,p{margin-top:0}h1{font-size:32px;line-height:1.3;letter-spacing:-.035em;margin-bottom:10px;word-break:keep-all}h2{font-size:22px;line-height:1.4;letter-spacing:-.025em;margin-bottom:10px}h3{font-size:17px;margin-bottom:8px}small,.muted{color:var(--slate);font-size:14px}p{margin-bottom:14px}svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}.skip{position:absolute;top:-60px;left:16px;z-index:40;background:var(--white);padding:12px}.skip:focus{top:8px}
.app-header{position:sticky;top:0;z-index:20;background:var(--white);border-bottom:1px solid var(--silver)}.header-inner{max-width:1280px;min-height:76px;padding:0 32px;margin:auto;display:flex;gap:48px;align-items:center}.wordmark{background:none;border:0;font-size:23px;font-weight:750;padding:0;white-space:nowrap;text-align:left}.wordmark span{display:block;font-size:11px;font-weight:450;letter-spacing:0;color:var(--slate);margin-top:-4px}.global-nav{display:flex;gap:28px;align-self:stretch;align-items:stretch}.global-nav button{border:0;border-bottom:3px solid transparent;background:none;padding:0 2px;font-weight:600;white-space:nowrap}.global-nav button[aria-current="page"]{color:var(--blue);border-color:var(--blue)}.utilities{display:flex;align-items:center;gap:8px;margin-left:auto}.icon-button{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;background:none;border:1px solid transparent;border-radius:8px;flex:none}.icon-button:hover{background:var(--paper);border-color:var(--silver)}.text-button{background:none;border:0;padding:10px 4px;min-height:44px;color:var(--blue);font-size:14px;white-space:nowrap}.notice-bar{padding:8px 24px;background:var(--wash);color:var(--blue);text-align:center;font-size:13px}.status{position:sticky;top:76px;z-index:15;background:var(--white);border-bottom:1px solid var(--silver);padding:12px max(20px,calc((100vw - 1216px)/2));font-size:14px}.status.error{color:var(--bad)}.status.busy{color:var(--blue)}.status button{margin-left:16px}
#main{max-width:1280px;margin:0 auto;padding:32px;outline:0}.page-intro{margin-bottom:28px}.page-intro p{max-width:65ch;color:var(--slate);margin:0}.surface{background:var(--white);border:1px solid var(--silver);border-radius:12px;padding:24px}.surface + .surface{margin-top:24px}.section-heading{display:flex;justify-content:space-between;gap:20px;align-items:center;margin-bottom:18px}.section-heading h2{margin:0}.count{font-size:15px;color:var(--slate);font-weight:500;margin-left:8px}.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;border:1px solid var(--silver);border-radius:7px;padding:10px 16px;background:var(--white);color:var(--graphite);font-size:14px;font-weight:550;line-height:1.4;text-decoration:none}.button:hover:not(:disabled){border-color:var(--stone);background:var(--paper)}.button.primary{background:var(--ink);color:var(--on-ink);border-color:var(--ink)}.button.primary:hover:not(:disabled){opacity:.9;background:var(--ink)}.button.small{padding:8px 12px}.link{border:0;background:none;color:var(--blue);font-size:14px;min-height:44px;padding:8px 0;text-align:left}.link:hover{text-decoration:underline}.actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.field{display:flex;flex-direction:column;gap:7px;margin-bottom:22px;min-width:0}.field label,.field legend{font-weight:600;font-size:14px}.field small{line-height:1.5}input,textarea,select{width:100%;min-height:46px;background:var(--white);border:1px solid var(--stone);border-radius:7px;padding:11px 13px;font-size:16px;line-height:1.5;min-width:0}textarea{resize:vertical;min-height:150px;max-height:640px}input::placeholder,textarea::placeholder{color:var(--slate)}input[type=checkbox],input[type=radio]{width:18px;height:18px;min-height:18px;accent-color:var(--blue);flex:none;padding:0}input[type=file]{padding:10px;font-size:14px}.grid-two{display:grid;grid-template-columns:1fr 1fr;gap:24px}.search-line{display:grid;grid-template-columns:minmax(0,1fr) 170px auto;gap:12px;align-items:end}.search-line .field{margin:0}.search-hints{display:flex;gap:18px;align-items:center;flex-wrap:wrap;margin-top:10px}.results-layout{display:grid;grid-template-columns:minmax(0,1fr) 280px;gap:28px;margin-top:28px}.result-section{background:var(--white);border:1px solid var(--silver);border-radius:12px;overflow:hidden}.result-section + .result-section{margin-top:24px}.result-title{padding:22px 24px 16px;border-bottom:1px solid var(--silver)}.result-title h2{margin:0}.result-title p{margin:5px 0 0}.notice-row{padding:22px 24px;display:grid;grid-template-columns:minmax(0,1fr) 150px;gap:20px;border-bottom:1px solid var(--silver)}.notice-row:last-child{border-bottom:0}.notice-title{font-size:17px;font-weight:650;line-height:1.5;margin-bottom:7px;overflow-wrap:anywhere}.notice-facts{font-size:13px;color:var(--slate);display:flex;gap:4px 18px;flex-wrap:wrap}.notice-row p{font-size:14px;margin:10px 0 0}.notice-end{display:flex;flex-direction:column;align-items:flex-end;justify-content:space-between;gap:14px}.deadline{font-size:14px;font-weight:600;white-space:nowrap}.outside .result-title{background:var(--paper)}.outside .notice-title{font-size:16px}.outside .notice-row{padding-block:18px}.saved-list{list-style:none;margin:0;padding:0}.saved-list li{border-bottom:1px solid var(--silver);padding:14px 0}.saved-list li:last-child{border:0}.saved-list button{width:100%;font-size:14px}.saved-list small{display:block;margin-top:4px}.empty{padding:28px 0;color:var(--slate);text-align:center}.standalone-import{margin-top:28px}.tagline{color:var(--blue);font-size:13px}.note{font-size:14px;padding:14px 0;border-block:1px solid var(--silver);margin:18px 0}.note.warn{color:var(--warn)}.note.bad{color:var(--bad)}.badge{display:inline-flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap;color:var(--slate)}.badge::before{content:'';width:6px;height:6px;border-radius:50%;background:currentColor}.badge.ok{color:var(--ok)}.badge.warn{color:var(--warn)}.badge.bad{color:var(--bad)}
.job-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:24px}.job-top h1{font-size:25px;margin:0 0 5px}.job-top p{margin:0}.stages{display:grid;grid-template-columns:repeat(4,1fr);border:1px solid var(--silver);border-radius:9px;background:var(--white);margin-bottom:28px;overflow:hidden}.stages button{display:flex;align-items:center;gap:12px;border:0;border-right:1px solid var(--silver);padding:17px 18px;min-height:64px;background:none;font-size:15px;font-weight:550;text-align:left}.stages button:last-child{border-right:0}.stages button span{display:grid;place-items:center;width:25px;height:25px;border:1px solid var(--silver);border-radius:50%;font-size:12px;flex:none}.stages button[aria-current="step"]{color:var(--blue);background:var(--wash)}.stages button[aria-current="step"] span{border-color:var(--blue)}.step-content{min-height:350px}.step-heading{margin-bottom:24px}.step-heading h2{font-size:25px;margin-bottom:6px}.step-heading p{color:var(--slate);max-width:65ch;margin:0}.step-footer{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:22px 0;margin-top:12px;border-top:1px solid var(--silver)}.summary-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:28px}.fact-list{margin:0}.fact-list>div{display:grid;grid-template-columns:105px minmax(0,1fr);gap:16px;padding:12px 0;border-bottom:1px solid var(--silver)}dt{font-size:14px;color:var(--slate)}dd{margin:0;font-size:15px;overflow-wrap:anywhere}.deliverables{list-style:none;padding:0;margin:0}.deliverables li{padding:14px 0;border-bottom:1px solid var(--silver);display:flex;justify-content:space-between;gap:18px}.deliverables li:first-child{padding-top:0}.deliverables strong{display:block;font-size:15px}.deliverables small{display:block;margin-top:3px}.subsection{margin-top:28px;padding-top:24px;border-top:1px solid var(--silver)}.question-row{padding:18px 0;border-bottom:1px solid var(--silver);display:grid;grid-template-columns:1.4fr 1fr;gap:24px;align-items:center}.question-row label{font-size:15px;font-weight:550}.question-row small{display:block;margin-top:4px}.choices{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:22px}.choice{display:flex;align-items:center;gap:10px;border:1px solid var(--silver);border-radius:8px;background:var(--white);min-height:50px;padding:12px 16px;font-size:14px;font-weight:550}.choice:has(input:checked){border-color:var(--blue);background:var(--wash)}.upload-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:10px 0;border-bottom:1px solid var(--silver);font-size:14px}.upload-row span{overflow-wrap:anywhere}.evidence-row{padding:16px 0;border-bottom:1px solid var(--silver)}.evidence-row label{display:flex;gap:12px;align-items:flex-start;font-size:15px}.evidence-row small{display:block;margin:6px 0 0 30px}.idea-option{display:block;width:100%;padding:18px 0;border:0;border-bottom:1px solid var(--silver);background:none;text-align:left}.idea-option label{display:flex;gap:12px;align-items:flex-start}.idea-option p{margin:4px 0 0 30px;font-size:14px;color:var(--slate)}
.output-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);border:1px solid var(--silver);border-radius:12px;overflow:hidden;background:var(--white)}.output-nav{padding:22px 14px;border-right:1px solid var(--silver);background:var(--paper)}.output-nav h3{padding:0 10px}.output-nav button{width:100%;display:block;border:1px solid transparent;background:none;text-align:left;padding:14px 12px;margin-bottom:6px;border-radius:7px;font-size:15px;line-height:1.4;overflow-wrap:anywhere}.output-nav button[aria-current="true"]{background:var(--white);border-color:var(--silver);box-shadow:0 2px 3px #00000008}.output-nav .badge{display:flex;font-size:12px;margin-top:7px}.output-editor{min-width:0}.output-heading{padding:24px 28px 0}.output-heading h2{margin:0 0 5px}.tool-tabs{display:flex;gap:24px;margin:0 28px;border-bottom:1px solid var(--silver);flex-wrap:wrap}.tool-tabs button{border:0;border-bottom:2px solid transparent;background:none;min-height:52px;padding:10px 0;font-size:14px}.tool-tabs button[aria-current="page"]{border-color:var(--blue);color:var(--blue);font-weight:600}.editor-body{padding:24px 28px;min-height:420px}.manuscript{min-height:320px;max-height:650px;line-height:1.8}.editor-toolbar{display:flex;justify-content:space-between;gap:14px;align-items:center;flex-wrap:wrap;margin:14px 0}.issue{padding:15px 0;border-bottom:1px solid var(--silver);font-size:14px}.issue strong{display:block;margin-bottom:4px}.issue blockquote{margin:7px 0;padding:0;color:var(--slate)}.mapping-field{margin-bottom:18px}.mapping-field label{font-size:14px;font-weight:600}.mapping-field textarea{min-height:80px;margin-top:6px}.file-row{display:flex;justify-content:space-between;gap:16px;align-items:center;padding:15px 0;border-bottom:1px solid var(--silver);font-size:14px}.file-row strong{overflow-wrap:anywhere}.check-row{display:grid;grid-template-columns:140px minmax(0,1fr) auto;gap:20px;padding:18px 0;border-bottom:1px solid var(--silver);align-items:start;font-size:14px}.check-row p{margin:0}.check-row strong{font-size:15px}.confirm{display:flex;align-items:flex-start;gap:12px;font-size:15px;margin:20px 0}.confirm input{margin-top:4px}.preview-pages img{display:block;max-width:100%;height:auto;margin:0 auto 20px;border:1px solid var(--silver)}dialog{border:1px solid var(--silver);border-radius:12px;background:var(--white);color:var(--graphite);width:min(760px,calc(100vw - 28px));max-height:90vh;padding:24px}dialog::backdrop{background:#0008}.dialog-head{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:22px}.dialog-head h2{margin:0}.help-list{padding-left:24px}.help-list li{margin-bottom:12px}.standalone-checker{max-width:900px;margin:auto}.feedback-line{font-size:13px;color:var(--slate);margin-top:8px}.source-text{white-space:pre-wrap;font-size:14px;max-height:420px;overflow:auto;overflow-wrap:anywhere}
@media(max-width:1000px){.header-inner{gap:24px}.wordmark span{display:none}.results-layout{grid-template-columns:minmax(0,1fr) 230px}.summary-grid{grid-template-columns:1fr}.output-workspace{grid-template-columns:210px minmax(0,1fr)}.stages button{gap:8px;padding:14px 12px;font-size:14px}}
@media(max-width:760px){.header-inner{padding:12px 18px 0;flex-wrap:wrap;gap:6px 16px;min-height:0}.wordmark{font-size:21px}.utilities{gap:0}.global-nav{order:3;flex-basis:100%;gap:26px;min-height:48px}.global-nav button{font-size:15px}.status{top:104px;padding:12px 18px}#main{padding:24px 16px}h1{font-size:28px}.page-intro{margin-bottom:22px}.surface{padding:20px}.search-line{grid-template-columns:1fr auto}.search-line .field:first-child{grid-column:1/-1}.search-line .field:nth-child(2){min-width:120px}.search-hints{gap:0 15px}.results-layout{grid-template-columns:1fr}.results-layout aside{order:0}.saved-list{display:flex;flex-wrap:wrap;gap:12px}.saved-list li{border:0;padding:0;flex:1 1 200px}.result-title,.notice-row{padding:18px}.notice-row{grid-template-columns:minmax(0,1fr);gap:12px}.notice-end{flex-direction:row;align-items:center}.notice-title{font-size:16px}.job-top{gap:12px;flex-direction:column;margin-bottom:20px}.job-top h1{font-size:21px}.stages{margin-bottom:24px}.stages button{flex-direction:column;justify-content:flex-start;text-align:center;font-size:12px;padding:12px 4px;gap:7px}.stages button span{width:23px;height:23px}.step-heading h2{font-size:23px}.grid-two{grid-template-columns:1fr;gap:0}.question-row{grid-template-columns:1fr;gap:10px}.choices{gap:8px}.choice{flex:1 1 160px}.fact-list>div{grid-template-columns:78px 1fr;gap:12px}.output-workspace{grid-template-columns:1fr}.output-nav{border-right:0;border-bottom:1px solid var(--silver);padding:16px}.output-nav button{margin-bottom:4px;padding:10px;display:flex;justify-content:space-between;align-items:center;gap:12px}.output-nav .badge{margin:0;flex:none}.output-nav h3{padding:0;margin-bottom:12px}.output-heading{padding:20px 18px 0}.tool-tabs{margin:0 18px;gap:20px}.editor-body{padding:20px 18px;min-height:300px}.manuscript{min-height:280px}.file-row{flex-wrap:wrap}.file-row .actions{width:100%}.check-row{grid-template-columns:1fr auto;gap:8px 14px}.check-row>strong{grid-column:1/-1}.step-footer{align-items:flex-start}.step-footer .actions{justify-content:flex-end}.step-footer .button{font-size:13px;padding:10px 12px}.utilities .text-button{font-size:13px}.notice-bar{padding:7px 16px;font-size:12px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

/* Dense work surfaces keep the primary action reachable without hiding content. */
textarea[rows="2"]{min-height:76px}textarea[rows="3"]{min-height:96px}textarea[rows="5"]{min-height:142px}textarea[rows="8"]{min-height:190px}
#main>.step-footer{position:sticky;bottom:0;z-index:10;background:var(--paper);padding:14px 0;box-shadow:0 -8px 12px var(--paper)}
.condition-checks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 28px}.condition-check{border-top:1px solid var(--silver);padding-top:12px}.condition-check>strong{font-size:15px;margin-right:12px}.condition-check p{font-size:14px;color:var(--slate);margin:5px 0 0}
.passed-checks{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px 28px}.passed-checks>div{font-size:13px}.passed-checks strong{display:block}.passed-checks small{display:block;font-size:12px;line-height:1.5}.ready-files .check-row{align-items:center}.check-row{grid-template-columns:150px minmax(0,1fr) auto;padding:14px 0}.check-row .link{white-space:nowrap}.ready-file strong{font-size:14px}
.output-heading{padding-top:20px}.manuscript{min-height:260px}.output-nav{align-self:stretch}.output-nav>button.link{margin-top:4px}.step-heading{margin-bottom:20px}
@media(max-width:760px){
  #main{padding-top:18px}.job-top{gap:0;margin-bottom:16px}.job-top h1{font-size:19px}.job-top>button{align-self:flex-end;min-height:30px;padding:2px 0;font-size:12px}.job-top p{font-size:12px}
  .stages{margin-bottom:18px}.stages button{min-height:62px;padding:8px 3px;gap:4px}.step-heading h2{font-size:21px}.step-heading p{font-size:14px}
  .output-nav{display:flex;flex-wrap:wrap;gap:6px;padding:12px}.output-nav h3{flex-basis:100%;font-size:14px;margin:0 0 4px}.output-nav>button:not(.link){width:calc(50% - 3px);display:block;padding:8px;margin:0;font-size:13px}.output-nav .badge{display:block;font-size:11px;margin-top:4px}.output-nav>button.link{width:100%;padding:4px 0;min-height:30px;font-size:12px;margin:0}
  .output-heading{padding:16px 14px 0}.output-heading h2{font-size:19px}.output-heading p{font-size:12px;margin-bottom:6px}.tool-tabs{margin:0 14px;gap:0;justify-content:space-between}.tool-tabs button{font-size:12px;min-height:44px}.editor-body{padding:16px 14px}.manuscript{min-height:210px}.editor-toolbar{margin:10px 0}.field{margin-bottom:18px}
  .choices{display:grid;grid-template-columns:1fr;margin-bottom:18px;gap:6px}.choice{min-height:44px;padding:8px 12px}.subsection{margin-top:20px;padding-top:18px}
  .condition-checks{gap:14px;grid-template-columns:1fr}.condition-check p{font-size:13px}.passed-checks{grid-template-columns:1fr 1fr;gap:16px}.check-row{grid-template-columns:minmax(0,1fr) auto;gap:6px 12px;padding:12px 0}.check-row>strong{font-size:14px}.check-row p{font-size:13px}.check-row .link{font-size:12px;padding:4px 0}.ready-files .check-row>strong{grid-column:auto}.ready-files .check-row>.muted{grid-row:2}.ready-files .check-row>.link{grid-column:2;grid-row:1/3}
}

.tool-tabs{scroll-margin-top:94px}@media(max-width:760px){.tool-tabs{scroll-margin-top:124px}.search-hints .muted{font-size:12px}.search-hints{gap:0 10px}}

.wordmark{min-height:44px}.output-nav>button:not(.link){min-height:44px}

.confirm,.evidence-row label{min-height:44px}@media(max-width:760px){.job-top>button,.output-nav>button.link{min-height:44px}}
.save-warning{max-width:1216px;margin:16px auto;padding:16px 20px;border:2px solid var(--warn);background:var(--white);font-size:14px;color:var(--graphite)}.save-warning .actions{margin-top:10px}.field-error{color:var(--bad)}[aria-invalid="true"]{border-color:var(--bad)}.status{display:flex;align-items:center;justify-content:space-between;gap:12px}.status button{flex:none;margin-left:0}.empty .button{margin-top:12px}input,textarea,select,button{scroll-margin-block:160px 100px}@media(max-width:760px){.save-warning{margin:12px 16px}.status{align-items:flex-start}.status button{font-size:13px;padding:9px 12px}}
.page-intro p,.field small,.status,.save-warning{word-break:keep-all;overflow-wrap:anywhere}.upload-row{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px 16px}.upload-row .link{white-space:nowrap}.upload-row>span:first-child{min-width:0}@media(max-width:760px){.upload-row{grid-template-columns:minmax(0,1fr) auto}.upload-row>span:first-child{grid-column:1/-1}.upload-row .badge{grid-column:1}.upload-row .link{grid-column:2}}

/* Short viewports need document flow so fixed chrome cannot cover keyboard focus. */
@media(max-height:500px){.app-header{position:static}#main>.step-footer{position:static;box-shadow:none}.status{position:static}.tool-tabs{scroll-margin-top:12px}input,textarea,select,button{scroll-margin-block:16px}}

/* Source viewing and explicit AI analysis remain distinct on narrow screens. */
.source-section .section-heading{flex-wrap:wrap}.source-section .section-heading .actions{margin-left:auto}
fieldset.mapping-field{min-width:0;border:0;padding:0}.mapping-field legend{font-size:14px;font-weight:600}.mapping-field .choices{margin-top:8px}.mapping-field .choice{font-weight:400;overflow-wrap:anywhere}.mapping-guidance{white-space:pre-wrap;font-size:13px;margin:6px 0}
.file-row .feedback-line{display:block}
/* Active work stays visible without covering the task with a modal. */
.status.busy{position:sticky;top:80px;z-index:25;max-width:1216px;margin:16px auto;padding:20px 24px;border:2px solid var(--blue);border-radius:12px;background:var(--white);box-shadow:0 8px 24px #00000012;color:var(--graphite);justify-content:flex-start}
.work-copy{flex:1;min-width:0}.work-copy strong,.work-copy span,.work-copy small{display:block}.work-copy strong{font-size:16px;line-height:1.5;margin-bottom:5px}.work-copy small{font-size:12px;color:var(--slate);margin-top:5px}
.work-spinner{width:24px;height:24px;flex:none;border:3px solid var(--silver);border-top-color:var(--blue);border-radius:50%;animation:work-spin .9s linear infinite}@keyframes work-spin{to{transform:rotate(360deg)}}
.ai-consent{max-width:1216px;margin:16px auto;scroll-margin-top:100px;border:2px solid var(--blue)}.ai-consent h2{font-size:19px}.ai-consent p{margin:10px 0 14px}.ai-consent small{display:block;margin-top:12px;color:var(--slate)}.awaiting-sharing #status{display:none}
/* 동의를 기다리는 동안 다른 버튼은 전부 잠긴다. 그때 이 창이 화면 밖에 있으면
   눌러도 아무 반응이 없는 것처럼 보인다. 스크롤과 상관없이 늘 보이게 띄운다 */
.awaiting-sharing .ai-consent{position:fixed;top:12px;left:50%;transform:translateX(-50%);width:min(680px,calc(100% - 24px));margin:0;z-index:50;box-shadow:0 18px 44px rgba(15,23,42,.3)}
.awaiting-sharing::before{content:'';position:fixed;inset:0;background:rgba(15,23,42,.35);z-index:45}
.carried-context,.auto-run{margin-bottom:20px}.carried-context p{font-size:14px;margin:10px 0}.carried-answers{margin:12px 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 24px}.carried-answers>div{display:flex;gap:16px;justify-content:space-between;border-top:1px solid var(--silver);padding-top:10px;font-size:14px}.carried-answers dt{color:var(--slate)}.carried-answers dd{margin:0;flex:none;font-weight:600;max-width:45%;overflow-wrap:anywhere}.search-coverage{display:block;margin-top:12px;color:var(--slate);font-size:12px}
@media(max-width:760px){.status.busy{top:106px;margin:12px 16px;padding:14px;gap:10px;flex-wrap:wrap}.work-copy{flex-basis:calc(100% - 38px)}.status.busy button{margin-left:34px}.ai-consent{margin:12px 16px;scroll-margin-top:120px}.carried-answers{grid-template-columns:1fr}.carried-answers>div{font-size:13px}}
@media(max-height:500px){.status.busy{position:static}.ai-consent{scroll-margin-top:12px}}
@media(prefers-reduced-motion:reduce){.work-spinner{animation:none}}
.draft-request-panel{background:var(--paper);border:1px solid var(--silver);border-radius:8px;padding:16px;margin:16px 0 24px}.draft-request-panel .field{margin-bottom:12px}.draft-destination{font-size:13px;color:var(--slate);margin:10px 0 0;word-break:keep-all;overflow-wrap:anywhere}.draft-result>label{font-size:17px;scroll-margin-top:150px}.draft-result>small{display:block;margin-bottom:10px}.draft-result>label:focus-visible{outline:2px solid var(--blue);outline-offset:3px}@media(max-height:500px){.draft-result>label{scroll-margin-top:16px}}
.materials-entry .choices{margin-bottom:22px}.materials-entry .template-intake p{font-size:14px;margin:10px 0}.optional{color:var(--slate);font-size:13px;font-weight:400;margin-left:8px}.attached-files h4{font-size:14px;margin:16px 0 0}.attached-files small{display:block;color:var(--slate);font-size:12px;margin-top:4px}.materials-next{font-size:13px;margin-bottom:0}.source-section .section-heading{margin-bottom:0;align-items:center}.source-section h3{margin:0}.source-section .section-heading p{font-size:13px;margin:7px 0 0}.source-excerpt{font-size:13px;color:var(--slate);margin:12px 0 0;line-height:1.6;overflow-wrap:anywhere}.source-text{line-height:1.65;max-height:45vh;padding:16px;border:1px solid var(--silver);border-radius:8px;background:var(--paper)}.applicant-input{margin-bottom:26px}.materials-entry textarea{min-height:0}
.context-strip{padding:12px 18px;border-left:3px solid var(--blue);background:var(--wash)}.context-strip .section-heading{margin:0}.context-strip p{margin:4px 0}.materials-columns{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:28px}.materials-columns>div{min-width:0}.materials-columns .template-intake{border-left:1px solid var(--silver);padding-left:28px}.materials-columns textarea{min-height:180px}.materials-columns .template-intake .field{margin-bottom:12px}.materials-entry .materials-next{margin-top:20px}.context-strip .section-heading{align-items:center}
@media(max-width:52em){.materials-columns{grid-template-columns:minmax(0,1fr);gap:20px}.materials-columns .template-intake{border-left:0;border-top:1px solid var(--silver);padding:20px 0 0}.context-strip .section-heading{align-items:flex-start}.materials-columns textarea{min-height:140px}}

/* Grid children share their top edge; grid gap owns separation. */
.summary-grid>.surface,.grid-two>.surface{margin-top:0;align-self:start}
.existing-manuscript{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 0;font-size:14px}
.materials-entry>.template-intake{border-left:0;padding-left:0;margin-top:22px}
.materials-entry>.template-intake .field{max-width:760px;margin-top:18px}
@media(max-width:760px){.existing-manuscript{align-items:flex-start;flex-direction:column;gap:8px}}

.context-strip .section-heading{flex-wrap:wrap;gap:4px 16px}.context-strip .section-heading p{flex:1 1 270px}
.preparation-conversation{min-width:0}.preparation-conversation h3{margin:0}.preparation-conversation .field{margin-bottom:14px}.conversation-history{display:grid;gap:14px;margin:20px 0}.conversation-message{border-left:3px solid var(--silver);padding:10px 16px;min-width:0}.conversation-message.from-user{border-color:var(--blue);background:var(--wash)}.conversation-message strong{font-size:12px;color:var(--slate)}.conversation-message p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;margin:6px 0 0}.assistant-questions{background:var(--wash);padding:16px 20px;margin:16px 0;border-radius:8px}.assistant-questions h4{margin:0 0 12px}.assistant-questions ul{padding-left:20px;margin:0}.assistant-questions li{margin:10px 0;overflow-wrap:anywhere}.assistant-questions small{display:block;color:var(--slate);margin-top:4px}.preparation-understanding{font-size:14px;margin:18px 0 0}.conversation-result{margin-bottom:20px}.assistant-results{margin-bottom:20px}.assistant-results small{display:block;font-size:12px;color:var(--slate);margin-top:5px}.assistant-results .actions{justify-content:flex-end;flex-wrap:wrap}.assistant-results .check-row{grid-template-columns:minmax(130px,.7fr) minmax(0,1.3fr) auto}@media(max-width:760px){.assistant-results .check-row{grid-template-columns:1fr}.assistant-results .actions{justify-content:flex-start}.conversation-message{padding:10px 12px}.assistant-questions{padding:14px}.preparation-conversation .actions .button{width:100%}}
.assistant-overview{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:24px;align-items:start;margin-bottom:24px}
.assistant-overview>.surface{margin:0;min-width:0}
.assistant-overview .check-row{grid-template-columns:minmax(0,1fr);gap:8px}
.assistant-overview .check-row p{margin:0}
.assistant-overview .conversation-history{max-height:200px;overflow:auto;overscroll-behavior:contain}
@media(max-width:900px){.assistant-overview{grid-template-columns:1fr;gap:16px}.assistant-overview .conversation-history{max-height:160px}}

/* 준비 요청 화면 맨 위 공고 요약. 무엇을 준비하는 공고인지 보면서 쓰라고 둔다 */
.notice-brief { margin-bottom: var(--gap); }
.notice-brief .fact-list { margin-top: var(--s-3); }
.notice-brief .note { margin-top: var(--s-3); }

/* 진행 상태 줄이 sticky 라 긴 화면에서 아래로 내려가면 사라졌다.
   그동안 버튼은 전부 잠기니까 아래에서는 왜 안 되는지 알 길이 없었다.
   일하는 동안에는 화면에 고정해서 진행 상황과 취소 단추가 늘 보이게 한다 */
.status.busy{position:fixed;top:80px;left:50%;transform:translateX(-50%);width:min(1216px,calc(100% - 32px));margin:0}
@media(max-width:760px){.status.busy{top:106px;width:calc(100% - 32px)}}
@media(max-height:500px){.status.busy{position:static;transform:none;width:auto;margin:12px auto}}

/* 원고 가져오기 줄이 카드 사이에 혼자 떠 있어 어디 속한 줄인지 알 수 없었다.
   대화 카드 안으로 넣고 위에 가는 선을 둔다 */
.preparation-conversation .existing-manuscript{margin-top:16px;padding-top:16px;border-top:1px solid var(--silver)}

/* 요청 기록 표. 잘 안 될 때 사람이 그대로 읽어 알려 줄 수 있어야 한다 */
.request-log{width:100%;border-collapse:collapse;font-size:13px;margin-top:8px}
.request-log th,.request-log td{text-align:left;padding:6px 8px;border-bottom:1px solid var(--silver);vertical-align:top}
.request-log th{color:var(--slate);font-weight:600}
.request-log td:last-child{word-break:break-all}

/* 준비 결과. 문서마다 상태 한 줄, 채울 칸은 칩, 확인할 점은 문제와 고치는 법 두 줄 */
.result-row{display:block;padding:16px 0;border-bottom:1px solid var(--silver)}
.result-head{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.result-head strong{font-size:17px}
.result-line{margin:6px 0 10px;color:var(--graphite)}
.fill-chips{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 10px}
.fill-count{font-weight:600;margin-right:4px;align-self:center}
.fill-chip{display:inline-block;padding:2px 10px;border:1px solid var(--silver);border-radius:999px;font-size:13px;background:var(--white)}
.fill-chip.more{color:var(--slate)}
.result-problem{display:block;color:var(--slate);margin-bottom:6px}
.review-list{margin-top:18px}.review-list h4{margin:0 0 8px;font-size:16px}
.review-list ol{margin:0;padding-left:20px}.review-list li{margin:0 0 12px}
.issue-problem{margin:0;font-weight:600;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.issue-fix{margin:2px 0 0;color:var(--slate);font-size:14px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}

/* 단계마다 눈에 띄는 단추는 하나. 나머지 입력은 한 톤 낮춘다 */
.materials-entry .template-intake{background:var(--canvas,#f6f7f9);border-radius:12px;padding:16px 18px;margin-top:20px}
.materials-entry .template-intake h3{font-size:15px}
.preparation-conversation .existing-manuscript{font-size:14px}
.preparation-conversation .existing-manuscript .button{padding:6px 12px;font-size:14px}
.source-section a.link{align-self:center}
