/* Phone is the primary surface. Desktop retains its separate workspace. */
.mobile-navigation,.mobile-list-heading,.mobile-detail-title,.mobile-detail-context,.send-label{display:none}
.auth-message{font-size:14px;line-height:1.85;color:var(--error);margin:0 0 22px;overflow-wrap:anywhere}
.auth-loading{display:flex;align-items:center;gap:12px;min-height:48px;color:#68686F}
.login-label,.login-intro,.login-note,.demo-link{color:#68686F}
.sidebar-bottom{width:100%;text-align:left}
.sidebar-bottom>.icon{margin-left:auto;color:#68686F}
.account-pane{display:none;flex:1;min-height:0;min-width:0;background:var(--paper)}
.workspace.mobile-page-account{grid-template-columns:260px minmax(0,1fr)}
.workspace.mobile-page-account>.main-pane,.workspace.mobile-page-account>.inspector{display:none}
.workspace.mobile-page-account>.account-pane{display:flex;flex-direction:column}
.account-header{display:flex;align-items:center;gap:10px;padding:20px 24px;border-bottom:1px solid var(--line);flex:none}
.account-header h1{font-size:22px;line-height:1.5;color:var(--forest);margin:0;font-weight:600}
.account-body{flex:1;min-height:0;overflow-y:auto;padding:24px;width:100%;max-width:640px;margin:0 auto;overscroll-behavior:contain}
.account-card{border:1px solid #E3E3E8;border-radius:17px;background:#FFFFFF;padding:21px;margin-bottom:17px}
.account-card h2{font-size:18px;font-weight:550;color:var(--forest);line-height:1.6;margin:0;overflow-wrap:anywhere}
.account-section-heading{font-size:13px;color:#68686F;margin-bottom:12px}
.account-identity{display:flex;align-items:center;gap:14px}
.account-identity>div{min-width:0}
.account-identity .user-avatar{width:47px;height:47px;flex:none;font-size:21px}
.account-identity p{margin:5px 0 0;font-size:13px;color:#68686F;line-height:1.8}
.connection-status{display:flex;align-items:center;gap:9px;font-size:14px;line-height:1.8;color:#68686F;margin:14px 0 20px}
.connection-status.ready{color:var(--forest)}
.connection-status .icon{width:18px;height:18px}
.account-facts,.account-features{margin:0;font-size:14px;line-height:1.8}
.account-facts>div,.account-features>div{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-top:1px solid #F1F1F4}
.account-facts dt,.account-features dt{color:#68686F}
.account-facts dd,.account-features dd{margin:0;text-align:right;color:var(--forest);overflow-wrap:anywhere}
.account-note{font-size:12px;line-height:1.85;color:#68686F;margin:13px 0 0}
.account-error{font-size:13px;line-height:1.85;color:var(--error);margin:13px 0}
.account-check{display:flex;align-items:center;justify-content:center;gap:9px;min-height:46px;width:100%;font-size:14px;color:var(--forest);margin-top:17px}
.account-check .icon{width:18px;height:18px}
.account-check:disabled,.account-logout:disabled{opacity:.55}
.account-privacy{font-size:12px;line-height:1.85;color:#68686F;padding:0 3px;margin:7px 0 18px}
.account-logout{display:block;width:100%;min-height:48px;padding:10px 14px;border:1px solid #E3E3E8;border-radius:13px;font-size:15px;color:var(--forest);background:#F1F1F4}
.logout-note{text-align:center;margin:10px 0 20px}
.account-demo{font-size:12px;color:#68686F;line-height:1.8;margin:0 0 17px}
.session-link{text-decoration:none;text-align:left}
.session-link span{min-width:0}
.session-link strong,.session-link small{overflow-wrap:anywhere}
/* A single phone surface with a lightweight conversation drawer. */
@media(max-width:759px){
  html,body{height:100%;overflow:hidden;overscroll-behavior:none}
  body{font-size:16px;-webkit-text-size-adjust:100%}
  #app{height:var(--app-height,100dvh)}
  .workspace,.workspace.inspector-open{position:fixed;top:var(--app-offset,0px);left:0;width:100%;height:var(--app-height,100dvh);display:flex;flex-direction:column;overflow:hidden;padding-top:env(safe-area-inset-top);background:var(--paper)}
  .workspace>.sidebar,.workspace>.main-pane,.workspace>.inspector,.workspace>.bots-pane{display:none;position:static;inset:auto;width:100%;max-width:none;height:auto;min-height:0;transform:none;box-shadow:none;border:0;flex:1}
  .workspace.mobile-page-list>.sidebar,.workspace.mobile-page-chat>.main-pane,.workspace.mobile-page-activity>.inspector,.workspace.mobile-page-artifacts>.inspector,.workspace.mobile-page-bots>.bots-pane{display:flex}
  .workspace>.sidebar{z-index:auto;background:var(--paper)}
  .workspace>.main-pane{height:auto}
  .workspace .pane-backdrop{display:none!important}
  .icon-button{width:44px;height:44px;min-width:44px;min-height:44px;border-radius:50%;color:var(--forest)}
  .icon{width:22px;height:22px;stroke-width:1.6}
  .icon-button:active{background:#F1F1F4}
  .sidebar-brand,.new-chat,.sidebar-bottom,.drawer-heading{display:none}

  .mobile-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 21px 18px;flex:none;min-height:96px}
  .mobile-list-heading>div:first-child{min-width:0;flex:1}
  .mobile-list-heading h1{display:flex;align-items:center;gap:10px;margin:0;font-size:23px;line-height:1.3;font-weight:600;letter-spacing:-.6px;color:var(--forest)}
  .mobile-list-heading p{margin:7px 0 0;font-size:12px;color:#68686F;line-height:1.6;max-width:240px}
  .mobile-agent-mark{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;flex:none;border-radius:50%;background:#F1F1F4;color:var(--forest);font-family:Georgia,serif;font-size:20px;font-weight:400}
  .mobile-list-actions{display:flex;align-items:center;gap:8px;flex:none}
  .mobile-list-actions .icon-button{background:#FFFFFF;box-shadow:0 0 0 1px #E3E3E880}
  .mobile-create{display:flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;border-radius:50%;background:var(--forest);color:var(--paper);box-shadow:none}
  .mobile-create:disabled{opacity:.5}
  .mobile-create .icon{width:23px;height:23px}
  .search-field{height:46px;min-height:46px;margin:0 21px 12px;padding:0 14px;gap:10px;border:0;border-radius:25px;background:#F1F1F4}
  .search-field .icon{width:19px;height:19px;color:#68686F}
  .search-field input{font-size:16px;height:44px;line-height:44px}
  .search-field input::placeholder{color:#68686F;opacity:1}
  .key-hint{display:none}
  .session-filters{gap:4px;padding:0 21px 5px;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none}
  .session-filters button{min-height:44px;min-width:64px;padding:0 13px;font-size:13px;border-radius:24px;gap:6px}
  .session-filters button[aria-pressed="true"]{background:#F1F1F4;color:var(--forest)}
  .session-filters button span{font-size:12px}
  .list-toolbar{min-height:44px;height:44px;flex:none;padding:0 21px 0 24px;font-size:12px;letter-spacing:0;color:#68686F}
  .list-toolbar button{width:44px;height:44px;border-radius:50%}
  .list-toolbar .icon{width:19px;height:19px}
  .session-list{min-height:0;padding:2px 15px calc(105px + env(safe-area-inset-bottom));scroll-padding-bottom:105px;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#E3E3E8 transparent}
  .session-group{margin-bottom:18px}
  .group-label{font-size:12px;font-weight:450;letter-spacing:0;padding:9px 10px 5px;color:#68686F}
  .group-label>span:last-child{font-size:12px;opacity:1;color:#68686F;font-variant-numeric:tabular-nums}
  .group-label .icon{width:14px;height:14px;margin-right:5px}
  .session-row{margin-bottom:1px;border-radius:14px;min-height:70px;border:0;background:transparent}
  .session-row:hover{background:#F1F1F4}
  .session-row.selected{background:#F1F1F4;box-shadow:none}
  .session-item{min-height:70px;padding:12px 11px;flex:1;border-radius:14px}
  .session-item-top{gap:7px;min-width:0}
  .session-title{font-size:16px;line-height:23px;font-weight:450;color:var(--ink);flex:1;min-width:0}
  .selected .session-title{font-weight:550;color:var(--forest)}
  .session-description{font-size:12px;line-height:18px;margin-top:5px;color:#68686F;gap:8px;align-items:center}
  .session-description>span{font-size:12px}
  .session-state{font-size:12px;line-height:18px;gap:5px}
  .session-state.running,.session-state.sending{color:var(--forest)}
  .session-state.draft{color:#68686F}
  .session-row>.icon-button{width:44px;height:44px;min-width:44px;margin-right:1px;opacity:1;color:#68686F}
  .session-row>.icon-button .icon{width:20px;height:20px}
  .session-menu{display:none}
  .search-count{font-size:12px;padding:7px 10px 12px;color:#68686F}
  .sidebar-empty{font-size:14px;padding:35px 20px;line-height:1.8;color:#68686F}
  .channel-more{height:46px;min-height:46px;font-size:13px;border-radius:24px;background:#F1F1F4;border-color:#E3E3E8;margin-top:10px;color:var(--forest)}
  .channel-more .icon{width:17px;height:17px}
  .channel-note{font-size:12px;line-height:1.8;color:#68686F}

  /* The drawer never replaces the conversation underneath it. */
  .workspace.drawer-open>.sidebar{display:flex;position:absolute;z-index:60;top:0;bottom:0;left:0;width:min(340px,90vw);max-width:90vw;height:100%;flex:none;padding-top:env(safe-area-inset-top);padding-bottom:0;background:#FFFFFF;border:0;border-radius:0 25px 25px 0;box-shadow:14px 0 45px #18181B24;transform:none;animation:drawer-enter .2s ease-out}
  .workspace.drawer-open>.pane-backdrop{display:block!important;position:absolute;inset:0;z-index:55;background:#20202440;border:0;cursor:pointer}
  .drawer-open .mobile-list-heading{display:none}
  .drawer-open .drawer-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:79px;padding:15px 16px 14px 24px;flex:none}
  .drawer-heading h2,.drawer-heading strong{font-size:21px;line-height:1.3;font-weight:600;letter-spacing:-.4px;color:var(--forest);margin:0}
  .drawer-heading p,.drawer-heading small{display:block;font-size:12px;line-height:1.5;margin:6px 0 0;color:#68686F}
  .drawer-heading .icon-button{background:#F7F7F9}
  .drawer-open .new-chat{display:flex;min-height:46px;align-items:center;justify-content:flex-start;gap:10px;margin:0 21px 13px;padding:0 14px;border:1px solid #F1F1F4;border-radius:24px;background:#F1F1F4;color:var(--forest);font-size:14px;font-weight:550;box-shadow:none}
  .drawer-open .new-chat .icon{width:19px;height:19px}
  .drawer-open .search-field{background:#F7F7F9;margin-bottom:9px}
  .drawer-open .session-filters{padding-left:20px;padding-right:14px}
  .drawer-open .session-filters button{min-width:58px;padding:0 11px}
  .drawer-open .quick-switch{background:transparent;padding-left:20px;padding-right:15px}
  .drawer-open .list-toolbar{padding-left:24px;padding-right:17px}
  .drawer-open .session-list{padding:0 14px 20px;scroll-padding-bottom:20px}
  .drawer-open .session-row.selected{background:#F1F1F4}
  .drawer-open .session-title{font-size:15px}
  .drawer-open .session-item{min-height:67px;padding-left:10px;padding-right:9px}
  .drawer-open .sidebar-bottom{display:flex;min-height:66px;flex:none;width:auto;gap:10px;margin:0 21px;padding:11px 0 calc(11px + env(safe-area-inset-bottom));border-top:1px solid #F1F1F4;background:transparent}
  .drawer-open .sidebar-bottom .user-avatar{width:35px;height:35px;font-size:18px;background:#F1F1F4;border:0}
  .drawer-open .sidebar-bottom strong{font-size:13px;font-weight:500}
  .drawer-open .sidebar-bottom small{font-size:12px;line-height:1.4;color:#68686F;margin-top:3px}
  .drawer-open .sidebar-bottom>.icon{width:18px;height:18px}

  .mobile-navigation{position:absolute;z-index:35;left:50%;bottom:calc(14px + env(safe-area-inset-bottom));transform:translateX(-50%);display:flex;align-items:center;justify-content:center;gap:3px;width:min(352px,calc(100% - 36px));min-height:65px;padding:6px;background:#FFFFFF;border:1px solid #E3E3E88C;border-radius:40px;box-shadow:0 5px 21px #18181B12;flex:none}
  .mobile-navigation button{position:relative;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:4px;min-height:52px;min-width:0;padding:6px 8px;flex:1;color:#68686F;border-radius:29px;font-size:12px;line-height:16px;white-space:nowrap}
  .mobile-navigation button[aria-current]{color:var(--forest);background:#F1F1F4;font-weight:550}
  .mobile-navigation .icon{width:21px;height:21px;stroke-width:1.6}
  .mobile-navigation .running-dot{position:absolute;left:calc(50% + 10px);top:8px;width:5px;height:5px;box-shadow:0 0 0 2px #FFFFFF;background:var(--forest)}
  .mobile-page-chat .mobile-navigation,.mobile-page-account .mobile-navigation,.keyboard-open .mobile-navigation{display:none}
  .drawer-open .mobile-navigation{pointer-events:none}

  .chat-header{min-height:66px;height:66px;padding:8px 11px;gap:7px;border-bottom:0;background:var(--paper)}
  .chat-header>.icon-button{display:flex;width:44px;height:44px;min-width:44px;color:var(--forest);background:#FFFFFF;box-shadow:0 0 0 1px #E3E3E870}
  .chat-header>.icon-button .icon{width:21px;height:21px}
  .chat-heading{flex:1;overflow:hidden;padding:0 2px;text-align:center}
  .chat-heading h1{font-size:16px;max-width:none;line-height:23px;letter-spacing:-.2px;font-weight:550}
  .chat-heading p{justify-content:center;font-size:12px;line-height:16px;margin-top:2px;color:#68686F;letter-spacing:0}
  .chat-heading p .icon{width:12px;height:12px}
  .header-actions{margin-left:0;gap:2px;flex:none}
  .header-actions>.icon-button{width:44px;height:44px;color:var(--forest)}
  .header-actions>.icon-button .icon{width:20px;height:20px}
  .preview-badge{display:none}
  .quick-switch{gap:7px;padding:1px 13px 10px;border-bottom:0;background:var(--paper);min-height:52px}
  .quick-switch>span,.quick-switch-label{font-size:12px;color:#68686F}
  .quick-switch button{min-height:44px;max-width:180px;padding:0 12px;font-size:13px;border-radius:24px;background:#FFFFFF;border-color:#E3E3E8;gap:7px}
  .quick-switch button[aria-current="page"],.quick-switch button.active{background:#F1F1F4;border-color:#E3E3E8}
  .demo-banner{padding:0 16px;min-height:44px;font-size:11px;line-height:1.6;color:#68686F;gap:8px;flex:none;background:#F7F7F9;border:0}
  .demo-banner a{font-size:11px;min-height:44px;align-items:center;color:var(--forest)}
  .error-banner{padding:8px 16px;font-size:13px;line-height:1.7}
  .error-banner button{min-width:44px;min-height:44px;align-items:center;justify-content:center}
  .transcript{padding:21px 20px 18px;max-width:none}
  .thread-date{font-size:12px;margin-bottom:26px;line-height:1.6;color:#68686F}
  .message{font-size:16px;line-height:1.85;margin-bottom:22px}
  .message.assistant .message-bubble{padding-left:0;margin-top:9px}
  .message.user{padding-left:22px;margin-bottom:28px}
  .message.user .message-bubble{font-size:15px;line-height:1.8;padding:12px 16px;max-width:100%;border:0;background:#F1F1F4;border-radius:20px 20px 5px 20px}
  .message-bubble p{margin-bottom:16px;overflow-wrap:anywhere}
  .message-bubble ul,.message-bubble ol{padding-left:24px;margin-bottom:18px}
  .message-bubble li{margin-bottom:7px}
  .message-bubble pre{font-size:13px;line-height:1.75}
  .message-bubble :not(pre)>code{font-size:14px;overflow-wrap:anywhere}
  .assistant-label{font-size:12px;line-height:28px;gap:8px;color:#68686F;margin:0}
  .tiny-avatar{width:27px;height:27px;font-size:15px;border:0;background:#F1F1F4}
  .demo-message-label{font-size:11px;color:#68686F}
  .copy-button{width:44px;height:44px;margin:1px 0 -8px -7px;opacity:.7;color:#68686F}
  .copy-button .icon{width:17px;height:17px}
  .working-message{font-size:13px;margin-bottom:18px;gap:9px;color:#68686F}
  .thread-notice{font-size:12px;line-height:1.8;padding:12px;border-radius:14px;margin-bottom:12px;color:#68686F}
  .thread-notice .icon{width:17px;height:17px;margin-top:3px}
  .thread-notice button{min-height:44px;min-width:72px;font-size:12px;border:0}
  .history-loader button{height:44px;font-size:12px;padding:0 15px;border-radius:24px;color:#68686F}
  .history-loader .icon{width:16px;height:16px}
  .composer-area{padding:7px 13px max(13px,env(safe-area-inset-bottom));background:var(--paper);max-width:none;margin:0;flex:none;border-top:0}
  .composer{padding:12px 13px 8px;border-radius:24px;border:1px solid #E3E3E8;background:#FFFFFF;box-shadow:0 3px 12px #18181B04}
  .composer:focus-within{border-color:#C9C9D1;box-shadow:0 0 0 2px #18181B04}
  .composer textarea{font-size:16px;line-height:1.65;min-height:36px;max-height:132px;padding:0 1px;caret-color:var(--forest)}
  .composer textarea::placeholder{color:#68686F}
  .composer-bottom{min-height:44px;gap:10px;margin-top:3px}
  .composer-bottom>span{font-size:12px;line-height:1.6;color:#68686F;flex:1}
  .send-button{height:44px;min-height:44px;width:auto;min-width:78px;border-radius:24px;gap:5px;padding:0 14px;font-size:14px;white-space:nowrap}
  .send-button .icon{width:18px;height:18px}
  .send-label{display:inline;font-weight:550}
  .send-button:disabled{background:#F1F1F4;color:#68686F}
  .composer-footnote{display:none}
  .readonly-notice{padding:13px 12px;gap:10px;flex-wrap:wrap;border-radius:20px;background:#F1F1F4;border-color:#E3E3E8}
  .readonly-notice strong{font-size:13px;line-height:1.7}
  .readonly-notice p{font-size:12px;line-height:1.7;max-width:none;color:#68686F}
  .readonly-notice>div{min-width:170px}
  .readonly-notice button{min-height:44px;min-width:104px;margin-left:auto;font-size:13px;padding:0 12px;gap:5px;border-radius:24px}
  .readonly-notice button .icon{width:16px;height:16px}
  .welcome{min-height:100%;padding:26px 24px;max-width:420px;justify-content:center}
  .welcome-avatar{margin-bottom:20px}
  .welcome-avatar>span:first-child{width:64px;height:64px;font-size:38px;background:#F1F1F4;border:0;box-shadow:none}
  .avatar-star{display:none}
  .eyebrow{font-size:11px;letter-spacing:1.3px;color:#68686F}
  .welcome h1{font-size:26px;margin:12px 0;font-weight:550}
  .welcome>p{font-size:13px;line-height:1.8;max-width:300px;margin-bottom:24px;color:#68686F}
  .suggestions{max-width:320px;gap:9px}
  .suggestions button{min-height:50px;padding:11px 14px;font-size:14px;border-radius:15px;background:#F7F7F9;border:0;color:var(--forest)}
  .suggestions button>.icon:first-child{width:19px;height:19px}
  .welcome-demo{font-size:11px;line-height:1.7;margin-top:18px;color:#68686F}

  .workspace>.inspector{background:var(--paper);z-index:auto}
  .inspector-topbar{display:flex;align-items:center;gap:10px;padding:12px 17px;min-height:76px;border-bottom:0;flex:none}
  .inspector-topbar>div{flex:1;min-width:0}
  .desktop-detail-title{display:none}
  .mobile-detail-title{display:block;margin:0;color:var(--forest);font-size:21px;font-weight:600;line-height:1.3;letter-spacing:-.4px}
  .mobile-detail-context{display:block;font-size:12px;color:#68686F;margin:5px 0 0;line-height:1.6;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;letter-spacing:0}
  .inspector-topbar .icon-button{width:44px;height:44px;min-width:44px;color:var(--forest);background:#FFFFFF;box-shadow:0 0 0 1px #E3E3E870}
  .inspector-topbar .icon-button .icon{width:20px;height:20px}
  #inspector-content{flex:1;min-height:0}
  .inspector-avatar{display:grid;grid-template-columns:43px 1fr;grid-template-rows:23px 20px;align-items:center;column-gap:11px;padding:12px 23px 23px;text-align:left}
  .agent-avatar{grid-row:1/3;width:43px;height:43px;font-size:25px;box-shadow:none;border:0;background:#F1F1F4}
  .inspector-avatar strong{grid-column:2;margin:0;font-size:16px;line-height:23px}
  .agent-status{grid-column:2;font-size:12px;margin:0;align-self:end;gap:6px;color:#68686F}
  .inspector-tabs{display:none}
  .inspector-body{padding:0 18px calc(110px + env(safe-area-inset-bottom));min-height:0;overscroll-behavior:contain;scroll-padding-bottom:105px}
  .inspector-section-label{font-size:12px;margin:0 5px 14px;color:#68686F;letter-spacing:0}
  .activity-card{border-radius:16px;margin-bottom:10px;background:#FFFFFF;border:1px solid #F1F1F4}
  .activity-card summary{min-height:81px;padding:15px 13px;gap:12px}
  .activity-icon{width:33px;height:33px;border-radius:50%;border:0;background:#F1F1F4;color:var(--forest)}
  .activity-icon .icon{width:17px;height:17px}
  .activity-text strong{font-size:15px;line-height:1.6;color:var(--forest);font-weight:500}
  .activity-text>span{font-size:13px;line-height:1.7;margin-top:5px;color:#68686F}
  .activity-text small{font-size:12px;margin-top:9px;color:#68686F}
  .activity-card summary>.icon{width:17px;height:17px;margin-top:8px;color:#68686F}
  .activity-expanded{padding:0 15px 17px 58px;font-size:13px;line-height:1.85;color:#68686F}
  .activity-expanded pre{font-size:12px}
  .inspector-bottom{display:none}
  .inspector-empty{padding:42px 27px;color:#68686F}
  .inspector-empty>span{border:0;border-radius:50%;background:#F1F1F4;color:var(--forest)}
  .inspector-empty p{font-size:17px;line-height:1.6;margin:9px 0 13px;color:var(--forest)}
  .inspector-empty small{font-size:13px;line-height:1.9;max-width:260px;color:#68686F}
  .artifact-card{min-height:82px;padding:16px 13px;border-radius:16px;gap:13px;background:#FFFFFF;border-color:#F1F1F4}
  .artifact-card strong{font-size:15px;line-height:1.6;color:var(--forest);font-weight:500}
  .artifact-card small{font-size:12px;line-height:1.7;color:#68686F}
  .artifact-icon{width:36px;height:43px;border-radius:8px;background:#F1F1F4;border-color:#E3E3E8;color:var(--forest)}
  .artifact-card>.icon{width:18px;height:18px;color:#68686F}
  .tool-detail summary{min-height:48px;padding:10px 12px;font-size:13px;gap:8px;color:#68686F}
  .tool-label{font-size:12px;color:#68686F}
  .tool-name{color:#68686F}
  .tool-content pre{font-size:12px}

  .workspace>.account-pane{width:100%;flex:1;min-height:0}
  .account-header{min-height:72px;height:72px;padding:10px 15px;gap:11px;border-bottom:0}
  .account-header h1{font-size:20px;letter-spacing:-.4px;flex:1}
  .account-header .icon-button{color:var(--forest);background:#FFFFFF;box-shadow:0 0 0 1px #E3E3E870}
  .account-body{padding:13px 18px calc(22px + env(safe-area-inset-bottom));max-width:none}
  .account-card{padding:18px;margin-bottom:14px;border-radius:20px;border-color:#F1F1F4;background:#FFFFFF}
  .account-identity .user-avatar{background:#F1F1F4;border:0}
  .account-facts>div,.account-features>div{border-color:#F1F1F4}
  .account-logout{border-radius:25px;background:#F1F1F4;border-color:#E3E3E8}
  .account-check{border-radius:24px}
  .account-note,.account-privacy,.account-demo{font-size:12px}

  .modal-backdrop{padding:18px}
  .modal-card{border-radius:22px}
  .modal-card input,.password-input input{font-size:16px;min-height:44px}
  .modal-card label{font-size:13px;color:#68686F}
  .modal-heading h2{font-size:19px;line-height:1.6}
  .modal-heading>.icon-button{min-width:44px}
  .primary-button,.secondary-button{min-height:44px;min-width:74px;font-size:14px;border-radius:24px}
  .mobile-menu-backdrop{align-items:flex-end;padding:0;background:#18181B55}
  .mobile-action-sheet{max-width:none;border-radius:25px 25px 0 0;padding:11px 17px calc(17px + env(safe-area-inset-bottom));border-bottom:0}
  .sheet-handle{width:35px;height:4px;border-radius:5px;background:#E3E3E8;margin:0 auto 17px}
  .mobile-action-sheet h2{margin:0 9px 15px;font-size:16px;font-weight:550;color:var(--forest);line-height:1.7;overflow-wrap:anywhere}
  .mobile-action-sheet>button{display:flex;align-items:center;gap:13px;min-height:52px;width:100%;font-size:15px;text-align:left;padding:0 12px;border-radius:14px}
  .mobile-action-sheet>button:hover{background:#F1F1F4}
  .mobile-action-sheet>button .icon{width:20px;height:20px;color:#68686F}
  .mobile-action-sheet>.sheet-cancel{justify-content:center;margin-top:12px;border:0;background:#F1F1F4;border-radius:25px}
  .document-preview{font-size:15px;line-height:1.85;max-height:calc(var(--app-height,100dvh) - 190px)}
  .document-note{font-size:12px;color:#68686F}
  .toast{bottom:calc(95px + env(safe-area-inset-bottom));font-size:13px;max-width:calc(100vw - 40px);border-radius:22px}
  .keyboard-open .toast{bottom:20px}
  .login-page{height:var(--app-height,100dvh);min-height:0;overflow-y:auto;padding:calc(92px + env(safe-area-inset-top)) 26px 28px;justify-content:flex-start;overscroll-behavior:contain}
  .login-brand{top:calc(23px + env(safe-area-inset-top));left:26px;font-size:18px}
  .login-brand .brand-mark{border-radius:50%;width:34px;height:34px;font-size:23px}
  .login-card{max-width:340px;margin:auto 0}
  .login-card h1{font-size:29px;line-height:1.4}
  .login-intro{font-size:14px;line-height:1.9;margin-bottom:25px}
  .login-card label{font-size:13px}
  .password-input{padding:7px 14px;min-height:52px;border-radius:17px;background:#FFFFFF}
  .login-submit{min-height:49px;font-size:15px;border-radius:26px}
  .login-note,.demo-link{font-size:12px}
  .demo-link{min-height:44px;margin-top:25px;align-items:center}
  .form-error{font-size:13px;line-height:1.7}
  .login-footer{position:static;font-size:10px;margin-top:27px;padding-bottom:env(safe-area-inset-bottom);flex:none}
}
@keyframes drawer-enter{from{transform:translateX(-15%);opacity:.7}to{transform:translateX(0);opacity:1}}
@media(max-width:759px) and (max-height:600px){
  .mobile-list-heading{padding-top:12px;padding-bottom:11px;min-height:82px}
  .drawer-open .drawer-heading{padding-top:10px;padding-bottom:10px;min-height:68px}
  .drawer-open .new-chat{margin-bottom:9px}
  .drawer-open .sidebar-bottom{min-height:58px;padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom))}
  .chat-header{min-height:60px;height:60px;padding-top:6px;padding-bottom:6px}
  .quick-switch{padding-top:0;padding-bottom:5px;min-height:48px}
  .inspector-topbar{min-height:70px;padding-top:9px;padding-bottom:9px}
  .inspector-avatar{padding-top:7px;padding-bottom:15px}
  .welcome{justify-content:flex-start;padding-top:20px;padding-bottom:24px}
  .welcome-avatar{display:none}
  .welcome h1{font-size:23px;margin:9px 0}
  .welcome>p{font-size:12px;margin-bottom:15px}
  .welcome-demo{font-size:10px;margin-top:12px}
  .suggestions{gap:7px}
  .suggestions button{min-height:46px;font-size:13px}
  .composer textarea{max-height:88px;min-height:30px}
  .composer{padding-top:8px}
  .composer-area{padding-top:5px;padding-bottom:max(8px,env(safe-area-inset-bottom))}
  .login-page{padding-top:calc(82px + env(safe-area-inset-top))}
  .login-card{margin:0;flex:none}
}
@media(prefers-reduced-motion:reduce){.workspace.drawer-open>.sidebar{animation:none}}

@media(max-width:759px){
  .composer-tools{align-self:center}
  .composer-bottom{gap:8px}
  .composer-bottom>span{font-size:12px;line-height:1.5}
  .attachment-add{width:44px;height:44px}
  .attachment-picker{width:236px;border-radius:19px}
  .attachment-picker button{min-height:48px;font-size:15px}
  .attachment-picker p{font-size:12px}
  .composer-attachments{padding-bottom:9px;gap:8px}
  .attachment-chip{flex-basis:280px;min-height:65px;border-radius:15px}
  .attachment-info strong{font-size:13px}
  .attachment-info small{font-size:12px}
  .attachment-retry{font-size:13px}
  .message-attachment{font-size:13px;max-width:100%}
}
@media(max-width:759px) and (max-height:600px){
  .composer-attachments{padding-bottom:6px}
  .attachment-chip{min-height:58px}
  .attachment-preview{width:36px;height:36px}
}

/* Bot management shares the phone shell, drawer and keyboard rules. */
@media(max-width:759px){
  .workspace>.bots-pane{background:var(--paper);overflow:hidden}
  .bots-header{min-height:92px;padding:16px 21px 17px;gap:12px;border-bottom:0}
  .bots-header h1{font-size:23px;line-height:1.3;letter-spacing:-.6px}
  .bots-header p{font-size:12px;line-height:1.6;margin-top:7px}
  .bots-header .icon-button{background:#FFFFFF;box-shadow:0 0 0 1px #E3E3E870}
  .bots-header>.primary-button,.bots-header>.secondary-button{min-width:44px;min-height:44px;padding:0 14px;gap:6px;font-size:14px;border-radius:24px}
  .bots-body{padding:3px 18px calc(116px + env(safe-area-inset-bottom));max-width:none;scroll-padding-bottom:116px}
  .bot-toolbar{gap:12px;margin-bottom:18px}
  .bot-toolbar>p,.bot-toolbar>span{font-size:12px}
  .bot-search{flex-basis:100%;max-width:none;min-height:48px;padding:0 15px;background:#F1F1F4;border:1px solid transparent}
  .bot-search input,input.bot-search{font-size:16px;min-height:46px}
  .bot-grid{grid-template-columns:1fr;gap:14px}
  .bot-card{border-radius:21px}
  .bot-card-main{padding:18px 17px 16px;gap:14px;border-radius:20px}
  .bot-card-main>.bot-avatar{width:62px;height:62px;border-radius:20px}
  .bot-card-info h2,.bot-card-info strong{font-size:18px;line-height:1.5}
  .bot-card-info p{font-size:13px;line-height:1.8;margin-top:6px}
  .bot-card-info>.bot-description{margin-top:6px}
  .bot-card-info small{font-size:12px;margin-top:8px}
  .bot-card-actions{padding:0 17px 17px;gap:8px}
  .bot-card-actions button{min-height:44px;padding:8px 14px;font-size:13px;border-radius:24px}
  .bot-default-label,.bot-main-badge{font-size:11px;line-height:1.5}
  .bot-description{font-size:14px;line-height:1.85}
  .bot-form{gap:18px}
  .bot-form label,.bot-form legend{font-size:13px;line-height:1.7}
  .bot-form input:not([type="checkbox"]):not([type="radio"]),.bot-form textarea,.bot-form select{font-size:16px;min-height:48px;border-radius:14px}
  .bot-form textarea{min-height:132px}
  .modal-card .bot-form{max-height:calc(var(--app-height,100dvh) - 155px);padding:3px}
  .bot-avatar-options{gap:8px}
  .bot-avatar-options button{min-width:62px;min-height:82px;flex:1;padding:6px 4px;border-radius:16px;font-size:11px}
  .bot-avatar-options .bot-avatar{width:46px;height:46px;border-radius:15px}
  .bot-template-options{gap:8px}
  .bot-template-options button{min-height:72px;padding:11px;font-size:13px;border-radius:14px}
  .bot-form .modal-actions{gap:8px}
  .bot-form .modal-actions>.primary-button,.bot-form .modal-actions>.secondary-button{flex:1;min-width:100px}
  .bot-context-button{width:calc(100% - 42px);margin:0 21px 13px;min-height:58px;padding:9px 12px;border-radius:17px}
  .bot-context-button .bot-avatar{width:38px;height:38px;border-radius:13px}
  .bot-context-button strong{font-size:14px;line-height:1.5}
  .bot-context-button small{font-size:12px;line-height:1.5}
  .chat-header{min-height:82px;height:82px}
  .chat-heading{overflow:visible}
  .chat-heading>.bot-context-button{width:max-content;max-width:100%;height:44px;min-height:44px;margin:-10px auto;padding:10px 4px;gap:6px;border-radius:12px;font-size:12px;line-height:22px}
  .chat-heading>.bot-context-button>.bot-avatar{width:22px;height:22px;border:0;border-radius:8px}
  .chat-heading>.bot-context-button>.icon{width:14px;height:14px}
  .drawer-open .bot-context-button{width:auto;margin-left:21px;margin-right:21px;flex:none}
  .bot-role-label{font-size:12px;line-height:1.5}
  .bot-settings-button{min-height:44px;min-width:44px;font-size:13px}
  .header-actions .bot-settings-button{width:44px;padding:0;border:0;background:none}
  .header-actions .bot-settings-button>span{display:none}
  .header-actions .bot-settings-button .icon{width:20px;height:20px}
  .assistant-label .bot-avatar,.working-message .bot-avatar{width:28px;height:28px;border-radius:50%}
  .inspector-avatar>.bot-avatar{grid-row:1/3;width:43px;height:43px;border-radius:15px}
  .welcome-avatar>.bot-avatar{width:64px;height:64px;border-radius:22px}
}
@media(max-width:759px) and (max-height:600px){
  .chat-header{min-height:76px;height:76px}
  .bots-header{min-height:80px;padding-top:12px;padding-bottom:12px}
  .bots-body{padding-top:0}
  .bot-toolbar{margin-bottom:14px}
  .modal-card .bot-form{max-height:calc(var(--app-height,100dvh) - 145px)}
  .bot-form textarea{min-height:110px}
}

/* Bot-first phone shell. Navigation lives in the Bot list and each chat header. */
@media(max-width:759px){
  .workspace>.home-sidebar{display:none}
  .workspace>.bots-pane,.workspace>.main-pane,.workspace>.bot-panel-pane,.workspace>.group-pane,.workspace>.account-pane,.workspace>.inspector{min-width:0;min-height:0}
  .mobile-navigation{display:none}
  .bots-header{min-height:89px;padding:16px 20px 15px;gap:12px;width:100%;max-width:none;flex:none}
  .bots-header h1{font-size:27px;line-height:1.25;font-weight:650;letter-spacing:-1px}
  .bots-header p{font-size:12px;line-height:1.5;margin-top:4px;color:var(--muted)}
  .bots-header .mobile-agent-mark{display:none}
  .home-title{gap:10px}
  .home-title .brand-mark{width:34px;height:34px;border-radius:12px}
  .home-header-actions{gap:7px}
  .home-header-actions .icon-button{width:44px;height:44px;border-radius:50%;box-shadow:none;border:1px solid var(--line);background:#FFF;color:var(--ink)}
  .home-header-actions [data-action="home-create"],.home-header-actions [data-action="bot-create"],.home-create-button{background:var(--ink);color:#FFF;border-color:var(--ink)}
  .home-header-actions .icon{width:21px;height:21px}
  .bots-body{padding:0 20px calc(24px + env(safe-area-inset-bottom));scroll-padding-bottom:24px;max-width:none;min-height:0}
  .bot-search{min-height:47px;height:47px;width:100%;min-width:0;margin:0 0 10px;padding:0 15px;border:1px solid transparent;border-radius:15px;background:#F4F4F6}
  .bot-search input{height:44px;min-height:44px;font-size:16px;line-height:44px}
  .bot-search .icon{width:19px;height:19px;color:#85858F}
  .bot-search input::placeholder{color:#85858F}
  .bot-search:focus-within{border-color:#C9C9D1;box-shadow:none}
  .bot-toolbar{min-height:44px;gap:7px;flex-wrap:nowrap;margin:0 0 8px}
  .bot-toolbar>span{font-size:11px;line-height:1.5;color:var(--muted)}
  .bot-toolbar>button{min-width:44px;min-height:44px;padding:8px;font-size:12px;flex:none}
  .bot-home-tabs{min-width:0;gap:2px}
  .bot-home-tabs button{min-width:56px;min-height:44px;padding:8px 13px;font-size:13px}
  .bot-grid{display:flex;flex-direction:column;gap:0}
  .bot-card{min-height:96px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;overflow:visible;gap:0}
  .bot-card-main{min-height:96px;align-items:center;gap:13px;padding:17px 0;border-radius:0;min-width:0}
  .bot-card-main>.bot-avatar{width:54px;height:54px;border-radius:18px}
  .bot-card-info strong,.bot-card-info h2{font-size:16px;line-height:1.5;margin:0;letter-spacing:-.2px}
  .bot-card-info>.bot-description,.bot-card-info>p{font-size:13px;line-height:1.55;margin-top:3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
  .bot-card-info small{font-size:11px;line-height:1.55;margin-top:3px;color:#85858F;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
  .bot-card-actions{align-items:center;gap:0;max-width:78px;padding:0 0 0 2px;flex:none}
  .bot-card-actions button{min-width:44px;min-height:44px;font-size:12px;padding:8px;border:0;background:none;border-radius:50%;color:var(--muted)}
  .bot-card-actions .icon{width:20px;height:20px}
  .bot-card-actions .bot-default-label{display:none}
  .bot-card-meta{font-size:10px;gap:5px;max-width:65px;overflow:hidden;white-space:nowrap}
  .bot-create-tile{margin-top:18px;min-height:80px;font-size:13px;border-radius:15px}
  .chat-header,.bot-first-chat-header{min-height:76px;height:76px;padding:9px 8px;gap:3px;border-bottom:1px solid var(--line);background:#FFF}
  .chat-header>.icon-button{width:44px;height:44px;min-width:44px;background:none;border:0;box-shadow:none;color:var(--ink)}
  .chat-header>.icon-button>.icon{width:22px;height:22px}
  .chat-heading{min-width:0;overflow:hidden;flex:1;padding:0 2px;text-align:left}
  .chat-heading>.bot-context-button{width:max-content;max-width:100%;height:44px;min-height:44px;margin:0;padding:0;gap:8px;font-size:16px;line-height:1.5;font-weight:600;text-align:left;background:none;border:0;border-radius:9px}
  .chat-heading>.bot-context-button>.bot-avatar{width:32px;height:32px;flex:none;border-radius:11px}
  .chat-heading>.bot-context-button>span:not(.bot-avatar){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .chat-heading>.bot-context-button>.icon{width:12px;height:12px;flex:none;color:var(--muted)}
  .chat-heading h1{font-size:11px;line-height:1.5;font-weight:400;color:var(--muted);margin:0;max-width:none}
  .chat-heading p{justify-content:flex-start;font-size:11px;line-height:1.5;margin:0;color:var(--muted)}
  .header-actions{gap:0;flex:none}
  .header-actions>.icon-button{width:44px;height:44px;min-width:44px;color:var(--muted)}
  .header-actions>.icon-button .icon{width:20px;height:20px}
  .demo-banner{min-height:35px;padding:0 16px;font-size:10px;background:#F7F7F9;color:var(--muted);gap:7px}
  .demo-banner a{min-height:35px;font-size:10px;color:#45454D}
  .transcript{padding:23px 20px 18px}
  .message{font-size:16px;line-height:1.85}
  .message.user .message-bubble{background:#F2F2F4;color:var(--ink);font-size:15px}
  .assistant-label,.working-message,.thread-date,.demo-message-label{color:var(--muted)}
  .composer-area{padding:7px 13px calc(12px + env(safe-area-inset-bottom));background:#FFF}
  .composer{border-radius:25px;border-color:#ECECEF;background:#F7F7F9;padding:11px 12px 7px;box-shadow:none}
  .composer:focus-within{border-color:#C9C9D1;box-shadow:none}
  .composer textarea{font-size:16px;line-height:1.6;min-height:32px;max-height:132px}
  .composer textarea::placeholder{color:#85858F}
  .composer-bottom{min-height:44px;gap:5px;margin-top:3px}
  .composer-bottom>span{font-size:11px;color:#85858F}
  .attachment-add{width:44px;height:44px;background:#FFF;border-color:var(--line);color:#45454D}
  .mention-add{min-width:44px;min-height:44px;color:#45454D;font-size:22px}
  .send-button{width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border-radius:50%;color:#FFF;background:var(--ink)}
  .send-button .icon{width:21px;height:21px}
  .send-label{display:none}
  .send-button:disabled{background:#E3E3E8;color:#85858F}
  .composer-mentions{padding:5px 10px 0}
  .composer-mentions button{min-height:36px;font-size:12px}
  .composer-attachments{padding-bottom:8px}
  .attachment-chip{background:#F1F1F4;border-color:var(--stone)}
  .message-attachment{background:#F1F1F4;border-color:var(--stone)}
  .drawer-open .pane-backdrop{display:block!important;background:#18181B40}
  .workspace.drawer-open>.sidebar{background:#FFF;border-radius:0 20px 20px 0;box-shadow:14px 0 45px #18181B20}
  .drawer-open .drawer-heading{min-height:83px;border-color:var(--line)}
  .drawer-open .new-chat{border-radius:12px;background:var(--ink);color:#FFF;box-shadow:none}
  .drawer-open .sidebar-bottom{background:#FFF;border-color:var(--line)}
  .search-field{background:#F4F4F6;color:var(--muted);border-radius:15px}
  .search-field input::placeholder,.search-field .icon{color:#85858F}
  .session-list{padding-bottom:calc(24px + env(safe-area-inset-bottom));scroll-padding-bottom:24px}
  .drawer-open .session-list{padding-bottom:16px}
  .session-row.selected{background:#F1F1F4}
  .session-filters button[aria-pressed="true"]{background:#F1F1F4}
  .quick-switch{background:#FFF}
  .quick-switch button{background:#FFF;border-color:var(--line)}
  .quick-switch button[aria-current="page"],.quick-switch button.active{background:#F1F1F4;border-color:var(--stone)}
  .inspector-topbar{min-height:76px;padding:12px 16px}
  .inspector-topbar .icon-button{background:none;border:0;box-shadow:none;color:var(--ink)}
  .mobile-detail-context{color:var(--muted)}
  .inspector-body{padding:0 18px calc(25px + env(safe-area-inset-bottom));scroll-padding-bottom:25px}
  .inspector-tabs{display:flex;min-height:44px;margin:0 18px 18px;background:#F1F1F4;border-color:var(--line);border-radius:12px}
  .inspector-tabs button{min-height:44px;font-size:13px;color:var(--muted)}
  .inspector-tabs button.active{color:var(--ink);background:#FFF}
  .activity-card,.artifact-card{background:#FFF;border-color:var(--line)}
  .activity-icon,.artifact-icon{background:#F1F1F4;color:#45454D;border-color:var(--line)}
  .native-header{min-height:76px;padding:10px 12px;border-color:var(--line)}
  .native-header h1{font-size:18px}
  .native-header p{color:var(--muted)}
  .native-body{padding:17px 18px calc(25px + env(safe-area-inset-bottom));scroll-padding-bottom:25px}
  .native-card{background:#FFF;border-color:var(--line)}
  .group-composer,.keyboard-open .group-composer{padding:10px 13px calc(12px + env(safe-area-inset-bottom));gap:8px;background:#FFF}
  .group-composer textarea{font-size:16px;border-radius:20px;background:#F7F7F9;border-color:var(--line);min-height:50px}
  .group-composer .primary-button{min-width:65px;border-radius:22px}
  .group-composer small{font-size:10px;color:#85858F}
  .group-runtime{font-size:12px;min-height:48px;padding:7px 18px}
  .group-thread{padding-bottom:18px}
  .native-form input:not([type=checkbox]),.native-form textarea,.native-form select,.bot-form input:not([type="checkbox"]):not([type="radio"]),.bot-form textarea,.bot-form select{font-size:16px;background:#F7F7F9;border-color:var(--line)}
  .modal-card{max-height:calc(var(--app-height,100dvh) - 36px);padding:20px;background:#FFF;border-color:var(--line);border-radius:20px;overflow:auto}
  .modal-card .bot-form{max-height:calc(var(--app-height,100dvh) - 155px)}
  .mobile-action-sheet{padding:11px 16px calc(16px + env(safe-area-inset-bottom));border-radius:22px 22px 0 0;max-height:calc(var(--app-height,100dvh) - 28px);overflow-y:auto}
  .mobile-action-sheet>button:hover{background:#F1F1F4}
  .mobile-action-sheet>.sheet-cancel{background:#F1F1F4}
  .primary-button{background:var(--ink);color:#FFF;border-color:var(--ink)}
  .secondary-button{background:#FFF;border-color:var(--stone);color:var(--ink)}
  .account-card{background:#FFF;border-color:var(--line)}
  .account-logout{background:#F4F4F6;border-color:var(--line)}
  .account-header .icon-button{background:none;box-shadow:none;color:var(--ink)}
  .account-header h1{font-size:18px}
  .toast{bottom:calc(22px + env(safe-area-inset-bottom));font-size:13px;line-height:1.7;max-width:calc(100vw - 32px);border-radius:16px}
  .welcome h1{font-weight:600}
  .suggestions button{background:#F5F5F7;color:#45454D;border:1px solid var(--line)}
  .login-page{background:#FFF}
  .login-brand .brand-mark{border-radius:12px}
  .password-input{background:#F7F7F9;border-color:var(--line)}
}
@media(max-width:759px) and (max-height:600px){
  .bots-header{min-height:75px;padding-top:10px;padding-bottom:9px}
  .bots-body{padding-bottom:calc(18px + env(safe-area-inset-bottom))}
  .chat-header,.bot-first-chat-header{min-height:65px;height:65px;padding-top:5px;padding-bottom:5px}
  .chat-heading h1,.chat-heading p{font-size:10px}
  .demo-banner,.demo-banner a{min-height:30px}
  .native-header,.inspector-topbar{min-height:65px}
  .composer{padding-top:8px}
  .composer textarea{max-height:78px;min-height:28px}
  .composer-area{padding-top:5px;padding-bottom:max(7px,env(safe-area-inset-bottom))}
  .group-composer,.keyboard-open .group-composer{padding-top:7px;padding-bottom:max(7px,env(safe-area-inset-bottom))}
  .group-composer textarea{max-height:78px;min-height:44px}
  .group-composer small{display:none}
}
@media(max-width:374px){
  .bots-header,.bots-body{padding-left:16px;padding-right:16px}
  .home-title h1{font-size:25px}
  .bot-home-tabs button{min-width:50px;padding-left:11px;padding-right:11px}
  .bot-card-main{gap:11px}
  .bot-card-main>.bot-avatar{width:48px;height:48px;border-radius:16px}
}
@media(max-width:759px){
  .workspace.mobile-page-bot-profile{display:flex;flex-direction:column}
  .workspace.mobile-page-bot-profile>.bot-profile-pane{display:flex;min-width:0;min-height:0;width:100%;flex:1}
  .profile-header{min-height:76px;padding:10px 12px;gap:8px;background:#FFF}
  .profile-header>.icon-button{width:44px;height:44px;min-width:44px}
  .profile-header h1{font-size:17px}
  .profile-body{padding:24px 20px calc(25px + env(safe-area-inset-bottom));scroll-padding:24px;max-width:none}
  .bot-profile-hero{padding:2px 10px 20px}
  .bot-profile-hero>.bot-avatar{width:92px;height:92px;border-radius:31px;margin-bottom:15px}
  .bot-profile-hero h1,.bot-profile-hero h2{font-size:26px;line-height:1.4;letter-spacing:-.7px}
  .bot-profile-hero p{font-size:13px;line-height:1.8;max-width:300px;margin-top:8px}
  .bot-profile-hero small{font-size:11px;line-height:1.7}
  .profile-actions{gap:8px;margin-bottom:24px}
  .profile-actions button{min-height:46px;min-width:145px;font-size:14px;padding:11px 20px}
  .profile-menu{border-radius:17px;margin-bottom:14px}
  .profile-menu-item{min-height:76px;padding:13px 15px;gap:12px}
  .profile-menu-item strong{font-size:14px}
  .profile-menu-item small{font-size:12px;line-height:1.65}
  .profile-menu-label{font-size:11px;margin:20px 3px 9px}
  .profile-note{font-size:11px;margin-top:18px}
}
@media(max-width:759px) and (max-height:600px){
  .profile-header{min-height:65px;padding-top:5px;padding-bottom:5px}
  .profile-body{padding-top:18px}
}
@media(max-width:759px){
  .home-demo-note{font-size:10px;line-height:1.7;margin:0 0 12px}
  .bot-home-toolbar{gap:8px;min-height:44px;margin-bottom:7px}
  .group-avatars{width:54px;height:54px;border-radius:18px}
  .group-avatars>.bot-avatar{width:32px;height:32px;border-radius:11px}
  .group-avatars>.bot-avatar:nth-child(3){left:11px}
  .home-group-label{font-size:10px;margin-left:6px}
  .home-empty{padding:35px 12px}
  .home-empty h2{font-size:20px}
  .home-empty p{font-size:13px}
  .profile-header>.icon-button:first-child .icon{transform:none}
  .chat-heading>.bot-context-button strong{font-size:15px;line-height:1.5}
  .chat-heading>.bot-context-button small{font-size:10px;line-height:1.5;margin-top:1px}
  .home-create-sheet{border-radius:22px 22px 0 0;max-width:none;align-self:flex-end}
  .modal-backdrop:has(.home-create-sheet){align-items:flex-end;padding:0}
}
@media(max-width:759px){.demo-group-note{padding:13px 18px calc(15px + env(safe-area-inset-bottom));font-size:14px;line-height:1.8}}

/* Two small home tabs leave Bot chats and the keyboard unobstructed. */
@media(max-width:759px){
  .workspace.mobile-page-bots>.home-navigation,.workspace.mobile-page-ideas>.home-navigation{display:flex;position:absolute;z-index:35;left:50%;bottom:calc(13px + env(safe-area-inset-bottom));transform:translateX(-50%);align-items:center;justify-content:center;gap:5px;width:min(270px,calc(100% - 48px));min-height:66px;padding:6px;border:1px solid #E8E8EC;background:#FFFFFFF2;border-radius:36px;box-shadow:0 6px 26px #18181B0D;backdrop-filter:blur(15px)}
  .workspace>.home-navigation button{display:flex;flex-direction:row;align-items:center;justify-content:center;gap:9px;flex:1;min-height:52px;min-width:0;padding:9px 17px;font-size:14px;line-height:1.5;color:#85858F;border-radius:28px}
  .workspace>.home-navigation button[aria-current="page"]{background:#F0EDF5;color:#5F477A;font-weight:550}
  .home-navigation .icon{width:21px;height:21px}
  .workspace.mobile-page-bots .bots-body{padding-bottom:calc(110px + env(safe-area-inset-bottom));scroll-padding-bottom:110px}
  .workspace.mobile-page-ideas{display:flex;flex-direction:column}
  .workspace.mobile-page-ideas>.ideas-pane{display:flex;flex:1;width:100%;min-width:0;min-height:0}
  .ideas-header{min-height:86px;padding:15px 20px 14px;border:0}
  .ideas-header h1{font-size:27px;letter-spacing:-.8px}
  .ideas-header p{font-size:12px;line-height:1.5;margin-top:4px}
  .ideas-header>.icon-button{width:44px;height:44px}
  .ideas-body{max-width:none;padding:6px 20px calc(110px + env(safe-area-inset-bottom));scroll-padding-bottom:110px}
  .ideas-intro{padding:18px 15px 17px 18px;gap:6px;border-radius:21px;margin-bottom:17px;align-items:center}
  .ideas-intro>div>span{font-size:10px}
  .ideas-intro h2{font-size:20px;line-height:1.5;letter-spacing:-.5px;max-width:220px;margin:7px 0}
  .ideas-intro p{font-size:12px;line-height:1.8;max-width:210px}
  .ideas-intro>img{width:73px;height:86px;margin-right:-5px;object-fit:contain}
  .ideas-search{min-height:47px;padding:0 14px;margin-bottom:11px}
  .ideas-search input{font-size:16px;min-height:44px}
  .idea-categories{gap:4px;margin-bottom:14px;flex-wrap:nowrap;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:none;max-width:100%;min-height:44px}
  .idea-categories::-webkit-scrollbar{display:none}
  .idea-categories button{flex:none;min-width:44px;min-height:44px;padding:9px 12px;font-size:12px;white-space:nowrap}
  .ideas-section-heading{min-height:44px;margin-bottom:9px;gap:7px}
  .ideas-section-heading h2{font-size:16px}
  .ideas-section-heading>button{font-size:12px;min-width:79px;padding:7px}
  .idea-cards{grid-template-columns:minmax(0,1fr);gap:12px}
  .idea-card{padding:18px 16px;gap:13px;min-height:156px;border-radius:18px}
  .idea-card-symbol{width:43px;height:43px;border-radius:14px;font-size:24px}
  .idea-card strong{font-size:15px;line-height:1.65}
  .idea-card-category{font-size:10px;line-height:1.5;margin-bottom:4px}
  .idea-card-description{font-size:12px;line-height:1.8;margin:7px 0 11px}
  .idea-card-cta{font-size:12px}
  .ideas-footnote{font-size:10px;line-height:1.8;margin-top:20px;padding:0 5px}
  .idea-editor{width:100%;max-width:none;max-height:calc(var(--app-height,100dvh) - 28px);padding:20px 19px 17px;border-radius:22px;overflow:hidden}
  .idea-backdrop{padding:14px}
  .idea-editor .modal-heading h2{font-size:18px;line-height:1.6;margin-top:5px}
  .idea-editor .modal-heading>.icon-button{margin-right:-8px}
  .idea-modal-category{font-size:10px}
  .idea-editor-intro{font-size:12px;line-height:1.8;margin-bottom:14px}
  .idea-editor-fields>label{font-size:13px;margin:15px 0 7px}
  .idea-editor-fields>label>span{font-size:10px}
  .idea-editor-fields>textarea,.idea-editor-fields>select{font-size:16px;line-height:1.75;padding:11px 12px;border-radius:12px}
  .idea-editor-fields>#idea-goal{min-height:88px}
  .idea-editor-fields>#idea-prompt{min-height:190px;max-height:320px}
  .idea-customize{font-size:12px;min-height:44px;margin:9px 0 0}
  .idea-editor-note{font-size:10px;margin-top:13px}
  .idea-editor-actions{gap:8px;padding-top:13px;margin-top:10px}
  .idea-editor-actions>button{font-size:14px;min-height:46px;min-width:90px;padding:10px 15px}
  .idea-conflict{padding:22px 20px}
  .idea-conflict h2{font-size:19px}
  .idea-conflict>p{font-size:13px}
  .keyboard-open .workspace>.home-navigation{display:none}
  .keyboard-open .workspace .ideas-body,.keyboard-open .workspace.mobile-page-bots .bots-body{padding-bottom:25px;scroll-padding-bottom:25px}
}
@media(max-width:759px) and (max-height:600px){
  .ideas-header{min-height:74px;padding-top:10px;padding-bottom:9px}
  .ideas-intro{padding-top:13px;padding-bottom:13px}
  .idea-editor{max-height:calc(var(--app-height,100dvh) - 20px);padding-top:14px;padding-bottom:12px}
  .idea-backdrop{padding:10px}
  .idea-editor .modal-heading{margin-bottom:6px}
  .idea-editor-intro{font-size:11px;line-height:1.65;margin-bottom:10px}
  .idea-editor-actions{padding-top:9px;margin-top:7px}
}

/* Immediate local feedback; no JS handlers or animation on scroll containers. */
button,a,summary{touch-action:manipulation}
button:not(:disabled),a,summary{transition:filter 120ms ease,box-shadow 120ms ease}
button:not(:disabled):active,a:active,summary:active{filter:brightness(.89);background-image:linear-gradient(#18181B12,#18181B12);box-shadow:inset 0 0 0 1px #18181B10;transition-duration:0s}
:is(.icon-button,.send-button,.attachment-add,.mention-add,.home-navigation button):not(:disabled){transition:transform 120ms ease,filter 120ms ease,box-shadow 120ms ease}
:is(.icon-button,.send-button,.attachment-add,.mention-add,.home-navigation button):not(:disabled):active{transform:scale(.94);transition-duration:0s}
button[aria-busy="true"]{cursor:progress}
.bot-card-main[aria-busy="true"]{background:#F1F1F4}
.bot-opening-label{font-size:11px;color:#68686F;white-space:nowrap}
.send-button[aria-busy="true"] .spinner{width:18px;height:18px;border-color:#FFFFFF50;border-top-color:#FFF}
@media(prefers-reduced-motion:reduce){
 button,a,summary{transition:none!important}
 :is(.icon-button,.send-button,.attachment-add,.mention-add,.home-navigation button):active{transform:none!important}
}

/* Device desktop stays independent from Bot rendering and preserves its canvas. */
.desktop-pane{display:none;min-width:0;min-height:0;background:#fff}
.workspace.mobile-page-desktop>.desktop-pane{display:flex;flex:1;flex-direction:column;height:100%;padding-bottom:90px}
.desktop-pane iframe{border:0;width:100%;height:100%;min-height:0;flex:1;background:#fff}
.workspace.mobile-page-desktop>.main-pane,.workspace.mobile-page-desktop>.bots-pane,.workspace.mobile-page-desktop>.ideas-pane{display:none!important}
.workspace.mobile-page-desktop>.home-navigation{display:flex;position:absolute;z-index:35;left:50%;bottom:calc(13px + env(safe-area-inset-bottom));transform:translateX(-50%);width:min(350px,calc(100% - 32px));padding:6px;background:#fffffff2;border:1px solid #e8e8ec;border-radius:36px;box-shadow:0 6px 26px #18181b0d}
.workspace>.home-navigation{width:min(350px,calc(100% - 32px))!important}
@media(min-width:760px){.workspace.mobile-page-desktop>.desktop-pane{grid-column:2/-1}.workspace.mobile-page-desktop>.home-navigation{left:calc(50% + 110px)}}
