:root{--plum:#4d1a78;--plum-dark:#351153;--plum-soft:#6b408b;--cream:#ffffff;--paper:#ffffff;--peach:#e20092;--peach-light:#ffeff7;--ink:#2f173e;--muted:#725c80;--line:#e7dbf1;--green:#276443;--red:#a72f56;--radius:18px;--shadow:0 16px 60px #4d1a7814;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--cream);font-synthesis:none}
*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}a{color:inherit}button{color:inherit}button:disabled{cursor:wait;opacity:.55}input,textarea,select{min-width:0}button:focus-visible,a:focus-visible{outline:3px solid #e20092;outline-offset:4px}input:focus,textarea:focus,select:focus{outline:2px solid #a86bd2;outline-offset:1px}[hidden]{display:none!important}.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.app-shell{display:grid;grid-template-columns:256px minmax(380px,1fr) 328px;height:100dvh;overflow:hidden}.sidebar{background:#f8f4fc;border-right:1px solid var(--line);padding:31px 21px 20px;display:flex;flex-direction:column;min-height:0}.brand{display:flex;gap:10px;align-items:center;text-decoration:none;color:var(--plum)}.brand-mark{flex:none;width:42px;height:44px;border-radius:14px 14px 14px 4px;background:var(--plum);color:var(--peach);display:grid;place-items:center;font-size:30px;font-weight:700}.brand-mark svg{width:39px;height:39px;fill:none;stroke:var(--peach);stroke-width:3.3;stroke-linecap:round}.brand strong{font-size:19px;font-weight:750;letter-spacing:-1px;white-space:nowrap}.brand-dot{color:#e20092}.brand small{display:block;color:var(--plum-soft);font-size:10px;letter-spacing:.15px;margin-top:5px}.new-chat{display:flex;align-items:center;gap:10px;width:100%;background:var(--plum);color:#ffffff;border:0;border-radius:11px;font-size:13px;font-weight:600;padding:12px 14px;margin:34px 0 31px;box-shadow:0 5px 12px #4d1a7815}.new-chat:hover{background:var(--plum-dark)}.new-chat>span{font-size:23px;font-weight:400;line-height:18px}.new-chat kbd{margin-left:auto;color:#e0c4f3;font:12px inherit}.sidebar-section-label{font-size:9px;font-weight:700;letter-spacing:1.4px;color:#725c80;display:flex;justify-content:space-between;margin:0 8px 13px}.sidebar-section-label>span{letter-spacing:0}.conversation-list{overflow:auto;min-height:70px;flex:1}.conversation-item{display:flex;align-items:center;gap:9px;padding:11px 10px;border-radius:9px;margin-bottom:5px;position:relative}.conversation-item.active{background:#f3eaff;color:var(--plum)}.conversation-item:hover{background:#f3eaff}.conversation-open{background:none;border:0;padding:0;text-align:left;flex:1;min-width:0;font-size:12px;line-height:1.5;display:flex;align-items:center;gap:9px}.conversation-open>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.conversation-icon{color:#725c80;font-size:17px}.conversation-delete{border:0;background:transparent;color:#725c80;font-size:17px;opacity:0;line-height:1}.conversation-item:hover .conversation-delete,.conversation-delete:focus{opacity:1}.empty-conversations{padding:12px 8px;color:#725c80;font-size:12px;line-height:1.8}.session-note{display:flex;gap:7px;font-size:10px;line-height:1.6;color:#725c80;padding:17px 6px 20px}.small-lock{font-size:17px;color:#725c80}.sidebar-bottom{border-top:1px solid #e7dbf1;padding-top:16px}.sidebar-settings{width:100%;border:0;background:transparent;display:flex;align-items:center;gap:10px;padding:7px 3px;text-align:left}.sidebar-settings>span:last-child{margin-left:auto;color:#725c80}.sidebar-settings strong{font-size:12px;font-weight:600;display:block}.sidebar-settings small{display:block;font-size:10px;color:#725c80;margin-top:5px}.connection-dot{height:8px;width:8px;background:#725c80;border-radius:50%;box-shadow:0 0 0 4px #f3eaff}.connection-dot.connected{background:#276443;box-shadow:0 0 0 4px #e5f3eb}.sidebar-links{display:flex;justify-content:space-between;font-size:10px;color:#725c80;margin:22px 2px 0}.sidebar-links a{text-decoration:none}.sidebar-links a:hover{text-decoration:underline}.sidebar-footnote{font-size:9px;line-height:1.7;color:#725c80;margin:13px 2px 0}.chat-main{display:flex;flex-direction:column;min-width:0;min-height:0;background:var(--cream)}.chat-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:24px 34px 20px;border-bottom:1px solid #e7dbf1;min-height:96px;flex:none}.header-left{display:flex;align-items:center;gap:12px}.eyebrow{font-size:9px;letter-spacing:1.7px;font-weight:700;color:#725c80}.chat-header h1{margin:7px 0 0;font-size:16px;letter-spacing:-.3px;font-weight:600}.beta-tag{font-size:7px;letter-spacing:.7px;color:#725c80;border:1px solid #e7dbf1;border-radius:4px;padding:3px 5px;vertical-align:middle;margin-left:8px;font-weight:500}.header-actions{display:flex;gap:10px}.model-chip{border:1px solid var(--line);background:#ffffff;padding:8px 10px;border-radius:20px;display:flex;align-items:center;gap:7px;font-size:10px;color:#725c80;max-width:215px}.model-chip>span:nth-child(2){white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tiny-sparkle{color:#e20092;font-size:18px}.icon-button{border:0;background:none;font-size:24px;width:34px;height:34px;display:grid;place-items:center;color:var(--plum-soft);border-radius:8px}.icon-button:hover{background:#f3eaff}.mobile-menu,.mobile-sources,.close-references{display:none}.chat-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scroll-behavior:smooth}.welcome{max-width:710px;padding:38px 42px 28px;margin:0 auto;text-align:center}.welcome-symbol{width:88px;height:82px;position:relative;margin:0 auto 25px}.welcome-symbol>span{display:grid;place-items:center;width:68px;height:68px;background:#ffeff7;color:#725c80;border-radius:23px 23px 23px 6px;font-size:43px;transform:rotate(-9deg)}.welcome-symbol i{position:absolute;width:30px;height:30px;border-radius:50%;background:#f3eaff;right:2px;bottom:0}.welcome-symbol b{position:absolute;bottom:3px;right:10px;color:#725c80;font-size:16px;font-weight:400}.welcome-kicker{font-size:9px;letter-spacing:2.1px;color:#725c80;margin:0 0 16px;font-weight:600}.welcome h2{font-family:Georgia,"Times New Roman",serif;font-weight:400;color:var(--plum);font-size:43px;line-height:1.13;letter-spacing:-1.8px;margin:0}.welcome h2 em{font-weight:400;color:#e20092}.welcome-description{font-size:12px;line-height:1.9;color:#725c80;margin:19px 0 26px}.suggestions{display:grid;grid-template-columns:1fr 1fr;gap:11px;text-align:left}.suggestions>button{position:relative;background:#ffffff;border:1px solid #e7dbf1;border-radius:13px;padding:15px 14px;text-align:left;transition:transform .15s,border-color .15s;display:grid;grid-template-columns:23px 1fr;gap:5px 7px;align-content:start}.suggestions>button:hover{border-color:#d880b9;transform:translateY(-2px);box-shadow:0 5px 16px #4d1a7808}.suggestion-icon{grid-row:1/3;font-size:20px;line-height:1;color:#725c80}.suggestions strong{font-size:11px;font-weight:600;padding-right:6px;line-height:1.5;color:#4d1a78}.suggestions>button>span:not(.suggestion-icon){font-size:9px;line-height:1.8;color:#725c80}.suggestions b{position:absolute;right:10px;top:12px;font-size:12px;font-weight:400;color:#725c80}.welcome-trust{display:flex;justify-content:center;gap:24px;font-size:9px;color:#725c80;margin:24px 0 0}.knowledge-notice{margin:19px 0 0;padding:12px 14px;background:#ffeff7;border:1px solid #f1c8e1;border-radius:9px;color:#7d285f;font-size:11px;line-height:1.7;text-align:left}.messages{max-width:850px;margin:auto;padding:28px 36px 10px}.message{margin-bottom:28px}.message.user{display:flex;justify-content:flex-end}.user-bubble{max-width:88%;background:#ffeff7;padding:14px 19px;border-radius:17px 17px 3px 17px;color:#4d1a78;font-size:14px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.assistant-message-head{display:flex;align-items:center;gap:8px;font-size:11px;color:var(--plum);font-weight:600;margin-bottom:12px}.assistant-avatar{display:grid;place-items:center;width:26px;height:27px;border-radius:8px 8px 8px 2px;background:var(--plum);color:var(--peach);font-family:Georgia,serif;font-size:20px}.message-state{margin-left:5px;color:#725c80;font-size:9px;font-weight:400}.message-content{font-size:14px;line-height:1.85;color:#432452;overflow-wrap:anywhere}.message-content p{margin:0 0 13px}.message-content p:last-child{margin-bottom:0}.message-content h3{font-size:15px;line-height:1.6;color:var(--plum);margin:22px 0 10px}.message-content ul,.message-content ol{padding-left:23px;margin:10px 0 16px}.message-content li{padding-left:3px;margin:6px 0}.message-content a{color:#4d1a78;text-underline-offset:3px}.message-content code{font-size:.9em;background:#f3eaff;border-radius:4px;padding:2px 4px}.citation{vertical-align:baseline;border:0;background:#f3eaff;color:#4d1a78;font-size:10px;font-weight:600;border-radius:4px;padding:2px 5px;margin:0 2px;line-height:1.5}.citation:hover{background:var(--plum);color:#ffffff}.message-actions{display:flex;align-items:center;gap:9px;margin-top:13px;color:#725c80}.message-actions button{border:0;background:transparent;font-size:10px;color:#725c80;display:flex;align-items:center;gap:5px;padding:4px 2px}.message-actions button:hover{color:var(--plum)}.message-actions .answer-sources{margin-left:auto}.answer-check{font-size:9px;color:#276443;display:flex;align-items:center;gap:5px}.message-incomplete{border-left:2px solid #e20092;padding:8px 12px;background:#ffeff7;color:#7d285f;font-size:11px;margin-top:13px;border-radius:0 6px 6px 0;line-height:1.7}.message-error{border-left:2px solid #d66c98;padding:9px 12px;background:#fff0f5;color:#a72f56;font-size:12px;margin-top:12px;line-height:1.7}.referral-box{display:flex;gap:11px;background:#ffeff7;border:1px solid #f1c8e1;border-radius:12px;padding:15px;margin-top:18px;color:#7d285f}.referral-box>span{font-size:23px}.referral-box strong{font-size:12px;display:block;margin:2px 0 5px}.referral-box p{margin:0;font-size:11px;line-height:1.8}.typing-dots{display:flex;gap:5px;padding:10px 0}.typing-dots span{width:5px;height:5px;background:#725c80;border-radius:50%;animation:pulse 1.3s infinite}.typing-dots span:nth-child(2){animation-delay:.2s}.typing-dots span:nth-child(3){animation-delay:.4s}.composer-area{flex:none;padding:9px 34px 16px;background:linear-gradient(0deg,var(--cream) 85%,#ffffff00);max-width:920px;width:100%;margin:auto}.composer{border:1px solid #e7dbf1;background:#ffffff;border-radius:17px;padding:14px 16px 10px;box-shadow:0 4px 25px #4d1a7807;transition:box-shadow .15s}.composer:focus-within{border-color:#b282d4;box-shadow:0 0 0 3px #4d1a7815}.composer textarea{resize:none;display:block;width:100%;max-height:170px;padding:1px 2px;border:0;background:transparent;font-size:13px;line-height:1.7;outline:0;color:var(--plum);overflow-y:auto}.composer textarea::placeholder{color:#725c80}.composer textarea:focus{outline:0}.composer-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-top:12px}.composer-bottom>span{font-size:9px;color:#725c80;display:flex;align-items:center;gap:6px}.composer-spark{font-size:17px;color:#725c80}.send-button,.stop-button{width:31px;height:31px;border:0;border-radius:10px;display:grid;place-items:center;background:var(--plum);color:#ffffff;font-size:23px;line-height:1}.send-button:hover,.stop-button:hover{background:var(--plum-dark)}.stop-button{font-size:12px}.disclosure{text-align:center;color:#725c80;font-size:8px;line-height:1.8;max-width:680px;margin:10px auto 0}.disclosure>span{white-space:nowrap}.status-row{font-size:10px;color:#725c80;display:flex;align-items:center;gap:8px;padding:0 4px 9px}.activity-dot{height:6px;width:6px;border-radius:50%;background:#725c80;animation:pulse 1.3s infinite}.references{border-left:1px solid var(--line);background:#faf7ff;display:flex;flex-direction:column;min-height:0}.references-heading{display:flex;gap:10px;align-items:center;padding:28px 24px 22px;border-bottom:1px solid var(--line);min-height:96px}.reference-heading-icon{height:32px;width:29px;display:grid;place-items:center;border:1px solid #e7dbf1;border-radius:9px;color:#725c80;font-family:Georgia,serif;font-size:22px}.references-heading h2{font-size:12px;font-weight:600;color:#4d1a78;margin:0 0 6px}.references-heading p{margin:0;font-size:9px;color:#725c80;line-height:1.4}.references-body{padding:22px 19px;overflow:auto;flex:1;min-height:0}.reference-empty{margin-top:34px;text-align:center;padding:0 8px}.reference-empty-art{width:76px;height:88px;border:1px solid #e7dbf1;background:#f3eaff;border-radius:12px;transform:rotate(-7deg);margin:0 auto 28px;position:relative;display:grid;place-items:center;color:#725c80;font-size:33px;font-family:Georgia,serif;box-shadow:10px 5px 0 -2px #faf7ff,10px 5px 0 -1px #e7dbf1}.reference-empty h3{font-family:Georgia,serif;font-size:22px;color:#725c80;font-weight:400;line-height:1.3;margin:0 0 14px}.reference-empty p{font-size:11px;line-height:1.9;color:#725c80;margin:0}.reference-empty-line{width:28px;height:2px;background:#725c80;margin:24px auto}.knowledge-count{display:inline-flex;align-items:center;gap:7px;border:1px solid #e7dbf1;background:#faf7ff;border-radius:20px;padding:7px 10px;font-size:9px;color:#725c80}.knowledge-count .dot{height:5px;width:5px;background:#725c80;border-radius:50%}.references-footer{margin:0 20px;padding:18px 2px 24px;border-top:1px solid #e7dbf1;display:flex;gap:10px;color:#725c80}.reference-shield{font-size:24px;color:#725c80}.references-footer strong{font-size:9px;font-weight:600}.references-footer p{font-size:9px;line-height:1.8;margin:5px 0 0;color:#725c80}.source-list-intro{font-size:10px;line-height:1.8;color:#725c80;margin:0 2px 15px}.source-card{padding:15px 14px;border:1px solid #e7dbf1;border-radius:12px;background:#ffffff;margin-bottom:12px;transition:border-color .2s,box-shadow .2s}.source-card.highlight{border-color:#e20092;box-shadow:0 0 0 3px #e2009217}.source-card-top{display:flex;align-items:flex-start;gap:8px}.source-number{display:grid;place-items:center;flex:none;min-width:22px;height:22px;border-radius:6px;background:#f3eaff;font-size:10px;font-weight:600;color:#4d1a78}.source-kind{font-size:8px;letter-spacing:.7px;color:#725c80;text-transform:uppercase;line-height:1.4;padding-top:4px}.source-card h3{font-size:12px;line-height:1.7;color:#4d1a78;margin:9px 0 3px;font-weight:600}.source-article{font-size:10px;color:#725c80;margin:0 0 10px}.source-excerpt{font-family:Georgia,"Times New Roman",serif;font-size:12px;line-height:1.85;color:#725c80;border-left:2px solid #725c80;padding-left:10px;margin:11px 0 14px;white-space:pre-line}.source-meta{display:flex;flex-direction:column;gap:5px;font-size:8px;line-height:1.6;color:#725c80;margin-bottom:12px}.source-link{display:flex;justify-content:space-between;text-decoration:none;font-size:10px;color:#4d1a78;border-top:1px solid #e7dbf1;padding-top:11px}.source-link:hover{text-decoration:underline}.no-citations{background:#ffeff7;border-radius:10px;padding:13px;font-size:11px;color:#7d285f;line-height:1.8}.modal{border:1px solid #e7dbf1;border-radius:23px;background:var(--paper);color:var(--ink);padding:28px 31px;box-shadow:var(--shadow);max-height:90dvh;overflow:auto;width:min(480px,calc(100vw - 28px))}.modal::backdrop{background:#24103566;backdrop-filter:blur(3px)}.modal-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}.modal-symbol{width:42px;height:42px;background:#ffeff7;border-radius:13px;color:#725c80;display:grid;place-items:center;font-size:27px}.modal h2{font-family:Georgia,serif;font-weight:400;font-size:28px;line-height:1.25;color:var(--plum);margin:10px 0 13px;letter-spacing:-.6px}.modal-description{font-size:12px;color:#725c80;line-height:1.85;margin:0 0 20px}.modal label,.admin-content label{display:block;font-size:11px;color:#5e3778;font-weight:600;margin:15px 0 7px}.modal input,.modal textarea,.modal select,.admin-content input,.admin-content select{border:1px solid #e7dbf1;border-radius:9px;background:#ffffff;color:#513264;width:100%;padding:11px 12px;font-size:12px;line-height:1.6}.modal textarea{resize:vertical}.modal input::placeholder,.modal textarea::placeholder{color:#725c80}.provider-options{display:grid;grid-template-columns:1fr 1fr;gap:10px}.provider-option{border:1px solid #e7dbf1;background:#faf7ff;border-radius:11px;padding:12px;display:grid;grid-template-columns:29px 1fr;gap:3px;text-align:left}.provider-option.selected{border-color:#b282d4;background:#f3eaff}.provider-option>span{grid-row:1/3;color:#725c80;font-size:25px;align-self:center}.provider-option strong{font-size:12px;color:#4d1a78}.provider-option small{font-size:10px;color:#725c80}.label-optional{font-size:9px;font-weight:400;color:#725c80;margin-left:5px}.key-input-wrap{display:flex;position:relative}.key-input-wrap input{padding-right:42px}.key-input-wrap button{position:absolute;right:5px;top:4px;bottom:4px;width:32px;border:0;background:none;color:#725c80;font-size:18px}.field-help{font-size:10px;line-height:1.7;color:#725c80;margin:8px 0 0}.connection-key-note{font-size:9px;line-height:1.8;color:#725c80;margin:13px 0 20px}.button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none;gap:7px;padding:11px 15px;font-size:12px;font-weight:600;border-radius:9px;border:1px solid transparent;line-height:1.5;white-space:nowrap}.button-primary{background:var(--plum);color:#ffffff}.button-primary:hover{background:var(--plum-dark)}.button-outline{border-color:#e7dbf1;background:#ffffff;color:#4d1a78}.button-outline:hover{background:#f3eaff}.button-ghost{background:transparent;color:#725c80}.button-ghost:hover{background:#f3eaff}.button-text{background:transparent;color:#725c80;font-size:10px}.full-width{width:100%}.form-error{padding:10px 12px;background:#fff0f5;border-radius:8px;font-size:11px;line-height:1.8;color:#a72f56;margin:13px 0}.toast{position:fixed;left:50%;bottom:25px;transform:translateX(-50%);z-index:100;background:var(--plum);color:#ffffff;font-size:12px;line-height:1.7;padding:13px 21px;border-radius:12px;box-shadow:var(--shadow);max-width:90vw}.toast.error{background:#a72f56}.field-grid{display:grid;grid-template-columns:1fr 1fr;gap:13px}.source-modal{width:min(750px,calc(100vw - 28px))}.modal-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:23px}.admin-app{min-height:100dvh;background:var(--cream)}.admin-header{display:flex;justify-content:space-between;align-items:center;padding:22px 5%;background:#f8f4fc;border-bottom:1px solid var(--line)}.admin-header>div{display:flex;gap:8px}.admin-content{max-width:1320px;padding:40px 40px 80px;margin:auto}.admin-login{max-width:470px;background:#ffffff;border:1px solid var(--line);padding:35px;border-radius:20px;margin:60px auto}.admin-login h1,.admin-title-row h1{font-family:Georgia,serif;color:var(--plum);font-weight:400;letter-spacing:-.6px;font-size:32px;line-height:1.3;margin:11px 0}.admin-login p,.admin-title-row p{font-size:12px;color:#725c80;line-height:1.85}.admin-login .button{width:100%;margin-top:20px}.admin-title-row{display:flex;align-items:center;justify-content:space-between;gap:15px}.stat-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin:28px 0}.stat-card{background:#ffffff;border:1px solid #e7dbf1;border-radius:14px;padding:20px}.stat-card>span{display:block;font-size:10px;color:#725c80}.stat-card>strong{display:block;font-family:Georgia,serif;font-size:31px;font-weight:400;color:#4d1a78;margin-top:11px}.admin-tabs{display:flex;gap:30px;border-bottom:1px solid #e7dbf1;margin:30px 0 25px}.admin-tabs button{background:none;border:0;border-bottom:2px solid transparent;padding:11px 1px 14px;color:#725c80;font-size:12px}.admin-tabs button[aria-selected=true]{border-color:#e20092;color:#4d1a78;font-weight:600}.admin-toolbar{display:flex;align-items:center;gap:9px;flex-wrap:wrap;margin-bottom:20px}.search-field{position:relative;flex:1;min-width:230px}.search-field>span{position:absolute;left:12px;top:6px;font-size:25px;color:#725c80}.search-field input{padding-left:38px}.admin-toolbar>select{width:auto;min-width:155px}.table-wrap{overflow:auto;border:1px solid #e7dbf1;border-radius:12px;background:#ffffff}.sources-table{border-collapse:collapse;width:100%;font-size:11px;min-width:650px}.sources-table th{text-align:left;color:#725c80;letter-spacing:.4px;font-size:9px;font-weight:600;padding:14px 16px;background:#f3eaff;border-bottom:1px solid #e7dbf1}.sources-table td{padding:16px;border-bottom:1px solid #e7dbf1;color:#725c80;line-height:1.7}.sources-table tr:last-child td{border-bottom:0}.sources-table td:first-child{max-width:360px}.source-title-button{background:none;border:0;padding:0;text-align:left;font-size:12px;color:#4d1a78;font-weight:600;line-height:1.7}.source-title-button:hover{text-decoration:underline}.source-row-law{font-size:10px;color:#725c80;display:block;margin-top:3px}.status-badge{display:inline-flex;white-space:nowrap;border-radius:5px;font-size:9px;padding:3px 7px;background:#f3eaff;color:#725c80}.status-badge.published,.status-badge.configured{background:#e5f3eb;color:#276443}.status-badge.review{background:#ffeff7;color:#7d285f}.status-badge.archived{background:#f0edf3;color:#6e6178}.table-actions{display:flex;gap:10px}.table-actions button{font-size:10px;background:none;border:0;padding:0;color:#725c80}.table-actions button:hover{text-decoration:underline}.muted{color:#725c80;font-size:11px;line-height:1.8}.admin-help{margin-top:15px}.empty-table{text-align:center;padding:45px!important}.settings-intro{max-width:690px}.settings-intro h2,.admin-panel>h2{font-size:19px;color:#4d1a78;font-weight:500}.settings-intro p{font-size:12px;line-height:1.8;color:#725c80}.provider-settings-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-top:25px}.settings-card{background:#ffffff;border:1px solid #e7dbf1;border-radius:15px;padding:23px}.provider-card-title{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.provider-card-title h3{font-size:15px;font-weight:500;color:#4d1a78;margin:0}.provider-emblem{font-size:30px;color:#725c80}.provider-emblem.claude{color:#725c80}.provider-card-title .status-badge{margin-left:auto}.settings-save-row{display:flex;align-items:flex-end;justify-content:space-between;margin-top:20px;gap:20px}.settings-save-row>div{width:300px}.feedback-card,.audit-card{border:1px solid #e7dbf1;background:#ffffff;border-radius:12px;padding:20px;margin:14px 0;font-size:12px;color:#725c80;line-height:1.8}.feedback-card p{margin:7px 0;white-space:pre-wrap;overflow-wrap:anywhere}.feedback-card time,.audit-card time{font-size:9px;color:#725c80}.feedback-card details{margin-top:12px;font-size:10px}.feedback-card details p{padding:12px;background:#f3eaff}.feedback-card summary{cursor:pointer;color:#725c80}.empty-admin{padding:35px;border:1px dashed #e7dbf1;border-radius:13px;color:#725c80;font-size:12px;text-align:center}.drawer-scrim{position:fixed;inset:0;background:#24103566;z-index:29;backdrop-filter:blur(2px)}
@keyframes pulse{0%,100%{opacity:.35}50%{opacity:1}}@media(min-width:1550px){.app-shell{grid-template-columns:275px minmax(400px,1fr) 360px}.welcome{padding-top:65px}.welcome h2{font-size:49px}.suggestions>button{padding:18px 15px}.welcome-description{font-size:13px}.suggestions strong{font-size:12px}.suggestions>button>span:not(.suggestion-icon){font-size:10px}.chat-header{padding-left:45px;padding-right:45px}.references-heading{padding-left:27px}.references-body{padding:25px}.messages{padding-left:45px;padding-right:45px}}@media(max-width:1200px){.app-shell{grid-template-columns:215px minmax(330px,1fr) 280px}.sidebar{padding:26px 15px 17px}.brand strong{font-size:16px}.brand-mark{width:36px;height:38px}.brand-mark svg{width:34px;height:34px}.chat-header{padding:23px 23px 20px}.welcome{padding:30px 25px 25px}.welcome h2{font-size:37px}.welcome-kicker{font-size:8px;letter-spacing:1.8px}.welcome-description{font-size:11px}.suggestions{gap:9px}.suggestions>button{padding:13px 10px;grid-template-columns:19px 1fr;gap:5px}.suggestions strong{font-size:10px}.suggestions>button>span:not(.suggestion-icon){font-size:9px}.suggestion-icon{font-size:17px}.welcome-trust{gap:14px;font-size:8px}.composer-area{padding-left:23px;padding-right:23px}.model-chip{max-width:160px}.references-heading{padding-left:17px;padding-right:13px;gap:8px}.references-heading h2{font-size:11px}.references-heading p{font-size:8px}.references-body{padding:20px 14px}.references-footer{margin:0 15px}.messages{padding-left:26px;padding-right:26px}.beta-tag{display:none}}@media(max-width:1050px){.app-shell{grid-template-columns:215px minmax(330px,1fr)}.references{display:none}.references.open{display:flex;position:fixed;top:0;right:0;bottom:0;width:340px;max-width:90vw;z-index:31;box-shadow:-15px 0 50px #4d1a7820}.mobile-sources,.close-references{display:grid}.close-references{margin-left:auto}.welcome{max-width:650px;padding-top:35px}.welcome h2{font-size:45px}.welcome-description{font-size:12px}.suggestions strong{font-size:11px}.suggestions>button>span:not(.suggestion-icon){font-size:10px}.suggestions>button{padding:17px 13px}.welcome-trust{font-size:9px}.references-heading{padding:25px 20px}.references-body{padding:22px 20px}.model-chip{max-width:210px}.messages{padding-left:35px;padding-right:35px}.composer-area{padding-left:30px;padding-right:30px}.admin-content{padding:30px 25px 65px}}@media(max-width:700px), (max-width:1050px) and (max-height:500px){.app-shell{display:flex}.chat-main{width:100%}.sidebar{display:none}.sidebar.open{display:flex;position:fixed;top:0;left:0;bottom:0;width:275px;max-width:88vw;z-index:31;box-shadow:15px 0 50px #4d1a7820;padding:30px 22px 22px}.sidebar.open .brand strong{font-size:19px}.sidebar.open .brand-mark{width:42px;height:44px}.sidebar.open .brand-mark svg{width:39px;height:39px}.mobile-menu{display:grid;font-size:20px;width:24px}.chat-header{min-height:78px;padding:17px 15px 15px;gap:8px}.header-left{gap:10px}.eyebrow{font-size:7px;letter-spacing:1.4px}.chat-header h1{font-size:14px;margin-top:5px}.header-actions{gap:3px}.model-chip{max-width:135px;font-size:9px;padding:6px 8px;gap:4px}.model-chip .tiny-sparkle{font-size:16px}.mobile-sources{width:29px;font-size:22px}.welcome{padding:31px 24px 20px;max-width:510px}.welcome-symbol{margin-bottom:19px;width:76px;height:71px}.welcome-symbol>span{width:59px;height:59px;font-size:36px;border-radius:20px 20px 20px 5px}.welcome-symbol i{width:26px;height:26px}.welcome-symbol b{font-size:14px;right:8px;bottom:2px}.welcome-kicker{font-size:7px;letter-spacing:1.6px;margin-bottom:13px}.welcome h2{font-size:37px;letter-spacing:-1.3px}.welcome-description{font-size:11px;line-height:1.8;margin:17px 0 22px}.suggestions{gap:9px}.suggestions>button{padding:13px 10px;grid-template-columns:19px 1fr;gap:4px}.suggestions strong{font-size:10px;line-height:1.5;padding-right:2px}.suggestions>button>span:not(.suggestion-icon){font-size:8px;line-height:1.7}.suggestion-icon{font-size:17px}.suggestions b{right:6px;top:9px;font-size:10px}.welcome-trust{font-size:8px;gap:13px;margin-top:21px}.composer-area{padding:7px 13px 11px}.composer{padding:12px 13px 9px;border-radius:15px}.composer textarea{font-size:12px}.composer-bottom{margin-top:8px}.composer-bottom>span{font-size:8px}.send-button,.stop-button{width:30px;height:30px;border-radius:9px}.disclosure{font-size:7px;line-height:1.65;margin-top:8px;max-width:420px}.messages{padding:23px 20px 7px}.message-content{font-size:13px;line-height:1.9}.user-bubble{font-size:13px;padding:11px 15px;max-width:92%}.assistant-message-head{font-size:10px}.message-actions{gap:10px;flex-wrap:wrap}.message-actions button{font-size:9px}.answer-check{font-size:8px}.message-actions .answer-sources{margin-left:0}.modal{padding:23px}.modal h2{font-size:25px}.modal-description{font-size:11px}.field-grid{gap:10px}.modal label{font-size:10px}.modal input,.modal textarea,.modal select{font-size:11px;padding:10px}.connection-key-note{font-size:8px}.admin-header{padding:17px 20px}.admin-header .brand strong{font-size:15px}.admin-header .brand small{font-size:8px}.admin-header .brand-mark{width:32px;height:35px;font-size:25px}.admin-header .button{font-size:10px;padding:7px}.admin-content{padding:27px 18px 60px}.admin-login{padding:25px;margin:35px 0}.admin-login h1,.admin-title-row h1{font-size:27px}.admin-title-row{align-items:flex-start;flex-direction:column}.admin-title-row .button{width:100%;margin-top:6px}.stat-grid{grid-template-columns:1fr 1fr;gap:10px;margin:22px 0}.stat-card{padding:16px}.stat-card>span{font-size:9px}.stat-card>strong{font-size:27px;margin-top:8px}.admin-tabs{gap:23px;overflow:auto;white-space:nowrap}.admin-tabs button{font-size:11px}.admin-toolbar{gap:8px}.search-field{min-width:100%;flex-basis:100%}.admin-toolbar>.button{font-size:10px;padding:9px 10px}.admin-toolbar>select{flex:1;min-width:145px}.provider-settings-grid{grid-template-columns:1fr;gap:15px}.settings-save-row{align-items:stretch;flex-direction:column}.settings-save-row>div{width:100%}.source-modal{max-height:92dvh}.source-modal .field-grid{grid-template-columns:1fr}.source-modal .field-grid>div>label{margin-top:15px}.modal-actions .button{font-size:11px}.toast{font-size:11px;bottom:17px}.conversation-delete{opacity:1}.knowledge-notice{font-size:10px}}@media(max-height:800px) and (min-width:701px){.welcome{padding-top:25px}.welcome-symbol{margin-bottom:15px;width:69px;height:65px}.welcome-symbol>span{width:55px;height:55px;font-size:34px;border-radius:19px}.welcome-symbol i{width:23px;height:23px}.welcome-symbol b{font-size:13px;right:8px;bottom:2px}.welcome h2{font-size:37px}.welcome-description{margin:14px 0 20px}.welcome-kicker{margin-bottom:12px}.welcome-trust{margin-top:18px}.suggestions>button{padding-top:13px;padding-bottom:13px}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
.preview-banner{font-size:10px;line-height:1.7;color:#7d285f;background:#ffeff7;border:1px solid #f1c8e1;border-radius:7px;padding:7px 10px;margin:0 0 9px}.answer-preview{display:inline-block;font-size:9px;margin-bottom:13px}.preview-option{display:flex!important;align-items:flex-start;gap:9px;background:#ffeff7;padding:12px;border-radius:9px;font-size:11px!important;line-height:1.6}.preview-option input,.remove-key-label input{width:15px!important;height:15px;flex:none;accent-color:var(--plum);margin:2px 0 0;padding:0}.preview-option small{display:block;font-size:9px;font-weight:400;color:#7d285f;margin-top:3px}.remove-key-label{display:flex!important;align-items:flex-start;gap:7px;font-size:10px!important;font-weight:400!important;color:#725c80!important;line-height:1.6}.source-card .status-badge{margin-top:9px}
/* Keep conditional controls hidden even when their component uses !important. */
[hidden]{display:none!important}
.public-assistant-label{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line);background:#ffffff;padding:9px 13px;border-radius:20px;font-size:10px;color:#725c80;white-space:nowrap}

/* Mobile layout: readable content, reachable controls, and the visual viewport. */
.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.close-sidebar { display: none; }

@media (max-width: 1050px) {
  .references.open {
    top: var(--chat-top, 0px);
    bottom: auto;
    height: var(--chat-height, 100dvh);
    padding-top: env(safe-area-inset-top, 0px);
    padding-right: env(safe-area-inset-right, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    overflow: hidden;
    overscroll-behavior: contain;
  }
  .references-heading,
  .references-footer { flex-shrink: 0; }
  .references-body {
    min-width: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .source-card,
  .source-card h3,
  .source-excerpt,
  .source-meta,
  .source-link,
  .knowledge-count {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .source-link {
    min-height: 44px;
    align-items: center;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    font-size: 13px;
  }
  .close-references {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
}

@media (max-width: 700px), (max-width: 1050px) and (max-height: 500px) {
  .app-shell {
    position: fixed;
    top: var(--chat-top, 0px);
    right: 0;
    bottom: auto;
    left: 0;
    width: 100%;
    height: var(--chat-height, 100dvh);
    overflow: hidden;
  }
  .chat-main {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
  }
  .chat-scroll {
    min-width: 0;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .chat-header {
    min-height: 72px;
    gap: 8px;
    padding-top: calc(10px + env(safe-area-inset-top, 0px));
    padding-right: max(12px, env(safe-area-inset-right, 0px));
    padding-bottom: 10px;
    padding-left: max(12px, env(safe-area-inset-left, 0px));
  }
  .header-left {
    flex: 1;
    min-width: 0;
    gap: 5px;
  }
  .header-left > div { min-width: 0; }
  .chat-header .eyebrow { display: none; }
  .chat-header h1 {
    margin: 0;
    font-size: 16px;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .header-actions { flex: none; gap: 3px; }
  .public-assistant-label {
    padding: 7px 9px;
    font-size: 11px;
  }
  .model-chip {
    min-height: 44px;
    max-width: 110px;
    padding: 7px 8px;
    font-size: 11px;
  }
  .icon-button,
  .mobile-menu,
  .mobile-sources,
  .close-references,
  .close-sidebar {
    flex-shrink: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
  }
  .mobile-menu { font-size: 23px; }
  .mobile-sources { font-size: 25px; }
  .close-sidebar { display: grid; font-size: 29px; }

  .sidebar.open {
    top: var(--chat-top, 0px);
    bottom: auto;
    width: min(340px, 92vw);
    max-width: none;
    height: var(--chat-height, 100dvh);
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    padding-left: max(18px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .sidebar-brand-row,
  .sidebar-section-label,
  .sidebar-bottom,
  .session-note,
  .new-chat { flex-shrink: 0; }
  .sidebar-brand-row .brand { min-width: 0; gap: 8px; }
  .sidebar.open .brand strong { font-size: 18px; }
  .sidebar.open .brand small { font-size: 11px; }
  .sidebar.open .brand-mark { width: 36px; height: 39px; }
  .sidebar.open .brand-mark svg { width: 34px; height: 34px; }
  .new-chat {
    min-height: 48px;
    margin: 24px 0 23px;
    font-size: 14px;
  }
  .sidebar-section-label { font-size: 11px; letter-spacing: 1px; }
  .conversation-list { min-height: 0; }
  .conversation-item { gap: 3px; padding: 0; }
  .conversation-open {
    min-height: 44px;
    padding: 10px 8px;
    font-size: 14px;
  }
  .conversation-delete {
    flex-shrink: 0;
    width: 44px;
    min-height: 44px;
    font-size: 24px;
  }
  .empty-conversations { font-size: 14px; }
  .session-note { padding: 13px 4px; font-size: 12px; }
  .sidebar-links { gap: 12px; margin-top: 10px; font-size: 12px; }
  .sidebar-links a { display: flex; align-items: center; min-height: 44px; }
  .sidebar-settings { min-height: 48px; }
  .sidebar-settings strong { font-size: 14px; }
  .sidebar-settings small { font-size: 12px; }
  .sidebar-footnote { font-size: 11px; }

  .welcome {
    padding: 25px max(20px, env(safe-area-inset-right, 0px)) 24px max(20px, env(safe-area-inset-left, 0px));
  }
  .welcome-kicker { font-size: 10px; line-height: 1.7; letter-spacing: 1.3px; }
  .welcome-description { font-size: 14px; line-height: 1.75; margin-bottom: 24px; }
  .suggestions { gap: 11px; }
  .suggestions > button {
    min-width: 0;
    padding: 15px 13px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 5px 8px;
  }
  .suggestions strong { font-size: 15px; line-height: 1.45; padding-right: 9px; }
  .suggestions > button > span:not(.suggestion-icon) { font-size: 14px; line-height: 1.55; }
  .suggestion-icon { font-size: 23px; }
  .suggestions b { top: 13px; right: 10px; font-size: 15px; }
  .welcome-trust { flex-wrap: wrap; gap: 8px 16px; font-size: 12px; line-height: 1.6; }
  .knowledge-notice { padding: 13px 14px; font-size: 12px; line-height: 1.75; }
  .messages {
    padding-top: 22px;
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    padding-bottom: 9px;
    padding-left: max(18px, env(safe-area-inset-left, 0px));
  }
  .message-content,
  .user-bubble { font-size: 16px; line-height: 1.75; }
  .message-content h3 { font-size: 17px; }
  .assistant-message-head { flex-wrap: wrap; font-size: 12px; gap: 7px; }
  .message-state { font-size: 11px; }
  .message-actions { gap: 5px 12px; }
  .message-actions button { min-height: 44px; padding: 8px 3px; font-size: 12px; }
  .answer-check { font-size: 11px; line-height: 1.6; }
  .citation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: 5px 8px;
    margin: 1px 2px;
    font-size: 12px;
    vertical-align: middle;
  }
  .message-incomplete,
  .message-error { font-size: 13px; }
  .referral-box strong { font-size: 14px; line-height: 1.5; }
  .referral-box p { font-size: 14px; line-height: 1.7; }

  .composer-area {
    min-width: 0;
    padding-top: 9px;
    padding-right: max(13px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(11px + env(safe-area-inset-bottom, 0px));
    padding-left: max(13px, env(safe-area-inset-left, 0px));
  }
  .composer { padding: 12px 13px 10px; }
  .composer textarea {
    min-height: 27px;
    max-height: var(--composer-max-height, 140px);
    font-size: 16px;
    line-height: 1.55;
  }
  .composer-bottom { gap: 10px; margin-top: 9px; }
  .composer-bottom > span { font-size: 12px; line-height: 1.5; color: #725c80; }
  .composer-spark { flex-shrink: 0; }
  .send-button,
  .stop-button {
    flex-shrink: 0;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    border-radius: 12px;
  }
  .send-button { font-size: 28px; }
  .stop-button { font-size: 15px; }
  .disclosure { font-size: 12px; line-height: 1.6; color: #725c80; margin-top: 9px; }
  .disclosure > span { white-space: normal; }
  .status-row { font-size: 12px; line-height: 1.5; }
  .preview-banner { font-size: 12px; line-height: 1.6; }
  .answer-preview { font-size: 11px; }

  .references-heading { min-height: 80px; padding: 15px 16px; }
  .references-heading > div:not(.reference-heading-icon) { min-width: 0; }
  .references-heading h2 { font-size: 14px; line-height: 1.45; }
  .references-heading p { font-size: 12px; line-height: 1.5; }
  .references-body { padding: 18px 15px; }
  .reference-empty p { font-size: 14px; line-height: 1.75; }
  .source-list-intro { font-size: 12px; line-height: 1.75; }
  .source-card { padding: 15px 14px; }
  .source-kind { font-size: 11px; line-height: 1.5; }
  .source-number { min-width: 27px; height: 27px; font-size: 12px; }
  .source-card h3 { font-size: 14px; line-height: 1.65; }
  .source-article { font-size: 13px; line-height: 1.6; }
  .source-excerpt { font-size: 14px; line-height: 1.8; }
  .source-meta { font-size: 12px; line-height: 1.6; }
  .source-link { font-size: 14px; }
  .source-card .status-badge { font-size: 11px; }
  .knowledge-count { max-width: 100%; font-size: 11px; line-height: 1.6; }
  .references-footer { padding-top: 14px; padding-bottom: 16px; }
  .references-footer strong { font-size: 12px; line-height: 1.5; }
  .references-footer p { font-size: 12px; line-height: 1.65; }
  .no-citations { font-size: 14px; line-height: 1.75; }

  .keyboard-open .chat-header {
    min-height: 56px;
    padding-top: calc(3px + env(safe-area-inset-top, 0px));
    padding-bottom: 3px;
  }
  .keyboard-open .composer-area { padding-top: 5px; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
  .keyboard-open .composer { padding-top: 8px; padding-bottom: 7px; }
  .keyboard-open .composer-bottom { justify-content: flex-end; margin-top: 5px; }
  .keyboard-open .disclosure,
  .keyboard-open .composer-bottom > span { display: none; }

  .modal {
    position: fixed;
    top: calc(var(--chat-top, 0px) + max(12px, env(safe-area-inset-top, 0px)));
    bottom: auto;
    width: min(480px, calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)));
    max-height: calc(var(--chat-height, 100dvh) - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    margin: 0 auto;
    padding: 22px;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .source-modal { max-height: calc(var(--chat-height, 100dvh) - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)); }
  .modal-description { font-size: 14px; line-height: 1.75; }
  .modal label,
  .admin-content label { font-size: 13px; line-height: 1.5; }
  .modal input,
  .modal textarea,
  .modal select,
  .admin-content input,
  .admin-content select {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 16px;
    line-height: 1.5;
  }
  .modal textarea { min-height: 120px; }
  .modal .button,
  .admin-app .button { min-height: 44px; font-size: 13px; white-space: normal; }
  .modal-actions { flex-wrap: wrap; }
  .modal-actions .button { flex: 1; min-width: 0; }
  .key-input-wrap input { padding-right: 52px; }
  .key-input-wrap button { top: 0; bottom: 0; right: 2px; width: 44px; min-height: 44px; }
  .provider-option { min-height: 65px; }
  .provider-option strong { font-size: 14px; }
  .provider-option small { font-size: 12px; }
  .field-help,
  .connection-key-note { font-size: 12px; line-height: 1.7; }
  .form-error { font-size: 13px; }
  .preview-option { font-size: 13px !important; }
  .preview-option small { font-size: 12px; }
  .remove-key-label { font-size: 12px !important; }

  .admin-header {
    flex-wrap: wrap;
    gap: 12px;
    padding-top: calc(16px + env(safe-area-inset-top, 0px));
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    padding-bottom: 16px;
    padding-left: max(18px, env(safe-area-inset-left, 0px));
  }
  .admin-header > div { flex-wrap: wrap; margin-left: auto; }
  .admin-content {
    padding-right: max(18px, env(safe-area-inset-right, 0px));
    padding-bottom: calc(45px + env(safe-area-inset-bottom, 0px));
    padding-left: max(18px, env(safe-area-inset-left, 0px));
  }
  .admin-login p,
  .admin-title-row p,
  .settings-intro p,
  .muted { font-size: 14px; line-height: 1.75; }
  .stat-card > span { font-size: 12px; line-height: 1.5; }
  .admin-tabs { gap: 20px; overscroll-behavior-inline: contain; }
  .admin-tabs button { min-height: 44px; font-size: 14px; }
  .admin-toolbar > .button { min-height: 44px; font-size: 13px; }
  .admin-toolbar > select { max-width: 100%; }
  .table-wrap { overscroll-behavior-inline: contain; -webkit-overflow-scrolling: touch; }
  .source-title-button { min-height: 44px; font-size: 14px; overflow-wrap: anywhere; }
  .table-actions button { min-height: 44px; font-size: 13px; }
  .feedback-card,
  .audit-card { font-size: 14px; overflow-wrap: anywhere; }
  .feedback-card time,
  .audit-card time { font-size: 12px; }
  .feedback-card details { font-size: 12px; }
  .feedback-card summary { display: flex; align-items: center; min-height: 44px; }
  .toast {
    bottom: calc(14px + env(safe-area-inset-bottom, 0px));
    max-width: calc(100vw - 30px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .suggestions { grid-template-columns: minmax(0, 1fr); }
  .suggestions > button {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 4px 9px;
    padding: 14px 15px;
  }
  .suggestions > button > span:not(.suggestion-icon) { line-height: 1.5; }
  .welcome { padding-right: max(18px, env(safe-area-inset-right, 0px)); padding-left: max(18px, env(safe-area-inset-left, 0px)); }
  .welcome h2 { font-size: clamp(32px, 9.2vw, 39px); }
  .composer-spark { display: none; }
}

/* Keep room for the conversation in landscape and other short viewports. */
@media (max-width: 1050px) and (max-height: 500px) {
  .chat-header { min-height: 56px; padding-top: calc(3px + env(safe-area-inset-top, 0px)); padding-bottom: 3px; }
  .composer-area { padding-top: 5px; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px)); }
  .composer { padding-top: 8px; padding-bottom: 7px; }
  .composer-bottom { margin-top: 5px; }
  .disclosure { display: none; }
  .welcome-symbol { display: none; }
  .welcome { padding-top: 20px; }
}

/* Mom Got a Job identity: original white, purple, and pink palette. */
:root {
  --brand-purple: #4d1a78;
  --brand-purple-soft: #f3eaff;
  --brand-pink: #e20092;
  --brand-pink-soft: #ffeff7;
  --plum: var(--brand-purple);
  --plum-dark: #351153;
  --plum-soft: #6b408b;
  --cream: #ffffff;
  --paper: #ffffff;
  --peach: var(--brand-pink);
  --peach-light: var(--brand-pink-soft);
  --ink: #2f173e;
  --muted: #725c80;
  --line: #e7dbf1;
}
.brand { flex-direction: column; align-items: flex-start; gap: 8px; }
.foundation-logo {
  display: block;
  width: 120px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}
.brand-project-label {
  display: block;
  color: var(--brand-purple);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: .3px;
}
.admin-header .brand { gap: 5px; }
.admin-header .foundation-logo { width: 96px; }
.welcome-symbol {
  width: 128px;
  height: 76px;
  margin: 0 auto 23px;
  background: none;
  transform: none;
}
.welcome-brand-logo {
  display: block;
  width: 128px;
  max-width: 100%;
  height: auto;
  max-height: 76px;
  object-fit: contain;
}
.header-title-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.header-title-row h1 { min-width: 0; }
.header-brand-logo { display: none; width: 40px; height: 24px; flex: none; object-fit: contain; }
.assistant-avatar {
  display: block;
  flex: none;
  width: 32px;
  height: 22px;
  object-fit: contain;
  border-radius: 0;
  background: none;
}
.sidebar { background: #f8f4fc; }
.references { background: #faf7ff; }
.chat-main,
.composer,
.source-card,
.suggestions > button,
.settings-card { background: #ffffff; }
.welcome h2 em,
.suggestion-icon,
.tiny-sparkle { color: var(--brand-pink); }
.conversation-item.active { color: var(--brand-purple); background: var(--brand-purple-soft); }
.user-bubble { color: var(--brand-purple); background: var(--brand-pink-soft); }
.citation,
.source-number { color: #a9006c; background: var(--brand-pink-soft); }
.citation:hover { color: #ffffff; background: var(--brand-purple); }
.source-excerpt { color: #634573; border-left-color: #e8add2; }
.source-link { color: var(--brand-purple); }
.source-link:hover { color: #ad006f; }
.knowledge-notice,
.referral-box,
.preview-banner,
.no-citations { color: #762759; border-color: #f1c8e1; background: var(--brand-pink-soft); }
.composer:focus-within { border-color: #b282d4; box-shadow: 0 0 0 3px #4d1a7810; }
.suggestions > button:hover { border-color: #d880b9; }
.public-assistant-label { color: var(--brand-purple); border-color: #e7dbf1; background: #ffffff; }

@media (max-width: 700px), (max-width: 1050px) and (max-height: 500px) {
  .header-brand-logo { display: block; width: 40px; height: 24px; }
  .header-title-row { gap: 7px; }
  .chat-header h1 { font-size: 15px; }
  .brand-project-label { font-size: 12px; }
  .sidebar-brand-row .brand { flex-direction: column; align-items: flex-start; gap: 8px; }
  .composer-bottom > span,
  .disclosure { color: #725c80; }
}
@media (max-width: 380px) {
  .public-assistant-label { display: none; }
  .header-title-row { gap: 6px; }
  .chat-header h1 { font-size: 14px; }
}

.conversation-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--brand-purple);
  font-size: 12px;
}
.conversation-link-button:hover { background: var(--brand-purple-soft); }
.conversation-link-button > span:first-child { font-size: 22px; }
.conversation-notice {
  margin-bottom: 9px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: #634573;
  background: #faf7ff;
  font-size: 12px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.read-only .conversation-notice { background: var(--brand-pink-soft); border-color: #f1c8e1; }
.read-only #chatForm { display: none; }
.keyboard-open:not(.read-only) .conversation-notice { display: none; }
@media (max-width: 1050px) {
  .conversation-link-button { width: 44px; min-width: 44px; padding: 0; }
  .conversation-link-label { display: none; }
}
@media (max-width: 700px), (max-width: 1050px) and (max-height: 500px) {
  #copyConversationLink:not([hidden]) ~ .public-assistant-label { display: none; }
  .conversation-notice { font-size: 12px; padding: 8px 10px; }
}

/* Administrator model catalog and documented token pricing. */
.model-catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 23px 0 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #faf7ff;
}
.model-catalog-toolbar strong { color: var(--brand-purple); font-size: 13px; }
.model-catalog-toolbar p { margin: 6px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.model-catalog-toolbar > div { min-width: 0; }
.model-catalog-toolbar .button { flex-shrink: 0; }
.catalog-provider-status { margin-top: 16px; color: var(--muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.catalog-warning { color: #8c235b !important; }
.catalog-count { font-size: 10px; }
.model-compatibility { margin-top: 11px; padding: 11px 12px; border: 1px solid #e7dbf1; border-radius: 8px; color: #634573; background: #f3eaff; font-size: 11px; line-height: 1.75; overflow-wrap: anywhere; }
.model-compatibility.unsupported { border-color: #efb8d8; color: #8c235b; background: #ffeff7; }
.model-pricing { margin-top: 20px; padding: 15px 16px; background: #faf7ff; border: 1px solid var(--line); border-radius: 11px; }
.model-pricing h4 { margin: 0 0 11px; color: var(--brand-purple); font-size: 12px; font-weight: 600; line-height: 1.7; }
.model-price-list { margin: 0; }
.model-price-list > div { display: grid; grid-template-columns: minmax(90px, 1fr) minmax(0, 1.4fr); gap: 10px; padding: 7px 0; border-bottom: 1px solid #eae0f2; }
.model-price-list > div:last-child { border-bottom: 0; }
.model-price-list dt { color: var(--muted); font-size: 11px; line-height: 1.7; }
.model-price-list dd { margin: 0; color: var(--brand-purple); font-size: 11px; font-weight: 600; line-height: 1.7; text-align: right; overflow-wrap: anywhere; }
.model-pricing-note,
.model-pricing-date { font-size: 10px; line-height: 1.8; color: var(--muted); margin: 11px 0 0; overflow-wrap: anywhere; }
.model-pricing-date { color: #6b408b; }
.model-doc-links { display: flex; flex-wrap: wrap; gap: 5px 15px; margin-top: 9px; }
.model-doc-links a { display: inline-flex; align-items: center; min-height: 34px; color: var(--brand-purple); font-size: 11px; text-underline-offset: 3px; }
.model-cost-note { max-width: 940px; margin: 20px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; }
.settings-card { min-width: 0; }
.settings-card select { max-width: 100%; text-overflow: ellipsis; }
.settings-card select option { color: var(--ink); background: #ffffff; }
.settings-card select option:disabled { color: #867391; }
@media (max-width: 700px), (max-width: 1050px) and (max-height: 500px) {
  .model-catalog-toolbar { align-items: stretch; flex-direction: column; gap: 13px; padding: 17px; }
  .model-catalog-toolbar strong { font-size: 15px; }
  .model-catalog-toolbar p,
  .catalog-provider-status,
  .catalog-count,
  .model-compatibility { font-size: 12px; }
  .model-pricing { padding: 14px; }
  .model-pricing h4 { font-size: 14px; }
  .model-price-list dt,
  .model-price-list dd { font-size: 13px; }
  .model-pricing-note,
  .model-pricing-date { font-size: 12px; }
  .model-doc-links a { min-height: 44px; font-size: 13px; }
  .model-cost-note { font-size: 13px; }
}

/* DeepSeek has one fixed model; only its effort and credential are editable. */
.settings-card input[readonly] {
  color: var(--brand-purple);
  border-color: var(--line);
  background: var(--brand-purple-soft);
  font-weight: 600;
}
.provider-emblem.deepseek { color: var(--brand-purple); }
.provider-options { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.provider-options .provider-option {
  min-width: 0;
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 12px 6px;
  text-align: center;
  justify-items: center;
}
.provider-options .provider-option > span { grid-row: auto; font-size: 26px; line-height: 1.15; }
.provider-options .provider-option strong { max-width: 100%; font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.provider-options .provider-option small { font-size: 11px; line-height: 1.5; }
@media (min-width: 1200px) {
  .provider-settings-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
