:root{--primary: #17b26a;--primary-hover: #12a05d;--primary-foreground: #ffffff;--background: #fafafa;--foreground: #09090b;--card: #ffffff;--muted: #f4f4f5;--muted-foreground: #71717a;--border: #e9e9ec;--input: #e4e4e7;--ring: #a1a1aa;--destructive: #dc2626;--warning: #f59e0b;--info: #3b82f6;--sidebar-bg: #ffffff;--radius: .625rem;--radius-sm: .4rem;--shadow-card: 0 1px 2px 0 rgba(9, 9, 11, .05);--shadow-pop: 0 8px 24px -6px rgba(9, 9, 11, .12);--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", Roboto, sans-serif}*{box-sizing:border-box}html,body{margin:0;padding:0}body{background:var(--background);color:var(--foreground);font-family:var(--font-sans);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}.is-hidden{display:none!important}.brand-mark{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:var(--radius-sm);background:var(--primary);color:var(--primary-foreground);font-weight:700;font-size:16px;flex:none}.brand-name{font-weight:650;font-size:15px;letter-spacing:-.01em}.brand-sub{font-size:11.5px;color:var(--muted-foreground);letter-spacing:.02em;text-transform:uppercase}.auth-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:radial-gradient(1000px 500px at 15% -10%,rgba(23,178,106,.1),transparent 60%),var(--background)}.auth-card{width:100%;max-width:420px;background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-pop);padding:32px}.auth-brand{display:flex;align-items:center;gap:10px;margin-bottom:26px}.auth-title{margin:0 0 4px;font-size:20px;font-weight:650;letter-spacing:-.01em}.auth-desc{margin:0 0 22px;font-size:13px;color:var(--muted-foreground)}.form-stack{display:grid;gap:16px}.field{display:grid;gap:6px;min-width:0}.label{font-size:12.5px;font-weight:600;color:#3f3f46}.input{width:100%;height:40px;padding:0 12px;font-size:13.5px;font-family:inherit;color:var(--foreground);background:var(--card);border:1px solid var(--input);border-radius:var(--radius-sm);outline:none;transition:border-color .15s,box-shadow .15s}.input:focus{border-color:var(--primary);box-shadow:0 0 0 3px #17b26a24}.input::placeholder{color:#a1a1aa}select.input{cursor:pointer}.hint{margin:0;font-size:11.5px;color:var(--muted-foreground)}.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:38px;padding:0 16px;font-size:13.5px;font-weight:600;font-family:inherit;border-radius:var(--radius-sm);border:1px solid transparent;cursor:pointer;transition:background .15s,border-color .15s,color .15s;white-space:nowrap}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-primary{background:var(--primary);color:var(--primary-foreground)}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-danger{background:var(--card);color:#b91c1c;border-color:#fecaca}.btn-danger:hover:not(:disabled){background:#fef2f2;border-color:#fca5a5}.btn-ghost{background:var(--card);color:#3f3f46;border-color:var(--input)}.btn-ghost:hover:not(:disabled){background:var(--muted)}.btn-block{width:100%}.alert{padding:10px 12px;border-radius:var(--radius-sm);font-size:12.5px;border:1px solid transparent}.alert-danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}.alert-success{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}.app-shell{display:flex;min-height:100vh}.sidebar{width:260px;flex:none;background:var(--sidebar-bg);border-right:1px solid var(--border);display:flex;flex-direction:column;position:sticky;top:0;height:100vh}.sidebar-brand{display:flex;align-items:center;gap:10px;padding:18px 20px;border-bottom:1px solid var(--border)}.sidebar-nav{padding:16px 12px;flex:1;overflow-y:auto}.nav-section{padding:0 10px 8px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#a1a1aa}.nav-item{display:flex;align-items:center;gap:10px;padding:9px 10px;margin-bottom:2px;border-radius:var(--radius-sm);font-size:13.5px;font-weight:500;color:#3f3f46;text-decoration:none;transition:background .15s,color .15s}.nav-item:hover:not(.is-disabled){background:var(--muted)}.nav-item.is-active{background:#17b26a1a;color:#0f7a48;font-weight:650}.nav-item.is-active .nav-icon{stroke:var(--primary)}.nav-item.is-disabled{color:#a1a1aa;cursor:not-allowed;pointer-events:none}.nav-icon{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}.nav-badge{margin-left:auto;font-size:10.5px;font-weight:600;padding:2px 6px;border-radius:999px;background:var(--muted);color:var(--muted-foreground)}.sidebar-foot{padding:14px 20px;border-top:1px solid var(--border);font-size:11.5px;color:var(--muted-foreground)}.conn-row{display:flex;align-items:center;gap:7px;font-weight:600}.conn-dot{width:7px;height:7px;border-radius:999px;background:#a1a1aa;flex:none}.conn-dot.is-up{background:var(--primary);box-shadow:0 0 0 3px #17b26a2e}.conn-dot.is-down{background:var(--destructive);box-shadow:0 0 0 3px #dc262629}.conn-api{margin-top:4px;word-break:break-all;font-size:11px}.main{flex:1;min-width:0;display:flex;flex-direction:column}.topbar{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:16px 28px;background:var(--card);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:5}.crumb{font-size:11.5px;color:var(--muted-foreground)}.page-title{margin:2px 0 0;font-size:18px;font-weight:650;letter-spacing:-.01em}.topbar-right{display:flex;align-items:center;gap:12px}.user-meta{text-align:right;line-height:1.3}.user-org{font-size:13px;font-weight:650}.user-name{font-size:11.5px;color:var(--muted-foreground)}.avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:999px;background:var(--muted);color:#3f3f46;font-weight:650;font-size:13px}.content{padding:24px 28px 48px;display:grid;gap:20px;align-content:start}.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}.stat-card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-card);padding:16px 18px}.stat-label{font-size:12px;color:var(--muted-foreground);font-weight:500}.stat-value{margin-top:6px;font-size:24px;font-weight:700;letter-spacing:-.02em}.card{background:var(--card);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-card);overflow:hidden}.card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:18px 20px;border-bottom:1px solid var(--border)}.card-head-actions{display:flex;align-items:center;gap:10px}.card-title{margin:0;font-size:15px;font-weight:650}.card-desc{margin:4px 0 0;font-size:12.5px;color:var(--muted-foreground)}.card-body{padding:20px;display:grid;gap:16px}.card-actions{display:flex;justify-content:flex-end}.grid-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.field-wide{grid-column:1 / -1}.poll-note{font-size:11.5px;font-weight:600;color:var(--primary)}.table-wrap{overflow-x:auto}.table{width:100%;border-collapse:collapse;font-size:13px}.table th{text-align:left;padding:10px 20px;font-size:11.5px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--muted-foreground);background:#fbfbfc;border-bottom:1px solid var(--border);white-space:nowrap}.table td{padding:12px 20px;border-bottom:1px solid var(--border);vertical-align:middle}.table tbody tr:last-child td{border-bottom:none}.table tbody tr:hover{background:#fcfcfd}.cell-id{font-variant-numeric:tabular-nums;color:var(--muted-foreground)}.cell-url{max-width:320px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-weight:500}.cell-time{color:var(--muted-foreground);font-size:12px;white-space:nowrap}.cell-error{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;margin-top:3px;font-size:11.5px;line-height:1.5;color:var(--destructive);max-width:460px;overflow:hidden;white-space:normal;word-break:break-word;cursor:pointer}.cell-error.is-expanded{-webkit-line-clamp:unset;display:block}.cell-note{display:block;margin-top:3px;font-size:11.5px;color:var(--warning);max-width:320px}.badge{display:inline-flex;align-items:center;gap:5px;padding:3px 9px;border-radius:999px;font-size:11.5px;font-weight:650;border:1px solid transparent;white-space:nowrap}.badge-dot{width:6px;height:6px;border-radius:999px;background:currentColor;flex:none}.badge-ready{background:var(--muted);border-color:var(--input);color:#52525b}.badge-processing{background:#eff6ff;border-color:#bfdbfe;color:#1d4ed8}.badge-processing .badge-dot{animation:pulse 1.2s ease-in-out infinite}.badge-success{background:#ecfdf5;border-color:#a7f3d0;color:#047857}.badge-failed{background:#fffbeb;border-color:#fde68a;color:#b45309}.badge-dead{background:#fef2f2;border-color:#fecaca;color:#b91c1c}.badge-scope{background:var(--muted);border-color:var(--input);color:#52525b;font-weight:600}@keyframes pulse{0%,to{opacity:1}50%{opacity:.25}}.progress{min-width:140px}.progress-bar{height:6px;border-radius:999px;background:var(--muted);overflow:hidden}.progress-fill{height:100%;border-radius:999px;background:var(--primary);transition:width .35s ease}.progress-text{margin-top:5px;font-size:11.5px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}.card-foot{padding:14px 20px 18px;border-top:1px solid var(--border);background:#fbfbfc;display:grid;gap:10px}.empty{padding:36px 20px;text-align:center;font-size:13px;color:var(--muted-foreground)}@media(max-width:900px){.app-shell{flex-direction:column}.sidebar{width:100%;height:auto;position:static;border-right:none;border-bottom:1px solid var(--border)}.grid-2{grid-template-columns:minmax(0,1fr)}.content,.topbar{padding-left:16px;padding-right:16px}}.chat-log{padding:18px 20px;display:grid;gap:14px;max-height:520px;overflow-y:auto}.chat-empty{padding:28px 0;text-align:center;font-size:13px;color:var(--muted-foreground)}.chat-turn{display:grid;gap:6px;max-width:78%}.chat-turn.is-user{justify-self:end;text-align:right}.chat-bubble{padding:10px 14px;border-radius:var(--radius);font-size:13.5px;line-height:1.6;white-space:pre-wrap;word-break:break-word}.is-user .chat-bubble{background:var(--primary);color:var(--primary-foreground);border-bottom-right-radius:4px}.is-bot .chat-bubble{background:var(--muted);color:var(--foreground);border-bottom-left-radius:4px}.is-bot.is-fallback .chat-bubble{background:#fffbeb;border:1px solid #fde68a;color:#92400e}.chat-meta{font-size:11px;color:var(--muted-foreground);font-variant-numeric:tabular-nums}.chat-sources{margin:2px 0 0;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-sm);background:#fbfbfc;display:grid;gap:7px}.chat-source{font-size:11.5px;color:var(--muted-foreground);display:grid;gap:2px}.chat-source-head{font-weight:650;color:#3f3f46}.chat-source-head.is-top{color:#047857}.chat-source-preview{white-space:pre-wrap;word-break:break-word;opacity:.85}.chat-input-row{display:flex;gap:10px;padding:0 20px 18px}.chat-input-row .input{flex:1}.chip{display:inline-block;margin:3px 4px 0 0;padding:3px 9px;font-size:11.5px;font-family:inherit;color:#3f3f46;background:var(--card);border:1px solid var(--input);border-radius:999px;cursor:pointer}.chip:hover{background:var(--muted)}.chat-links{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-top:6px}.chat-links-label{font-size:11px;color:#71717a}.chat-link{display:inline-block;max-width:320px;padding:3px 9px;font-size:11.5px;color:var(--primary);background:var(--card);border:1px solid var(--input);border-radius:999px;text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.chat-link:hover{background:var(--muted)}.cell-warn{color:#b45309;font-weight:600}.doc-detail-row>td{padding:0 16px 16px;background:var(--muted)}.doc-empty{padding:12px;font-size:12px;color:#71717a}.chunk-block{margin-top:10px;padding:10px 12px;background:var(--card);border:1px solid var(--input);border-radius:6px}.chunk-block.is-off{opacity:.55}.chunk-head{font-size:11.5px;color:#52525b;margin-bottom:6px}.chunk-body{margin:0;max-height:260px;overflow:auto;white-space:pre-wrap;word-break:break-word;font-size:12px;line-height:1.6;color:#27272a}.chunk-vector{margin-top:6px;font-size:11px;color:#a1a1aa;word-break:break-all}.image-panel{margin-top:10px}.image-item{display:flex;gap:12px;margin-bottom:10px;padding:10px 12px;background:var(--card);border:1px solid var(--input);border-radius:6px}.image-thumb{width:220px;max-height:220px;object-fit:contain;background:var(--muted);border-radius:4px;flex-shrink:0}.image-info{flex:1;min-width:0}.voice-toggle{display:inline-flex;align-items:center;gap:6px;font-size:12px;color:#52525b;cursor:pointer;-webkit-user-select:none;user-select:none}.voice-toggle input{accent-color:var(--primary);cursor:pointer}.avatar-stage{padding:18px 20px 0;display:grid;justify-items:center;gap:6px}.avatar-canvas{width:220px;height:220px;border-radius:var(--radius);background:radial-gradient(circle at 50% 35%,rgba(23,178,106,.12),transparent 65%),var(--muted)}.avatar-status{font-size:11px;color:var(--muted-foreground)}.chat-bubble.is-streaming:after{content:"";display:inline-block;width:6px;height:13px;margin-left:3px;background:currentColor;vertical-align:text-bottom;animation:caret 1s steps(2,start) infinite}@keyframes caret{0%,to{opacity:1}50%{opacity:0}}.dropzone{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:28px 20px;border:1.5px dashed var(--input, #e4e4e7);border-radius:var(--radius, .625rem);background:var(--muted, #f4f4f5);cursor:pointer;text-align:center;transition:border-color .15s ease,background .15s ease}.dropzone:hover,.dropzone:focus-visible{border-color:var(--primary, #17b26a);background:#fff;outline:none}.dropzone.is-dragover{border-color:var(--primary, #17b26a);border-style:solid;background:#17b26a0f}.dropzone-icon{width:28px;height:28px;color:var(--muted-foreground, #71717a)}.dropzone.is-dragover .dropzone-icon{color:var(--primary, #17b26a)}.dropzone-title{font-size:14px;font-weight:500;color:var(--foreground, #09090b)}.dropzone-desc{font-size:13px;color:var(--muted-foreground, #71717a)}.dropzone .hint{margin-top:6px}.dropzone-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.upload-list-head{display:flex;justify-content:space-between;align-items:center;margin-top:12px;font-size:13px;color:var(--muted-foreground, #71717a)}.btn-link{border:none;background:none;padding:0;font-size:13px;color:var(--muted-foreground, #71717a);cursor:pointer;text-decoration:underline}.btn-link:hover{color:var(--destructive, #dc2626)}.upload-list{margin-top:8px;border:1px solid var(--border, #e4e4e7);border-radius:8px;overflow:hidden}.upload-item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:8px 12px;font-size:13px;border-bottom:1px solid var(--border, #e4e4e7)}.upload-item-remove{flex-shrink:0;width:22px;height:22px;border:none;border-radius:50%;background:transparent;color:var(--muted-foreground, #71717a);font-size:15px;line-height:1;cursor:pointer;transition:background .15s ease,color .15s ease}.upload-item-remove:hover{background:#fee2e2;color:var(--destructive, #dc2626)}.upload-item-main{display:flex;align-items:center;gap:10px;min-width:0;flex:1}.upload-item:last-child{border-bottom:none}.upload-item-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.upload-item-note{flex-shrink:0;color:var(--muted-foreground, #71717a)}.upload-item.is-bad{background:#fef2f2}.upload-item.is-bad .upload-item-note{color:#dc2626;font-weight:500}
