/* Thors Lab mobile skin, separate from the Hermes distribution. */
html,body { color-scheme: dark; background:#050505!important; }
html:root {
 --theme-primary:#4070f5!important; --theme-midground:#f5f5f5!important;
 --dt-primary:#4070f5!important; --dt-primary-solid:#4070f5!important;
 --dt-primary-foreground:#fff!important; --dt-primary-solid-foreground:#fff!important;
 --foreground:#f4f4f4!important; --dt-foreground:#f4f4f4!important;
 --dt-background:#050505!important; --dt-card:#1c1c1c!important;
 --dt-popover:#242424!important; --dt-popover-foreground:#f4f4f4!important;
 --ui-base:#f5f5f5!important; --ui-accent:#4070f5!important; --ui-accent-secondary:#4070f5!important;
 --ui-text-primary:#f4f4f4!important; --ui-text-secondary:#c2c2c2!important;
 --ui-text-tertiary:#949494!important; --ui-text-quaternary:#737373!important;
 --ui-bg-sidebar:#050505!important; --ui-bg-chrome:#050505!important;
 --ui-sidebar-surface-background:#050505!important; --ui-editor-surface-background:#050505!important;
 --ui-control-hover-background:#252525!important; --ui-control-active-background:#292929!important;
 --ui-stroke-primary:#3b3b3b!important; --ui-stroke-secondary:#353535!important;
 --ui-stroke-tertiary:#2a2a2a!important; --ui-stroke-quaternary:#202020!important;
 --composer-fill:#1c1c1c!important; --sidebar:#050505!important; --sidebar-foreground:#f4f4f4!important;
 --sidebar-accent:#292929!important; --sidebar-accent-foreground:#f4f4f4!important;
 --sidebar-border:#2a2a2a!important;
 font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif!important;
}
html body,html button,html input,html textarea {font-family:-apple-system,BlinkMacSystemFont,"SF Pro Text",system-ui,sans-serif;}
@media (max-width: 700px) {
 html[data-hermes-desktop-host=browser] {
  --conversation-text-base-size:16px!important;
  --composer-control-size:40px!important; --composer-control-primary-size:40px!important;
  --composer-control-gap:6px!important; --composer-row-gap:7px!important;
  --composer-surface-pad-x:12px!important; --composer-surface-pad-y:10px!important;
  --composer-shell-pad-block-end:max(10px,env(safe-area-inset-bottom))!important;
 }
 html[data-hermes-desktop-host=browser] body {padding-top:env(safe-area-inset-top);padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);}
 [data-slot="aui_thread-content"] {padding-inline:18px!important;--conversation-text-base-size:16px!important;}
 [data-slot="aui_assistant-message-content"] {font-size:16px!important;line-height:1.65!important;}
 [data-slot="aui_user-message-root"] {--conversation-text-base-size:16px!important;}
 [data-slot="composer-dock"]:not([data-popped-out]) {width:calc(100% - 18px)!important;}
 [data-slot="composer-root"] {border-radius:29px!important;}
 [data-slot="composer-surface"] {background:#1c1c1c!important;border:1px solid #353535!important;border-radius:27px!important;box-shadow:inset 0 1px 1px #ffffff0a!important;}
 [data-slot="composer-rich-input"] {font-size:16px!important;line-height:1.45!important;}
 [data-slot="composer-fade"] {opacity:1!important;}
 [data-tour="model-pill"] {color:#ddd!important;font-size:12px!important;font-weight:500!important;}
 [data-tour="model-pill"] svg.lucide-chevron-down {display:none!important;}
 [data-titlebar-cluster] button {border-radius:24px!important;}
 [data-titlebar-cluster] button svg {width:20px!important;height:20px!important;}
 [data-titlebar-cluster="left"] button:first-child {background:#1c1c1c!important;border:1px solid #353535!important;}
 [data-narrow-overlay] {width:79vw!important;max-width:360px!important;background:#050505!important;border-color:#2c2c2c!important;}
 [data-narrow-overlay-backdrop] {background:#0006;}
 [data-pane-overlay] [data-tour="sessions-sidebar"],[data-tour="sessions-sidebar"] {background:#050505!important;}
 [data-tour="sessions-sidebar"] [data-slot="sidebar-content"] {padding-inline:12px!important;}
 [data-tour="sessions-sidebar"] [data-sessions-mode] .hover-marquee {font-size:15px!important;letter-spacing:-.25px;}
 [data-tour="sessions-sidebar"] [data-session-actions] {color:#949494!important;opacity:1!important;width:32px!important;height:38px!important;}
 [data-tour="sessions-sidebar"] button[aria-expanded] {min-height:34px;}
 [data-tour="sessions-sidebar"] [data-working] {border-radius:13px!important;}
 [data-narrow-overlay] [role="tablist"] {border:1px solid #353535!important;border-radius:26px!important;background:#202020!important;margin:6px 12px!important;padding:3px!important;height:46px!important;}
 [data-narrow-overlay] [role="tab"] {flex:1!important;border:0!important;border-radius:23px!important;box-shadow:none!important;text-transform:none!important;justify-content:center!important;max-width:none!important;font-size:15px!important;}
 [data-narrow-overlay] [role="tab"][aria-selected=true] {background:#050505!important;color:white!important;}
 [data-slot="aui_msg-actions"] {opacity:1!important;pointer-events:auto!important;justify-content:flex-start!important;}
 [data-slot="aui_msg-actions"] .aui-message-actions-desktop {display:flex!important;gap:6px!important;justify-content:flex-start!important;}
 [data-slot="aui_msg-actions"] .aui-message-actions-touch {display:none!important;}
 [data-slot="aui_msg-actions"] button {min-width:36px!important;min-height:40px!important;}
 [role="menu"],[data-slot="dropdown-menu-content"],[data-slot="popover-content"] {background:#202020!important;color:#f4f4f4!important;border:1px solid #393939!important;border-radius:23px!important;padding:8px!important;}
 [role="menuitem"],[role="menuitemcheckbox"],[role="menuitemradio"] {min-height:42px!important;border-radius:12px!important;font-size:14px!important;}
 [role="dialog"] {border-radius:27px!important;}
}

/* V3: structural phone shell, scoped to this mobile origin. */
html[data-thors-mobile] {zoom:1!important;overflow:hidden!important;}
html[data-thors-mobile] body {width:100%!important;max-width:100%!important;overflow:hidden!important;}
html[data-thors-mobile] [data-contrib-shell] {width:100%!important;max-width:100%!important;overflow:hidden!important;background:#050505!important;}
html[data-thors-mobile] [data-tree-split] {min-width:0!important;}
html[data-thors-mobile] [data-tree-split] > div:has(> [data-thors-zone="tool"]) {display:none!important;}
html[data-thors-mobile] [data-tree-split] > div:has(> [data-thors-zone="chat"]) {flex:1 1 100%!important;min-width:0!important;max-width:none!important;}
html[data-thors-mobile] [data-thors-zone="chat"] {background:#050505!important;min-width:0!important;}
html[data-thors-mobile] [data-pane-host="computer-viewer:pane"] {display:none!important;}
html[data-thors-mobile] [data-narrow-overlay] {width:min(79vw,360px)!important;max-width:none!important;background:#050505!important;padding-bottom:env(safe-area-inset-bottom)!important;}
html[data-thors-mobile] [data-narrow-overlay-backdrop] {background:#0007!important;}
html[data-thors-mobile] [data-narrow-overlay-tab][data-thors-tab] {position:relative;color:transparent!important;min-height:42px;}
html[data-thors-mobile] [data-narrow-overlay-tab][data-thors-tab] > * {visibility:hidden;}
html[data-thors-mobile] [data-narrow-overlay-tab][data-thors-tab]::after {content:attr(data-thors-tab);position:absolute;inset:0;display:grid;place-items:center;color:#eee;font:500 15px -apple-system,BlinkMacSystemFont,system-ui,sans-serif;}
html[data-thors-mobile] [data-tour="sessions-sidebar"] button:has([data-tour^="sidebar-nav-"]):not(:has([data-tour="sidebar-nav-new-session"])) {display:none!important;}
html[data-thors-mobile] [data-tour="sessions-sidebar"] [data-session-actions] {color:#aaa!important;opacity:1!important;min-width:34px!important;min-height:38px!important;}
html[data-thors-mobile] [data-tour="sessions-sidebar"] .hover-marquee {font-size:15px!important;}
html[data-thors-mobile] .thors-mobile-footer {display:flex;align-items:center;justify-content:flex-start;flex-shrink:0;padding:12px 20px;gap:14px;background:#050505;color:white;}
html[data-thors-mobile] .thors-new {background:#4070f5;border:0;border-radius:24px;padding:12px 24px;color:#fff;font:600 16px -apple-system,BlinkMacSystemFont,system-ui,sans-serif;min-height:44px;}
html[data-thors-mobile] [data-titlebar-cluster="right"] {gap:3px!important;}
html[data-thors-mobile] [data-slot="composer-surface"] {border-radius:28px!important;}
