@import url('/assets/fonts.css');
:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#263a30;background:#f7f8f3;font-synthesis:none;--green:#264b38;--muted:#7a857d;--line:#e3e7dd;--lime:#ddedb5;--paper:#fff;--sidebar:#eef1e7}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button{cursor:pointer;transition:background .15s,transform .15s}button:disabled{cursor:wait;opacity:.55}button:focus-visible,a:focus-visible{outline:3px solid #aac078;outline-offset:3px}input:focus,textarea:focus,select:focus{outline:2px solid #9ab478;outline-offset:1px}button{border:0;color:inherit}a{color:var(--green)}button.primary{background:var(--green);color:white;border-radius:12px;padding:13px 20px;font-weight:650}button.primary:hover{background:#173522}.secondary{background:#f0f3e9;border:1px solid var(--line);border-radius:10px;padding:10px 14px}.ghost{background:transparent;border-radius:9px;padding:10px}.ghost:hover{background:#e4e9da}.muted{color:var(--muted)}.tiny{font-size:12px;line-height:1.6}.eyebrow{text-transform:uppercase;letter-spacing:.18em;font-size:11px;font-weight:700;color:#7a8c71}.brand{display:flex;align-items:center;gap:11px;font-size:21px;font-weight:750;letter-spacing:-.7px}.brand img{width:36px;height:36px}.brand em{font-style:normal;font-size:10px;font-weight:600;letter-spacing:.08em;background:#dfe6d5;border-radius:5px;padding:4px 5px;color:#78856e;margin-left:3px}.shell{display:grid;grid-template-columns:264px 1fr;height:100dvh}.sidebar{background:var(--sidebar);border-right:1px solid #dfe5d7;display:flex;flex-direction:column;padding:30px 20px 18px;min-width:0}.sidebar .brand{padding-left:6px;margin-bottom:35px}.new-chat{width:100%;display:flex;align-items:center;justify-content:space-between;padding:13px 15px;border:1px solid #ccd6c3;border-radius:11px;background:#f7f9f2;font-size:13px;font-weight:650}.new-chat b{font-size:20px;font-weight:400}.side-label{font-size:10px;text-transform:uppercase;letter-spacing:.12em;color:#919987;margin:32px 9px 12px}.history{flex:1;overflow:auto;min-height:80px}.history button{display:flex;align-items:center;text-align:left;gap:10px;padding:11px 10px;width:100%;background:none;border-radius:8px;font-size:12px;color:#6c7768}.history button.active{background:#dfe7d3;color:#2c462e;font-weight:600}.history button:hover{background:#e6ecdc}.history button span:last-child{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.empty-history{font-size:12px;line-height:1.7;color:#909986;padding:8px 10px}.side-bottom{border-top:1px solid #dce3d1;padding-top:17px;margin-top:16px}.account{display:flex;align-items:center;gap:10px;margin-top:14px}.avatar{width:34px;height:34px;display:grid;place-items:center;background:#d8e3c6;border-radius:50%;font-size:12px;font-weight:700;flex-shrink:0}.account-name{font-size:12px;font-weight:650}.account-meta{font-size:10px;color:#8a9481;margin-top:3px}.side-bottom>button{width:100%;text-align:left;font-size:12px}.main{display:flex;flex-direction:column;min-width:0;overflow:hidden}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;padding:0 42px;border-bottom:1px solid #e8ebe2;flex-shrink:0}.bot-select{background:transparent;border:0;padding:7px 24px 7px 0;font-size:15px;font-weight:700;color:#314635;max-width:210px}.presence{display:flex;align-items:center;gap:7px;font-size:11px;color:#7d8a73}.dot{width:6px;height:6px;border-radius:50%;background:#83a263}.tag{background:#eff2e8;border:1px solid #dfe5d6;border-radius:20px;padding:7px 11px;font-size:10px;color:#738166}.top-actions{display:flex;gap:12px;align-items:center}.scroll-area{overflow:auto;flex:1;padding:25px 40px 15px;scroll-behavior:smooth}.welcome{max-width:730px;margin:clamp(30px,8vh,100px) auto 30px}.welcome-icon{display:grid;place-items:center;width:70px;height:70px;background:#e9eedd;border:1px solid #dde5cc;border-radius:24px;color:#617c4e;margin-bottom:32px}.welcome-icon svg{width:35px;height:35px;stroke-width:1.3}.welcome h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;letter-spacing:-1.3px;font-size:clamp(34px,4vw,48px);line-height:1.15;margin:10px 0 18px;color:#334b36}.welcome p.lead{font-size:14px;line-height:1.9;color:#7b8675;max-width:530px;margin:0 0 34px}.prompt-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:32px}.prompt-card{border:1px solid #e0e6d7;background:#fbfcf7;border-radius:13px;padding:20px 18px;text-align:left;display:flex;flex-direction:column;gap:18px;min-height:139px}.prompt-card:hover{background:#edf2e1;border-color:#c3d2ab;transform:translateY(-2px)}.prompt-card svg{width:19px;height:19px;color:#83966b}.prompt-card strong{font-size:12px;font-weight:550;line-height:1.65}.welcome-foot{display:flex;gap:8px;align-items:center;font-size:11px;color:#939d8b;margin-top:26px}.composer-wrap{padding:10px 40px 25px;flex-shrink:0}.composer-box{max-width:790px;margin:0 auto;background:#fff;border:1px solid #d8e0ce;border-radius:17px;box-shadow:0 4px 20px #30421906;padding:16px 16px 11px}.composer-box textarea{display:block;width:100%;border:0;resize:none;padding:3px 4px;background:none;min-height:54px;max-height:180px;font-size:14px;line-height:1.6;color:#33472f}.composer-box textarea:focus{outline:none}.composer-box textarea::placeholder{color:#a1a996}.composer-bottom{display:flex;align-items:center;justify-content:space-between;padding-left:4px}.composer-bottom span{font-size:10px;color:#a0a891}.send{background:#2f4e35;color:#eef5df;width:37px;height:37px;border-radius:10px;font-size:19px}.composer-note{text-align:center;font-size:10px;color:#98a18e;margin-top:11px}.chat-stream{max-width:790px;margin:10px auto 0}.message{display:flex;gap:15px;margin:26px 0}.message .avatar{width:29px;height:29px;margin-top:3px;background:#e9eddc}.message.user .avatar{background:#dde5d3}.message-content{font-size:14px;line-height:1.85;white-space:pre-wrap;overflow-wrap:anywhere;min-width:0;flex:1}.message-label{font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#839075;font-weight:700;display:block;margin-bottom:6px}.message.user .message-content{background:#edf1e6;padding:13px 18px;border-radius:0 15px 15px}.sources{margin-top:15px;font-size:11px;color:#809070;white-space:normal;border-top:1px solid #e4e9dc;padding-top:10px}.source{display:block;margin:6px 0;line-height:1.6}.thinking{color:#809074;font-size:13px;padding:15px 0}.thinking::after{content:' …';animation:pulse 1.2s infinite}.mobile-menu{display:none}.notice{border:1px solid #e2dabc;border-radius:11px;background:#fbf7e9;color:#847047;font-size:12px;padding:12px 15px;line-height:1.6;margin:15px auto;max-width:790px}.admin{max-width:1100px;margin:20px auto 40px}.admin h1{font:36px Georgia,serif;color:#334b36;margin:8px 0 14px}.admin p{color:#839078;font-size:13px;line-height:1.8}.admin-toolbar{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;align-items:center;margin:25px 0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:25px 0}.stat{border:1px solid var(--line);background:white;border-radius:13px;padding:19px}.stat b{display:block;font-size:27px;font-weight:500;margin:4px 0 8px}.stat span{font-size:11px;color:var(--muted)}.tabs{display:flex;gap:6px;border-bottom:1px solid var(--line);margin-top:30px}.tabs button{background:none;padding:12px 18px;font-size:12px;border-bottom:2px solid transparent}.tabs button.active{border-color:var(--green);font-weight:700}.table-wrap{overflow:auto}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;font-size:10px;text-transform:uppercase;letter-spacing:.08em;color:#87947c;padding:17px 12px;border-bottom:1px solid var(--line);font-weight:600}td{padding:17px 12px;border-bottom:1px solid var(--line);line-height:1.7}td:first-child{font-weight:600}td button{font-size:11px}.pill{display:inline-block;padding:3px 8px;border-radius:20px;background:#e6eddb;color:#657950;font-size:10px}.pill.warn{background:#f1ead5;color:#8d784a}.auth{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr}.auth-story{background:#1e3328;color:#ebf0df;padding:50px 65px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-story::after{content:'';width:600px;height:600px;border:1px solid #65735244;border-radius:50%;position:absolute;right:-350px;bottom:-180px;box-shadow:0 0 0 65px #596e3e14,0 0 0 130px #596e3e0c;pointer-events:none}.auth-story .brand{color:#eaf0df}.auth-story h1{font:clamp(42px,5vw,67px)/1.06 Georgia,serif;letter-spacing:-2px;max-width:440px;margin:0 0 28px}.auth-story p{color:#aab9a0;line-height:1.9;font-size:14px;max-width:370px}.auth-story .eyebrow{color:#91a875;margin-bottom:23px}.auth-story small{color:#87997d;font-size:11px}.auth-panel{display:flex;align-items:center;justify-content:center;padding:45px}.auth-card{max-width:375px;width:100%}.auth-card h2{font:34px Georgia,serif;margin:0 0 15px}.auth-card>p{font-size:13px;line-height:1.8;color:#869079;margin-bottom:28px}.auth-card .primary{width:100%;margin-top:10px}.auth-nav{display:flex;justify-content:center;gap:10px;margin-top:25px;font-size:12px;color:#829076}.auth-nav button{padding:5px;background:none;text-decoration:underline;color:#506c45}label{display:block;font-size:12px;color:#67745d;margin:18px 0 8px}input,select.field{width:100%;padding:12px 13px;border:1px solid #dbe2d0;border-radius:9px;background:#fff;color:#3d4e36}input[type=checkbox]{width:auto;margin-right:8px;accent-color:#375738}label.check{display:flex;align-items:center;line-height:1.7;margin:9px 0}dialog{width:min(570px,calc(100% - 30px));max-height:90dvh;border:1px solid #dce3d1;border-radius:20px;background:#fafbf6;color:#354b32;padding:28px;box-shadow:0 20px 90px #19281c44}dialog::backdrop{background:#1e302c66;backdrop-filter:blur(3px)}dialog h2{font:28px Georgia,serif;margin:0 0 12px}dialog p{font-size:12px;line-height:1.8;color:#7d8972}.modal-head{display:flex;justify-content:space-between;align-items:center}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 15px}.form-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:25px}.error{font-size:12px;line-height:1.7;color:#a64d3f;background:#f9ebe5;border-radius:9px;padding:10px 13px;margin:15px 0}.error:empty{display:none}.link-output{word-break:break-all;font-size:12px;background:#eaf0df;padding:15px;border-radius:10px;line-height:1.8}.loading{height:100dvh;display:grid;place-items:center;color:#869076}#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;background:#294b35;color:#f1f6e7;padding:12px 20px;border-radius:11px;font-size:12px;box-shadow:0 5px 20px #18392222;max-width:min(600px,90%);display:none}.no-access{padding:30px 0}.grant-row{padding:12px 0;border-bottom:1px solid var(--line);font-size:12px;display:flex;justify-content:space-between;gap:10px}.access-note{border-left:2px solid #b8cda0;padding-left:13px;color:#809171;font-size:11px;line-height:1.8}@keyframes pulse{50%{opacity:.4}}@media(min-width:1450px){.welcome{margin-top:12vh}.scroll-area{padding-top:35px}}@media(max-width:900px){.shell{grid-template-columns:220px 1fr}.sidebar{padding:25px 14px}.topbar{padding:0 25px}.scroll-area{padding:25px}.composer-wrap{padding:10px 25px 20px}.prompt-grid{grid-template-columns:1fr}.prompt-card{min-height:auto;flex-direction:row;padding:15px;align-items:center}.welcome{margin-top:25px}.auth-story{padding:40px}.stats{grid-template-columns:1fr 1fr}.presence{display:none}}@media(max-width:650px){.shell{grid-template-columns:1fr}.sidebar{position:fixed;left:0;top:0;bottom:0;width:270px;z-index:10;box-shadow:10px 0 50px #26392c22;transform:translateX(-110%)}.sidebar.open{transform:translateX(0)}.mobile-menu{display:inline-block;font-size:22px;background:none;margin-right:10px}.topbar{height:70px;padding:0 18px}.topbar>div:first-child{display:flex;align-items:center}.top-actions .tag{display:none}.scroll-area{padding:20px}.welcome{margin:22px auto}.welcome h1{font-size:38px}.welcome-icon{width:57px;height:57px;border-radius:18px;margin-bottom:24px}.welcome p.lead{font-size:13px;margin-bottom:20px}.prompt-grid{margin-top:22px;gap:8px}.composer-wrap{padding:10px 14px 18px}.composer-note{font-size:9px}.auth{display:block}.auth-story{padding:25px 28px 35px;min-height:280px}.auth-story h1{font-size:38px;letter-spacing:-1px;margin:28px 0 12px}.auth-story p,.auth-story small,.auth-story .eyebrow{display:none}.auth-panel{padding:35px 28px}.auth-card{max-width:none}.admin h1{font-size:30px}.stats{gap:8px}.stat{padding:13px}.form-grid{grid-template-columns:1fr}.composer-bottom span{font-size:9px}.message{gap:10px}.message-content{font-size:13px}.tag{font-size:9px}}
