@font-face{font-family:Good Times RG;src:url(/brand/good-times-rg.ttf)format("truetype");font-display:swap}:root{color:#171417;font-synthesis:none;--forest:#611d36;--forest-light:#f3e9ed;--paper:#fff;--muted:#706970;--line:#e4dce0;--danger:#a22d39;--brand:#611d36;--brand-dark:#401022;--ink:#000;background:#f7f5f6;font-family:Inter,Aptos,Segoe UI,Arial,sans-serif}*{box-sizing:border-box}body{min-width:320px;min-height:100vh;margin:0}button,input,textarea{font:inherit}button{color:inherit}button:focus-visible,input:focus-visible,textarea:focus-visible{outline-offset:2px;outline:3px solid #611d363d}.app-shell{min-height:100vh}.topbar{border-bottom:1px solid var(--line);z-index:30;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:#fffffff5;justify-content:space-between;align-items:center;height:78px;padding:0 28px;display:flex;position:sticky;top:0}.brand{color:var(--ink);align-items:center;gap:18px;text-decoration:none;display:flex}.brand img{object-fit:contain;object-position:left center;width:164px;height:42px;display:block}.brand-product{border-left:1px solid var(--line);color:var(--brand);letter-spacing:.06em;padding-left:18px;font:16px/1 Good Times RG,sans-serif}.environment{color:var(--muted);align-items:center;gap:8px;font-size:12px;display:flex}.pulse{background:#56a77f;border-radius:50%;width:8px;height:8px;box-shadow:0 0 0 4px #e2f1e9}.workspace{grid-template-columns:296px minmax(0,1fr);min-height:calc(100vh - 78px);display:grid}.sidebar{color:#fff;background:linear-gradient(165deg,#611d36 0%,#431124 70%,#2d0916 100%);flex-direction:column;min-width:0;padding:28px 18px 20px;display:flex}.sidebar-heading{justify-content:space-between;align-items:flex-start;gap:12px;padding:0 6px 22px;display:flex}.eyebrow{letter-spacing:.16em;text-transform:uppercase;color:#89938f;margin:0 0 7px;font-size:9px;font-weight:700}.sidebar .eyebrow{color:#ffffff7a}.sidebar h1{letter-spacing:.03em;margin:0;font:22px/1.25 Good Times RG,sans-serif}.icon-button{color:#fff;cursor:pointer;background:#ffffff0f;border:1px solid #ffffff2e;border-radius:8px;width:34px;height:34px;font-size:20px}.icon-button:hover{background:#ffffff21}.kb-list{flex-direction:column;gap:6px;display:flex}.kb-item{color:#ffffffc7;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:9px;grid-template-columns:34px minmax(0,1fr);align-items:center;gap:10px;width:100%;padding:11px 9px;display:grid}.kb-item:hover,.kb-item.active{color:#fff;background:#ffffff1c}.kb-glyph{background:#ffffff1a;border-radius:8px;place-items:center;width:34px;height:34px;font:600 18px Georgia,serif;display:grid}.kb-item>span:last-child{flex-direction:column;gap:3px;min-width:0;display:flex}.kb-item strong,.kb-item small{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.kb-item strong{font-size:13px}.kb-item small{color:#ffffff7a;font-size:10px}.empty-sidebar,.muted{color:#ffffff94;font-size:12px;line-height:1.5}.padded,.empty-sidebar{padding:14px 9px}.create-link{color:#ffffffb3;cursor:pointer;background:0 0;border:1px dashed #ffffff40;border-radius:9px;align-items:center;gap:9px;width:100%;margin-top:14px;padding:11px 12px;font-size:12px;display:flex}.create-link:hover{color:#fff;border-color:#ffffff80}.content{min-width:0;padding:38px clamp(24px,4vw,58px) 64px}.error-banner{max-width:1100px;color:var(--danger);background:#fff2ee;border:1px solid #efc9c0;border-radius:9px;align-items:center;gap:10px;margin:0 auto 22px;padding:12px 14px;display:flex}.error-banner p{flex:1;margin:0;font-size:12px}.error-banner button{cursor:pointer;color:inherit;background:0 0;border:0;font-size:18px}.welcome-card{text-align:center;background:var(--paper);border:1px solid var(--line);border-radius:18px;flex-direction:column;justify-content:center;align-items:center;max-width:650px;min-height:430px;margin:7vh auto 0;padding:52px;display:flex;box-shadow:0 14px 50px #2937320f}.large-glyph,.upload-glyph{background:var(--forest-light);width:54px;height:54px;color:var(--forest);border-radius:13px;place-items:center;font:600 28px Newsreader,serif;display:grid}.welcome-card h2{color:var(--ink);margin:22px 0 8px;font:25px/1.3 Good Times RG,sans-serif}.welcome-card p{max-width:470px;color:var(--muted);margin:0 0 24px;font-size:13px;line-height:1.65}.primary,.secondary{cursor:pointer;border-radius:8px;padding:10px 15px;font-size:12px;font-weight:600}.primary{color:#fff;background:var(--forest);border:0;box-shadow:0 4px 14px #611d3633}.primary:hover{background:#7a2948}.primary:disabled{opacity:.55;cursor:default}.secondary{color:var(--forest);background:#fff;border:1px solid #d2d7d2}.content-header{justify-content:space-between;align-items:flex-end;gap:24px;max-width:1100px;margin:0 auto 24px;display:flex}.content-header h2{color:var(--ink);margin:8px 0;font:29px/1.25 Good Times RG,sans-serif}.content-header p:last-child{max-width:650px;color:var(--muted);margin:0;font-size:13px}.breadcrumb{color:#929a97;letter-spacing:.13em;margin:0;font-size:9px;font-weight:700}.breadcrumb span{color:var(--forest)}.view-tabs{border-bottom:1px solid var(--line);gap:5px;max-width:1100px;margin:0 auto 20px;display:flex}.view-tabs button{color:var(--muted);cursor:pointer;background:0 0;border:0;border-bottom:2px solid #0000;padding:10px 13px;font-size:12px;font-weight:600}.view-tabs button.active{color:var(--forest);border-bottom-color:var(--forest)}.view-tabs span{background:#e8ebe7;border-radius:10px;margin-left:4px;padding:2px 6px;font-size:9px}.stats{grid-template-columns:repeat(4,1fr);gap:12px;max-width:1100px;margin:0 auto 24px;display:grid}.stats div{border:1px solid var(--line);background:#ffffffb3;border-radius:10px;flex-direction:column;gap:3px;padding:16px 18px;display:flex}.stats strong{color:var(--brand);font:22px/1 Good Times RG,sans-serif}.stats span{color:var(--muted);font-size:10px}.panel{border:1px solid var(--line);background:#fff;border-radius:13px;max-width:1100px;margin:0 auto;overflow:hidden}.panel-title{border-bottom:1px solid var(--line);justify-content:space-between;align-items:center;gap:18px;padding:20px 22px;display:flex}.panel-title h3{margin:0 0 6px;font:17px/1.3 Good Times RG,sans-serif}.panel-title p{color:var(--muted);margin:0;font-size:11px}.refresh{color:var(--forest);cursor:pointer;background:0 0;border:0;font-size:11px;font-weight:600}.empty-state,.dropzone{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:310px;padding:45px 24px;display:flex}.dropzone{background:#fbfcfa;border:1px dashed #c9d0cb;border-radius:11px;min-height:280px;margin:24px}.dropzone h3{margin:17px 0 5px;font-size:14px}.dropzone p{color:var(--muted);margin:0 0 17px;font-size:11px}.dropzone small{color:#9ca39f;margin-top:10px;font-size:9px}.spinner{border:3px solid #dce6e1;border-top-color:var(--forest);border-radius:50%;width:30px;height:30px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.document-row{border-bottom:1px solid #eceeea;grid-template-columns:43px minmax(0,1fr) auto 140px;align-items:center;gap:14px;min-height:76px;padding:13px 20px;display:grid}.file-mark{color:#596d67;background:#edf1ef;border-radius:7px;place-items:center;width:41px;height:44px;font-size:9px;font-weight:700;display:grid}.file-mark.pdf{color:#a34f43;background:#f8e8e4}.file-mark.htm{color:#53698d;background:#e8edf7}.document-info{flex-direction:column;gap:4px;min-width:0;display:flex}.document-info strong{text-overflow:ellipsis;white-space:nowrap;font-size:12px;overflow:hidden}.document-info small{color:#919996;font-size:9px}.document-info em{color:var(--danger);font-size:9px;font-style:normal}.status-chip{color:#6c7471;background:#f0f1ee;border-radius:16px;align-items:center;gap:6px;padding:5px 9px;font-size:9px;font-weight:600;display:inline-flex}.status-chip span{background:currentColor;border-radius:50%;width:6px;height:6px}.status-chip.completed,.status-chip.ready{color:#347357;background:#e7f2ec}.status-chip.failed{color:#a44e41;background:#faeae6}.status-chip.processing{color:#58698b;background:#e9edf5}.stage{color:#8d9692;text-align:right;font-size:10px}.retry{color:var(--danger);cursor:pointer;background:#fff7f5;border:1px solid #e3bdb5;border-radius:6px;padding:6px 8px;font-size:9px;font-weight:600}.retry:disabled{opacity:.55}.job-progress{width:min(430px,100%);margin-top:5px}.progress-meta{color:#75817d;justify-content:space-between;margin-bottom:3px;font-size:9px;display:flex}.job-progress progress{accent-color:#477f72;background:#e9ece9;border:0;border-radius:5px;width:100%;height:6px;display:block;overflow:hidden}.job-progress progress::-webkit-progress-bar{background:#e9ece9;border-radius:5px}.job-progress progress::-webkit-progress-value{background:#477f72;border-radius:5px}.inline-upload{width:100%;color:var(--forest);cursor:pointer;background:#fafbf9;border:0;padding:14px;font-size:11px;font-weight:600}.chat-layout{border:1px solid var(--line);background:#fff;border-radius:13px;grid-template-columns:minmax(0,1fr);max-width:1100px;min-height:600px;margin:0 auto;display:grid;overflow:hidden;box-shadow:0 10px 34px #22352f0a}.chat-layout.with-source{grid-template-columns:minmax(0,1fr) minmax(280px,360px)}.chat-panel{grid-template-rows:1fr auto;min-width:0;min-height:600px;display:grid}.chat-scroll{min-height:450px;max-height:calc(100vh - 330px);padding:28px clamp(18px,4vw,44px);overflow-y:auto}.chat-empty{text-align:center;flex-direction:column;justify-content:center;align-items:center;min-height:400px;display:flex}.chat-empty h3{margin:18px 0 8px;font:19px/1.35 Good Times RG,sans-serif}.chat-empty>p{max-width:500px;color:var(--muted);margin:0;font-size:12px;line-height:1.6}.chat-notice{color:#75672f;background:#f4f0df;border-radius:7px;margin-top:18px;padding:10px 14px;font-size:10px}.message{max-width:760px;margin:0 0 24px}.message.user{width:min(78%,650px);margin-left:auto}.message-role{color:#87908d;letter-spacing:.08em;text-transform:uppercase;margin-bottom:5px;font-size:9px;font-weight:700}.message.user .message-role{text-align:right}.message-bubble{color:#293430;background:#f1f4f1;border-radius:4px 13px 13px;padding:14px 16px;font-size:13px;line-height:1.65}.message.user .message-bubble{background:var(--forest);color:#fff;border-radius:13px 4px 13px 13px}.message-bubble p{white-space:pre-wrap;margin:0}.abstention{color:#8c5f26;margin:-3px 0 9px;font-size:10px;font-weight:700}.citation-list{flex-wrap:wrap;gap:6px;margin-top:14px;display:flex}.citation-chip{max-width:100%;color:var(--forest);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;background:#fff;border:1px solid #cbd9d3;border-radius:16px;padding:6px 9px;font-size:9px;font-weight:600;overflow:hidden}.citation-chip:hover{background:#f4f8f6;border-color:#6d9a8c}.thinking{color:var(--muted);align-items:center;gap:5px;display:flex}.thinking span{background:#5e8278;border-radius:50%;width:5px;height:5px;animation:1.1s infinite alternate thinking}.thinking span:nth-child(2){animation-delay:.18s}.thinking span:nth-child(3){animation-delay:.36s}.thinking em{margin-left:6px;font-size:10px;font-style:normal}@keyframes thinking{to{opacity:.25;transform:translateY(-2px)}}.chat-error{color:var(--danger);background:#fff2ee;border:1px solid #efc9c0;border-radius:8px;flex-direction:column;gap:3px;margin:8px 0 20px;padding:12px 14px;font-size:10px;display:flex}.chat-composer{border-top:1px solid var(--line);background:#fbfcfa;grid-template-columns:minmax(0,1fr) auto;gap:8px;padding:15px 18px;display:grid}.chat-composer textarea{resize:none;border:1px solid #ccd2ce;border-radius:9px;width:100%;padding:11px 12px;line-height:1.4}.chat-composer button{align-self:stretch;min-width:74px}.chat-composer small{color:#939a97;grid-column:1/-1;font-size:8px}.source-panel{border-left:1px solid var(--line);background:#fbfcfa;min-width:0;padding:24px}.source-header{justify-content:space-between;align-items:flex-start;display:flex}.source-header h3{margin:0;font:19px/1.3 Good Times RG,sans-serif}.source-header button{cursor:pointer;background:#e9ece8;border:0;border-radius:7px;width:30px;height:30px;font-size:17px}.source-panel dl{margin:24px 0 18px}.source-panel dl div{border-bottom:1px solid #e6e9e5;grid-template-columns:72px minmax(0,1fr);gap:8px;padding:8px 0;display:grid}.source-panel dt{color:#858e8a;text-transform:uppercase;font-size:9px}.source-panel dd{overflow-wrap:anywhere;color:#394641;margin:0;font-size:10px;font-weight:600}.source-panel blockquote{color:#3d4844;background:#fff;border-left:3px solid #83a79c;margin:0 0 18px;padding:14px;font:400 12px/1.65 Georgia,serif}.source-link{color:var(--forest);background:#fff;border:1px solid #cbd7d2;border-radius:7px;padding:9px 11px;font-size:10px;font-weight:700;text-decoration:none;display:inline-flex}.source-hint{color:#89928e;margin:16px 0 0;font-size:9px;line-height:1.55}.sr-only{clip:rect(0,0,0,0);white-space:nowrap;border:0;width:1px;height:1px;padding:0;position:absolute;overflow:hidden}.modal-backdrop{z-index:50;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);background:#14201d75;place-items:center;padding:20px;display:grid;position:fixed;inset:0}.modal{background:#fff;border-radius:15px;width:min(490px,100%);padding:28px;position:relative;box-shadow:0 25px 90px #0f231d40}.modal-close{cursor:pointer;background:#f1f2ef;border:0;border-radius:7px;width:32px;height:32px;font-size:18px;position:absolute;top:14px;right:14px}.modal h2{margin:6px 0 10px;font:21px/1.35 Good Times RG,sans-serif}.modal>p:not(.eyebrow){color:var(--muted);margin:0 0 20px;font-size:12px}.modal label{margin:15px 0;font-size:11px;font-weight:600;display:block}.modal label span{color:#9aa09d;font-weight:400}.modal input,.modal textarea{resize:vertical;border:1px solid #d4d8d4;border-radius:8px;width:100%;margin-top:7px;padding:10px 11px;display:block}.modal-actions{justify-content:flex-end;gap:8px;margin-top:22px;display:flex}@media (width<=800px){.workspace{grid-template-columns:1fr}.sidebar{min-height:auto}.content{padding:28px 18px 46px}.content-header{flex-direction:column;align-items:flex-start}.stats{grid-template-columns:repeat(2,1fr)}.document-row{grid-template-columns:43px minmax(0,1fr) auto}.stage{display:none}.chat-layout.with-source{grid-template-columns:1fr}.source-panel{border-top:1px solid var(--line);border-left:0}.chat-scroll{max-height:none}}@media (width<=520px){.topbar{padding:0 16px}.environment{display:none}.welcome-card{margin-top:0;padding:32px 22px}.stats{grid-template-columns:1fr 1fr}.panel-title{align-items:flex-start}.document-row{grid-template-columns:40px minmax(0,1fr)}.status-chip{grid-column:2;justify-self:start}.chat-scroll{padding:22px 15px}.message.user{width:88%}.chat-composer{padding:12px}}
