/* Nova 12 — conversation system, retaining the Nova blue / sky / gold palette. */
:root{--header:56px;--sidebar-width:260px;--conversation-width:768px;--surface:#fff;--surface-soft:#f5f8fd;--surface-hover:#eaf2ff;--text:#182e50;--muted:#60718a;--line:#e1e8f1;--navy:#10264b;--blue:#225cdb;--gold:#edbe5a;--menu-shadow:0 8px 32px #10264b1a,0 2px 7px #10264b08;--radius:10px}
button,input,select,textarea{font-size:14px}button{font-weight:450;box-shadow:none}button svg,.ui-icon{width:20px;height:20px;flex:none}button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #6c9ef5;outline-offset:3px}button:disabled{opacity:.45;cursor:not-allowed}.primary{box-shadow:none;border-radius:22px;font-weight:550}.primary:hover{background:#194fca}
#appPanel{background:var(--surface)}.layout{height:100dvh;grid-template-columns:var(--sidebar-width) minmax(0,1fr)}
#appHeader{position:absolute;inset:0 auto auto 0;width:var(--sidebar-width);height:64px;padding:12px 12px 12px 18px;border:0;background:var(--navy);color:#fff;z-index:36;gap:8px}.brand{gap:9px}.brand-star{width:26px;height:26px}.brand h1{font-size:24px;letter-spacing:-.055em;font-weight:650}.brand p{display:none}#appHeader .header-leading{min-width:0}#sidebarCollapse{border:0;background:transparent;color:#bfcee3;margin-left:auto;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px;border-radius:8px}#sidebarCollapse:hover{color:#fff;background:#213d63}#sidebarCollapse svg{width:19px;height:19px}
#appSidebar{padding:70px 10px 10px;background:var(--navy);border-right:1px solid #193257;overflow:hidden;gap:0;min-height:0}.sidebar-top{display:none}#appSidebar>nav{display:grid;gap:2px;flex-shrink:0}nav button,nav #newChat{width:100%;display:flex;align-items:center;justify-content:flex-start;gap:12px;min-height:42px;padding:9px 12px;background:transparent;border:0;border-radius:8px;color:#d0dcef;font-size:14px;font-weight:450;text-align:left;box-shadow:none}nav #newChat{color:#fff}nav button:hover,nav #newChat:hover{background:#213d63;color:#fff}nav .active{background:#254873;color:white}nav svg{width:19px;height:19px}#chatNav{display:none}
.saved-chats{margin-top:22px;min-width:0}.saved-chats[open]{flex:1 1 auto;min-height:72px;overflow:auto;scrollbar-width:thin;scrollbar-color:#486182 transparent}.saved-chats:not([open]){flex:0 0 auto}.saved-chats summary{font-size:12px;font-weight:500;min-height:36px;color:#afc1dc;padding:8px 12px;align-items:center}.saved-chats summary:after{content:'';width:12px;height:12px;background:currentColor;mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 10 5 5 5-5' fill='none' stroke='black' stroke-width='2'/%3E%3C/svg%3E") center/contain no-repeat;transform:rotate(180deg)}.saved-chats:not([open]) summary:after{content:'';transform:none}
.archive-tabs{display:flex;gap:2px;background:transparent;margin:0 8px 10px;padding:0;border-radius:0}.archive-tabs button{min-height:32px;padding:6px 10px;border:0;border-radius:7px;font-size:11px;color:#a8bddb;flex:0 0 auto;background:transparent}.archive-tabs [aria-pressed=true]{background:#25466e;color:#fff;box-shadow:none}.archive-tabs button:hover{background:#213d63}
.chat-search-field{position:relative;margin:0 8px 12px}.chat-search-field>.ui-icon{position:absolute;top:11px;left:10px;width:16px;height:16px;color:#a9bedb;pointer-events:none}#chatSearch{width:100%;min-height:38px;margin:0;border:1px solid #365174;border-radius:8px;padding:9px 10px 9px 33px;background:#163155;color:#fff;font-size:12px}#chatSearch::placeholder{color:#a9bdd9}#chatList{padding:0;font-size:12px;color:#aebfda}.saved-chat-row{margin:1px 0;gap:0;border-radius:8px;position:relative}.saved-chat{border:0!important;border-radius:8px;font-size:13px;font-weight:400;line-height:1.45;min-height:38px;padding:10px 12px;color:#d3def0;background:transparent;max-width:100%}.saved-chat:hover{background:#203d64;color:#fff}.saved-chat.active{background:#284972;color:#fff}.saved-chat .chat-row-date{display:none}.saved-chat small{font-size:10px;line-height:1.5;margin-top:3px;color:#c3d4eb}.chat-row-actions{flex:none;padding-right:3px;gap:0}.chat-row-action{display:grid;place-items:center;width:32px;height:36px;min-height:36px;min-width:32px;padding:7px;color:#a9bedb;border:0;border-radius:6px;background:transparent}.chat-row-action svg{width:18px;height:18px}.chat-row-action:hover{color:#fff;background:#31537a}.chat-row-action.purge-action{color:#f3bac5}.trash-chat-row{padding-bottom:8px;border-color:#294569}.trash-chat-row .chat-row-actions{justify-content:flex-end}.archive-help,.archive-status{font-size:11px;line-height:1.65;color:#b8c9e1;margin:8px 12px}.archive-status:empty{display:none}#moreChats{min-height:36px;font-size:12px;background:transparent;border-color:#355174;color:#d3e1f4}
@media(hover:hover){.saved-chat-row .chat-row-actions{opacity:0}.saved-chat-row:hover .chat-row-actions,.saved-chat-row:focus-within .chat-row-actions,.saved-chat-row:has(.saved-chat.active) .chat-row-actions,.trash-chat-row .chat-row-actions{opacity:1}}
.sidebar-bottom{display:none}.sidebar-account{flex-shrink:0;border-top:1px solid #294261;padding-top:8px;margin-top:10px}.account-button{display:flex;align-items:center;gap:10px;width:100%;padding:8px 10px;min-height:56px;color:#fff;background:transparent;border:0;border-radius:9px;text-align:left}.account-button:hover{background:#203c63}.account-avatar{height:32px;width:32px;display:grid;place-items:center;flex:none;border-radius:50%;background:#f4d58e;color:#25334a;font-size:12px;font-weight:600;letter-spacing:.01em}.account-copy{min-width:0;flex:1}.account-copy strong{display:block;color:#f0f5fe;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.account-copy small{display:block;color:#9fb5d3;font-size:10px;margin-top:3px}#userName{max-width:none;color:inherit;font-size:13px}.account-more{color:#adbfda}.account-more svg{width:18px;height:18px}
#appMain{padding:0 24px 12px;background:#fff;min-height:0}#chatView{max-width:none;height:100%;min-height:0;position:relative;display:flex;flex-direction:column}.chat-toolbar{flex:none;padding-top:6px}.model-bar{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:center;gap:8px;min-height:48px}.model-bar>.mode-field{grid-column:2}.mode-field{min-width:0;display:block}.model-bar>.service-button{grid-column:3;justify-self:end}.mode-field label,.model-field label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}#sidebarReopen{display:none;grid-column:1;grid-row:1;background:transparent;border:0;width:40px;min-width:40px;padding:9px}.sidebar-collapsed #sidebarReopen{display:grid}#sidebarReopen:hover{background:var(--surface-hover)}.mode-segment{display:none}.enhanced-ui .mode-segment{display:flex;padding:3px;background:#edf3fb;border:1px solid #e8eef6;border-radius:22px;gap:2px}.mode-segment button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:32px;min-width:78px;padding:6px 15px;border:0;border-radius:18px;background:transparent;color:#61718a;font-size:13px;font-weight:500;white-space:nowrap}.mode-segment button .ui-icon{width:15px;height:15px}.mode-segment button[aria-pressed=true]{color:#16345c;background:white;box-shadow:0 1px 5px #19396312}.mode-segment button:disabled[aria-pressed=true]{opacity:1}.mode-segment button:hover:enabled{background:#fff}.service-button{display:flex;align-items:center;gap:7px;min-height:36px;min-width:0;max-width:220px;padding:6px 10px;background:transparent;border:0;border-radius:20px;color:#58708e}.service-button:hover{background:#f1f6fc}.service-button #queueHeadline{font-size:11px;font-weight:450;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.queue-light{width:6px;height:6px;background:#5088d4;border-radius:50%;flex:none}.service-info .ui-icon{width:13px;height:13px}.service-button.is-offline{color:#986b43}.service-button.is-offline .queue-light{background:#ba864f}.service-button.is-busy .queue-light{background:#bc8c28}
.nova-popover{position:fixed;inset:auto;margin:0;padding:6px;width:256px;max-height:min(70dvh,460px);overflow:auto;border:1px solid #dfe6ef;border-radius:15px;background:#fff;color:var(--text);box-shadow:var(--menu-shadow)}.nova-popover:popover-open{display:block}.popover-label{font-size:11px;font-weight:500;color:#60718a;padding:10px 12px}.popover-separator{height:1px;background:#e8edf4;margin:5px 5px}.nova-popover button{display:flex;align-items:center;gap:11px;width:100%;min-height:42px;padding:10px 12px;text-align:left;border:0;border-radius:9px;background:transparent;color:#273c59;font-size:13px;font-weight:400}.nova-popover button .ui-icon{width:18px;height:18px;color:#5d708b}.nova-popover button:hover{background:#f0f5fc}.nova-popover button:focus-visible{outline-offset:-2px}.nova-popover .menu-danger,.nova-popover .menu-danger .ui-icon{color:#af3850}.model-popover{width:340px}.model-popover button{align-items:flex-start;line-height:1.5;overflow-wrap:anywhere}.model-popover button .ui-icon{margin-top:1px;flex:none}.model-popover [aria-checked=true]{background:#edf4ff;color:#1d4d96}.model-popover [aria-checked=true] .ui-icon{color:var(--blue)}.model-popover button:not([aria-checked=true]) .ui-icon{opacity:.45}.service-popover{width:330px;padding:18px}.service-popover h3{margin:0 0 10px;font-size:14px;font-weight:600;letter-spacing:0}.service-popover p{font-size:12px;line-height:1.65;margin:8px 0;color:#546b88}#pcStatus{font-size:12px;line-height:1.6;max-width:none;display:block;color:#7c654c}.queue-panel{display:block;margin:0;padding:0;border:0;background:transparent;border-radius:0;min-height:0}.queue-badge{display:inline-block;font-size:10px;border:0;border-radius:12px;padding:4px 9px;background:#edf4fd;color:#355c8e;margin:2px 0}.queue-offline .queue-badge{background:#fbf0df;color:#8c6430}.queue-busy .queue-badge{background:#fff3d6;color:#875d18}.mode-note{font-size:11px!important;margin:10px 0 0!important;padding-top:9px;border-top:1px solid #e8edf4}.model-reliability-note{font-size:11px;margin:10px 0 0;padding:10px;border-color:#ead3a1;border-radius:8px;line-height:1.55;background:#fff9ed}.service-info{display:flex}
.chat-heading{max-width:var(--conversation-width);width:100%;margin:8px auto 0;min-height:38px;gap:4px;flex:none}.chat-heading:has(#chatTitle:disabled):has(#chatStatus:empty){display:none}.chat-heading input{padding:8px;font-size:12px;font-weight:400;min-height:36px;border:1px solid transparent;flex:1;min-width:0;color:#65758d}.chat-heading input:disabled{display:none}.chat-heading input:enabled:focus{background:#f8fbff;border-color:#c4d6ee}.chat-heading button{width:34px;height:34px;min-width:34px;min-height:34px;border:0;border-radius:7px;padding:8px;background:transparent}.chat-heading button svg{width:17px;height:17px}.chat-heading #deleteChat{color:#6c7d94}.chat-heading button:hover{background:#edf3fa}.chat-heading #deleteChat:hover{color:#b03d53;background:#fff0f3}#chatStatus{font-size:10px;color:#60718a;max-width:145px;padding-left:6px;line-height:1.4}
.messages{flex:1;min-height:0;overflow:auto;padding:30px max(0px,calc((100% - var(--conversation-width))/2)) 24px;scrollbar-width:thin;scrollbar-color:#d2ddec transparent;scrollbar-gutter:stable;overscroll-behavior:contain}.message{display:block;max-width:var(--conversation-width);margin:0 auto 30px;position:relative}.message .avatar{display:none}.message-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.message-body{min-width:0}.message-text{font-size:15.5px;line-height:1.8;overflow-wrap:anywhere}.message.user{display:flex;justify-content:flex-end;padding-left:18%;margin-bottom:32px}.message.user .message-body{flex:0 1 auto;max-width:100%}.message.user .message-text{background:#edf4ff;border:0;border-radius:22px;padding:11px 17px;line-height:1.65}.message-meta{font-size:10px;line-height:1.6;color:#60718a;margin-top:12px}.formatted-answer p{margin:0 0 1em}.formatted-answer h3,.formatted-answer h4{font-weight:600;line-height:1.4;margin:1.4em 0 .7em}.formatted-answer pre{border-radius:13px;background:#f5f8fc;border-color:#e0e7f0;padding:18px}.formatted-answer code{font-size:.9em;background:#eff3f9}.answer-table-wrap{border-color:#e0e7f0;border-radius:12px}.answer-table-wrap th{background:#edf4fd}.answer-table-wrap th,.answer-table-wrap td{padding:12px 15px}.response-actions{display:flex;margin-top:8px}.response-actions .icon-button{border:0;background:transparent;width:32px;height:32px;min-width:32px;min-height:32px;padding:7px;border-radius:7px;color:#70809a}.response-actions button:hover{background:#eef4fc;color:#284e82}.response-actions svg{width:17px;height:17px}
.pdf-link{display:inline-flex;align-items:center;gap:12px;max-width:100%;width:320px;min-height:72px;margin:16px 0 0;padding:13px 15px;border:1px solid #dce5f1;border-radius:15px;background:#fff;color:var(--text);text-decoration:none;box-shadow:0 1px 3px #14376104}.pdf-link:hover{background:#f8fbff;border-color:#b9cde9}.pdf-link>.ui-icon:first-child{width:24px;height:28px;color:#3c6fb6}.pdf-link>.ui-icon:last-child{width:18px;height:18px;color:#66809f;margin-left:auto}.file-card-copy{display:block;min-width:0;flex:1}.file-card-copy strong{font-size:13px;font-weight:550;line-height:1.5;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.file-card-copy small{font-size:11px;color:#60718a;display:block;font-weight:400;margin-top:3px}.pdf-filename{display:none}.work-attachment{margin:16px 0 0}.file-row .pdf-link{width:auto;min-height:40px;padding:8px 12px;border-radius:9px;margin:0}.file-row .pdf-link .ui-icon:first-child,.file-row .pdf-link small{display:none}.file-row .pdf-link strong{font-size:12px}
.welcome{height:auto;min-height:0;padding:20px 10px 30px;text-align:center}.welcome-symbol,.welcome .eyebrow,.welcome-notes,.welcome>p:not(.eyebrow){display:none}.welcome h2{font-size:29px;font-weight:500;letter-spacing:-.035em;line-height:1.25;margin:0;color:var(--text)}#chatView:has(#welcome:not([hidden])) .messages{flex:0 0 auto;overflow:visible;margin-top:auto;padding-top:20px;padding-bottom:0}#chatView:has(#welcome:not([hidden])) .composer{margin-bottom:auto}
.composer{width:min(var(--conversation-width),100%);display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;margin:0 auto;padding:10px 11px 10px 20px;border:1px solid #dce5f1;border-radius:28px;background:#f6f9fe;box-shadow:0 2px 6px #10264b04;flex:none}.composer:focus-within{background:#fff;border-color:#b4c9e7;box-shadow:0 2px 10px #10264b08}.composer textarea{width:100%;min-height:26px;max-height:200px;font-size:15px;line-height:1.65;padding:9px 0 8px;border:0;outline:none!important;background:transparent;resize:none;box-shadow:none}.compose-actions{display:flex;align-items:center;justify-content:flex-end;gap:7px;min-height:40px;margin:0}.model-field{min-width:0;display:flex;align-items:center;flex:none}.model-field select{max-width:170px;border:0;background:transparent;font-size:12px;padding:7px}.model-button{display:none;align-items:center;gap:5px;max-width:180px;border:0;border-radius:18px;background:transparent;padding:8px 10px;min-height:36px;font-size:12px;color:#5d6e85}.enhanced-ui .model-button{display:flex}.model-button span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.model-button>.ui-icon{width:13px;height:13px}.model-button:hover:enabled{background:#eaf1fb;color:#274a78}.compose-actions .primary{display:grid;place-items:center;width:40px;height:40px;min-width:40px;min-height:40px;margin:0;padding:10px;gap:0;border-radius:50%;background:var(--blue);border:0;box-shadow:none}.compose-actions .primary svg{height:20px;width:20px;stroke-width:2}.compose-actions .primary:disabled{background:#b9ccec;opacity:1;color:#fff}.composer.expanded{grid-template-columns:minmax(0,1fr)}.composer.expanded .compose-actions{grid-column:1;justify-content:flex-end}.composer.expanded textarea{grid-column:1}.footnote{font-size:10px;color:#60718a;line-height:1.6;max-width:var(--conversation-width);margin:10px auto 0;padding:0 8px;text-align:center;flex:none}
#filesView,#usersView{max-width:900px;margin:0 auto;padding:44px 8px 28px}.page-heading{align-items:center;gap:16px}.page-heading h2,#usersView h2{font-size:27px;font-weight:550;letter-spacing:-.035em;margin-bottom:0}.page-heading .eyebrow,#usersView>.eyebrow{font-size:10px;letter-spacing:.08em;color:#71829a;margin-bottom:8px}#refreshFiles{display:flex;align-items:center;gap:8px;border:1px solid #e0e7f0;border-radius:9px;padding:9px 13px;min-height:38px;background:white;font-size:12px}#refreshFiles svg{width:16px;height:16px}.muted{font-size:14px;line-height:1.7;color:#687b95}.file-row{padding:18px 20px;margin:10px 0;border-radius:13px;border-color:#e2e9f2;background:white;gap:16px}.file-row strong{font-size:13px;font-weight:550;line-height:1.5}.file-row small{font-size:11px;margin-top:6px;color:#60718a}.user-row{border-color:#e1e8f1;background:#fff;border-radius:12px;padding:16px}.user-row input,.user-row select,.create-user input,.create-user select{border-radius:8px;border-color:#dbe4ef;background:white}.user-row button{border-radius:8px}#usersView h3{font-weight:550;font-size:17px}.create-user{padding:20px;background:#f8fbff;border:1px solid #e4ebf4;border-radius:13px}.create-user .primary{border-radius:9px}
.settings-dialog{border:1px solid #dfe6ef;border-radius:20px;padding:32px;width:min(680px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;box-shadow:0 24px 90px #10264b2b;color:var(--text);background:white}.settings-dialog::backdrop,#purgeDialog::backdrop{background:#10264b66;backdrop-filter:blur(2px)}.dialog-close{position:absolute;right:15px;top:14px;border:0;background:transparent;min-width:36px;width:36px;height:36px;min-height:36px;padding:8px;border-radius:9px;color:#6a7d96}.dialog-close:hover{background:#eef4fc}.dialog-close svg{width:18px;height:18px}#settingsView{max-width:none;margin:0;padding:0}#settingsView h2{font-size:23px;line-height:1.3;font-weight:550;letter-spacing:-.03em;margin:0 40px 10px 0}#settingsView>.muted{font-size:13px;line-height:1.7;max-width:520px;margin:0}#settingsForm{gap:12px;margin-top:25px}#settingsForm>label{font-size:13px;font-weight:500}#systemPrompt{border:1px solid #d7e2ef;background:#fbfdff;border-radius:12px;font-size:14px;line-height:1.75;padding:15px;min-height:210px;resize:vertical}.settings-actions{margin-top:2px}.settings-actions small{font-size:11px;color:#60718a}#saveSettings{font-size:13px;padding:10px 17px}.status-text{font-size:12px;line-height:1.65}.settings-dialog .status-text{margin-bottom:0}#purgeDialog{width:min(460px,calc(100vw - 32px));padding:28px;border-radius:18px;box-shadow:0 24px 90px #10264b30}#purgeDialog h2{font-size:21px;line-height:1.35;font-weight:550}.dialog-symbol{width:40px;height:40px;border-radius:11px;margin-bottom:18px}.dialog-symbol svg{width:20px;height:20px}.dialog-actions{gap:8px;margin-top:24px}.dialog-actions button{font-size:12px;border-radius:9px;min-height:40px}.dialog-actions .danger{font-weight:500}
.sidebar-collapsed .layout{grid-template-columns:0 minmax(0,1fr)}.sidebar-collapsed #appSidebar{visibility:hidden;padding:0;overflow:hidden}.sidebar-collapsed #appHeader{display:none}
.login-panel{display:flex;min-height:100dvh;justify-content:center;align-items:center;background:#f4f8ff;padding:28px 20px;gap:0}.login-story{display:none}.login-card{max-width:420px;border:1px solid #e2e9f3;border-radius:22px;padding:35px;box-shadow:0 12px 40px #19365b07}.login-card-brand{display:flex;gap:9px;font-size:31px;letter-spacing:-.06em;margin-bottom:32px}.login-card-brand .brand-star{width:31px;height:31px}.login-card>.eyebrow{display:none}.login-card h1{font-size:27px;line-height:1.25;font-weight:550;letter-spacing:-.04em}.login-card form{gap:9px;margin-top:24px}.login-card input{font-size:15px;border-radius:10px;min-height:46px}.login-card label{font-weight:500;font-size:12px}.login-card .primary{min-height:46px;border-radius:24px;font-size:14px;padding:12px 16px}.login-card .primary svg{width:17px;height:17px}.login-note{font-size:10px;line-height:1.6;color:#60718a}
@media(min-width:1700px){:root{--sidebar-width:272px}}
@media(max-width:1100px) and (min-width:851px){:root{--sidebar-width:240px}#appMain{padding-left:22px;padding-right:22px}.service-info{display:none}.service-button{padding:6px 8px;max-width:150px}}
@media(max-width:850px){:root{--header:56px}#appHeader{inset:0 0 auto;width:100%;height:56px;padding:6px 12px;background:#fff;color:var(--navy);border:0;z-index:40;justify-content:flex-start;gap:0}.header-leading{gap:9px}.brand{gap:7px}.brand h1{font-size:22px}.brand-star{width:22px;height:22px}.brand p{display:none}#appHeader #sidebarCollapse{display:none}#menuToggle{background:transparent;border:0;color:#506986;min-width:36px;width:36px;height:40px;padding:8px}#menuToggle svg{width:20px;height:20px}.layout{display:block;height:100dvh;padding-top:56px}#appMain{height:100%;padding:0 16px max(10px,env(safe-area-inset-bottom))}#appSidebar{position:fixed;top:0;bottom:0;left:0;width:min(310px,calc(100vw - 32px));z-index:60;padding:14px 10px 12px;transform:translateX(-102%);visibility:hidden}.sidebar-open #appSidebar{transform:none;visibility:visible}.sidebar-open .sidebar-backdrop{inset:0;z-index:50;background:#10264b66;backdrop-filter:blur(2px)}.sidebar-top{display:flex;margin:0 0 10px 10px;align-items:center;justify-content:space-between;flex-shrink:0}.sidebar-top .eyebrow{font-size:11px;letter-spacing:.04em;color:#d1dded;font-weight:500}.sidebar-top .icon-button{border:0;background:transparent;color:#c5d5ed;width:36px;height:36px;min-width:36px;min-height:36px;padding:8px}#sidebarReopen{display:none!important}.sidebar-account{min-height:65px}.saved-chat{font-size:14px;min-height:42px}.chat-row-action{min-height:42px;height:42px;width:36px;min-width:36px}.chat-search-field{margin-left:7px;margin-right:7px}#chatSearch{font-size:16px;min-height:40px}.chat-search-field>.ui-icon{top:12px}.archive-tabs button{min-height:36px}.saved-chats{margin-top:18px}.chat-toolbar{padding-top:0}.model-bar{min-height:45px;gap:4px;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr)}.mode-segment{padding:3px}.mode-segment button{min-width:67px;padding:6px 10px;min-height:31px;gap:5px;font-size:12px}.mode-segment button .ui-icon{width:14px;height:14px}.service-button{min-height:34px;padding:5px 0 5px 6px;max-width:100%;gap:5px}.service-button #queueHeadline{font-size:10px}.service-info{display:none}.queue-light{width:5px;height:5px}.chat-heading{margin-top:4px;gap:2px;flex-wrap:wrap;min-height:34px}.chat-heading input{flex-basis:calc(100% - 80px);font-size:11px;padding:7px 5px;min-height:34px}.chat-heading button{min-width:32px;width:32px;min-height:34px;height:34px;padding:8px}#chatStatus{max-width:100%;flex-basis:100%;font-size:10px;padding:0 5px}.messages{padding:25px 0 22px;scrollbar-gutter:auto}.message-text{font-size:15px;line-height:1.8}.message.user{padding-left:12%;margin-bottom:28px}.message.user .message-text{padding:10px 15px;line-height:1.7;border-radius:21px}.message{margin-bottom:28px}.message-meta{font-size:10px;line-height:1.7}.welcome{padding:15px 4px 26px}.welcome h2{font-size:26px;font-weight:500}.composer{padding:8px 9px 8px 16px;gap:6px;border-radius:25px;align-items:end}.composer textarea{font-size:16px;min-height:26px;padding:9px 0 7px;line-height:1.55;max-height:25dvh}.compose-actions{gap:3px;min-height:40px}.model-button{max-width:116px;font-size:11px;padding:7px 6px;min-height:36px;gap:2px}.model-button .ui-icon{width:11px;height:11px}.compose-actions .primary{height:40px;width:40px;min-width:40px;min-height:40px;padding:10px}.composer.expanded{padding-top:12px}.footnote{font-size:9px;line-height:1.5;margin-top:9px;padding:0 4px}.pdf-link{width:min(320px,100%);padding:12px;min-height:70px;gap:10px}.file-card-copy strong{font-size:12px}.file-card-copy small{font-size:10px}.file-row .pdf-link{width:auto}.response-actions .icon-button{min-height:38px;height:38px;min-width:38px;width:38px;padding:10px}.nova-popover{border-radius:15px}.nova-popover button{min-height:44px;font-size:14px}.model-popover{max-height:52dvh}.service-popover{padding:16px}.service-popover p{font-size:12px}#filesView,#usersView{padding:25px 0}.page-heading h2,#usersView h2{font-size:25px}.file-row{padding:16px;gap:12px;border-radius:12px;flex-wrap:wrap}.file-row>div{flex-basis:100%}.file-row .pdf-link{margin-top:0}.user-row{padding:14px;gap:10px}.user-row input,.user-row select,.create-user input,.create-user select{font-size:16px;min-height:44px}.create-user{padding:16px}.settings-dialog{padding:26px 20px;width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:18px}.dialog-close{top:12px;right:11px;min-width:36px}#settingsView h2{font-size:21px;margin-right:35px}#settingsView>.muted{font-size:13px}#systemPrompt{font-size:16px;padding:13px;min-height:200px}#settingsForm{margin-top:22px}.settings-actions{gap:10px}#saveSettings{font-size:12px;min-height:44px}.sidebar-collapsed #appHeader{display:flex}.sidebar-collapsed #appSidebar{padding:14px 10px 12px;visibility:hidden}.sidebar-open.sidebar-collapsed #appSidebar{visibility:visible}.login-panel{padding:20px}.login-card{padding:30px 25px}.login-card input{font-size:16px}.login-card h1{font-size:26px}#purgeDialog{padding:24px}.dialog-actions .danger{flex-basis:auto}.dialog-actions button{flex:1;min-height:44px;font-size:12px}}
@media(max-width:380px){#appMain{padding-left:12px;padding-right:12px}.mode-segment button{min-width:60px;padding:6px 8px}.mode-segment button .ui-icon{display:none}.service-button #queueHeadline{font-size:9px}.model-button{max-width:88px;font-size:10px}.welcome h2{font-size:25px}.composer{padding-left:14px}.composer textarea{font-size:16px}.chat-heading input{flex-basis:calc(100% - 75px)}.file-card-copy strong{font-size:12px}.dialog-actions{flex-direction:column}.settings-actions{flex-wrap:wrap}#saveSettings{margin-left:auto}}
@media(max-height:600px){.welcome{padding-top:10px;padding-bottom:19px}.welcome h2{font-size:25px}.settings-dialog{max-height:calc(100dvh - 20px)}#systemPrompt{min-height:120px}.settings-dialog #settingsForm{margin-top:18px}}
@media(max-height:500px){#chatView{height:100%;min-height:0}.messages{min-height:70px;max-height:none;flex:1}#chatView:has(#welcome:not([hidden])) .messages{overflow:auto;flex:1;margin-top:0}.welcome{padding:15px 4px}.footnote{display:none}.saved-chats[open]{min-height:40px}.sidebar-account{min-height:50px}.account-button{min-height:44px}.sidebar-top{margin-bottom:4px}#appSidebar>nav button{min-height:36px}.saved-chats{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;animation:none!important;scroll-behavior:auto!important}}

/* Chat actions share one menu; saving a changed title is contextual. */
.chat-heading #deleteChat,.chat-heading #renameChat{display:none}.chat-heading.title-edited #renameChat{display:grid}.chat-heading .conversation-more{display:grid;color:#687c98}.chat-heading:has(#chatTitle:disabled) .conversation-more{display:none}.model-reliability-note{width:min(var(--conversation-width),100%);align-self:center;margin:0 auto 12px;font-size:12px;flex:none}

.login-card #loginButton{flex-direction:row-reverse}

#systemPrompt{height:230px;min-height:180px}.service-short{display:none}
@media(max-width:850px){#systemPrompt{height:32dvh;min-height:160px;max-height:260px}.service-short{display:inline;font-size:11px;white-space:nowrap}.service-button #queueHeadline{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.model-button{font-size:12px;max-width:130px}}
@media(max-width:380px){.model-button{font-size:11px;max-width:104px}.service-short{font-size:11px}}

.service-popover .service-summary{font-size:13px;font-weight:550;color:var(--text);margin:4px 0 8px}
