/* Desktop application shell; each pane owns its scrolling. */
:root{--blue:#7254d8;--blue-dark:#6143bf;--blue-soft:#f0ecfb;--pc-line:#ebeaf0}
body::before{display:none}body,h1,h2,h3,.page-heading h1,.detail-title{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif}
.sidebar{background:#f4f4f8;width:208px;padding:25px 14px 16px;border-right:1px solid var(--pc-line)}:root{--sidebar:208px}.brand-name{font-family:inherit}.nav-item{min-height:40px;padding:9px 12px;font-size:13px}.nav-item.active::before{display:none}.nav-group-label{margin-top:20px}.topbar{height:52px;padding:0 24px;background:#fafafc}.content{padding:24px;max-width:none}.page-heading{padding-left:24px;padding-right:24px}.panel,.config-card,.project-card{box-shadow:none;border-radius:12px}.button{font-weight:500}.native-desktop .sidebar{padding-top:47px}.native-desktop .topbar{-webkit-app-region:drag}.native-desktop .topbar button{-webkit-app-region:no-drag}
#workspace[data-view="remote"] #main-content{padding:0;overflow:hidden;display:flex;min-height:0}#workspace[data-view="remote"] #configuration-notice{display:none}#desktop-workspace{flex:1;min-width:0;min-height:0;height:100%}#desktop-workspace[hidden],#desktop-devices[hidden]{display:none!important}
.pc-layout{display:grid;grid-template-columns:250px minmax(0,1fr) 240px;height:100%;min-height:0;background:white}.pc-tasks{display:flex;flex-direction:column;min-height:0;background:#fafafc;border-right:1px solid var(--pc-line)}.pc-pane-head{display:flex;align-items:center;justify-content:space-between;padding:18px 16px;min-height:66px;gap:8px}.pc-pane-head strong{font-size:13px;white-space:nowrap}.pc-button,.pc-icon,.pc-send{font:inherit;font-size:12px;line-height:1.5;border:1px solid #e2dfea;background:#fff;color:#5a536a;border-radius:7px;padding:8px 11px;cursor:pointer;white-space:nowrap;text-decoration:none;display:inline-block}.pc-button:hover,.pc-icon:hover{color:var(--blue);background:#f9f8fc}.pc-button:disabled,.pc-send:disabled{opacity:.4;cursor:default}.pc-icon{border:0;background:transparent;font-size:18px;padding:7px 10px}.pc-search{margin:0 14px 12px;width:calc(100% - 28px);font:inherit;font-size:12px;padding:9px 11px;border:1px solid #e8e6ef;background:#fff;border-radius:7px;min-height:36px}.pc-task-items{flex:1;min-height:0;overflow:auto;padding:0 8px}.pc-task{width:100%;text-align:left;display:block;border:0;border-radius:8px;background:transparent;padding:13px 12px;cursor:pointer;color:#575365;font:inherit;position:relative;margin-bottom:3px}.pc-task:hover{color:var(--blue)}.pc-task.selected{background:#eeebf7}.pc-task b{display:block;font-size:13px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc-task span{display:block;font-size:11px;margin-top:5px;color:#9891a4}.pc-task i{font-style:normal;padding:0 3px}.pc-state{font-size:10px;color:#98909f;font-weight:400}.pc-state.working{color:var(--blue)}.pc-empty-list{padding:30px 14px;color:#aaa3b4;font-size:12px;line-height:2}.pc-manage{margin:12px;border:0;border-top:1px solid var(--pc-line);padding:14px 4px 0;text-align:left;background:transparent;color:#7c748a;font:inherit;font-size:12px;cursor:pointer}
.pc-conversation{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}.pc-conversation-head{display:flex;align-items:center;padding:15px 28px;border-bottom:1px solid var(--pc-line);gap:12px;min-height:73px}.pc-heading{flex:1;min-width:0}.pc-heading h1{font-size:14px;line-height:1.5;margin:0;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.pc-heading span{font-size:11px;color:#9c94a8}.pc-connection{font-size:12px;padding:8px 20px;background:#fff8eb;color:#956d31}.pc-messages{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding:24px 34px;scroll-behavior:auto}.pc-welcome{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;max-width:540px;margin:0 auto;min-height:100%;padding:40px 0}.pc-welcome h2{font-size:27px;letter-spacing:-.7px;margin:0 0 10px;font-weight:600}.pc-welcome p{font-size:13px;color:#9991a6;line-height:1.9;margin:0 0 25px}.pc-examples{display:flex;gap:10px;margin-bottom:20px;width:100%}.pc-examples button{font:inherit;font-size:12px;color:#7d738d;display:flex;justify-content:space-between;gap:20px;flex:1;border:1px solid var(--pc-line);border-radius:9px;background:white;padding:13px 15px;text-align:left;cursor:pointer}.pc-turn{max-width:760px;margin:0 auto 32px}.pc-user{margin-bottom:25px}.pc-user small{display:block;color:#a7a0b0;font-size:11px;margin-bottom:5px}.pc-user p{margin:0;font-size:14px;line-height:1.9;white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f5fb;padding:14px 17px;border-radius:10px}.pc-author{display:flex;align-items:center;gap:9px;margin-bottom:14px;font-size:13px}.pc-author .pc-state{margin-left:auto}.pc-assistant .markdown-body{font-size:14px;line-height:1.9;color:#494252;overflow-wrap:anywhere}.pc-assistant .markdown-body h1,.pc-assistant .markdown-body h2{font-size:17px}.pc-assistant .markdown-body pre{max-width:100%;overflow:auto;font-size:12px;background:#f6f5f8;padding:15px;border-radius:8px}.pc-assistant .markdown-body img{max-width:100%}.pc-assistant .markdown-body table{display:block;max-width:100%;overflow:auto}.pc-thinking{color:#9990aa;font-size:13px}.pc-activity{font-size:11px;color:#91869f;margin:10px 0 17px}.pc-activity summary{cursor:pointer}.pc-activity div{padding:4px 10px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:80px;overflow:auto}.pc-turn-error,.pc-send-error{font-size:12px;line-height:1.7;color:#b0695c;overflow-wrap:anywhere}.pc-composer{flex-shrink:0;margin:0 25px;border:1px solid #e3dfed;border-radius:12px;padding:12px 15px;background:#fff;box-shadow:0 3px 16px #31205005}.pc-targets{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:9px}.pc-targets label{display:flex;align-items:center;gap:5px;min-width:0;flex:1}.pc-targets label>span{font-size:10px;color:#a49aad;white-space:nowrap}.pc-targets select{width:100%;min-width:0;max-width:220px;padding:4px 20px 4px 4px;border:0;background-color:#f8f7fb;font-size:11px;color:#77668d;border-radius:5px}.pc-targets select:disabled{opacity:.8}.pc-composer textarea{border:0!important;box-shadow:none!important;resize:none;width:100%;max-height:170px;min-height:70px;padding:4px 0;background:transparent!important;font:inherit;font-size:13px;line-height:1.8;color:#41394d}.pc-composer textarea::placeholder{color:#b1a8bd}.pc-compose-foot{display:flex;justify-content:space-between;align-items:center;gap:12px}.pc-compose-foot>div{display:flex;gap:8px}.pc-send{background:var(--blue);border-color:var(--blue);color:white;font-size:12px;padding:8px 13px}.pc-send-hint{font-size:10px;color:#afa6b9}.pc-footer{font-size:10px;color:#b3aabd;text-align:center;padding:9px}.pc-approval{margin:10px 25px;background:#fbf7ef;border:1px solid #efe3cd;border-radius:10px;padding:12px 15px;font-size:12px;color:#86643a;max-height:220px;overflow:auto}.pc-approval strong{font-weight:500}.pc-approval pre{white-space:pre-wrap;overflow-wrap:anywhere;font:11px/1.7 ui-monospace,monospace;max-height:95px;overflow:auto}.pc-approval button+button{margin-left:8px}.pc-details{border-left:1px solid var(--pc-line);min-width:0;background:#fdfcfe;overflow:auto}.pc-details-body{padding:0 20px;font-size:12px;line-height:1.8;color:#a197ad}.pc-details-body strong{font-size:12px;font-weight:500;color:#675975}.pc-detail-label{font-size:10px;letter-spacing:1px;margin:24px 0 9px;color:#b2a8bd}.pc-details-body hr{border:0;border-top:1px solid var(--pc-line);margin:25px 0}.pc-path{font:11px/1.9 ui-monospace,monospace;overflow-wrap:anywhere}.pc-online{display:inline-block;width:6px;height:6px;border-radius:50%;background:#b9b3c0;margin-right:6px}.pc-online.yes{background:#70ae8a}.pc-mobile,.pc-shade{display:none}
#desktop-devices{max-width:1180px;margin:0 auto;padding:12px 0 40px}.pc-device-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:25px;gap:16px}.pc-kicker{font-size:10px;color:#b0a2c5;letter-spacing:2px}.pc-device-heading h1{font-size:27px;margin:5px 0}.pc-device-heading p{font-size:13px;color:#a298ae;margin:4px 0}.pc-device-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}.pc-device-card{background:#fff;border:1px solid var(--pc-line);border-radius:13px;padding:25px;min-width:0;font-size:13px;line-height:1.9;color:#8d819c}.pc-device-card h2{font-size:16px;margin:0 0 17px;color:#665574;font-weight:500}.pc-device-card h2 small{font-size:11px;font-weight:400;color:#b1a5bd;margin-left:10px}.pc-device-card .pc-button{margin:8px 7px 0 0}.pc-device-card ol{padding-left:18px;line-height:2.2}.pc-device-empty{padding:35px 0;color:#aba0b7;text-align:center}.pc-device-empty small,.pc-caption{font-size:11px;color:#afa4bc}.pc-device{padding:15px 0;border-bottom:1px solid var(--pc-line)}.pc-device:first-of-type{padding-top:0}.pc-device b{font-size:13px;font-weight:500;color:#73617f}.pc-device>div>span:last-child{float:right;font-size:11px}.pc-device p{font-size:11px;margin:6px 0}.pc-phone-guide{grid-column:1/-1}.pc-share-url{background:#f8f6fb;font:12px/1.9 ui-monospace,monospace;overflow-wrap:anywhere;border-radius:7px;padding:10px 13px}.pc-code{padding:15px 0}.pc-code strong{display:block;font:24px/1.7 ui-monospace,monospace;color:var(--blue);letter-spacing:3px}.pc-code small{font-size:11px}.pc-cli-grid{display:flex;gap:8px;margin:18px 0}.pc-cli-grid>div{flex:1;background:#f9f7fc;padding:10px;border-radius:7px;min-width:0}.pc-cli-grid b{font-size:12px}.pc-cli-grid small{display:block;font-size:10px;overflow-wrap:anywhere}.pc-space{display:grid;grid-template-columns:1fr auto;align-items:center;border-top:1px solid var(--pc-line);padding:12px 0}.pc-space small{grid-column:1;overflow-wrap:anywhere;font-size:10px}.pc-space button{grid-column:2;grid-row:1/3}.pc-inline-pair{border-top:1px solid var(--pc-line);margin-top:20px;padding-top:15px}.pc-inline-pair label{font-size:11px}.pc-inline-pair input{display:block;width:100%;padding:8px 10px;border:1px solid var(--pc-line);border-radius:6px;margin-top:8px}
@media(min-width:761px) and (max-width:1250px){.pc-layout{grid-template-columns:220px minmax(0,1fr)}.pc-details{display:none}.show-details .pc-details{display:block;position:absolute;right:0;top:52px;bottom:0;width:260px;z-index:20;box-shadow:-10px 0 25px #32204308}.pc-messages{padding:22px}.sidebar{width:190px}:root{--sidebar:190px}}
@media(max-width:760px){
 :root{--sidebar:0px}.sidebar{display:none}.topbar{height:52px;padding:0 16px;padding-top:env(safe-area-inset-top);min-height:calc(52px + env(safe-area-inset-top))}.content{padding:16px}.app{min-height:0}.pc-layout{display:block;position:relative}.pc-conversation{height:100%}.pc-tasks{position:absolute;z-index:41;width:min(310px,86%);top:0;bottom:0;left:0;transform:translateX(-105%);visibility:hidden;transition:transform .18s}.show-list .pc-tasks{transform:translateX(0);visibility:visible}.show-list .pc-shade{display:block;position:absolute;inset:0;background:#32243b33;z-index:40}.pc-mobile{display:block}.pc-conversation-head{padding:10px 12px;gap:6px;min-height:61px}.pc-heading h1{font-size:13px}.pc-heading span{font-size:10px}.pc-messages{padding:20px 17px;scrollbar-gutter:auto}.pc-welcome{padding:20px 6px;min-height:100%}.pc-welcome h2{font-size:23px}.pc-welcome p{font-size:12px;margin-bottom:20px}.pc-examples{flex-direction:column;gap:8px}.pc-examples button{padding:11px 13px}.pc-composer{margin:0 10px;border-radius:11px;padding:10px 12px}.pc-composer textarea{font-size:16px;min-height:64px;line-height:1.65}.pc-targets{gap:7px}.pc-targets label>span{display:none}.pc-targets select{font-size:11px;padding:5px 18px 5px 7px;max-width:none}.pc-send-hint{font-size:9px;max-width:46%;line-height:1.5}.pc-send{padding:9px 12px;min-height:38px}.pc-footer{font-size:9px;padding:6px}.pc-user p,.pc-assistant .markdown-body{font-size:14px}.pc-approval{margin:7px 10px;padding:10px 12px}.pc-details{display:none}.show-details .pc-details{display:block;position:absolute;inset:0 0 0 auto;width:min(300px,90%);z-index:42;box-shadow:-15px 0 30px #32243b22}.pc-turn{margin-bottom:26px}.pc-device-grid{grid-template-columns:1fr;gap:14px}.pc-device-card{padding:20px}.pc-phone-guide{grid-column:auto}.pc-device-heading h1{font-size:23px}.pc-device-heading{margin-bottom:20px}.pc-device-heading .pc-button{padding:8px 10px}.pc-kicker{font-size:9px;letter-spacing:1px}.pc-share-url{font-size:11px}.pc-cli-grid{flex-wrap:wrap}.pc-cli-grid>div{min-width:80px}
 #workspace[data-view="remote"]{height:var(--mate-viewport,100dvh);min-height:0}#workspace[data-view="remote"] .app{height:calc(var(--mate-viewport,100dvh) - 65px - env(safe-area-inset-bottom));min-height:0}#workspace[data-view="remote"] #main-content{flex:1;min-height:0}#workspace[data-view="remote"] .mobile-tabs{height:calc(65px + env(safe-area-inset-bottom));padding-bottom:env(safe-area-inset-bottom)}
}
@media(prefers-reduced-motion:reduce){.pc-tasks{transition:none}}
@media(max-width:760px){.mate-keyboard #workspace[data-view="remote"] .mobile-tabs{display:none}.mate-keyboard #workspace[data-view="remote"] .app{height:var(--mate-viewport,100dvh)}.mate-keyboard .pc-footer{display:none}.mate-keyboard .pc-composer{margin-bottom:7px}}

@media(min-width:1251px){.details-hidden .pc-layout{grid-template-columns:250px minmax(0,1fr)}.details-hidden .pc-details{display:none}}
/* Application chrome and unified preferences. */
.app-titlebar{display:flex;align-items:center;gap:14px;min-width:0;font-size:12px;color:#8d8499}.app-title{font-weight:550;color:#62546f}.app-titlebar b{font-weight:450}.titlebar-divider{width:1px;height:12px;background:#e5e1eb}.native-desktop .topbar{-webkit-app-region:drag;height:52px;min-height:52px;background:#f6f5f9;border-bottom:1px solid #e9e6ee}.native-desktop .topbar button,.native-desktop .topbar a{-webkit-app-region:no-drag}.native-desktop .sidebar{padding-top:56px;background:#f2f1f6;border-right:1px solid #e6e3ed}.native-desktop .sidebar .brand{padding-top:6px;margin-bottom:24px}.native-desktop .page-heading{padding-top:20px;padding-bottom:17px}.native-desktop .pwa-settings-section,.native-desktop .pwa-login-install,.native-desktop [data-pwa-install]{display:none!important}.native-desktop #page-eyebrow{display:none}.native-desktop .environment{font-size:11px}.native-desktop .sidebar .nav-group-label{font-size:10px;letter-spacing:.8px;margin-top:17px;margin-bottom:5px;color:#aaa1b4}.native-desktop .nav-item{border-radius:7px;margin:2px 0}.native-desktop .nav-item.active{background:#e8e4f2;color:#7254d8;box-shadow:none;border-color:transparent}.native-desktop .sidebar-bottom{padding-top:10px}.native-desktop .workspace-label{display:none}.native-desktop .app{background:#fbfafc}.native-desktop .panel{box-shadow:none}.native-desktop .page-heading h1{font-size:23px}.native-desktop .page-heading p{font-size:12px}.native-desktop .stats{gap:14px}.native-desktop .stat{box-shadow:none;padding:19px 21px}.native-desktop .stat-value{font-size:28px}.native-desktop #workspace[data-view="remote"] .app{height:100dvh}.native-desktop .pc-conversation{background:#fff}.native-desktop .pc-tasks{background:#f8f7fb}.native-desktop .pc-details{background:#fbfafc}.native-desktop .pc-heading span{color:#9e93ac}
#settings-shell{display:grid;grid-template-columns:150px minmax(0,1fr);gap:28px;max-width:1190px;margin:0 auto}#settings-shell[hidden]{display:none}#settings-tabs{display:flex;flex-direction:column;gap:4px;align-self:start;position:sticky;top:0}#settings-tabs button{border:0;background:none;text-align:left;border-radius:7px;color:#8f829f;font:inherit;font-size:12px;padding:11px 14px;cursor:pointer}#settings-tabs button[aria-pressed="true"]{background:#efebf7;color:#7254d8}#settings-tabs button:hover{color:#7254d8}.settings-content{min-width:0}#workspace-config .config-layout{display:flex;flex-direction:column;gap:18px}#workspace-config .config-card{padding:25px 28px;border-radius:10px}#workspace-config .config-grid{gap:20px}#workspace-config .config-actions{position:sticky;bottom:-1px;background:#fbfafcf2;padding:15px 0;backdrop-filter:blur(12px);z-index:3;border-top:1px solid #eeeaf3}#workspace-config .config-card .config-actions{position:static;background:none;backdrop-filter:none;z-index:auto}#desktop-devices{padding-top:0;max-width:none}.pc-device-heading .pc-kicker{display:none}.pc-device-heading h1{font-size:20px}.pc-device-heading p{font-size:12px}.pc-device-grid{gap:16px}.pc-device-card{padding:22px;border-radius:10px}.pc-device-heading>button{display:none}.first-use-intro{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:16px;padding:20px 22px;background:#f2edf9;border-radius:10px;margin-bottom:22px}.first-use-intro strong{font-size:14px;color:#746086}.first-use-intro p{font-size:12px;color:#9a86ac;line-height:1.8;margin-top:6px}.first-use-intro .error{flex-basis:100%;color:#b26c66}.phone-login-form{margin-top:24px}.phone-login-form .field{margin-bottom:18px}.phone-login-form>.button{width:100%;justify-content:center;min-height:44px}.phone-login-form:not([hidden])~.login-action{margin-top:16px}#password-settings{margin-top:20px}#password-settings form{margin-top:18px}#password-settings .field{margin-bottom:15px}.connection-state{background:#f6f3fa;border-radius:7px;padding:12px 15px;margin:18px 0;font-size:12px;color:#88759b}.connection-person{display:flex;flex-direction:column;gap:4px;margin-bottom:15px}.connection-person small{font-size:11px;color:#a699b2}.connection-steps{padding-left:20px;font-size:12px;line-height:2.2}.feishu-auth-link{display:block;overflow-wrap:anywhere;font-size:12px}.feishu-auth-qr{display:block;margin:15px 0}.settings-content .config-check{font-size:12px}.pc-first-step{padding:14px 17px;margin:18px 0;background:#f7f4fb;border-radius:9px;font-size:12px;color:#93839f}.pc-first-step a{color:#7254d8}
@media(max-width:1100px) and (min-width:761px){#settings-shell{grid-template-columns:130px minmax(0,1fr);gap:18px}.pc-device-grid{grid-template-columns:1fr}}
@media(max-width:760px){.app-titlebar{display:none}#settings-shell{display:block}#settings-tabs{position:relative;flex-direction:row;overflow-x:auto;gap:4px;margin:-4px -4px 18px;padding-bottom:5px;scrollbar-width:none}#settings-tabs button{flex-shrink:0;white-space:nowrap;padding:9px 11px;font-size:12px}#workspace-config .config-card{padding:21px 18px}.first-use-intro{padding:18px;gap:12px}#workspace-config .config-actions{bottom:-15px;padding:14px 0}.phone-login-form .input{font-size:16px}.pc-device-grid{grid-template-columns:1fr}.app-titlebar+.mobile-brand{display:flex}}
.pc-text-link{border:0;background:none;color:#7254d8;font:inherit;font-size:12px;padding:0 3px;cursor:pointer}.pc-cli-help{display:flex;flex-wrap:wrap;gap:6px 14px;margin:12px 0;font-size:11px}.pc-cli-help a{color:#9e8bae;text-decoration:none}.pc-cli-help a:hover{color:#7254d8}.native-desktop #main-content{border-radius:0}.native-desktop .topbar{flex-shrink:0}.native-desktop .nav-group-label[hidden]{display:none}.phone-login-form .field-hint{font-size:11px}

/* Feishu-first account setup and readable authorization on phone screens. */
.local-feishu-login{margin:18px 0}.local-feishu-login:empty{display:none}.account-app-config{margin:16px 0}.account-app-config .field{margin-top:14px}.account-app-config>p,.account-feishu-settings>p{line-height:1.75}.account-feishu-settings{margin-top:24px;padding-top:20px;border-top:1px solid #eee9f3}.account-authorization{display:grid;gap:12px;margin-top:16px}.account-authorization[hidden]{display:none}.account-authorization p{margin:0;font-size:12px;line-height:1.7}.feishu-auth-link{display:block;overflow-wrap:anywhere;word-break:break-word;font-size:12px;line-height:1.65;max-width:100%}.feishu-auth-qr{display:block;max-width:100%;height:auto;border-radius:8px;margin:6px 0}.local-feishu-login .config-check{font-size:12px;line-height:1.7;align-items:flex-start}.login-main{overflow-y:auto;min-height:0}.login-card{max-width:420px;width:100%}.login-action [aria-disabled=true]{pointer-events:none;opacity:.6}#change-password-form .field{margin-top:14px}#settings-dialog .field-hint{font-size:12px;line-height:1.75}
@media(max-width:760px){.login-main{padding:32px 24px}.login-card{max-width:420px}.local-feishu-login .advanced{padding:14px}.account-authorization .button{white-space:normal;height:auto;min-height:42px}#settings-dialog{max-height:90dvh}.account-app-config input{min-width:0;width:100%}.login-copy p{max-width:100%}}
.login{height:100dvh;min-height:0;overflow:hidden}.login-main{min-height:0;min-width:0;max-height:100dvh;overflow-y:auto;flex-direction:column;justify-content:safe center;align-items:center;gap:28px;padding:48px 36px}.login-support{position:static;margin:0;flex-shrink:0;max-width:420px;text-align:center;line-height:1.7}.login-card{flex-shrink:0}.login-visual{height:100dvh;min-height:0}
@media(max-width:760px){.login-main{min-height:0;padding:32px 24px;justify-content:safe center}.login-support{font-size:11px}.login-note{margin-bottom:0}}

/* Settings and operation pages stay in the main workspace, with no overlay. */
#page-surfaces[hidden],.app-surface[hidden],.account-page[hidden]{display:none!important}
#workspace[data-surface] #main-content{display:block;padding:24px;overflow-y:auto;overflow-x:hidden;min-height:0}
#workspace[data-surface] #main-content>:not(#page-surfaces),#workspace[data-surface] #page-heading{display:none!important}
#page-surfaces{width:100%;min-width:0;max-width:1120px;margin:0 auto}
dialog.app-surface{position:static;inset:auto;width:100%;max-width:none;height:auto;max-height:none;min-height:0;margin:0;border:0;border-radius:10px;background:#fff;box-shadow:none;overflow:visible;color:inherit;padding:0}
dialog.app-surface:not([open]){display:none!important}
.app-surface .dialog-head,.account-page .dialog-head{position:static;display:flex;flex-wrap:wrap;gap:16px;align-items:flex-start;padding:22px 26px;border-bottom:1px solid #eeeaf3;background:transparent}
.app-surface .dialog-head h2,.account-page .dialog-head h2{font-size:20px;color:#5f526d;line-height:1.5}
.app-surface .dialog-head p,.account-page .dialog-head p{font-size:12px;line-height:1.8;color:#9c8eaa}
.app-surface .surface-back{order:-1;flex-shrink:0;width:auto;height:auto;padding:6px 10px;margin:0;color:#8d79a4;font-size:12px;line-height:1.6;border-radius:6px;white-space:nowrap}
.app-surface .dialog-body,.account-page .dialog-body{max-height:none;overflow:visible;padding:26px}
.app-surface .dialog-foot{position:static;flex-wrap:wrap;padding:18px 26px;background:transparent;border-top:1px solid #eeeaf3}
.app-surface.viewer #viewer-preview,.app-surface.viewer #viewer-content{max-height:none;overflow:auto}
.app-surface.image-viewer .image-viewer-body{max-height:none;min-height:220px;height:auto;background:#f5f3f8;padding:24px;overflow:auto}
.app-surface.image-viewer .image-viewer-body img{max-width:100%;max-height:none;object-fit:contain;margin:0 auto}
.app-surface .mobile-menu-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.app-surface .mobile-menu-grid button{justify-content:flex-start;white-space:normal;padding:16px}
.account-page{padding:0;border:1px solid #eeeaf3;border-radius:10px;background:white}
.account-page .dialog-body{max-width:900px}
.account-page .settings-section:first-child{padding-top:0}.account-page .field-hint{font-size:12px;line-height:1.8}
.account-security-summary,.connection-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1px;background:#eeeaf3;border:1px solid #eeeaf3;border-radius:9px;overflow:hidden;margin:22px 0 16px}
.account-security-summary>div,.connection-progress>div{display:flex;flex-direction:column;gap:8px;background:#fcfbfe;padding:18px;min-width:0}
.account-security-summary span,.connection-progress span{font-size:11px;color:#aa9ab5}
.account-security-summary strong,.connection-progress strong{font-size:13px;font-weight:500;color:#746080;overflow-wrap:anywhere}
.account-security-summary small{font-size:11px;color:#9f91ac}
.inline-success{background:#f0f6f2;border-radius:7px;color:#60836d;font-size:12px;line-height:1.8;padding:13px 16px;margin:18px 0}
.account-form-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:20px}
#change-password-form{max-width:520px}#change-password-form .input{width:100%}
#password-settings{margin:20px 0;padding:16px 18px;border:1px solid #eeeaf3;background:#fcfbfe;border-radius:8px}
.connection-application{border-bottom:1px solid #eeeaf3;margin-bottom:22px;padding-bottom:18px}.connection-application strong{display:block;font-size:13px;font-weight:500;color:#827090}.connection-application code{display:block;font-size:12px;color:#a293ad;margin:8px 0;overflow-wrap:anywhere}
#login-credentials{margin-top:18px}#login-credentials .settings-section{border:0;padding:0}#login-credentials .input{width:100%}
.app>.toast{position:static;inset:auto;transform:none;max-width:none;width:auto;box-shadow:none;border:0;border-radius:0;background:#f0edf7;color:#8b76a4;padding:10px 24px;font-size:12px;flex-shrink:0;z-index:auto;text-align:left;animation:none}
@media(max-width:760px){
 #workspace[data-surface] #main-content{padding:16px}.app-surface .dialog-head,.account-page .dialog-head{padding:18px;gap:12px}.app-surface .dialog-head h2,.account-page .dialog-head h2{font-size:18px}.app-surface .dialog-head>div{min-width:0;flex:1}.app-surface .dialog-body,.account-page .dialog-body{padding:20px 18px}.app-surface .dialog-foot{padding:16px 18px;gap:10px}.account-security-summary,.connection-progress{grid-template-columns:1fr}.account-security-summary>div,.connection-progress>div{display:grid;grid-template-columns:96px minmax(0,1fr);gap:7px;padding:14px}.account-security-summary small{grid-column:2}.app-surface .mobile-menu-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-surface .mobile-menu-grid button{padding:12px}.account-page input{font-size:16px}#password-settings{padding:14px}.app>.toast{padding:10px 16px}.app-surface.image-viewer .image-viewer-body{padding:14px}
}

/* Flat application canvas, clearer navigation and readable laptop text. */
#workspace .app{padding:0;border-radius:0}#workspace .app>.page-heading{border:0;border-radius:0;background:#fbfafc;padding:22px 28px 16px}#workspace #main-content{border:0;border-radius:0;background:#fbfafc}
#workspace[data-view="remote"] #main-content{background:#fff}#workspace[data-surface] #main-content{padding:24px;overflow:auto}
#workspace .sidebar .nav-list{margin-top:8px;display:flex;flex-direction:column;gap:2px;overflow-y:auto;min-height:0}
#workspace .sidebar .brand{margin-bottom:20px}#workspace .sidebar .nav-group-label{margin:18px 12px 6px;font-size:11px;letter-spacing:.5px;color:#a197ac}#workspace .sidebar .nav-group-label:first-child{margin-top:0}
#workspace .sidebar .nav-item{min-height:40px;margin:0;font-size:14px;gap:12px}#workspace .sidebar .nav-item .icon{width:19px;height:19px}#workspace .sidebar .nav-count{font-size:11px;min-width:21px;padding:2px 5px}#workspace .sidebar-bottom{padding-top:12px;margin-top:auto}#workspace .sidebar-bottom .nav-item{margin-top:0}
.password-control{position:relative;display:flex;align-items:center;min-width:0;width:100%}.password-control>.input,.password-control>input{padding-right:62px!important;min-width:0;width:100%}.password-toggle{position:absolute;right:9px;top:50%;transform:translateY(-50%);border:0;background:transparent;color:#927eab;font:inherit;font-size:12px;line-height:1.5;padding:7px 8px;cursor:pointer;border-radius:5px}.password-toggle:hover{color:#7254d8}.password-toggle:focus-visible{outline:2px solid #c7bce3}
.pc-setup-hint{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eeeaf3;padding:12px 0 2px;margin-top:12px;color:#9a88a8;font-size:12px;line-height:1.8}.pc-setup-hint[hidden]{display:none}.pc-setup-hint strong,.pc-setup-hint span{display:block}.pc-setup-hint strong{font-weight:500;color:#847092}.pc-setup-hint .pc-button{flex-shrink:0}
@media(min-width:761px){
 :root{--sidebar:218px}#workspace .sidebar{width:var(--sidebar)}body{font-size:14px}
 #settings-tabs button{font-size:14px;padding:12px 14px}.pc-device-heading p,.pc-device-card,.config-card>p,.account-page .field-hint,.connection-state{font-size:14px;line-height:1.85}.pc-device-card h2{font-size:18px}.pc-device-card .pc-button,.pc-button,.button,.field label,.config-check,.input,input,select,textarea{font-size:14px}.pc-caption,.pc-device-empty small,.pc-device p,.pc-space small,.pc-cli-grid small,.pc-cli-help,.field-hint,.config-card .field-hint{font-size:12px;line-height:1.8}.pc-cli-grid b{font-size:13px}.native-desktop .page-heading p{font-size:14px}
 .pc-targets label>span{font-size:12px}.pc-targets select{font-size:13px;padding:6px 22px 6px 7px}.pc-targets{gap:12px}.pc-composer textarea{font-size:15px;min-height:82px}.pc-composer{padding:14px 16px}.pc-send-hint,.pc-footer{font-size:11px}.pc-send{font-size:14px}.pc-heading h1{font-size:16px}.pc-heading span{font-size:12px}.pc-task b{font-size:14px}.pc-task span{font-size:12px}.pc-details-body,.pc-details-body strong{font-size:13px}.account-security-summary strong,.connection-progress strong{font-size:14px}
}
@media(min-width:761px) and (max-height:800px){.native-desktop .sidebar{padding-top:48px}#workspace .sidebar .brand{margin-bottom:12px}#workspace .sidebar .nav-group-label{margin-top:14px}#workspace .sidebar .nav-item{min-height:38px;padding-top:8px;padding-bottom:8px}}
@media(max-width:760px){#workspace .app>.page-heading{padding:14px 16px}#workspace[data-surface] #main-content{padding:16px}.pc-setup-hint{flex-direction:column;align-items:flex-start;font-size:12px}.pc-setup-hint .pc-button{align-self:flex-end}}
.pc-welcome{max-width:660px;padding:20px 0}.pc-welcome h2{font-size:25px;line-height:1.5}.pc-welcome>p{font-size:14px;margin-bottom:20px;max-width:580px}.pc-start-steps{list-style:none;padding:0;margin:0 0 24px;display:flex;gap:18px;width:100%;counter-reset:none}.pc-start-steps li{display:flex;gap:10px;align-items:flex-start;flex:1;min-width:0;color:#b1a7bb}.pc-start-steps b{display:flex;align-items:center;justify-content:center;flex-shrink:0;border-radius:50%;width:24px;height:24px;background:#f2eff6;font-size:12px;font-weight:500;color:#a192ae}.pc-start-steps strong{font-size:13px;font-weight:500;display:block;line-height:1.8}.pc-start-steps span{display:block;font-size:11px;line-height:1.8}.pc-start-steps .done b{background:#edf4ef;color:#7a9c85}.pc-start-steps .current b{background:#efebf9;color:#7254d8}.pc-start-steps .current strong{color:#867097}.pc-first-action{display:flex;flex-direction:column;gap:12px;align-items:flex-start;margin-bottom:24px}.pc-first-action small{font-size:12px;line-height:1.9;color:#a094ae}.pc-ready-context{border-left:2px solid #e7e0f3;padding:2px 0 2px 14px;margin-bottom:24px;width:100%;min-width:0}.pc-ready-context span{font-size:11px;color:#b0a4bc;display:block;margin-bottom:5px}.pc-ready-context strong{font-size:14px;font-weight:500;color:#81708e}.pc-ready-context code{font:12px/1.8 ui-monospace,monospace;color:#a699b2;display:block;overflow-wrap:anywhere}.pc-ready-context small{font-size:11px;color:#a094ae;display:block;margin-top:5px}.pc-welcome .pc-planning-link{font-size:12px;margin:0;color:#ada0b9;line-height:1.9}.pc-first-action .pc-send{font-size:14px;min-height:40px;padding:9px 17px}
@media(max-width:1100px){.pc-start-steps{gap:12px}.pc-start-steps li{gap:7px}.pc-start-steps strong{font-size:12px}.pc-start-steps span{font-size:11px}.pc-welcome h2{font-size:22px}}
@media(max-width:760px){.pc-welcome{padding:20px 2px}.pc-welcome h2{font-size:22px}.pc-welcome>p{font-size:13px}.pc-start-steps{flex-direction:column;gap:12px}.pc-start-steps li{align-items:center}.pc-start-steps li>div{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}.pc-start-steps span{font-size:12px}.pc-ready-context{margin-bottom:18px}.pc-welcome .pc-examples{margin-bottom:16px}}
.pc-mode-switch{border:0;background:transparent;color:#937da8;font:inherit;font-size:12px;white-space:nowrap;padding:8px;cursor:pointer}.pc-mode-switch:hover{color:#7254d8}.chat-mode-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:24px}.chat-mode-bar>span{font-size:12px;letter-spacing:.5px;color:#a08bb2}.chat-mode-bar .button{padding:7px 0;font-size:12px}.chat-welcome h2{font-size:25px}.chat-welcome p{max-width:650px;line-height:1.9}.pc-heading span{max-width:620px;display:block;overflow-wrap:anywhere}
@media(max-width:760px){.pc-mode-switch{font-size:11px;padding:7px 4px}.pc-heading span{font-size:10px;line-height:1.6}.chat-mode-bar{margin-bottom:18px;gap:8px}.chat-mode-bar>span{font-size:11px}.chat-welcome h2{font-size:23px}}
.pc-welcome{justify-content:safe center}.needs-directory .pc-composer textarea{min-height:48px}.needs-directory .pc-setup-hint{display:none}
@media(min-width:761px) and (max-width:1440px){.pc-layout,.details-hidden .pc-layout{grid-template-columns:230px minmax(0,1fr)}.pc-details{display:none}.show-details .pc-details{display:block;position:absolute;right:0;top:0;bottom:0;width:260px;z-index:20;box-shadow:-10px 0 25px #32204308}.pc-layout{position:relative}.pc-messages{padding:24px 26px}}
@media(max-width:760px){.pc-start-steps li>div{display:block}.pc-welcome .pc-planning-link{font-size:12px}}

/* One conversation pattern: questions on the right, AG2 Mate replies on the left. */
.pc-turn{display:flex;flex-direction:column;gap:18px;max-width:860px;margin-bottom:30px;min-width:0}
.pc-user{align-self:flex-end;width:fit-content;max-width:82%;min-width:0;margin:0}
.pc-message-meta,.pc-author{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:12px;line-height:1.7;color:#a297ae;margin:0 0 8px}
.pc-message-meta{justify-content:flex-end}.pc-message-meta strong{font-weight:550;color:#796787}
.pc-message-meta time,.pc-author time{font-size:11px;color:#a297ae;font-variant-numeric:tabular-nums}
.pc-user p{background:#f0ebfa;color:#655376;border:1px solid #e9e1f5;border-radius:14px 4px 14px 14px;padding:13px 17px;font-size:14px;line-height:1.85}
.pc-assistant{align-self:flex-start;width:fit-content;max-width:94%;min-width:0;padding:15px 18px;border:1px solid #ede9f2;background:#fdfcfe;border-radius:4px 14px 14px 14px}
.pc-author{margin-bottom:12px}.pc-author b{color:#796787;font-size:13px;font-weight:550}.pc-author>span:not(.pc-state){font-size:11px}.pc-author .pc-state{margin-left:0;font-size:11px}
.pc-assistant .markdown-body>:first-child,.chat-message-body>:first-child{margin-top:0}.pc-assistant .markdown-body>:last-child,.chat-message-body>:last-child{margin-bottom:0}
.chat-timeline{display:flex;flex-direction:column;gap:20px;padding:4px 0 24px;min-width:0}
.chat-message{width:fit-content;max-width:94%;min-width:0;margin:0;padding:15px 18px;border:1px solid #ede9f2;border-radius:4px 14px 14px 14px;background:#fdfcfe;align-self:flex-start;overflow-wrap:anywhere}
.chat-message.from-user{align-self:flex-end;max-width:82%;margin:0;padding:13px 17px;background:#f0ebfa;border-color:#e9e1f5;border-radius:14px 4px 14px 14px;color:#655376}
.chat-message.from-user .chat-message-meta{justify-content:flex-end}.chat-message-meta{gap:8px;line-height:1.7;margin-bottom:10px}.chat-message-meta strong{color:#796787}.chat-message-meta time{font-variant-numeric:tabular-nums}.chat-message-body{font-size:14px;line-height:1.9;min-width:0}.chat-message-body pre,.chat-message-body table{max-width:100%;overflow-x:auto}.chat-message-body table{display:block}.chat-message .assistant-result{border:0;padding:0;margin:0;background:transparent}
@media(max-width:760px){
 .pc-turn{gap:16px;margin-bottom:26px}.pc-user,.chat-message.from-user{max-width:88%}.pc-assistant,.chat-message{max-width:96%;padding:13px 14px}.pc-user p,.chat-message.from-user{padding:12px 14px}.pc-message-meta,.pc-author,.chat-message-meta{gap:6px;font-size:11px}.pc-author b{font-size:12px}.pc-author time{font-size:10px}.chat-timeline{gap:18px}.pc-messages{padding-left:14px;padding-right:14px}
}

/* Execution is an edge-to-edge workspace at full screen, independent of document page widths. */
#workspace[data-view="remote"] #desktop-workspace{width:100%;max-width:none;margin:0;flex:1 1 0}
.sidebar-drag-handle{display:none}
@media(min-width:761px){
 .native-desktop .sidebar-drag-handle{display:block;position:absolute;top:0;left:0;right:0;height:52px;-webkit-app-region:drag;user-select:none}
 .native-desktop .sidebar>.brand{-webkit-app-region:drag;user-select:none;cursor:default}
 .native-desktop .sidebar .nav-list,.native-desktop .sidebar-bottom{-webkit-app-region:no-drag}
}

/* Give the login brand a stronger presence without changing the selected S1 mark. */
.login-visual>.brand{gap:14px;align-items:center}.login-visual .brand-logo{width:50px;height:50px}.login-visual .brand-name{font-size:26px;line-height:1.3}.login-visual .brand-name small{font-size:12px;margin-top:5px}.login-copy p{max-width:none;font-size:14px}
@media(min-width:1450px){.login-copy p{font-size:15px}}

.pc-history-open{display:block;margin:0 15px 12px;padding:9px 12px;border:1px solid #e7e1f0;border-radius:7px;background:#fcfbfe;color:#8a75a0;text-align:left;font:inherit;font-size:12px;cursor:pointer}.pc-history-open:hover{color:#7254d8}.pc-history-context{font-size:14px;font-weight:550;color:#796787;margin-bottom:12px}.pc-history-list{display:grid;gap:10px;margin-top:24px}.pc-history-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px 20px;text-align:left;min-width:0;padding:16px 18px;border:1px solid #eee9f4;border-radius:8px;background:#fcfbfe;color:#796787;font:inherit;cursor:pointer}.pc-history-item strong{font-size:14px;font-weight:500;overflow-wrap:anywhere}.pc-history-item time{font-size:12px;color:#a195ad;white-space:nowrap}.pc-history-item span{font-size:12px;color:#927ca9;grid-column:1/-1}.pc-history-item:hover strong{color:#7254d8}.pc-history-item:disabled{opacity:.6;cursor:wait}
@media(max-width:760px){.pc-history-item{grid-template-columns:1fr;gap:9px}.pc-history-item time{grid-row:2}.pc-history-item span{grid-row:3}}

.pc-access-modes{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:18px 0}.pc-access-mode{display:flex;flex-direction:column;gap:8px;border:0;border-radius:9px;background:#f7f5fa;color:#82758f;padding:14px;text-align:left;font:inherit;cursor:pointer}.pc-access-mode strong{font-size:14px}.pc-access-mode span{font-size:12px;line-height:1.8}.pc-access-mode.selected{background:#eee9f9;color:#7254d8}.pc-network-state{padding:12px 0;font-size:13px}.pc-network-state p{font-size:12px;margin:8px 0}.pc-network-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:15px}.pc-url-label{display:block;color:#9a8aa9;font-size:12px;margin:12px 0}.pc-url-label .pc-share-url{display:block;width:100%;min-width:0;font:13px/1.8 ui-monospace,monospace;color:#79648c;border:1px solid #e7e0ee;padding:10px 12px;background:#faf8fc;border-radius:7px;margin-top:7px;user-select:all}.pc-copy-status{font-size:12px;color:#7254d8}.usage-option{cursor:default}.usage-option strong{font-size:14px}.usage-option small{font-size:12px}
@media(max-width:760px){.pc-access-modes{grid-template-columns:1fr}.pc-network-actions .pc-button{min-height:40px}}

/* Directory context belongs to navigation; the composer only contains the message. */
.pc-folder-intro{font-size:12px;line-height:1.8;color:#a397af;padding:0 17px;margin:0 0 14px}.pc-folder{margin:2px 0 14px}.pc-folder-heading{display:flex;align-items:center;gap:3px;padding:0 3px}.pc-folder-toggle{display:flex;align-items:center;gap:7px;flex:1;min-width:0;text-align:left;border:0;background:transparent;font:inherit;padding:9px 5px;color:#85738e;cursor:pointer}.pc-folder-toggle strong{font-size:13px;font-weight:550;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.pc-folder-toggle>span{font-size:12px;color:#b0a3ba}.pc-folder-toggle small{margin-left:auto;font-size:11px;color:#b0a3ba}.pc-folder-add{border:0;background:transparent;color:#a08cab;font-size:20px;padding:3px 7px;cursor:pointer}.pc-folder-content{padding-left:10px;border-left:1px solid #ede8f3;margin-left:12px}.pc-folder-computer{display:block;padding:2px 8px 5px;font-size:10px;color:#b0a2bc}.pc-folder-import{font:inherit;font-size:11px;border:0;background:transparent;padding:7px 8px;color:#9e87b0;cursor:pointer}.pc-folder-empty{padding:4px 8px;font-size:11px;color:#b5a9bf;margin:0}.pc-folder .pc-task{padding:10px 10px}.pc-folder .pc-task b{font-size:13px}.pc-folder .pc-task span{font-size:11px}.pc-folder.current .pc-folder-toggle strong{color:#7254d8}.pc-task-items{padding:0 10px}.pc-session-targets{border-bottom:1px solid #f1edf5;padding:10px 26px;background:#fdfcfe}.pc-session-targets[hidden]{display:none}.pc-session-targets .pc-targets{margin:0;display:flex;gap:12px}.pc-session-targets .pc-targets label{flex:1 1 140px;display:flex;gap:8px;align-items:center;min-width:0}.pc-session-targets select{min-width:0;max-width:100%;flex:1}.pc-conversation-head{min-height:68px}.pc-heading.has-context span{font-size:11px;line-height:1.9;color:#a091ad}.pc-composer{margin:8px 24px 0;padding:12px 16px 10px;border:1px solid #e7dfef;border-radius:14px;background:#fff;box-shadow:0 3px 12px #7254d806}.pc-composer textarea{min-height:56px!important;max-height:180px;padding:6px 2px;margin:0;resize:none;font-size:15px;line-height:1.7}.pc-compose-foot{margin:4px 0 0;display:flex;align-items:center;justify-content:space-between;gap:10px}.pc-compose-foot>div{display:flex;align-items:center;gap:10px;min-width:0}.pc-send-hint{font-size:10px;color:#b0a5bb}.pc-send-mode{font:inherit;font-size:12px;max-width:110px;border:0;background:#f9f6fc;border-radius:6px;padding:7px 5px;color:#9b87ad}.pc-composer .pc-send{display:flex;align-items:center;justify-content:center;border-radius:50%;width:34px;height:34px;padding:0;font-size:22px;line-height:1}.pc-compose-foot .pc-attach{font-size:24px;padding:0 4px;color:#9e87b0;line-height:1}.pc-compose-foot [data-pc="cancel"]{font-size:11px;padding:5px 8px;min-height:32px}.pc-footer{padding:8px 12px;font-size:10px}.pc-attachment-chips{display:flex;flex-wrap:wrap;gap:8px}.pc-attachment-chip{display:flex;align-items:center;gap:7px;max-width:210px;padding:5px;background:#f8f4fc;border-radius:8px;color:#9b86ac}.pc-attachment-chip img{width:34px;height:34px;object-fit:cover;border-radius:5px}.pc-attachment-chip b{font-size:11px;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-weight:400}.pc-attachment-chip button{font:inherit;color:#b19ebf;border:0;background:transparent;cursor:pointer}.pc-message-attachments{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.pc-message-attachments button{display:flex;flex-direction:column;gap:5px;border:0;background:transparent;font:inherit;font-size:11px;color:#9d86ad;max-width:160px;padding:0;text-align:left;cursor:pointer;overflow-wrap:anywhere}.pc-message-attachments img{width:150px;max-height:110px;object-fit:cover;border-radius:7px}.pc-queue-cancel{display:block;margin:6px 0 0 auto;color:#a28bb2;font:inherit;font-size:11px;border:0;background:transparent;cursor:pointer}.pc-history-context{display:grid;grid-template-columns:minmax(0,1fr) minmax(150px,200px);gap:14px;align-items:center}.pc-history-context>strong{min-width:0;overflow-wrap:anywhere}.pc-history-context label{display:grid;gap:6px;min-width:0;font-size:12px;font-weight:400;color:#9b86ac}.pc-history-context select{width:100%;min-height:40px;font:inherit;border:0;padding:8px 12px;background-color:#f8f5fc;color:#776387;border-radius:6px}.pc-full-preview{display:block;max-width:100%;max-height:75vh;object-fit:contain;margin:auto}.pc-text-preview{width:100%;height:65vh;border:0}
@media(min-width:761px) and (max-height:800px){.pc-composer textarea{min-height:48px!important}.pc-composer{margin-top:4px}.pc-messages{padding-top:18px;padding-bottom:18px}}
@media(max-width:760px){.pc-session-targets{padding:8px 12px}.pc-session-targets .pc-targets{gap:8px;flex-wrap:wrap}.pc-session-targets .pc-targets label{flex-basis:calc(50% - 8px);font-size:11px}.pc-session-targets .pc-targets label:first-child{flex-basis:100%}.pc-session-targets .pc-targets select{font-size:12px;min-height:32px}.pc-composer{margin:5px 10px 0;padding:8px 11px;border-radius:12px}.pc-composer textarea{min-height:48px!important;max-height:140px;font-size:16px}.pc-compose-foot>div{gap:6px}.pc-compose-foot .pc-send-hint{display:none}.pc-composer .pc-send{width:36px;height:36px}.pc-send-mode{font-size:12px}.pc-footer{padding:6px;font-size:10px}.pc-heading.has-context span{font-size:10px}.pc-attachment-chip{max-width:160px}.pc-history-context{grid-template-columns:minmax(0,1fr);align-items:start}.pc-history-context select{min-height:44px;font-size:16px}.pc-full-preview{max-height:65vh}}
.remote-connect-card{margin-top:20px;padding-top:18px;border-top:1px solid #eee8f5}.remote-connect-form{display:grid;gap:15px}.remote-connect-form[hidden]{display:none}.remote-connect-form h3,.remote-saved h3{font-size:15px;color:#82708f;margin:0}.remote-connect-form p{font-size:12px;line-height:1.8;color:#a08bad;margin:0}.remote-connect-form label{display:grid;gap:7px;font-size:12px;color:#9d85af}.remote-connect-form select,.pc-pair-access{font:inherit;font-size:13px;padding:9px;border:1px solid #e8e0f0;border-radius:7px;color:#927ba4;background-color:#fcfafd}.remote-connect-actions{display:flex;justify-content:flex-end;gap:8px}.remote-network-status{font-size:12px;line-height:1.8;color:#a18bb0}.remote-saved-row{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:13px 0;border-bottom:1px solid #f1ecf6;font-size:13px;color:#95819f}.remote-saved-row>span,.remote-saved-row>button:first-child{flex:1;min-width:0;text-align:left}.remote-saved-row small{display:block;font-size:11px;line-height:1.8;overflow-wrap:anywhere;margin-top:5px;color:#b09dbe}.remote-saved h3{margin:20px 0 0}.pc-pair-result{margin:14px 0;display:grid;gap:10px}.pc-pair-result code{font:16px/1.8 ui-monospace,monospace;user-select:all;overflow-wrap:anywhere;color:#7254d8}.pc-pair-result span{font-size:11px;color:#ad97bb}.pc-pair-result .pc-button{justify-self:start}.pc-remote-devices>label{font-size:12px;color:#9d85af;display:flex;align-items:center;gap:10px;margin:15px 0}.remote-view-bar{position:fixed;top:0;left:0;right:0;height:36px;display:flex;align-items:center;justify-content:space-between;background:#efeaf8;color:#8d749f;font-size:12px;padding:0 15px 0 90px;z-index:90;-webkit-app-region:drag}.remote-view-bar button{border:0;background:transparent;color:#7254d8;font:inherit;cursor:pointer;-webkit-app-region:no-drag}.remote-client .topbar{height:84px;padding-top:36px}.remote-client .sidebar{padding-top:82px}.pc-composer .pc-send{flex-shrink:0;aspect-ratio:1}.pc-compose-foot .pc-send-actions{flex-shrink:0}.remote-client #login .phone-login-form,.remote-client #login .login-action,.remote-client #local-feishu-login,.remote-client #remote-login-entry{display:none!important}

/* Login: one method at a time, with quiet secondary links. */
.login{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.login-main{background:#fff;padding:40px 48px;gap:24px}
.login-card{max-width:380px;color:#26232f}
.login-card .login-badge{display:none}
.login-card h2{font-size:28px;line-height:1.4;letter-spacing:-.6px;color:#26232f;font-weight:650}
.login-description{font-size:14px;line-height:1.8;color:#817b8c;margin-top:10px}
.login-method-tabs{display:flex;gap:28px;border-bottom:1px solid #eae7ef;margin-top:27px}
.login-method-tabs button{position:relative;border:0;border-radius:0;background:transparent;padding:0 0 12px;font:inherit;font-size:14px;color:#8a8493;white-space:nowrap}
.login-method-tabs button[aria-selected=true]{color:#6a4ccb;font-weight:600}
.login-method-tabs button[aria-selected=true]::after{content:"";position:absolute;bottom:-1px;left:0;right:0;height:2px;background:#7254d8;border-radius:2px}
.login-method-panel{margin:24px 0 0;min-width:0}
.login-card .login-action{margin:0}
.login-card .button{min-height:44px;font-size:14px;border-radius:8px;box-shadow:none}
.login-card .button.primary{background:#7254d8;border-color:#7254d8;color:white}
.login-card .button.primary:hover{background:#6345c7;border-color:#6345c7}
.login-token-action:has([hidden]){display:none}
.login-card .phone-login-form{margin-top:24px}
.login-card .field{margin:0 0 18px}
.login-card .field label,.login-card .remote-connect-form label{display:block;margin-bottom:7px;font-size:13px;font-weight:500;color:#57515f}
.login-card .input,.login-card .remote-connect-form select{min-height:44px;border:1px solid #dedbe5;border-radius:8px;background-color:#fff;font-size:14px;color:#383241;padding:10px 12px}
.login-card .input::placeholder{color:#a09aa8}
.login-card .password-toggle{font-size:12px;color:#847390}
.login-phone-help{font-size:12px;line-height:1.8;color:#948c9f;margin-top:14px}
.login-card .local-feishu-login{margin:0}
.login-card .local-feishu-login .field-hint{font-size:12px;line-height:1.8;color:#948c9f}
.account-more-options{margin-top:14px;font-size:12px;color:#948c9f}
.account-more-options summary{cursor:pointer;width:fit-content;padding:3px 0}
.account-more-options .config-check{margin:12px 0 0;gap:9px;align-items:flex-start}
.account-more-options small{display:block;font-size:11px;line-height:1.7;color:#a299ac;margin-top:3px}
[data-authorizing=true]>.account-more-options{display:none}
.account-authorization .account-qr-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;margin-bottom:4px}
.account-qr-heading strong{font-size:14px;font-weight:550;color:#57515f}
.account-qr-heading span{font-size:11px;color:#958aab}
.account-qr-heading span::before{content:"";display:inline-block;width:5px;height:5px;border-radius:50%;background:#a28bcf;margin-right:6px;vertical-align:middle}
.account-authorization .feishu-auth-qr{width:180px;height:180px;object-fit:contain;background:#fff;border:1px solid #ece8f1;border-radius:10px;padding:10px;margin:3px auto}
.account-authorization .feishu-auth-link{font-size:13px;line-height:1.7;text-align:center;color:#7254d8}
.local-feishu-login .account-authorization{margin-top:0;gap:13px}
.account-authorization>.field-hint{text-align:center;font-size:11px;color:#a198aa}
.account-text-button{border:0;background:transparent;padding:4px 0;font:inherit;font-size:12px;color:#94859f;cursor:pointer;justify-self:center}
.account-text-button:hover{color:#7254d8}
.login-card .error{font-size:12px;line-height:1.8;overflow-wrap:anywhere}
.login-card .login-note{border-top:1px solid #eeebf2;margin-top:24px;padding-top:18px;font-size:12px;line-height:1.8;color:#9b92a5}
.login-utilities{display:flex;align-items:center;justify-content:center;gap:14px;margin:18px 0 0}
.login-utilities button,.login-utilities a{border:0;background:transparent;padding:3px 0;font:inherit;font-size:12px;color:#9b92a5;line-height:1.8;cursor:pointer}
.login-utilities button:hover,.login-utilities a:hover{color:#7254d8}
.login-install-guide{margin-top:16px;padding:16px 0 0;border-top:1px solid #eeebf2;font-size:12px;line-height:1.9;color:#948c9f}
.login-install-guide strong{font-weight:500;color:#706479}
.login-install-guide ol{padding-left:19px;margin:10px 0}
.login-install-guide li{padding-left:2px;margin:5px 0}
.login-support{font-size:11px;color:#b0a7ba;max-width:380px}
.login-card .remote-connect-card{border:0;padding:0;margin-top:21px}
.login-remote-link{display:flex;align-items:center;justify-content:space-between;gap:14px;width:100%;border:0;background:transparent;padding:0;font:inherit;font-size:13px;color:#81728e;cursor:pointer}
.login-remote-link:hover{color:#7254d8}
.login-remote-link span{color:#ac9db9}
.login-card .remote-connect-form{gap:17px}
.login-card .remote-connect-form p{font-size:12px;line-height:1.8;color:#948c9f}
.login-card .remote-connect-form label{display:grid;gap:7px;margin:0}
.login-card .remote-connect-actions .button{width:100%}
.remote-back{justify-self:start}
.login-card[data-login-view=remote] #login-method-tabs,.login-card[data-login-view=remote] .login-method-panel,.login-card[data-login-view=remote] .login-token-action,.login-card[data-login-view=remote] #login-credentials,.login-card[data-login-view=remote] .login-note,.login-card[data-login-view=remote] #login-error{display:none!important}
.login-card[data-login-view=remote] .remote-saved{display:none}
.remote-client #login-method-tabs,.remote-client #login .login-method-panel{display:none!important}
@media(max-width:760px){
 .login{grid-template-columns:minmax(0,1fr)}
 .login-visual{display:none}
 .login-main{padding:32px 24px;justify-content:safe center;background:#fff}
 .login-card>.brand{display:flex;padding:0;margin-bottom:34px;gap:11px}
 .login-card>.brand .brand-logo{width:40px;height:40px}
 .login-card>.brand .brand-name{font-size:22px}
 .login-card>.brand .brand-name small{font-size:10px;letter-spacing:.5px;margin-top:3px}
 .login-card h2{font-size:26px}
 .login-card .input,.login-card .remote-connect-form select{font-size:16px}
 .login-method-tabs{margin-top:25px}
}
@media(max-width:360px){.login-main{padding:26px 20px}.login-card h2{font-size:24px}.login-description{font-size:13px}}

/* Settings actions occupy their own row, outside the scrolling form. */
.settings-footer{flex:0 0 auto;position:relative;z-index:5;background:#fbfafc;border-top:1px solid #e9e5ee;padding:14px 24px}
.settings-footer-inner{max-width:1190px;width:100%;margin:0 auto;padding-left:178px}
.settings-footer-row{display:flex;align-items:center;justify-content:space-between;gap:20px}
.settings-footer-row p{font-size:12px;line-height:1.7;color:#9c90a7;margin:0}
.settings-footer-row .button{min-height:40px;min-width:104px;box-shadow:none;flex-shrink:0}
.settings-footer .error{font-size:12px;line-height:1.8;margin:0 0 10px}
#workspace[data-surface] .settings-footer{display:none}
#workspace-config .config-card .config-actions{position:static;background:transparent;padding-top:18px;border-top:0;backdrop-filter:none}
#settings-shell .config-grid{align-items:start;column-gap:24px;row-gap:22px}
#settings-shell .field>label:not(.config-check){display:flex;align-items:baseline;gap:8px;min-height:22px;font-size:14px;line-height:1.6;margin-bottom:8px}
#settings-shell .input,#settings-shell .field>select{min-height:42px;font-size:14px;line-height:1.6;border-radius:7px;padding-block:9px;padding-left:12px}

#settings-shell .field .field-hint,#settings-shell .analysis-node-hint{font-size:12px;line-height:1.8;margin-top:8px}
#settings-shell .config-check{display:flex;align-items:flex-start;gap:10px;font-size:14px;line-height:1.6;font-weight:400;margin:0;min-height:24px}
#settings-shell .config-check input[type=checkbox]{width:16px;height:16px;min-width:16px;min-height:16px;flex:0 0 16px;margin:calc((1em * 1.6 - 16px)/2) 0 0;padding:0}
#settings-shell .config-check>span{min-width:0;flex:1}
#settings-shell .config-toggle>.field-hint{padding-left:26px;margin-top:7px}
#settings-shell .config-check-row{align-items:flex-start;gap:12px 24px}
#settings-shell .config-clear{margin-top:10px;font-size:12px;line-height:1.8}
#settings-shell .analysis-auto-note{margin-left:26px}
#analysis-fallback-switch>.config-toggle{margin-top:14px}
#settings-shell .config-secret-state{margin:0;white-space:nowrap;font-size:11px;line-height:1.6;font-weight:400}
@media(max-width:1100px){#settings-shell .config-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .settings-footer{padding:12px 16px;background:#fbfafc}
 .settings-footer-inner{padding-left:0}
 .settings-footer-row{gap:12px}
 .settings-footer-row p{font-size:11px;max-width:55%}
 #settings-shell .input,#settings-shell .field>select{font-size:16px}
 #settings-shell .config-check{font-size:14px}
}
.pc-model-control{display:flex;align-items:center;gap:4px;color:#ad99bb;font-size:11px;min-width:0}.pc-model-control>span{display:none}.pc-model-control select{font:inherit;font-size:12px;max-width:180px;min-width:70px;border:0;background-color:transparent;color:#9279a6;padding:5px 0;overflow:hidden;text-overflow:ellipsis;cursor:pointer}.pc-custom-model{margin-top:10px;font-size:12px;color:#a18aaf}.pc-custom-model label{display:flex;align-items:center;gap:10px}.pc-custom-model input{flex:1;min-width:0;font-size:13px}.pc-composer .pc-send{min-width:34px}.pc-compose-foot .pc-send-hint{display:none}
@media(max-width:760px){.pc-model-control select{max-width:105px;font-size:12px}.pc-composer .pc-send{min-width:36px}.pc-compose-foot>div{gap:4px}.pc-compose-foot [data-pc="cancel"]{padding:5px;min-width:0}.pc-send-mode{max-width:84px;padding:7px 2px}.pc-model-control{flex:1}}
/* Compact composer sizing; shared select decoration follows below. */
.pc-model-control{flex:0 1 190px;min-width:0;max-width:190px}
.pc-model-control select,.pc-send-mode{padding:6px 27px 6px 8px;line-height:20px;height:34px;min-height:34px;box-shadow:none}
.pc-model-control select{width:100%;min-width:92px;max-width:190px;background-color:#faf8fd;border-radius:6px;color:#776387}
.pc-send-mode{width:102px;max-width:102px;padding-left:7px;padding-right:22px;background-position:right 6px center}
.pc-compose-foot>div:first-child{flex:1;min-width:0}
@media(max-width:760px){.pc-model-control{flex:0 1 122px;max-width:122px}.pc-model-control select{min-width:0;max-width:122px;font-size:12px}.pc-send-mode{width:88px;max-width:88px;font-size:11px;padding-left:5px;padding-right:19px;background-position:right 4px center}.pc-compose-foot{gap:6px}.pc-send-actions{gap:5px!important}}
@media(max-width:360px){.pc-compose-foot:has([data-pc="cancel"]:not([hidden])) .pc-send-mode{display:none}.pc-model-control{max-width:112px}}

.pc-composer .pc-send{min-height:34px;max-height:34px}
@media(max-width:760px){.pc-composer .pc-send{min-height:36px;max-height:36px}}
.pc-effort-control[hidden]{display:none}
.pc-effort-control{flex:0 1 108px;max-width:108px}
.pc-effort-control select{min-width:0;font-size:12px;color:#8d74a0}
.pc-composer{container-type:inline-size}
@container(max-width:500px){.pc-compose-foot:has(.pc-effort-control:not([hidden])) .pc-send-mode{display:none}.pc-model-control{min-width:0;flex:1 1 120px}.pc-model-control select{min-width:0;max-width:100%}.pc-effort-control{flex:0 0 96px;min-width:96px}.pc-compose-foot>div:first-child{flex:1;gap:5px}.pc-compose-foot .pc-send-actions{gap:5px}}

.pc-compose-foot{flex-wrap:wrap}
.pc-compose-foot>div:first-child{flex:1 1 130px}
.pc-compose-foot:has(.pc-effort-control:not([hidden]))>div:first-child{flex:1 1 220px}
.pc-compose-foot .pc-send-actions{margin-left:auto}

/* Shared native select decoration. Keep after page themes so a local background
 * shorthand cannot reset the arrow's repeat, size, position or text clearance.
 * Page styles should use background-color to change the control surface. */
:root select:not([multiple]) {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23827396' stroke-width='1.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: var(--select-arrow-size, 16px) var(--select-arrow-size, 16px);
  background-position: right var(--select-arrow-inset, 12px) center;
  padding-right: calc(var(--select-arrow-inset, 12px) + var(--select-arrow-size, 16px) + 8px);
  min-width: 0;
  text-overflow: ellipsis;
}

.pc-targets select,
.pc-model-control select,
.pc-send-mode {
  --select-arrow-size: 12px;
  --select-arrow-inset: 7px;
}

@media (forced-colors: active) {
  :root select:not([multiple]) {
    appearance: auto;
    -webkit-appearance: auto;
    background-image: none;
    padding-right: 12px;
  }
}

/* Short confirmations keep the current workspace visible behind a native modal. */
:root.has-app-modal #workspace #main-content{overflow:hidden}
dialog.app-modal{position:fixed;inset:0;width:min(540px,calc(100vw - 32px));max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #e8e2ee;border-radius:14px;background:#fff;color:#54485f;box-shadow:0 24px 80px #2d17452b;overflow:hidden}
dialog.app-modal[open]{display:flex;flex-direction:column}
dialog.app-modal.batch-dialog{width:min(650px,calc(100vw - 32px))}
.app-modal>form{display:flex;flex-direction:column;width:100%;min-height:0;max-height:inherit}
.app-modal .dialog-head{flex-shrink:0;align-items:center;gap:16px;padding:20px 24px 16px}
.app-modal .dialog-head>div{flex:1;min-width:0}
.app-modal .dialog-head h2{font-size:20px;line-height:1.5;color:#51465c}
.app-modal .dialog-head .icon-button{flex-shrink:0;width:32px;height:32px;font-size:22px}
.app-modal .dialog-body{min-height:0;overflow:auto;padding:0 24px 24px}
.archive-modal-note{margin:0 0 22px;color:#8b7f96;font-size:13px;line-height:1.8;overflow-wrap:anywhere}
.app-modal .field label{margin-bottom:8px;font-size:14px}
.app-modal .input{min-height:44px}
.app-modal .field-hint{font-size:12px;line-height:1.7}
.app-modal .dialog-foot{position:static;flex-shrink:0;gap:10px;padding:16px 24px;border-top:1px solid #eee8f3;background:#fff}
.app-modal .dialog-foot .button{min-height:40px}
@media(max-width:650px){
  dialog.app-modal,dialog.app-modal.batch-dialog{width:calc(100vw - 24px);max-height:calc(100dvh - 24px);border-radius:12px}
  .app-modal .dialog-head{padding:18px 18px 14px}
  .app-modal .dialog-head h2{font-size:18px}
  .app-modal .dialog-body{padding:0 18px 20px}
  .app-modal .dialog-foot{padding:14px 18px}
  .app-modal .input{font-size:16px}
}

/* The two inbox control rows share the content scrollport; the measured tab
 * height also covers the two-row mobile layout. Keep both surfaces opaque. */
#inbox-page{--inbox-tabs-height:47px}
.inbox-view-tabs{position:sticky;top:0;z-index:16;background:#fbfafc}
.inbox-view-tabs::before{content:"";position:absolute;top:-24px;left:-24px;right:-24px;height:24px;background:inherit;pointer-events:none}
.bulk-toolbar{position:sticky;top:0;z-index:15;background:#fff;box-shadow:0 3px 8px #36233d08}
#inbox-bulk-toolbar{top:var(--inbox-tabs-height)}

/* Entry: choose the work computer first; credentials belong to the next step. */
#login{display:block;background:#fbfafc}
#login[hidden]{display:none}
#login .login-main{height:100%;max-height:100dvh;padding:48px 32px;gap:28px;background:#fbfafc}
#login .login-card{max-width:800px}
#login .login-card[data-login-view=local],#login .login-card[data-login-view=remote],#login .login-card[data-login-view=expired]{max-width:440px}
#login .login-card>.brand{display:flex;align-items:center;gap:12px;padding:0;margin-bottom:36px}
#login .login-card>.brand .brand-logo{width:44px;height:44px;border-radius:12px}
#login .login-card>.brand .brand-name{font-size:25px;line-height:1.3}
#login .login-card>.brand .brand-name small{font-size:11px;letter-spacing:0;margin-top:5px}
#login h2{font-size:26px;line-height:1.5;letter-spacing:-.4px}
#login h2:focus{outline:none}
#login .login-description{margin-top:8px;font-size:14px}
.login-paths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:28px}
.login-path{display:flex;flex-direction:column;align-items:flex-start;min-width:0;text-align:left;padding:26px;border:1px solid #e5e0eb;border-radius:14px;background:#fff;font:inherit;cursor:pointer;color:var(--ink)}
.login-path:hover{border-color:#bbaadc;background:#fdfbff}
.login-path:focus-visible{outline:3px solid #c9baee;outline-offset:3px;border-color:#8c6fda}
.login-path-icon{width:29px;height:29px;color:#795bc4;margin-bottom:22px}
.login-path strong{font-size:18px;line-height:1.6;font-weight:600}
.login-path>span{font-size:13px;line-height:1.9;color:#81768e;margin-top:9px}
.login-path small{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;padding-top:24px;margin-top:auto;font-size:13px;color:#7254d8}
.login-path small>span{font-size:18px;line-height:1}
.login-path-note{font-size:12px;color:#9b92a5;line-height:1.8;margin-top:20px}
#login .login-flow-back{display:block;margin:0 0 22px;padding:5px 0;min-height:32px;font-size:12px;text-align:left;justify-self:start;color:#897b95}
#login .remote-connect-card{margin:0}
#login .remote-connect-form{gap:18px}
#login .remote-connect-form>.login-flow-back{margin-bottom:0}
#login .remote-connect-form h2{margin:0}
#login .remote-saved{display:block;margin-top:26px}
#login .remote-saved:empty{display:none}
#login .remote-saved-row strong{font-size:13px}
#login .login-support{max-width:none}
#login .login-utilities{margin-top:26px}
#login .account-app-config{margin-top:0;padding:18px;border:1px solid #e9e3f0;background:#fff}
#login .login-note{color:#94899f}
#login-remote-expired>.button{margin-top:24px}
.connection-install-link{display:inline-block;font-size:13px;line-height:1.8;margin-top:6px}
@media(max-width:650px){
 #login .login-main{padding:28px 20px;gap:24px}
 #login .login-card>.brand{margin-bottom:28px}
 #login h2{font-size:23px}
 #login .login-description{font-size:13px}
 .login-paths{grid-template-columns:minmax(0,1fr);gap:12px;margin-top:22px}
 .login-path{display:grid;grid-template-columns:26px minmax(0,1fr);gap:5px 14px;padding:20px}
 .login-path-icon{width:25px;height:25px;grid-row:1 / 4;margin:3px 0 0}
 .login-path strong{font-size:16px}
 .login-path>span{margin:0;font-size:13px}
 .login-path small{grid-column:2;padding-top:8px;font-size:12px}
 .login-path-note{margin-top:16px;font-size:11px}
 #login .login-flow-back{min-height:40px;margin-bottom:16px}
}

/* Opaque sticky strips fill the scroll viewport without shifting list contents. */
.bulk-toolbar::before,.inbox-view-tabs::before{content:"";position:absolute;inset:0;height:auto;background:inherit;box-shadow:0 0 0 100vmax #fff;clip-path:inset(0 -100vmax);z-index:-1;pointer-events:none}
.bulk-toolbar.is-stuck::before,.inbox-view-tabs.is-stuck::before{top:calc(-1 * var(--sticky-inset,24px) - 2px)}
.inbox-view-tabs{background:#fff;margin-bottom:0}

/* Overview numbers are direct navigation, with restrained pointer feedback. */
.topbar{border-bottom:1px solid var(--line)}
button.stat{font:inherit;text-align:left;color:inherit;cursor:pointer;min-width:0}
button.stat:hover{background:#faf8ff}
button.stat:focus-visible{outline:2px solid var(--blue);outline-offset:-3px}
button.stat .stat-symbol{width:36px;height:36px;transition:transform .16s ease}
button.stat .stat-symbol .icon{width:23px;height:23px}
button.stat:hover .stat-symbol{transform:translateY(-2px)}
button.stat:active .stat-symbol{transform:scale(.94)}
.inbox-sync-status{display:flex;flex-wrap:wrap;gap:12px 28px;margin:0 0 24px;padding:14px 0;border-block:1px solid var(--line);color:var(--secondary);font-size:13px;line-height:1.7}
.inbox-sync-status>div{display:flex;gap:10px;align-items:baseline;min-width:0}
.inbox-sync-status dt{color:var(--muted)}
.inbox-sync-status dd{margin:0;font-weight:550;overflow-wrap:anywhere}

/* Skills expand within the composer, including narrow remote screens. */
.skill-control{min-width:0;max-width:100%;margin:3px 0 8px}
.skill-toggle{min-height:32px;padding:4px 10px;font-size:13px}
.skill-picker{width:100%;min-width:0;border:1px solid var(--line);border-radius:9px;padding:14px;margin-top:8px;background:#fff;color:var(--secondary);font-size:13px;text-align:left}
.skill-picker[hidden]{display:none}
.skill-picker-head{display:flex;gap:12px;align-items:center}
.skill-picker-head>strong{flex:1}
.skill-picker-head>button{border:0;background:none;color:var(--blue);font:inherit;cursor:pointer;padding:4px}
.skill-picker>p{font-size:12px;line-height:1.7;color:var(--muted);margin:6px 0}
.skill-options{max-height:230px;overflow:auto;overscroll-behavior:contain;margin-top:10px}
.skill-options label{display:flex!important;gap:10px;align-items:flex-start!important;padding:10px 2px;border-bottom:1px solid var(--line);cursor:pointer;white-space:normal}
.skill-options input{width:16px;height:16px;flex:none;margin:3px 0 0;accent-color:var(--blue)}
.skill-options label>span{min-width:0;display:grid;gap:3px;line-height:1.6;overflow-wrap:anywhere}
.skill-options strong{font-size:13px;font-weight:550}
.skill-options small{font-size:11px;font-weight:400;color:var(--muted);margin-left:5px}
.skill-options label>span>span,.message-skills{font-size:12px;color:var(--muted);line-height:1.7}
.pc-composer .skill-control{margin:0 0 3px}
.pc-composer .skill-toggle{background:none;border:0;color:var(--pc-muted);min-height:28px;padding-left:2px}
.pc-composer:has(.skill-picker:not([hidden])) .skill-picker{max-height:40vh;overflow:auto}
@media(max-width:650px){button.stat .stat-symbol{width:32px;height:32px}button.stat .stat-symbol .icon{width:21px;height:21px}.inbox-sync-status{gap:8px 18px;font-size:12px;margin-bottom:18px;padding:12px 0}.inbox-sync-status>div{gap:7px}.skill-picker{padding:10px}.skill-options{max-height:180px}}
@media(prefers-reduced-motion:reduce){button.stat .stat-symbol{transition:none}button.stat:hover .stat-symbol,button.stat:active .stat-symbol{transform:none}}
