/* Daily navigation stays short; every secondary control remains under More. */
html body #workbench-icon-rail :is(.rail-migrated-tools,#platform-appearance){display:contents!important;}
html body .shortcut-rail hr{display:none!important;}
html body #workbench-icon-rail.shortcut-rail:not(.show-extra-tools) button:not([data-primary-rail]){display:none!important;}
html body .shortcut-rail button:not([data-primary-rail]){order:70;}
html body .shortcut-rail .rail-spacer{order:900;min-height:16px;}
html body .shortcut-rail .rail-profile{order:1000;}
html body .advanced-settings{position:relative;min-width:140px;}
html body .advanced-settings>summary{cursor:pointer;min-height:36px;padding:8px 12px;border:1px solid var(--p-line);border-radius:8px;}
html body .advanced-settings-items{display:flex;flex-wrap:wrap;gap:8px;padding:12px 0;}
html body .chat-message-text{white-space:pre-wrap;overflow-wrap:anywhere;}
html body .message.assistant>button{margin-top:10px;font-size:12px;}
html body .attachment-preview{max-height:180px;overflow:auto;white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:var(--p-card);border:1px solid var(--p-line);border-radius:8px;}
html body .real-plan{padding:18px;border:1px solid var(--p-line);border-radius:12px;background:var(--p-card);}
html body .real-plan .actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px;}
html body .real-plan p{overflow-wrap:anywhere;}
html body .workflow-recovery{display:flex;gap:8px;margin:0 0 18px;}
html body .my-files-tabs{margin:0 0 20px!important;}

/* Account footer follows the sidebar width and retains a compact collapsed mode. */
html body #workbench-account-footer{position:fixed;left:0;bottom:0;width:calc(48px + var(--workbench-sidebar-width,240px));height:48px;box-sizing:border-box;display:flex;align-items:center;gap:4px;padding:7px 10px 7px 14px;border-top:1px solid var(--p-line,#393939);background:var(--p-card,#202020);color:var(--p-fg,#dedede);z-index:110;font-family:Arial,"Microsoft YaHei",sans-serif;}
html body #workbench-account-footer .rail-profile{display:flex!important;align-items:center;gap:8px;flex:1;min-width:0;width:auto!important;height:32px!important;padding:4px 6px!important;margin:0!important;position:static!important;transform:none!important;background:transparent!important;color:inherit!important;border:0!important;border-radius:6px!important;cursor:pointer;box-shadow:none!important;}
html body #workbench-account-footer .rail-profile:hover,html body #workbench-account-footer .account-footer-devices:hover{background:var(--p-hover,#303030)!important;}
html body #workbench-account-footer .account-footer-avatar{flex:0 0 20px;width:20px;height:20px;border-radius:50%;background:#7858e8;color:#fff;display:grid;place-items:center;font-size:10px;font-weight:600;line-height:1;}
html body #workbench-account-footer .account-footer-name{font-size:13px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
html body #workbench-account-footer .account-footer-plan{font-size:11px;color:var(--p-muted,#999);white-space:nowrap;margin-left:-4px;}
html body #workbench-account-footer .account-footer-chevron{width:12px;height:12px;flex:none;color:var(--p-muted,#999);}
html body #workbench-account-footer .account-footer-devices{flex:0 0 28px;display:grid;place-items:center;width:28px;height:30px;padding:4px;background:transparent;color:inherit;border:0;border-radius:6px;cursor:pointer;}
html body #workbench-account-footer .account-footer-devices svg{width:19px;height:19px;}
html body #workbench-account-footer button:focus-visible{outline:2px solid var(--p-muted,#999);outline-offset:1px;}
html body.has-account-footer #sidebar,html body.has-account-footer #workbench-icon-rail{bottom:48px!important;height:auto!important;}
html body.collapsed #workbench-account-footer{width:48px;padding:7px 8px;}
html body.collapsed #workbench-account-footer .rail-profile{justify-content:center;padding:0!important;}
html body.collapsed #workbench-account-footer :is(.account-footer-name,.account-footer-plan,.account-footer-chevron,.account-footer-devices){display:none!important;}
@media(max-width:700px){html body #workbench-account-footer{width:48px;padding:7px 8px;}html body #workbench-account-footer .rail-profile{justify-content:center;padding:0!important;}html body #workbench-account-footer :is(.account-footer-name,.account-footer-plan,.account-footer-chevron,.account-footer-devices){display:none!important;}}

html body #workbench-account-footer .rail-profile{order:0!important;}
html body #workbench-account-footer .account-footer-devices{order:1!important;}
