:root{color-scheme:dark;--bg:#141414;--sidebar:#0f0f0f;--surface:#202020;--surface-2:#282828;--surface-3:#2f2f2f;--text:#efefef;--muted:#9e9e9e;--faint:#767676;--stroke:#303030;--accent:#cdcdcd;--accent-dim:rgba(205,205,205,.12);--warn:#dfb56a;--shadow:0 16px 50px rgba(0,0,0,.25);font-family:system-ui,Inter,system-ui,sans-serif;font-synthesis:none}
*{box-sizing:border-box}html,body{margin:0;height:100%;min-height:100%;overflow:hidden;background:var(--bg);color:var(--text)}button,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}svg{width:20px;height:20px;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;fill:none}a{color:var(--accent)}a:hover{text-decoration:none}.visually-hidden{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:flex;width:100%;height:100dvh;min-height:480px}.sidebar{display:flex;flex-direction:column;flex:0 0 264px;width:264px;background:var(--sidebar);border-right:1px solid rgba(255,255,255,.055);z-index:30;padding:25px 13px 17px;min-height:0}.side-top{padding:0 10px 26px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;align-items:center;gap:10px;font-family:system-ui,sans-serif;letter-spacing:.055em;font-weight:800;font-size:14px;white-space:nowrap}.brand-mark{height:35px;width:35px;display:grid;place-items:center;border-radius:12px;color:var(--accent);border:1px solid rgba(205,205,205,.20);background:linear-gradient(150deg,#232323,#181818)}.brand-mark svg{width:25px;height:25px}.brand-muted{color:#969696;font-weight:500}.new-chat-btn{display:flex;align-items:center;gap:9px;width:100%;padding:12px 12px;background:#242424;border:1px solid #363636;color:#efefef;border-radius:11px;text-align:left;font-size:13px;font-weight:700;transition:.18s}.new-chat-btn:hover{background:#303030;border-color:#4f4f4f}.new-chat-btn svg{height:17px;width:17px;color:var(--accent)}.kbd{font-size:10px;font-weight:400;color:#7e7e7e;border:1px solid #414141;border-radius:5px;padding:2px 4px;margin-left:auto}.sidebar-nav{padding:26px 0 10px}.side-label,.history-header,.history-date{font-size:10px;font-weight:800;letter-spacing:.13em;color:#767676;padding:0 13px;margin-bottom:11px}.side-link{border:0;background:none;color:#b6b6b6;border-radius:9px;width:100%;display:flex;align-items:center;gap:5px;text-align:left;padding:10px 12px;font-size:13px;transition:.16s}.side-link:hover{background:#222222;color:#fff}.side-link svg{width:17px;height:17px;color:#8f8f8f}.side-shortcut{margin-left:auto;font-size:10px;color:#696969}.history-header{display:flex;align-items:center;justify-content:space-between;margin:17px 0 2px;padding-right:8px}.tiny-btn{background:none;border:0;color:#808080;padding:3px;display:grid;place-items:center;border-radius:6px}.tiny-btn:hover{color:#e6e6e6;background:#252525}.tiny-btn svg{width:15px;height:15px}.history{overflow-y:auto;min-height:0;flex:1;padding-top:5px;scrollbar-width:thin;scrollbar-color:#373737 transparent}.history-btn{display:flex;align-items:center;gap:10px;border:0;border-radius:9px;background:transparent;color:#b5b5b5;width:100%;text-align:left;font-size:12px;padding:10px 12px;line-height:1.4;margin:1px 0}.history-btn svg{height:15px;width:15px;flex:0 0 15px;opacity:.65}.history-btn span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.history-btn:hover{background:#1f1f1f;color:#f3f3f3}.history-btn.active{background:#262626;color:#f2f2f2}.history-empty{font-size:12px;color:#626262;padding:12px}.sidebar-bottom{padding:17px 9px 3px;border-top:1px solid #272727;margin-top:10px}.sidebar-note{font-size:11px;color:#b4b4b4;display:flex;gap:8px;align-items:center}.status-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#c3c3c3;box-shadow:0 0 0 3px rgba(205,205,205,.09)}.note-icon{margin-left:auto;color:#898989}.side-foot{color:#6e6e6e;font-size:10px;padding-top:8px}.side-close{display:none}
.main{min-width:0;min-height:0;display:flex;flex:1;flex-direction:column;position:relative;background:radial-gradient(ellipse 52% 35% at 49% 31%,rgba(66,66,66,.06),transparent 85%),var(--bg)}.topbar{height:76px;flex:0 0 76px;display:flex;align-items:center;justify-content:space-between;padding:0 34px;border-bottom:1px solid rgba(255,255,255,.04);position:relative;z-index:5}.header-left,.header-right{display:flex;align-items:center;gap:14px;min-width:0}.header-brand{font-family:system-ui,sans-serif;font-weight:800;letter-spacing:-.025em;font-size:16px}.header-divider{height:19px;width:1px;background:#3f3f3f}.header-subtitle{font-size:12px;color:#868686;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:240px}.endpoint-pill{font-size:10px;font-weight:700;white-space:nowrap;color:#b6b6b6;border:1px solid #3c3c3c;padding:9px 12px;border-radius:20px;display:flex;align-items:center;gap:9px;background:#212121}.endpoint-pill .status-dot{height:6px;width:6px}.model-chooser{position:relative;min-width:208px}.model-chooser select{width:100%;max-width:260px;border:1px solid #404040;background:#282828;box-shadow:inset 0 1px rgba(255,255,255,.03);color:#f2f2f2;border-radius:10px;outline:none;cursor:pointer;appearance:none;font-size:12px;font-weight:700;padding:12px 34px 12px 14px;white-space:nowrap}.model-chooser select:focus-visible{border-color:var(--accent)}.model-chooser optgroup{color:#e3e3e3;background:#2a2a2a}.select-chevron{width:14px;height:14px;pointer-events:none;position:absolute;right:13px;top:50%;transform:translateY(-50%);color:#b1b1b1}.mobile-menu{display:none}.icon-btn{border:0;background:none;color:#a3a3a3;border-radius:9px;padding:7px;display:grid;place-items:center}.icon-btn:hover{background:#2f2f2f;color:#fff}.model-notice{display:none;position:absolute;top:79px;right:34px;max-width:540px;font-size:11px;line-height:1.5;background:#2e2e2e;border:1px solid #4f4f4f;border-radius:10px;color:#cfcfcf;padding:9px 12px;z-index:20;box-shadow:var(--shadow)}.model-notice.visible{display:block}
.conversation-scroll{min-height:0;flex:1;overflow:auto;scrollbar-width:thin;scrollbar-color:#434343 transparent}.conversation{width:min(100%,855px);margin:0 auto;padding:34px 28px 24px;min-height:100%}.empty-state{display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:clamp(430px,67vh,710px);text-align:center;padding:15px 0 30px}.hero-mark{position:relative;width:79px;height:79px;display:grid;place-items:center;border-radius:24px;background:linear-gradient(140deg,#2f2f2f,#212121);box-shadow:0 0 60px rgba(173,173,173,.075),inset 0 0 0 1px rgba(205,205,205,.22);color:var(--accent)}.hero-mark svg{width:48px;height:48px}.hero-mark:after{content:"";position:absolute;inset:-9px;border:1px solid rgba(205,205,205,.07);border-radius:32px}.eyebrow{font-size:11px;letter-spacing:.21em;font-weight:800;color:var(--accent);margin:35px 0 11px}.hero-title{font-family:system-ui,system-ui,sans-serif;font-size:clamp(31px,4.2vw,44px);font-weight:800;letter-spacing:-.055em;line-height:1.18;margin:0}.hero-title span{background:linear-gradient(90deg,#fafafa,#cacaca);background-clip:text;-webkit-background-clip:text;color:transparent}.hero-subtitle{max-width:425px;font-size:13px;line-height:1.8;color:#9b9b9b;margin:17px 0 30px}.suggestions{width:min(100%,650px);display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.suggestion{border:1px solid #363636;background:rgba(34,34,34,.87);color:#dbdbdb;text-align:left;padding:17px 16px;border-radius:13px;min-height:89px;transition:background .15s,border-color .15s,transform .15s;position:relative}.suggestion:hover{background:#2e2e2e;border-color:#636363;transform:translateY(-2px)}.suggestion-label{font-weight:700;font-size:12px;line-height:1.45;display:block;padding-right:17px}.suggestion-detail{font-size:11px;color:#898989;display:block;margin-top:6px}.suggestion-arrow{position:absolute;top:18px;right:16px;color:var(--accent);font-size:17px}.empty-foot{margin-top:22px;color:#656565;font-size:10px}.empty-foot kbd{color:#909090;background:#2a2a2a;border-radius:4px;padding:3px 5px}
.message-row{display:flex;gap:15px;margin:0 0 28px;align-items:flex-start;animation:rise .23s ease both}.message-row.user{justify-content:flex-end;margin-top:28px;margin-bottom:30px}.message-avatar{height:31px;width:31px;flex:0 0 31px;display:grid;place-items:center;background:#2e2e2e;border:none;color:var(--accent);border-radius:10px;font-size:13px;font-weight:900;font-family:system-ui}.message-body{min-width:0;max-width:calc(100% - 50px);flex:1}.message-meta{display:flex;align-items:center;gap:9px;color:#bfbfbf;font-size:12px;font-weight:700;margin:3px 0 12px}.message-meta .provider-name{font-size:10px;color:#7d7d7d;font-weight:500}.message-meta .copy-btn{margin-left:auto;border:0;background:none;color:#808080;font-size:11px;padding:2px 6px;border-radius:5px}.copy-btn:hover{background:#2e2e2e;color:var(--accent)}.user-bubble{max-width:75%;background:#2e2e2e;border:1px solid #414141;color:#f4f4f4;padding:13px 17px;border-radius:16px 16px 4px 16px;line-height:1.65;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere}.prose{font-size:13.5px;line-height:1.83;color:#d3d3d3;word-break:break-word}.prose h2,.prose h3{font-family:system-ui,system-ui,sans-serif;color:#f2f2f2;letter-spacing:-.025em;line-height:1.35}.prose h2{font-size:19px;font-weight:800;margin:4px 0 16px}.prose h3{font-size:14px;margin:23px 0 10px}.prose p{margin:0 0 15px}.prose strong{color:#f6f6f6;font-weight:800}.prose em{color:#d3d3d3}.prose ul,.prose ol{padding-left:23px;margin:11px 0 17px}.prose li{padding-left:4px;margin:5px 0}.prose blockquote{border-left:2px solid #717171;margin:12px 0 17px;padding:0 15px;color:#b4b4b4}.prose hr{border:0;border-top:1px solid #373737;margin:24px 0}.prose code{background:#2b2b2b;border-radius:4px;padding:1px 5px;font-size:.9em}.prose pre{overflow:auto;background:#101010;border:1px solid #323232;border-radius:9px;padding:15px;font-size:12px}.screen-card{border:1px solid #3b3b3b;border-radius:14px;background:linear-gradient(160deg,rgba(42,42,42,.85),rgba(28,28,28,.89));padding:20px 20px 16px;max-width:720px}.screen-topline{font-size:10px;letter-spacing:.14em;color:var(--accent);font-weight:800;margin-bottom:9px;text-transform:uppercase}.screen-card h2{font-family:system-ui,system-ui,sans-serif;font-size:19px;line-height:1.4;letter-spacing:-.035em;margin:0 0 15px}.screen-card .menu-intro{color:#a1a1a1;font-size:12px;line-height:1.6;margin:0 0 12px}.menu-items{display:grid;gap:4px}.menu-items.two-col{grid-template-columns:repeat(2,minmax(0,1fr));gap:3px 9px}.menu-item{display:flex;align-items:flex-start;gap:11px;width:100%;background:none;border:1px solid transparent;border-radius:8px;color:#d4d4d4;text-align:left;padding:9px 10px;font-size:12px;line-height:1.45}.menu-item:hover{background:#323232;border-color:#565656;color:#fdfdfd}.menu-index{color:#a1a1a1;flex:0 0 25px;text-align:right;font-weight:800;white-space:nowrap}.menu-item.more{margin-top:5px;border-top:1px solid #3f3f3f;border-radius:3px 3px 8px 8px;padding-top:13px;color:var(--accent)}.menu-footer{border-top:1px solid #3e3e3e;margin-top:15px;padding-top:13px;display:flex;flex-wrap:wrap;justify-content:space-between;gap:7px;font-size:11px;color:#919191}.menu-fingerprint{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;color:#787878;font-size:10px}.menu-help{color:#b5b5b5}.answer-next{margin-top:26px;padding:18px;border-radius:13px;background:#242424;border:1px solid #404040}.answer-next h3{font-family:system-ui,sans-serif;font-size:14px;color:#f1f1f1;margin:0 0 8px}.answer-next p{color:#9e9e9e;font-size:11px;margin:0 0 11px}.loading-label{font-size:12px;color:#939393;display:flex;align-items:center;gap:8px;margin-top:4px}.loading-dots{display:inline-block;min-width:42px;color:var(--accent);font-size:10px;letter-spacing:4px;white-space:nowrap;line-height:1.5}.error-card{border:1px solid #63483f;background:#30231f;color:#c5c5c5;padding:14px 16px;border-radius:11px;font-size:12px;line-height:1.65}.error-card strong{color:#d5d5d5}.error-card .mini-action{background:transparent;color:#e4e4e4;border:1px solid #895648;border-radius:7px;padding:6px 9px;margin-top:10px;font-size:11px}.info-card{color:#b5b5b5;font-size:12px;border:1px solid #3e3e3e;background:#282828;border-radius:12px;padding:16px;line-height:1.7}
.composer-area{position:relative;flex:0 0 auto;background:linear-gradient(to bottom,rgba(20,20,20,0),#141414 14%,#141414 100%);padding:10px 34px 17px}.composer-container{width:min(100%,855px);margin:0 auto}.composer-box{border:none;border-radius:17px;background:#292929;box-shadow:0 9px 38px rgba(0,0,0,.15),inset 0 1px rgba(255,255,255,.026);padding:12px 12px 10px}.composer-box textarea{resize:none;display:block;color:#f4f4f4;width:100%;height:auto;min-height:35px;max-height:156px;background:transparent;border:0;outline:0;font-size:13.5px;line-height:1.55;padding:3px 8px;scrollbar-width:thin}.composer-box textarea::placeholder{color:#929292}.composer-actions{display:flex;align-items:center;justify-content:space-between;padding-top:7px;gap:10px}.compose-left,.compose-right{display:flex;align-items:center;gap:5px}.mode-btn{background:transparent;color:#909090;border:1px solid transparent;border-radius:8px;font-size:11px;padding:7px 10px}.mode-btn.active{background:#3e3e3e;color:#dbdbdb;border-color:#5b5b5b}.mode-btn:not(.active):hover{background:#363636;color:#ddd}.char-count{font-size:10px;color:#747474;margin-right:7px}.send-btn{height:32px;width:32px;display:grid;place-items:center;color:#1d1d1d;background:var(--accent);border:0;border-radius:10px;transition:.15s}.send-btn:hover:not(:disabled){background:#e1e1e1;transform:translateY(-1px)}.send-btn:disabled{background:#474747;color:#919191}.send-btn svg{width:18px;height:18px;stroke-width:2.3}.footer-note{text-align:center;color:#6f6f6f;font-size:10px;margin:10px auto 0;line-height:1.4}.footer-note a{color:#a5a5a5;text-decoration:underline;text-underline-offset:2px}.mobile-backdrop{display:none}.toast{position:fixed;left:50%;bottom:160px;z-index:80;transform:translate(-50%,10px);opacity:0;background:#353535;border:1px solid #5d5d5d;color:#e9e9e9;padding:10px 15px;border-radius:9px;box-shadow:var(--shadow);font-size:12px;pointer-events:none;transition:opacity .2s,transform .2s}.toast.visible{opacity:1;transform:translate(-50%,0)}.info-dialog{border:1px solid #454545;border-radius:16px;background:#222222;color:#e5e5e5;max-width:min(92vw,520px);padding:27px;box-shadow:0 24px 90px #0008}.info-dialog::backdrop{background:#050a0dbb}.info-dialog p{font-size:13px;line-height:1.8;color:#bdbdbd}.dialog-heading{display:flex;align-items:center;justify-content:space-between}.dialog-heading h2{font-family:system-ui,sans-serif;font-size:20px;margin:0}.dialog-primary{background:var(--accent);color:#1c1c1c;border:0;border-radius:9px;font-weight:800;padding:11px 20px;margin-top:7px}
@keyframes rise{from{transform:translateY(8px);opacity:0}to{transform:translateY(0);opacity:1}}
@media(max-width:1050px){.topbar{padding:0 23px}.composer-area{padding-left:23px;padding-right:23px}.header-subtitle{max-width:125px}.endpoint-pill{display:none}.model-chooser{min-width:170px}}
@media(max-width:780px){.sidebar{position:absolute;left:0;top:0;height:100%;width:270px;transform:translateX(-100%);transition:transform .2s;box-shadow:var(--shadow)}.app-shell.sidebar-open .sidebar{transform:translateX(0)}.app-shell.sidebar-open .mobile-backdrop{display:block;position:fixed;inset:0;background:#0009;z-index:25}.side-close,.mobile-menu{display:grid}.topbar{height:65px;flex-basis:65px;padding:0 17px}.header-left{gap:9px}.header-divider,.header-subtitle{display:none}.header-brand{font-size:15px}.model-chooser{min-width:162px}.model-chooser select{font-size:11px;padding:10px 28px 10px 12px}.conversation{padding:24px 19px 16px}.composer-area{padding:9px 13px 14px}.empty-state{min-height:clamp(420px,63vh,620px)}.hero-title{font-size:35px}.model-notice{right:13px;left:13px;top:69px}.menu-items.two-col{grid-template-columns:1fr}}
@media(max-width:480px){.suggestions{grid-template-columns:1fr;gap:8px}.suggestion{min-height:67px;padding:12px 15px}.hero-mark{height:65px;width:65px;border-radius:21px}.hero-mark svg{width:39px}.eyebrow{margin-top:24px}.hero-title{font-size:29px}.hero-subtitle{margin:12px 0 21px}.empty-state{justify-content:flex-start;padding-top:clamp(18px,6vh,70px)}.footer-note{font-size:9px}.composer-area{padding-bottom:10px}.mode-btn{padding:7px 7px;font-size:10px}.char-count{display:none}.screen-card{padding:16px 11px 13px}.screen-card h2{padding-left:6px}.menu-item{font-size:12px;padding:9px 7px}.message-row{gap:9px}.message-avatar{width:28px;height:28px;flex-basis:28px}.message-body{max-width:calc(100% - 36px)}.prose{font-size:13px}.user-bubble{max-width:92%;font-size:12px}.header-brand{font-size:13px}.model-chooser{min-width:143px}.model-chooser select{max-width:170px;padding-left:8px;padding-right:25px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.01ms!important;transition-duration:.01ms!important}}
/* Keep mobile-only controls hidden on desktop despite the general icon-button display rule. */
@media(min-width:781px){.side-close,.mobile-menu{display:none}}

/* v2: each numbered choice is a real list row, including a readable separation when copying text. */
.menu-items{list-style:none;padding:0;margin:12px 0 0;row-gap:6px}
.menu-list-item{list-style:none;min-width:0;margin:0;padding:0}
.menu-item{min-height:41px;gap:12px;align-items:center}
.menu-index{min-width:27px;text-align:left;flex:0 0 27px}
.menu-label{display:block;min-width:0;line-height:1.55}
.menu-item:disabled{opacity:.65;cursor:default}
.menu-item:disabled:hover{background:transparent;border-color:transparent}
@media (max-width:780px){.menu-items.two-col{grid-template-columns:1fr}}

/* Neutral, familiar chat surfaces. The supplied artwork keeps its original colors. */
:root{--bg:#212121;--sidebar:#171717;--surface:#2f2f2f;--surface-2:#303030;--surface-3:#383838;--text:#ececec;--muted:#b4b4b4;--faint:#8e8e8e;--stroke:#424242;--accent:#ececec;--accent-dim:rgba(255,255,255,.08);font-family:Arial,system-ui,sans-serif}
.main{background:var(--bg)}.brand-mark{object-fit:cover;border:none;background:#222;border-radius:10px;width:40px;height:40px}.hero-mark{width:112px;height:112px;background:none;border-radius:24px;box-shadow:none}.hero-mark:after{display:none}.hero-mark img{width:100%;height:100%;object-fit:cover;border-radius:24px}.message-avatar{object-fit:cover;padding:0;border-color:#444}.hero-title span{background:none;color:var(--text)}.composer-area{background:var(--bg)}.composer-box{background:#303030}.send-btn,.dialog-primary{background:#ececec;color:#171717}.send-btn:hover:not(:disabled){background:#fff}.status-dot{background:#b4b4b4;box-shadow:none}.mode-btn.active{background:#454545;color:#fff;border-color:#666}.screen-card{background:#262626}.menu-item:hover{background:#383838;border-color:#555}.menu-index{display:none}.menu-item{justify-content:space-between}.menu-item:after{content:'›';color:#aaa;font-size:20px;margin-left:12px}.menu-item.more{margin-top:8px}.menu-footer button,.nav-actions button,.settings-actions>button:not(.dialog-primary),.key-field button,.custom-model-row button{border:1px solid #555;border-radius:8px;padding:8px 12px;background:#303030;color:#ececec;font:inherit;cursor:pointer}.nav-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}.menu-fingerprint,.kbd{display:none}button:focus-visible,select:focus-visible,input:focus-visible{outline:2px solid #eee;outline-offset:3px}.settings-dialog{width:580px;max-width:94vw;max-height:90dvh;overflow:auto;background:#212121}.settings-dialog h3{font-size:14px;margin:18px 0 8px}.privacy-note{padding:1px 15px;background:#2b2b2b;border:1px solid #444;border-radius:10px;margin-top:18px}.privacy-note p,.settings-dialog .field-hint{font-size:12px;line-height:1.6}.settings-dialog label{display:block;font-size:13px;margin:16px 0 7px}.settings-dialog input:not([type=checkbox]):not([type=hidden]){width:100%;background:#303030;border:1px solid #555;border-radius:8px;padding:11px;color:#fff;font:inherit;min-width:0}.settings-dialog .checkbox-label{display:flex;gap:9px;align-items:center}.key-field{display:flex;gap:8px}.settings-actions{display:flex;gap:8px;align-items:center}.settings-actions .dialog-primary{margin:0}.custom-model-row{display:flex;gap:8px;align-items:center;margin:10px 0;padding:10px;border:1px solid #444;border-radius:9px;flex-wrap:wrap}.custom-model-row span{flex:1;overflow-wrap:anywhere;font-size:13px}.custom-model-row small{display:block;color:#aaa;margin-top:4px}.settings-dialog #settingsStatus{color:#ececec}.settings-dialog .field-hint{margin:7px 0;color:#aaa}.topic-search{display:flex;gap:8px;margin:0 0 18px}.topic-search input{min-width:0;flex:1;border:1px solid #555;border-radius:8px;background:#303030;color:#eee;padding:10px;font:inherit}.topic-search button{border:1px solid #555;border-radius:8px;background:#ececec;color:#171717;padding:10px}.topbar .header-right{gap:8px}@media(max-width:480px){.settings-dialog{padding:18px}.hero-mark{width:90px;height:90px}.header-right{min-width:0}.model-chooser{min-width:125px}.topic-search{flex-wrap:wrap}}

.suggestion{background:#2a2a2a;border-color:#424242}.suggestion:hover{background:#333;border-color:#666}.brand-mark{background:#222}.empty-state{min-height:100%;padding:12px 0 24px}.eyebrow{margin-top:23px}.hero-subtitle{margin:14px 0 22px}@media(max-height:750px){.hero-mark{width:76px;height:76px}.hero-title{font-size:32px}.hero-subtitle{margin:10px 0 18px}.eyebrow{margin-top:18px;font-size:10px}.suggestion{min-height:75px;padding:13px}.empty-foot{margin-top:15px}}

/* Logo accent: #0078b6 sampled from the blue rim; lighter tints for readable text. */
:root{--logo-blue:#0078b6;--accent:#82d2ff;--accent-dim:rgba(0,120,182,.18)}
.mode-btn.active{background:#133b52;color:#b4e5ff;border-color:var(--logo-blue)}
.side-link.active{background:#123247;color:#b4e5ff}.side-link.active svg{color:var(--accent)}
.history-btn.active{background:#183345;color:#c5eaff}.history-btn.active svg{color:var(--accent)}
.send-btn:not(:disabled),.dialog-primary,.topic-search button{background:var(--logo-blue);color:#fff}.send-btn:hover:not(:disabled),.dialog-primary:hover,.topic-search button:hover{background:#096b9e}
.suggestion:hover{background:#26333b;border-color:#347da4}.suggestion-arrow,.eyebrow,.screen-topline,.menu-item.more,.footer-note a{color:var(--accent)}
.menu-item:hover{background:#203441;border-color:#347da4}.menu-item:hover:after{color:var(--accent)}
button:focus-visible,select:focus-visible,input:focus-visible{outline-color:var(--accent)}.model-chooser select:focus-visible{border-color:var(--accent)}
.settings-dialog input[type=checkbox]{accent-color:var(--logo-blue)}.error-card .mini-action{margin-right:8px}.retry-hint{font-size:11px;margin:10px 0 0}
.answer-next.rabbit-missing .mini-action{margin-top:4px;padding:7px 12px;border:1px solid #347da4;border-radius:8px;background:#203441;color:#c5eaff;font:inherit;font-size:12px;font-weight:600;cursor:pointer}.answer-next.rabbit-missing .mini-action:hover{background:#26333b;border-color:#55b5e4}.answer-next.rabbit-missing .mini-action:disabled{opacity:.5;cursor:default}




/* A consistent Windows-friendly font and balanced emphasis throughout the chat. */
:root{font-family:"Segoe UI",Arial,sans-serif;--text:#ededed;--muted:#bdbdbd}
body,button,input,textarea,select{font-family:"Segoe UI",Arial,sans-serif}
.brand,.header-brand,.hero-title,.message-avatar,.prose h2,.prose h3,.screen-card h2,.answer-next h3,.dialog-heading h2{font-family:"Segoe UI",Arial,sans-serif;font-weight:600}
.prose{color:#e5e5e5;font-size:15px;line-height:1.8;font-weight:400;letter-spacing:normal;overflow-wrap:anywhere}
.prose strong{color:#f1f1f1;font-weight:600;letter-spacing:normal}.prose em{color:inherit}
.prose h2{color:#f1f1f1;font-weight:600;font-size:21px;letter-spacing:-.012em}.prose h3{color:#ededed;font-weight:600;font-size:16px;letter-spacing:normal}
.prose blockquote{color:#d5d5d5;border-left-color:#71889a}.prose li{margin:8px 0}.model-chooser select{font-weight:500}.model-chooser option{font-weight:400}
.dialog-primary{font-weight:600}
.retry-btn{font:inherit;font-size:11px;font-weight:500;line-height:1.4;padding:3px 8px;margin-left:4px;border:1px solid #4d555b;border-radius:6px;background:transparent;color:var(--accent)}.retry-btn:hover{background:#293b47;border-color:#5587a5}.retry-btn:disabled{opacity:.6}

.history-row{display:flex;align-items:center;border-radius:9px;margin:1px 0;min-width:0}.history-row:hover{background:#242424}.history-row.active{background:#183345}.history-row .history-btn{flex:1;min-width:0;margin:0;background:transparent;padding-right:4px}.history-row.active .history-btn{color:#d7ecf8}.history-row .history-btn>span:first-of-type{flex:1}.history-pin{display:flex;flex:0 0 auto;color:#9cb9ca}.history-pin svg{width:13px;height:13px}.history-more{flex:0 0 30px;width:30px;height:30px;margin-right:5px;border:0;border-radius:6px;background:none;color:#a6b8c3;display:grid;place-items:center}.history-more svg{width:19px;height:19px}.history-more:hover,.history-more[aria-expanded=true]{background:#334854;color:#fff}.history-more:disabled{opacity:.4}.history-header .tiny-btn{padding:5px}.history-header .tiny-btn svg{width:19px;height:19px}
.chat-actions-menu{position:fixed;z-index:100;width:174px;padding:5px;border:1px solid #4b4b4b;border-radius:10px;background:#2b2b2b;box-shadow:0 12px 35px #0007}.chat-actions-menu[hidden]{display:none}.chat-actions-menu button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;padding:10px;border:0;border-radius:6px;background:none;color:#ededed;font:inherit;font-size:13px}.chat-actions-menu button svg{width:17px;height:17px;flex:0 0 17px}.chat-actions-menu button:hover,.chat-actions-menu button:focus-visible{background:#3b3b3b;outline-offset:-2px}.chat-actions-menu .menu-danger{color:#f3a3a3}.chat-actions-menu button:disabled{opacity:.4;cursor:default}
.chat-edit-dialog{width:410px;max-width:92vw;max-height:85dvh;overflow:auto;background:#262626}.chat-edit-dialog h2{font-size:20px;margin:0;font-weight:600}.chat-edit-dialog label{display:block;margin:20px 0 8px;font-size:13px;color:#ddd}.chat-edit-dialog input{display:block;width:100%;padding:11px 12px;border:1px solid #666;border-radius:8px;background:#303030;color:#eee;font:inherit}.chat-dialog-actions{display:flex;justify-content:flex-end;align-items:center;gap:9px;margin-top:23px}.chat-dialog-actions button{border:1px solid #555;border-radius:8px;background:#333;color:#eee;padding:9px 15px;font:inherit;font-size:13px}.chat-dialog-actions .dialog-primary{margin:0;background:var(--logo-blue);border-color:var(--logo-blue)}.chat-dialog-actions .delete-all-confirm{background:#a83535;border-color:#b84646;color:#fff}.toast:has(.undo-chat-btn){pointer-events:auto}.undo-chat-btn{border:0;background:none;color:var(--accent);font:inherit;font-weight:600;margin-left:12px;padding:2px 4px;text-decoration:underline}


/* Google setup */
#accountStatus[data-connection="connected"] .status-dot{background:#4ade80;box-shadow:0 0 0 3px #4ade8018}
#accountStatus[data-connection="disconnected"] .status-dot{background:#f87171;box-shadow:0 0 0 3px #f8717118}
.google-status-btn{font:inherit;cursor:pointer;gap:9px;background:#252525}.google-status-btn:hover{border-color:#7b9bb0;color:#fff}
.google-model-name{font-size:13px;color:#d0d0d0}.google-settings-btn{width:34px;height:34px;border:1px solid #444;border-radius:9px}
.google-dialog{width:620px;max-width:94vw;max-height:90dvh;background:#242424;padding:24px;color:#eaeaea}.google-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.google-dialog .dialog-heading{flex:0 0 auto;margin-bottom:14px}.google-dialog h2{font-size:23px;margin:4px 0 0}.setup-eyebrow{font-size:10px;letter-spacing:.14em;font-weight:600;color:#8dbbd7}.google-dialog-content{overflow:auto;min-height:0;scrollbar-width:thin;padding-right:5px}.google-dialog .setup-intro{font-size:14px;margin:0 0 16px;color:#ccc;line-height:1.6}
.google-free-note{background:#24333e;border:1px solid #3e6076;border-radius:10px;padding:13px 15px}.google-free-note strong{font-size:13px;color:#e7f2fa}.google-dialog .google-free-note p{font-size:12px;line-height:1.6;margin:7px 0;color:#c4d2dc}.google-free-note a{font-size:12px}
.google-setup-steps{list-style:none;counter-reset:setup;padding:0;margin:18px 0;display:grid;gap:14px}.google-setup-steps li{counter-increment:setup;position:relative;padding-left:36px}.google-setup-steps li:before{content:counter(setup);position:absolute;left:0;top:0;width:24px;height:24px;display:grid;place-items:center;border-radius:50%;border:1px solid #405b6c;color:#a5d2eb;font-size:12px;background:#24323b}.google-setup-steps strong{font-size:13px;display:block;font-weight:600}.google-setup-steps span{display:block;font-size:12px;line-height:1.65;color:#bcbcbc;margin-top:3px}
.google-dialog label{display:block;font-size:13px;margin:10px 0 7px;color:#ddd}.google-dialog .key-field{display:flex;gap:8px}.google-dialog input[type="password"],.google-dialog input[type="text"]{width:100%;min-width:0;background:#303030;color:#eee;border:1px solid #606060;border-radius:8px;padding:12px;font:inherit;font-size:13px}.google-dialog button:not(.icon-btn){font:inherit;font-size:12px;border:1px solid #555;background:#303030;color:#eaeaea;border-radius:8px;padding:10px 12px}.google-dialog .checkbox-label{display:flex;align-items:center;gap:8px;margin:12px 0 4px}.google-dialog .field-hint{font-size:11px;color:#aaa;line-height:1.6;margin:4px 0 12px}.google-key-privacy{padding:10px 12px;border:1px solid #444;border-radius:8px}.google-key-privacy strong{font-size:12px}.google-dialog .google-key-privacy p{font-size:11px;color:#b8b8b8;line-height:1.6;margin:5px 0 0}.google-key-actions{display:flex;gap:8px;justify-content:flex-end;flex-wrap:wrap}.google-dialog .dialog-primary{background:var(--logo-blue)!important;border-color:var(--logo-blue)!important;color:#fff!important;margin:0}.google-dialog .settings-status{font-size:12px;line-height:1.6;color:#b8d9ee;white-space:pre-wrap;min-height:0;margin:10px 0}.google-links{display:flex;gap:20px;flex-wrap:wrap;font-size:11px;margin:15px 0 0}.google-dialog button[hidden]{display:none}.google-dialog button:disabled{opacity:.5}
@media(max-width:780px){.header-right{gap:8px}.google-model-name{font-size:11px}.google-status-btn{font-size:11px;padding:8px 10px}.header-subtitle{display:none}}
@media(max-width:520px){.topbar{padding:0 13px}.google-model-name{display:none}.google-dialog{padding:18px}.google-dialog h2{font-size:21px}.google-dialog .key-field{gap:5px}.google-key-actions .dialog-primary{flex:1}.google-setup-steps{gap:11px}}

.google-model-select{max-width:250px;min-width:0;background:#292929;color:#e5e5e5;border:1px solid #444;border-radius:9px;padding:9px;font:inherit;font-size:12px}.send-btn[title="Stop response"]{background:#e3e3e3;color:#202020}.send-btn[title="Stop response"]:hover{background:#fff}@media(max-width:600px){.google-model-select{max-width:130px}}

.puter-settings-btn{width:34px;height:34px;flex:0 0 34px;border:1px solid #414141}.puter-settings-btn[hidden]{display:none}
.puter-dialog{width:620px;max-width:94vw;max-height:90dvh;overflow:auto;background:#242424;padding:25px;color:#ececec}.puter-dialog h3{font-size:15px;font-weight:600;margin:0}
.puter-connection{border:1px solid #3d5360;background:#24343e;border-radius:10px;padding:14px;margin-top:18px}.puter-connection p{margin:0 0 8px;color:#e5edf2}.puter-connection .dialog-primary{margin:0}
.puter-dialog .puter-description,.puter-dialog .puter-price-legend{font-size:12px;line-height:1.65;color:#bfc6cb}.puter-price-legend strong{color:#e8e8e8;font-weight:600}
.puter-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:22px 0 14px}
.puter-catalog-heading button{background:#303030;color:#e5e5e5;border:1px solid #505050;border-radius:8px;padding:9px 11px;font:inherit;font-size:12px}
.puter-filter-row{display:grid;grid-template-columns:minmax(0,1fr) 155px;gap:12px}.puter-dialog label{font-size:12px;color:#c9c9c9;display:block;margin:0 0 7px}.puter-dialog input,.puter-dialog select{display:block;width:100%;min-width:0;margin-top:7px;padding:11px;border:1px solid #555;border-radius:8px;background:#303030;color:#eee;font:inherit;font-size:13px;line-height:1.5}.puter-dialog input::placeholder{color:#aaa}.puter-dialog .puter-model-label{margin-top:12px}.puter-dialog .field-hint{font-size:11px;color:#aaa;margin:7px 0}.puter-dialog .puter-price-note{color:#d8e8f3;font-size:12px;line-height:1.65}
.dialog-primary{font-weight:600}.puter-dialog::backdrop{background:rgba(0,0,0,.68)}
@media(max-width:780px){.prose{font-size:14px}.prose h2{font-size:19px}.header-right{gap:6px}.puter-settings-btn{width:30px;height:30px;flex-basis:30px}.model-chooser{min-width:0}.model-chooser select{max-width:min(45vw,250px)}}
@media(max-width:480px){.puter-dialog{padding:18px}.puter-filter-row{grid-template-columns:minmax(0,1fr)}.puter-catalog-heading{align-items:flex-start}.header-brand{font-size:12px}.prose{line-height:1.75}}



/* Puter account state and model browser */
#accountStatus[data-connection="connected"] .status-dot,#accountStatus[data-connection="free"] .status-dot{background:#4ade80;box-shadow:0 0 0 3px #4ade8018}
#accountStatus[data-connection="disconnected"] .status-dot{background:#f87171;box-shadow:0 0 0 3px #f8717118}
.puter-dialog{width:680px;padding:24px;scrollbar-width:thin}
.puter-dialog .dialog-heading{margin-bottom:18px}.puter-connection{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;margin:0;padding:16px;background:#262e33;border-color:#3a4c58}.puter-connection h3{width:100%;color:#f1f1f1}.puter-connection p{flex:1 1 280px;font-size:13px;line-height:1.6;margin:0}.puter-connection button{flex:0 0 auto}
.puter-description{margin:12px 0 18px}.puter-current{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid #414141;border-bottom:1px solid #414141}.puter-current>div{flex:1;min-width:0}.puter-current span{display:block;font-size:11px;color:#aaa;margin-bottom:5px}.puter-current strong{font-size:13px;font-weight:600;overflow-wrap:anywhere}.puter-current button{padding:8px 10px;background:#303030;border:1px solid #505050;border-radius:7px;color:#e5e5e5;font:inherit;font-size:12px}
.puter-dialog .puter-price-note{margin:8px 0 18px;font-size:11px;color:#b4c6d1}.puter-catalog-heading{margin:0 0 12px}.puter-filter-row{grid-template-columns:minmax(0,1fr) 150px;gap:10px}.puter-model-label{font-size:11px!important;color:#aaa!important}
.puter-dialog #puterDialogModelSelect{height:184px;padding:5px;background:#1d1d1d;border-color:#454545;border-radius:9px}.puter-dialog #puterDialogModelSelect option{padding:7px 9px;line-height:1.4;border-radius:4px}.puter-dialog #puterDialogModelSelect option:checked{background:#183f56;color:#e2f3ff}
.puter-dialog .puter-price-legend{margin:14px 0;color:#aaa;font-size:11px}.puter-price-legend summary{cursor:pointer;color:#bdcbd4}.puter-price-legend p{margin:8px 0}.puter-dialog-footer{display:flex;justify-content:flex-end;padding-top:14px;border-top:1px solid #414141}.puter-dialog-footer .dialog-primary{margin:0}
@media(max-width:480px){.puter-dialog{padding:18px}.puter-filter-row{grid-template-columns:1fr}.puter-current{align-items:flex-start;flex-wrap:wrap}}
@media(min-width:481px) and (max-height:850px){
  .puter-dialog{padding:18px 22px}.puter-dialog .dialog-heading{margin-bottom:10px}
  .puter-connection{padding:12px;gap:7px 14px}.puter-connection p{font-size:12px;line-height:1.5}
  .puter-description{margin:9px 0 12px}.puter-current{padding:10px 0}
  .puter-dialog .puter-price-note{margin:6px 0 12px}.puter-catalog-heading{margin-bottom:8px}
  .puter-dialog input,.puter-dialog select{padding:8px;margin-top:5px}
  .puter-dialog .puter-model-label{margin-top:7px}.puter-dialog #puterDialogModelSelect{height:120px}
  .puter-dialog .puter-price-legend{margin:9px 0}.puter-dialog-footer{padding-top:8px}
}

.puter-dialog[open]{display:flex;flex-direction:column;overflow:hidden}.puter-dialog .dialog-heading,.puter-dialog-footer{flex:0 0 auto}.puter-dialog-content{min-height:0;overflow:auto;scrollbar-width:thin;padding-right:5px}.puter-dialog-footer{margin-top:10px}.puter-dialog .dialog-heading{margin-bottom:12px}

.alternative-models{border:1px solid #454545;border-radius:9px;padding:12px 14px;margin-top:14px}.alternative-models strong{font-size:13px}.google-dialog .alternative-models p{font-size:12px;line-height:1.6;color:#bcbcbc;margin:7px 0 10px}.alternative-models>div{display:flex;flex-wrap:wrap;gap:8px}

.provider-alternatives{margin:12px 0}.provider-alternatives>summary{color:#8dc9ed;font-size:12px;cursor:pointer;width:fit-content;padding:5px 0}.provider-alternatives .alternative-models{margin-top:8px}
.google-model-picker{border-top:1px solid #444;padding-top:14px;margin:18px 0}.google-model-picker h3{font-size:14px;margin:0}.google-model-picker p{font-size:12px;line-height:1.6}.google-model-tools{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}.google-model-picker label{display:block;font-size:12px;margin:10px 0 6px}.google-model-picker input,.google-model-picker select{width:100%;background:#303030;color:#e5e5e5;border:1px solid #555;border-radius:8px;padding:10px;font:inherit;font-size:13px}#googleModelsStatus{color:#b8d9ee}

.response-actions{display:flex;align-items:center;gap:4px;margin:16px 0 10px}.response-actions button{display:grid;place-items:center;width:34px;height:34px;padding:7px;border:0;border-radius:7px;color:#a4a4a4;background:transparent;cursor:pointer}.response-actions button:hover{background:#303030;color:#eee}.response-actions button:focus-visible{outline:2px solid #55b5e4;outline-offset:2px}.response-actions button:disabled{opacity:.35;cursor:default}.response-actions button[aria-pressed="true"]{color:#7cc9ef;background:#243a45}.response-actions svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}.partial-label{font-size:11px;color:#b9a18f}

/* Darker neutral surfaces. Existing text colors and blue accents are retained. */
:root{--bg:#0b0b0b;--sidebar:#111111;--surface:#171717;--surface-2:#1c1c1c;--surface-3:#262626;--stroke:#333333}
.topbar{background:#101010}
.screen-card,.answer-next,.suggestion,.privacy-note{background:#171717;border-color:#333333}
.composer-box{background:#1c1c1c;border-color:#333333}
.info-dialog,.settings-dialog,.google-dialog,.puter-dialog{background:#1b1b1b;border-color:#333333}
.new-chat-btn,.endpoint-pill,.google-status-btn,.user-bubble,.model-chooser select,.model-chooser optgroup,.google-model-select{background:#1c1c1c;border-color:#333333}
.nav-actions button,.menu-footer button,.settings-actions>button:not(.dialog-primary),.key-field button,.custom-model-row button,.chat-dialog-actions button:not(.dialog-primary):not(.delete-all-confirm),.puter-catalog-heading button,.puter-current button,.google-dialog button:not(.icon-btn):not(.dialog-primary){background:#1c1c1c;border-color:#333333}
.settings-dialog input:not([type=checkbox]):not([type=hidden]),.google-dialog input[type="password"],.google-dialog input[type="text"],.google-model-picker input,.google-model-picker select,.puter-dialog input,.puter-dialog select,.topic-search input,.chat-edit-dialog input{background:#1c1c1c;border-color:#333333}
.puter-dialog #puterDialogModelSelect{background:#171717;border-color:#333333}
.alternative-models,.google-key-privacy,.custom-model-row,.puter-current,.puter-dialog-footer,.menu-footer,.sidebar-bottom,.google-model-picker{border-color:#333333}
.prose code{background:#1c1c1c}.prose pre{background:#111111;border-color:#333333}
.prose hr{border-top-color:#333333}
.new-chat-btn:hover,.side-link:not(.active):hover,.history-btn:not(.active):hover,.tiny-btn:hover,.icon-btn:hover,.response-actions button:hover{background:#262626}
.toast,.chat-actions-menu{background:#1b1b1b;border-color:#333333}

/* Give recent conversations more of the sidebar's available height. */
.sidebar{padding-top:18px;padding-bottom:12px}
.side-top{padding-bottom:14px}
.sidebar-nav{padding-top:14px;padding-bottom:4px}
.sidebar-nav .side-label{margin-bottom:7px}
.sidebar-nav .side-link{padding-top:8px;padding-bottom:8px}
.history-header{margin-top:8px}
.sidebar-bottom{padding-top:10px;margin-top:6px}
.sidebar-bottom .side-link{padding-top:8px;padding-bottom:8px}
.side-top,.new-chat-btn,.sidebar-nav,.history-header,.sidebar-bottom{flex-shrink:0}
.history{flex:1 1 0;min-height:0}
.response-actions{margin-top:10px;margin-bottom:0}
@media(max-height:650px){.sidebar{padding-top:12px;padding-bottom:8px}.side-top{padding-bottom:10px}.sidebar-nav{padding-top:10px}.sidebar-nav .side-link,.sidebar-bottom .side-link{padding-top:6px;padding-bottom:6px}.sidebar-bottom{padding-top:6px}.side-foot{padding-top:5px}}

/* One settings window with provider/help sections and compact controls. */
.unified-settings{width:min(900px,94vw);max-width:94vw;height:min(700px,88dvh);max-height:88dvh;padding:0;border:1px solid #333;border-radius:16px;background:#1b1b1b;color:var(--text);box-shadow:0 24px 90px #0009}
.unified-settings[open]{display:flex;flex-direction:column;overflow:hidden}
.unified-settings::backdrop{background:#000a}
.unified-settings-heading{display:flex;align-items:center;justify-content:space-between;padding:17px 20px;border-bottom:1px solid #303030;flex:0 0 auto}
.unified-settings-heading h2{margin:0;font-size:18px;font-weight:600}
.unified-settings-layout{display:grid;grid-template-columns:174px minmax(0,1fr);min-height:0;flex:1}
.settings-tabs{padding:14px 10px;background:#141414;border-right:1px solid #303030;overflow:auto;display:flex;flex-direction:column;gap:4px}
.settings-tabs button{display:flex;align-items:center;gap:9px;width:100%;border:0;background:transparent;color:#bdbdbd;text-align:left;border-radius:7px;font:inherit;font-size:13px;padding:10px}
.settings-tabs button svg{width:17px;height:17px;flex:0 0 auto}
.settings-tabs button:hover{background:#242424;color:#ededed}
.settings-tabs button[aria-selected="true"]{background:#303030;color:#f1f1f1}
.settings-content{overflow:auto;min-height:0;padding:22px 24px;scrollbar-width:thin}
.unified-settings .settings-panel{display:block;width:auto;max-width:none;max-height:none;padding:0;margin:0;border:0;border-radius:0;box-shadow:none;background:transparent;color:inherit;overflow:visible}
.unified-settings .settings-panel[hidden]{display:none!important}
.unified-settings .settings-panel .dialog-heading{margin:0 0 16px;display:block}
.unified-settings .settings-panel h2{margin:0 0 14px;font-size:20px;font-weight:600}
.unified-settings .settings-panel h3{font-size:14px;margin:17px 0 8px;font-weight:600}
.unified-settings .settings-panel p{font-size:12px;line-height:1.65;color:#bdbdbd}
.unified-settings .google-dialog-content,.unified-settings .puter-dialog-content{overflow:visible;min-height:auto;padding:0}
.unified-settings .setup-eyebrow{display:none}
.unified-settings .settings-panel label{font-size:12px;margin:10px 0 5px}
.unified-settings .settings-panel input:not([type="checkbox"]):not([type="hidden"]),.unified-settings .settings-panel select{padding:8px 10px;font-size:12px;line-height:1.4;border-radius:7px;min-height:34px}
.unified-settings .settings-panel input[type="checkbox"]{width:14px;height:14px;margin:0;flex-shrink:0}
.unified-settings .settings-panel button:not(.icon-btn){padding:7px 10px;font:inherit;font-size:12px;line-height:1.4;min-height:32px;border-radius:7px}
.unified-settings .settings-panel .dialog-primary{margin-top:8px}
.unified-settings .settings-panel .checkbox-label{display:flex;align-items:center;gap:8px}
.unified-settings .google-model-picker{margin:15px 0;padding-top:10px}
.unified-settings .google-free-note,.unified-settings .privacy-note,.unified-settings .google-key-privacy{padding:10px 12px}
.unified-settings .google-setup-steps{margin:14px 0;gap:10px}
.unified-settings .google-setup-steps strong{font-size:12px}
.unified-settings .google-setup-steps span{font-size:12px;line-height:1.5}
.unified-settings .puter-connection{padding:12px;gap:6px 12px}
.unified-settings .puter-connection h3{margin:0}
.unified-settings .puter-current{padding:10px 0;gap:10px}
.unified-settings .puter-catalog-heading{margin:15px 0 10px}
.unified-settings .puter-catalog-heading h3{margin:0}
.unified-settings .puter-dialog #puterDialogModelSelect{height:170px;min-height:120px;padding:4px}
.unified-settings .puter-dialog #puterDialogModelSelect option{padding:6px 8px}
.unified-settings .puter-dialog-footer{margin-top:12px;padding-top:10px}
.unified-settings #ovhSettingsModel{display:block;width:100%;background:#1c1c1c;color:#ededed;border:1px solid #333;margin:7px 0 12px}
.composer-box:hover{border-color:#454545}
.composer-box textarea:focus-visible{outline:none}
@media(max-width:600px){.unified-settings{width:96vw;max-width:96vw;height:90dvh;max-height:90dvh}.unified-settings-layout{grid-template-columns:126px minmax(0,1fr)}.settings-tabs{padding:10px 6px}.settings-tabs button{padding:9px 7px;font-size:12px;gap:6px}.settings-tabs button svg{width:15px;height:15px}.settings-content{padding:17px 14px}.unified-settings-heading{padding:13px 15px}.unified-settings .puter-filter-row{grid-template-columns:1fr}.unified-settings .key-field{flex-wrap:nowrap}.unified-settings .google-key-actions{justify-content:flex-start}}

/* Compact conversation header and vertically centered welcome content. */
.topbar{height:50px;flex:0 0 50px;padding:8px 20px;gap:14px}
.header-left{flex:1;min-width:0;gap:10px}
.header-right{flex:0 0 auto;gap:8px}
.header-subtitle.conversation-title{display:block;max-width:none;min-width:0;font-size:14px;color:var(--text);font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.google-model-select{height:30px;padding:5px;line-height:18px;max-width:250px}
.endpoint-pill{height:30px;padding:5px 9px;line-height:18px}
.google-status-btn{font-size:11px;color:#e5e5e5}
.google-settings-btn{width:30px;height:30px;padding:5px;flex:0 0 30px}
.google-settings-btn svg{width:18px;height:18px}
.model-notice{top:54px}
.conversation.is-empty{height:100%;display:flex;align-items:center;justify-content:center;padding:24px 28px}
.conversation.is-empty .empty-state{min-height:0;width:100%;padding:0;flex:0 0 auto}
@media(max-width:600px){.topbar{padding:7px 12px;gap:8px}.header-right{gap:5px}.header-subtitle.conversation-title{font-size:12px}.google-model-select{max-width:130px}.conversation.is-empty{padding:18px}.endpoint-pill{gap:6px}}

/* Quiet text-field focus and a stable selected model color. */
input:not([type="checkbox"]):not([type="radio"]):focus,input:not([type="checkbox"]):not([type="radio"]):focus-visible,textarea:focus,textarea:focus-visible,select:focus,select:focus-visible{outline:none!important;box-shadow:none!important}
.composer-box:focus-within{border-color:#333;box-shadow:none}
.puter-dialog #puterDialogModelSelect option:checked,.puter-dialog #puterDialogModelSelect:focus option:checked,.puter-dialog #puterDialogModelSelect option:checked:hover,.puter-dialog #puterDialogModelSelect option:checked:active{background:#183f56!important;background-image:linear-gradient(#183f56,#183f56)!important;box-shadow:inset 0 0 0 1000px #183f56;color:#e2f3ff!important;-webkit-text-fill-color:#e2f3ff;outline:none}

.backup-section{padding:4px 0 18px;margin:0 0 16px;border-bottom:1px solid #333}.backup-section input:not([type="checkbox"]){display:block;width:100%;background:#1c1c1c;color:#ededed;border:1px solid #333}.backup-section button:not(.dialog-primary){background:#262626;color:#ededed;border:1px solid #444;margin-top:10px}.backup-section input[type="file"]{height:auto;min-height:36px}.unified-settings [hidden]{display:none!important}.backup-status{white-space:pre-wrap;color:#b8d9ee}.backup-section p{margin:9px 0}

.user-prompt-wrap{position:relative;max-width:75%;min-width:0}.user-prompt-wrap .user-bubble{max-width:100%}.edit-prompt-btn{position:absolute;left:-36px;top:6px;width:30px;height:30px;border:0;border-radius:7px;background:transparent;color:#a4a4a4;display:grid;place-items:center;padding:6px;opacity:0;transition:opacity .12s}.edit-prompt-btn svg{width:18px;height:18px}.message-row.user:hover .edit-prompt-btn,.user-prompt-wrap:focus-within .edit-prompt-btn{opacity:1}.edit-prompt-btn:hover{background:#262626;color:#ededed}.edit-prompt-btn:disabled{display:none}.prompt-editor{width:min(100%,650px);padding:12px;background:#1c1c1c;border:1px solid #333;border-radius:14px}.prompt-editor textarea{display:block;width:100%;min-height:100px;max-height:360px;resize:vertical;background:transparent;color:#f4f4f4;border:0;padding:5px;font:inherit;font-size:14px;line-height:1.6}.prompt-edit-actions{display:flex;gap:8px;justify-content:flex-end;margin-top:10px}.prompt-edit-actions button{border:1px solid #444;background:#262626;color:#ededed;border-radius:8px;padding:7px 14px;font:inherit;font-size:12px}.prompt-edit-actions .prompt-edit-send{background:var(--logo-blue);border-color:var(--logo-blue);color:white}@media(hover:none){.edit-prompt-btn{opacity:1}}@media(max-width:600px){.user-prompt-wrap{max-width:85%}.prompt-editor{width:100%}}

#voiceSettingsPanel select{display:block;width:100%;background:#1c1c1c;color:#ededed;border:1px solid #333}#voiceSettingsPanel input[type="range"]{width:100%;padding:0;accent-color:var(--logo-blue)}#browserVoiceSpeedValue{margin-left:8px;color:#bdbdbd}.voice-settings-actions{display:flex;gap:8px;align-items:center;margin:15px 0}.voice-settings-actions button:not(.dialog-primary){background:#262626;color:#ededed;border:1px solid #444}.voice-settings-actions .dialog-primary{margin-top:0!important}


.google-setup-instructions{margin:0 0 16px}.google-setup-instructions>summary{color:#8dc9ed;font-size:12px;cursor:pointer;padding:4px 0;width:fit-content}.google-setup-instructions[open]>summary{margin-bottom:12px}.unified-settings .google-setup-instructions .setup-intro{margin-top:0}

.brand{gap:5px}.brand-sword{width:20px;height:20px;flex:0 0 28px;object-fit:contain;display:block}.brand .brand-gpt{color:var(--accent)}

/* Welcome screen: restrained blue accents and a clearer reading hierarchy. */
.welcome-screen{max-width:620px;margin:auto;gap:0}
.welcome-screen .hero-mark{width:100px;height:100px;flex-shrink:0;border-radius:28px;background:none;box-shadow:0 0 20px -14px #008fce66,0 0 0 1px #82d2ff1a}
.welcome-screen .hero-mark img{border-radius:28px}
.welcome-screen .eyebrow{display:flex;align-items:center;justify-content:center;gap:14px;margin:29px 0 17px;font-size:10px;font-weight:700;line-height:1.6;letter-spacing:.17em;color:var(--accent)}
.welcome-screen .eyebrow:before,.welcome-screen .eyebrow:after{content:"";width:28px;height:1px;background:#82d2ff40;flex-shrink:0}
.welcome-screen .hero-title{font-size:clamp(30px,3.6vw,44px);font-weight:600;line-height:1.16;letter-spacing:-.04em;color:var(--text);text-wrap:balance;margin:0}
.welcome-screen .hero-subtitle{max-width:510px;font-size:15px;line-height:1.85;color:#c5c5c5;margin:0;text-wrap:pretty}
.welcome-screen .empty-foot{max-width:440px;margin:28px 0 0;padding:20px 12px 0;border-top:1px solid #ffffff0d;font-size:12px;line-height:1.8;color:#818181;text-wrap:pretty}
.welcome-screen .empty-foot strong{font-weight:500;color:#b5b5b5}
@media(max-height:750px){.welcome-screen .hero-mark{width:80px;height:80px;border-radius:50%}.welcome-screen .hero-mark img{border-radius:50%;}.welcome-screen .eyebrow{margin:22px 0 13px}.welcome-screen .hero-title{font-size:34px}.welcome-screen .hero-subtitle{font-size:14px;margin-top:0}.welcome-screen .empty-foot{margin-top:22px;padding-top:16px}}
@media(max-width:480px){.welcome-screen .eyebrow{font-size:9px;letter-spacing:.12em;gap:8px}.welcome-screen .eyebrow:before,.welcome-screen .eyebrow:after{width:12px}.welcome-screen .hero-title{font-size:31px}.welcome-screen .hero-subtitle{font-size:14px}.welcome-screen .empty-foot{font-size:11px;padding-inline:0}}


/* Persistent sidebar search above categories. */
.sidebar .sidebar-topic-search{margin:0;flex-shrink:0;cursor:text;background:#191919;border:1px solid #2a2a2a;border-radius:10px;min-height:38px}
.sidebar-topic-search>svg{flex-shrink:0;pointer-events:none}
.sidebar-topic-search input{flex:1;width:0;min-width:0;border:0;border-radius:0;outline:none!important;box-shadow:none!important;padding:0;background:transparent;color:var(--text);font:inherit;line-height:inherit}
.sidebar-topic-search input::placeholder{color:#999}
.sidebar .sidebar-topic-search:hover,.sidebar .sidebar-topic-search:focus-within{background:#202020;border-color:#3b3b3b}


.classic-version-link{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:7px 12px;margin-bottom:5px;border-radius:8px;color:#999;font-size:12px;line-height:1.5;text-decoration:none}
.classic-version-link:hover{background:#202020;color:#dedede}
.classic-version-link:focus-visible{outline:1px solid var(--accent);outline-offset:2px}


/* Compact composer: one row at rest, expanding only as the message grows. */
.composer-container{width:min(100%,760px)}
.composer-box{display:flex;align-items:center;gap:8px;padding:8px 10px 8px 14px;border-radius:24px}
.composer-box textarea{flex:1;min-width:0;width:0;min-height:35px;padding:7px 0;font-size:14px;line-height:21px}
.composer-actions{flex:0 0 auto;padding:0;gap:8px;align-self:flex-end;min-height:35px}
.composer-actions .char-count{display:none}
.answer-depth{width:105px;height:34px;padding:5px 22px 5px 8px;border:0;border-radius:8px;background:transparent;color:#bdbdbd;font:inherit;font-size:12px;cursor:pointer;color-scheme:dark}
.answer-depth:hover,.answer-depth:focus-visible{background:#292929;color:#ededed}
.answer-depth:focus-visible{outline:1px solid #666;outline-offset:0}
.answer-depth option{background:#1c1c1c;color:#ededed}
.composer-box .send-btn{height:34px;width:34px;border-radius:50%;flex-shrink:0}
@media(max-width:480px){.composer-box{gap:4px;padding:7px 8px 7px 13px}.composer-box textarea{font-size:13px}.composer-actions{gap:4px}.answer-depth{width:92px;font-size:11px;padding-left:5px;padding-right:16px}}

.composer-container .footer-note{margin-top:18px}

.clear-data-section{border-top:0;margin-top:20px;padding-top:0}
.unified-settings #clearAllDataBtn{background:#411e1e;border:1px solid #814040;color:#ffb4b4}
.unified-settings #clearAllDataBtn:hover{background:#572727;border-color:#b35b5b}

.answer-tone{width:108px;height:34px;padding:5px 18px 5px 6px;border:0;border-radius:8px;background:transparent;color:#bdbdbd;font:inherit;font-size:12px;cursor:pointer;color-scheme:dark}
.answer-tone option{background:#1c1c1c;color:#ededed}.answer-tone:hover:not(:disabled){background:#292929}
.answer-tone:disabled,.answer-depth:disabled{opacity:.8;cursor:default}
.settings-panel dd{margin:5px 0 16px;color:#bdbdbd;line-height:1.7;font-size:13px}
@media(max-width:600px){.composer-box{flex-wrap:wrap}.composer-box textarea{flex-basis:100%;width:100%}.composer-actions{width:100%;justify-content:space-between}.answer-tone{width:105px}}


/* Full-width writing area, with controls on a separate bottom-right row. */
.composer-box{display:flex;flex-direction:column;align-items:stretch;gap:4px}
.composer-box textarea{flex:none;flex-basis:auto;width:100%;max-height:280px}
.composer-box .composer-actions{width:auto;align-self:flex-end;justify-content:flex-end;flex-shrink:0}
.composer-actions .compose-left{display:flex;align-items:center}


/* Stay slim until the message wraps or contains explicit new lines. */
.composer-box:not(.is-multiline){flex-direction:row;align-items:center;gap:8px}
.composer-box:not(.is-multiline) textarea{flex:1;flex-basis:auto;min-width:0;width:0}
.composer-box:not(.is-multiline) .composer-actions{align-self:center}
@media(max-width:600px){.composer-box:not(.is-multiline){flex-direction:column;align-items:stretch}.composer-box:not(.is-multiline) textarea{flex:none;width:100%}.composer-box:not(.is-multiline) .composer-actions{align-self:flex-end}}


/* Help: a readable, numbered guide with optional reference sections. */
.help-guide .help-intro{color:#aaa;margin-top:0}
.help-guide .help-recommendation{padding:18px;border:1px solid #355364;border-radius:12px;background:#15232c;margin:20px 0 26px}
.help-kicker{font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--accent)}
.help-guide .help-recommendation h3{margin:8px 0 10px;font-size:18px}
.help-guide .help-section{border-top:1px solid #333;padding-top:20px;margin-top:24px}
.help-guide .help-section>h3{margin:0 0 14px;font-size:17px}
.help-steps{padding-left:21px;margin:0}.help-steps li{padding-left:5px;margin:0 0 16px;color:#ccc;font-size:13px;line-height:1.7}.help-steps strong,.help-steps span{display:block}.help-steps span{color:#aaa;margin-top:3px}
.help-guide .help-providers{margin:16px 0 0}.help-providers dt{font-weight:600;font-size:13px;color:#e5e5e5}.help-guide .help-providers dd{margin:4px 0 16px}
.help-lengths{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0}.help-lengths>div{padding:11px;background:#202020;border-radius:8px}.help-lengths strong,.help-lengths span{display:block;font-size:12px}.help-lengths span{color:#aaa;margin-top:5px}
.help-details summary{cursor:pointer;color:var(--accent);font-size:13px;font-weight:600;line-height:1.6}.help-details[open] summary{margin-bottom:16px}.help-details dt{font-size:13px}.help-controls{padding-left:19px;color:#bdbdbd;font-size:13px;line-height:1.8}.help-controls li{margin-bottom:10px}.help-controls strong{color:#e5e5e5}
@media(max-width:480px){.help-lengths{grid-template-columns:1fr}.help-lengths>div{display:flex;justify-content:space-between;align-items:center}.help-lengths span{margin:0}}


/* About and Terms share Help's readable section hierarchy. */
.reference-guide .reference-intro{color:#aaa;margin-top:0}
.reference-guide .reference-feature{padding:18px;border:1px solid #355364;border-radius:12px;background:#15232c;margin:20px 0 26px}
.reference-kicker{display:block;font-size:10px;font-weight:700;letter-spacing:.12em;color:var(--accent);margin-bottom:12px}
.reference-guide .reference-feature p:last-child{margin-bottom:0}
.reference-guide .reference-section{border-top:1px solid #333;padding-top:20px;margin-top:24px}
.reference-guide .reference-section>h3{margin:0 0 12px;font-size:17px}
.reference-guide .reference-feature.terms-disclaimer{background:#202020;border-color:#3a3a3a}
.reference-guide .terms-disclaimer p{font-size:13px;line-height:1.9}
.reference-guide .reference-section p{margin:0 0 14px}

.response-time{color:#858585;font-size:10px;font-weight:400;white-space:nowrap}.response-time:before{content:"·";margin-right:6px;color:#666}

.background-request-status{font-size:11px;line-height:1.5;color:#999;text-align:center;margin:10px 8px 0}.background-request-status[hidden]{display:none}

#personalitySettingsPanel textarea{display:block;width:100%;min-height:100px;resize:vertical;background:#1c1c1c;color:#ededed;border:1px solid #333;border-radius:8px;padding:12px;font:inherit;font-size:13px;line-height:1.7}
#personalitySettingsPanel label{display:block;font-size:13px;margin:16px 0 7px}.personality-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:12px 0}.personality-actions .dialog-primary{margin:0}#personalityStatus{color:var(--accent);font-size:12px;line-height:1.6}

/* Personality controls use the same quiet surfaces as the provider settings. */
.unified-settings #personalitySettingsPanel input,.unified-settings #personalitySettingsPanel select,.unified-settings #personalitySettingsPanel textarea{width:100%;background:#1c1c1c;color:#ededed;border:1px solid #333;box-shadow:none}
.unified-settings #personalitySettingsPanel button:not(.dialog-primary){border:1px solid #333;background:#262626;color:#ededed;box-shadow:none}
.unified-settings #personalitySettingsPanel button:not(.dialog-primary):hover{background:#303030}
.unified-settings #personalitySettingsPanel .dialog-primary{border:1px solid var(--logo-blue);box-shadow:none}
#personalityInstructionCount{text-align:right;color:#888;font-size:11px;margin:6px 0}


@media(min-width:781px){.menu-items.rabbit-columns{grid-template-rows:repeat(var(--rabbit-rows,5),auto);grid-auto-flow:column}}

/* Button outlines are scoped to the Settings dialog. */
.unified-settings button{border:1px solid #333}
.unified-settings .settings-tabs button{border:0}

/* Inline search for saved chats. */
.history-header{gap:5px;min-height:30px}
.history-search-toggle{margin-left:auto}
.history-header [hidden]{display:none!important}
.history-search{display:flex;align-items:center;gap:6px;flex:1;min-width:0;border-radius:7px;background:#1c1c1c;padding:0 4px 0 8px}
.history-search>svg{width:15px;height:15px;flex-shrink:0;color:#929292}
.history-search input{width:100%;min-width:0;flex:1;border:0;outline:0;box-shadow:none;background:transparent;color:var(--text);font:400 12px/1.4 system-ui,sans-serif;letter-spacing:normal;padding:7px 0}
.history-search input::-webkit-search-cancel-button{display:none}
.history-search .tiny-btn{flex-shrink:0}
.history-search .tiny-btn svg{width:15px;height:15px}

/* A quiet alternative while an anonymous Mistral request is taking time. */
.slow-provider-notice{margin-top:14px;padding:13px 15px;max-width:490px;border:1px solid #294451;border-radius:12px;background:#122027;display:flex;align-items:center;flex-wrap:wrap;gap:9px 14px;color:#d2dde2;font-size:13px;line-height:1.5}
.slow-provider-notice>span{flex:1 1 240px}
.slow-provider-notice button{border:0;border-radius:7px;padding:6px 10px;background:#1c3b4c;color:#9edaff;font:inherit;white-space:nowrap}
.slow-provider-notice button:hover{background:#254e63;color:#d6efff}
.slow-provider-notice small{flex-basis:100%;color:#91a3ad;font-size:11px}

.article-share-dialog{width:min(470px,94vw);max-height:90dvh;overflow:auto;border:1px solid #333;border-radius:16px;background:#161616;color:var(--text);padding:20px;box-shadow:0 20px 80px #0009}
.article-share-dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
.share-dialog-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}.share-dialog-heading h2{font-size:18px;margin:0}.share-dialog-heading .icon-btn{width:30px;height:30px;padding:5px}.share-dialog-heading svg{width:18px;height:18px}
.share-preview{border:1px solid #333;border-radius:12px;overflow:hidden;background:#1d1d1d}.share-preview-image{aspect-ratio:16/9;background:#0b0b0b;overflow:hidden}.share-preview-image img{width:100%;height:100%;object-fit:cover;display:block}.share-preview-image.is-logo{background:radial-gradient(ellipse at center,#143041,#0b0b0b 75%);display:flex;align-items:center;justify-content:center}.share-preview-image.is-logo img{width:100px;height:100px;object-fit:contain;border-radius:20px}
.share-preview-copy{padding:14px 16px}.share-preview-copy>span{font-size:11px;color:#999}.share-preview-copy h3{font-size:16px;line-height:1.4;margin:7px 0;color:#eee;overflow-wrap:anywhere}.share-preview-copy p{font-size:13px;color:#b7b7b7;line-height:1.6;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.share-social-links{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:16px 0 10px}.share-social-links a{display:flex;align-items:center;justify-content:center;gap:7px;padding:10px 4px;border:1px solid #353535;border-radius:9px;color:#ddd;text-decoration:none;font-size:12px;background:#202020}.share-social-links a:hover{background:#2a2a2a;color:#fff}.share-social-links a span{font-family:system-ui,sans-serif;font-weight:700;color:#9edaff;font-size:14px}.share-social-links:empty{margin:0}
.share-copy-link{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;border:1px solid #355366;border-radius:9px;padding:10px;background:#173345;color:#d9efff;font:inherit;font-size:13px}.share-copy-link:hover:not(:disabled){background:#21475d}.share-copy-link:disabled{opacity:.5;cursor:wait}.share-copy-link svg{width:17px;height:17px}.share-dialog-status{font-size:12px;line-height:1.5;color:#b8d9ee;margin:10px 0 0}.share-dialog-status:empty{display:none}.share-preview-note{font-size:11px;color:#888;text-align:center;margin:12px 0 0}.share-manual-link{width:100%;box-sizing:border-box;margin-top:10px;padding:9px;background:#222;border:1px solid #444;border-radius:7px;color:#ddd;font-size:12px}

.share-preview-image{position:relative;display:grid;place-items:center;background:linear-gradient(135deg,#15212a,#111);color:#8998a2}.share-preview-image [hidden]{display:none!important}.share-preview-image>span{font-size:12px;line-height:1.6;text-align:center;padding:28px}.share-preview-image img{position:absolute;inset:0}
.share-image-editor{margin:12px 0;font-size:12px;color:#aaa}.share-image-editor summary{cursor:pointer;color:#9edaff;width:fit-content;padding:3px 0}.share-image-editor form,#customShareImageFields{padding:10px 0 0}.share-image-editor label{display:block;margin-bottom:7px;color:#ccc}.share-image-editor input{width:100%;box-sizing:border-box;background:#202020;border:1px solid #3a3a3a;border-radius:8px;color:#eee;padding:10px;font:inherit}.share-image-actions{display:flex;gap:12px;align-items:center;margin-top:9px}.share-image-actions button{font:inherit;color:#d9efff;background:#173345;border:1px solid #355366;border-radius:7px;padding:8px 12px}.share-image-actions button:disabled{opacity:.45;cursor:default}.share-image-actions span{color:#a5afb5;font-size:11px}.share-image-editor p{font-size:11px;line-height:1.5;color:#8c969c;margin:9px 0 0}

/* Compact share card: thumbnail beside the article text. */
.article-share-dialog{width:min(550px,94vw)}
.share-preview{display:grid;grid-template-columns:148px minmax(0,1fr);align-items:center}
.share-preview-image{aspect-ratio:16/9;width:140px;min-height:0;height:auto;align-self:center;margin-left:8px;border:0;border-radius:6px;background:#111}.share-preview-image img{object-fit:contain}
.share-preview-image>span{font-size:11px;line-height:1.5;padding:12px}
.share-preview-copy{min-width:0;padding:12px 14px}
.share-preview-copy h3{font-size:14px;line-height:1.4;margin:5px 0 6px;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.share-preview-copy p{font-size:12px;line-height:1.5;-webkit-line-clamp:2}
@media(max-width:440px){.article-share-dialog{padding:16px}.share-preview{grid-template-columns:108px minmax(0,1fr)}.share-preview-image{width:100px;min-height:0}.share-preview-copy{padding:10px}.share-preview-copy h3{font-size:13px}.share-preview-image>span{padding:8px;font-size:10px}}

.share-preview-copy>span{display:block;margin-top:7px}

.share-image-refresh{position:absolute;top:5px;right:5px;z-index:2;border:1px solid #ffffff30;border-radius:5px;background:#1116;color:#e3e3e3;padding:3px 6px;font:inherit;font-size:10px;line-height:1.4;cursor:pointer}.share-image-refresh:hover:not(:disabled){background:#2229}.share-image-refresh:disabled{color:#aaa;cursor:default}.share-image-credit{margin:8px 0 0;text-align:center;color:#777;font-size:11px}.share-image-credit a{color:#a2b9c7;text-decoration:none}.share-image-credit a:hover{text-decoration:underline}

.share-image-modes{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.share-image-modes button{font:inherit;padding:6px 9px;border:1px solid #3a3a3a;border-radius:7px;background:#202020;color:#ccc;cursor:pointer}.share-image-modes button[aria-pressed="true"]{background:#173345;border-color:#355366;color:#d9efff}.share-image-editor form[hidden],.share-image-editor [hidden]{display:none}

#conversationScroll[hidden],
#sharedDirectory[hidden],
#messageComposer[hidden] {
  display: none;
}

#sharedDirectoryLink {
  text-decoration: none;
}

#sharedDirectoryLink[aria-current="page"] {
  background: #173345;
  color: #d9efff;
}

.shared-directory-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.shared-directory h1 {
  margin: 0;
  font-size: 24px;
}

.shared-directory:has(#sharedDirectoryList:empty) .shared-directory-header {
  margin-bottom: 12px;
}

.shared-directory-menu {
  position: relative;
}

.shared-directory-menu summary {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  list-style: none;
  border-radius: 7px;
  color: #b6b6b6;
  cursor: pointer;
}

.shared-directory-menu summary::-webkit-details-marker {
  display: none;
}

.shared-directory-menu summary:hover,
.shared-directory-menu[open] summary {
  background: #262626;
  color: #eee;
}

.shared-directory-menu summary svg {
  width: 17px;
  height: 17px;
}

.shared-directory-menu .chat-actions-menu {
  position: absolute;
  top: calc(100% + 5px);
  right: 0;
}

#sharedDirectoryDeleteStatus {
  margin: 0 0 12px;
  color: #b7b7b7;
  font-size: 12px;
}

#sharedDirectoryDeleteStatus:empty {
  display: none;
}

#sharedDirectoryList:empty + #sharedDirectoryStatus {
  margin: 0;
}

.shared-directory ul {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.shared-article-link {
  display: grid;
  grid-template-columns: clamp(76px, 22%, 150px) minmax(0, 1fr);
  min-height: 112px;
  border: 1px solid #222;
  border-radius: 8px;
  overflow: hidden;
  background: #11111;
  color: #eee;
  text-decoration: none;
}

.shared-article-link:hover,
.shared-article-link:focus-visible {
  border-color: #3d3d3d;
  background: #262626;
}

.shared-article-thumbnail {
  position: relative;
  display: grid;
  place-items: center;
  background: #c7c7c7;
  color: #505050;
}

.shared-article-thumbnail img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shared-article-summary {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 13px;
}

.shared-article-link h2 {
  margin: 0 0 3px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 16px;
  line-height: 1.3;
}

.shared-article-link p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  margin: 0;
  color: #dedede;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.shared-article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: auto;
  padding-top: 8px;
  color: #a5a5a5;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.shared-article-dates {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px 9px;
  margin-inline-start: auto;
  text-align: end;
  font-size: 10px;
}

.shared-article-dates span:has(+ span)::after {
  content: " ·";
}

#sharedDirectoryStatus {
  color: #b7b7b7;
  font-size: 13px;
}

#sharedDirectoryStatus:empty {
  margin: 0;
}

#sharedDirectoryMore {
  margin-top: 12px;
  padding: 9px 15px;
  border: 1px solid #474747;
  border-radius: 8px;
  background: #262626;
  color: #eee;
}

#sharedDirectoryMore:hover:not(:disabled) {
  background: #353535;
}

.article-share-dialog .share-copy-link[hidden] {
  display: none;
}

#saveArticleShare {
  margin-top: 12px;
}

.shared-article-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  margin-top: 6px;
}

.shared-article-actions button {
  padding: 5px 8px;
  border: 1px solid #474747;
  border-radius: 6px;
  background: #262626;
  color: #eee;
  font-size: 12px;
}

.shared-article-actions button:hover {
  background: #353535;
}
