/* The same optical material around the original conversation controls. */
.dw-suite-bar[hidden]{display:none!important}
.chat-project-tools{display:flex;align-items:center;gap:5px;margin-inline-end:8px}.chat-project-action,.chat-project-icon{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:34px;padding:6px 10px;color:var(--fg-2);background:#c8ac8a08;border:1px solid #c8ac8a40;border-radius:9px;font:500 11px/1.5 var(--dw-font);cursor:pointer;transition:background 150ms,border-color 150ms,transform 150ms}.chat-project-action:hover,.chat-project-icon:hover{background:#c8ac8a20;border-color:#c8ac8a80}.chat-project-action:active,.chat-project-icon:active{transform:scale(.97)}.chat-project-icon{width:34px;padding:7px}.chat-project-icon>.icon{width:16px;height:16px;display:block;background:currentColor;mask:var(--icon) center/contain no-repeat;-webkit-mask:var(--icon) center/contain no-repeat}.embedded-chat .topbar{height:58px;min-height:58px;border-bottom:1px solid var(--clear-line)}.embedded-chat .empty__title{font-size:clamp(23px,2.4vw,34px);font-weight:500;line-height:1.8}.embedded-chat .sidebar{--side-w:232px}.embedded-chat .sidebar__head{min-height:60px}.dw-convert-dialog .row{display:flex;align-items:center;gap:10px;margin-top:18px}.dw-convert-dialog input[type=checkbox]{width:18px;height:18px;min-height:18px}.msg__actions [data-act=save-project]{color:var(--fg-2)}
@media(max-width:640px){.chat-project-tools{margin-inline-end:2px;gap:4px}.chat-project-action{font-size:10px;min-height:38px;padding-inline:8px}.chat-project-icon{display:none}.embedded-chat .topbar__end>#shareBtn{display:none}.embedded-chat .topbar{padding-inline:7px}.embedded-chat .topbar__end{gap:0}.embedded-chat .empty__title{font-size:24px}.embedded-chat .contact{min-width:0}.embedded-chat .contact__info{min-width:0}}
:root{--bg:transparent;--bg-side:rgba(8,10,15,.15);--raised:rgba(24,27,33,.94);--fill:rgba(255,255,255,.08);--fill-2:rgba(255,255,255,.14);--hover:rgba(255,255,255,.06);--line:var(--clear-line);--line-2:var(--clear-control-line);--line-3:rgba(255,255,255,.75);--fg:var(--clear-white);--fg-2:#dce1e9;--muted:var(--clear-secondary);--ivory:#edf2f7;--on-ivory:#12151b;--col:780px}
body{background:var(--clear-night)}.main,.embedded-chat .main{background:transparent}
.sidebar,.embedded-chat .sidebar{background:var(--clear-plane);border-color:var(--clear-line);backdrop-filter:var(--clear-blur);-webkit-backdrop-filter:var(--clear-blur)}
.topbar,.embedded-chat .topbar,.dw-suite-bar,.embedded-chat .dw-suite-bar{background:rgba(8,10,15,.14);border-color:var(--clear-line)}
.composer,.embedded-chat .composer{background:var(--clear-plane);border-color:var(--clear-control-line);border-radius:18px;padding:14px;box-shadow:var(--clear-edge),var(--clear-shadow);backdrop-filter:var(--clear-blur);-webkit-backdrop-filter:var(--clear-blur)}
.composer:focus-within{border-color:#edf2f7}.composer-wrap{padding-bottom:calc(20px + env(safe-area-inset-bottom))}
.contact{border-radius:10px}.send-btn{border-radius:10px;background:var(--clear-action);border:1px solid var(--clear-control-line);color:var(--clear-white);box-shadow:var(--clear-edge)}.send-btn:hover:not(:disabled){background:var(--clear-control);color:#fff}
.menu,.dialog__card,.dw-context-menu,.dw-convert-dialog{background:rgba(20,23,29,.96);border-color:var(--clear-control-line);box-shadow:var(--clear-edge),var(--clear-shadow);backdrop-filter:var(--clear-blur);-webkit-backdrop-filter:var(--clear-blur)}
.chat-item{border-radius:8px}.chat-item__link{min-height:44px}.chat-item.is-active .chat-item__link{background:var(--clear-control)}.chat-item__link:hover,.side-row:hover,.icon-btn:hover,.tool-btn:hover{background:rgba(255,255,255,.07)}
.embedded-chat .sidebar__head .icon-btn{width:44px;min-height:44px}.sidebar__foot .account{background:transparent}
.btn--primary{background:var(--clear-action);border-color:var(--clear-control-line);color:var(--clear-white)}.btn--primary:hover{background:var(--clear-control)}
.dw-context-menu select,.dw-convert-dialog input,.dw-convert-dialog textarea,.field textarea{background:rgba(6,8,12,.5);border-color:var(--clear-control-line);color:var(--clear-white)}
:focus-visible{outline:2px solid var(--dw-focus,#d7bd9d);outline-offset:3px}
@media(max-width:640px){.composer-wrap{padding-inline:12px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}.composer,.embedded-chat .composer{padding:10px;border-radius:15px}.icon-btn,.send-btn,.tool-btn{min-width:44px;min-height:44px}}
@media(pointer:coarse){#composer{font-size:16px}.embedded-chat .dw-context-trigger{min-height:44px}.embedded-chat .dw-suite-bar{min-height:44px;height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root{--clear-plane:rgba(17,19,24,.94);--clear-control:rgba(34,37,43,.96);--clear-action:rgba(49,53,60,.96)}}

/* Keep the conversation controls readable inside the studio, including short viewports. */
.chat-project-action,.chat-project-icon{min-height:44px;font-size:12px;padding:8px 11px}
.chat-project-icon{min-width:44px;width:44px}
.embedded-chat .topbar{height:62px;min-height:62px;gap:8px;padding-inline:14px}
.embedded-chat .topbar__end{min-width:0;gap:5px}
.embedded-chat .contact__meta{min-width:0;overflow:hidden}
.embedded-chat .contact__name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.embedded-chat .contact__status{display:block;overflow:hidden;text-overflow:ellipsis}
.embedded-chat .topbar .icon-btn{min-width:44px;min-height:44px}
.embedded-chat .contact{min-height:44px}
.main>.dw-sync-state{flex:0 0 auto;max-height:25%;margin:0;padding:8px 14px;border:0;border-bottom:1px solid var(--clear-line);background:var(--clear-plane);overflow:auto;overflow-wrap:anywhere;line-height:1.6}
.main>.dw-sync-state:empty{display:none}
.msg__error>span{min-width:0;max-width:100%;overflow-wrap:anywhere}
.msg__error .btn{min-height:44px}
.embedded-chat .main{height:100%;min-height:0;overflow:hidden}
.embedded-chat .thread{min-height:0;overscroll-behavior:contain}
.dialog{max-width:min(540px,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto}
.dialog__card{max-height:calc(100dvh - 24px);overscroll-behavior:contain;padding:24px;gap:20px}
.dialog__head{gap:12px}.dialog__foot{flex-wrap:wrap;gap:8px}
.dialog__card :is(button,.btn){min-height:44px}
.dialog__card :is(input,select,textarea){min-width:0;max-width:100%;font-size:16px}
.dialog__card .field-actions{gap:8px}
.dialog__card .choice{min-height:44px;font-size:13px}
.msg__actions [data-act=save-project]{min-width:44px;min-height:44px}
@media(max-width:640px){
 .embedded-chat .topbar{height:60px;min-height:60px;padding-inline:10px;gap:6px}
 .embedded-chat #newChatTop{display:none}
 .embedded-chat .model-picker{flex:1 1 0;min-width:0}
 .embedded-chat .topbar__end{flex:0 0 auto;gap:2px}
 .chat-project-tools{margin:0;gap:4px}.chat-project-action{min-height:44px;font-size:12px;padding-inline:9px;white-space:nowrap}
 .embedded-chat .contact{width:100%;max-width:100%;gap:6px;padding-inline:6px}
 .embedded-chat .contact__name{font-size:13px}
 .dialog__card{padding:18px;gap:18px}.dialog__head h2{font-size:18px}
 .dialog__foot>:is(.btn,button){flex:1;justify-content:center}
 .dialog__card :is(.choice,.field-actions .btn){min-height:44px;white-space:normal}
}
#researchBtn{display:none!important}
.research-strength-menu{position:fixed;inset:auto;margin:0;box-sizing:border-box;width:min(480px,calc(100vw - 24px));max-height:70dvh;overflow:auto;padding:4px 6px;border:1px solid #665540;border-radius:16px;background:#17140f;color:#e8d8bf;box-shadow:0 8px 24px #0006}
.research-strength-menu:popover-open{display:flex;flex-direction:column;gap:0;padding:10px 16px 12px}
.research-strength-value{font-size:13px;color:#edcfa3;align-self:center;line-height:20px}
.research-strength-menu input[type=range]{--strength-fill:0%;direction:ltr;appearance:none;-webkit-appearance:none;box-sizing:border-box;width:100%;min-width:0;height:44px;min-height:44px;margin:0;padding:0;border:0;background:transparent;cursor:ew-resize;box-shadow:none}
.research-strength-menu input[type=range]::-webkit-slider-runnable-track{height:4px;border-radius:4px;background:linear-gradient(to right,#d5b58b var(--strength-fill),#51483d var(--strength-fill))}
.research-strength-menu input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:20px;height:20px;margin-top:-8px;border:2px solid #e8d8bf;border-radius:50%;background:#e8d8bf;box-shadow:0 1px 6px #0008}
.research-strength-menu input[type=range]::-moz-range-track{height:4px;border-radius:4px;background:#51483d}
.research-strength-menu input[type=range]::-moz-range-progress{height:4px;border-radius:4px;background:#d5b58b}
.research-strength-menu input[type=range]::-moz-range-thumb{width:18px;height:18px;border:1px solid #e8d8bf;border-radius:50%;background:#e8d8bf}
.research-strength-menu input[type=range]:focus-visible{outline:2px solid #c8ac8a;outline-offset:2px;border-radius:6px}
.research-strength-ends{display:flex;justify-content:space-between;direction:ltr;width:100%;font-size:11px;line-height:16px;color:#c9b89f}
@media(max-width:380px){.embedded-chat .contact__face{display:none}}
@media(max-height:520px){.embedded-chat .empty{gap:12px}.embedded-chat .empty__title{font-size:22px}.composer-wrap{padding-bottom:8px}.composer textarea{max-height:26dvh}}

/* The account stays below the scrollable history in both the sidebar and drawer. */
.sidebar{padding-bottom:calc(12px + env(safe-area-inset-bottom))}
.sidebar__head,.side-nav{flex-shrink:0}
.history{min-height:0;flex:1 1 0}
.sidebar__foot{flex:0 0 auto;margin-top:auto;padding-top:10px}
.sidebar__foot .account{min-height:52px;padding:8px 10px;align-items:center}
.sidebar__foot .account__meta{align-content:center;gap:2px;line-height:1.45}
.sidebar__foot .account__meta :is(b,small){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* One calm history column. Actions are rows; account and settings have distinct targets. */
html.embedded-chat{--side-w:252px}
html[data-material] body .sidebar{padding:18px 14px 12px;background:#080808;border-color:#c8ac8a12;gap:0}
html[data-material] .sidebar__head{min-height:44px;height:44px;margin:0 0 18px;padding:0 2px}
html[data-material] .chat-history-title{margin:0;padding:0 10px;font-size:16px;font-weight:500;letter-spacing:-.2px;color:#e8dfd2}
html[data-material] .sidebar__head .icon-btn{border-radius:50%;color:#b9afa1}
html[data-material] .sidebar .side-nav{display:grid;gap:12px;padding:0 0 22px}
html[data-material] body .sidebar #newChat{justify-content:flex-start;gap:12px;min-height:46px;height:46px;padding:0 12px;border:0;border-radius:12px;background:transparent;color:#ddc2a0;font-size:13px;font-weight:500}
html[data-material] .sidebar #newChat>.ic{width:24px;height:24px;padding:3px;border:1px solid #c8ac8a55;border-radius:50%;color:#d6b994;flex:none}
html[data-material] .sidebar #newChat:hover{background:#c8ac8a12;color:#f1ddc0}
html[data-material] body .sidebar .side-search{height:44px;min-height:44px;margin:0 8px;padding:0 4px;gap:10px;border-radius:0;border:0;border-bottom:1px solid #c8ac8a26;background:transparent}
html[data-material] body .sidebar .side-search input{height:44px;min-height:44px;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;font-size:12px;color:#e3d5c3;outline:none}
html[data-material] body .sidebar .side-search:focus-within{border-color:#d7bd9d;background:#c8ac8a08}
html[data-material] .sidebar .history{margin:0;padding:0 2px 20px;border:0;scrollbar-width:thin;scrollbar-color:#4b3c2b transparent}
html[data-material] .sidebar .history h3{margin:16px 10px 8px;font-size:11px;line-height:1.7;font-weight:400;color:#a89a86}
html[data-material] .sidebar .history__empty{margin:16px 10px;font-size:12px;line-height:1.9;color:#9b9286}
html[data-material] .sidebar .chat-item{margin-block:3px;border-radius:10px;background:transparent}
html[data-material] .sidebar .chat-item__link{min-height:44px;height:44px;padding:0 12px;font-size:13px;line-height:1.6;color:#cfc5b7;background:transparent;border-radius:10px}
html[data-material] .sidebar .chat-item:is(.active,.is-active){background:#c8ac8a10}
html[data-material] .sidebar .chat-item:is(.active,.is-active)::before{content:'';position:absolute;inset-inline-start:1px;top:15px;height:14px;width:2px;border-radius:2px;background:#c8ac8a}
html[data-material] .sidebar .chat-item:is(:hover,:focus-within){background:#c8ac8a14}
html[data-material] .sidebar .chat-item__tools button{min-width:32px;min-height:36px;border-radius:50%}
html[data-material] .sidebar .sidebar__foot{margin-top:auto;padding:14px 2px 0;border-top:1px solid #c8ac8a18;display:grid;gap:5px}
html[data-material] .sidebar__foot .account{min-height:56px;padding:8px 10px;gap:12px;border:0;border-radius:12px;background:transparent}
html[data-material] .sidebar__foot .account__avatar{width:26px;height:30px;padding:0;border:0;border-radius:0;background:transparent;color:#c8ac8a;display:grid;place-items:center}
html[data-material] .sidebar__foot .account__avatar>.ic{width:22px;height:22px;color:inherit}
html[data-material] .sidebar__foot .account__meta{gap:3px}
html[data-material] .sidebar__foot .account__meta b{font-size:13px;font-weight:400;color:#dfd3c3}
html[data-material] .sidebar__foot .account__meta small{font-size:10px;color:#a99a86}
html[data-material] .sidebar__foot .account__chevron{width:14px;height:14px;color:#9e8b70}
html[dir=rtl] .sidebar__foot .account__chevron{transform:rotate(180deg)}
html[data-material] .sidebar__foot .sidebar-settings{height:44px;min-height:44px;gap:12px;padding:0 12px;border-radius:12px;color:#b9ad9c;font-size:12px}
html[data-material] .sidebar__foot :is(.account,.sidebar-settings):hover{background:#c8ac8a12;color:#e4c9a5}
@media(pointer:coarse){html[data-material] .sidebar .chat-item__tools button{min-width:44px;min-height:44px}}
@media(max-width:860px){html[data-material] body .sidebar{padding-top:14px;padding-bottom:calc(12px + env(safe-area-inset-bottom))}}
@media(max-width:640px){
 .embedded-chat .composer-wrap{padding-inline:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
 .embedded-chat .composer{padding:7px 8px;gap:2px}
 .embedded-chat .composer textarea{min-height:30px;max-height:25dvh;line-height:1.45}
 .embedded-chat .composer__bar,.embedded-chat .composer__tools,.embedded-chat .composer__send{gap:2px;min-width:0}
 .embedded-chat .msg__error{padding:4px 8px;gap:0 6px;font-size:12px;line-height:1.45}
 .embedded-chat .msg__error .btn{min-height:44px;height:44px;padding:0 6px;border:0;background:transparent;font-size:12px}
}
@media(min-width:861px){.sidebar{position:relative}.sidebar-resizer{position:absolute;z-index:5;inset-block:0;inset-inline-end:0;width:14px;cursor:col-resize;touch-action:none}.sidebar-resizer::before{content:'';position:absolute;inset-block:40%;inset-inline-end:5px;width:2px;border-radius:2px;background:#8f795e80}.sidebar-resizer:hover::before,.sidebar-resizer:focus-visible::before{background:#e4c8a0}.sidebar-resizer:focus-visible{outline:2px solid #e4c8a0;outline-offset:-2px}.app.sidebar-resizing{transition:none}}
@media(max-width:860px){.sidebar-resizer{display:none}}
.chat-item__more{flex:0 0 44px;min-width:44px;min-height:44px;border:0;background:transparent;color:#bca991;font-size:22px;cursor:pointer}.chat-item__pin{font-size:15px;color:#c8ac8a}.chat-action-menu{position:fixed;inset:auto;margin:0;width:200px;padding:6px;border:1px solid #514536;border-radius:14px;background:#171512;color:#e8d8bf;box-shadow:0 12px 35px #0009}.chat-action-menu button{display:block;width:100%;min-height:44px;text-align:start;border:0;border-radius:8px;padding:8px 12px;background:transparent;color:inherit;font:inherit;cursor:pointer}.chat-action-menu button:hover,.chat-action-menu button:focus-visible{background:#c8ac8a1a;outline:none}.sidebar__foot .sidebar-settings[hidden]{display:none!important}.sidebar-search-trigger{min-width:44px;min-height:44px}.conversation-search-dialog{box-sizing:border-box;width:min(520px,calc(100vw - 32px));max-height:min(70dvh,600px);border:1px solid #665540;border-radius:18px;background:#151310;color:#eadac4;padding:20px;overflow:auto}.conversation-search-dialog::backdrop{background:#000a}.conversation-search-dialog h2{font-size:16px;margin:0 0 14px}.conversation-search-dialog>button{position:absolute;inset-block-start:10px;inset-inline-end:10px;border:0;background:transparent;color:inherit;min-width:44px;min-height:44px;font-size:24px;cursor:pointer}.conversation-search-dialog input{box-sizing:border-box;width:100%;min-height:44px;background:#211d18;color:inherit;border:1px solid #665540;border-radius:10px;padding:10px;font:inherit}.conversation-search-results{display:grid;gap:2px;margin-top:12px}.conversation-search-results button{text-align:start;min-height:44px;padding:8px 10px;border:0;border-radius:8px;background:transparent;color:inherit;font:inherit;cursor:pointer}.conversation-search-results button:hover,.conversation-search-results button:focus-visible{background:#c8ac8a1a;outline:2px solid #c8ac8a}

html[data-material] .sidebar .side-nav{display:flex;align-items:center;gap:4px}html[data-material] .sidebar .side-nav #newChat{flex:1;min-width:0}html[data-material] .sidebar .side-nav .sidebar-search-trigger{flex:0 0 44px;width:44px;height:44px}

.chat-item__pin{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;border:0;background:transparent;color:#a99b88;cursor:pointer}.chat-item__pin[aria-pressed=true]{color:#e5c39a}.chat-item__pin svg,.chat-action-menu button svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:var(--orea-icon-stroke,1.5);stroke-linecap:round;stroke-linejoin:round}.chat-action-menu button{display:flex;align-items:center;gap:10px}
html[data-material] body .composer{background:#181612!important;border-color:#4d4334!important}
