:root {
  color-scheme: light;
  --ink:#292926; --muted:#696963; --subtle:#807f78; --line:#e5e4df;
  --paper:#fdfdfb; --side:#f5f5f1; --accent:#be4f30; --soft:#f6e9e0;
  font-family:Inter,"Segoe UI",Arial,sans-serif; color:var(--ink); background:var(--paper);
  -webkit-font-smoothing:antialiased; font-size:16px;
}
*{box-sizing:border-box}
body{margin:0}
button,input,textarea{font:inherit}
button,a{color:inherit}
button{background:none;border:0;padding:0;cursor:pointer}
a{text-decoration:none}
button,a,textarea,input{outline-offset:4px}
:focus-visible{outline:2px solid var(--accent)}
button:disabled{cursor:default}
[hidden]{display:none!important}
svg{width:1.22em;height:1.22em;display:block;flex:none}
[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none}
.sr,.skip:not(:focus){position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.skip:focus{position:fixed;top:8px;left:12px;z-index:30;background:white;padding:12px}
.shell{display:flex;min-height:100vh;height:100dvh;min-height:0;overflow:hidden}
.sidebar{width:262px;flex:none;background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:0 18px;min-width:0}
.brand-row{height:87px;display:flex;align-items:center;justify-content:space-between;padding:0 7px}
.brand{display:flex;align-items:center;gap:11px;font-size:1.36rem;letter-spacing:-.065em;font-weight:630}
.brand b{font-weight:510;color:var(--accent);margin-left:1px}
.brand-mark{width:35px;height:35px;display:block}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.side-actions{display:flex;flex-direction:column;gap:5px;margin-top:10px}
.new-chat,.search-button,.history-item,.bot-link{display:flex;align-items:center;text-align:left;width:100%;gap:11px;font-size:.9rem;line-height:1.35}
.new-chat{height:43px;padding:0 12px;background:#fff;border:1px solid #d9d9d2;border-radius:10px;font-weight:550;box-shadow:0 1px 2px #24251f05}
.new-chat>span{color:var(--accent)}
.new-chat:hover{border-color:#b9b9af}
.new-chat kbd{margin-left:auto;border:1px solid #e6e6e0;background:#f8f8f5;color:#73736b;font:500 .74rem/1.5 Inter,"Segoe UI",Arial,sans-serif;padding:0 5px;border-radius:4px}
.search-button,.history-item,.bot-link{padding:11px 10px;border-radius:8px;color:#53544e}
.search-button{min-height:41px}
.search-button:hover,.history-item:hover,.bot-link:hover,.profile:hover,.icon-button:hover{background:#eaeae4}
.history{margin-top:33px;min-height:0;overflow:auto}
.history h2{font-size:.75rem;font-weight:550;line-height:1.35;color:#72736b;margin:0 9px 10px;letter-spacing:.015em}
.history-item{min-height:40px;padding:9px 9px;font-size:.875rem;gap:10px}
.history-item svg{width:16px;height:16px;color:#7a7b73}
.history-item span:last-child,.crumb-title>span:last-child,.profile-copy strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.history-item.active{background:#ebe6dd;color:#8d3a25}
.history-item.active svg{color:var(--accent)}
.history-empty{color:var(--subtle);font-size:.86rem;line-height:1.5;margin:4px 9px}
.side-bottom{margin-top:auto;padding-top:12px}
.bot-link{padding:12px 9px;margin-bottom:10px}
.bot-link .external{margin-left:auto;color:#85867e}
.external svg{width:14px;height:14px}
.profile{border-top:1px solid #dcddd5;display:flex;align-items:center;gap:11px;text-align:left;width:100%;padding:17px 5px 18px}
.avatar{width:35px;height:35px;border-radius:50%;border:1px solid #deded6;background:#eaeae3;color:#727367;font-weight:650}
.profile-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.profile-copy strong{font-size:.855rem;font-weight:600}
.profile-copy>span{font-size:.755rem;color:var(--muted)}
.profile-more{margin-left:auto;color:#77786f}
.main{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--paper)}
.topbar{height:69px;flex:none;border-bottom:1px solid var(--line);padding:0 32px;display:flex;align-items:center;justify-content:space-between;gap:14px}
.crumbs,.crumb-title,.login-top,.model-trigger,.compose-note,.button-row{display:flex;align-items:center}
.crumbs{gap:14px;min-width:0;font-size:.88rem}
.lab-name{color:#73746c;white-space:nowrap}
.crumb-slash{font-style:normal;color:#b1b1a8;font-weight:350}
.crumb-title{gap:8px;min-width:0;font-weight:540}
.crumb-icon{color:#66685f}
.crumb-icon svg{width:16px;height:16px}
.login-top{gap:8px;font-size:.84rem;line-height:1.25;white-space:nowrap;font-weight:560;border:1px solid #d8d9d1;border-radius:8px;padding:9px 13px;background:#fff}
.login-top:hover{background:#f4f4ef;border-color:#bfc1b6}
.login-top svg{width:16px;height:16px;color:#53564d}
.workarea{min-height:0;flex:1;display:flex;flex-direction:column;position:relative}
.welcome{flex:1;min-height:0;overflow-y:auto;display:flex;flex-direction:column;align-items:center;justify-content:safe center;padding:22px 30px 30px;text-align:center}
.art{height:clamp(132px,19.5vh,195px);width:300px;max-width:100%;position:relative;display:flex;align-items:center;justify-content:center;margin-bottom:16px;flex:none;isolation:isolate}
.art-dots{position:absolute;inset:-6px -21px;background-image:radial-gradient(#a5a393 0.8px,transparent 1px);background-size:11px 11px;opacity:.47;mask-image:radial-gradient(ellipse at center,black 12%,transparent 70%);z-index:-1}
.art img{height:100%;width:auto;max-width:100%;object-fit:contain}
.welcome h1{margin:0;font-size:clamp(2.65rem,4.5vw,4.05rem);line-height:1.06;font-weight:560;letter-spacing:-.073em;color:#262722}
.welcome h1 span{color:var(--accent)}
.intro{font-size:1rem;line-height:1.55;letter-spacing:-.013em;color:#676962;margin:15px 0 0;max-width:540px}
.suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;width:min(100%,706px);margin-top:34px}
.suggestion{min-width:0;padding:16px 17px 15px;border:1px solid #dfdfd7;border-radius:13px;display:flex;flex-direction:column;align-items:flex-start;text-align:left;background:#fff;transition:transform .18s,border-color .18s,background .18s}
.suggestion:hover{transform:translateY(-3px);border-color:#c9a89a;background:#fffdfb}
.suggestion-icon{color:var(--accent);margin-bottom:14px}
.suggestion-icon svg{height:22px;width:22px;stroke-width:1.65}
.suggestion strong{font-size:.935rem;line-height:1.32;font-weight:600;letter-spacing:-.023em}
.suggestion small{font-size:.815rem;line-height:1.45;color:var(--muted);margin-top:4px}
.compose-wrap{width:min(calc(100% - 64px),770px);margin:0 auto;padding-bottom:19px;flex:none;position:relative}
.composer{border:1px solid #d6d6cc;border-radius:19px;background:#fff;box-shadow:0 4px 15px #322e1a06,0 1px 4px #322e1a04;padding:16px 16px 12px 19px;transition:border-color .15s,box-shadow .15s}
.composer:focus-within{border-color:#bda391;box-shadow:0 3px 14px #85401e0b}
.composer textarea{display:block;outline:none;width:100%;border:0;background:transparent;resize:none;min-height:40px;max-height:126px;line-height:1.45;font-size:1.01rem;color:var(--ink);padding:2px 0 5px}
.composer textarea::placeholder{color:#82837a}
.composer-tools{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:5px}
.model-box{position:relative}
.model-trigger{font-size:.805rem;gap:6px;border-radius:7px;padding:6px 7px;color:#66665f;margin-left:-5px}
.model-trigger:hover,.model-trigger[aria-expanded="true"]{background:#f3f3ed}
.model-trigger svg{width:16px;height:16px}
.model-trigger .chevron svg{width:12px;height:12px}
.model-menu{position:absolute;left:-4px;bottom:calc(100% + 9px);z-index:4;width:202px;padding:5px;border-radius:12px;border:1px solid var(--line);background:#fff;box-shadow:0 8px 30px #2d29201a}
.model-choice{width:100%;display:flex;align-items:center;justify-content:space-between;padding:10px 11px;text-align:left;border-radius:7px;font-size:.89rem}
.model-choice:hover,.model-choice:focus-visible{background:#f4f3ec}
.model-choice[aria-checked="true"] svg{color:var(--accent)}
.send{width:36px;height:36px;display:grid;place-items:center;color:white;background:var(--accent);border-radius:10px;transition:background .15s,transform .15s}
.send:hover{background:#a64429;transform:translateY(-1px)}
.send:disabled{opacity:.55;transform:none}
.send svg{width:18px;height:18px}
.compose-note{margin:11px 0 0;justify-content:center;gap:6px;font-size:.755rem;color:#71736a;line-height:1.4}
.compose-note svg{width:12px;height:12px}
.menu-toggle,.mobile-close{display:none}
.icon-button{display:inline-grid;place-items:center;width:32px;height:32px;border-radius:7px;color:#72736b}
.icon-button svg{width:18px;height:18px}
.menu-toggle,.mobile-close{display:none}
.thread{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}
.thread-inner{width:min(calc(100% - 64px),720px);margin:0 auto;padding:38px 0 28px}
.thread-kicker{display:flex;align-items:center;gap:7px;color:#8a513b;font-size:.78rem;margin-bottom:8px}
.thread-kicker svg{width:15px;height:15px}
.thread-inner h1{font-size:clamp(1.65rem,3vw,2.28rem);font-weight:560;letter-spacing:-.054em;margin:0 0 28px;line-height:1.15;overflow-wrap:anywhere}
.message{display:flex;flex-direction:column;align-items:flex-start;margin:22px 0;color:var(--ink)}
.message.user{align-items:flex-end}
.user .bubble{background:#f0efe9;border-radius:17px 17px 4px 17px;padding:13px 17px;max-width:86%;white-space:pre-wrap}
.bubble,.answer{font-size:1rem;line-height:1.65;overflow-wrap:anywhere;min-width:0}
.answer{width:100%}
.speaker{display:flex;align-items:center;gap:8px;font-size:.84rem;font-weight:600;margin-bottom:9px}
.speaker img{width:24px;height:24px;object-fit:contain}
.answer p{margin:0 0 .78em;white-space:pre-wrap}
.answer p:last-child{margin-bottom:0}
.answer li{padding-left:3px;margin:3px 0}
.answer ul,.answer ol{padding-left:1.4em;margin:.5em 0 .9em}
.answer h3{font-size:1.05rem;margin:1em 0 .45em}
.answer code{font-family:ui-monospace,Consolas,monospace;font-size:.88em;background:#efeee8;border-radius:4px;padding:1px 4px}
.answer pre{overflow:auto;max-width:100%;background:#efefe9;border:1px solid #e1e1d8;border-radius:11px;padding:14px;white-space:pre;line-height:1.5}
.answer pre code{padding:0;background:none}
.copy{display:flex;gap:6px;align-items:center;margin-top:8px;color:#707267;font-size:.78rem;padding:4px 0}
.copy svg{width:14px;height:14px}
.example-footer{margin-top:20px;color:var(--muted);font-size:.82rem}
.dialog{padding:27px;border:1px solid #dddcd3;border-radius:20px;width:min(420px,calc(100vw - 32px));color:var(--ink);background:var(--paper);box-shadow:0 18px 80px #22241928;overflow:visible}
.dialog::backdrop{background:#2f302949;backdrop-filter:blur(3px)}
.dialog-wide{width:min(540px,calc(100vw - 28px));max-height:calc(100dvh - 44px);overflow-y:auto}
.limits-nav{margin-bottom:0}
.budget-area{font-size:.9rem;color:var(--muted)}
.budget-card{display:flex;flex-direction:column;background:#f5f0e8;border:1px solid #e9ddd0;padding:17px 18px;border-radius:13px}
.budget-label,.budget-caption{font-size:.82rem;color:#6a6057}
.budget-total{font-size:2.1rem;line-height:1.25;letter-spacing:-.045em;color:#8c4029;font-weight:620;font-variant-numeric:tabular-nums}
.budget-facts{display:grid;grid-template-columns:1fr auto;gap:5px 14px;font-size:.86rem;margin:12px 0 0}
.budget-facts dt{color:#665f57}.budget-facts dd{margin:0;text-align:right;font-weight:550;font-variant-numeric:tabular-nums}
.budget-caption{margin-top:8px}
.limits-heading,.limit-display,.limit-actions{display:flex;align-items:center;justify-content:space-between;gap:9px}
.limits-heading{margin:20px 0 4px}.limits-heading h3{font-size:1.03rem;margin:0}
.dialog p.limits-intro,.dialog p.demo-notice{font-size:.83rem;line-height:1.45}
.limit-row{display:grid;grid-template-columns:minmax(110px,1fr) auto;gap:5px 16px;padding:11px 0;border-top:1px solid var(--line);align-items:center}
.limit-identity{display:grid;gap:3px;overflow-wrap:anywhere}.limit-identity strong{font-size:.92rem;font-weight:600}
.limit-identity small,.limit-notice,.limit-field span{color:var(--muted);font-size:.78rem}
.limit-edit{display:inline-flex;align-items:center;gap:4px;font-size:.82rem;padding:6px 8px;border-radius:6px;color:var(--accent)}
.limit-edit:hover{background:var(--soft)}.limit-edit svg{width:13px;height:13px}
.limit-value{font-size:.92rem;font-weight:550;white-space:nowrap;font-variant-numeric:tabular-nums}
.limit-form{grid-column:1/-1;display:flex;align-items:flex-end;flex-wrap:wrap;gap:6px 12px}
.limit-field{flex:1;min-width:90px}.limit-field span{display:block;margin-bottom:4px}
.limit-input{color:var(--ink);background:white;border:1px solid #cfcfc5;border-radius:7px;padding:7px 9px;width:100%;min-height:36px;font-size:1rem}
.limit-actions button{padding:6px 10px;min-height:36px;font-size:.83rem}.limit-actions button:disabled{opacity:.55}
.limit-error{flex-basis:100%;font-size:.82rem;color:#9b3221}.limit-notice{grid-column:1/-1;color:#536449}
.limit-notice:empty,.limit-error:empty{display:none}
.dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.dialog-emblem{width:46px;height:46px;border-radius:13px;background:#f7e8dd;color:var(--accent);display:grid;place-items:center}
.dialog-emblem svg{width:24px;height:24px}
.dialog h2{margin:20px 0 10px;font-size:1.55rem;font-weight:590;line-height:1.22;letter-spacing:-.05em}
.dialog p{color:var(--muted);font-size:.92rem;line-height:1.55;margin:8px 0 15px}
.dialog-info{border-top:1px solid var(--line);padding-top:13px}
.dialog .button-row{flex-direction:column;align-items:stretch;gap:7px;margin-top:20px}
.primary,.secondary{border-radius:9px;min-height:41px;padding:10px 14px;display:flex;align-items:center;justify-content:center;gap:9px;font-size:.89rem;font-weight:550}
.primary{color:white;background:var(--accent)}
.primary:hover{background:#a6452a}
.secondary{border:1px solid var(--line);background:white}
.secondary:hover{background:var(--side)}
.search-input{width:100%;padding:11px 13px;border-radius:9px;border:1px solid #d5d5cc;background:white;font-size:1rem;color:var(--ink)}
.search-results{max-height:40vh;overflow:auto;margin-top:10px}
.toast{position:fixed;z-index:10;bottom:30px;left:50%;transform:translateX(-50%);max-width:min(480px,90vw);padding:10px 15px;border-radius:9px;color:white;background:#373931;box-shadow:0 5px 25px #0002;font-size:.88rem;line-height:1.4}
.scrim{position:fixed;inset:0;background:#25272050;z-index:5}
@media(min-width:1600px){.sidebar{width:280px}.welcome{padding-bottom:5vh}}
@media(max-height:730px) and (min-width:761px){.art{height:120px}.welcome{padding:12px 24px}.welcome h1{font-size:3rem}.suggestions{margin-top:22px}.suggestion{padding:13px 15px}.suggestion-icon{margin-bottom:8px}.compose-wrap{padding-bottom:10px}.topbar{height:60px}}
@media(max-width:1050px){.sidebar{width:234px;padding:0 14px}.topbar{padding:0 24px}.suggestion{padding:14px}.compose-wrap,.thread-inner{width:calc(100% - 48px)}}
@media(max-width:760px){
 .sidebar{position:fixed;inset:0 auto 0 0;width:min(282px,85vw);transform:translateX(-105%);z-index:6;transition:transform .2s;visibility:hidden}
 .sidebar.is-open{transform:translateX(0);visibility:visible}.menu-toggle,.mobile-close{display:grid}
 .topbar{height:60px;padding:0 15px;gap:7px}.crumbs{gap:9px}.lab-name,.crumb-slash{display:none}.crumb-icon{display:none}.crumbs{font-size:.91rem}
 .login-top{font-size:.77rem;padding:8px 9px}.welcome{padding:16px 17px 20px}.art{height:clamp(104px,18vh,151px);margin-bottom:10px}.welcome h1{font-size:clamp(2.6rem,9vw,3.3rem)}
 .intro{font-size:.94rem;max-width:340px;margin-top:10px}.suggestions{max-width:535px;gap:7px;margin-top:23px}.suggestion{padding:11px 10px 12px;border-radius:10px}.suggestion-icon{margin-bottom:10px}.suggestion-icon svg{height:19px;width:19px}.suggestion strong{font-size:.86rem}.suggestion small{font-size:.75rem;line-height:1.35;margin-top:4px}
 .compose-wrap{width:calc(100% - 28px);padding-bottom:max(10px,env(safe-area-inset-bottom))}.composer{padding:12px 12px 9px 15px;border-radius:16px}.composer textarea{min-height:35px}.compose-note{font-size:.71rem;margin-top:7px}.thread-inner{width:calc(100% - 34px);padding-top:24px}
}
@media(max-width:440px){.suggestions{max-width:320px;grid-template-columns:1fr;text-align:left;gap:6px}.suggestion{flex-direction:row;align-items:center;gap:10px;padding:9px 12px}.suggestion-icon{margin:0}.suggestion small{margin:0 0 0 auto;white-space:nowrap;font-size:.72rem}.art{height:clamp(95px,16vh,140px)}.brand-row{height:71px}}
@media(max-height:580px) and (max-width:760px){.welcome{justify-content:flex-start}.art{height:70px}.intro{margin-top:5px}.suggestions{margin-top:12px}.suggestion small{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

.model-choice:disabled{color:#77776f;cursor:not-allowed}.model-choice:disabled svg{width:13px;height:13px}#guest-continue{color:var(--accent);text-decoration:underline;text-underline-offset:3px}.compose-note{flex-wrap:wrap}
