:root{font-family:Inter,"Segoe UI","Microsoft YaHei","PingFang SC",sans-serif;color:#253a38;background:#f7f9f8;font-synthesis:none;font-size:14px;--green:#187d70;--green-dark:#116659;--light:#eaf4f0;--muted:#83918d;--line:#e7ece9;--shadow:0 6px 30px #203f3610}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea{ -webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #8cc5b9;outline-offset:3px}a{color:var(--green);text-decoration:none}button{color:inherit}svg{width:20px;height:20px;flex-shrink:0;vertical-align:middle}button svg{pointer-events:none}h1,h2,h3,p{margin:0}button{border:0;background:none}input,textarea,select{color:inherit}textarea{resize:none}.shell{min-height:100vh;display:grid;grid-template-columns:232px minmax(0,1fr)}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;display:flex;flex-direction:column;background:#fff;border-right:1px solid var(--line);padding:31px 20px 16px;z-index:20}.brand{display:flex;align-items:center;gap:11px;padding:0 8px;margin-bottom:34px}.brand-mark{width:38px;height:38px;display:grid;place-items:center;background:var(--green);color:#fff;border-radius:12px}.brand-mark svg{width:24px;height:24px}.brand-name{font-size:23px;font-weight:750;letter-spacing:2px}.brand-sub{font-size:9px;letter-spacing:1.1px;color:#99a5a1;margin-top:4px}.new-chat{display:flex;align-items:center;justify-content:center;gap:9px;width:100%;padding:12px;border:1px solid #c8ded5;background:#f2f8f5;border-radius:9px;color:var(--green);font-weight:600;margin-bottom:28px}.nav-label{font-size:10px;letter-spacing:1.5px;color:#9aa7a2;padding:0 13px;margin:0 0 10px}.nav{display:flex;flex-direction:column;gap:6px}.nav-btn{display:flex;align-items:center;gap:12px;text-align:left;border-radius:8px;color:#798580;padding:12px 14px;position:relative}.nav-btn svg{width:19px;height:19px}.nav-btn:hover{background:#f5f8f6}.nav-btn.active{background:#eaf4ef;color:var(--green);font-weight:650}.nav-btn.active:after{content:"";width:5px;height:5px;background:#368d73;border-radius:50%;margin-left:auto}.nav-btn small{margin-left:auto;background:#eef2ef;padding:1px 6px;border-radius:4px;font-size:10px;font-weight:500}.sidebar-rule{height:1px;background:var(--line);margin:24px 12px}.recent-list{display:flex;flex-direction:column;gap:4px}.recent-item{width:100%;display:flex;align-items:center;gap:9px;text-align:left;color:#87928d;padding:10px 13px;font-size:12px;white-space:nowrap;overflow:hidden}.recent-item svg{width:14px;height:14px;color:#a6b0aa}.recent-item span{overflow:hidden;text-overflow:ellipsis}.sidebar-spacer{flex:1;min-height:30px}.local-note{margin:18px 5px 17px;padding:14px 13px;background:#f6f8f5;border-radius:9px}.local-note .note-icon{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:600;color:#657e70}.local-note svg{width:15px;height:15px}.local-note p{font-size:10px;line-height:1.8;color:#96a298;margin-top:5px}.workspace{border-top:1px solid var(--line);padding:18px 6px 2px;display:flex;align-items:center;gap:9px}.avatar{width:33px;height:33px;display:grid;place-items:center;background:#eef1ed;border:1px solid #e2e7df;border-radius:50%;color:#788675;font-size:12px;font-weight:600}.workspace strong{display:block;font-size:11px;font-weight:600}.workspace small{font-size:10px;color:#9aa69d}.workspace button{margin-left:auto;color:#92a096;padding:4px}.main{grid-column:2;min-width:0}.topbar{height:76px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid var(--line);background:#fcfdfc}.breadcrumb{display:flex;align-items:center;gap:11px;font-size:12px;color:#9ba6a0}.breadcrumb strong{font-weight:550;color:#4b5c53}.breadcrumb svg{width:14px;height:14px}.top-actions{display:flex;align-items:center;gap:22px}.live-status{display:flex;align-items:center;gap:6px;font-size:11px;color:#809185}.dot{width:6px;height:6px;border-radius:50%;background:#6aa58a;display:inline-block}.text-button{display:flex;align-items:center;gap:7px;font-size:12px;color:#677b6e}.text-button svg{width:15px;height:15px}.page{max-width:1180px;margin:0 auto;padding:39px 54px 32px}.page-home{padding-top:39px}.home-intro{text-align:center;margin:0 auto}.eyebrow{display:inline-flex;align-items:center;gap:7px;font-size:10px;letter-spacing:1.8px;color:#629482;margin-bottom:15px}.eyebrow svg{width:13px;height:13px}.home-intro h1{font-size:32px;letter-spacing:-.7px;line-height:1.6;color:#29483b;font-weight:620}.home-intro h1 span{color:var(--green)}.home-intro p{font-size:12px;color:#9aa69d;margin-top:8px;line-height:1.8}.composer{background:#fff;border:1px solid #dbe5de;border-radius:13px;box-shadow:0 7px 26px #284b3b06;padding:18px 20px 12px;margin-top:28px;transition:box-shadow .2s,border .2s}.composer:focus-within{border-color:#80b4a1;box-shadow:0 4px 26px #187d7010}.composer textarea{width:100%;border:0;outline:0;min-height:66px;background:none;font-size:13px;line-height:1.8;padding:0 2px}.composer textarea::placeholder{color:#a8b3ac}.composer-bottom{display:flex;align-items:center;justify-content:space-between}.composer-tools{display:flex;gap:16px;align-items:center}.tool-button{display:inline-flex;gap:6px;align-items:center;color:#819187;font-size:11px;padding:5px 0}.tool-button:hover{color:var(--green)}.tool-button svg{width:16px;height:16px}.tool-divider{height:13px;width:1px;background:var(--line)}.send-area{display:flex;align-items:center;gap:12px}.shortcut{color:#b0bab2;font-size:9px}.send-btn{background:var(--green);color:#fff;display:flex;align-items:center;gap:8px;padding:9px 15px;border-radius:7px;font-size:12px;box-shadow:0 3px 7px #187d7010}.send-btn svg{width:15px;height:15px}.send-btn:hover,.primary:hover{background:var(--green-dark)}.suggestions{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:8px;margin-top:15px;color:#98a69c;font-size:10px}.suggestions button{background:#f0f3ef;border:1px solid #e7ece5;color:#849288;border-radius:5px;font-size:10px;padding:5px 9px;max-width:260px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.suggestions button:hover{background:var(--light);color:var(--green)}.quick-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:35px 0 35px}.quick-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:18px 17px;display:flex;text-align:left;align-items:center;gap:12px;transition:transform .18s,box-shadow .18s}.quick-card:hover{transform:translateY(-3px);box-shadow:var(--shadow)}.quick-icon{width:38px;height:38px;border-radius:10px;background:#edf5f0;color:#609778;display:grid;place-items:center;flex-shrink:0}.quick-icon.blue{background:#eef3fa;color:#6c93b7}.quick-icon.gold{background:#faf4e9;color:#b59b63}.quick-card h3{font-size:12px;font-weight:600;color:#4a6152}.quick-card p{font-size:10px;color:#a1ada3;margin-top:6px;white-space:nowrap}.quick-card>.arrow{width:14px;height:14px;color:#afbcb1;margin-left:auto}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:17px}.section-heading h2{font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px}.section-heading h2 svg{width:16px;height:16px;color:#849a88}.section-heading button{display:flex;align-items:center;gap:4px;color:#97a79a;font-size:10px}.section-heading button svg{width:12px;height:12px}.knowledge-layout{display:grid;grid-template-columns:minmax(0,1fr) 253px;gap:20px}.faq-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:0 18px;min-height:190px}.faq-item{display:flex;align-items:center;gap:12px;width:100%;text-align:left;padding:15px 0;border-bottom:1px solid #f0f3ee;font-size:11px}.faq-item:last-child{border-bottom:0}.faq-index{width:20px;height:20px;display:grid;place-items:center;background:#f1f5ef;border-radius:5px;color:#98a994;font-size:9px}.faq-item .faq-title{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#687b6c}.faq-item .tag{font-size:9px}.faq-item>svg{width:12px;height:12px;color:#a9b7ab}.tag{display:inline-flex;align-items:center;border:1px solid #e7ece5;border-radius:4px;padding:3px 7px;font-size:10px;color:#8b9a8d;background:#f8faf7;white-space:nowrap}.library-status{padding:19px;background:linear-gradient(145deg,#f1f7ef,#edf4ee);border:1px solid #dfebdf;border-radius:10px}.library-status-title{display:flex;justify-content:space-between;align-items:center;font-size:12px;font-weight:600;color:#607a61}.library-status-title svg{width:17px;height:17px;color:#84a384}.stats-row{display:flex;gap:30px;padding:19px 0 14px}.stat strong{font-size:25px;font-weight:550;color:#426a4d;letter-spacing:-1px}.stat span{display:block;font-size:9px;color:#92a28e;margin-top:3px}.library-files{border-top:1px solid #dfE8dd;padding-top:12px}.library-file{display:flex;gap:7px;align-items:center;font-size:9px;color:#90a18b;line-height:2.2;overflow:hidden;white-space:nowrap}.library-file svg{width:12px;height:12px}.library-file span{overflow:hidden;text-overflow:ellipsis}.library-status .text-button{margin-top:11px;color:#7a9679;font-size:10px}.page-footer{display:flex;justify-content:center;gap:7px;margin-top:30px;font-size:9px;color:#adb8ac;line-height:1.8}.page-footer svg{width:12px;height:12px;margin-top:2px}.page-title{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-bottom:27px}.page-title h1{font-size:24px;font-weight:600;color:#2e4b3c;letter-spacing:-.5px}.page-title p{font-size:12px;line-height:1.8;color:#97a69b;margin-top:8px}.primary,.secondary,.danger{display:inline-flex;align-items:center;justify-content:center;gap:7px;padding:10px 15px;border-radius:7px;font-size:12px;min-height:36px}.primary{background:var(--green);color:white}.secondary{background:#fff;border:1px solid #dfe7df;color:#718474}.danger{background:#fff2ef;color:#b15a4c;border:1px solid #f0d6cf}.primary svg,.secondary svg,.danger svg{width:15px;height:15px}.ocr-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:22px;align-items:start}.panel{background:#fff;border:1px solid var(--line);border-radius:11px;padding:23px}.panel h2{font-size:14px;font-weight:600;margin-bottom:10px}.panel p.description{color:#9aa79c;font-size:11px;line-height:1.9;margin-bottom:17px}.dropzone{border:1.5px dashed #ccdcd0;border-radius:9px;min-height:245px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:#fafcf9;gap:14px;padding:25px;transition:background .2s}.dropzone.dragover{background:#eaf6ef;border-color:var(--green)}.dropzone>.drop-icon{width:54px;height:54px;display:grid;place-items:center;background:#eef5ee;border-radius:15px;color:#81a18b}.dropzone>.drop-icon svg{width:27px;height:27px}.dropzone strong{font-size:13px;font-weight:550;color:#7c917f}.dropzone p{font-size:10px;color:#a2afa3;line-height:1.9}.upload-actions{display:flex;gap:10px;justify-content:center;margin-top:16px}.image-preview{position:relative;background:#f4f6f2;border-radius:8px;min-height:180px;display:grid;place-items:center;overflow:hidden}.image-preview img{max-width:100%;max-height:290px;object-fit:contain}.image-preview button{position:absolute;right:8px;top:8px;padding:5px;border-radius:50%;background:#fffE;box-shadow:0 2px 6px #0001}.image-preview svg{width:16px;height:16px}.image-meta{display:flex;justify-content:space-between;font-size:10px;color:#98a69b;margin:12px 0}.full{width:100%}.ocr-tips{margin-top:20px;display:flex;gap:9px;color:#96a795;line-height:1.9;font-size:10px}.ocr-tips svg{width:16px;height:16px;flex-shrink:0;margin-top:2px}.empty-result{display:flex;flex-direction:column;min-height:300px;align-items:center;justify-content:center;text-align:center;color:#a3afa3;gap:14px}.empty-result svg{width:35px;height:35px;color:#c0cec1}.empty-result p{font-size:11px;line-height:1.9;max-width:240px}.code-chips{display:flex;flex-wrap:wrap;gap:7px;margin:16px 0}.code-chip{background:#edf6f0;color:var(--green);border:1px solid #d5e9dc;padding:6px 10px;border-radius:6px;font-family:Consolas,monospace;font-size:12px}.recognized-text{background:#f6f8f4;border:1px solid var(--line);border-radius:7px;padding:12px;width:100%;min-height:125px;line-height:1.8;font-size:11px;outline-color:#9abfa7;resize:vertical}.subtle-label{display:block;font-size:10px;color:#9aa79a;margin:15px 0 8px}.result-answer{border-top:1px solid var(--line);margin-top:23px;padding-top:20px;font-size:12px;line-height:1.9}.notice{padding:12px 14px;border:1px solid #e5e9d9;background:#fafbf5;border-radius:7px;color:#91966d;font-size:11px;line-height:1.9;margin-bottom:20px}.notice svg{width:14px;height:14px;margin-right:6px}.toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px;margin-bottom:20px}.search-field{display:flex;align-items:center;gap:8px;border:1px solid #e0e7dd;background:#fff;border-radius:7px;padding:9px 12px;flex:1;max-width:400px}.search-field svg{width:16px;height:16px;color:#a2b19f}.search-field input{border:0;background:none;outline:0;font-size:11px;width:100%}.category-tabs{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:20px}.category-tabs button{padding:7px 12px;font-size:11px;color:#92a18f;border:1px solid transparent;border-radius:6px}.category-tabs button.active{background:#e9f2e9;border-color:#d9e6d8;color:#5c8b61}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}.entry-card{background:#fff;border:1px solid var(--line);border-radius:10px;padding:20px;text-align:left;display:flex;flex-direction:column;gap:12px;transition:box-shadow .2s}.entry-card:hover{box-shadow:var(--shadow)}.entry-card-top{display:flex;justify-content:space-between;align-items:center;gap:10px}.entry-card h3{font-size:13px;font-weight:550;line-height:1.7}.entry-card p{font-size:11px;color:#9aa69a;line-height:1.9;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.entry-card .entry-source{font-size:9px;color:#a8b3a4;margin-top:auto;padding-top:7px;display:flex;align-items:center;gap:6px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.entry-source svg{width:12px;height:12px}.entry-card-top>svg{width:15px;height:15px;color:#afbeac}.empty{padding:55px;text-align:center;color:#9ba99a;font-size:12px;line-height:2}.manager-tabs{border-bottom:1px solid var(--line);display:flex;gap:28px;margin-bottom:24px}.manager-tabs button{font-size:12px;color:#93a18e;padding:0 0 14px;border-bottom:2px solid transparent}.manager-tabs button.active{border-color:var(--green);color:var(--green);font-weight:600}.import-area{border:1.5px dashed #ceded0;background:#f6faf4;border-radius:11px;display:flex;align-items:center;gap:18px;padding:25px;margin-bottom:24px}.import-area .quick-icon{width:45px;height:45px;background:#eaf3e7}.import-area h3{font-size:13px;font-weight:550}.import-area p{font-size:10px;line-height:1.9;color:#96a58f;margin-top:6px}.import-area button{margin-left:auto;white-space:nowrap}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:9px;background:#fff}.data-table{width:100%;border-collapse:collapse;white-space:nowrap;text-align:left;font-size:11px}.data-table th{font-weight:500;color:#98a693;background:#f7faf5;padding:14px 17px;border-bottom:1px solid var(--line)}.data-table td{padding:17px;border-bottom:1px solid #edf1e8;color:#84957e}.data-table tr:last-child td{border:0}.data-table .filename{color:#5d7657;display:flex;align-items:center;gap:10px}.filename svg{width:18px;height:18px;color:#7f9d76}.table-actions{display:flex;gap:10px}.table-actions button{font-size:10px;color:#80a176}.table-actions .delete{color:#b2998d}.data-table .question-col{max-width:400px;text-overflow:ellipsis;overflow:hidden}.import-report{background:#fff;border:1px solid var(--line);border-radius:8px;padding:16px;font-size:11px;line-height:1.9;margin-bottom:20px;color:#7b9573}.chat-page{max-width:1000px;display:flex;flex-direction:column;min-height:calc(100vh - 76px);padding-top:26px}.chat-messages{flex:1;display:flex;flex-direction:column;gap:25px}.user-message{align-self:flex-end;max-width:78%;background:#e8f2eb;color:#4c6e50;border-radius:13px 13px 3px 13px;padding:13px 18px;font-size:13px;line-height:1.9;white-space:pre-wrap}.assistant-message{display:flex;gap:12px;max-width:100%;align-items:flex-start}.assistant-icon{width:30px;height:30px;flex-shrink:0;border-radius:9px;background:var(--green);color:#fff;display:grid;place-items:center}.assistant-icon svg{width:18px;height:18px}.assistant-body{min-width:0;flex:1}.answer-heading{font-size:11px;font-weight:600;display:flex;align-items:center;gap:8px;margin:7px 0 12px}.answer-heading .tag{font-size:9px;font-weight:400}.answer-text{font-size:12px;line-height:2;color:#72846b;overflow-wrap:anywhere}.answer-text p{margin-bottom:9px;white-space:pre-wrap}.answer-text a{word-break:break-all;text-decoration:underline;text-underline-offset:3px}.answer-images{display:flex;gap:9px;flex-wrap:wrap;margin:14px 0}.answer-images button{padding:0;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:#fff}.answer-images img{width:145px;max-height:100px;object-fit:contain;display:block}.source-list{display:flex;flex-wrap:wrap;gap:7px;margin-top:14px}.source-button{display:flex;gap:5px;align-items:center;color:#91a286;background:#f0f4ec;border:1px solid #e5ebdf;border-radius:5px;padding:6px 9px;font-size:9px}.source-button svg{width:12px;height:12px}.answer-actions{display:flex;align-items:center;gap:17px;margin-top:13px}.answer-actions button{font-size:10px;color:#a1ae99;display:flex;align-items:center;gap:5px}.answer-actions svg{width:13px;height:13px}.chat-composer{position:sticky;bottom:0;padding:15px 0 10px;background:linear-gradient(#f7f9f800,#f7f9f8 18px)}.chat-composer .composer{margin-top:0}.chat-composer .composer textarea{min-height:42px}.chat-composer .page-footer{margin-top:10px}.typing{display:flex;gap:5px;padding:12px 0}.typing i{width:5px;height:5px;background:#8db69a;border-radius:50%;animation:pulse 1.2s infinite}.typing i:nth-child(2){animation-delay:.2s}.typing i:nth-child(3){animation-delay:.4s}@keyframes pulse{50%{opacity:.3;transform:translateY(-3px)}}#toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:#294a36;color:#fff;border-radius:8px;padding:12px 20px;font-size:12px;box-shadow:var(--shadow);opacity:0;transition:.2s;pointer-events:none;z-index:100;max-width:90vw;line-height:1.8}#toast.visible{opacity:1;transform:translate(-50%,0)}dialog{border:1px solid var(--line);border-radius:13px;box-shadow:0 20px 100px #172b3b33;width:min(600px,92vw);max-height:88vh;padding:0;color:inherit;background:#fff}dialog::backdrop{background:#1c302c55;backdrop-filter:blur(3px)}.modal-header{display:flex;align-items:center;justify-content:space-between;padding:22px 25px;border-bottom:1px solid var(--line)}.modal-header h2{font-size:17px;font-weight:600}.modal-header button{color:#9aa893;padding:3px}.modal-body{padding:25px;overflow:auto}.modal-body h3{font-size:17px;line-height:1.8;margin:10px 0 15px;font-weight:550}.modal-body .answer-text{font-size:12px}.modal-footer{border-top:1px solid var(--line);padding:16px 25px;display:flex;justify-content:flex-end;gap:10px}.form-label{display:block;font-size:11px;color:#7c9176;margin:0 0 9px}.form-input{width:100%;padding:11px 12px;outline-color:#9ac3a1;border:1px solid #dfe8dc;border-radius:6px;background:#fcfdfb;font-size:12px;margin-bottom:18px}.form-textarea{min-height:155px;resize:vertical;line-height:1.9}.modal-description{font-size:11px;color:#97a68f;line-height:1.9;margin-bottom:20px}.error-text{font-size:11px;color:#ae6b5a;line-height:1.8;margin:0 0 12px}.crop-dialog{width:min(1000px,94vw)}.crop-help{font-size:11px;color:#8d9d85;margin-bottom:13px;line-height:1.8}.crop-stage{position:relative;line-height:0;background:#e9eee5;touch-action:none}.crop-stage canvas{width:100%;height:auto;cursor:crosshair;display:block}.crop-selection{position:absolute;border:2px solid #38b995;background:#38b99522;pointer-events:none;box-shadow:0 0 0 1px #fff8}.crop-actions{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:17px}.lightbox{width:min(1100px,94vw)}.lightbox .modal-body{text-align:center;background:#f2f5ee}.lightbox img{max-width:100%;max-height:70vh;object-fit:contain}.pagination{display:flex;align-items:center;justify-content:center;gap:17px;padding-top:25px;color:#9aa98f;font-size:11px}.mobile-menu{display:none}.boot{height:100vh;display:flex;gap:10px;align-items:center;justify-content:center;color:#879780;font-size:12px}.spinner{display:inline-block;width:15px;height:15px;border:2px solid #c7d9ca;border-top-color:#267c69;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.error-page{margin:80px auto;text-align:center;max-width:440px;padding:30px}.error-page h1{font-size:22px;margin-bottom:15px}.error-page p{line-height:2;color:#8a9b83;margin-bottom:24px}.embed .shell{display:block}.embed .sidebar,.embed .topbar{display:none}.embed .main{width:100%}.embed .page{padding:26px;max-width:1100px}.embed .home-intro h1{font-size:27px}.embed .chat-page{min-height:100vh}.embed .local-note{display:none}@media(min-width:1500px){.page{padding-top:54px}.home-intro h1{font-size:36px}.home-intro p{font-size:13px}.composer{margin-top:34px;padding:22px}.composer textarea{min-height:77px}.quick-tools{margin:40px 0}.quick-card{padding:22px}.faq-item{padding:18px 0}.page-footer{margin-top:36px}}@media(max-width:1150px){.shell{grid-template-columns:208px minmax(0,1fr)}.sidebar{width:208px;padding-left:15px;padding-right:15px}.page{padding-left:30px;padding-right:30px}.topbar{padding:0 30px}.knowledge-layout{grid-template-columns:minmax(0,1fr) 220px}.quick-card{padding:16px 12px;gap:9px}.quick-card p{font-size:9px}.quick-icon{width:31px;height:34px}.quick-card>.arrow{display:none}.home-intro h1{font-size:29px}.faq-item .tag{display:none}}@media(max-width:900px){.knowledge-layout{grid-template-columns:1fr}.library-status{display:none}.ocr-grid{grid-template-columns:1fr}.entry-grid{grid-template-columns:1fr}.quick-tools{gap:9px}.quick-card{display:block}.quick-card h3{margin:12px 0 0}.quick-card p{white-space:normal;line-height:1.8}.top-actions{gap:15px}.top-actions .text-button{display:none}}@media(max-width:650px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:transform .2s;box-shadow:20px 0 80px #234b3211}.sidebar.open{transform:translateX(0)}.main{width:100%}.topbar{height:62px;padding:0 20px}.mobile-menu{display:block;padding:0;color:#6f8b75}.breadcrumb{gap:8px}.breadcrumb>svg{display:none}.page{padding:29px 20px 24px}.page-home{padding-top:36px}.home-intro h1{font-size:26px}.home-intro p{font-size:11px}.composer{padding:16px;margin-top:23px}.composer textarea{font-size:12px;min-height:76px}.tool-button{font-size:10px;gap:4px}.composer-tools{gap:11px}.shortcut{display:none}.send-btn{padding:9px 12px}.suggestions{justify-content:flex-start;font-size:9px;gap:6px}.suggestions>span{width:100%;margin-bottom:3px}.suggestions button{font-size:9px;max-width:100%}.quick-tools{margin:27px 0;gap:8px}.quick-card{padding:13px 10px}.quick-card h3{font-size:11px}.quick-card p{font-size:9px}.faq-card{padding:0 13px}.faq-item{font-size:11px}.page-footer{font-size:8px;gap:5px;margin-top:25px}.page-title{align-items:flex-start}.page-title h1{font-size:22px}.page-title p{font-size:10px}.page-title .primary{font-size:10px;padding:9px 10px}.panel{padding:19px}.import-area{padding:18px;gap:10px;flex-wrap:wrap}.import-area .quick-icon{display:none}.import-area button{margin-left:0;margin-top:5px}.toolbar{flex-wrap:wrap}.search-field{max-width:none;flex-basis:100%}.category-tabs{gap:3px}.category-tabs button{font-size:10px;padding:7px 9px}.chat-page{min-height:calc(100vh - 62px)}.user-message{font-size:12px;max-width:90%}.assistant-message{gap:9px}.assistant-icon{width:26px;height:26px}.answer-text{font-size:12px}.chat-composer{padding-top:15px}.live-status{font-size:10px}.modal-header,.modal-body{padding:20px}.modal-footer{padding:15px 20px}.modal-header h2{font-size:16px}.crop-actions{flex-wrap:wrap}.embed .page{padding:24px 18px}.embed .home-intro h1{font-size:25px}}@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
:root .embed-nav{display:flex;gap:8px;padding:12px 22px;border-bottom:1px solid var(--line);background:#fcfdfb;position:sticky;top:0;z-index:10}.embed-nav button{display:flex;gap:7px;align-items:center;padding:8px 12px;color:#8a9d85;border-radius:6px;font-size:11px}.embed-nav button svg{width:15px;height:15px}.embed-nav button.active{background:#e9f3e9;color:var(--green)}.embed .chat-page{min-height:calc(100vh - 58px)}.embed .quick-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
:root .brand-sub{font-size:8px;letter-spacing:.6px;white-space:nowrap}
.nav-backdrop{display:none}@media(max-width:650px){.sidebar.open+.nav-backdrop{display:block;position:fixed;inset:0 0 0 208px;background:#1e3a3044;z-index:15;cursor:default}}
/* Appearance and account controls */
.sidebar{overflow-y:auto;scrollbar-width:thin}
.sidebar-footer{border-top:1px solid var(--line);padding-top:9px;margin-top:14px;flex-shrink:0}
.theme-toggle,.admin-login{width:100%;display:flex;align-items:center;gap:11px;text-align:left;padding:12px 13px;border-radius:7px;font-size:12px;color:#74816f}
.theme-toggle:hover,.admin-login:hover{background:#f1f5ef}
.theme-toggle svg{width:18px;height:18px;color:#bf9b36}
.admin-login svg{width:18px;height:18px}
.admin-login .admin-badge{margin-left:auto;font-size:9px;padding:3px 6px;border-radius:4px;background:#e8f2e7;color:#4d8a57}
.embed-theme-toggle{margin-left:auto!important;flex-shrink:0}
.embed-theme-toggle svg{color:#c39d36}
.admin-page{max-width:1040px;min-height:calc(100vh - 76px);display:flex;align-items:flex-start;justify-content:center;padding-top:54px;padding-bottom:60px}
.admin-card{width:100%;max-width:470px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:33px;box-shadow:var(--shadow)}
.auth-icon{width:48px;height:48px;border-radius:13px;background:#e9f4ee;color:var(--green);display:grid;place-items:center;margin-bottom:23px}
.auth-icon svg{width:25px;height:25px}
.auth-heading h1,.admin-card h1{font-size:24px;line-height:1.5;font-weight:600;letter-spacing:-.4px;color:#2e4b3c}
.auth-intro,.auth-heading p{font-size:12px;line-height:1.9;color:#8c9c88;margin-top:10px;margin-bottom:24px}
.auth-form{margin-top:22px}
.auth-form .form-input{font-size:13px;min-height:43px}
.auth-form .primary{min-height:43px;font-size:13px}
.password-hint{font-size:10px;line-height:1.9;color:#94a18d;margin:-7px 0 18px}
.auth-status{padding:16px 0;font-size:12px;line-height:1.9;color:#8c9f85}
.auth-account{display:flex;gap:12px;align-items:center;margin:24px 0;padding:17px;background:#f2f7ef;border:1px solid var(--line);border-radius:8px;font-size:13px}
.auth-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
.auth-actions .primary,.auth-actions .secondary{flex:1;min-width:145px}
.ai-settings{max-width:800px}
.ai-form{margin-top:20px}
.settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
.settings-grid .wide{grid-column:1/-1}
.form-switch{display:flex;align-items:center;gap:10px;padding:15px 17px;border:1px solid var(--line);background:#f6faf3;border-radius:8px;margin-bottom:24px;line-height:1.8;font-size:12px}
.form-switch input{width:17px;height:17px;accent-color:var(--green);cursor:pointer;flex-shrink:0}
.connection-status{font-size:11px;line-height:1.9;color:#7d9575;margin-top:16px;white-space:pre-wrap;overflow-wrap:anywhere}
.ai-settings .description{font-size:11px;color:#92a18c;line-height:1.9;margin-bottom:18px}
.ai-settings .form-textarea{min-height:110px}
.settings-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:22px}
.settings-heading h2{display:flex;align-items:center;gap:9px;font-size:16px;font-weight:600;color:#355549;line-height:1.6}
.settings-heading h2 svg{width:19px;height:19px;color:var(--green)}
.settings-heading p{font-size:12px;line-height:1.9;color:#84978a;margin-top:8px;max-width:620px}
.settings-field{min-width:0;margin-bottom:8px}
.settings-field .password-hint{margin-top:-5px;margin-bottom:20px}
.provider-presets{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0 12px}
.provider-preset{display:inline-flex;align-items:center;justify-content:center;min-height:33px;padding:7px 12px;border:1px solid #dce6df;border-radius:7px;background:#fff;color:#6b8376;font-size:11px;line-height:1.5}
.provider-preset:hover{border-color:#8bbdaf;background:#f2f8f5;color:#187d70}
.provider-preset.active{border-color:#82b8a8;background:#eaf4ef;color:#187d70;font-weight:600}
.provider-hint{font-size:11px;line-height:1.9;color:#84978a;margin:9px 0 23px;overflow-wrap:anywhere}
.settings-field select.form-input{cursor:pointer;padding-right:30px}
.settings-field select.form-input:focus{outline:2px solid #8cc5b9;outline-offset:2px}
.settings-actions{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0 18px}
.ai-status{margin-top:4px}
.connection-status[data-state="error"]{color:#b96752}
.ai-fallback{font-size:11px;line-height:1.8;color:#9a855d;margin:10px 0 12px}
.retrieval-notice{display:flex;align-items:flex-start;gap:8px;margin:10px 0 14px;padding:11px 13px;border:1px solid #cfe2db;border-radius:8px;background:#edf6f3;color:#3d7165;font-size:11px;line-height:1.9;overflow-wrap:anywhere}
.retrieval-notice svg{width:15px;height:15px;margin-top:3px}
.retrieval-notice span{white-space:pre-wrap;min-width:0}
.retrieval-options{display:grid;gap:8px;margin:10px 0 18px}
.retrieval-options>p{font-size:11px;color:#71877e;line-height:1.8;margin-bottom:2px}
.retrieval-option{display:flex;align-items:center;gap:11px;width:100%;padding:12px 13px;text-align:left;border:1px solid #ccded7;border-radius:8px;background:#fff;transition:background .15s,border-color .15s}
.retrieval-option:hover{background:#f0f8f4;border-color:#80b3a4}
.retrieval-code{flex-shrink:0;align-self:flex-start;max-width:35%;padding:3px 7px;border-radius:5px;background:#e8f4ee;color:#187d70;font:600 12px/1.6 Consolas,monospace;overflow-wrap:anywhere}
.retrieval-option-body{display:grid;gap:3px;min-width:0;flex:1;overflow-wrap:anywhere}
.retrieval-option-question{font-size:12px;line-height:1.7;color:#36594d}
.retrieval-option-reason{font-size:10px;line-height:1.8;color:#7c8f86}
.retrieval-option>svg{width:15px;height:15px;color:#729b8c}
@media(max-height:780px){.sidebar .local-note{display:none}.sidebar .brand{margin-bottom:23px}.sidebar .new-chat{margin-bottom:20px}.sidebar .sidebar-rule{margin:17px 12px}.sidebar .sidebar-spacer{min-height:12px}}
@media(max-width:650px){.admin-page{padding-top:30px;min-height:calc(100vh - 62px)}.admin-card{padding:24px}.auth-heading h1,.admin-card h1{font-size:22px}.settings-grid{grid-template-columns:1fr}.embed-nav button{padding:8px 9px}.embed-theme-toggle{font-size:10px!important}}

/* Navy surfaces, turquoise actions and clear text throughout the default theme. */
:root[data-theme="dark"]{color-scheme:dark;color:#dce6f1;background:#07111f;--green:#29c8b3;--green-dark:#22b09d;--light:#103431;--muted:#94a3b8;--line:#253246;--shadow:0 8px 30px #0002;scrollbar-color:#35455c #0b1524}
[data-theme="dark"] body{background:#07111f}
[data-theme="dark"] .sidebar{background:#0f1729;border-right-color:#253246}
[data-theme="dark"] .brand-name{color:#f1f5f9}
[data-theme="dark"] .brand-sub{color:#72849d}
[data-theme="dark"] .brand-mark,[data-theme="dark"] .assistant-icon{background:#0d9e8e;color:#fff}
[data-theme="dark"] .new-chat{background:#102c31;border-color:#254c4f;color:#40d4c2}
[data-theme="dark"] .nav-label{color:#667c96}
[data-theme="dark"] .nav-btn{color:#a4b4c9}
[data-theme="dark"] .nav-btn:hover{background:#17243a}
[data-theme="dark"] .nav-btn.active{background:#102f36;color:#35d4c0}
[data-theme="dark"] .nav-btn.active:after{background:#2fcab5}
[data-theme="dark"] .nav-btn small{background:#1d3044;color:#8fbbbf}
[data-theme="dark"] .recent-item{color:#8194ae}
[data-theme="dark"] .recent-item svg{color:#5e7694}
[data-theme="dark"] .local-note{background:#121f30;border:1px solid #203046}
[data-theme="dark"] .local-note .note-icon{color:#a0b8ba}
[data-theme="dark"] .local-note p{color:#71869f}
[data-theme="dark"] .avatar{background:#1b2d40;border-color:#2a4056;color:#87b6b2}
[data-theme="dark"] .workspace strong{color:#c4d3e3}
[data-theme="dark"] .workspace small,[data-theme="dark"] .workspace button{color:#7b90a9}
[data-theme="dark"] .topbar{background:#172437;border-color:#26354b}
[data-theme="dark"] .breadcrumb{color:#7f94ad}
[data-theme="dark"] .breadcrumb strong{color:#d2deeb}
[data-theme="dark"] .live-status{color:#96acbd}
[data-theme="dark"] .dot{background:#27c0a9}
[data-theme="dark"] .text-button{color:#99adbf}
[data-theme="dark"] .eyebrow{color:#6daea7}
[data-theme="dark"] .home-intro h1,[data-theme="dark"] .page-title h1{color:#e5edf7}
[data-theme="dark"] .home-intro h1 span{color:#32cfba}
[data-theme="dark"] .home-intro p,[data-theme="dark"] .page-title p{color:#8a9db4}
[data-theme="dark"] .composer{background:#101d2f;border-color:#2a3a51;box-shadow:0 8px 28px #0001}
[data-theme="dark"] .composer:focus-within{border-color:#2a918c;box-shadow:0 0 0 3px #1c82751c}
[data-theme="dark"] .composer textarea{color:#dce6f4}
[data-theme="dark"] .composer textarea::placeholder{color:#74879f}
[data-theme="dark"] .tool-button{color:#93a6bd}
[data-theme="dark"] .tool-button:hover{color:#3bd5bf}
[data-theme="dark"] .shortcut{color:#5f7691}
[data-theme="dark"] .send-btn,[data-theme="dark"] .primary{background:#139b8d;color:#f3fffd;box-shadow:none}
[data-theme="dark"] .send-btn:hover,[data-theme="dark"] .primary:hover{background:#11ad99}
[data-theme="dark"] .suggestions{color:#6d839e}
[data-theme="dark"] .suggestions button{background:#101e30;border-color:#22354a;color:#92a9bd}
[data-theme="dark"] .suggestions button:hover{background:#143137;color:#54d3c3}
[data-theme="dark"] .quick-card,[data-theme="dark"] .faq-card,[data-theme="dark"] .panel,[data-theme="dark"] .entry-card,[data-theme="dark"] .table-wrap,[data-theme="dark"] .import-report{background:#101d2e;border-color:#253348}
[data-theme="dark"] .quick-card:hover,[data-theme="dark"] .entry-card:hover{border-color:#355267;box-shadow:0 7px 25px #0002}
[data-theme="dark"] .quick-icon{background:#0d3433;color:#32bfa9}
[data-theme="dark"] .quick-icon.blue{background:#162e48;color:#6ca8ed}
[data-theme="dark"] .quick-icon.gold{background:#332d24;color:#d3b06a}
[data-theme="dark"] .quick-card h3{color:#d0ddea}
[data-theme="dark"] .quick-card p{color:#7d93ac}
[data-theme="dark"] .quick-card>.arrow,[data-theme="dark"] .faq-item>svg{color:#607a95}
[data-theme="dark"] .section-heading h2{color:#c3d2e4}
[data-theme="dark"] .section-heading h2 svg,[data-theme="dark"] .section-heading button{color:#7993ad}
[data-theme="dark"] .faq-item{border-color:#203044}
[data-theme="dark"] .faq-item:hover .faq-title{color:#4ad3c0}
[data-theme="dark"] .faq-index{background:#1a2b3b;color:#91a9b4}
[data-theme="dark"] .faq-item .faq-title{color:#adbed0}
[data-theme="dark"] .tag{background:#19293b;border-color:#2c3e53;color:#94aabd}
[data-theme="dark"] .library-status{background:linear-gradient(145deg,#112b32,#102331);border-color:#24434b}
[data-theme="dark"] .library-status-title{color:#9bc0c0}
[data-theme="dark"] .library-status-title svg{color:#3ab99e}
[data-theme="dark"] .stat strong{color:#47cdb4}
[data-theme="dark"] .stat span,[data-theme="dark"] .library-file{color:#7d9baf}
[data-theme="dark"] .library-files{border-color:#28414e}
[data-theme="dark"] .library-status .text-button{color:#6fb6ae}
[data-theme="dark"] .page-footer{color:#5e7791}
[data-theme="dark"] .secondary{background:#19273b;border-color:#33435a;color:#b3c2d5}
[data-theme="dark"] .secondary:hover{background:#23354b}
[data-theme="dark"] .danger{background:#3a2026;border-color:#6b3843;color:#f1a5ac}
[data-theme="dark"] .panel h2{color:#d4e0ee}
[data-theme="dark"] .panel p.description{color:#8a9eb5}
[data-theme="dark"] .dropzone{background:#0e1a2b;border-color:#35506a}
[data-theme="dark"] .dropzone.dragover{background:#113a3c;border-color:#2dc9b4}
[data-theme="dark"] .dropzone>.drop-icon{background:#19333d;color:#72b7b5}
[data-theme="dark"] .dropzone strong{color:#adbfce}
[data-theme="dark"] .dropzone p{color:#7b91a9}
[data-theme="dark"] .image-preview{background:#0b1523}
[data-theme="dark"] .image-preview button{background:#18283aee;color:#d1dce8;border:1px solid #3b5065}
[data-theme="dark"] .image-meta,[data-theme="dark"] .ocr-tips{color:#7d94ad}
[data-theme="dark"] .empty-result{color:#8ba0b9}
[data-theme="dark"] .empty-result svg{color:#46627f}
[data-theme="dark"] .code-chip{background:#12363b;border-color:#23595d;color:#46d9c5}
[data-theme="dark"] .recognized-text{background:#0d192a;border-color:#2c4055;color:#bcd0e2}
[data-theme="dark"] .subtle-label{color:#859bb5}
[data-theme="dark"] .notice{background:#302c20;border-color:#4a4630;color:#c5bc96}
[data-theme="dark"] .search-field{background:#111e30;border-color:#2e4158}
[data-theme="dark"] .search-field input{color:#cbd8e7}
[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:#697f9a}
[data-theme="dark"] .search-field svg{color:#7189a5}
[data-theme="dark"] .category-tabs button{color:#90a3ba}
[data-theme="dark"] .category-tabs button.active{background:#13343c;border-color:#255561;color:#4fd1c0}
[data-theme="dark"] .entry-card h3{color:#cfdeee}
[data-theme="dark"] .entry-card p{color:#849bb5}
[data-theme="dark"] .entry-card .entry-source,[data-theme="dark"] .entry-card-top>svg{color:#68829d}
[data-theme="dark"] .empty{color:#849ab4}
[data-theme="dark"] .manager-tabs button{color:#839bb4}
[data-theme="dark"] .manager-tabs button.active{color:#39cfb9}
[data-theme="dark"] .import-area{background:#10262f;border-color:#2b555b}
[data-theme="dark"] .import-area .quick-icon{background:#143b3d;color:#46cdb8}
[data-theme="dark"] .import-area h3{color:#c6d9e4}
[data-theme="dark"] .import-area p{color:#849faf}
[data-theme="dark"] .data-table th{background:#152438;color:#8ca3bd;border-color:#2c3d54}
[data-theme="dark"] .data-table td{border-color:#24344a;color:#9dafc4}
[data-theme="dark"] .data-table .filename{color:#c0d0e2}
[data-theme="dark"] .filename svg,[data-theme="dark"] .table-actions button{color:#54c2b5}
[data-theme="dark"] .table-actions .delete{color:#d99397}
[data-theme="dark"] .import-report{color:#79c9b4}
[data-theme="dark"] .user-message{background:#133a40;color:#c5eee7}
[data-theme="dark"] .answer-heading{color:#c4d6e7}
[data-theme="dark"] .answer-text{color:#b3c3d6}
[data-theme="dark"] .answer-images button{background:#142336;border-color:#2c4055}
[data-theme="dark"] .source-button{background:#142b37;border-color:#294354;color:#8db8bb}
[data-theme="dark"] .answer-actions button{color:#829cb6}
[data-theme="dark"] .chat-composer{background:linear-gradient(#07111f00,#07111f 18px)}
[data-theme="dark"] .typing i{background:#4db7ad}
[data-theme="dark"] #toast{background:#1e4b48;border:1px solid #347970;color:#e2f6f0}
[data-theme="dark"] dialog{background:#111e30;border-color:#32435c;box-shadow:0 20px 100px #0008}
[data-theme="dark"] dialog::backdrop{background:#020813b3}
[data-theme="dark"] .modal-header h2{color:#dce7f2}
[data-theme="dark"] .modal-header button{color:#8ba1bc}
[data-theme="dark"] .form-label{color:#9bafc7}
[data-theme="dark"] .form-input{background:#0b182a;border-color:#2f425c;color:#d5e2ef}
[data-theme="dark"] .modal-description{color:#91a5be}
[data-theme="dark"] .error-text{color:#f39b96}
[data-theme="dark"] .crop-help{color:#9dafc3}
[data-theme="dark"] .crop-stage,[data-theme="dark"] .lightbox .modal-body{background:#09121e}
[data-theme="dark"] .pagination{color:#91a8c0}
[data-theme="dark"] .mobile-menu{color:#9bb2ca}
[data-theme="dark"] .boot,[data-theme="dark"] .error-page p{color:#8fa6c0}
[data-theme="dark"] .spinner{border-color:#275253;border-top-color:#39cfb9}
[data-theme="dark"] .embed-nav{background:#0f1c2e;border-color:#253b51}
[data-theme="dark"] .embed-nav button{color:#8fa8c1}
[data-theme="dark"] .embed-nav button.active{background:#12343b;color:#36cdb8}
[data-theme="dark"] .theme-toggle,[data-theme="dark"] .admin-login{color:#b0bfd2}
[data-theme="dark"] .theme-toggle:hover,[data-theme="dark"] .admin-login:hover{background:#19283d}
[data-theme="dark"] .theme-toggle svg,[data-theme="dark"] .embed-theme-toggle svg{color:#edb84c}
[data-theme="dark"] .admin-login .admin-badge{background:#123b3c;color:#53cdbc}
[data-theme="dark"] .admin-card{background:#101d2f;border-color:#2b3c53}
[data-theme="dark"] .auth-icon{background:#12383d;color:#3ad1bc}
[data-theme="dark"] .auth-heading h1,[data-theme="dark"] .admin-card h1{color:#e0eaf5}
[data-theme="dark"] .auth-intro,[data-theme="dark"] .auth-heading p,[data-theme="dark"] .password-hint{color:#8ea4bd}
[data-theme="dark"] .auth-status{color:#9ab2c5}
[data-theme="dark"] .auth-account{background:#142b38;border-color:#2b4656;color:#b9d6df}
[data-theme="dark"] .form-switch{background:#122d36;border-color:#2b4757;color:#b8cddc}
[data-theme="dark"] .connection-status{color:#77cdbb}
[data-theme="dark"] .ai-settings .description{color:#8ea6bf}
[data-theme="dark"] .settings-heading h2{color:#d8e6f3}
[data-theme="dark"] .settings-heading p{color:#8ea6bf}
[data-theme="dark"] .provider-preset{background:#101e30;border-color:#304359;color:#a1b5cc}
[data-theme="dark"] .provider-preset:hover{background:#153239;border-color:#38716e;color:#52d4c1}
[data-theme="dark"] .provider-preset.active{background:#12383c;border-color:#278f85;color:#52ddc7}
[data-theme="dark"] .provider-hint{color:#8ea6bf}
[data-theme="dark"] .connection-status[data-state="error"]{color:#f1a49b}
[data-theme="dark"] .ai-fallback{color:#c2ac7a}
[data-theme="dark"] .retrieval-notice{background:#102f36;border-color:#2b535d;color:#a3d5cf}
[data-theme="dark"] .retrieval-options>p{color:#9bb3c5}
[data-theme="dark"] .retrieval-option{background:#112332;border-color:#2c4859}
[data-theme="dark"] .retrieval-option:hover{background:#16333c;border-color:#3e8e84}
[data-theme="dark"] .retrieval-code{background:#123e40;color:#54ddc8}
[data-theme="dark"] .retrieval-option-question{color:#d0e1ed}
[data-theme="dark"] .retrieval-option-reason{color:#91aabd}
[data-theme="dark"] .retrieval-option>svg{color:#65b8af}
@media(max-width:650px){.settings-heading{flex-direction:column;gap:10px}.settings-actions{flex-direction:column}.settings-actions button{width:100%}.manager-tabs{gap:18px}.manager-tabs button{font-size:11px}}

/* Administrator drafting and locally recorded model usage. */
.manager-tabs{overflow-x:auto;gap:24px}.manager-tabs button{flex-shrink:0;white-space:nowrap}
.draft-intro{margin-bottom:22px}.draft-intro h2,.usage-heading h2{display:flex;align-items:center;gap:9px;font-size:16px;line-height:1.7;color:#355549;font-weight:600}
.draft-intro h2 svg,.usage-heading h2 svg{width:19px;height:19px;color:var(--green)}
.draft-intro p,.usage-heading p{font-size:12px;line-height:1.9;color:#71877d;margin-top:8px;max-width:800px}
.draft-setup-notice{display:flex;align-items:center;justify-content:space-between;gap:16px}.draft-setup-notice button{flex-shrink:0}
.ai-draft-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);gap:20px;align-items:start}
.draft-conversation,.draft-review{background:#fff;border:1px solid var(--line);border-radius:11px;padding:22px;min-width:0}
.draft-conversation h3,.draft-review h3{font-size:13px;font-weight:600;color:#36594d;line-height:1.8}
.draft-history{display:grid;gap:13px;max-height:380px;overflow-y:auto;margin:18px 0 24px;padding-right:3px;scrollbar-width:thin}
.draft-example,.draft-privacy,.draft-empty p{font-size:11px;line-height:1.9;color:#7d9188}
.draft-example{padding:17px;background:#f4f8f5;border-radius:8px}
.draft-message{padding:13px 14px;border:1px solid #e1eae5;border-radius:8px;background:#f7faf8;overflow-wrap:anywhere}
.draft-message.from-user{background:#edf6f1;border-color:#d3e6dc}
.draft-message>span{display:block;font-size:10px;font-weight:600;color:#548474;margin-bottom:7px}
.draft-message p{font-size:11px;line-height:1.9;white-space:pre-wrap;color:#547063;margin-bottom:7px}.draft-message p:last-child{margin-bottom:0}
.draft-working{display:flex;align-items:center;gap:8px;font-size:11px;color:#6f8d7d;padding:8px 0}
.draft-conversation .form-textarea{min-height:145px}.draft-privacy{font-size:10px;margin-top:16px}
.draft-review-heading{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:23px}
.draft-review .form-input{line-height:1.9;resize:vertical}.draft-review .draft-answer{min-height:230px}
.draft-empty{min-height:310px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:16px;text-align:center}.draft-empty>svg{width:36px;height:36px;color:#a3bcb0}
.draft-status{font-size:12px;line-height:1.9;color:#6b8579;white-space:pre-wrap;overflow-wrap:anywhere;margin:17px 0}.draft-status.error{color:#b85e4d}.draft-status.success{color:#187d70}
.draft-bottom-actions{display:flex;gap:16px;align-items:center;justify-content:space-between}.draft-bottom-actions>span{font-size:10px;color:#84958b;line-height:1.9}
.ai-usage{margin-top:37px;border-top:1px solid var(--line);padding-top:29px}.usage-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:17px}.usage-heading button{flex-shrink:0}
.usage-range{display:flex;gap:7px;margin:16px 0}.usage-range button{font-size:11px;border:1px solid var(--line);border-radius:6px;padding:7px 13px;color:#72887d;background:#fff}.usage-range button.active{background:#eaf4ef;color:var(--green);border-color:#97c6b5;font-weight:600}
.usage-period,.usage-explanation{font-size:10px;line-height:1.9;color:#7e9287;margin:13px 0;overflow-wrap:anywhere}.usage-explanation{margin:16px 0 23px}
.usage-summary{margin:18px 0}.usage-summary h4{font-size:12px;font-weight:600;color:#466657;margin:0 0 10px}.usage-stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}
.usage-stat-grid>div{border:1px solid var(--line);border-radius:9px;background:#fff;padding:15px 14px;min-width:0}.usage-stat-grid span{display:block;font-size:10px;color:#799083}.usage-stat-grid strong{display:block;margin:10px 0 7px;font-size:22px;font-weight:650;color:#285b47;overflow-wrap:anywhere;line-height:1.4}.usage-stat-grid small{display:block;font-size:9px;color:#8ba093;line-height:1.8;overflow-wrap:anywhere}
.usage-breakdowns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.usage-breakdowns h3,.usage-recent-title{font-size:12px;color:#466657;font-weight:600;margin:0 0 11px}.usage-recent-title{margin-top:23px}
.usage-table th,.usage-table td{padding:12px 13px}.usage-table td small{display:block;font-size:9px;margin-top:4px;color:#819a8b;max-width:260px;overflow:hidden;text-overflow:ellipsis}.usage-table td:first-child{max-width:300px;overflow:hidden;text-overflow:ellipsis}.usage-empty{font-size:11px;line-height:1.9;padding:20px 0;color:#83988c}
.usage-result{font-size:10px}.usage-result.success{color:#26846c}.usage-result.error{color:#b85e4d}.usage-daily{font-size:11px;color:#708b7d;margin:20px 0}.usage-daily summary{cursor:pointer;padding:10px 0}.usage-daily .table-wrap{max-height:300px;overflow:auto}
[data-theme="dark"] .draft-intro h2,[data-theme="dark"] .usage-heading h2{color:#d8e6f3}
[data-theme="dark"] .draft-intro p,[data-theme="dark"] .usage-heading p,[data-theme="dark"] .draft-example,[data-theme="dark"] .draft-privacy,[data-theme="dark"] .draft-empty p,[data-theme="dark"] .usage-period,[data-theme="dark"] .usage-explanation{color:#91aabd}
[data-theme="dark"] .draft-conversation,[data-theme="dark"] .draft-review,[data-theme="dark"] .usage-stat-grid>div{background:#101e30;border-color:#293d54}
[data-theme="dark"] .draft-conversation h3,[data-theme="dark"] .draft-review h3,[data-theme="dark"] .usage-summary h4,[data-theme="dark"] .usage-breakdowns h3,[data-theme="dark"] .usage-recent-title{color:#c6dce9}
[data-theme="dark"] .draft-example{background:#142b38}
[data-theme="dark"] .draft-message{background:#142637;border-color:#2c4355}[data-theme="dark"] .draft-message.from-user{background:#12333b;border-color:#29515b}
[data-theme="dark"] .draft-message>span{color:#70cebd}[data-theme="dark"] .draft-message p{color:#bed1df}
[data-theme="dark"] .draft-working,[data-theme="dark"] .draft-status{color:#90b5c5}[data-theme="dark"] .draft-empty>svg{color:#42637d}
[data-theme="dark"] .draft-status.error,[data-theme="dark"] .usage-result.error{color:#f0a499}[data-theme="dark"] .draft-status.success,[data-theme="dark"] .usage-result.success{color:#64d4b8}
[data-theme="dark"] .draft-bottom-actions>span{color:#8ba6b9}
[data-theme="dark"] .usage-range button{background:#101e30;border-color:#304359;color:#a1b5cc}[data-theme="dark"] .usage-range button.active{background:#12383c;border-color:#278f85;color:#52ddc7}
[data-theme="dark"] .usage-stat-grid span{color:#94afc2}[data-theme="dark"] .usage-stat-grid strong{color:#7de0ca}[data-theme="dark"] .usage-stat-grid small,[data-theme="dark"] .usage-table td small{color:#8ba6bb}
[data-theme="dark"] .usage-empty,[data-theme="dark"] .usage-daily{color:#91aabd}
@media(max-width:1000px){.ai-draft-layout,.usage-breakdowns{grid-template-columns:1fr}.draft-history{max-height:280px}.draft-empty{min-height:180px}}
@media(max-width:650px){.manager-tabs{gap:17px}.draft-conversation,.draft-review{padding:18px}.draft-setup-notice,.draft-bottom-actions{align-items:flex-start;flex-direction:column}.usage-heading{gap:10px}.usage-heading h2{font-size:14px}.usage-heading p{font-size:10px}.usage-heading button{font-size:10px;padding:8px 10px}.usage-stat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.usage-stat-grid>div{padding:12px}.usage-stat-grid strong{font-size:21px}.usage-table th,.usage-table td{padding:11px}.ai-usage{margin-top:28px}.draft-bottom-actions .secondary{width:100%}}

/* Per-answer AI execution state and the exact knowledge text used as evidence. */
.answer-ai-status{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #d9e5df;border-left:3px solid #8ca99c;border-radius:8px;background:#f1f6f3;margin:10px 0 16px;overflow-wrap:anywhere}
.answer-ai-status>svg{width:17px;height:17px;margin-top:2px;color:#688a79}.answer-ai-status>div{min-width:0}
.answer-ai-status strong{display:block;font-size:11px;line-height:1.8;font-weight:600;color:#466859}.answer-ai-status p{font-size:10px;line-height:1.9;color:#768e80;margin-top:3px;white-space:pre-wrap}
.answer-ai-status.answered{background:#eaf7f0;border-color:#c8e3d6;border-left-color:#23866c}.answer-ai-status.answered strong,.answer-ai-status.answered>svg{color:#187d64}
.answer-ai-status.fallback{background:#faf5e9;border-color:#e8d9b8;border-left-color:#b89447}.answer-ai-status.fallback strong,.answer-ai-status.fallback>svg{color:#97743a}.answer-ai-status.fallback p{color:#9c8660}
.answer-sources{margin-top:21px}.answer-sources>h3{font-size:10px;font-weight:600;line-height:1.8;color:#829486;margin:0 0 9px}
.answer-source{border:1px solid #dce7e0;border-radius:8px;background:#fbfdfb;margin-top:8px;overflow:hidden}
.answer-source>summary{display:flex;align-items:center;gap:10px;list-style:none;cursor:pointer;padding:12px 13px}.answer-source>summary::-webkit-details-marker{display:none}
.answer-source>summary>svg{width:15px;height:15px;color:#8da797;margin-left:auto}.answer-source[open]>summary>svg{transform:rotate(90deg)}
.source-number{display:grid;place-items:center;flex-shrink:0;width:23px;height:23px;border-radius:6px;background:#e7f1eb;color:#5d8873;font-size:10px;font-weight:600}
.source-caption{min-width:0;overflow-wrap:anywhere}.source-caption strong{display:block;font-size:11px;line-height:1.8;font-weight:550;color:#4b6b59}.source-caption small{display:block;font-size:9px;line-height:1.8;color:#8a9d8c;margin-top:2px}
.source-original{border-top:1px solid #e2ebe5;padding:15px;background:#f4f8f4}.source-original-label{font-size:9px;color:#839985;line-height:1.8;margin-bottom:10px}.source-original .answer-text{font-size:11px}.source-original>.text-button{font-size:10px;margin-top:14px}
.library-search-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;font-size:11px;color:#7b9184}.library-search-meta .text-button{font-size:11px;color:var(--green)}
.library-search-loading{display:flex;align-items:center;justify-content:center;gap:9px}
.entry-card-main{width:100%;display:flex;flex-direction:column;gap:12px;padding:0;text-align:left;min-width:0}.entry-card-main .entry-card-top{width:100%}
.entry-card-bottom{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:auto;padding-top:6px;min-width:0;flex-wrap:wrap}.entry-card-bottom .entry-source{padding-top:0;min-width:0;max-width:100%;margin:0;flex:1}
.entry-ask-button{display:flex;align-items:center;gap:5px;font-size:10px;line-height:1.8;color:#24836a;flex-shrink:0;padding:5px 8px;border:1px solid #d2e4d9;border-radius:5px;background:#f1f8f3}.entry-ask-button svg{width:13px;height:13px}.entry-ask-button:hover{background:#e6f2e9;border-color:#9fc5ae}
[data-theme="dark"] .answer-ai-status{background:#142735;border-color:#2b4557;border-left-color:#5c8498}[data-theme="dark"] .answer-ai-status>svg{color:#8fb5c4}[data-theme="dark"] .answer-ai-status strong{color:#bed7e4}[data-theme="dark"] .answer-ai-status p{color:#93adbf}
[data-theme="dark"] .answer-ai-status.answered{background:#11343a;border-color:#28555c;border-left-color:#32b9a5}[data-theme="dark"] .answer-ai-status.answered strong,[data-theme="dark"] .answer-ai-status.answered>svg{color:#63dcc7}
[data-theme="dark"] .answer-ai-status.fallback{background:#302c21;border-color:#504634;border-left-color:#c7a95e}[data-theme="dark"] .answer-ai-status.fallback strong,[data-theme="dark"] .answer-ai-status.fallback>svg{color:#dcc080}[data-theme="dark"] .answer-ai-status.fallback p{color:#bfae8b}
[data-theme="dark"] .answer-sources>h3{color:#8ca7bc}[data-theme="dark"] .answer-source{background:#111f30;border-color:#2d4257}[data-theme="dark"] .answer-source>summary>svg{color:#88a9b6}
[data-theme="dark"] .source-number{background:#193a42;color:#77c9bd}[data-theme="dark"] .source-caption strong{color:#bbd2e3}[data-theme="dark"] .source-caption small{color:#8ba3b8}[data-theme="dark"] .source-original{background:#0e1d2c;border-color:#294054}[data-theme="dark"] .source-original-label{color:#8faabd}
[data-theme="dark"] .library-search-meta{color:#90a9bd}[data-theme="dark"] .entry-ask-button{background:#12353b;border-color:#2c585f;color:#65ccba}[data-theme="dark"] .entry-ask-button:hover{background:#17444a;border-color:#3b817f}
@media(max-width:650px){.answer-ai-status{padding:10px 11px;gap:8px}.answer-source>summary{padding:11px;gap:8px}.source-original{padding:12px}.entry-card-bottom{gap:10px}.entry-card-bottom .entry-source{flex-basis:100%}.entry-ask-button{font-size:10px}.library-search-meta{font-size:10px}.library-search-meta .text-button{font-size:10px}}
.composer.dragover,.chat-messages.dragover{outline:2px dashed var(--green);outline-offset:5px;background:#eef8f1;border-radius:12px}
.composer-attachment{display:flex;align-items:center;gap:12px;border:1px solid #dce8df;background:#f4f9f5;border-radius:9px;padding:10px;margin-bottom:11px;min-width:0}
.attachment-thumb{flex-shrink:0;width:70px;height:64px;border:1px solid #d4e3d9;border-radius:6px;background:#fff;overflow:hidden;padding:0}.attachment-thumb img{display:block;width:100%;height:100%;object-fit:contain}
.attachment-caption{min-width:0;display:flex;flex-direction:column;gap:5px;flex:1;line-height:1.6}.attachment-caption strong{font-size:11px;font-weight:550;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#55735e}.attachment-caption span,.attachment-caption small{font-size:10px;color:#8a9c90}
.attachment-remove{display:grid;place-items:center;align-self:flex-start;padding:5px;color:#90a195;border-radius:5px}.attachment-remove:hover{background:#e5efe7}.attachment-remove svg{width:16px;height:16px}
.attachment-notice{display:flex;align-items:flex-start;gap:6px;font-size:10px;line-height:1.8;color:#879a8e;margin:0 0 10px}.attachment-notice svg{width:13px;height:13px;flex-shrink:0;margin-top:3px}
.chat-image{display:block;padding:0;max-width:100%;border:1px solid #c9e0d1;border-radius:8px;overflow:hidden;background:#fff;line-height:0}.chat-image img{display:block;max-width:100%;width:auto;max-height:240px;object-fit:contain;margin:auto}.chat-image+.user-message-text{margin-top:10px}
.user-message{white-space:normal}.user-message-text{white-space:pre-wrap;overflow-wrap:anywhere}.image-question-label{display:block;font-size:10px;color:#839d8b;margin-top:7px}.past-image{display:flex;gap:7px;align-items:center;font-size:10px;color:#839d8b;line-height:1.8}.past-image svg{width:16px;height:16px;flex-shrink:0}.past-image+.user-message-text{margin-top:8px}
.chat-welcome{display:flex;flex:1;min-height:220px;align-items:center;justify-content:center;flex-direction:column;text-align:center;color:#91a196;gap:16px}.chat-welcome>svg{width:35px;height:35px;color:#80ab93}.chat-welcome h1{font-size:21px;color:#4d6f5a;font-weight:550}.chat-welcome p{font-size:12px;line-height:1.9}
.image-recognition{border:1px solid #dce6df;background:#f6faf6;border-radius:8px;padding:13px 15px;margin-bottom:13px}.recognition-status{display:flex;align-items:flex-start;gap:9px}.recognition-status>svg{width:17px;height:17px;flex-shrink:0;margin-top:1px;color:#5f957a}.recognition-status strong{display:block;font-size:11px;line-height:1.8;font-weight:550;color:#527562}.recognition-status p,.recognition-status small,.recognition-empty{font-size:10px;line-height:1.9;color:#859b8c;margin-top:4px}.recognition-status small{display:block}
.recognition-codes{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin-top:12px}.recognition-codes>span{font-size:10px;color:#8ba18f;margin-right:3px}.recognition-codes .code-chip{font-size:11px;padding:4px 8px}
.recognition-details{border-top:1px solid #e0e8e0;margin-top:12px;padding-top:10px}.recognition-details>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;cursor:pointer;list-style:none;font-size:10px;color:#7a9481;line-height:1.8}.recognition-details>summary::-webkit-details-marker{display:none}.recognition-details>summary svg{width:13px;height:13px}.recognition-details[open]>summary svg{transform:rotate(90deg)}.recognition-details .recognized-text{min-height:100px;max-height:240px;margin:0}.recognition-details .text-button{font-size:10px;margin-top:10px;color:var(--green)}
.vision-settings{padding:17px;border:1px solid #dce7df;background:#f5f9f5;border-radius:8px;margin:4px 0 23px}.vision-settings-heading{display:flex;align-items:center;gap:7px;font-size:12px;color:#5b7964;margin-bottom:15px;font-weight:550}.vision-settings-heading>svg{width:16px;height:16px}.vision-settings-heading .tag{margin-left:auto;font-weight:400}.vision-settings .form-input{margin-bottom:8px}.vision-privacy{font-size:10px;line-height:1.9;color:#8a9e8d;margin-top:10px}
[data-theme="dark"] .composer.dragover,[data-theme="dark"] .chat-messages.dragover{background:#102e36}[data-theme="dark"] .composer-attachment{background:#102b35;border-color:#2c4a59}[data-theme="dark"] .attachment-thumb,[data-theme="dark"] .chat-image{background:#0c1827;border-color:#315963}[data-theme="dark"] .attachment-caption strong{color:#b4d8cf}[data-theme="dark"] .attachment-caption span,[data-theme="dark"] .attachment-caption small,[data-theme="dark"] .attachment-notice{color:#89a7b4}[data-theme="dark"] .attachment-remove{color:#87a6b6}[data-theme="dark"] .attachment-remove:hover{background:#1b4149}
[data-theme="dark"] .image-question-label,[data-theme="dark"] .past-image{color:#8bb8b5}[data-theme="dark"] .chat-welcome h1{color:#c0d6e5}[data-theme="dark"] .chat-welcome{color:#8fa9be}[data-theme="dark"] .chat-welcome>svg{color:#6dbbb0}
[data-theme="dark"] .image-recognition{background:#102832;border-color:#294654}[data-theme="dark"] .recognition-status>svg,[data-theme="dark"] .recognition-status strong{color:#7ecabe}[data-theme="dark"] .recognition-status p,[data-theme="dark"] .recognition-status small,[data-theme="dark"] .recognition-empty,[data-theme="dark"] .recognition-codes>span,[data-theme="dark"] .recognition-details>summary{color:#8aa9b8}[data-theme="dark"] .recognition-details{border-color:#294451}
[data-theme="dark"] .vision-settings{background:#102631;border-color:#294653}[data-theme="dark"] .vision-settings-heading{color:#93ccbe}[data-theme="dark"] .vision-privacy{color:#8ba9ba}
@media(max-width:650px){.composer-attachment{padding:8px;gap:9px}.attachment-thumb{width:55px;height:55px}.attachment-caption strong{font-size:10px}.attachment-caption small,.attachment-caption span,.attachment-notice{font-size:9px}.chat-image img{max-height:190px}.chat-welcome h1{font-size:18px}.chat-welcome p{font-size:11px}.image-recognition{padding:11px}.vision-settings{padding:13px}.vision-settings-heading{flex-wrap:wrap}.vision-settings .form-switch{align-items:flex-start;line-height:1.8}.chat-composer .composer textarea{min-height:54px}}
.recognition-image-matches{margin-top:10px}.recognition-image-match{display:flex;gap:10px;align-items:center;margin-top:8px}.match-thumb{width:67px;height:55px;flex-shrink:0;border:1px solid #d2e1d5;background:#fff;border-radius:5px;padding:2px;overflow:hidden}.match-thumb img{display:block;width:100%;height:100%;object-fit:contain}.recognition-image-match>div{min-width:0}.recognition-image-match strong{font-size:10px;font-weight:550;line-height:1.7;display:block;color:#5c7a67}.recognition-image-match small{display:block;font-size:9px;color:#8b9e90;line-height:1.7;margin-top:3px}.recognition-image-match .text-button{font-size:9px;line-height:1.7;margin-top:3px}
.entry-editor-dialog{width:min(820px,94vw)}.entry-editor-fields{border:0;padding:0;margin:0;min-width:0}.entry-editor-fields:disabled{opacity:.72}.entry-images-editor{margin:3px 0 22px}.entry-images-heading{display:flex;gap:14px;justify-content:space-between;align-items:flex-start;margin-bottom:14px}.entry-images-heading h3{display:flex;align-items:center;gap:7px;font-size:12px;margin:0;font-weight:550}.entry-images-heading h3 svg{width:15px;height:15px}.entry-images-heading h3 span{font-size:10px;color:#91a18d;font-weight:400}.entry-images-heading p{font-size:10px;line-height:1.9;color:#91a18e;margin-top:5px}.entry-images-heading .secondary{flex-shrink:0;padding:7px 10px;font-size:10px;min-height:31px}
.entry-image-drop{padding:12px;border:1px dashed #cfdfd1;background:#f8fbf6;border-radius:8px}.entry-image-drop.dragover{background:#eaf6ed;border-color:var(--green)}.entry-image-drop-hint{text-align:center;font-size:9px;line-height:1.8;color:#9aaa96;margin:12px 0 0}.entry-images-empty{display:flex;align-items:center;justify-content:center;gap:9px;min-height:95px;font-size:11px;color:#95a68e}.entry-images-empty>svg{width:22px;height:22px}
.entry-image-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px}.entry-image-slot{border:1px solid #dfe8db;border-radius:7px;padding:8px;background:#fff;min-width:0}.entry-image-thumb{display:grid;place-items:center;width:100%;height:110px;background:#f4f7f1;border-radius:4px;padding:3px;overflow:hidden}.entry-image-thumb img{display:block;width:100%;height:100%;object-fit:contain}.entry-image-thumb>svg{width:30px;height:30px;color:#97ae94}.entry-image-caption{display:flex;align-items:center;gap:7px;justify-content:space-between;margin-top:9px;line-height:1.7;flex-wrap:wrap}.entry-image-caption strong{font-size:10px;font-weight:500;color:#758e6c}.entry-image-caption span{font-size:9px;color:#a0ad97}.entry-image-name{font-size:9px;color:#9baa93;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:4px 0 0;line-height:1.8}.entry-image-actions{display:flex;align-items:center;gap:10px;margin-top:9px}.entry-image-actions button{font-size:9px;color:#7c9a72;min-height:24px}.entry-image-actions button:nth-child(2){color:#b09486}.entry-image-actions button:nth-child(3){margin-left:auto}.entry-image-actions button:disabled{opacity:.3;cursor:default}.entry-image-actions svg{width:14px;height:14px}.entry-move-prev svg{transform:rotate(180deg)}
.entry-image-preview{border:1px solid #d9e5d6;border-radius:7px;background:#f3f7ef;padding:10px;margin-bottom:12px}.entry-image-preview[hidden]{display:none}.entry-image-preview>div{display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#8da085;margin-bottom:8px}.entry-image-preview button svg{width:16px;height:16px}.entry-image-preview>img{display:block;width:auto;max-width:100%;max-height:48vh;object-fit:contain;margin:auto}.entry-editor-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:18px}
[data-theme="dark"] .recognition-image-match strong{color:#a9c8d1}[data-theme="dark"] .recognition-image-match small{color:#8ba6b4}[data-theme="dark"] .match-thumb{background:#0d192a;border-color:#2e4b59}
[data-theme="dark"] .entry-images-heading h3{color:#b6ccde}[data-theme="dark"] .entry-images-heading h3 span,[data-theme="dark"] .entry-images-heading p{color:#8ca5b9}[data-theme="dark"] .entry-image-drop{background:#0e1b2b;border-color:#30495d}[data-theme="dark"] .entry-image-drop.dragover{background:#123a3e;border-color:#41c2aa}[data-theme="dark"] .entry-image-drop-hint,[data-theme="dark"] .entry-images-empty{color:#829db2}[data-theme="dark"] .entry-image-slot{background:#132235;border-color:#2c4055}[data-theme="dark"] .entry-image-thumb{background:#0b1727}[data-theme="dark"] .entry-image-caption strong{color:#b1c8da}[data-theme="dark"] .entry-image-caption span,[data-theme="dark"] .entry-image-name{color:#839eb4}[data-theme="dark"] .entry-image-actions button{color:#72bda9}[data-theme="dark"] .entry-image-actions button:nth-child(2){color:#ca9e90}[data-theme="dark"] .entry-image-preview{background:#0c1929;border-color:#30465b}[data-theme="dark"] .entry-image-preview>div{color:#90aabd}
@media(max-width:650px){.entry-image-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.entry-image-slot{padding:7px}.entry-image-thumb{height:95px}.entry-images-heading{gap:10px;flex-wrap:wrap}.entry-images-heading .secondary{margin-left:auto}.entry-image-actions{gap:9px}.entry-image-caption strong{font-size:9px}.entry-image-caption span{font-size:8px}.entry-image-drop{padding:9px}.entry-image-drop-hint{font-size:8px}}
.quick-tools{grid-template-columns:repeat(2,minmax(0,1fr))}
.file-picker-input{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap;border:0}
.file-picker-label{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:5px}.file-picker-label:focus-visible{outline:2px solid var(--green);outline-offset:3px;border-radius:4px}.file-picker-label.picker-disabled,.entry-editor-fields:disabled .file-picker-label{pointer-events:none;opacity:.5}
.entry-image-actions .file-picker-label{font-size:9px;color:#7c9a72;min-height:24px}
.draft-images{margin:0 0 18px}.draft-images-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px;margin-bottom:11px}.draft-images-heading strong{font-size:11px;font-weight:550;display:flex;align-items:center;gap:6px;color:#647e6e}.draft-images-heading strong>svg{width:15px;height:15px}.draft-images-heading strong>span{font-size:9px;font-weight:400;color:#8da193}.draft-images-heading p{font-size:9px;line-height:1.8;color:#8b9d91;margin-top:5px}.draft-images-heading .secondary{font-size:10px;padding:7px 9px;min-height:30px;flex-shrink:0}
.draft-images-drop{border:1px dashed #cddfd0;background:#f7fbf6;border-radius:8px;padding:10px}.draft-images-drop.dragover{background:#e8f6ec;border-color:var(--green)}.draft-images-empty{display:flex;align-items:center;justify-content:center;gap:8px;min-height:75px;font-size:10px;color:#94a68d;line-height:1.8;text-align:center}.draft-images-empty>svg{width:24px;height:24px;flex-shrink:0}.draft-images-limit{text-align:center;margin:10px 0 0;font-size:9px;line-height:1.8;color:#97aa94}.draft-images-note,.draft-images-transfer{font-size:9px;line-height:1.9;color:#8d9f91;margin-top:8px}
.draft-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.draft-image-card{padding:8px;border:1px solid #dce7db;background:#fff;border-radius:6px;min-width:0}.draft-image-top{position:relative}.draft-image-thumb{display:block;width:100%;height:105px;background:#f1f7ee;border-radius:4px;overflow:hidden;padding:3px}.draft-image-thumb img{display:block;width:100%;height:100%;object-fit:contain}.draft-image-remove{position:absolute;right:4px;top:4px;padding:4px;background:#fffE;border:1px solid #d8e5d6;border-radius:50%;display:grid;place-items:center;color:#82967a}.draft-image-remove>svg{width:13px;height:13px}.draft-image-card>p{font-size:9px;line-height:1.8;color:#8b9f83;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:8px 0}.draft-image-role-label{display:block;font-size:9px;color:#8a9c83;line-height:1.8}.draft-image-role.form-input{font-size:10px;padding:6px 8px;margin:4px 0 7px;min-height:29px}.draft-image-card>small{font-size:8px;color:#a0ad98;line-height:1.8;display:block}
.draft-image-reading{border-top:1px solid #e6eee0;padding-top:7px;margin-top:4px}.draft-image-reading>summary{display:flex;align-items:center;gap:5px;justify-content:space-between;font-size:9px;line-height:1.8;color:#7b9870;cursor:pointer;list-style:none}.draft-image-reading>summary::-webkit-details-marker{display:none}.draft-image-reading>summary svg{width:12px;height:12px;flex-shrink:0}.draft-image-reading[open]>summary svg{transform:rotate(90deg)}.draft-image-reading p{font-size:9px;line-height:1.8;color:#98a68d;margin-top:7px}.draft-image-reading pre{font-size:9px;line-height:1.9;font-family:inherit;white-space:pre-wrap;overflow-wrap:anywhere;color:#7a8e70;max-height:180px;overflow:auto;margin-top:7px;background:#f5f8f2;padding:7px;border-radius:4px}
.draft-image-review-notice{padding:11px;border:1px solid #e6dfc5;background:#faf8ed;border-radius:6px;margin:0 0 16px}.draft-image-review-notice p{font-size:10px;line-height:1.9;color:#9a8d63;margin-bottom:8px}.draft-image-review-notice label{display:flex;align-items:flex-start;gap:7px;font-size:10px;color:#8c815c;line-height:1.9}.draft-image-review-notice input{margin-top:4px;accent-color:var(--green);flex-shrink:0}
[data-theme="dark"] .entry-image-actions .file-picker-label{color:#72bda9}[data-theme="dark"] .draft-images-heading strong{color:#b1cadb}[data-theme="dark"] .draft-images-heading strong>span,[data-theme="dark"] .draft-images-heading p,[data-theme="dark"] .draft-images-note,[data-theme="dark"] .draft-images-transfer{color:#89a6b8}[data-theme="dark"] .draft-images-drop{background:#0c1b2a;border-color:#2d4b5d}[data-theme="dark"] .draft-images-drop.dragover{background:#113b40;border-color:#35c0a6}[data-theme="dark"] .draft-images-empty,[data-theme="dark"] .draft-images-limit{color:#7f9daf}[data-theme="dark"] .draft-image-card{background:#112235;border-color:#294355}[data-theme="dark"] .draft-image-thumb{background:#0b1829}[data-theme="dark"] .draft-image-remove{background:#163342;color:#9cb9c8;border-color:#385461}[data-theme="dark"] .draft-image-card>p,[data-theme="dark"] .draft-image-role-label{color:#9bb5c5}[data-theme="dark"] .draft-image-card>small{color:#809db0}[data-theme="dark"] .draft-image-reading{border-color:#294150}[data-theme="dark"] .draft-image-reading>summary{color:#72baa9}[data-theme="dark"] .draft-image-reading p{color:#8cabbc}[data-theme="dark"] .draft-image-reading pre{background:#0c1b2a;color:#9bb6c5}[data-theme="dark"] .draft-image-review-notice{background:#302c21;border-color:#514833}[data-theme="dark"] .draft-image-review-notice p,[data-theme="dark"] .draft-image-review-notice label{color:#c5b47e}
@media(max-width:650px){.draft-images-heading{flex-wrap:wrap}.draft-images-heading .secondary{margin-left:auto}.draft-image-thumb{height:100px}.draft-images-heading p{font-size:9px}}

/* Customer access and private administrator records. */
.customer-gate{min-height:100vh;display:flex;flex-direction:column;background:radial-gradient(ellipse at 15% 35%,#dcefe355,transparent 55%),#f6f8f4}
.gate-header{display:flex;justify-content:space-between;align-items:center;padding:28px 5vw;gap:18px}.gate-brand{display:flex;align-items:center;gap:12px;color:#254e3d;text-decoration:none;font-size:21px}.gate-brand .brand-mark{width:38px;height:38px;border-radius:11px}.gate-header>div{display:flex;gap:16px;align-items:center}.gate-header .theme-toggle{width:auto;margin:0;padding:9px 12px;gap:7px}.gate-header .text-button{white-space:nowrap}
.gate-content{width:min(1020px,90%);margin:auto;display:grid;grid-template-columns:1.1fr 1fr;gap:70px;align-items:center;padding:45px 0 65px}.gate-intro h1{font-size:clamp(34px,4vw,49px);line-height:1.5;color:#284c3c;font-weight:600;letter-spacing:-1px;margin:20px 0}.gate-intro h1 span{color:#188775}.gate-intro>p{font-size:13px;line-height:2;color:#83988b;max-width:350px}.gate-features{display:flex;flex-wrap:wrap;gap:20px;margin-top:31px}.gate-features span{display:flex;align-items:center;gap:7px;font-size:11px;color:#688d7c}.gate-features svg{width:17px;height:17px}.gate-card{width:100%;max-width:none;margin:0;padding:35px}.gate-card h2{font-size:24px;font-weight:600;color:#315c48}.gate-card .auth-heading{margin-bottom:24px}.gate-card .form-input{margin-bottom:10px}.gate-card .password-hint{font-size:10px;line-height:1.9;margin-bottom:16px}.gate-card .error-text{margin:8px 0 14px;min-height:0}.gate-card .error-text:empty{display:none}.gate-privacy{font-size:10px;color:#95a59a;line-height:1.9;margin-top:19px}.gate-footer{display:flex;justify-content:center;align-items:center;gap:6px;font-size:10px;color:#98aa9e;padding:23px;text-align:center}.gate-footer svg{width:14px;height:14px}.card-key-input{font-family:Consolas,monospace;letter-spacing:1px}
.manager-tabs{overflow-x:auto;flex-wrap:nowrap;scrollbar-width:thin}.manager-tabs>button{flex-shrink:0;white-space:nowrap}.records-toolbar{flex-wrap:wrap}.records-toolbar .record-filter{width:auto;min-width:130px;max-width:180px;margin:0;padding:8px 12px;min-height:38px;font-size:11px}.records-toolbar .search-field{max-width:none;min-width:190px}.records-toolbar .search-field input{width:100%}.record-table-wrap{overflow-x:auto}.record-table{min-width:650px}.record-table td{vertical-align:top}.record-question-col{max-width:380px;min-width:230px}.record-question-col>strong{font-size:11px;font-weight:500;line-height:1.9;overflow-wrap:anywhere;display:block}.record-question-col>p{font-size:10px;line-height:1.9;color:#8a9d91;margin-top:6px;overflow-wrap:anywhere;white-space:pre-wrap}.record-card-mask,.record-date{display:block;font:10px/1.8 Consolas,monospace;color:#80998a;margin-top:7px;overflow-wrap:anywhere}.record-status{font-size:10px;line-height:1.8}.record-status.accepted{color:#24856e}.record-status.rejected{color:#b86858}.record-image-label{display:flex;align-items:center;gap:5px;margin-top:7px;font-size:9px;color:#6e9480}.record-image-label svg{width:12px;height:12px}.record-table .table-actions{flex-direction:column;align-items:flex-start;gap:9px;min-width:80px}.record-table .table-actions>button{white-space:nowrap}.card-family-tabs{margin-bottom:17px}
.record-detail-dialog{width:min(780px,94vw)}.record-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 17px;font-size:10px;line-height:1.8;color:#82988c;margin-bottom:20px;overflow-wrap:anywhere}.record-detail-block{padding:19px 0;border-top:1px solid var(--line)}.record-detail-block h3{font-size:12px;color:#496a58;margin-bottom:12px}.record-plain-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.9}.record-private-image{display:block;margin-top:17px;border:1px solid var(--line);border-radius:8px;padding:7px;background:#f4f8f4}.record-private-image img{display:block;max-width:100%;max-height:300px;object-fit:contain}.record-source-list{padding-left:18px;font-size:11px;line-height:1.9;color:#7e9787}.full-card-value{font:12px/1.9 Consolas,monospace;overflow-wrap:anywhere;resize:vertical;user-select:all}
[data-theme="dark"] .customer-gate{background:radial-gradient(ellipse at 15% 35%,#11343f88,transparent 55%),#07111f}[data-theme="dark"] .gate-brand,[data-theme="dark"] .gate-intro h1,[data-theme="dark"] .gate-card h2{color:#e0eaf5}[data-theme="dark"] .gate-intro h1 span{color:#36d1bc}[data-theme="dark"] .gate-intro>p,[data-theme="dark"] .gate-privacy,[data-theme="dark"] .gate-footer{color:#819ab1}[data-theme="dark"] .gate-features span{color:#86b6b7}[data-theme="dark"] .record-question-col>p,[data-theme="dark"] .record-card-mask,[data-theme="dark"] .record-date,[data-theme="dark"] .record-meta,[data-theme="dark"] .record-source-list{color:#8ca5bb}[data-theme="dark"] .record-detail-block h3{color:#c0d6e4}[data-theme="dark"] .record-status.accepted{color:#66d1b7}[data-theme="dark"] .record-status.rejected{color:#edaaa0}[data-theme="dark"] .record-image-label{color:#79bbaa}[data-theme="dark"] .record-private-image{background:#0b1929}
@media(max-width:760px){.gate-content{grid-template-columns:1fr;gap:30px;width:min(460px,90%);padding:15px 0 35px}.gate-intro h1{font-size:30px;margin:12px 0}.gate-intro h1 br{display:none}.gate-intro>p{max-width:none}.gate-features{gap:15px;margin-top:18px}.gate-card{padding:26px}.gate-header{padding:19px 5vw}.gate-header .theme-toggle span{display:none}.gate-header>div{gap:7px}.gate-header .text-button{font-size:10px}.gate-footer{padding:18px;font-size:9px}.records-toolbar{gap:9px}.records-toolbar .record-filter{flex:1}.record-detail-dialog .modal-body{padding:20px}}

/* Account administration follows the current theme and permission scope. */
.accounts-toolbar{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.account-table td{vertical-align:top}.account-table td>small{display:block;color:var(--muted);font-size:11px;margin-top:8px}.account-name{display:flex;gap:8px;align-items:center}.account-name svg{width:17px;height:17px;color:var(--green)}.permission-tags{display:flex;flex-wrap:wrap;gap:6px;max-width:430px}.permission-tags .tag{font-size:10px}.account-status{display:inline-flex;align-items:center;gap:6px;font-size:12px;white-space:nowrap}.account-status:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}.account-status.enabled{color:var(--green)}.account-status.disabled{color:var(--muted)}.account-editor-dialog{width:min(700px,94vw)}.account-fields{margin:0;padding:0;border:0;min-width:0}.account-permission-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:26px 0 13px}.account-permission-heading h3{font-size:14px;font-weight:600}.permission-presets{display:flex;gap:12px}.permission-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.permission-option{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:8px;padding:12px 9px;line-height:1.6;font-size:12px;cursor:pointer}.permission-option:has(input:checked){border-color:var(--green);background:var(--light)}.permission-option input,.account-enabled input{accent-color:var(--green)}.account-enabled{margin-top:21px}.account-editor-dialog .entry-editor-actions{margin-top:22px}[data-theme="dark"] .permission-option:has(input:checked){background:#17392f}
@media(max-width:760px){.permission-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.account-permission-heading{align-items:flex-start;flex-direction:column}.account-table{min-width:660px}.account-editor-dialog .modal-body{padding:20px}}

.ip-block-section{margin-top:30px;border-top:1px solid var(--line);padding-top:27px}.ip-block-heading{display:flex;justify-content:space-between;align-items:center;gap:16px}.ip-block-heading h2{font-size:16px;display:flex;gap:8px;align-items:center}.ip-block-heading h2 svg{width:18px;height:18px;color:var(--green)}.ip-block-heading p{margin-top:8px;color:var(--muted);font-size:12px;line-height:1.8}.ip-block-form{margin:23px 0}.ip-block-form>div{display:flex;align-items:center;gap:10px;max-width:520px}.ip-block-form .form-input{margin:0;flex:1;min-width:0}.ip-block-form button{white-space:nowrap}.record-ip{font-family:Consolas,monospace;overflow-wrap:anywhere;font-size:12px;display:block}.record-card-mask{overflow-wrap:anywhere;word-break:break-all}.ip-block-table{min-width:480px}

.records-management-tools{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:18px}.records-management-tools .category-tabs{margin:0}.records-management-tools .category-tabs button{display:inline-flex;align-items:center;gap:6px}.records-management-tools svg{width:15px;height:15px}.record-clear-filter{padding:14px 16px;background:var(--light);border:1px solid var(--line);border-radius:8px;line-height:1.9;overflow-wrap:anywhere;font-size:12px;margin:15px 0}[data-theme="dark"] .record-clear-filter{background:#112b32}@media(max-width:760px){.records-management-tools{align-items:flex-start;flex-direction:column}.records-management-tools .danger{width:100%}}

/* Title in the top center of the customer verification homepage. */
.customer-gate{position:relative}
.gate-site-title{position:absolute;top:clamp(92px,10vh,120px);left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100% - 40px);margin:0;padding-left:.1em;color:#284c3c;font-size:clamp(32px,3.2vw,56px);font-weight:600;line-height:1.4;letter-spacing:.1em;text-align:center}
[data-theme="dark"] .gate-site-title{color:#e0eaf5}
@media(max-width:760px){.gate-site-title{position:static;transform:none;align-self:center;width:auto;margin:8px 20px 20px;font-size:clamp(24px,6.5vw,32px)}}
@media(min-width:761px) and (max-height:650px){.gate-site-title{position:static;transform:none;align-self:center;width:auto;margin:0 20px 20px;font-size:32px}}
