:root{font-family:"Apple SD Gothic Neo","Malgun Gothic",sans-serif;color:#272b2a;background:#fafbfa;font-synthesis:none;font-size:15px;letter-spacing:0;--muted:#727b78;--line:#dfe5e1;--accent:#18725c;--soft:#edf5f0}
*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer}button:disabled{opacity:.45;cursor:not-allowed}button,input,select,textarea{border-radius:5px}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:white;min-height:38px;padding:8px 14px}button:hover:not(:disabled){background:#f0f4f1}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #81bca6;outline-offset:3px}input,textarea,select{border:1px solid #ccd5cf;background:white;padding:11px 12px;width:100%}textarea{resize:vertical;min-height:160px;line-height:1.7}label{display:block;font-size:13px;font-weight:600;margin:20px 0 8px}svg{width:18px;height:18px;flex-shrink:0}[hidden]{display:none!important}.topbar{height:68px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;padding:0 36px;background:white;gap:16px}.brand{display:flex;align-items:center;gap:12px;font-size:17px;font-weight:700}.brand>svg{width:25px;height:25px;color:var(--accent)}.env{font-size:10px;font-family:monospace;padding:4px 6px;border:1px solid #a6c5b6;border-radius:3px;color:var(--accent);letter-spacing:0}.header-right{display:flex;align-items:center;gap:14px;font-size:12px;color:var(--muted)}main{max-width:1400px;margin:auto;padding:0 36px}.workspace-head{padding:38px 0 24px;display:flex;justify-content:space-between;align-items:center}.eyebrow{font-family:monospace;font-size:11px;color:var(--muted);margin:0 0 10px}h1{font-size:28px;line-height:1.3;margin:0;font-weight:700}h2{font-size:16px;margin:0}h3{font-size:16px}p{line-height:1.65}.icon-button{width:38px;height:38px;padding:0;flex-shrink:0;background:transparent}.status-strip{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;gap:20px}.status-strip>div{border-right:1px solid var(--line);padding-left:20px;min-width:0;display:flex;flex-direction:column;align-items:flex-start;justify-content:space-between;gap:12px}.status-strip>div:first-child{padding-left:0}.status-strip>div:last-child{border:0}.stat-label{font-size:12px;color:var(--muted)}.status-strip strong{font-family:monospace;font-size:24px;font-weight:500}.status-strip .small-value{font-family:inherit;font-size:14px}.status{display:inline-flex;align-items:center;gap:7px;font-size:13px;color:#996c14}.status:before{content:"";width:7px;height:7px;background:#bd8d2d;border-radius:50%}.status.ready{color:var(--accent)}.status.ready:before{background:var(--accent)}.tabs{display:flex;gap:28px;border-bottom:1px solid var(--line);margin:24px 0 0}.tabs button{border:0;border-radius:0;min-height:48px;padding:10px 0;color:var(--muted);background:none;border-bottom:2px solid transparent}.tabs button.active{border-color:var(--accent);color:var(--accent);font-weight:700}.search-layout{display:grid;grid-template-columns:330px minmax(0,1fr);min-height:560px}.query-pane{padding:28px 26px 28px 0;border-right:1px solid var(--line)}.results-pane{padding:28px 0 28px 28px;min-width:0}fieldset{padding:0;border:0;margin:23px 0 0}legend{font-size:13px;font-weight:600;margin-bottom:10px}.segments{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));border:1px solid var(--line);border-radius:5px;padding:3px;background:#eff2ef;gap:3px}.segments label{margin:0;text-align:center;position:relative;cursor:pointer}.segments input{position:absolute;opacity:0;width:1px;height:1px}.segments span{display:block;padding:9px 2px;font-size:12px;border-radius:3px}.segments input:checked+span{background:white;box-shadow:0 1px 3px #00000012;color:var(--accent);font-weight:700}.segments input:focus-visible+span{outline:2px solid var(--accent)}.input-meta{display:flex;align-items:center;justify-content:space-between;color:var(--muted);font-size:11px;margin-top:5px}.input-meta button{border:0;width:28px;height:28px;min-height:28px}.query-options{display:flex;align-items:center;justify-content:space-between;margin-top:12px}.query-options label{margin:0}.query-options select{width:90px;padding:6px 10px}.checkbox{display:flex;align-items:center;gap:8px;font-weight:400;margin-bottom:20px}.checkbox input{accent-color:var(--accent);width:16px;height:16px;margin:0}.primary{background:var(--accent);color:white;border-color:var(--accent);font-weight:600;min-height:44px;width:100%}.primary:hover:not(:disabled){background:#115743}.connection-note{font-size:12px;color:#8d681e;margin:16px 0 0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:22px;min-height:24px}.count{font-size:12px;font-weight:400;color:var(--muted);margin-left:8px}.mono{font-family:monospace;font-size:12px;color:var(--accent)}.empty-state{display:flex;min-height:370px;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:var(--muted);padding:25px}.empty-state>svg{width:36px;height:36px;color:#9bafa4;margin-bottom:10px}.empty-state h3{color:#4b5851;margin:14px 0 0;font-weight:500}.empty-state p{font-size:13px;margin:8px 0}.timings{display:flex;gap:20px;background:var(--soft);padding:12px 16px;margin-bottom:20px;font-size:12px;flex-wrap:wrap}.timings b{margin-left:8px;font-family:monospace;font-weight:500}.result{border:1px solid var(--line);border-radius:6px;background:white;margin-bottom:14px;overflow:hidden}.result summary{padding:18px 20px;cursor:pointer;list-style:none}.result summary::-webkit-details-marker{display:none}.result-meta{display:flex;gap:12px;align-items:center;font-size:12px;color:var(--muted);flex-wrap:wrap}.rank{font-family:monospace;color:var(--accent)}.score{margin-left:auto;font-family:monospace;font-weight:700;color:var(--accent)}.result-question{font-size:15px;line-height:1.7;font-weight:600;margin:12px 0 0;white-space:pre-wrap;overflow-wrap:anywhere}.answer{border-top:1px solid var(--line);padding:18px 20px}.answer-heading{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:var(--muted)}.answer p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:12px 0 0}.subtle{font-size:12px;color:var(--muted)}#reports-view{padding:28px 0;min-height:450px}.table-wrap{overflow-x:auto}table{border-collapse:collapse;width:100%;text-align:left;font-size:13px}th{background:#f0f3f0;color:var(--muted);font-weight:500}td,th{padding:14px;border-bottom:1px solid var(--line);white-space:nowrap}td:nth-child(n+3){font-family:monospace}footer{display:flex;justify-content:space-between;gap:16px;padding:20px 0;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}.login-view{max-width:360px;margin:90px auto 50px}.login-mark{color:var(--accent);margin-bottom:30px}.login-mark svg{width:38px;height:38px}.login-view h1{font-size:26px}.login-view form{margin-top:30px}.login-view .primary{margin-top:20px}.error{color:#ad3e3e;font-size:13px;min-height:22px}.login-view input{height:46px}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:#253a30;color:white;padding:12px 20px;border-radius:5px;max-width:calc(100% - 32px);font-size:13px}.busy svg{animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}
@media(max-width:850px){main{padding:0 22px}.topbar{padding:0 22px}.search-layout{grid-template-columns:280px minmax(0,1fr)}.query-pane{padding-right:20px}.results-pane{padding-left:20px}.status-strip{gap:12px}.status-strip>div{padding-left:12px}.header-right{gap:8px}}
@media(max-width:640px){main{padding:0 18px}.topbar{height:60px;padding:0 18px}.brand{font-size:15px;gap:8px}.env{display:none}.header-right{font-size:10px}.workspace-head{padding:28px 0 20px}h1{font-size:24px}.status-strip{grid-template-columns:1fr 1fr;gap:20px;padding:18px 0}.status-strip>div{padding:0;border:0}.status-strip strong{font-size:22px}.search-layout{grid-template-columns:1fr}.query-pane{border-right:0;border-bottom:1px solid var(--line);padding:24px 0}.results-pane{padding:24px 0}.tabs{margin-top:12px}.empty-state{min-height:240px}.login-view{margin-top:65px}.result summary,.answer{padding:16px}footer{flex-direction:column;gap:8px}.timings{gap:14px}.section-heading{align-items:flex-start}}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.header-right select{width:225px;max-width:100%;font-size:12px;padding:8px 10px}.header-right select:not([hidden])+span{display:none}@media(max-width:640px){.header-right select{width:160px;font-size:11px}.header-right{min-width:0}.brand{flex-shrink:0}.brand>svg{display:none}}
#environment-state{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:28px;color:var(--muted);font-size:14px}#environment-state p{margin:0}
@media(prefers-reduced-motion:reduce){.busy svg{animation:none}}
