/* Uses the current okha.agency identity: Geist, #b9232a red, #ffd45d yellow,
   #f1e7d8 background, #fffaf0 surface, #231f19 text. One input, one result.
   Vietnamese leads the terminology table; Korean remains beside it. */
@font-face{font-family:Geist;src:url('/geist-latin.woff2') format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:Geist;src:url('/geist-vietnamese.woff2') format('woff2');font-weight:100 900;font-display:swap;unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}
:root{--red:#b9232a;--yellow:#ffd45d;--paper:#fffaf0;--bg:#f1e7d8;--ink:#231f19;--muted:#746d61;--line:#dfd2bf;font-family:Geist,"Apple SD Gothic Neo","Malgun Gothic",Arial,sans-serif;background:var(--bg);color:var(--ink);font-size:15px;line-height:1.6}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{opacity:.55;cursor:wait}button,a,input,textarea,select{outline-offset:4px}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #bd7b19}[hidden]{display:none!important}.topbar{background:var(--red);color:#fff;border-bottom:1px solid #c95d5e}.header-inner{max-width:1120px;margin:auto;height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 30px}.brand{display:flex;align-items:center;gap:12px;color:#fff;text-decoration:none}.brand-mark{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;font-size:19px;font-weight:900;background:var(--yellow);color:#9d1e24}.brand-name{font-weight:750;font-size:19px;letter-spacing:3px;line-height:1.2}.brand-name small{display:block;font-size:8px;letter-spacing:1px;color:#ffd98a;margin-top:4px}.locale{display:flex;gap:2px;border:1px solid #d07473;border-radius:24px;padding:4px;background:#861a2040}.locale button{border:0;border-radius:20px;background:none;color:#f3c4c0;font-size:12px;font-weight:750;padding:8px 12px;min-height:34px}.locale button[aria-pressed=true]{background:var(--yellow);color:#6d171c}main{max-width:1060px;margin:auto;padding:32px 30px 24px}.page-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px;gap:20px}h1{font-size:29px;line-height:1.3;letter-spacing:-.9px;margin:0;font-weight:700}h2{font-size:20px;letter-spacing:-.4px;margin:0}h3{font-size:16px;margin:18px 0 8px}p{margin:10px 0}.primary,.secondary{border-radius:12px;font-size:13px;font-weight:700;min-height:42px;padding:10px 19px}.primary{background:var(--red);border:1px solid var(--red);color:#fff}.primary:hover{background:#9d1e24}.secondary{border:1px solid #cdbba2;color:#6c4535;background:var(--paper)}.secondary:hover{background:#f7d575}.text-button{border:0;background:none;color:#806349;font-size:12px;padding:5px 0;text-decoration:underline;text-underline-offset:4px}.material-panel{background:var(--paper);border:1px solid var(--line);border-radius:22px;padding:25px}.input-grid{display:grid;grid-template-columns:1fr 1fr;gap:28px}.file-area{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:210px;background:#f7eee1;border:1px dashed #bea990;border-radius:15px;cursor:pointer;color:var(--muted);gap:5px;text-align:center;padding:22px}.upload-icon{color:var(--red);font-size:29px;line-height:1.2;margin-bottom:5px}.file-area strong{font-size:19px;color:var(--red);font-weight:700}.file-area span:not(.upload-icon){font-size:12px}.file-area small{font-size:10px;line-height:1.6;margin-top:5px}.file-area input{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-area:focus-within{outline:3px solid #bd7b19;outline-offset:3px}.paste-area{display:flex;flex-direction:column;align-items:stretch;gap:8px}.paste-area label{font-size:13px;font-weight:650}.paste-area textarea{resize:vertical;width:100%;min-height:116px;flex:1}.paste-area .primary{align-self:flex-end}input:not([type=file]),textarea,select{border:1px solid #d5c7b5;border-radius:9px;background:white;color:var(--ink);padding:11px 13px;min-width:0;font-size:14px}textarea::placeholder,input::placeholder{color:#8d8578}.input-bottom{display:flex;justify-content:space-between;gap:18px;align-items:center;padding-top:14px}.input-bottom>span{font-size:11px;color:var(--muted)}#notice{font-size:12px;color:#9d1e24;margin-bottom:0}#notice:empty{display:none}#file-list{font-size:12px}#file-list>div{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;border-bottom:1px solid var(--line);padding:10px 0}#file-list small{display:block;color:var(--muted);font-size:11px}#file-list button{border:0;background:none;color:var(--muted);padding:2px 5px}.work-heading{display:flex;align-items:center;gap:10px;margin-top:28px}.work-heading input{flex:1;background:transparent;font-size:16px;font-weight:650;border-color:transparent;padding-left:0}.work-heading input:hover,.work-heading input:focus{background:white;border-color:#d5c7b5}.work-heading .text-button{margin-left:8px;white-space:nowrap}#industry-summary{font-size:12px;color:var(--muted);margin-top:6px}.glossary{margin-top:34px}.section-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:16px}.draft{font-size:11px;color:#88715d}.search-row{display:flex;gap:10px;margin-bottom:7px}.search-row input{flex:1}.search-row select{font-size:13px;width:200px}.result-summary{font-size:11px;color:var(--muted);margin:8px 0;min-height:18px}.table-wrap{overflow:hidden;background:var(--paper);border:1px solid var(--line);border-radius:15px}table{width:100%;border-collapse:collapse;table-layout:fixed;text-align:left}th{font-size:11px;font-weight:600;padding:13px 18px;background:#f6e9d3;color:#816d56}th:first-child{width:44%}th:nth-child(2){width:27%}th:nth-child(3){width:24%}th:last-child{width:5%;padding:0}td{padding:17px 18px;vertical-align:top;border-top:1px solid #e8ddcc;overflow-wrap:anywhere;font-size:14px}td strong{font-size:15px;font-weight:650}td p{font-size:12px;color:#746d61;margin:5px 0 0;line-height:1.75}td[lang=ko]{font-family:"Apple SD Gothic Neo","Malgun Gothic",Geist,sans-serif}td[lang=en]{font-size:12px;color:#766a5c}td:last-child{padding:14px 2px}td button{border:0;background:none;color:#9b8670;padding:5px;font-size:15px}#more{display:block;margin:16px auto 0}.term-actions{text-align:right;margin-top:9px}#empty{padding:25px;text-align:center;font-size:13px;color:var(--muted);background:var(--paper);border:1px solid var(--line);border-radius:12px}#job-details{margin-top:25px}#job-details>details{border-top:1px solid #d8c7b1;padding:15px 0;font-size:13px}summary{cursor:pointer;font-weight:650}.questions{padding-left:20px}#questions li{margin:10px 0;font-size:13px}.brief{padding:15px 0;border-bottom:1px solid var(--line);max-width:720px}.brief strong{display:block;font-size:14px}.brief p{font-size:13px;line-height:1.8}.brief small{font-size:11px;color:var(--muted)}a{color:#a7282e}.brief a{font-size:11px}#material-evidence details{margin-top:15px;font-size:12px}#material-evidence p{font-size:12px;line-height:1.9;white-space:pre-wrap;padding:14px;background:var(--paper);border-radius:9px}footer{border-top:1px solid var(--line);margin-top:35px;padding-top:20px;display:flex;justify-content:space-between;align-items:center;color:#8b7c68;font-size:11px}dialog{max-width:650px;width:calc(100% - 32px);border:1px solid #ddc9ac;border-radius:22px;background:var(--paper);color:var(--ink);padding:25px;max-height:85vh;overflow:auto}dialog::backdrop{background:#34201766}.dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}.close{border:0;border-radius:50%;background:#eee5d8;color:#806349;font-size:23px;line-height:1;width:34px;height:34px}.small{font-size:11px;color:var(--muted)}dialog p,dialog li{font-size:13px;line-height:1.8}dialog li{margin:8px 0}dialog ul{padding-left:18px}.review-note{padding:12px;background:#f6e9d3;border-radius:8px;font-size:12px;color:#806349}#history button{display:block;width:100%;text-align:left;border:1px solid var(--line);background:#fff;border-radius:11px;padding:12px 14px;margin-bottom:9px;color:var(--ink)}#history small{display:block;color:var(--muted);font-size:11px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}
@media(max-width:650px){.header-inner{height:68px;padding:0 20px}.brand-mark{width:32px;height:32px}.brand-name{font-size:17px}main{padding:25px 18px}.page-title{margin-bottom:18px;gap:12px}h1{font-size:23px;letter-spacing:-.6px}.page-title .secondary{padding:9px 13px;min-height:38px;font-size:12px}.material-panel{padding:18px;border-radius:18px}.input-grid{grid-template-columns:1fr;gap:19px}.file-area{min-height:165px}.file-area strong{font-size:18px}.paste-area textarea{min-height:94px}.paste-area .primary{width:100%}.input-bottom{align-items:flex-start;gap:15px}.input-bottom>span{font-size:10px;max-width:220px}.input-bottom button{white-space:nowrap;font-size:11px}.section-title{align-items:flex-start;margin-bottom:13px}h2{font-size:18px}.draft{font-size:10px;max-width:135px;text-align:right}.search-row{flex-wrap:wrap}.search-row input{flex-basis:100%}.search-row select{height:38px;padding:6px 10px;width:auto;max-width:100%;font-size:12px}.table-wrap{border:0;border-radius:0;background:transparent}table,tbody{display:block;width:100%}thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}tr{position:relative;display:grid;grid-template-columns:1fr 1fr;border:1px solid var(--line);border-radius:13px;background:var(--paper);margin-bottom:10px;padding:15px;gap:10px}td{display:block;border:0;padding:0;font-size:14px}td:first-child{grid-column:1/3;padding-right:25px}td strong{font-size:16px}td p{font-size:12px;margin:5px 0 3px}td:nth-child(2),td:nth-child(3){border-top:1px solid #e8ddcc;padding-top:9px;font-size:12px}td:nth-child(2):before,td:nth-child(3):before{content:attr(data-label);display:block;font-size:9px;color:#9c8b76;margin-bottom:2px}td:last-child{position:absolute;right:10px;top:11px;padding:0}.work-heading{flex-wrap:wrap;gap:8px}.work-heading input{flex-basis:calc(100% - 75px);font-size:14px}.work-heading .text-button{margin-left:0}.glossary{margin-top:28px}dialog{padding:22px;border-radius:18px}}
@media(prefers-reduced-motion:no-preference){button{transition:background-color .12s}}
.analysis-panel,.chat-panel{background:var(--paper);border:1px solid var(--line);border-radius:18px;padding:24px;margin-top:24px}.analysis-panel h2,.chat-panel h2{margin-bottom:12px}.analysis-panel>p{font-size:16px;line-height:1.8;white-space:pre-line}#analysis-facts p{font-size:13px;padding-top:10px;border-top:1px solid var(--line)}#analysis-facts button{display:inline;margin-left:6px}.analysis-panel details{font-size:13px;margin-top:18px}.analysis-panel li{margin:8px 0}.chat-panel form{display:flex;gap:10px;margin-top:16px}.chat-panel input{flex:1}.chat-turn{font-size:13px;margin:14px 0;padding-bottom:14px;border-bottom:1px solid var(--line)}.chat-turn p{white-space:pre-line}.chat-question{font-weight:650;color:var(--red)}.evidence-quote{margin:15px 0}.evidence-quote small{font-size:11px;color:var(--muted)}blockquote{margin:8px 0;border-left:3px solid #c79d68;padding:10px 14px;background:#f6e9d3;white-space:pre-wrap;font-size:13px}.footer-links{display:flex;gap:18px}.history-row{display:flex;gap:10px;align-items:center}#history .history-row>button:first-child{flex:1}#history .delete-job{width:auto;border:0;background:none;font-size:11px;color:var(--muted);padding:5px}#recovery-dialog label{display:block;font-size:12px;margin:16px 0 8px}#recovery-input{width:100%;font-family:monospace;font-size:12px;resize:vertical}#recovery-dialog hr{border:0;border-top:1px solid var(--line);margin:24px 0}#recovery-dialog .primary{margin-top:10px}#recovery-notice{font-size:12px;color:var(--red)}@media(max-width:650px){.analysis-panel,.chat-panel{padding:18px;border-radius:15px}.chat-panel form{flex-wrap:wrap}.chat-panel input{flex-basis:100%}.chat-panel form button{width:100%}.analysis-panel>p{font-size:14px}.footer-links{gap:12px;flex-wrap:wrap;justify-content:flex-end}}
