@font-face{font-family:Geist;src:url('/open-platform.woff2') format('woff2');font-display:swap}
html{color-scheme:dark light}
body,button,input,textarea,select{font-family:Geist,"PingFang SC","Microsoft YaHei",system-ui,sans-serif}
html body.dark,html body.platform-console,html body.dark button,html body.dark input,html body.dark textarea,html body.dark select,html body.dark h1,html body.dark h2,html body.dark h3,html body.platform-console button,html body.platform-console input,html body.platform-console textarea,html body.platform-console select{font-family:Geist,"PingFang SC","Microsoft YaHei",system-ui,sans-serif!important}
body.dark,body.platform-console{--bg:#161616;--side:#141414;--fg:#f2f2f2;--ink:#f2f2f2;--muted:#a0a0a0;--sub:#a0a0a0;--line:#393939;--card:#202020;--accent:#00cda8;--blue:#00cda8;--gold:#d4b77a;background:#161616!important;color:#f2f2f2!important;color-scheme:dark}
body.dark .menubar{background:#161616!important;color:#a7a7a7!important;border-top:1px solid #393939!important;border-bottom:1px solid #2c2c2c!important;box-shadow:none!important}
body.dark .menubar button{color:#d6d6d6!important}
body.dark aside,body.dark #sidebar,body.dark .shortcut-rail,body.platform-console .side{background:#141414!important;border-color:#343434!important;color:#f2f2f2!important;box-shadow:none!important}
body.dark main,body.dark #main,body.platform-console .body,body.platform-console .main{background:#161616!important;color:#f2f2f2!important}
body.dark #sidebar .brand{gap:4px;padding-left:3px;padding-right:3px;align-items:center}
.brand-lockup{min-width:0;flex:1}
.brand-lockup .platform-brand{display:block;width:148px!important;height:36px!important;max-width:100%;object-fit:contain;object-view-box:inset(28% 5% 28% 7%);flex-shrink:0}
.platform-brand-caption{position:absolute!important;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
body.dark #discover{background:#222!important;border:1px solid #393939!important;color:#ddd!important;font-size:10px;white-space:nowrap;padding:4px 5px}
body.dark #nav button,body.platform-console .side nav button{background:transparent!important;color:#ddd!important;font-weight:450;border-radius:7px;font-size:13px}
body.dark #nav button:hover,body.platform-console .side nav button:hover{background:#252525!important;color:#fff!important}
body.dark #nav button.active,body.platform-console .side nav button.active{background:#363636!important;color:#fff!important;font-weight:600}
body.dark .side-section label,body.dark .nav-group label,body.platform-console .nav-group-title{color:#a4a4a4!important;letter-spacing:0}
body.dark button:hover{background:#2c2c2c}
body.dark .card,body.dark .list-row,body.dark .panel,body.dark .tip,body.dark .blank,body.platform-console .panel,body.platform-console .stat,body.platform-console .login{background:#202020!important;border:1px solid #393939!important;border-radius:12px;box-shadow:none!important;color:#eee!important}
body.dark h1,body.dark h2,body.dark h3,body.platform-console h1,body.platform-console h2,body.platform-console h3{color:#f3f3f3!important;letter-spacing:-.3px}
body.dark h1{font-size:30px;font-weight:650}
body.dark .sub,body.dark .card p,body.dark .card small,body.dark footer,body.platform-console p,body.platform-console small,body.platform-console label{color:#a6a6a6!important}
body.dark .modebar{background:#222!important;border:1px solid #393939!important;box-shadow:none!important}
body.dark .modebar button{color:#a6a6a6!important}
body.dark .modebar button.active{background:#3a3a3a!important;color:#fff!important;box-shadow:none!important}
body.dark .chips button,body.dark .suggestions button,body.dark .badge,body.dark .setting button,body.dark .settings-column-nav button{background:#222!important;border-color:#3b3b3b!important;color:#ddd!important;box-shadow:none!important}
body.dark .composer,body.dark .compose-inner{background:#202020!important;border-color:#414141!important;box-shadow:none!important}
body.dark .composer textarea{background:transparent!important;color:#f3f3f3!important}
body.dark .compose-foot{color:#aaa!important;background:#1b1b1b!important;border-radius:0 0 22px 22px}
body.dark input,body.dark textarea,body.dark select,body.platform-console input,body.platform-console textarea,body.platform-console select{background:#1b1b1b!important;border-color:#414141!important;color:#f2f2f2!important}
body.dark input::placeholder,body.dark textarea::placeholder,body.platform-console input::placeholder{color:#858585}
body.dark .primary,body.platform-console .primary{background:#f0f0f0!important;border-color:#f0f0f0!important;color:#171717!important;font-weight:600;border-radius:8px}
body.dark .primary:hover,body.platform-console .primary:hover{background:#d9d9d9!important}
body.dark .send{background:#00cda8!important;color:#071c16!important;border-color:#00cda8!important}
body.dark .send:disabled{background:#3b3b3b!important;color:#858585!important;cursor:not-allowed}
body.dark button:disabled,body.platform-console button:disabled{opacity:.5;cursor:not-allowed}
body.dark .account,body.dark .side-bottom{background:#141414!important;border-color:#343434!important;color:#ddd!important}
body.dark .avatar,body.platform-console .avatar{background:#063d31!important;color:#20d4af!important}
body.dark .notice,body.platform-console .notice{background:#1a2925!important;border:1px solid #355148!important;color:#bdcec8!important}
body.dark .notice.warning,body.platform-console .warning{background:#2b271c!important;border-color:#5b4b2e!important;color:#d7bf8f!important}
body.dark .message,body.dark .message.user{background:#202020!important;border-color:#393939!important;color:#eee!important}
body.dark dialog,body.platform-console dialog{background:#242424!important;border:1px solid #444!important;color:#eee!important;border-radius:14px;box-shadow:0 24px 80px #0007}
body.dark dialog::backdrop,body.platform-console dialog::backdrop{background:#0009;backdrop-filter:blur(3px)}
body.dark :focus-visible,body.platform-console :focus-visible{outline:2px solid #23bfa2!important;outline-offset:3px}
body.platform-console .brand{display:flex;align-items:center;gap:8px;color:#fff!important}
body.platform-console .brand .platform-brand{width:178px;height:39px;object-fit:contain;object-view-box:inset(28% 5% 28% 7%)}
body.platform-console .brand small{font-size:9px;color:#a3a3a3!important;letter-spacing:0;white-space:nowrap}
body.platform-console .side .brand{flex-wrap:wrap;gap:3px}
body.platform-console .side .brand .platform-brand{max-width:100%;min-width:0}
body.platform-console .login{max-width:480px;margin:8vh auto;padding:32px}
body.platform-console header{background:#161616!important;border-color:#393939!important;color:#ccc!important;box-shadow:none!important}
body.platform-console button:not(.primary){background:#242424!important;border-color:#424242!important;color:#dedede!important}
body.platform-console button:not(.primary):hover{background:#333!important}
body.platform-console .side nav button{border:0!important}
body.platform-console a,body.dark a{color:#c5d5cf}
body.platform-console .eyebrow,body.platform-console .section-foot,body.platform-console .side-foot{color:#999!important;letter-spacing:0}
body.platform-console .stat b{color:#fff!important}
body.platform-console table,body.platform-console th,body.platform-console td{background:transparent!important;border-color:#3a3a3a!important;color:#ddd!important}
body.platform-console th{color:#a9a9a9!important;font-weight:500}
body.platform-console .tabs button.active{background:#393939!important;color:#fff!important;border-color:#777!important}
body.platform-console .badge{background:#313131!important;color:#d2d2d2!important;border-color:#474747!important}
body.platform-console .badge.green{background:#123b2d!important;color:#81dab1!important}
body.platform-console .badge.red{background:#402326!important;color:#f4a2ad!important}
body.platform-console .badge.gold{background:#3a301d!important;color:#dfc48f!important}
body.platform-console .console-output{background:#121212!important;color:#ddd!important;border-color:#393939!important}
body.dark .shortcut-top,body.dark .shortcut-caption{color:#aaa!important;background:transparent!important}
body.dark .shortcut-rail button{color:#a9a9a9!important;border-color:transparent!important}
body.dark .shortcut-rail .rail-profile{background:#153d32!important;color:#82ddc0!important}
body.dark .replica-panel,body.dark .discovery-grid,body.dark .video-browser,body.dark .discovery-dialog,body.dark .video-workbench,body.dark .feature-shell{background:#202020!important;color:#eee!important;border-color:#393939!important}
body.dark ::-webkit-scrollbar,body.platform-console ::-webkit-scrollbar{width:7px;height:7px}
body.dark ::-webkit-scrollbar-thumb,body.platform-console ::-webkit-scrollbar-thumb{background:#4a4a4a;border-radius:8px}
@media(max-width:620px){body.platform-console .login{margin:28px 16px;padding:24px}body.platform-console .userbox{gap:8px}body.platform-console header{padding:0 16px}.brand-lockup .platform-brand{width:134px!important;height:33px!important}}
@media(max-width:620px){body.dark .menubar{width:100%;max-width:100vw;min-width:0;overflow-x:auto;overflow-y:hidden;gap:10px;scrollbar-width:thin}body.dark .menubar>button,body.dark .shortcut-top{flex-shrink:0}}

/* Appearance v2: one scale and one palette for all three original services. */
html body{
 --p-bg:#fff;--p-side:#f7f7f7;--p-card:#fff;--p-raised:#f4f4f4;--p-input:#fff;--p-fg:#202124;--p-muted:#656565;--p-line:#dedede;--p-hover:#ededed;--p-selected:#e5e5e5;--p-primary:#1c1c1c;--p-primary-text:#fff;--p-accent:#00755f;--p-notice:#eef7f3;--p-notice-text:#456459;--p-warning:#fff7e6;--p-warning-text:#8a6520;--p-danger:#bd4453;
}
html body.dark{
 --p-bg:#161616;--p-side:#141414;--p-card:#202020;--p-raised:#242424;--p-input:#1b1b1b;--p-fg:#f2f2f2;--p-muted:#a0a0a0;--p-line:#393939;--p-hover:#2c2c2c;--p-selected:#363636;--p-primary:#f0f0f0;--p-primary-text:#171717;--p-notice:#1a2925;--p-notice-text:#bdcec8;--p-warning:#2b271c;--p-warning-text:#d7bf8f;--p-danger:#ee9ba7;
}
html body:is(.dark,:not(.dark)){
 --bg:var(--p-bg);--side:var(--p-side);--fg:var(--p-fg);--ink:var(--p-fg);--muted:var(--p-muted);--sub:var(--p-muted);--line:var(--p-line);--card:var(--p-card);--accent:var(--p-accent);--blue:var(--p-accent);
 background:var(--p-bg)!important;color:var(--p-fg)!important;font-family:Geist,"PingFang SC","Microsoft YaHei",system-ui,sans-serif!important;font-size:14px;line-height:1.6;
}
html body:is(.dark,:not(.dark)) :is(button,input,textarea,select,h1,h2,h3,h4){font-family:Geist,"PingFang SC","Microsoft YaHei",system-ui,sans-serif!important}
html body:is(.dark,:not(.dark)) :is(#main,.main,.body){background:var(--p-bg)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) :is(#sidebar,.shortcut-rail,.side,.side-bottom){background:var(--p-side)!important;border-color:var(--p-line)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) :is(.menubar,.body>header){background:var(--p-bg)!important;border-color:var(--p-line)!important;color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) :is(h1,h2,h3,h4,.pagehead b,.r-setting b,.expert-heading b,.r-schedule-grid b,.stat b,.brand,.table-title){color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) :is(p,small,.sub,.muted,.side-section label,.nav-group label,.section-foot,.eyebrow,.r-setting p,.library-summary,.shortcut-caption){color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) button{min-height:32px;padding:6px 12px;font-size:13px;line-height:1.4;border-radius:8px;color:var(--p-fg)!important;border-color:var(--p-line);box-shadow:none}
html body:is(.dark,:not(.dark)) button:hover{background:var(--p-hover)!important}
html body:is(.dark,:not(.dark)) :is(button>svg,nav button svg,.platform-appearance svg){width:16px;height:16px;flex-shrink:0;vertical-align:middle}
html body:is(.dark,:not(.dark)) :is(#nav button,.side nav button){min-height:34px;background:transparent!important;border:0!important;color:var(--p-fg)!important;font-size:13px}
html body:is(.dark,:not(.dark)) :is(#nav button.active,.side nav button.active){background:var(--p-selected)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) :is(.card,.list-row,.panel,.stat,.login,.tip,.blank,.reference-expert,.r-schedule-grid article,.library-main,.library-side,.market-sort,.market-left,.settings-card,.replica-window,.settings-shell,.detail){background:var(--p-card)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important;border-radius:12px;box-shadow:none!important}
html body:is(.dark,:not(.dark)) :is(.market-sort,.library-side,.detail,.r-messages article,.message.user,.modebar,.composer,.compose-foot){background:var(--p-raised)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important}
html body:is(.dark,:not(.dark)) :is(.compose-inner,.message,.replica-panel,.discovery-grid,.video-browser,.discovery-dialog,.video-workbench,.feature-shell){background:var(--p-card)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important;box-shadow:none!important}
html body:is(.dark,:not(.dark)) :is(input,textarea,select){min-height:36px;background:var(--p-input)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important;border-radius:8px;font-size:14px}
html body:is(.dark,:not(.dark)) :is(input[type=checkbox],input[type=radio]){min-height:16px;width:16px;height:16px;accent-color:var(--p-accent)}
html body:is(.dark,:not(.dark)) .composer textarea{background:transparent!important;line-height:1.8}
html body:is(.dark,:not(.dark)) :is(.primary,.black){min-height:36px;background:var(--p-primary)!important;color:var(--p-primary-text)!important;border-color:var(--p-primary)!important;font-size:13px;font-weight:600}
html body:is(.dark,:not(.dark)) :is(.primary,.black):hover{filter:brightness(.92)}
html body:is(.dark,:not(.dark)) :is(.chips button,.suggestions button,.settings-column-nav button,.card button,.badge,.modebar button,.tabs button,.task-actions button,.r-schedule-head>div>button){background:var(--p-raised)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important;box-shadow:none!important}
html body:is(.dark,:not(.dark)) :is(.modebar button.active,.tabs button.active,.settings-column-nav button.active,.r-schedule-tabs button.active){background:var(--p-selected)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important}
html body:is(.dark,:not(.dark)) :is(.compose-tools button,.compose-foot button){font-size:12px;min-height:28px;padding:4px 7px}
html body:is(.dark,:not(.dark)) .send{width:34px;height:34px;min-height:34px;padding:0;background:var(--p-accent)!important;color:#05271d!important;border-radius:50%;font-size:18px}
html body:is(.dark,:not(.dark)) .send:disabled{background:var(--p-selected)!important;color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) .menubar>button{height:26px;min-height:26px;padding:3px 6px;font-size:11px;color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) .shortcut-rail button{width:32px;min-height:32px;padding:6px;color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) :is(.account,.side-foot,.r-schedule-grid footer){background:var(--p-side)!important;border-color:var(--p-line)!important;color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) :is(table,th,td){background:transparent!important;border-color:var(--p-line)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) th{color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) .notice{background:var(--p-notice)!important;color:var(--p-notice-text)!important;border-color:var(--p-line)!important}
html body:is(.dark,:not(.dark)) .warning{background:var(--p-warning)!important;color:var(--p-warning-text)!important}
html body:is(.dark,:not(.dark)) .danger{color:var(--p-danger)!important}
html body:is(.dark,:not(.dark)) :is(dialog,.settings-layer .settings-panel){background:var(--p-raised)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important;border-radius:14px}
html body:is(.dark,:not(.dark)) :is(dialog h2,.modalhead h2){font-size:20px;font-weight:600}
html body:is(.dark,:not(.dark)) a{color:var(--p-fg)}
html body:is(.dark,:not(.dark)) :focus-visible{outline:2px solid var(--p-accent)!important;outline-offset:3px}
.platform-appearance{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 0 12px;margin-bottom:4px;flex-wrap:wrap}
html body:is(.dark,:not(.dark)) .platform-appearance button{display:inline-flex;align-items:center;justify-content:center;min-height:32px;width:42px;padding:7px;border:1px solid transparent;border-radius:8px;background:transparent!important;color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) .platform-appearance button[aria-pressed=true]{border-color:var(--p-line)!important;background:var(--p-selected)!important;color:var(--p-fg)!important}
.appearance-status{font-size:11px;width:100%;color:var(--p-muted)}
.login .platform-appearance{margin-top:20px;justify-content:flex-end}
.side>#platform-appearance{margin-top:auto;padding-top:16px}
.side>#platform-appearance+.side-foot{margin-top:0;padding-top:12px}
html body.platform-console button:not(.primary){background:var(--p-raised)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important}
html body.platform-console .primary{background:var(--p-primary)!important;color:var(--p-primary-text)!important;border-color:var(--p-primary)!important}
html body.platform-console .side nav button{background:transparent!important;color:var(--p-fg)!important}
html body.platform-console .side nav button.active{background:var(--p-selected)!important}
html body.platform-console .platform-appearance button{background:transparent!important;color:var(--p-muted)!important}
html body.platform-console .platform-appearance button[aria-pressed=true]{background:var(--p-selected)!important;color:var(--p-fg)!important}
html body.platform-console .danger{color:var(--p-danger)!important}
html body:not(.dark) .platform-brand{filter:invert(1) hue-rotate(180deg);mix-blend-mode:multiply}
html body.dark .platform-brand{filter:none;mix-blend-mode:screen}
html body:is(.dark,:not(.dark)) :is(.pagehead h2,.title h1){font-size:24px;line-height:1.4;font-weight:650}
html body:is(.dark,:not(.dark)) :is(.panelhead h2,.card h3){font-size:16px;line-height:1.5;font-weight:600}
html body:is(.dark,:not(.dark)) :is(.card,.panel,.setting,.r-setting) button{font-size:13px!important}
html body:is(.dark,:not(.dark)) .menubar>button{font-size:11px!important}
html body:is(.dark,:not(.dark)) :is(#nav button,.side nav button){font-size:13px!important}
html body:is(.dark,:not(.dark)) :is(#attach,#model,#voice,#context,#permissions,#choose-space){color:var(--p-muted)!important;background:transparent!important}
html body:is(.dark,:not(.dark)) #attach{width:28px;height:28px;font-size:18px!important;padding:4px}
html body:is(.dark,:not(.dark)) :is(.suggestions button span,.library-summary,.library-side small){color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) #toast,html body:is(.dark,:not(.dark)) .toast{background:var(--p-fg)!important;color:var(--p-bg)!important;border-color:var(--p-line)!important}
html body:is(.dark,:not(.dark)) .badge.green{background:var(--p-notice)!important;color:var(--p-notice-text)!important}
html body:is(.dark,:not(.dark)) .badge.red{background:color-mix(in srgb,var(--p-danger) 13%,var(--p-card))!important;color:var(--p-danger)!important}
html body:is(.dark,:not(.dark)) .badge.gold{background:var(--p-warning)!important;color:var(--p-warning-text)!important}
/* The chosen theme owns the palette even while the legacy renderer updates body.className. */
html[data-appearance=dark] body{--p-bg:#161616;--p-side:#141414;--p-card:#202020;--p-raised:#242424;--p-input:#1b1b1b;--p-fg:#f2f2f2;--p-muted:#a0a0a0;--p-line:#393939;--p-hover:#2c2c2c;--p-selected:#363636;--p-primary:#f0f0f0;--p-primary-text:#171717;--p-notice:#1a2925;--p-notice-text:#bdcec8;--p-warning:#2b271c;--p-warning-text:#d7bf8f;--p-danger:#ee9ba7}
html[data-appearance=light] body{--p-bg:#fff;--p-side:#f7f7f7;--p-card:#fff;--p-raised:#f4f4f4;--p-input:#fff;--p-fg:#202124;--p-muted:#656565;--p-line:#dedede;--p-hover:#ededed;--p-selected:#e5e5e5;--p-primary:#1c1c1c;--p-primary-text:#fff;--p-notice:#eef7f3;--p-notice-text:#456459;--p-warning:#fff7e6;--p-warning-text:#8a6520;--p-danger:#bd4453}
html[data-appearance=dark] body .platform-brand{filter:none;mix-blend-mode:screen}
html[data-appearance=light] body .platform-brand{filter:invert(1) hue-rotate(180deg);mix-blend-mode:multiply}
html body:is(.dark,:not(.dark)) :is(.card,.panel,.r-schedule-head,.page,.login,dialog) button:is(.primary,.black){background:var(--p-primary)!important;color:var(--p-primary-text)!important;border-color:var(--p-primary)!important}
@media(max-width:620px){html body:is(.dark,:not(.dark)) .menubar{width:100%;max-width:100vw;min-width:0;overflow-x:auto;overflow-y:hidden;gap:8px}.platform-appearance{gap:5px}html body:is(.dark,:not(.dark)) .platform-appearance button{width:36px}}

/* Homepage chrome proportions, supplied GPT references, 20261123. */
html body:is(.dark,:not(.dark)) .shortcut-rail{top:40px!important;height:calc(100dvh - 40px)!important}
html body:is(.dark,:not(.dark)) .menubar{height:40px!important;gap:8px!important;padding:0 8px!important;align-items:center}
html body:is(.dark,:not(.dark)) .menubar>button,
html body:is(.dark,:not(.dark)) .menubar>span:not(.windowtitle){font-size:14px!important;line-height:20px!important;font-weight:500;color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) .menubar>button{height:32px!important;min-height:32px!important;padding:4px 8px!important;border-radius:6px}
html body:is(.dark,:not(.dark)) .menubar>button svg{width:16px!important;height:16px!important;vertical-align:middle;flex-shrink:0}
html body:is(.dark,:not(.dark)) .menubar>button:disabled{opacity:.38!important}
html body:is(.dark,:not(.dark)) .shortcut-rail{width:48px!important;padding:10px 6px!important;gap:8px!important;box-sizing:border-box}
html body:is(.dark,:not(.dark)) .shortcut-rail button{width:36px!important;height:36px!important;min-height:36px!important;padding:8px!important;border-radius:10px!important;display:flex;align-items:center;justify-content:center;flex-shrink:0;color:var(--p-muted)!important;box-sizing:border-box}
html body:is(.dark,:not(.dark)) .shortcut-rail svg{width:20px!important;height:20px!important;stroke-width:1.65!important;flex-shrink:0}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-home{background:var(--p-raised)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-download{background:var(--p-fg)!important;color:var(--p-bg)!important;border-radius:50%!important}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-profile{border-radius:50%!important;font-size:14px!important;line-height:20px!important}
html body:is(.dark,:not(.dark)) .shortcut-rail hr{width:24px!important;border-color:var(--p-line)!important;margin:4px 0!important}
html body:is(.dark,:not(.dark)){--shortcut-rail-width:48px}
@media(max-width:620px){html body:is(.dark,:not(.dark)) .menubar{gap:4px!important}html body:is(.dark,:not(.dark)) .menubar>button{padding-inline:6px!important}}

/* Equalize painted shapes rather than SVG canvas dimensions. */
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(3) svg,
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(7) svg{width:22.5px!important;height:22.5px!important;stroke-width:1.47!important}
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(6) svg{width:25.7px!important;height:25.7px!important;stroke-width:1.28!important}
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(5) svg{width:24px!important;height:24px!important;stroke-width:2!important}

/* Bottom rail: consistent circular footprint and optically matched glyphs. */
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(n+8){width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;border-radius:50%!important;align-self:center}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-download svg{width:25.7px!important;height:25.7px!important;stroke-width:1.28!important}
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(9){background:var(--p-raised)!important;color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(9) svg{width:20px!important;height:20px!important;stroke-width:1.65!important}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-profile{font-size:14px!important;line-height:1!important;font-weight:500!important;letter-spacing:0!important}

/* Workbench sidebar uses the supplied open-platform reference. */
html body:is(.dark,:not(.dark)) #sidebar .brand{display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:20px!important;padding:10px 8px 18px!important}
html body:is(.dark,:not(.dark)) #sidebar .brand-lockup{min-height:32px;gap:8px}
html body:is(.dark,:not(.dark)) #sidebar #discover{width:100%!important;height:40px!important;min-height:40px!important;margin:0!important;padding:0 12px!important;text-align:left!important;font-size:13px!important;font-weight:500!important;background:var(--p-card)!important;color:var(--p-fg)!important;border:1px solid var(--p-line)!important;border-radius:8px!important}
html body:is(.dark,:not(.dark)) #sidebar #nav{display:flex;flex-direction:column;gap:2px;padding:0 8px!important}
html body:is(.dark,:not(.dark)) #sidebar #nav button{height:36px!important;min-height:36px!important;margin:0!important;padding:0 12px!important;display:flex;align-items:center;gap:10px!important;font-size:13px!important;font-weight:400!important;line-height:20px!important;border-radius:6px!important;box-shadow:none!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) #sidebar #nav button.active{box-shadow:none!important;background:var(--p-selected)!important;font-weight:500!important}
html body:is(.dark,:not(.dark)) #sidebar #nav button:hover{background:var(--p-hover)!important}
html body:is(.dark,:not(.dark)) #sidebar #nav svg{width:16px!important;height:16px!important;min-width:16px!important;flex-shrink:0;stroke-width:1.6!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) #sidebar .side-section{margin-top:22px!important;padding:0 20px!important}
html body:is(.dark,:not(.dark)) #sidebar .side-section label{font-size:12px!important;font-weight:400!important;line-height:20px!important;color:var(--p-muted)!important;margin-bottom:8px;display:block}
html body:is(.dark,:not(.dark)) #sidebar :is(#history button,#workspace,#reference-spaces button){min-height:36px!important;line-height:20px!important;font-size:13px!important;font-weight:400!important;color:var(--p-fg)!important;border-radius:6px!important;box-shadow:none!important}
html body:is(.dark,:not(.dark)) #sidebar #nav em{font-size:9px!important;line-height:14px!important;padding:0 3px!important;border-radius:3px!important;background:var(--p-raised)!important;border-color:var(--p-line)!important;color:var(--p-muted)!important}

html body:is(.dark,:not(.dark)) #sidebar #nav button>i{width:20px!important;height:20px!important;min-width:20px!important;display:inline-flex!important;align-items:center;justify-content:center;font-style:normal;flex:0 0 20px!important}
html body:is(.dark,:not(.dark)) #sidebar #nav svg[data-platform-icon]{width:20px!important;height:20px!important;stroke-width:1.6!important;fill:none!important;display:block}

#platform-logo-tools{position:relative;display:flex;align-items:center;justify-content:space-between;gap:2px;isolation:isolate;z-index:45}
html body:is(.dark,:not(.dark)) #platform-logo-tools>button{display:flex;align-items:center;justify-content:center;width:28px;height:28px;min-height:28px;padding:5px;border:0;border-radius:5px;background:transparent;color:var(--p-muted);cursor:pointer}
#platform-logo-tools>button svg{width:18px;height:18px;flex-shrink:0}
html body:is(.dark,:not(.dark)) #platform-logo-tools>button:hover,html body:is(.dark,:not(.dark)) #platform-logo-tools>button[aria-expanded=true]{background:var(--p-selected);color:var(--p-fg)}
.platform-cascade{position:absolute;min-width:220px;padding:5px;background:var(--p-card);border:1px solid var(--p-line);border-radius:7px;box-shadow:0 8px 24px #0005;z-index:50;color:var(--p-fg)}
#platform-app-menu{top:32px;left:0;min-width:110px}
.platform-menu-row{position:relative}
html body:is(.dark,:not(.dark)) #platform-logo-tools .platform-menu-row>button{display:flex;align-items:center;justify-content:space-between;gap:22px;text-align:left;width:100%;min-height:29px;padding:5px 9px;background:transparent;border:0;border-radius:4px;color:var(--p-fg);font-size:12px;white-space:nowrap;cursor:pointer}
#platform-logo-tools .platform-menu-row>button small{font-size:11px;color:var(--p-muted)}
html body:is(.dark,:not(.dark)) #platform-logo-tools .platform-menu-row>button:disabled{opacity:.4;cursor:not-allowed}
html body:is(.dark,:not(.dark)) #platform-logo-tools .platform-menu-row>button:not(:disabled):hover,.platform-menu-row:focus-within>button{background:var(--p-selected)!important}
.platform-menu-row>.platform-cascade{display:none;left:calc(100% - 1px);top:-5px;max-height:72vh;overflow:visible}
.platform-menu-row:hover>.platform-cascade,.platform-menu-row.submenu-open>.platform-cascade{display:block}
.platform-cascade hr{border:0;border-top:1px solid var(--p-line);margin:5px 2px}
#platform-tool-notice{max-width:420px;padding:24px;background:var(--p-card);color:var(--p-fg);border:1px solid var(--p-line);border-radius:12px}
#platform-tool-notice button{padding:6px 18px;background:var(--p-raised);color:var(--p-fg);border:1px solid var(--p-line);border-radius:6px}

.platform-cascade:not(:has(.platform-cascade)){max-height:72vh;overflow-y:auto}

/* Bottom three controls: equal footprint, separation and simplified status mark. */
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(n+8){width:32px!important;height:32px!important;min-height:32px!important;margin:0!important;flex:0 0 32px!important;align-self:center!important}
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(9){background:transparent!important;border:0!important;box-shadow:none!important}
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(9) svg{width:22px!important;height:22px!important;stroke-width:1.5!important}
html body:is(.dark,:not(.dark)) .shortcut-rail button:nth-of-type(9) svg path{d:path('M12 4a8 8 0 1 0 0 16 8 8 0 1 0 0-16 M12 9l3 3-3 3-3-3Z')}
html body:is(.dark,:not(.dark)) .shortcut-rail{gap:8px!important;padding-bottom:12px!important}
html body:is(.dark,:not(.dark)) #sidebar>#discover{width:calc(100% - 16px)!important;height:40px!important;min-height:40px!important;margin:10px 8px 0!important;padding:0 12px!important;border:1px solid var(--p-line)!important;background:var(--p-card)!important;border-radius:8px!important}

/* Supplied Fruit Ai wordmark and adjacent appearance controls. */
html body:is(.dark,:not(.dark)) #sidebar .brand-lockup{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:6px!important;min-width:0!important;width:100%!important}
html body:is(.dark,:not(.dark)) #sidebar .brand-lockup .platform-brand{order:0;width:116px!important;min-width:0!important;height:32px!important;max-width:116px!important;object-fit:contain!important;object-view-box:inset(30% 22% 29% 23%)!important;border-radius:0!important}
html body:is(.dark,:not(.dark)) #sidebar .brand-lockup #platform-appearance{order:1;flex:0 0 84px;display:flex!important;flex-wrap:nowrap!important;gap:0!important;padding:0!important;margin:0!important;width:84px!important;align-items:center!important}
html body:is(.dark,:not(.dark)) #sidebar .brand-lockup #platform-appearance button{width:28px!important;height:28px!important;min-height:28px!important;padding:5px!important;border-radius:6px!important;flex:0 0 28px}
html body:is(.dark,:not(.dark)) #sidebar .brand-lockup #platform-appearance svg{width:15px!important;height:15px!important}
html body:is(.dark,:not(.dark)) #sidebar .brand-lockup #platform-appearance .appearance-status{position:absolute;top:100%;font-size:10px}

/* Readable theme surfaces and text, including inherited replica components. */
html[data-appearance=light] body{--p-muted:#64676b;--p-accent:#007e69}
html[data-appearance=dark] body{--p-muted:#aeb0b3;--p-accent:#28d6b5}
html body:is(.dark,:not(.dark)) :is(.feature-banner,.feature-banners article,.library-info button,.library-uses button,.market-page,.r-library,.r-schedules,.r-setting-sidebar,.r-setting-main){background:var(--p-card)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important}
html body:is(.dark,:not(.dark)) :is(.market-tabs button,.market-subhead button,.expert-categories button,.market-sort button,.library-tabs button,.library-side>button,.market-top>button){color:var(--p-fg)!important;background:var(--p-card)!important;border-color:var(--p-line)!important}
html body:is(.dark,:not(.dark)) :is(.market-tabs button.active,.market-subhead button.selected,.expert-categories button.selected,.market-sort button.selected,.library-tabs button.active,.library-side>button.active){color:var(--p-fg)!important;background:var(--p-selected)!important}
html body:is(.dark,:not(.dark)) :is(.expert-tags span,.doc-icon){color:var(--p-fg)!important;background:var(--p-raised)!important}
html body:is(.dark,:not(.dark)) :is(.feature-banner>button,.feature-banner span,.reference-expert>span,.library-side label,.library-side span,.library-uses span,.library-info p,.library-uses p,.expert-heading p,.expert-categories button,.market-sort small,.market-subhead small,.error-symbol,footer){color:var(--p-muted)!important}
html body:is(.dark,:not(.dark)) :is(.library-info b,.library-uses b,.library-main>h1,#sidebar .brand strong){color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-profile{background:var(--p-selected)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) :is(input,textarea)::placeholder{color:var(--p-muted)!important;opacity:1!important}
html body:is(.dark,:not(.dark)) :is(dialog,.replica-pop,.replica-popover,.account-pop,.search-layer .replica-window){background:var(--p-card)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important}
html body:is(.dark,:not(.dark)) :is(dialog,.replica-pop,.replica-popover,.account-pop) :is(label,p,small,span){color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) :is(button,input,select,textarea,a):focus-visible{outline:2px solid var(--p-accent)!important;outline-offset:2px}

html body:is(.dark,:not(.dark)) .feature-banner span{background:var(--p-raised)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) .context-bubbles{color:var(--p-accent)!important}

html body:is(.dark,:not(.dark)) .settings-search{background:var(--p-input)!important;color:var(--p-muted)!important;border-color:var(--p-line)!important}
html body:is(.dark,:not(.dark)) .message-icon{background:var(--p-selected)!important;color:var(--p-fg)!important}

html body:is(.dark,:not(.dark)) .r-messages article b{color:var(--p-fg)!important}

/* Step1: explicit disabled entries, non-interactive examples and real batch tools. */
html body:is(.dark,:not(.dark)) .step-coming:disabled{opacity:1!important;background:var(--p-card)!important;color:var(--p-muted)!important;cursor:not-allowed!important}
html body:is(.dark,:not(.dark)) .step-coming small{color:var(--p-muted)!important;font-size:12px!important;opacity:1!important}
html body:is(.dark,:not(.dark)) .step-example,html body:is(.dark,:not(.dark)) .step-example:hover{display:block;padding:8px 10px;color:var(--p-muted)!important;background:transparent!important;border:0!important;box-shadow:none!important;cursor:default!important;outline:0;text-decoration:none}
html body:is(.dark,:not(.dark)) .step-example *{cursor:default!important;color:var(--p-muted)!important;pointer-events:none}
html body:is(.dark,:not(.dark)) .step-example small{display:inline;margin-left:8px;font-size:12px!important}
html body:is(.dark,:not(.dark)) :is(.step-guide,.step-label,#real-batch-manager,[data-testid=real-run-history]){color:var(--p-fg)!important;background:var(--p-card)!important}
html body:is(.dark,:not(.dark)) :is(.step-guide,#real-batch-manager,[data-testid=real-run-history]) :is(p,label,span,b){color:var(--p-fg)!important}
.step-plan-list{display:grid;gap:10px;margin:16px 0;max-height:35vh;overflow:auto}.step-plan-list label{display:flex;gap:8px;align-items:center}.step-batch-actions{display:flex;gap:8px;flex-wrap:wrap}
[data-testid=delete-confirmation]{padding:14px;border:1px solid var(--p-line);margin:12px 0;border-radius:8px}
[data-testid=batch-results] p{padding:6px;border:1px solid var(--p-line);border-radius:6px}

/* Native File/Edit/View/Help flyouts use the same appearance as the platform.
   Scope excludes account, settings, content and business actions. */
html body #dialog.video-browser {
 --menu-surface:var(--p-card);--menu-text:var(--p-fg);--menu-hover:var(--p-hover);
 --menu-selected:var(--p-selected);--menu-muted:#62676f;--menu-focus:#007d67;
}
html body.dark #dialog.video-browser {--menu-muted:#b0b6c0;--menu-focus:#00cda8;}
html body #dialog.video-browser .video-flyout {
 background:var(--menu-surface)!important;color:var(--menu-text)!important;
 border-color:var(--p-line)!important;scrollbar-color:var(--menu-muted) var(--menu-surface);
}
html body #dialog.video-browser .video-flyout :is(strong,p,label) {color:var(--menu-text)!important;}
html body #dialog.video-browser .video-flyout button {
 color:var(--menu-text)!important;background:transparent!important;
}
html body #dialog.video-browser .video-flyout button :is(span,small) {color:inherit!important;}
html body #dialog.video-browser .video-flyout :is(kbd,button kbd) {color:var(--menu-muted)!important;}
html body #dialog.video-browser .video-flyout button:is(:hover,:focus-visible):not(:disabled) {
 background:var(--menu-hover)!important;color:var(--menu-text)!important;
}
html body #dialog.video-browser .video-flyout button[aria-expanded=true]:not(:disabled) {
 background:var(--menu-selected)!important;color:var(--menu-text)!important;
}
html body #dialog.video-browser .video-flyout button:focus-visible {
 outline:2px solid var(--menu-focus)!important;outline-offset:2px;
}
html body #dialog.video-browser .video-flyout button:disabled,
html body #dialog.video-browser .video-flyout button:disabled:hover {
 color:var(--menu-muted)!important;background:transparent!important;opacity:1!important;cursor:not-allowed;
}
html body #dialog.video-browser .video-flyout button:disabled :is(span,small,kbd) {color:inherit!important;opacity:1!important;}
html body #dialog.video-browser .video-flyout .file-menu-divider {border-top-color:var(--p-line)!important;}

/* Sitewide readable appearance; no geometry, visibility or business state changes. */
html body {--p-control-line:#7c7c7c;}
html body.dark {--p-control-line:#818181;--p-accent:#00cda8;}
html body:is(.dark,:not(.dark)) :is(input,select,textarea) {border-color:var(--p-control-line)!important;}
html body:is(.dark,:not(.dark)) :is(button,input,select,textarea):disabled {opacity:1!important;color:var(--p-muted)!important;}
html body:is(.dark,:not(.dark)) button:disabled :is(i,span,small,svg,kbd) {color:inherit!important;opacity:1!important;}
html body :is(.r-setting-sidebar,.r-setting-content,.r-setting,.account-summary,.account-plan,.account-options,.video-directory,.video-content,.video-settings,.video-breadcrumbs,.reference-app-list,.r-mobile-window,.mobile-pop,.model-scroll,.model-pop) {
 color:var(--p-fg)!important;border-color:var(--p-line)!important;
}
html body :is(.account-summary,.account-plan,.account-options,.video-directory,.video-content,.video-settings,.r-mobile-window,.mobile-pop) {background:var(--p-card)!important;}
html body :is(.r-setting-sidebar button,.r-setting-sidebar button i,.r-setting-sidebar button span,.replica-close,.r-setting-content h4,.r-setting-content label,.video-directory label,.video-directory nav button,.video-breadcrumbs button) {color:var(--p-fg)!important;}
html body :is(.r-setting-sidebar button.active,.video-directory button[aria-current=page],#video-column button[aria-expanded=true]) {background:var(--p-selected)!important;color:var(--p-fg)!important;}
html body :is(.r-outline,.r-plan-card,.r-model-card,.account-plan button,.model-icon,.model-pop em,.permission-pop button,.mobile-tabs button) {background:var(--p-raised)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important;}
html body :is(.r-setting-sidebar,.video-directory,.account-pop) :is(i,span,small) {color:inherit!important;}
html body :is(.r-setting-content,.r-setting-sidebar,.video-content) :is(p,small,label,h4) {color:var(--p-muted)!important;}
html body:not(.dark) .send:not(:disabled) {color:#fff!important;}
html body.dark .send:not(:disabled) {color:#05271d!important;}
html body .r-switch {border-color:var(--p-control-line)!important;}
html body :is(.r-switch,.r-switch.on) {color:var(--p-fg)!important;}

html body:is(.dark,:not(.dark)) .menubar>button:disabled {opacity:1!important;}
html body:is(.dark,:not(.dark)) .feature-banner header {background:var(--p-raised)!important;color:var(--p-fg)!important;}
html body:is(.dark,:not(.dark)) .feature-banner header :is(b,span) {opacity:1!important;color:var(--p-fg)!important;}
html body:is(.dark,:not(.dark)) .r-schedule-grid .paused {opacity:1!important;}
html body:is(.dark,:not(.dark)) .r-switch {background:var(--p-control-line)!important;}
html body:is(.dark,:not(.dark)) .r-switch.on {background:var(--p-accent)!important;}
html body.dark .r-switch.on::after {background:#05271d!important;}

/* Inner containers must not retain the reference product's fixed white/blue palette. */
html body:is(.dark,:not(.dark)) :is(.r-setting-card,.theme-wait) {
 background:var(--p-card)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important;
}
html body:is(.dark,:not(.dark)) .r-muted {color:var(--p-muted)!important;}
html body:is(.dark,:not(.dark)) .theme-preview>span {
 background:var(--p-warning)!important;color:var(--p-warning-text)!important;opacity:1!important;
}
html body #dialog.video-browser .column-rows>button {
 background:var(--p-card)!important;color:var(--p-fg)!important;border-color:var(--p-line)!important;
}
html body #dialog.video-browser .column-rows>button:is(:hover,:focus-visible,[aria-expanded=true]) {background:var(--p-selected)!important;}
html body #dialog.video-browser .video-directory :is(strong,nav>div) {color:var(--p-fg)!important;}
html body #dialog.video-browser button>span {color:inherit!important;opacity:1!important;}
html body {--p-primary-hover:#333;}
html body.dark {--p-primary-hover:#dfdfdf;}
html body:is(.dark,:not(.dark)) :is(.primary,.black):hover {
 filter:none!important;background:var(--p-primary-hover)!important;color:var(--p-primary-text)!important;
}

/* Search, feedback and non-file nested flyouts share the platform palette. */
html body:is(.dark,:not(.dark)) .r-search-title {color:var(--p-fg)!important;}
html body:is(.dark,:not(.dark)) :is(.r-search-bottom,#r-search-results>span,.feedback-log) {color:var(--p-muted)!important;}
html body:is(.dark,:not(.dark)) .r-switch:is(:hover,:focus-visible) {background:var(--p-control-line)!important;}
html body:is(.dark,:not(.dark)) .r-switch.on:is(:hover,:focus-visible) {background:var(--p-accent)!important;}
html body #r-feedback-save:disabled {background:var(--p-selected)!important;color:var(--p-muted)!important;}
html body #r-feedback-save:not(:disabled) {background:var(--p-primary)!important;color:var(--p-primary-text)!important;}
html body #r-feedback-save:not(:disabled):hover {background:var(--p-primary-hover)!important;}

/* Selected model and account labels retain their semantics in both appearances. */
html body:is(.dark,:not(.dark)) .model-pop button.chosen {background:var(--p-selected)!important;color:var(--p-fg)!important;}
.model-pop {max-height:min(480px,70dvh);overflow-y:auto;max-width:calc(100vw - 24px);}
.model-pop [data-provider-model] {width:100%;text-align:left;white-space:normal;overflow-wrap:anywhere;min-height:44px;}
.model-pop [data-provider-model][aria-pressed="true"] {background:var(--p-selected)!important;color:var(--p-fg)!important;}
.model-pop button[data-provider-model] {display:block!important;box-sizing:border-box;min-width:0!important;max-width:100%!important;white-space:normal!important;line-height:1.6;}
.model-pop button[data-provider-model] small {display:block!important;white-space:normal!important;overflow-wrap:anywhere;max-width:100%;}
.model-pop [data-model-search] {box-sizing:border-box;width:100%;max-width:100%;min-width:0;}
.model-pop button[data-provider-model][hidden] {display:none!important;}
html body:is(.dark,:not(.dark)) .account-summary>b {color:var(--p-fg)!important;}
html body:is(.dark,:not(.dark)) .feedback-entry {background:var(--p-card)!important;color:var(--p-fg)!important;border-color:var(--p-control-line)!important;}

/* Reference chat presentation: neutral input surfaces and neutral focus cues. */
html body {--chat-surface:#f0f0f0;--chat-line:#858585;--chat-focus:#555;}
html body.dark {--chat-surface:#303030;--chat-line:#818181;--chat-focus:#c2c2c2;}
html body:is(.dark,:not(.dark)) :focus-visible,
html body:is(.dark,:not(.dark)) :is(button,input,select,textarea,a):focus-visible,
html body #dialog.video-browser .video-flyout button:focus-visible {
 outline:2px solid var(--chat-focus)!important;outline-offset:2px;
}
html body #dialog.video-browser {--menu-focus:var(--chat-focus);}
html body:is(.dark,:not(.dark)) .composer.composer {
 background:var(--chat-surface)!important;border:1px solid var(--chat-line)!important;
 border-radius:16px!important;box-shadow:none!important;
}
html body:is(.dark,:not(.dark)) .composer .compose-inner,
html body:is(.dark,:not(.dark)) .composer .compose-foot {
 background:transparent!important;border:0!important;box-shadow:none!important;
}
html body:is(.dark,:not(.dark)) .composer .compose-inner {padding:12px 14px 6px;border-radius:16px!important;}
html body:is(.dark,:not(.dark)) .composer textarea,
html body:is(.dark,:not(.dark)) .composer textarea:is(:focus,:focus-visible) {
 background:transparent!important;border:0!important;outline:none!important;
 box-shadow:none!important;border-radius:0!important;padding:0!important;
 min-height:44px!important;height:54px!important;resize:vertical;line-height:1.6;
}
html body:is(.dark,:not(.dark)) .composer:has(textarea:focus-visible) {outline:none!important;outline-offset:0;}
html body:is(.dark,:not(.dark)) .composer .mascot {display:none!important;}
html body:is(.dark,:not(.dark)) .compose-tools {gap:4px;height:auto;min-height:32px;flex-wrap:wrap;}
html body:is(.dark,:not(.dark)) .compose-foot {padding:4px 14px 9px;height:auto;min-height:30px;}
html body:is(.dark,:not(.dark)) .compose-tools button {color:var(--p-fg)!important;}
html body:is(.dark,:not(.dark)) .context-bubbles {color:var(--p-fg)!important;}
html body:is(.dark,:not(.dark)) .send:not(:disabled) {background:var(--p-primary)!important;color:var(--p-primary-text)!important;}
html body.replica-v4:not(.assistant-layout) .home {
 display:flex;flex-direction:column;align-items:stretch;max-width:720px;
 width:calc(100% - 48px);padding-top:clamp(60px,17vh,150px)!important;padding-bottom:45px;
}
html body .home>h1 {order:0;font-size:clamp(24px,2.6vw,32px);margin:0 0 28px;text-align:center;}
html body .home>.composer {order:1;}
html body .home>.modes {order:2;margin:14px 0 0!important;}
html body .home>.chips {order:3;margin:18px 0 0!important;justify-content:center;flex-wrap:wrap;}
html body .home>.suggestions {order:4;margin-top:24px!important;}
html body:is(.dark,:not(.dark)) .conversation {max-width:800px;margin:auto;padding:24px 24px 32px;}
html body .conversation>.pagehead h2 {font-size:15px;font-weight:500;}
html body:is(.dark,:not(.dark)) .conversation>.message.user {
 width:fit-content;max-width:85%;margin:24px 0 30px auto;
 padding:12px 16px;border:0!important;border-radius:16px;white-space:pre-wrap;
 background:var(--chat-surface)!important;
}
html body:is(.dark,:not(.dark)) .conversation>.message:not(.user) {
 background:transparent!important;border:0!important;padding:12px 0;line-height:1.8;
}
html body:is(.dark,:not(.dark)) .conversation>.notice {
 background:transparent!important;border:0!important;color:var(--p-muted)!important;
 padding:8px 0;line-height:1.7;
}
html body .conversation-compose {width:min(800px,calc(100% - 32px));margin:0 auto;padding:12px 0 18px;}
@media(max-width:700px){html body.replica-v4:not(.assistant-layout) .home{width:calc(100% - 28px);padding-top:55px!important;}html body .conversation{padding:18px 14px!important;}html body .conversation-compose{width:calc(100% - 24px);}html body .compose-tools #model{max-width:48%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}}

/* Consolidated profile entry; account actions remain reachable from 我. */
html body #sidebar #settings.account {display:none!important;}

/* Home follows the supplied composition; auxiliary tools remain in the plus menu. */
html body.replica-v4:not(.assistant-layout) .home.reference-home {position:relative;max-width:454px;width:calc(100% - 48px);padding-top:clamp(125px,27vh,195px)!important;display:flex;min-height:calc(100dvh - 34px);}
html body .reference-home .reference-plan {position:absolute;top:16px;left:50%;transform:translateX(-50%);white-space:nowrap;padding:4px 8px;background:var(--p-card);border-radius:9px;color:var(--p-muted);font-family:Georgia,serif;}
html body .reference-home #reference-upgrade {color:#75baff!important;padding:0;min-height:20px;text-decoration:underline;}
html body:not(.dark) .reference-home #reference-upgrade {color:#1656a4!important;}
html body .home.reference-home>h1 {font-family:Georgia,'Songti SC','SimSun',serif!important;font-size:29px;font-weight:600;white-space:nowrap;align-self:center;letter-spacing:-1px;margin:0 0 34px;}
html body .reference-home h1>span {color:#d98059;font-size:38px;vertical-align:middle;font-family:serif;}
html body:is(.dark,:not(.dark)) .reference-home .composer.composer {background:#f1f1f1!important;border-color:#929292!important;border-radius:14px!important;}
html body.dark .reference-home .composer.composer {background:#303030!important;border-color:#777!important;}
html body .reference-home .composer .compose-inner {padding:10px 12px 8px;}
html body .reference-home .composer textarea {height:48px!important;min-height:48px!important;resize:none;font-size:14px;}
html body .reference-home .compose-tools {min-height:28px;gap:4px;flex-wrap:nowrap;}
html body .reference-home .compose-tools button {padding:3px 5px;min-height:28px;font-family:Georgia,'Microsoft YaHei',serif!important;font-size:14px;}
html body .reference-chat-modes {display:flex;border-radius:7px;background:var(--p-selected);}
html body .reference-chat-modes button.active {background:var(--p-hover)!important;border:1px solid var(--p-control-line);}
html body .reference-home #model {font-size:13px;max-width:145px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
html body .reference-home #send {width:28px;height:28px;min-height:28px;background:transparent!important;color:var(--p-fg)!important;border-radius:6px;font-size:16px;}
html body .reference-home #voice {font-size:18px;}
html body .reference-categories {display:flex;gap:7px;justify-content:center;margin-top:40px;white-space:nowrap;}
html body .reference-categories button {font-family:Georgia,'Microsoft YaHei',serif!important;background:var(--p-selected);border-radius:8px;padding:4px 7px;min-height:28px;font-size:13px;}
html body .reference-categories button span {font-family:system-ui;font-size:16px;}
html body .reference-compose-more {position:relative;}
html body .reference-compose-more summary {list-style:none;cursor:pointer;font-size:24px;width:25px;line-height:28px;text-align:center;}
html body .reference-compose-more summary::-webkit-details-marker {display:none;}
html body .reference-compose-menu {position:absolute;bottom:35px;left:0;z-index:20;background:var(--p-card);border:1px solid var(--p-control-line);border-radius:12px;padding:8px;width:250px;box-shadow:0 8px 30px #0003;}
html body .reference-compose-menu button {display:block;width:100%;text-align:left;}
html body .reference-compose-menu small {display:block;padding:8px;color:var(--p-muted);line-height:1.5;white-space:normal;}
html body:has(.reference-home)>footer {display:none;}
@media(max-width:700px){html body .home.reference-home>h1{font-size:clamp(17px,4.3vw,27px);white-space:normal;text-align:center;}html body .reference-categories{flex-wrap:wrap;}html body .reference-chat-modes button{font-size:12px;padding:3px;}html body .reference-home #model{max-width:90px;font-size:11px;}html body .reference-home .compose-tools{gap:1px;}}

html body .reference-categories{order:2;}
html body .reference-home .composer textarea{height:42px!important;min-height:42px!important;display:block;}
html body .reference-home .compose-tools{height:28px;min-height:28px;padding-top:0;}
html body .reference-chat-modes{flex-shrink:0;}
html body .reference-chat-modes button{white-space:nowrap;}
html body .reference-home .compose-tools .push{min-width:0;}
html body .reference-home #model{min-width:0;}
html body.dark:has(.reference-home) #main{background:#191919!important;}
html body.dark .reference-home .composer.composer{border-color:#444!important;}
@media(max-width:700px){html body .reference-home .reference-chat-modes button{padding:3px 4px;font-size:12px;white-space:nowrap;}html body .reference-home #model{max-width:70px;}html body .reference-home #voice{padding:3px;width:22px;}}

html body .reference-home .composer textarea{height:55px!important;min-height:55px!important;}
html body .home.reference-home>h1{margin-bottom:24px;}
html body .reference-categories svg{width:16px;height:16px;vertical-align:middle;}

/* Reference toolbar: precise neutral fills, typography and aligned line icons. */
html body .reference-home .reference-chat-modes {height:28px;align-items:center;background:#e3e3e3;border-radius:7px;gap:0;}
html body.dark .reference-home .reference-chat-modes {background:#383838;}
html body .reference-home .reference-chat-modes button {height:28px;min-height:28px;padding:3px 9px;font-size:15px;line-height:20px;font-weight:400;border:1px solid transparent;border-radius:7px;}
html body .reference-home .reference-chat-modes button.active {background:#d0d0d0!important;border-color:#909090!important;}
html body.dark .reference-home .reference-chat-modes button.active {background:#505050!important;border-color:#707070!important;}
html body.dark .reference-home .compose-tools button {color:#f5f5f5!important;}
html body .reference-home #model {font-family:Georgia,'Times New Roman',serif!important;font-size:15px!important;padding:3px 5px;max-width:160px;}
html body .reference-home #voice {display:inline-flex;align-items:center;justify-content:center;gap:7px;width:43px;padding:3px;flex-shrink:0;}
html body .reference-home #voice>svg {width:17px;height:17px;stroke-width:1.6;}
html body .reference-home #voice>svg.reference-voice-caret {width:9px;height:9px;color:var(--p-muted);}
html body .reference-home #send {width:24px;min-width:24px;padding:3px;flex-shrink:0;}
html body .reference-home #send svg {width:15px;height:15px;stroke-width:1.6;opacity:1!important;}
html body.dark .reference-home #send svg {color:#d6d6d6!important;}
html body .reference-home .reference-compose-more summary {width:25px;font-family:Arial,sans-serif;font-size:24px;font-weight:300;}
@media(max-width:700px){html body .reference-home .reference-chat-modes button{font-size:13px;padding:3px 5px;}html body .reference-home #model{font-size:12px!important;max-width:72px;}html body .reference-home #voice{width:30px;gap:3px;}}

/* Supplied brand image replaces only the decorative orange title symbol. */
html body .reference-home .reference-hero-mark {display:inline-block;width:40px;height:32px;object-fit:contain;object-view-box:inset(32.5% 59.2% 31.4% 23.6%);vertical-align:middle;mix-blend-mode:screen;filter:none;}
html body:not(.dark) .reference-home .reference-hero-mark {filter:invert(1) hue-rotate(180deg);mix-blend-mode:multiply;}
@media(max-width:700px){html body .reference-home .reference-hero-mark{width:30px;height:25px;}}

/* Reference plus menu: five labelled rows, neutral surfaces and nested groups. */
html body :is(.reference-home,.conversation-compose) .reference-compose-menu {top:calc(100% + 6px);bottom:auto;left:0;width:224px;padding:5px 0;border:1px solid #dedede;border-radius:15px;background:#fff;color:var(--p-fg);box-shadow:0 8px 24px #0003;}
html body.dark :is(.reference-home,.conversation-compose) .reference-compose-menu {background:#303030;border-color:#424242;}
html body :is(.reference-home,.conversation-compose) .reference-compose-menu :is(button,.reference-menu-branch>summary) {display:flex;align-items:center;gap:10px;width:100%;height:32px;min-height:32px;padding:5px 16px;border:0;border-radius:0;font-family:Geist,'Microsoft YaHei',sans-serif!important;font-size:14px;line-height:22px;white-space:nowrap;cursor:pointer;background:transparent;}
html body .reference-compose-menu svg {width:18px;height:18px;flex:none;}
html body .reference-compose-menu :is(button,summary)>small {margin-left:auto;padding:0;font-size:12px;color:var(--p-muted);line-height:20px;}
html body .reference-compose-menu hr {height:1px;border:0;background:var(--p-line);margin:3px 0;}
html body .reference-menu-branch {position:relative;}
html body .reference-menu-branch>summary {list-style:none;}
html body .reference-menu-branch>summary::-webkit-details-marker {display:none;}
html body .reference-plus-submenu {display:none;position:absolute;left:100%;top:0;width:224px;padding:5px 0;border:1px solid var(--p-control-line);border-radius:12px;background:var(--p-card);box-shadow:0 8px 24px #0003;z-index:30;}
html body .reference-menu-branch:is([open],:hover,:focus-within)>.reference-plus-submenu {display:block;}
html body .reference-menu-branch:is([open],:hover)>summary {background:var(--p-hover);}
html body :is(.reference-home,.conversation-compose) .reference-compose-menu .reference-plus-unavailable {cursor:not-allowed;opacity:1;}
@media(max-width:700px){html body .reference-plus-submenu {left:0;top:100%;max-width:224px;}html body :is(.reference-home,.conversation-compose) .reference-compose-menu{max-width:calc(100vw - 80px);}}

html body :is(.reference-home,.conversation-compose) .reference-compose-menu #attach{font-size:14px!important;}
html body :is(.reference-home,.conversation-compose) .reference-compose-menu #context .context-bubbles{display:none;}
html body :is(.reference-home,.conversation-compose) .reference-compose-menu #context::after{content:'选择资料库';}

/* Fluid home: grow with the available pane without scaling text or icons. */
html body.replica-v4:not(.assistant-layout) .home.reference-home {
 width:calc(100% - 48px);max-width:clamp(560px,52vw,880px);min-width:0;
 min-height:calc(100dvh - 34px);padding-top:clamp(68px,calc(30dvh - 50px),260px)!important;
 padding-bottom:clamp(28px,6dvh,60px);box-sizing:border-box;
}
html body .home.reference-home>h1 {max-width:100%;white-space:normal;text-align:center;margin-bottom:clamp(22px,4dvh,36px);font-size:clamp(23px,2.2vw,32px);}
html body .reference-home .composer.composer {width:100%;min-width:0;}
html body .reference-home .composer textarea {height:clamp(48px,8dvh,90px)!important;min-height:48px!important;max-height:30dvh;}
html body .reference-home .reference-categories {margin-top:clamp(22px,4.5dvh,40px);flex-wrap:wrap;}
@media(max-width:700px){
 html body.replica-v4:not(.assistant-layout) .home.reference-home {width:calc(100% - 28px);max-width:none;padding-top:clamp(70px,calc(25dvh - 40px),150px)!important;}
 html body .home.reference-home>h1{font-size:clamp(19px,4.3vw,27px);}
}
@media(max-height:500px){
 html body.replica-v4:not(.assistant-layout) .home.reference-home {padding-top:70px!important;}
 html body .reference-home .composer textarea{height:48px!important;}
 html body .home.reference-home>h1{margin-bottom:20px;}
 html body .reference-home .reference-categories{margin-top:22px;}
}

html body:is(.dark,:not(.dark)) .reference-home .composer textarea:is(:focus,:focus-visible){height:clamp(48px,8dvh,90px)!important;min-height:48px!important;}
@media(max-height:500px){html body:is(.dark,:not(.dark)) .reference-home .composer textarea:is(:focus,:focus-visible){height:48px!important;}}

/* Four existing tools move to the left rail, with one consistent icon scale. */
html body:is(.dark,:not(.dark)) .rail-migrated-tools {display:flex;flex-direction:column;align-items:center;gap:8px;width:100%;padding-top:8px;border-top:1px solid var(--p-line);flex:none;}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(#search,#topFilter,#quickMessage,#quickDevice) {position:static!important;inset:auto!important;display:flex!important;align-items:center;justify-content:center;width:34px!important;height:34px!important;min-height:34px!important;padding:8px!important;margin:0!important;flex:0 0 34px;border:0!important;border-radius:9px;background:transparent!important;color:var(--p-muted)!important;}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(#search,#topFilter,#quickMessage,#quickDevice):hover {background:var(--p-selected)!important;color:var(--p-fg)!important;}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(button,#search,#topFilter,#quickMessage,#quickDevice)>svg {width:18px!important;height:18px!important;stroke-width:1.6!important;flex:none;}
html body:is(.dark,:not(.dark)) .shortcut-rail {overflow-y:auto;overflow-x:hidden;}

/* Compact desktop chrome, aligned to the sidebar divider. */
html body:is(.dark,:not(.dark)) .menubar {height:32px!important;min-height:32px;gap:2px!important;padding:0 4px!important;align-items:center;border-top:0!important;border-bottom-width:1px!important;}
html body:is(.dark,:not(.dark)) .menubar>button {height:26px!important;min-height:26px!important;padding:3px 6px!important;font-size:12px!important;line-height:20px!important;border-radius:5px;flex-shrink:0;}
html body:is(.dark,:not(.dark)) .menubar>button svg {width:14px!important;height:14px!important;}
html body:is(.dark,:not(.dark)) .menubar>button:is(#nav-back,#nav-forward,#collapse) {width:26px;padding:5px!important;}
html body:is(.dark,:not(.dark)) .shortcut-rail {top:32px!important;height:calc(100dvh - 32px)!important;padding-top:6px!important;}
html body:is(.dark,:not(.dark)) #sidebar {top:32px!important;}

/* Original theme controls live in the left rail, with their handlers intact. */
html body:is(.dark,:not(.dark)) .shortcut-rail #platform-appearance {display:flex!important;flex-direction:column;align-items:center;justify-content:flex-start;flex-wrap:nowrap!important;flex:none;width:100%;gap:8px!important;padding:8px 0 0!important;margin:0!important;border-top:1px solid var(--p-line);}
html body:is(.dark,:not(.dark)) .shortcut-rail #platform-appearance button {width:34px!important;height:34px!important;min-height:34px!important;flex:0 0 34px!important;padding:8px!important;margin:0!important;border-radius:9px!important;}
html body:is(.dark,:not(.dark)) .shortcut-rail #platform-appearance svg {width:18px!important;height:18px!important;stroke-width:1.6!important;}
html body .shortcut-rail #platform-appearance .appearance-status:empty {display:none;}
html body .shortcut-rail #platform-appearance .appearance-status:not(:empty) {position:fixed;left:54px;bottom:20px;width:220px;padding:8px;background:var(--p-card);color:var(--p-fg);border:1px solid var(--p-line);border-radius:8px;font-size:12px;z-index:100;}

/* Lift the sidebar stack by removing spare padding, preserving all controls. */
html body:is(.dark,:not(.dark)) #sidebar {padding-top:6px!important;}
html body:is(.dark,:not(.dark)) #sidebar .brand {padding:0 8px 8px!important;gap:8px!important;flex-shrink:0;}
html body:is(.dark,:not(.dark)) #sidebar #nav {gap:0!important;flex-shrink:0;}
html body:is(.dark,:not(.dark)) #sidebar #nav button {height:34px!important;min-height:34px!important;}
html body:is(.dark,:not(.dark)) #sidebar .side-section {margin-top:14px!important;}

/* Compact ongoing-chat input, with model and disclaimer outside the surface. */
html body:is(.dark,:not(.dark)) .conversation-compose .composer.composer {border-radius:15px!important;background:#f1f1f1!important;border-color:#929292!important;}
html body.dark .conversation-compose .composer.composer {background:#303030!important;border-color:#444!important;}
html body:is(.dark,:not(.dark)) .conversation-compose .composer .compose-inner {display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:8px;align-items:center;min-height:42px;padding:9px 12px!important;}
html body:is(.dark,:not(.dark)) .conversation-compose #prompt,
html body:is(.dark,:not(.dark)) .conversation-compose #prompt:is(:focus,:focus-visible) {grid-column:2;grid-row:1;height:var(--conversation-input-height,22px)!important;min-height:22px!important;max-height:144px;line-height:22px!important;font-size:14px;resize:none!important;overflow-y:auto;border:0!important;outline:none!important;}
html body .conversation-compose .reference-compose-more {grid-column:1;grid-row:1;align-self:end;}
html body .conversation-compose .reference-compose-more>summary {list-style:none;font-size:24px;line-height:24px;text-align:center;cursor:pointer;}
html body .conversation-compose .reference-compose-more>summary::-webkit-details-marker {display:none;}
html body .conversation-compose .conversation-input-actions {grid-column:3;grid-row:1;display:flex;align-items:center;align-self:end;gap:7px;}
html body:is(.dark,:not(.dark)) .conversation-compose .conversation-input-actions button {display:inline-flex;align-items:center;justify-content:center;padding:0!important;height:24px!important;min-height:24px!important;background:transparent!important;color:var(--p-fg)!important;border-radius:5px;}
html body .conversation-compose #voice {gap:7px;}
html body .conversation-compose #voice span {font-size:11px;color:var(--p-muted);}
html body .conversation-compose .conversation-input-actions svg {width:17px!important;height:17px!important;}
html body .conversation-compose #send {width:24px!important;}
html body .conversation-compose #files {grid-column:1/-1;grid-row:2;font-size:12px;color:var(--p-muted);overflow-wrap:anywhere;}
html body .conversation-compose #files:empty {display:none;}
html body .conversation-input-footer {display:flex;justify-content:space-between;align-items:center;gap:12px;padding:7px 14px 0;}
html body .conversation-input-footer>span {font-size:12px;color:var(--p-muted);}
html body:is(.dark,:not(.dark)) .conversation-input-footer #model {font-size:14px!important;min-height:22px;padding:0!important;max-width:60%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-family:Georgia,'Microsoft YaHei',serif!important;}
html body .conversation-compose .reference-compose-menu {top:auto;bottom:calc(100% + 8px);}
@media(max-width:600px){html body .conversation-input-footer{padding-inline:4px;gap:6px;}html body .conversation-input-footer>span{font-size:10px;}html body .conversation-input-footer #model{font-size:11px!important;}html body .conversation-compose .composer .compose-inner{gap:4px;}}

/* Branded connected model icon; provider ID remains unchanged. */
.model-icon .fruit-model-logo{display:block;width:20px;height:20px;object-fit:contain;object-view-box:inset(32.5% 59.2% 31.4% 23.6%);mix-blend-mode:screen;}
body:not(.dark) .model-icon .fruit-model-logo{filter:invert(1) hue-rotate(180deg);mix-blend-mode:multiply;}

/* Dictation dropdown: no microphone permission is requested on opening. */
.fruit-voice-pop{position:fixed;z-index:10000;box-sizing:border-box;width:160px;padding:10px 8px 7px;border:1px solid #444;border-radius:13px;background:#303030;color:#eee;box-shadow:0 7px 22px #0005;font:13px/1.4 Arial,"Microsoft YaHei",sans-serif;}
.fruit-voice-pop .voice-device-meter{display:flex;align-items:center;gap:12px;padding:0 7px;color:#aaa;height:20px}.voice-device-meter svg{width:16px;height:16px;flex-shrink:0}.voice-device-meter>span{height:5px;flex:1;background:#414141;border-radius:9px}
.fruit-voice-pop .voice-device-state{margin:7px 7px;color:#b5b5b5;font-size:12px;overflow-wrap:anywhere}.fruit-voice-pop hr{border:0;border-top:1px solid #484848;margin:8px 7px 4px}
.fruit-voice-pop button{display:flex;align-items:center;gap:6px;width:100%;min-height:28px;border:0;border-radius:5px;padding:4px 7px;background:transparent;color:inherit;text-align:left;font:inherit;cursor:pointer}.fruit-voice-pop button:hover{background:#444}.fruit-voice-pop button:focus-visible{outline:2px solid #aaa;outline-offset:-2px}.fruit-voice-pop [data-language-label]{margin-left:auto;color:#b5b5b5}.fruit-voice-pop b{font-size:18px;font-weight:400;color:#aaa}.fruit-voice-pop .voice-settings-info{padding:2px 7px;color:#ccc;font-size:12px}.fruit-voice-pop [hidden]{display:none!important}
body:not(.dark) .fruit-voice-pop{background:#fff;color:#252525;border-color:#ddd;box-shadow:0 7px 22px #0002}body:not(.dark) .fruit-voice-pop button:hover{background:#eee}body:not(.dark) .fruit-voice-pop .voice-device-state,body:not(.dark) .fruit-voice-pop [data-language-label],body:not(.dark) .fruit-voice-pop .voice-settings-info{color:#606060}body:not(.dark) .fruit-voice-pop hr{border-color:#ddd}

/* One compact right edge entry for the relocated workspace controls. */
#fruit-space-toggle{position:fixed;z-index:1100;right:8px;top:48px;width:32px;height:32px;display:grid;place-items:center;padding:6px;border:1px solid var(--p-border,#444);border-radius:8px;background:var(--p-panel,#222);color:var(--p-text,#eee);cursor:pointer}#fruit-space-toggle svg{width:18px;height:18px}#fruit-space-toggle:hover{background:var(--p-hover,#383838)}
#fruit-space-panel{position:fixed;z-index:1099;right:0;top:36px;bottom:0;width:min(280px,calc(100vw - 56px));box-sizing:border-box;padding:14px 12px;background:#171717;color:#eee;border-left:1px solid #3b3b3b;box-shadow:-7px 0 22px #0003;overflow-y:auto}#fruit-space-panel[hidden]{display:none!important}#fruit-space-panel header{display:flex;align-items:center;gap:10px;padding:0 36px 14px 2px}#fruit-space-panel header button{background:transparent;color:inherit;border:0;border-radius:5px;width:28px;height:28px;font-size:22px;cursor:pointer;margin-left:auto}#fruit-space-panel .side-section{margin:0;padding:0}#fruit-space-panel .side-section button{width:100%;text-align:left;min-height:36px;background:transparent;color:inherit;border:0;border-radius:6px;padding:8px 10px;cursor:pointer}#fruit-space-panel button:hover{background:#333}#fruit-space-panel .step-example{padding:10px;color:#aaa}#fruit-space-panel button:focus-visible,#fruit-space-toggle:focus-visible{outline:2px solid #aaa;outline-offset:1px}
body:not(.dark) #fruit-space-panel{background:#fff;color:#252525;border-color:#ddd}body:not(.dark) #fruit-space-panel button:hover{background:#eee}body:not(.dark) #fruit-space-panel .step-example{color:#666}body:not(.dark) #fruit-space-toggle{background:#fff;color:#333;border-color:#ddd}

/* Video reference: compact conversations and tasks list. */
html body #sidebar .video-history-heading{display:flex;align-items:center;gap:4px;margin:12px 0 6px}html body #sidebar .video-history-heading button{background:transparent;color:var(--p-muted);border:0;min-height:28px;padding:3px 7px;font-size:12px;cursor:pointer}#history-collapse{flex:1;text-align:left}#history-filter svg{width:16px;height:16px}html body #sidebar #history{max-height:none;overflow:visible}html body #sidebar #history[hidden]{display:none!important}
html body #sidebar #history .video-history-row{display:flex;align-items:center;min-height:34px;border-radius:6px;margin:1px 0}html body #sidebar #history .video-history-row:hover,html body #sidebar #history .video-history-row.selected{background:var(--p-hover,#353535)}html body #sidebar #history .history-open{display:flex;align-items:center;gap:9px;flex:1;min-width:0;text-align:left;background:transparent!important;padding:5px 7px!important;height:34px;min-height:34px!important}#history .history-open>span:last-child{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}#history .history-dot{font-size:12px;color:var(--p-muted);flex-shrink:0}html body #sidebar #history .history-more{width:27px;min-width:27px;flex-shrink:0;padding:3px!important;min-height:28px!important;line-height:20px;opacity:0;background:transparent!important;font-size:18px!important}.video-history-row:hover .history-more,.video-history-row.selected .history-more,.video-history-row:focus-within .history-more{opacity:1!important}html body #sidebar #history #history-view-all{color:var(--p-muted)!important;text-align:left;min-height:30px!important;background:transparent!important;padding:5px 7px!important}#history .history-empty,.history-group-title{color:var(--p-muted);font-size:12px;padding:8px}
.task-list-pop{position:fixed;z-index:12000;width:208px;box-sizing:border-box;padding:5px;border-radius:12px;border:1px solid #414141;background:#303030;color:#eee;box-shadow:0 8px 24px #0005;font:13px/1.4 Arial,"Microsoft YaHei",sans-serif;max-height:80vh;overflow:auto}.task-list-pop button,.task-list-pop summary{width:100%;min-height:29px;box-sizing:border-box;display:flex;align-items:center;gap:10px;padding:5px 9px;border:0;border-radius:5px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.task-list-pop button:hover,.task-list-pop summary:hover{background:#484848}.task-list-pop small,.task-list-pop summary span{margin-left:auto;font-size:12px;color:#aaa}.task-list-pop summary b{font-weight:400;color:#aaa}.task-list-pop hr{border:0;border-top:1px solid #484848;margin:4px 9px}.task-list-pop .history-delete{color:#f28b90}.task-list-pop details>div{margin:2px 5px 5px 15px;padding-left:5px;border-left:1px solid #555}.task-list-pop summary{list-style:none}.task-list-pop summary::-webkit-details-marker{display:none}.task-list-pop :focus-visible{outline:2px solid #aaa;outline-offset:-2px}.task-list-pop button:disabled{opacity:.6;cursor:wait}
body:not(.dark) .task-list-pop{background:#fff;color:#252525;border-color:#ddd}body:not(.dark) .task-list-pop button:hover,body:not(.dark) .task-list-pop summary:hover{background:#eee}body:not(.dark) .task-list-pop small,body:not(.dark) .task-list-pop summary span{color:#666}body:not(.dark) .task-list-pop .history-delete{color:#b52e3b}.video-history-all>header{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:24px}.video-history-all h2{margin-right:auto}.video-history-all input{max-width:180px}.video-history-all .video-history-row{display:flex;border-bottom:1px solid var(--p-border,#383838);min-height:52px;align-items:center}.video-history-all .history-open{flex:1;text-align:left;background:transparent;border:0;color:inherit;padding:12px;display:flex;gap:12px;min-width:0}.video-history-all .history-more{background:transparent;color:inherit;border:0;font-size:20px}.video-history-all .history-open span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}@media(hover:none){html body #sidebar #history .history-more{opacity:1}}

html body .task-list-pop .history-delete{color:#f28b90!important}html body:not(.dark) .task-list-pop .history-delete{color:#b52e3b!important}.task-list-pop:has(details){overflow:visible}.task-list-pop details{position:relative}.task-list-pop details>div{position:absolute;left:calc(100% - 2px);top:-5px;min-width:150px;max-height:65vh;overflow:auto;z-index:1;margin:0;padding:5px;border:1px solid #444;border-radius:10px;background:#303030;box-shadow:0 6px 18px #0004}body:not(.dark) .task-list-pop details>div{background:#fff;border-color:#ddd}@media(max-width:600px){.task-list-pop details>div{position:static;margin:3px 8px;box-shadow:none;min-width:0}}


/* Applications showcase: video-derived layout, no configured external links. */
html body #fruit-applications{padding:0;width:min(820px,calc(100vw - 48px));max-width:none;height:min(680px,calc(100dvh - 80px));max-height:calc(100dvh - 32px);margin:auto;box-sizing:border-box;border:1px solid #383838;border-radius:16px;background:#171717;color:#f0f0f0;box-shadow:0 16px 50px #0005;overflow:hidden;font-family:Arial,"Microsoft YaHei",sans-serif}#fruit-applications::backdrop{background:#0007}#fruit-applications .applications-top{height:48px;box-sizing:border-box;padding:0 14px;display:flex;align-items:center;justify-content:space-between;background:#222;border-bottom:1px solid #373737;font-size:13px}#fruit-applications .applications-close{width:30px;height:30px;border:0;border-radius:6px;background:transparent;color:#ccc;font:24px/1 Arial;cursor:pointer}#fruit-applications .applications-close:hover{background:#383838}#fruit-applications .applications-scroll{height:calc(100% - 48px);overflow-y:auto;overscroll-behavior:contain;box-sizing:border-box;padding:24px 30px 28px;scrollbar-color:#666 transparent;scrollbar-width:thin}#fruit-applications h2{max-width:720px;margin:0 auto 38px;text-align:center;font:700 24px/1.35 Georgia,"SimSun",serif;color:inherit}#fruit-applications h3{margin:0 0 10px;font-size:15px;line-height:1.4;color:inherit}#fruit-applications p{font-size:12px;line-height:1.5;margin:0 0 12px;color:#aaa!important}#fruit-applications .applications-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px}#fruit-applications .applications-card{position:relative;min-width:0;border:9px solid #202020;border-radius:26px;box-shadow:0 0 0 1px #252525;padding:24px;background:#171717;overflow:hidden}#fruit-applications .applications-code{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;gap:20px;min-height:326px;padding-bottom:0}#fruit-applications .applications-copy{padding-bottom:24px}#fruit-applications .applications-subtitle{margin:12px 0 6px;font-size:12px}#fruit-applications .applications-tools{display:flex;flex-wrap:wrap;gap:8px;max-width:245px}#fruit-applications .applications-pending{display:flex;align-items:center;gap:6px;padding:6px 8px;min-height:30px;border:1px solid #3b3b3b;border-radius:9px;background:transparent;color:#ddd!important;font:12px/1.3 Arial,"Microsoft YaHei",sans-serif;opacity:1!important;cursor:not-allowed}#fruit-applications .applications-pending svg{width:16px;height:16px;flex-shrink:0}#fruit-applications .applications-pending small,#fruit-applications .applications-upgrade small{color:#aaa!important;font-size:10px;white-space:nowrap}#fruit-applications .applications-upgrade{border:0;border-radius:6px;background:#e8e8e8;color:#222!important;padding:5px 8px;font-size:12px;opacity:1!important;cursor:not-allowed}#fruit-applications .applications-upgrade small{color:#555!important}#fruit-applications .applications-terminal{align-self:end;min-height:290px;background:#1e1e1e;border-radius:9px 9px 0 0;overflow:hidden;box-shadow:0 0 25px #0003}#fruit-applications .example-window-top{height:25px;padding:0 10px;display:flex;align-items:center;gap:5px;background:#292929;font-size:10px;color:#aaa}#fruit-applications .example-window-top>i{display:block;width:7px;height:7px;border-radius:50%;background:#ef6b64}#fruit-applications .example-window-top>i:nth-child(2){background:#ecc352}#fruit-applications .example-window-top>i:nth-child(3){background:#66bd68}#fruit-applications .example-window-top>span{margin-left:auto}#fruit-applications .applications-terminal-lines{padding:10px 12px;font-family:Consolas,monospace}#fruit-applications .applications-terminal-lines p{font-size:11px;color:#aaa!important}#fruit-applications .applications-terminal-lines pre{font:10px/1.55 Consolas,monospace;padding:8px;background:#252525;color:#aaa;white-space:pre-wrap;overflow-wrap:anywhere}#fruit-applications pre span{color:#cf8585}#fruit-applications pre em{color:#a4b889;font-style:normal}#fruit-applications .applications-terminal-lines .applications-thinking{color:#c18f60!important;padding-top:15px}#fruit-applications .applications-office,#fruit-applications .applications-chrome{padding-bottom:0;min-height:560px}#fruit-applications .applications-office{background:linear-gradient(#171717 40%,#1c2617)}#fruit-applications .applications-chrome{display:flex;flex-direction:column;background:linear-gradient(#171717 30%,#33271f)}#fruit-applications .applications-office-links{margin:14px 0 30px}#fruit-applications .applications-office-links button{border:0;border-bottom:1px solid #30372e;border-radius:0;padding:12px 0;width:100%;text-align:left;font-size:13px}#fruit-applications .applications-office-links small{margin-left:auto}#fruit-applications .office-logo{display:grid;place-items:center;width:19px;height:20px;border-radius:3px;color:white;font-weight:700;background:#27864c;box-shadow:4px -3px 0 #56ad69}#fruit-applications .office-logo.powerpoint{background:#ba462d;box-shadow:4px -3px 0 #e37b50}#fruit-applications .office-logo.word{background:#2359ac;box-shadow:4px -3px 0 #53a3ed}#fruit-applications .office-logo.outlook{background:#0872bb;box-shadow:4px -3px 0 #36a8ee}#fruit-applications .applications-sheet{position:relative;margin-right:-24px;padding-top:46px;padding-bottom:12px;font-size:10px}#fruit-applications .example-question{position:absolute;top:0;left:-6px;max-width:210px;padding:9px;background:#242724;color:#eee;border-radius:8px;font-size:11px;line-height:1.5}#fruit-applications .sheet-toolbar{padding:8px 4px;background:#303531;font-size:9px;color:#bcc7bf;white-space:nowrap}#fruit-applications table{width:100%;border-collapse:collapse;background:#25313b;color:#ced6df;font-size:9px}#fruit-applications th,#fruit-applications td{border:1px solid #536270;padding:3px 5px;text-align:left;white-space:nowrap}#fruit-applications .applications-sheet>small{display:block;margin-top:6px;color:#b4b4b4}#fruit-applications .applications-browser-example{margin-top:auto;margin-left:-5px;margin-right:-24px;padding-bottom:20px;background:#201e1c;box-shadow:0 -25px 60px #34281e66;font-size:10px}#fruit-applications .example-url{padding:7px;background:#111;border-radius:12px;margin:7px 5px 28px;color:#bbb}#fruit-applications .applications-browser-example>p,#fruit-applications .applications-browser-example>small{margin:15px 12px;display:block;font-size:10px}#fruit-applications .example-option{font-size:11px;line-height:1.5;padding:10px;margin:8px 10px;border:1px solid #48433e;border-radius:9px;color:#ccc}#fruit-applications .example-option b{float:right;background:#a06547;padding:1px 5px;border-radius:10px;font-size:9px}#fruit-applications .applications-mobile{min-height:560px;padding-bottom:0}#fruit-applications .applications-qr-pending{width:124px;height:140px;box-sizing:border-box;margin:30px auto 20px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;border:1px dashed #777;border-radius:12px;background:#252525;color:#ccc;font-size:12px}#fruit-applications .applications-qr-pending svg{width:35px;height:35px}#fruit-applications .applications-mobile-caption,#fruit-applications .applications-pending-note{text-align:center!important;font-size:11px!important}#fruit-applications .applications-health-example{border-top:1px solid #303030;margin:28px -5px 0;padding:20px 0 0}#fruit-applications .applications-health-example small{color:#aaa!important;font-size:10px}#fruit-applications .applications-bars{display:flex;gap:5px;align-items:end;height:120px;margin:12px 14px}#fruit-applications .applications-bars i{display:block;flex:1;background:#a94c78}html body #applications-entry svg{width:20px!important;height:20px!important;stroke-width:1.6!important}#fruit-applications button:focus-visible{outline:2px solid #aaa;outline-offset:2px}
html body:not(.dark) #fruit-applications{background:#fafafa;color:#222;border-color:#ddd}body:not(.dark) #fruit-applications .applications-top{background:#f0f0f0;border-color:#ddd}body:not(.dark) #fruit-applications .applications-card{background:#fff;border-color:#f0f0f0;box-shadow:0 0 0 1px #e5e5e5}body:not(.dark) #fruit-applications p{color:#666!important}body:not(.dark) #fruit-applications .applications-pending{color:#333!important;border-color:#ccc}body:not(.dark) #fruit-applications .applications-pending small{color:#666!important}body:not(.dark) #fruit-applications .applications-close{color:#444}body:not(.dark) #fruit-applications .applications-terminal-lines p,body:not(.dark) #fruit-applications .applications-browser-example p{color:#ccc!important}body:not(.dark) #fruit-applications .applications-qr-pending{background:#f5f5f5;color:#555}body:not(.dark) #fruit-applications .applications-health-example{border-color:#ddd}body:not(.dark) #fruit-applications .applications-health-example .example-option{color:#555}
@media(max-width:640px){html body #fruit-applications{width:calc(100vw - 20px);height:calc(100dvh - 32px)}#fruit-applications .applications-scroll{padding:22px 14px}#fruit-applications h2{font-size:20px;margin-bottom:24px}#fruit-applications .applications-grid{grid-template-columns:1fr;gap:16px}#fruit-applications .applications-code{grid-column:1;grid-template-columns:1fr;padding:20px;gap:8px}#fruit-applications .applications-copy{padding-bottom:5px}#fruit-applications .applications-tools{max-width:none}#fruit-applications .applications-terminal{min-height:250px}#fruit-applications .applications-card{border-width:6px}#fruit-applications .applications-office,#fruit-applications .applications-chrome{min-height:520px}}

html body #fruit-applications .applications-scroll{background:#171717}html body #fruit-applications h2{max-width:640px!important;font-family:Georgia,"SimSun",serif!important;font-size:24px!important;line-height:1.35!important}html body #fruit-applications .applications-code{min-height:370px}html body #fruit-applications .applications-tools{display:grid;grid-template-columns:max-content max-content;max-width:none;gap:8px}html body #fruit-applications .applications-tools button{font-size:11px;gap:5px;padding:5px 7px}html body #fruit-applications .applications-tools small{font-size:9px}html body #fruit-applications .applications-upgrade{align-self:flex-start;min-height:24px;line-height:14px}html body:not(.dark) #fruit-applications .applications-scroll{background:#fafafa}@media(max-width:640px){html body #fruit-applications h2{font-size:20px!important}html body #fruit-applications .applications-code{min-height:0}html body #fruit-applications .applications-tools{grid-template-columns:max-content max-content}}

html body #fruit-applications .applications-terminal pre{color:#c6c6c6!important}html body #fruit-applications .applications-terminal pre span{color:#cf8585!important}html body #fruit-applications .applications-terminal pre em{color:#a4b889!important}html body #fruit-applications .example-window-top span{color:#bbb!important}html body #fruit-applications .applications-sheet :is(th,td){color:#d7dce5!important}html body #fruit-applications .applications-browser-example .example-option{color:#ccc!important}


/* Compact avatar menu derived from the reference recording. */
html body .fruit-profile-menu{position:fixed;z-index:15000;box-sizing:border-box;width:230px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 16px);overflow:auto;padding:8px;border:1px solid #373737;border-radius:15px;background:#292929;color:#eee;box-shadow:0 10px 28px #0005;font:13px/1.4 Arial,"Microsoft YaHei",sans-serif}html body .fruit-profile-menu button{display:flex;align-items:center;width:100%;min-height:29px;gap:8px;padding:5px 7px;box-sizing:border-box;border:0;border-radius:6px;background:transparent;color:#eee!important;font:13px/1.4 Arial,"Microsoft YaHei",sans-serif;text-align:left;cursor:pointer}html body .fruit-profile-menu button svg{width:16px;height:16px;flex-shrink:0;color:#bbb}html body .fruit-profile-menu button>span{flex:1}html body .fruit-profile-menu button>small{margin-left:auto;font-size:11px;color:#aaa!important;white-space:nowrap}html body .fruit-profile-menu button:hover,html body .fruit-profile-menu button[aria-expanded="true"]{background:#3b3b3b}html body .fruit-profile-menu button:focus-visible{outline:1px solid #aaa;outline-offset:-1px;background:#3b3b3b}html body .fruit-profile-menu button:disabled{color:#aaa!important;cursor:not-allowed;opacity:1}html body .fruit-profile-menu hr{border:0;border-top:1px solid #414141;margin:5px 5px}html body .fruit-profile-menu .profile-identity{gap:8px;padding:3px 5px 7px;min-height:43px}html body .fruit-profile-menu .profile-identity-avatar{display:grid;place-items:center;flex:none;width:24px;height:24px;border-radius:50%;background:#8b9273;color:white;font-size:12px}html body .fruit-profile-menu .profile-identity strong{font-size:13px;font-weight:500}html body .fruit-profile-menu .profile-identity small{display:block;font-size:11px;color:#aaa!important}html body .fruit-profile-menu .profile-menu-note{font-size:12px;line-height:1.5;padding:7px;color:#bbb}
html body:not(.dark) .fruit-profile-menu{background:#fff;color:#292929;border-color:#ddd;box-shadow:0 10px 28px #0002}html body:not(.dark) .fruit-profile-menu button{color:#292929!important}html body:not(.dark) .fruit-profile-menu button svg{color:#666}html body:not(.dark) .fruit-profile-menu button>small,html body:not(.dark) .fruit-profile-menu .profile-identity small,html body:not(.dark) .fruit-profile-menu .profile-menu-note{color:#666!important}html body:not(.dark) .fruit-profile-menu button:hover,html body:not(.dark) .fruit-profile-menu button[aria-expanded="true"],html body:not(.dark) .fruit-profile-menu button:focus-visible{background:#eee}html body:not(.dark) .fruit-profile-menu button:disabled{color:#777!important}html body:not(.dark) .fruit-profile-menu hr{border-color:#e1e1e1}


/* Compact navigation rail: replaces the earlier per-position icon sizing. */
html body:is(.dark,:not(.dark)) .shortcut-rail{width:48px!important;padding:6px 8px!important;gap:3px!important;scrollbar-width:thin;scrollbar-color:var(--p-line) transparent}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(button,#search,#topFilter,#quickMessage,#quickDevice){width:30px!important;height:30px!important;min-height:30px!important;max-height:30px!important;flex:0 0 30px!important;padding:6px!important;margin:0!important;align-self:center;border:0!important;border-radius:8px!important;display:flex!important;align-items:center;justify-content:center;background:transparent!important;color:var(--p-muted)!important;transition:background-color .12s ease,color .12s ease;box-shadow:none!important}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(button,#search,#topFilter,#quickMessage,#quickDevice)>svg{width:18px!important;height:18px!important;flex:0 0 18px!important;stroke-width:1.65!important}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(button,#search,#topFilter,#quickMessage,#quickDevice):hover{background:var(--p-hover)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(button,#search,#topFilter,#quickMessage,#quickDevice):focus-visible{outline:1px solid var(--p-muted)!important;outline-offset:1px}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-home{background:var(--p-selected)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) .shortcut-rail #platform-appearance{gap:3px!important;padding:5px 0 0!important;margin:2px 0!important;border-top:1px solid var(--p-line)}
html body:is(.dark,:not(.dark)) .shortcut-rail #platform-appearance button{width:30px!important;height:30px!important;min-height:30px!important;flex:0 0 30px!important;padding:6px!important;border-radius:8px!important}
html body:is(.dark,:not(.dark)) .shortcut-rail #platform-appearance button[aria-pressed="true"]{background:var(--p-selected)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) .shortcut-rail #platform-appearance svg{width:18px!important;height:18px!important;stroke-width:1.65!important}
html body:is(.dark,:not(.dark)) .shortcut-rail hr{width:20px!important;margin:5px 0!important;border:0!important;border-top:1px solid var(--p-line)!important}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-spacer{min-height:8px;flex:1 1 auto}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-download{background:var(--p-fg)!important;color:var(--p-bg)!important;border-radius:50%!important}
html body:is(.dark,:not(.dark)) .shortcut-rail .rail-profile{border-radius:50%!important;background:var(--p-selected)!important;color:var(--p-fg)!important;font-size:13px!important;line-height:1!important}
@media(prefers-reduced-motion:reduce){html body .shortcut-rail button{transition:none!important}}

/* Simple conventional pictograms and consistent emphasis. */
html body:is(.dark,:not(.dark)) .shortcut-rail :is(button,#search,#topFilter,#quickMessage,#quickDevice)>svg{stroke-width:1.8!important}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(button,#search,#topFilter,#quickMessage,#quickDevice).rail-home{background:var(--p-selected)!important;color:var(--p-fg)!important}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(button,#search,#topFilter,#quickMessage,#quickDevice).rail-download{background:var(--p-fg)!important;color:var(--p-bg)!important;border-radius:50%!important}
html body:is(.dark,:not(.dark)) .shortcut-rail :is(button,#search,#topFilter,#quickMessage,#quickDevice).rail-profile{background:var(--p-selected)!important;color:var(--p-fg)!important;border-radius:50%!important}
.compact-rail-hint{position:fixed;left:52px;z-index:16000;pointer-events:none;white-space:nowrap;box-sizing:border-box;min-height:28px;padding:5px 9px;border:1px solid #454545;border-radius:7px;background:#303030;color:#f0f0f0;font:12px/17px Arial,"Microsoft YaHei",sans-serif;box-shadow:0 4px 14px #0003}.compact-rail-hint[hidden]{display:none!important}body:not(.dark) .compact-rail-hint{background:#fff;color:#252525;border-color:#ddd}

/* Company avatar uses the supplied Fruit AI mark. */
.account-summary img,.account .avatar img{object-fit:contain;object-view-box:inset(32.5% 59.2% 31.4% 23.6%);mix-blend-mode:screen;}

/* Reserve top-right header space for the persistent workspace control. */
html body #main :is(.pagehead,.video-history-all>header,.market-top,.r-schedule-head){padding-right:48px!important;box-sizing:border-box;min-width:0}
html body .reference-plus-submenu{overflow-y:auto;overscroll-behavior:contain}

html body #main .r-page-close{right:56px!important}
@media(max-width:700px){
 html body.collapsed #sidebar{display:flex!important;left:48px!important;top:32px!important;bottom:0!important;width:min(240px,calc(100vw - 96px))!important;max-width:calc(100vw - 96px);height:calc(100dvh - 32px);padding:10px 8px!important;position:fixed!important;transform:none!important;z-index:1200!important;overflow-y:auto;overflow-x:hidden;box-shadow:6px 0 20px #0003!important}
 html body.collapsed #sidebar .brand{padding:2px 4px 8px!important;gap:8px!important}
 html body.collapsed #sidebar #nav{padding:0!important}
 html body.collapsed #main{margin-left:48px!important}
}

html body .library-main>#library-create{margin:0 0 14px;padding:7px 12px;min-height:32px;border:1px solid var(--p-line);border-radius:8px;background:var(--p-card);color:var(--p-fg);}

/* Keep knowledge cards inside narrow work panes. */
html body .r-library,html body .library-main{min-width:0}
@media(max-width:1100px){html body .library-main{overflow-x:auto}html body .library-info,html body .library-uses{grid-template-columns:minmax(0,1fr)!important}html body .library-info>button{min-width:0;max-width:100%;box-sizing:border-box}html body .library-tabs{flex-wrap:wrap;gap:6px}}

/* Close action remains above the scrollable settings controls. */
html body .settings-layer .replica-window{padding-top:52px!important}
/* Top menus host only their fixed flyouts; never paint or occupy the workspace. */
html body #dialog.video-browser.video-browser-file {
  position: fixed;
  inset: 0 auto auto 0 !important;
  width: 0 !important;
  height: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
  pointer-events: none;
}
html body #dialog.video-browser.video-browser-file .video-flyout {
  pointer-events: auto;
}
/* Sidebar header: remove the brand row and let existing controls flow upward. */
html body:is(.dark,:not(.dark)) #sidebar .brand > .brand-lockup {
  display: none !important;
}
html body #sidebar-extra-functions[hidden] { display:none !important; }
html body #sidebar #nav #sidebar-expand-functions {
  display:flex; align-items:center; justify-content:flex-start;
  width:100%; text-align:left; gap:10px!important;
}
html body #sidebar #nav #sidebar-expand-functions > svg {
  width:20px!important; height:20px!important; min-width:20px!important; flex:0 0 20px;
}
html body #sidebar #nav #sidebar-expand-functions > span {
  margin:0!important; padding:0; width:auto; flex:0 0 auto; text-align:left;
}
/* Align conversation controls with the primary navigation column. */
html body #sidebar .side-section:has(#history) {
  margin-top:12px!important;
  margin-left:-4px!important;
  margin-right:-4px!important;
  padding-left:0!important;
  padding-right:0!important;
}
html body #sidebar .video-history-heading {margin:0 0 4px!important;}
html body #sidebar .video-history-heading #history-collapse {
  padding-left:12px!important;
  min-height:34px!important;
}
html body #sidebar #history .history-open {padding-left:12px!important;gap:10px!important;}
html body #sidebar #history .history-dot {
  width:20px;min-width:20px;text-align:center;flex:0 0 20px;
}
html body #sidebar #history #history-view-all {
  padding-left:42px!important;min-height:34px!important;
}

/* Consolidated shortcut menus use a zero-size, transparent host. */
html body #dialog.video-browser.video-browser-shortcuts{position:fixed;inset:0 auto auto 0!important;width:0!important;height:0!important;min-width:0!important;min-height:0!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;overflow:visible!important;pointer-events:none;}
html body #dialog.video-browser.video-browser-shortcuts .video-flyout{pointer-events:auto;}
/* Rail/sidebar separation uses surfaces; only the draggable content edge is lined. */
html body:is(.dark,:not(.dark)) .shortcut-rail {border-right:0!important;box-shadow:none!important;background:#1d1d1d!important;}
html body:is(.dark,:not(.dark)) #sidebar {border-left:0!important;border-right:0!important;background:#141414!important;overflow-y:scroll!important;overflow-x:hidden!important;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:#494949 #141414;overscroll-behavior-y:contain;}
html body:not(.dark) .shortcut-rail {background:#eeeeee!important;}
html body:not(.dark) #sidebar {background:#fafafa!important;scrollbar-color:#b5b5b5 #fafafa;}
html body #sidebar .side-section:has(#history){flex-shrink:0;}
html body #sidebar::-webkit-scrollbar {width:8px;}
html body #sidebar::-webkit-scrollbar-thumb {background:#494949;border-radius:5px;}
html body:not(.dark) #sidebar::-webkit-scrollbar-thumb {background:#b5b5b5;}
html body #sidebar-resizer {position:fixed;top:32px;bottom:0;width:7px;z-index:1250;cursor:col-resize;touch-action:none;outline:none;}
html body #sidebar-resizer::after {content:"";position:absolute;top:0;bottom:0;left:3px;width:1px;background:#303030;}
html body:not(.dark) #sidebar-resizer::after {background:#dddddd;}
html body #sidebar-resizer:is(:hover,:focus-visible)::after,html body.resizing-sidebar #sidebar-resizer::after {background:#777;width:2px;}
html body.resizing-sidebar {cursor:col-resize;user-select:none;}
html body #sidebar-resizer[hidden] {display:none!important;}
@media(min-width:701px){
 html body.replica-v4:not(.collapsed) #sidebar {width:var(--workbench-sidebar-width,240px)!important;}
 html body.replica-v4:not(.collapsed) #main {margin-left:var(--workbench-sidebar-width,240px)!important;}
 html body.replica-v4:not(.collapsed)>footer {left:calc(48px + var(--workbench-sidebar-width,240px))!important;}
}
@media(max-width:700px){html body #sidebar-resizer {display:none!important;}}
html body.dark #workbench-icon-rail.shortcut-rail {background:#1d1d1d!important;border-right:0!important;}
html body:not(.dark) #workbench-icon-rail.shortcut-rail {background:#eeeeee!important;border-right:0!important;}
