/* Shared behavior and window geometry for the dedicated non-Claude surfaces. */
.layout.is-brand-workbench { height:100dvh; min-height:0; overflow:hidden; }
.layout.is-brand-workbench > .legal-footer,
.layout.is-brand-workbench > .app-header,
.layout.is-brand-workbench .main > .topbar,
.layout.is-brand-workbench .main > .workspace-footer { display:none; }
.layout.is-brand-workbench .main { width:100%; max-width:none; height:100dvh; min-height:0; margin:0; padding:0; overflow:hidden; }
.layout.is-brand-workbench #page-content { height:100%; min-height:0; padding:0; }
.wb.wb-brand { --b-surface:#fff; --b-sidebar:#f8f9fb; --b-text:#202124; --b-muted:#73777f; --b-line:#e7e8eb; display:grid; grid-template-columns:260px minmax(0,1fr); width:100%; height:100dvh; min-height:0; max-height:none; border:0; border-radius:0; margin:0; box-shadow:none; overflow:hidden; background:var(--b-surface); color:var(--b-text); font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC",sans-serif; }
.wb.wb-brand .wb-main { position:relative; min-width:0; min-height:0; display:flex; flex-direction:column; background:var(--b-surface); }
.wb.wb-brand .wb-button { font-size:14px!important; }
.wb.wb-brand .b-icon { display:block; width:20px; height:20px; object-fit:contain; flex-shrink:0; }
.wb.wb-brand .b-icon-button { min-width:34px; min-height:34px; padding:7px; }
.wb.wb-brand .b-sidebar { padding:0 10px; min-height:0; display:flex; flex-direction:column; background:var(--b-sidebar); border-right:1px solid var(--b-line); overflow:hidden; }
.wb.wb-brand.b-sidebar-collapsed { grid-template-columns:minmax(0,1fr); }
.wb.wb-brand.b-sidebar-collapsed .b-sidebar { display:none; }
.wb.wb-brand .b-sidebar-top { display:flex; align-items:center; justify-content:space-between; min-height:60px; gap:6px; padding:6px; }
.wb.wb-brand .b-sidebar-brand { display:flex; align-items:center; gap:8px; font-size:19px!important; font-weight:600; }
.wb.wb-brand .b-sidebar-brand img { width:26px; height:26px; object-fit:contain; }
.wb.wb-brand .b-navigation { display:flex; flex-direction:column; gap:3px; }
.wb.wb-brand .b-navigation .wb-button { justify-content:flex-start; width:100%; min-height:38px; background:transparent; border:0; margin:0; padding:8px 12px; box-shadow:none; }
.wb.wb-brand .b-history-heading { display:flex; align-items:center; justify-content:space-between; color:var(--b-muted); font-size:12px; margin:22px 7px 4px; }
.wb.wb-brand .wb-history { flex:1; min-height:0; max-height:none; }
.wb.wb-brand .wb-history-select { font-size:13px!important; }
.wb.wb-brand .wb-history-delete .b-icon { width:15px; height:15px; }
.wb.wb-brand .b-sidebar-account { display:flex; align-items:center; gap:7px; padding:12px 3px; margin-top:auto; flex-shrink:0; font-size:13px; }
.wb.wb-brand .b-account-name { flex:1; min-width:0; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; }
.wb.wb-brand .b-main-header { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:10px 20px; min-height:60px; flex-shrink:0; }
.wb.wb-brand .b-header-start,.wb.wb-brand .b-header-actions { display:flex; align-items:center; gap:8px; min-width:0; }
.wb.wb-brand .b-header-start { flex:1; }
.wb.wb-brand .b-header-actions { flex-shrink:0; }
.wb.wb-brand .b-header-actions>.wb-button-soft { background:transparent; color:var(--b-muted); }
.wb.wb-brand .wb-model-pickers { flex-wrap:nowrap; min-width:0; }
.wb.wb-brand .wb-model-select { color:var(--b-text); font-size:15px!important; }
.wb.wb-brand #wb-model { font-weight:400!important; color:var(--b-muted); max-width:220px; }
.wb.wb-brand .b-mode-menu { position:relative; color:var(--b-muted); flex-shrink:0; font-size:12px; }
.wb.wb-brand .b-mode-menu>summary { cursor:pointer; padding:6px; }
.wb.wb-brand .b-mode-menu .wb-modes { position:absolute; right:0; top:26px; z-index:5; display:flex; flex-direction:column; width:125px; padding:6px; border:1px solid var(--b-line); background:var(--b-surface); box-shadow:0 6px 24px #00000012; }
.wb.wb-brand .b-mode-menu:not([open]) .wb-modes { display:none; }
.wb.wb-brand .b-stage { display:flex; flex-direction:column; align-items:center; flex:1; min-height:0; min-width:0; overflow:auto; padding:22dvh 32px 45px; scrollbar-width:thin; }
.wb.wb-brand .b-stage>.wb-messages { width:min(100%,768px); flex:none; max-height:none; overflow:visible; padding:0; }
.wb.wb-brand .b-welcome { padding:0; text-align:center; }
.wb.wb-brand .b-welcome-title { font-size:28px; font-weight:400; line-height:1.4; letter-spacing:-.4px; margin:0; }
.wb.wb-brand .b-welcome-subtitle { font-size:14px; line-height:1.7; color:var(--b-muted); margin:12px 0 0; }
.wb.wb-brand .b-stage>.wb-composer-area { width:min(100%,768px); padding:0; flex-shrink:0; margin:38px 0 0; max-height:none; overflow:visible; }
.wb.wb-brand textarea.wb-draft { min-width:0; min-height:36px; padding:15px 18px 7px; font-size:16px!important; line-height:24px; border-radius:0; color:var(--b-text); max-height:190px; }
.wb.wb-brand .wb-composer { border-radius:24px; }
.wb.wb-brand .b-composer-tools { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; padding:6px 10px 10px; gap:7px; }
.wb.wb-brand .b-composer-left,.wb.wb-brand .b-composer-right { display:flex; align-items:center; gap:6px; min-width:0; max-width:100%; flex-wrap:wrap; }
.wb.wb-brand .b-composer-left { flex:1; }
.wb.wb-brand .b-composer-right { margin-left:auto; flex-shrink:0; }
.wb.wb-brand .wb-button-attach.b-icon-button { width:34px; font-size:0!important; padding:7px; }
.wb.wb-brand .wb-button-send { width:36px; height:36px; min-width:36px; min-height:36px; padding:8px; border-radius:50%; }
.wb.wb-brand .wb-button-send .b-icon { filter:invert(1); }
.wb.wb-brand .la-trigger { font-size:12px; }
.wb.wb-brand .b-session-notes { margin:10px 0 0; color:var(--b-muted); font-size:12px; line-height:1.7; text-align:center; }
.wb.wb-brand .b-session-notes>summary { cursor:pointer; }
.wb.wb-brand .b-session-notes[open] { text-align:left; padding:12px; border-radius:14px; background:var(--b-sidebar); }
.wb.wb-brand .b-disclaimer { position:absolute; bottom:9px; right:16px; left:16px; margin:0; text-align:center; color:var(--b-muted); font-size:11px; line-height:1.5; pointer-events:none; }
.wb.wb-brand.b-chat-state .b-stage { padding:0 32px 38px; overflow:hidden; }
.wb.wb-brand.b-chat-state .b-stage>.wb-messages { flex:1; min-height:0; overflow:auto; padding:14px 0 20px; }
.wb.wb-brand.b-chat-state .b-stage>.wb-composer-area { margin:0; max-height:65%; overflow:auto; }
.wb.wb-brand.wb-is-review .b-stage { padding:18px 30px 40px; overflow:hidden; }
.wb.wb-brand.wb-is-review .b-stage>.wb-composer-area { flex:1; width:min(100%,768px); margin:0; max-height:none; overflow:hidden; }
.wb.wb-brand .b-sidebar-overlay { position:fixed; inset:0; z-index:20; background:#00000042; border:0; border-radius:0; }
.wb.wb-brand.b-no-sidebar { grid-template-columns:minmax(0,1fr); }
.wb.wb-brand.b-no-sidebar .b-sidebar { display:none; }
.wb.wb-brand.b-no-sidebar.b-mobile-sidebar-open .b-sidebar { display:flex; position:fixed; z-index:21; inset:0 auto 0 0; width:min(280px,calc(100vw - 54px)); }
@media(max-width:760px) {
  .wb.wb-brand { grid-template-columns:minmax(0,1fr); height:100dvh; margin:0; border-radius:0; }
  .wb.wb-brand .b-sidebar { display:none; border-bottom:0; }
  .wb.wb-brand.b-mobile-sidebar-open .b-sidebar { display:flex; position:fixed; z-index:21; inset:0 auto 0 0; width:min(280px,calc(100vw - 54px)); }
  .wb.wb-brand .b-main-header { min-height:56px; padding:8px 10px; gap:5px; align-items:flex-start; }
  .wb.wb-brand .b-header-start { gap:2px; }
  .wb.wb-brand .b-header-actions { gap:2px; }
  .wb.wb-brand .b-header-actions .wb-button-soft,.wb.wb-brand .b-header-optional,.wb.wb-brand .b-mode-menu { display:none; }
  .wb.wb-brand .wb-model-pickers { gap:1px 4px; flex-wrap:wrap; }
  .wb.wb-brand #wb-provider { max-width:90px; }
  .wb.wb-brand #wb-model { flex-basis:130px; max-width:min(220px,100%); font-size:12px!important; min-height:25px; }
  .wb.wb-brand .b-stage { padding:18dvh 16px 36px; }
  .wb.wb-brand .b-welcome-title { font-size:24px; }
  .wb.wb-brand .b-stage>.wb-composer-area { margin-top:26px; }
  .wb.wb-brand.b-chat-state .b-stage { padding:0 12px 34px; }
  .wb.wb-brand.wb-is-review .b-stage { padding:8px 12px 34px; overflow:auto; }
  .wb.wb-brand.wb-is-review .b-stage>.wb-composer-area { overflow:visible; }
  .wb.wb-brand .b-composer-tools { padding:6px 8px 9px; }
  .wb.wb-brand .la-trigger { max-width:100%; font-size:11px; }
  .wb.wb-brand .wb-attachment summary { flex-wrap:wrap; }
  .wb.wb-brand .wb-attachment summary>span:first-child { max-width:100%; }
  .wb.wb-brand .b-session-notes { font-size:11px; }
}
@media(prefers-reduced-motion:reduce) { .wb.wb-brand * { transition:none!important; animation:none!important; } }

.wb.wb-brand.wb-is-review .wb-composer { display:none; }
@media(max-width:440px) { .wb.wb-brand { margin-left:0; margin-right:0; } }

.wb.wb-brand .b-stage>.wb-composer-area { overflow-x:hidden; }
