/* V2.5 minimal, chat-first refinements */
.sidebar-title{margin-top:19px}.history-row{display:flex;align-items:center;gap:2px;margin:1px 4px;border-radius:8px}.history-row .history-btn{min-width:0;flex:1;text-align:left}.history-delete{background:transparent;border:0;border-radius:6px;color:var(--muted,#789);font-size:19px;width:24px;height:28px;opacity:0;cursor:pointer}.history-row:hover .history-delete,.history-row:focus-within .history-delete{opacity:1}.history-delete:hover{background:#e2e9e4;color:#992c32}@media (pointer:coarse){.history-delete{opacity:1}}
.theme-holder{position:relative}.theme-options{position:absolute;z-index:90;right:0;top:40px;border:1px solid var(--line);background:var(--surface);border-radius:12px;padding:5px;width:162px;box-shadow:0 10px 28px #0002}.theme-options button{background:transparent;color:var(--ink);border:0;display:block;width:100%;text-align:left;padding:10px 11px;cursor:pointer;border-radius:8px;font-size:13px}.theme-options button:hover,.theme-options .selected{background:var(--green2)}
.attachment-tray{display:flex;gap:7px;max-width:100%;flex-wrap:wrap;padding:0 2px 10px}.attachment-tray.hidden{display:none}.attachment-chip{display:flex;align-items:center;gap:7px;border:1px solid var(--line);background:var(--surface);padding:7px 9px;border-radius:9px;color:var(--ink);font-size:12px;max-width:200px}.attachment-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.attachment-chip button{border:0;background:transparent;color:var(--muted);cursor:pointer;font-size:18px}.message-file-links{display:flex;flex-wrap:wrap;gap:5px;margin:7px 0}.message-file-links a{border:1px solid var(--line);color:var(--ink);background:var(--surface);font-size:11px;padding:7px 9px;border-radius:7px;text-decoration:none}
.admin-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.admin-summary div{padding:13px 10px;border-radius:10px;background:var(--soft);border:1px solid var(--line)}.admin-summary b{font-size:23px;display:block;letter-spacing:-.8px}.admin-summary small{color:var(--muted);font-size:10px}.admin-title{font-weight:750;font-size:14px;margin:24px 0 9px}.admin-user{padding:13px 0;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:12px}.admin-user small{font-size:11px;color:var(--muted);display:block;line-height:1.6;margin-top:4px}.admin-user-actions{display:flex;flex-wrap:wrap;justify-content:end;align-content:center;gap:5px}.admin-user-actions select,.admin-user-actions button{background:var(--surface);color:var(--ink);border:1px solid var(--line);padding:6px;font-size:11px;border-radius:7px;cursor:pointer}.admin-log{padding:7px;border-top:1px solid var(--line);font-size:11px;color:var(--muted)}
.link-action{border:0;background:transparent;color:var(--green);font-size:12px;cursor:pointer;text-decoration:underline;text-underline-offset:3px}.google-login{border:1px solid var(--line,#d6dfd6);background:var(--surface,#fff);border-radius:9px;color:var(--ink,#243);padding:12px;font-weight:650;cursor:pointer}
body[data-theme='midnight']{--ink:#eee;--muted:#a3a3a3;--line:#303030;--green:#f5f5f5;--green2:#242424;--surface:#171717;--soft:#0e0e0e;--rail:#090909;background:var(--soft);color:var(--ink)}
body[data-theme='midnight'] .sidebar{background:var(--rail);border-color:var(--line)}body[data-theme='midnight'] .main{background:var(--soft)}body[data-theme='midnight'] .topbar{border-color:var(--line)}
body[data-theme='midnight'] .browser-panel,body[data-theme='midnight'] .browser-panel.expanded{background:var(--surface);border-color:var(--line)}body[data-theme='midnight'] .browser-stage{background:var(--soft)}
body[data-theme='midnight'] .brand-copy,body[data-theme='midnight'] .breadcrumb strong,body[data-theme='midnight'] .welcome h1,body[data-theme='midnight'] .assistant-content,body[data-theme='midnight'] .assistant-content strong,body[data-theme='midnight'] .suggest-text b{color:var(--ink)}
body[data-theme='midnight'] .suggestion,body[data-theme='midnight'] .composer,body[data-theme='midnight'] .new-chat,body[data-theme='midnight'] .browser-toggle,body[data-theme='midnight'] .source,body[data-theme='midnight'] .source-panel,body[data-theme='midnight'] .modal-window,body[data-theme='midnight'] .login-card,body[data-theme='midnight'] .browser-type input,body[data-theme='midnight'] .browser-go-form input,body[data-theme='midnight'] .url-strip{background:var(--surface);border-color:var(--line);color:var(--ink)}
body[data-theme='midnight'] .user-content,body[data-theme='midnight'] .history-btn.active,body[data-theme='midnight'] .suggest-icon,body[data-theme='midnight'] .assistant-avatar,body[data-theme='midnight'] .tab-bar,body[data-theme='midnight'] .browser-tab.active,body[data-theme='midnight'] .bill-inline,body[data-theme='midnight'] .private-signin{background:var(--green2);color:var(--ink);border-color:var(--line)}
body[data-theme='midnight'] .composer textarea,body[data-theme='midnight'] .modal-body{color:var(--ink)}body[data-theme='midnight'] .login-layer{background:var(--soft)}
body[data-theme='midnight'] .modal-body input,body[data-theme='midnight'] .modal-body select,body[data-theme='midnight'] .login-card input,body[data-theme='midnight'] .modal-body pre{background:var(--soft);color:var(--ink);border-color:var(--line)}
body[data-theme='midnight'] .modal-header{border-color:var(--line)}body[data-theme='midnight'] .modal-body .row{border-color:var(--line)}
body[data-theme='midnight'] .browser-type button,body[data-theme='midnight'] .mini-actions button,body[data-theme='midnight'] .private-signin button,body[data-theme='midnight'] .theme-picker,body[data-theme='midnight'] #browser-expand{background:var(--green2)!important;color:var(--ink)!important;border-color:var(--line)!important}
body[data-theme='midnight'] .quick-actions button,body[data-theme='midnight'] .history-btn,body[data-theme='midnight'] .panel-note,body[data-theme='midnight'] .browser-instructions,body[data-theme='midnight'] .browser-footer{color:var(--muted)}
body[data-theme='midnight'] .send,body[data-theme='midnight'] .primary-action{background:#eee!important;color:#080808!important;border-color:#eee!important}
body[data-theme='midnight'] .login-brand,body[data-theme='midnight'] .browser-tab.active{color:var(--ink)}body[data-theme='midnight'] .new-chat:hover,body[data-theme='midnight'] .history-btn:hover{background:var(--green2)}
body[data-theme='midnight'] .admin-user{border-color:var(--line)}body[data-theme='midnight'] .secret-once{background:var(--green2);color:var(--ink)}
@media(max-width:690px){.admin-summary{grid-template-columns:repeat(2,1fr)}.admin-user{display:block}.admin-user-actions{justify-content:start;margin-top:8px}}

.attach-holder{position:relative;display:inline-flex}.attach-menu{position:absolute;bottom:43px;left:0;z-index:80;min-width:200px;display:flex;flex-direction:column;gap:3px;padding:6px;background:var(--surface);border:1px solid var(--line);box-shadow:0 14px 45px #0002;border-radius:11px}.attach-menu button{display:block;color:var(--ink);text-align:left;border:0;background:transparent;padding:10px;border-radius:8px;white-space:nowrap;cursor:pointer;font-size:12px}.attach-menu button:hover{background:var(--green2)}.attach-menu button.hidden{display:none!important}.google-login:disabled{opacity:.55;cursor:not-allowed}body[data-theme='midnight'] .attach-bill{background:var(--green2);color:var(--ink)}
/* Midnight is intentionally grayscale, including accents and status indicators. */
body[data-theme='midnight'] .brand-symbol{background:#303030!important}
body[data-theme='midnight'] .dot,body[data-theme='midnight'] .url-dot{background:#d2d2d2!important}
body[data-theme='midnight'] .read-only{background:#242424!important;color:#dedede!important;border:1px solid #383838!important}
body[data-theme='midnight'] .browser-empty,body[data-theme='midnight'] .browser-empty b,body[data-theme='midnight'] .browser-control-status,body[data-theme='midnight'] #browser-go-toggle,body[data-theme='midnight'] #browser-url,body[data-theme='midnight'] #model-label,body[data-theme='midnight'] .source-title,body[data-theme='midnight'] .assistant-name{color:#dedede!important}
body[data-theme='midnight'] .brand-copy small,body[data-theme='midnight'] .sidebar-title,body[data-theme='midnight'] .panel-kicker{color:#a1a1a1!important}
body[data-theme='midnight'] .attach-menu,body[data-theme='midnight'] .theme-options{background:#1b1b1b;color:#eee;border-color:#383838}
