/* Desktop application shell; each pane owns its scrolling. */
/* Shared conversation typography; both workspaces use the existing AI 搭档 palette. */
:root{--pc-text:var(--ink);--pc-secondary:var(--secondary);--pc-muted:var(--muted);--pc-meta:var(--muted);--pc-input:var(--ink);--pc-placeholder:var(--muted);--pc-user-text:var(--ink);--pc-title:var(--ink)}
.pc-progress>.pc-progress-body{max-height:340px;overflow:auto;overscroll-behavior:contain;padding:12px 0 0;white-space:normal}.pc-assistant .pc-progress .pc-progress-quote{margin:0;padding:0 16px;border:0;border-left:3px solid var(--pc-line,#ebeaf0);background:transparent;color:var(--muted,#868690);font-size:13px;line-height:1.85;overflow-wrap:anywhere}.pc-progress-quote>:first-child{margin-top:0}.pc-progress-quote>:last-child{margin-bottom:0}.pc-progress>summary{cursor:pointer}@media(max-width:650px){.pc-progress>.pc-progress-body{max-height:280px}}
:root{--mobile-nav-safe-bottom:max(20px,calc(12px + env(safe-area-inset-bottom,0px)));--mobile-nav-height:calc(55px + var(--mobile-nav-safe-bottom));--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:12px;margin-top:4px;color:var(--pc-muted)}.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:12px;color:var(--pc-muted)}.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:var(--pc-muted);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:var(--pc-secondary);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:var(--pc-text);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:var(--pc-input)}.pc-composer textarea::placeholder{color:var(--pc-placeholder)}.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:12px;color:var(--pc-muted);text-align:center;padding:8px}.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) - var(--mobile-nav-height));min-height:0}#workspace[data-view="remote"] #main-content{flex:1;min-height:0}#workspace[data-view="remote"] .mobile-tabs{height:var(--mobile-nav-height);padding-bottom:var(--mobile-nav-safe-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:var(--pc-muted)}
#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}
}

.brand-name .app-version{display:inline-block;margin-left:8px;font-size:9px;letter-spacing:0;font-weight:400;color:var(--muted);vertical-align:baseline;white-space:nowrap}
.pc-codex-permissions{flex:none;display:flex;align-items:flex-start;gap:16px;margin:12px 16px 0;padding:12px 16px;border:1px solid var(--line);border-radius:8px;background:var(--surface);color:var(--secondary);font-size:12px;line-height:1.6;overflow-wrap:anywhere}
.pc-codex-permissions[hidden]{display:none}.pc-codex-permissions>div:first-child{flex:1;min-width:0}.pc-codex-permissions strong{color:var(--ink);font-size:13px}.pc-codex-permissions p{margin:4px 0}.pc-codex-permissions small{color:var(--muted)}.pc-permission-actions{display:flex;flex-wrap:wrap;gap:8px}.pc-permission-actions .button{min-height:40px;white-space:normal}
@media(max-width:650px){.pc-codex-permissions{flex-direction:column;margin:8px 12px 0;padding:12px;gap:8px}.pc-permission-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.pc-permission-actions .button{min-height:44px}}
/* 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}
/* Keep every destination readable; only the menu scrolls on short windows. */
@media(min-width:761px){
 #workspace .sidebar{padding:18px 12px 12px;overflow:hidden}
 .native-desktop #workspace .sidebar{padding-top:36px}
 .remote-client #workspace .sidebar{padding-top:84px}
 #workspace .sidebar .brand{flex:none;justify-content:flex-start;gap:10px;padding:0 10px;margin:0 0 8px}
 #workspace .sidebar .brand-logo{flex:none;width:32px;height:32px;border-radius:9px}
 #workspace .sidebar .brand-name{display:block;font-size:18px;line-height:1.25;letter-spacing:-.3px;white-space:nowrap}
 #workspace .sidebar .brand-name small{font-size:10px;line-height:1.3;margin-top:3px}
 #workspace .sidebar .nav-list{flex:1 1 0;min-height:0;margin:0;display:flex;flex-direction:column;gap:2px;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin}
 #workspace .sidebar .nav-group-label{flex:none;height:auto;margin:16px 10px 4px;padding:0;border:0;background:none;font-size:12px;line-height:16px;letter-spacing:0;color:var(--muted)}
 #workspace .sidebar .nav-group-label:first-child{margin-top:0}
 #workspace .sidebar .nav-item{flex:none;justify-content:flex-start;min-height:36px;margin:0;padding:8px 10px;font-size:14px;line-height:20px;gap:10px;border-radius:8px}
 #workspace .sidebar .nav-item .icon{flex:none;width:18px;height:18px}
 #workspace .sidebar .nav-text{display:block;min-width:0;white-space:nowrap}
 #workspace .sidebar .nav-count{position:static;flex:none;margin-left:auto;min-width:20px;padding:0 5px;font-size:11px;line-height:20px;font-variant-numeric:tabular-nums}
 #workspace .sidebar .nav-item:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
 #workspace .sidebar-bottom{flex:none;padding-top:8px;margin-top:8px;border-top:1px solid #e7e3ee}
 #workspace .sidebar-bottom .nav-item{margin:0}
 #workspace .sidebar .workspace-label{display:none}
}
.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){
 #workspace .sidebar .brand{margin-bottom:8px}
 #workspace .sidebar .brand-name{font-size:17px}
 #workspace .sidebar .nav-list{gap:1px}
 #workspace .sidebar .nav-group-label{margin-top:10px;margin-bottom:3px;line-height:14px}
 #workspace .sidebar .nav-item{min-height:34px;padding-top:7px;padding-bottom:7px}
}
@media(min-width:761px) and (max-height:680px){
 .native-desktop #workspace .sidebar{padding-top:36px}
 .remote-client #workspace .sidebar{padding-top:80px}
 #workspace .sidebar .brand{margin-bottom:8px}
 #workspace .sidebar .brand-logo{width:28px;height:28px;border-radius:8px}
 #workspace .sidebar .brand-name small{display:none}
 #workspace .sidebar .nav-group-label{margin-top:6px;margin-bottom:2px}
 #workspace .sidebar .nav-item{min-height:32px;padding-top:6px;padding-bottom:6px}
}
@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}}
@media(max-width:480px){
 .app-surface .dialog-head:has(>.surface-back){flex-direction:column;gap:10px}
 .app-surface .dialog-head:has(>.surface-back)>div{flex:none;width:100%}
 .app-surface .surface-back{min-height:40px;padding:9px 10px;margin-left:-10px}
 #new-dialog .dialog-foot{display:grid;grid-template-columns:minmax(0,1fr)}
 #new-dialog .dialog-foot .button{width:100%;min-height:44px}
}
.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, 任务通 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:var(--pc-meta);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:var(--pc-meta);font-variant-numeric:tabular-nums}
.pc-user p{background:#f0ebfa;color:var(--pc-user-text);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 0 0 auto;padding:13px 17px;background:#f0ebfa;border-color:#e9e1f5;border-radius:14px 4px 14px 14px;color:var(--pc-user-text)}
.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:32px;-webkit-app-region:drag;user-select:none}
 .native-desktop .sidebar>.brand{-webkit-app-region:no-drag;user-select:none;cursor:pointer}
 .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}

/* Compact directory and session navigation. */
.pc-tasks .pc-pane-head{min-height:54px;padding:12px 14px}.pc-tasks .pc-search{margin:0 12px 12px;width:calc(100% - 24px)}.pc-task-items{padding:0 8px 8px}.pc-folder{margin:0 0 5px}.pc-folder-heading{min-height:39px;gap:0}.pc-folder-toggle{padding:7px 5px;min-height:38px;color:var(--secondary,#766d80)}.pc-folder-toggle strong{font-size:13px;color:var(--ink,#443d4c)}.pc-folder-toggle small{flex-shrink:0}.pc-folder-action,.pc-task-action{display:grid;place-items:center;flex:none;width:27px;height:30px;padding:4px;border:0;border-radius:6px;background:transparent;color:var(--muted,#968a9f);font:inherit;font-size:17px;cursor:pointer}.pc-folder-action svg,.pc-task-action svg{width:15px;height:15px}.pc-folder-action:hover,.pc-task-action:hover{background:var(--blue-soft);color:var(--blue)}.pc-folder-name{flex:1;min-width:0;padding:5px 7px;border:1px solid var(--blue);border-radius:6px;background:var(--surface,#fff);font:inherit;font-size:13px}.pc-folder-content{margin-left:11px;padding-left:7px}.pc-folder-computer{padding:2px 8px 3px;font-size:11px}.pc-folder-import{padding:5px 8px}.pc-task-row{display:flex;align-items:center;min-width:0;border-radius:7px;margin:1px 0}.pc-task-row:hover{background:#f4f1f9}.pc-task-row.selected{background:var(--blue-soft)}.pc-task-row .pc-task{flex:1;min-width:0;width:auto;margin:0;padding:8px 4px 8px 8px}.pc-task-row .pc-task:hover{background:transparent}.pc-task-row .pc-task b{line-height:1.4}.pc-task-row .pc-task span{margin-top:2px}.pc-task-row .pc-task-action{margin-right:3px;opacity:.55}.pc-task-row:hover .pc-task-action,.pc-task-row:focus-within .pc-task-action{opacity:1}.pc-list-footer{display:flex;flex-direction:column;gap:3px;padding:9px 12px 12px;border-top:1px solid var(--pc-line)}.pc-list-footer button{width:100%;min-height:32px;text-align:left;border:0;background:transparent;border-radius:6px;padding:6px 8px;color:var(--secondary,#766d80);font:inherit;font-size:12px;cursor:pointer}.pc-list-footer button:hover{background:var(--blue-soft);color:var(--blue)}.pc-list-footer .pc-manage{margin:0}.pc-folder-action:focus-visible,.pc-task-action:focus-visible,.pc-list-footer button:focus-visible,.pc-folder-toggle:focus-visible,.pc-task:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.pc-thread-name{flex:1;min-width:0;margin:4px;padding:7px;border:1px solid var(--blue);border-radius:6px;background:var(--surface,#fff);color:var(--ink);font:inherit;font-size:13px}
@media(max-width:760px){.pc-folder-action,.pc-task-action{width:40px;height:44px}.pc-list-footer button{min-height:44px}}
@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}
.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-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-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}
/* Electron drag rectangles are native hit regions, even behind top-layer dialogs.
 * Suspend background dragging for the modal stack; restore it after the last close. */
:root.has-app-modal :is(.topbar,.sidebar-drag-handle,.sidebar>.brand,.remote-view-bar){-webkit-app-region:no-drag;app-region:no-drag}
dialog.app-modal,dialog.app-modal::backdrop,dialog.app-modal [popover]{-webkit-app-region:no-drag;app-region:no-drag}

dialog.app-modal{position:fixed;inset:0;width:min(960px,calc(100vw - 64px));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(1080px,calc(100vw - 64px))}
.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}
.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)}

/* Remote header occupies its own space above every app surface. */
.remote-client{--remote-header-height:44px;--workspace-height:calc(100dvh - var(--remote-header-height))}
.remote-client body{padding-top:var(--remote-header-height)}
.remote-client .remote-view-bar{height:var(--remote-header-height);padding:0 16px 0 90px;gap:16px;border-bottom:1px solid #e2daef;color:#665873}
.remote-view-summary{display:flex;align-items:center;gap:14px;min-width:0}
.remote-view-summary strong{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.remote-view-summary span{font-size:12px;color:#71657f;white-space:nowrap}
.remote-view-actions{display:flex;gap:6px;flex:none}
.remote-view-bar .remote-view-actions button{border:1px solid #ddd3ed;border-radius:6px;padding:4px 10px;white-space:nowrap}
.remote-view-bar button:disabled{opacity:.5;cursor:wait}
.remote-view-bar[data-state=offline],.remote-view-bar[data-state=expired]{background:#fff7e8}
.remote-client #workspace,.remote-client #workspace[data-view="remote"]{height:calc(100dvh - var(--remote-header-height));min-height:0}
.remote-client #workspace .app,.remote-client #workspace[data-view="remote"] .app{height:100%;min-height:0}
.remote-client #workspace .topbar{height:52px;min-height:52px;padding-top:0}
.remote-client #workspace .sidebar{top:var(--remote-header-height);height:calc(100dvh - var(--remote-header-height));padding-top:20px}
.remote-client .sidebar-drag-handle{display:none}
.remote-client #login{height:calc(100dvh - var(--remote-header-height));min-height:0;grid-template-columns:minmax(0,1fr)}
.remote-client #login .login-visual{display:none}
.remote-client #login .login-main{height:100%;max-height:100%;padding:32px 24px}
.remote-client #login .login-card{max-width:560px}
.remote-client #login .login-card>.brand{display:flex}
.remote-recovery-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}
@media(max-width:1000px){.remote-view-summary span{display:none}.remote-view-actions{gap:4px}.remote-view-bar .remote-view-actions button{padding:4px 7px}}
@media(max-width:600px){.remote-client{--remote-header-height:80px}.remote-client .remote-view-bar{padding:8px 12px;flex-wrap:wrap;gap:4px}.remote-view-summary{width:100%}.remote-view-summary span{display:inline;font-size:11px}.remote-view-actions{width:100%;justify-content:space-between}.remote-client #workspace .app{padding-bottom:var(--mobile-nav-height)}}

/* Entry: give the work-computer and sign-in steps the available screen width. */
#login{display:grid;grid-template-columns:minmax(280px,.9fr) minmax(0,1.6fr);background:#fff}
#login[hidden]{display:none}
/* The sign-in screen also needs a native titlebar before the workspace exists. */
@media(min-width:768px){
 :root.native-desktop:not(.remote-client) #login::before{content:"";position:fixed;inset:0 0 auto;height:calc(var(--space-4,16px) * 2);z-index:2;-webkit-app-region:drag;user-select:none}
 :root.native-desktop:not(.remote-client) #login :is(.login-visual>.brand,.login-card>.brand){-webkit-app-region:drag;user-select:none}
 :root.native-desktop:not(.remote-client):is(.has-app-modal,:has([role="dialog"][data-state="open"])) #login::before,
 :root.native-desktop:not(.remote-client):is(.has-app-modal,:has([role="dialog"][data-state="open"])) #login :is(.login-visual>.brand,.login-card>.brand){-webkit-app-region:no-drag;pointer-events:none}
}
#login .login-visual{display:flex;padding:40px clamp(28px,3.3vw,64px);height:100dvh;min-height:0;background:#f3effa}
#login .login-visual::after{width:auto;height:auto;border:0;border-radius:0;box-shadow:none;inset:0}
#login .login-visual>.brand{position:relative;z-index:1;gap:12px}
#login .login-visual .brand-logo{width:44px;height:44px;flex-shrink:0}
#login .login-visual .brand-name{font-size:25px;white-space:nowrap}
#login .login-visual .brand-name small{font-size:11px;letter-spacing:0}
#login .login-copy{padding:36px 0}
#login .login-copy h1{font-size:clamp(28px,2.4vw,44px);line-height:1.65;letter-spacing:-.8px;color:#35294c}
#login .login-copy>p{font-size:14px;line-height:2;color:#80728e;margin-top:22px}
#login .login-process{gap:10px;margin-top:28px}
#login .login-process span{font-size:12px;padding:7px 14px;border-color:#e4dbee;color:#88749e}
#login .login-footer{font-family:inherit;font-size:11px;letter-spacing:0;color:#998aaa;margin:0}
#login .login-main{height:100%;min-height:0;max-height:100dvh;padding:32px clamp(28px,3.3vw,64px);gap:24px;background:#fff}
#login .login-card{max-width:760px;width:100%;min-width:0}
#login .login-card>.brand{display:none;align-items:center;gap:12px;padding:0;margin-bottom:24px}
#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 16px;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 .login-card:has([data-authorizing=true]) .login-note{display:none}
#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:959px){
 #login{grid-template-columns:minmax(0,1fr)}
 #login .login-visual{display:none}
 #login .login-card>.brand{display:flex}
 #login .login-main{padding:28px 32px;gap:20px}
}
@media(max-width:650px){
 #login .login-main{padding:24px 20px;gap:20px}
 #login .login-card>.brand{margin-bottom:20px}
 #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.is-stuck::before,.inbox-view-tabs.is-stuck::before,.agent-reference-toolbar.is-stuck::before{content:"";position:absolute;top:calc(-1 * var(--sticky-inset,24px) - 2px);bottom:-1px;left:calc(-1 * var(--sticky-left,0px));right:calc(-1 * var(--sticky-right,0px));background:inherit;z-index:-1;pointer-events:none;border-bottom:1px solid var(--line)}
.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:24px;height:24px;color:var(--muted);background:transparent}
button.stat .stat-symbol .icon{width:20px;height:20px}
.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-x:contain;overscroll-behavior-y:auto;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}}

/* Image previews float above the current page and preserve its scroll and draft. */
dialog.app-modal.image-viewer,dialog.app-modal.attachment-preview{width:min(1000px,calc(100vw - 32px));max-height:calc(100dvh - 48px);overflow:hidden}
.app-modal.image-viewer .dialog-head,.app-modal.attachment-preview .dialog-head{padding:16px 20px;border-bottom:1px solid var(--line);align-items:center}
.app-modal.image-viewer .dialog-head h2,.app-modal.attachment-preview .dialog-head h2{font-size:16px;overflow-wrap:anywhere}
.app-modal.image-viewer .image-viewer-body,.app-modal.attachment-preview .dialog-body{min-height:0;overflow:auto;padding:16px 20px;background:#f7f6fa;overscroll-behavior:contain}
.app-modal.image-viewer .image-viewer-body img,.app-modal.attachment-preview .pc-full-preview{max-width:100%;max-height:65vh;max-height:65dvh;width:auto;height:auto;object-fit:contain;display:block;margin:auto}
.app-modal.image-viewer .image-viewer-body.original-size img{max-width:none;max-height:none;margin:0}
.app-modal.image-viewer .image-viewer-body.image-zoom-viewport{height:min(65dvh,680px);min-height:240px;padding:0;overflow:hidden}
.app-modal.image-viewer .image-viewer-body.image-zoom-viewport [hidden]{display:none}
.app-modal.image-viewer .image-viewer-body.image-zoom-viewport [role=status]:not([hidden]){position:absolute;inset:0;display:grid;place-items:center;margin:0}
.app-modal.image-viewer .dialog-foot{padding:12px 20px;flex-wrap:wrap;gap:8px}
@media(max-width:650px){dialog.app-modal.image-viewer,dialog.app-modal.attachment-preview{width:calc(100vw - 20px);max-height:calc(100dvh - 24px)}.app-modal.image-viewer .image-viewer-body,.app-modal.attachment-preview .dialog-body{padding:12px}.app-modal.image-viewer .dialog-foot{padding:12px}}

/* Mobile sheets preserve context; reading, conversation and long editing use a full screen. */
@media(max-width:650px){
 :root body dialog.app-modal[data-workspace-surface][open]{
  inset:auto 0 max(0px,calc(100dvh - var(--popup-height,100dvh) - var(--popup-top,0px)));
  width:100%;max-width:100%;height:auto;max-height:calc(var(--popup-height,100dvh) - 16px);
  margin:0;border:0;border-radius:20px 20px 0 0;box-shadow:0 -12px 48px #24183c26;
 }
 dialog.app-modal::backdrop{background:#211a375c}
 :root body dialog.app-modal[data-workspace-surface][open] .dialog-head{padding:18px 20px 14px}
 :root body dialog.app-modal[data-workspace-surface][open] .dialog-head :is(.icon-button,[data-close]){min-width:44px;min-height:44px}
 :root body dialog.app-modal[data-workspace-surface][open] .dialog-body{overscroll-behavior:contain;scroll-padding-block:16px}
 :root body dialog.app-modal[data-workspace-surface][open] .dialog-foot{padding:14px 20px max(16px,env(safe-area-inset-bottom));gap:10px}
 :root body dialog.app-modal[data-workspace-surface][open] .dialog-foot>.button{flex:1;min-height:44px;white-space:normal}
 :root body dialog.app-modal[data-workspace-surface][open] :is(input,textarea,select){font-size:16px}
 :root body dialog.app-modal[data-mobile-presentation=fullscreen][open]{
  inset:var(--popup-top,0px) 0 auto;height:var(--popup-height,100dvh);max-height:var(--popup-height,100dvh);border-radius:0;
 }
 :root body dialog.app-modal[data-mobile-presentation=fullscreen][open] .dialog-head{padding-top:max(14px,env(safe-area-inset-top))}
 :root #mobile-navigation.app-modal .dialog-body{padding:0 16px max(20px,env(safe-area-inset-bottom))}
 :root #mobile-navigation.app-modal .mobile-menu-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 :root #mobile-navigation.app-modal .mobile-menu-grid>.button{justify-content:flex-start;min-height:48px;padding:12px;white-space:normal}
 :root #capability-tool-detail.app-modal{width:100%;max-width:100%}
}
.pc-project-context{display:block;margin-top:10px;font-size:12px;color:var(--secondary,#777283);line-height:1.7;overflow-wrap:anywhere}

/* Settings are independent modules: actions and feedback stay inside their card. */
#settings-shell{grid-template-columns:168px minmax(0,1fr);gap:28px;max-width:1200px}
#settings-tabs{gap:var(--space-3);padding:var(--space-1);max-height:calc(100dvh - 140px);overflow-y:auto;scrollbar-width:thin}
.settings-nav-group{display:flex;flex-direction:column;gap:4px}
.settings-nav-label{padding:0 12px 7px;color:var(--muted);font-size:11px;line-height:1.5}
#settings-tabs button{display:flex;align-items:center;gap:var(--space-2);padding:var(--space-2) var(--space-3);min-height:40px;color:var(--secondary);font-size:13px;line-height:1.5;border-radius:8px;position:relative}
#settings-tabs button>.icon{width:18px;height:18px;flex-shrink:0}
#settings-tabs button>span{min-width:0;overflow-wrap:anywhere}
#settings-tabs button[aria-current="page"]:before{content:"";position:absolute;left:0;top:var(--space-3);bottom:var(--space-3);width:3px;border-radius:3px;background:var(--blue)}
.settings-mode-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4);margin:var(--space-5) 0}
.settings-mode-option{display:flex;align-items:flex-start;gap:var(--space-3);padding:var(--space-4);border:1px solid var(--line);border-radius:10px;background:var(--surface);cursor:pointer;line-height:1.7;min-width:0}
.settings-mode-option:has(input:checked){border-color:var(--blue);background:var(--blue-soft)}
.settings-mode-option:focus-within{outline:2px solid var(--blue);outline-offset:2px}
.settings-mode-option input{width:18px;height:18px;flex-shrink:0;margin:3px 0 0;accent-color:var(--blue)}
.settings-mode-option>.icon{margin-top:2px;color:var(--blue)}
.settings-mode-option strong,.settings-mode-option small{display:block}
.settings-mode-option strong{font-size:14px;color:var(--ink)}
.settings-mode-option small{margin-top:var(--space-1);font-size:12px;color:var(--secondary)}
.settings-source-help{margin:var(--space-3) 0 var(--space-5);font-size:12px;color:var(--secondary);line-height:1.7}
.settings-source-help summary{cursor:pointer;color:var(--blue);padding:var(--space-2) 0}
.settings-source-help p{margin:var(--space-2) 0}
.settings-source-help>code{display:block;padding:var(--space-3);border-radius:8px;background:var(--bg);overflow-wrap:anywhere}
.directory-group-row{display:flex;align-items:center;gap:var(--space-2);min-width:0}
.directory-group-row>.directory-group{flex:1;min-width:0}
.directory-group-row>.button{flex-shrink:0}
#settings-tabs button[aria-pressed="true"]{background:var(--blue-soft,#efebf7);color:var(--blue,#7254d8);font-weight:600}
#settings-tabs button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#settings-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:0 0 20px;padding:0 2px}
#settings-section-heading h2{font-size:20px;line-height:1.5;margin:0 0 5px;letter-spacing:0}
#settings-section-heading p{font-size:13px;line-height:1.8;color:var(--muted);margin:0}
#settings-section-heading>span{flex:0 1 auto;font-size:11px;line-height:1.8;color:var(--muted);text-align:right;max-width:180px;padding-top:5px}
#workspace-config .config-card{padding:24px;border-radius:12px}
#workspace-config .config-layout{max-width:none;gap:20px}
#workspace-config .config-card h2{font-size:16px;line-height:1.6}
#workspace-config .config-card>p{margin:8px 0 20px;font-size:13px;line-height:1.8}
#workspace-config .config-subsection{margin-top:24px;padding-top:24px}
#workspace-config .config-subsection h3{font-size:14px;line-height:1.6;margin-bottom:10px}
#settings-shell .config-grid{gap:20px 24px}
#settings-shell .config-check-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#settings-shell .config-check-row .config-toggle,#analysis-auto-field>.config-toggle{padding:14px 16px;border:1px solid var(--line);border-radius:8px}
#analysis-auto-field{display:grid;gap:12px}
#settings-shell #analysis-auto-field>.analysis-auto-note{margin:0;font-size:11px;line-height:1.8}
#settings-shell .analysis-provider-intro{margin-top:10px;font-size:12px;line-height:1.8}
#analysis-api-config>summary,.config-device-details>summary{font-size:14px;line-height:1.7;font-weight:600;cursor:pointer}
#analysis-route-summary{padding:12px 14px;border:1px solid var(--line);border-radius:8px}
#settings-shell .config-diagnostics-heading{margin-bottom:14px}
#settings-shell .config-diagnostics-heading h3{margin:0 0 4px}
#config-diagnostics-note{margin:0;font-size:12px;line-height:1.8;color:var(--muted)}
.config-diagnostics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.config-diagnostic{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px;padding:16px;border:1px solid var(--line);border-radius:9px;min-width:0}
.config-diagnostic>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.config-diagnostic strong{font-size:13px;line-height:1.6;font-weight:600}
.config-diagnostic span{font-size:11px;line-height:1.7;color:var(--muted)}
#settings-shell .config-diagnostic>.button{font-size:12px;min-height:34px;padding:6px 11px;white-space:nowrap}
#settings-shell .config-diagnostic .config-status{grid-column:1/-1;font-size:12px;line-height:1.8;padding:12px;margin:0;overflow-wrap:anywhere}
#settings-shell .config-device-details #analysis-devices{padding-top:16px}
#settings-shell .config-device-details h3{font-size:13px;margin:0}
#workspace-config .config-module-footer{position:static;margin-top:24px;padding-top:18px;border-top:1px solid var(--line);background:none}
.config-module-actions{display:flex;align-items:center;justify-content:space-between;gap:16px}
#settings-shell .config-module-actions p{margin:0;font-size:12px;line-height:1.8;color:var(--muted)}
#settings-shell .config-module-actions p.is-dirty{color:var(--blue)}
#settings-shell .config-module-actions>.button{min-height:38px;padding:8px 16px;font-size:13px;white-space:nowrap}
#settings-shell .config-module-error{padding:12px 14px;margin:0 0 14px;font-size:12px;line-height:1.8;overflow-wrap:anywhere}
#settings-shell .config-actions{gap:12px;margin-top:20px!important;padding:16px 0 0!important}
#settings-shell .config-actions>p{font-size:12px;line-height:1.8;margin:0 auto 0 0;flex:1;min-width:0}
#settings-shell .config-actions>.button{min-height:36px;padding:7px 13px;font-size:12px;flex:none}
@media(max-width:1199px){
 #settings-shell{grid-template-columns:150px minmax(0,1fr);gap:20px}
 .config-diagnostics-grid{grid-template-columns:minmax(0,1fr)}
 #settings-section-heading{flex-wrap:wrap;gap:8px}
 #settings-section-heading>span{text-align:left;max-width:none;padding:0}
}
@media(max-width:760px){
 #settings-shell{display:block}
 .settings-mode-options{grid-template-columns:minmax(0,1fr)}
 .settings-mode-option{min-height:44px;padding:var(--space-4)}
 .directory-group-row{flex-wrap:wrap}
 .directory-group-row>.directory-group{flex-basis:100%}
 #settings-tabs{max-height:none;overflow-y:hidden;gap:4px;padding:2px 2px 8px;margin-bottom:16px}
 .settings-nav-group{display:contents}.settings-nav-label{display:none}
 #settings-tabs button{min-height:38px;padding:9px 12px;font-size:13px}
 #settings-section-heading{margin-bottom:16px}
 #settings-section-heading h2{font-size:18px}
 #workspace-config .config-card{padding:20px 16px}
 #settings-shell .config-grid,#settings-shell .config-check-row{grid-template-columns:minmax(0,1fr)}
 #settings-shell .config-check-row .config-toggle,#analysis-auto-field>.config-toggle{padding:12px}
 .config-module-actions{align-items:flex-start;flex-direction:column;gap:12px}
 #settings-shell .config-module-actions>.button{width:100%;min-height:42px}
 #settings-shell .config-actions{align-items:flex-start}
 .config-diagnostic{padding:13px;gap:10px}
 #settings-shell .config-diagnostic>.button{min-height:38px}
}

/* Configuration guide: compact status, actionable steps, and optional integrations. */
.setup-guide{padding:22px 24px}.setup-guide-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.setup-guide h3{font-size:16px;margin:0 0 6px}.setup-guide p{font-size:13px;line-height:1.8;color:#82798d;margin:0}.setup-guide-heading>.button{flex-shrink:0}.setup-goals{display:flex;gap:8px;flex-wrap:wrap;margin:20px 0 14px}.setup-goals [aria-pressed=true]{background:#eee8fa;color:#6244be;border-color:#d8cbed}.setup-guide-progress{padding:10px 12px;background:#f6f3fa;border-radius:7px}.setup-guide-steps{list-style:none;margin:8px 0 18px;padding:0}.setup-guide-steps li{display:grid;grid-template-columns:28px minmax(0,1fr) auto;align-items:start;gap:12px;padding:20px 0;border-bottom:1px solid #eeeaf3}.setup-step-number{display:flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#f0ebfa;color:#7254d8;font-size:12px}.is-done .setup-step-number{background:#edf4ef;color:#52765e}.setup-step-title{display:flex;align-items:baseline;gap:12px;flex-wrap:wrap;margin-bottom:6px}.setup-step-title h4{font-size:14px;font-weight:600;margin:0}.setup-step-title>span{font-size:12px;color:#8f7aa4}.is-done .setup-step-title>span{color:#52765e}.setup-guide-steps li>.button{font-size:12px;margin-top:2px}.setup-guide-footer>div{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.first-use-intro{padding:12px 16px;gap:12px;margin-bottom:16px}.first-use-intro p{margin:4px 0 0}.first-use-intro[hidden],.setup-guide[hidden]{display:none}
@media(max-width:760px){.setup-guide{padding:18px 16px}.setup-guide-heading{flex-wrap:wrap;gap:10px}.setup-guide-steps li{grid-template-columns:26px minmax(0,1fr);gap:10px;padding:16px 0}.setup-guide-steps li>.button{grid-column:2;justify-self:start}.setup-guide-footer .button{white-space:normal;text-align:left}.setup-step-title{gap:6px 10px}}

/* Settings: persistent actions, distinct connection tasks and readable device cards. */
#settings-content.has-save-bar{padding-bottom:110px}
#settings-content.has-save-bar .config-module-footer{display:none}
#settings-save-bar{position:fixed;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px calc(14px + env(safe-area-inset-bottom));border:1px solid var(--line);border-bottom:0;border-radius:12px 12px 0 0;background:color-mix(in srgb,var(--surface,#fff) 96%,transparent);box-shadow:0 -6px 24px #30213c0a;backdrop-filter:blur(14px);box-sizing:border-box}
#settings-save-bar[hidden]{display:none}#settings-save-bar p{font-size:12px;color:var(--secondary);margin:0;min-width:0;overflow-wrap:anywhere}.settings-save-actions{display:flex;gap:8px;flex-shrink:0}#settings-save-bar .button{min-height:42px;white-space:normal}
#settings-section-heading{align-items:center}#settings-section-heading>.button{flex-shrink:0}
.pc-device-grid{align-items:start}.pc-device-heading{margin-bottom:16px}.pc-device-heading h1{font-size:17px;margin:0 0 4px}.pc-device-heading p{margin:0}
.pc-connections{margin-top:28px}.pc-connections-heading h2{font-size:18px;margin:0 0 5px;color:var(--ink)}.pc-connections-heading p{font-size:13px;color:var(--muted);margin:0}
.pc-connection-tabs{display:flex;gap:5px;padding:5px;background:#eeebf3;border-radius:10px;margin:18px 0;max-width:440px}.pc-connection-tabs button{flex:1;border:0;border-radius:7px;background:transparent;color:var(--secondary);padding:11px 15px;min-height:44px;font:inherit;font-size:13px;cursor:pointer}.pc-connection-tabs [aria-selected=true]{background:white;color:var(--blue);box-shadow:0 2px 5px #3621440b}.pc-connection-tabs button:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
#pc-access-panel,#pc-connect-panel,#pc-migration-panel{display:grid;gap:18px}#pc-access-panel[hidden],#pc-connect-panel[hidden],#pc-migration-panel[hidden]{display:none}
.pc-access-guides{display:contents}
@media(max-width:700px){.pc-lan-guide .pc-share-url{font-size:16px;min-height:44px}.pc-lan-guide .pc-button{min-height:44px}}
.pc-card-heading{display:flex;justify-content:space-between;align-items:start;gap:16px}.pc-card-heading h2{margin-bottom:4px}.pc-card-heading p{margin:0;font-size:12px}.pc-card-heading>.pc-button{margin:0;flex-shrink:0}
.pc-pair-controls{display:flex;align-items:end;flex-wrap:wrap;gap:12px;margin-top:20px;padding:16px;background:#f8f6fb;border:1px solid var(--pc-line);border-radius:9px}.pc-pair-controls[hidden]{display:none}.pc-pair-controls label{display:grid;gap:6px;font-size:12px;min-width:180px;flex:1}.pc-pair-controls select{min-height:42px;background:#fff}.pc-pair-controls>.pc-button{min-height:42px;margin:0}.pc-pair-controls>.pc-caption{flex-basis:100%;margin:0}
.pc-pair-result{display:flex;flex-wrap:wrap;align-items:center;gap:10px}.pc-pair-result:empty{display:none}.pc-pair-result:not(:empty){padding:16px;margin-top:14px;background:#f2eefb;border-radius:9px}.pc-pair-result code{font-size:20px;letter-spacing:1px;color:var(--blue);overflow-wrap:anywhere;max-width:100%}.pc-pair-result span{font-size:12px;color:var(--secondary)}
.pc-authorized-devices{margin-top:20px}.pc-authorized-device{display:grid;grid-template-columns:38px minmax(0,1fr) auto;align-items:start;gap:12px;padding:20px 0;border-top:1px solid var(--pc-line)}.pc-device-avatar{display:grid;place-items:center;width:38px;height:38px;border:1px solid #e7e0ef;border-radius:11px;background:#f5f1fb;font-size:16px;color:#806399}.pc-authorized-info{min-width:0}.pc-authorized-info h3{margin:0 0 8px;font-size:14px;font-weight:600;color:var(--ink);overflow-wrap:anywhere;line-height:1.6}.pc-authorized-info p{margin:6px 0 0;font-size:11px;line-height:1.8;overflow-wrap:anywhere}.pc-device-tags{display:flex;flex-wrap:wrap;gap:6px}.pc-device-tags span,.pc-device-tag{font-size:10px;border:1px solid #e8e2ef;border-radius:5px;padding:2px 7px;background:#f8f6fb;color:#82718f}.pc-device-tag{margin-left:8px;display:inline-block;vertical-align:middle}.pc-authorized-actions{display:flex;flex-direction:column;gap:8px}.pc-authorized-actions .pc-button{margin:0;min-height:38px}.pc-authorized-actions .pc-danger{color:#b76a72}.pc-authorized-empty{padding:26px 16px;text-align:center;background:#faf9fc;border-radius:10px}.pc-authorized-empty strong{font-size:13px;color:var(--secondary)}.pc-authorized-empty p{font-size:12px;margin:7px 0 0}
.setup-goals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.setup-goals>.button{display:flex;flex-direction:column;align-items:start;text-align:left;gap:7px;padding:16px;white-space:normal;min-height:92px;background:#fff;border:1px solid var(--line);color:var(--ink)}.setup-goals strong{font-size:14px;font-weight:600}.setup-goals small{font-size:11px;line-height:1.7;color:var(--muted)}.setup-goals [aria-pressed=true]{box-shadow:0 0 0 1px #d8cbed;background:#f6f2fc}.setup-progress-track{height:5px;background:#eae5f2;border-radius:6px;margin:10px 0 0;overflow:hidden}.setup-progress-track>span{display:block;height:100%;background:var(--blue);border-radius:6px}.setup-guide-steps .is-next{padding:18px 14px;margin:8px -14px 0;border:1px solid #e1d7f1;border-radius:10px;background:#fbf9ff}.setup-guide-steps .is-done p{display:none}.setup-guide-steps .is-done{padding-top:14px;padding-bottom:14px}.setup-guide-footer{border-top:1px solid var(--line);padding-top:18px}.setup-guide-progress.has-error{color:#aa6464;background:#fff5f4}
@media(max-width:1000px){.pc-authorized-device{grid-template-columns:38px minmax(0,1fr)}.pc-authorized-actions{grid-column:2;flex-direction:row;flex-wrap:wrap}.setup-goals{grid-template-columns:1fr}.setup-goals>.button{min-height:0;padding:12px 14px;gap:4px}}
@media(max-width:760px){
 #settings-save-bar{padding:12px 14px calc(12px + env(safe-area-inset-bottom));gap:8px;flex-wrap:wrap;border-radius:12px 12px 0 0}#settings-save-bar p{flex-basis:100%;font-size:11px}.settings-save-actions{width:100%;flex-wrap:wrap}.settings-save-actions>.button{flex:1;min-height:44px;font-size:13px}
 #settings-content.has-save-bar{padding-bottom:145px}.pc-device-card{padding:18px 16px}.pc-card-heading{flex-wrap:wrap;gap:10px}.pc-connections{margin-top:24px}.pc-connection-tabs{max-width:none}.pc-connection-tabs button{padding:10px;font-size:13px}.pc-pair-controls{padding:12px;align-items:stretch}.pc-pair-controls>.pc-button{width:100%}.pc-authorized-actions .pc-button{min-height:44px}.pc-authorized-device{gap:10px}.pc-device-avatar{width:34px;height:34px}.pc-authorized-info h3{font-size:13px}.pc-pair-result code{font-size:17px;letter-spacing:0}.pc-device>div>span:last-child{float:none;display:inline-block;margin-left:8px}.setup-guide-steps .is-next{margin-left:0;margin-right:0;padding:14px 10px}.setup-guide-footer>div{display:grid;grid-template-columns:1fr}.setup-guide-footer .button{min-height:44px;text-align:center}
}
.settings-mobile-picker{display:none}.pc-connections{margin-top:0}.pc-connection-tabs{margin-top:0}.pc-device-heading h2{font-size:16px;margin:0}.pc-device-heading:has(+.pc-device-grid){margin:0}
@media(max-width:760px){
 #settings-tabs{display:block;position:static;overflow:visible;margin:0 0 20px;padding:0}
 #settings-tabs .settings-nav-group{display:none}.settings-mobile-picker{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:14px;font-size:12px;color:var(--secondary)}.settings-mobile-picker select{min-height:44px;font-size:14px;background:#fff;border-color:var(--line)}
 #settings-section-heading{gap:10px;align-items:start}#settings-section-heading>div{flex:1;min-width:0}#settings-section-heading>.button{font-size:12px;padding:7px 9px;min-height:36px}
}
.pc-device-card{color:var(--secondary);line-height:1.8}.pc-device-card h2{color:var(--ink);font-weight:600;margin-bottom:12px}.pc-device-card .pc-caption{color:var(--muted)}.pc-device-card .pc-device-empty{color:var(--muted)}

/* Keep navigation clear of the home indicator, including browsers with no inset. */
@media(max-width:760px){.mobile-tabs{padding-top:6px;padding-bottom:var(--mobile-nav-safe-bottom)}.toast{bottom:calc(var(--mobile-nav-height) + 16px)}#settings-save-bar{padding-bottom:12px}}

/* Inbox controls and records share one inset; sticky rows stay opaque. */
#workspace[data-view=inbox] #main-content{padding-top:12px}
#inbox-overview{margin-bottom:18px}
.inbox-sync-card{border:1px solid var(--line);border-radius:12px;background:#fff;padding:16px 20px}
#inbox-overview .inbox-toolbar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0}
.inbox-sync-heading{min-width:0}.inbox-sync-heading strong{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:600}.inbox-sync-heading p{margin:5px 0 0;font-size:12px;line-height:1.6;color:var(--muted)}
.inbox-sync-dot{width:7px;height:7px;border-radius:50%;background:var(--muted);flex:none}.inbox-sync-dot.is-enabled{background:#338368}.inbox-sync-dot.has-error{background:#bf4b5e}
.inbox-toolbar-actions{display:flex;align-items:center;gap:8px;flex:none}.inbox-toolbar-actions .button{min-height:36px;padding:7px 12px;font-size:12px}
.inbox-sync-meta{display:flex;align-items:center;justify-content:space-between;gap:10px 20px;flex-wrap:wrap;margin-top:12px}
#inbox-overview .inbox-sync-status{gap:8px 20px;margin:0;padding:0;border:0;font-size:12px}.inbox-sync-status>div{gap:7px}
#inbox-overview .inbox-read-status{margin:0;min-height:20px;font-size:11px}
.inbox-sync-details{margin-top:10px;font-size:11px;color:var(--muted)}.inbox-sync-details summary{cursor:pointer;width:fit-content}.inbox-sync-details p{margin:8px 0 0;font-size:12px;line-height:1.7}.inbox-sync-card>.error,.inbox-sync-card>.inbox-review-status{margin:12px 0 0;font-size:12px}
.inbox-sync-card .inbox-auth-action{margin-top:10px}.inbox-sync-card .inbox-auth-action .button{min-height:44px}
#inbox-records{border:1px solid var(--line);border-radius:12px;background:#fff;isolation:isolate}
#inbox-records>.panel{margin:0;border:0;border-radius:0;background:transparent}
#inbox-page .inbox-tabs-bar{position:sticky;top:0;z-index:16;background:#fff;border-radius:12px 12px 0 0;isolation:isolate}
#inbox-page .inbox-view-tabs{position:static;display:flex;gap:24px;flex-wrap:wrap;margin:0;padding:0 20px;background:#fff;border-radius:12px 12px 0 0;isolation:isolate}
#inbox-page .inbox-view-tabs [role=tab]{min-height:48px;padding:12px 0;font-size:13px}
#inbox-page .inbox-tabs-bar.is-stuck{border-radius:0}
#inbox-page .inbox-tabs-bar.is-stuck::before{content:"";position:absolute;top:calc(-1 * var(--sticky-inset,12px) - 2px);bottom:0;left:-1px;right:-1px;background:#fff;z-index:-1;pointer-events:none}
#inbox-page #inbox-bulk-toolbar{background:#fff;isolation:isolate;box-shadow:0 3px 8px #36233d05}
#inbox-page #inbox-bulk-toolbar.is-stuck::before{top:0;left:0;right:0;background:#fff}
#inbox-page .retained-action .button[data-run]{white-space:nowrap}
@media(max-width:650px){
 .inbox-sync-card{padding:14px}.inbox-sync-heading p{font-size:11px}
 #inbox-overview .inbox-toolbar{align-items:flex-start;gap:12px;flex-wrap:wrap}.inbox-toolbar-actions{width:100%;justify-content:flex-end}.inbox-toolbar-actions .button{min-height:40px}
 .inbox-sync-meta{gap:8px;margin-top:10px}#inbox-overview .inbox-sync-status{gap:6px 14px;font-size:11px}
 #inbox-page .inbox-view-tabs{flex-wrap:nowrap;gap:20px;padding:0 14px;overflow-x:auto;scrollbar-width:none}#inbox-page .inbox-view-tabs::-webkit-scrollbar{display:none}#inbox-page .inbox-view-tabs [role=tab]{flex:none;font-size:12px}
}

/* Inbox selection, content and actions use the same horizontal rhythm. */
#inbox-records{--inbox-gutter:20px;--panel-pad:var(--inbox-gutter)}
#inbox-records>.panel>.panel-head{padding-inline:var(--inbox-gutter)}
#inbox-active-panel>.detail-body{padding:0 0 20px}
#inbox-active-panel .screening-counts{margin-inline:var(--inbox-gutter)}
#inbox-active-panel .detail-body>.error,#inbox-active-panel .detail-body>.field-hint{margin-inline:var(--inbox-gutter)}
#inbox-active-panel .screening-item{padding:20px var(--inbox-gutter)}
#inbox-page #inbox-bulk-toolbar{padding-inline:var(--inbox-gutter);gap:10px 14px}
#inbox-page .bulk-actions{gap:6px 16px}
#inbox-page .inbox-bulk-delete{color:var(--red)}
#inbox-page .inbox-bulk-delete:hover{background:var(--red-soft)}
#inbox-page .retained-table-wrap{padding:0}
#inbox-page .retained-table th:first-child{width:auto;padding-left:var(--inbox-gutter)}
#inbox-page .retained-table:has(.row-select) th:first-child{padding-left:calc(var(--inbox-gutter) + 38px)}
#inbox-page .retained-table th:nth-child(2){width:24%}
#inbox-page .retained-table th:nth-child(3){width:16%}
#inbox-page .retained-table th:last-child{width:148px;padding-right:var(--inbox-gutter)}
#inbox-page .retained-table td:first-child{padding-left:var(--inbox-gutter)}
#inbox-page .retained-table td:last-child{padding-right:var(--inbox-gutter)}
#inbox-page .retained-detail-row .screening-select-row{gap:0}
#inbox-page .retained-record-row:has(.row-select)+.retained-detail-row .screening-item-body{padding-inline-start:38px}
#inbox-page .retained-detail-row .screening-item-body{overflow-wrap:anywhere}
.inbox-row-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
#inbox-page .inbox-row-actions .button{min-width:108px;min-height:40px;padding:8px 12px;justify-content:center;white-space:nowrap;font-size:12px}
#inbox-page .inbox-row-actions .inbox-open-task{color:var(--blue-dark);background:var(--blue-soft);border-color:transparent}
#inbox-page .inbox-row-actions .inbox-open-task:hover{background:#e9e0fb}
#inbox-page .retained-action [aria-expanded=true] .icon{transform:rotate(180deg)}
#inbox-self_notes-panel>.screening-list{padding-inline:var(--inbox-gutter)}
#inbox-self_notes-panel .self-note-head>.row-select{flex:none;align-self:flex-start;margin-top:-4px}
#delete-record-name{white-space:pre-line;max-height:240px;overflow:auto;overflow-wrap:anywhere}
@media(max-width:650px){
 #inbox-records{--inbox-gutter:14px}
 #inbox-active-panel .screening-item{padding-block:16px}
 #inbox-page .bulk-actions{gap:4px 12px}
 #inbox-page .bulk-actions .button{min-height:40px}
 #inbox-page .retained-record-row{padding:16px var(--inbox-gutter);gap:10px}
 #inbox-page .retained-record-row>td:first-child,#inbox-page .retained-record-row>td:last-child{padding:0}
 #inbox-page .retained-action{grid-column:1/-1;grid-row:auto;justify-self:stretch}
 #inbox-page .inbox-row-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(112px,1fr));gap:8px;padding-top:4px}
 #inbox-page .retained-record-row:has(.row-select) .inbox-row-actions{margin-inline-start:38px}
 #inbox-page .inbox-row-actions .button{min-width:0;min-height:44px}
 #inbox-page .retained-detail-row>td{padding-inline:var(--inbox-gutter)}
}

.pc-history-context{display:flex;flex-wrap:wrap;gap:12px;align-items:center}.pc-history-context>strong{flex:1 1 220px}.pc-history-context>label:not(.pc-history-archived){width:200px}.pc-history-context .pc-history-archived{display:flex;align-items:center;gap:8px;width:auto}.pc-history-archived input{width:16px;height:16px}.pc-history-context button{align-self:flex-end}
@media(max-width:600px){.pc-history-context>strong{flex-basis:100%}.pc-history-context>label:not(.pc-history-archived){flex:1;min-width:150px}.pc-history-context .pc-history-archived{flex-basis:100%}.pc-history-item{grid-template-columns:minmax(0,1fr);gap:8px}.pc-history-item time{grid-row:2}}
.pc-history-entry{display:grid;gap:8px}.pc-history-entry .pc-history-item{width:100%}.pc-history-entry .pc-history-app{justify-self:end;min-height:40px}
.pc-history-item:disabled{cursor:not-allowed}.pc-history-item:disabled:hover strong{color:inherit}

/* Computer connections and migration share the settings primitives. */
.pc-connection-tabs{max-width:600px;background:var(--bg);gap:var(--space-1);padding:var(--space-1)}
.pc-connection-tabs button{min-width:0;padding:var(--space-3);overflow-wrap:anywhere;line-height:1.6}
.pc-connection-tabs [aria-selected=true]{background:var(--surface)}
.pc-connect-intro h2{margin:0 0 var(--space-1);font-size:16px;color:var(--ink)}
.pc-connect-intro p{margin:0;color:var(--secondary);font-size:13px;line-height:1.7}
.pc-computer-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:var(--space-4)}
#pc-connect-panel .pc-device-card h2,#pc-migration-panel .pc-device-card h2{font-size:16px}
#pc-connect-panel>.pc-device-card,.pc-computer-grid>.pc-device-card,#pc-migration-panel>.pc-device-card{padding:var(--space-6);background:var(--surface)}
.pc-computer-grid p,.pc-computer-add p{margin:0 0 var(--space-3);overflow-wrap:anywhere}
.pc-computer-name{font-weight:600;color:var(--ink)}
.pc-computer-status{display:block;font-size:12px;font-weight:400;color:var(--secondary)}
.pc-computer-actions{display:flex;flex-wrap:wrap;align-items:center;gap:var(--space-2);margin-top:var(--space-4)}
.pc-workspace-grid .pc-workspace-path{overflow-wrap:anywhere;color:var(--ink);padding:var(--space-3);background:var(--bg);border-radius:8px}
.pc-workspace-label{display:grid;gap:var(--space-2);font-size:14px;margin-top:var(--space-4)}
.pc-workspace-label select{width:100%;min-width:0;min-height:40px;font:inherit;background:var(--surface);color:var(--ink);border:1px solid var(--pc-line);border-radius:8px;padding:var(--space-2)}
.pc-workspace-grid .pc-caption{margin-top:var(--space-4)}
#settings-shell .pc-connections>.pc-connection-tabs[role=tablist]{max-width:none;background:transparent;border-radius:0;padding:0;gap:var(--space-3);border-bottom:1px solid var(--pc-line);overflow-x:auto}
#settings-shell .pc-connection-tabs [role=tab]{flex:0 0 auto;white-space:nowrap;border-radius:0;border-bottom:2px solid transparent;background:transparent;box-shadow:none;font-size:14px;padding:var(--space-2) var(--space-1)}
#settings-shell .pc-connection-tabs [role=tab][aria-selected=true]{color:var(--blue);border-bottom-color:var(--blue);background:transparent;box-shadow:none}
#settings-shell .pc-connection-tabs [role=tab]:focus-visible{outline:none;text-decoration:underline;text-underline-offset:var(--space-1)}
@media(max-width:700px){.pc-workspace-label select{font-size:16px;min-height:44px}}
.pc-device-card .pc-computer-actions .pc-button{margin:0;min-height:40px}
.pc-computer-grid .pc-cli-grid{margin:var(--space-4) 0;gap:var(--space-2);flex-wrap:wrap}
.pc-computer-grid .pc-cli-grid>div{min-width:64px;background:var(--bg);padding:var(--space-3)}
.pc-computer-grid .pc-cli-grid small{font-size:12px;color:var(--secondary);line-height:1.6}
.pc-computer-details{margin-top:var(--space-4);padding-top:var(--space-4);border-top:1px solid var(--pc-line)}
.pc-computer-details summary,.pc-computer-option summary,.pc-computer-maintenance>summary,.pc-migration-session>summary,.pc-migration-dialog-help summary{cursor:pointer;color:var(--ink);font-size:14px;line-height:1.7}
.pc-computer-details summary:focus-visible,.pc-computer-option summary:focus-visible,.pc-computer-maintenance>summary:focus-visible,.pc-migration-session>summary:focus-visible,.pc-migration-dialog-help summary:focus-visible,.pc-text-action:focus-visible{outline:2px solid var(--blue);outline-offset:4px;border-radius:4px}
.pc-computer-details[open]>p,.pc-computer-maintenance[open]>p,.pc-migration-session[open]>p{margin:var(--space-3) 0}
.pc-computer-details .pc-cli-help a{color:var(--blue)}
.pc-computer-list .pc-device>div{display:flex;align-items:baseline;gap:var(--space-2);flex-wrap:wrap}
.pc-computer-list .pc-device b{overflow-wrap:anywhere;flex:1;min-width:0}
.pc-computer-list .pc-device>div>span:last-child{float:none;flex-shrink:0}
.pc-computer-empty{padding:var(--space-3) 0;color:var(--secondary)}
.pc-computer-grid .pc-caption{margin:var(--space-3) 0 0;font-size:12px;line-height:1.6}
.pc-computer-option{border-top:1px solid var(--pc-line);padding-top:var(--space-4);margin-top:var(--space-4)}
.pc-computer-option h3{font-size:14px;color:var(--ink);margin:0 0 var(--space-2)}
.pc-computer-option .remote-connect-card{border:0;margin:var(--space-3) 0 0;padding:0}
.pc-computer-option .remote-connect-form p,.pc-computer-option .remote-connect-form label,.pc-computer-option .remote-network-status{color:var(--secondary)}
.pc-computer-option>summary span{display:block;margin:var(--space-1) 0 0 var(--space-4);font-size:12px;font-weight:400;color:var(--secondary)}
.pc-computer-executor .executor-connect{margin-top:var(--space-4);padding:0;border:0;background:transparent}
.pc-computer-links{display:flex;flex-wrap:wrap;gap:var(--space-2) var(--space-4);margin:var(--space-4) 0 0!important}
.pc-text-action{font:inherit;font-size:13px;line-height:1.7;color:var(--blue);padding:var(--space-2) 0;border:0;background:none;cursor:pointer;text-align:left}
.pc-step-label{display:block;margin-bottom:var(--space-2);font-size:12px;color:var(--secondary)}
.pc-migration-checklist{display:grid;gap:var(--space-4);margin:var(--space-4) 0;padding-left:var(--space-5);font-size:13px;line-height:1.7}
.pc-migration-checklist li{padding-left:var(--space-1)}
.pc-migration-checklist strong,.pc-migration-checklist span{display:block}
.pc-migration-checklist strong{color:var(--ink);font-weight:600}
.pc-migration-checklist span{color:var(--secondary)}
.pc-migration-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow-y:auto;padding:var(--space-6);border:1px solid var(--pc-line);border-radius:12px;background:var(--surface);color:var(--ink);box-shadow:0 20px 60px #21182e33;scroll-padding:var(--space-4)}
.pc-migration-dialog::backdrop{background:#21182e88}
.pc-migration-dialog h2{margin:0 0 var(--space-2);font-size:16px}
.pc-migration-dialog p{font-size:13px;line-height:1.7;color:var(--secondary)}
.pc-migration-dialog label{display:grid;gap:var(--space-2);margin:var(--space-4) 0;font-size:13px}
.pc-migration-dialog input{box-sizing:border-box;width:100%;min-width:0;min-height:44px}
.pc-migration-dialog input:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.pc-migration-dialog .pc-caption{font-size:12px;color:var(--secondary)}
.pc-migration-dialog .pc-migration-error{margin:var(--space-2) 0;color:var(--red);font-size:13px}
.pc-migration-error:empty{display:none}
.pc-migration-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:var(--space-2);padding-top:var(--space-2);padding-bottom:env(safe-area-inset-bottom)}
.pc-migration-actions .pc-button{margin:0;min-height:44px}
.pc-migration-progress{display:block;width:100%;height:10px;margin:var(--space-4) 0 var(--space-2);accent-color:var(--blue)}
.pc-migration-progress[hidden]{display:none}
.pc-migration-dialog .pc-migration-detail{overflow-wrap:anywhere;font-size:12px;color:var(--secondary)}
.pc-migration-notes,.pc-migration-next{margin:var(--space-4) 0;padding:var(--space-3);border:1px solid var(--pc-line);border-radius:8px;font-size:13px;line-height:1.7;color:var(--secondary)}
.pc-migration-notes>strong,.pc-migration-next>strong{color:var(--ink)}
.pc-migration-notes ul{margin:var(--space-2) 0 0;padding-left:var(--space-5)}
.pc-migration-notes li+li{margin-top:var(--space-2)}
.pc-migration-notes .pc-migration-checklist{gap:var(--space-3);margin-bottom:0}
.pc-migration-notes .pc-migration-checklist li+li{margin-top:0}
.pc-migration-dialog-help{margin:var(--space-4) 0}
.pc-migration-next[hidden]{display:none}
.pc-migration-next p{margin:var(--space-2) 0 0}
@media(max-width:1100px){.pc-computer-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){
 .pc-computer-grid{grid-template-columns:minmax(0,1fr)}
 #pc-connect-panel>.pc-device-card,.pc-computer-grid>.pc-device-card,#pc-migration-panel>.pc-device-card{padding:var(--space-4)}
 .pc-connection-tabs button{padding:var(--space-2);font-size:13px}
 .pc-device-card .pc-computer-actions .pc-button{min-height:44px}
 .pc-computer-links{flex-direction:column;gap:var(--space-1)}
 .pc-text-action{min-height:44px}
 .pc-migration-dialog{padding:var(--space-4)}
 .pc-migration-dialog input{font-size:16px}
}

/* Keep project-title actions on the same center line, using consistent SVG geometry. */
.pc-folder-toggle{min-height:40px;line-height:20px}
.pc-folder-action{width:40px;height:40px;min-width:40px;min-height:40px;padding:12px;line-height:1}
.pc-folder-action svg{display:block;flex:none;width:16px;height:16px}
@media(max-width:760px){.pc-folder-action{width:44px;height:44px;min-width:44px;min-height:44px;padding:14px}}

[data-repair-unlock]{touch-action:manipulation;user-select:none}.mobile-brand[data-open-about]{cursor:pointer}

/* Review diagnostics keep long source titles inside the reading surface. */
.inbox-review-batches{margin:12px 0;padding-left:20px;list-style:decimal outside}
.inbox-review-batches li{overflow-wrap:anywhere}
.inbox-review-batches>li+li{margin-top:12px}
.inbox-review-batches ul{padding-left:20px;list-style:disc outside}
