/* Working desk: production shell. Existing editors retain their selectors and data. */
body.workspace-next {
    --desk-bg: #ffffff;
    --desk-rail: #f3f5f4;
    --desk-soft: #f6f8f7;
    --desk-ink: #202923;
    --desk-muted: #657169;
    --desk-line: #dfe5e1;
    --desk-accent: #246b52;
    --desk-selected: #e4eee8;
    --workspace-sidebar-width: 236px;
    --workspace-content-width: 960px;
    font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--desk-bg);
    color: var(--desk-ink);
}
body.workspace-next.workbench-theme-dark {
    --desk-bg: #1d2220;
    --desk-rail: #171c19;
    --desk-soft: #272e29;
    --desk-ink: #edf3ee;
    --desk-muted: #b3c0b7;
    --desk-line: #3b453e;
    --desk-accent: #9ad5b5;
    --desk-selected: #2b4033;
}
body.workspace-next *, body.workspace-next *::before, body.workspace-next *::after { box-sizing: border-box; letter-spacing: 0; }
body.workspace-next ::selection { color: var(--desk-ink); background: var(--desk-selected); }
body.workspace-next :is(button, a, input, textarea, select):focus-visible { outline: 2px solid var(--desk-accent) !important; outline-offset: 3px; }
body.workspace-next :is(button, input, textarea, select) { font-family: inherit; }
body.workspace-next button { cursor: pointer; }
body.workspace-next button:disabled { cursor: not-allowed; opacity: .5; }
body.workspace-next button:active { transform: none; }
body.workspace-next [hidden] { display: none !important; }
/* Tool pages scroll with the document, independently of the chat viewport. */
body.workspace-next.tool-open { display: block !important; height: auto !important; min-height: 100dvh; }
body.workspace-next.tool-open #mainContent { height: auto !important; min-height: 100dvh; }
body.workspace-next .action-panel { animation: none !important; opacity: 1 !important; transform: none !important; }
body.workspace-next .workspace-nav-item.is-active { background: var(--desk-selected) !important; color: var(--desk-accent) !important; }
body.workspace-next #chatOmnibox { border-radius: 8px !important; background: var(--desk-bg) !important; box-shadow: none !important; }
body.workspace-next:not(.tool-open) .chat-main.is-empty-chat .omnibox-shell { z-index: auto !important; }
body.workspace-next:not(.tool-open) .chat-main.is-empty-chat #chatOmnibox { position: relative !important; inset: auto !important; transform: none !important; z-index: auto !important; }
body.workspace-next:not(.tool-open) .chat-main.is-empty-chat .chat-topbar { position: relative !important; }
body.workspace-next .chat-main .omnibox .web-search-toggle { width: auto !important; padding: 6px 10px !important; display: inline-flex !important; gap: 6px; border: 1px solid var(--desk-line) !important; border-radius: 6px !important; }
body.workspace-next .chat-main .omnibox .web-search-toggle span { display: inline !important; font-size: 12px; white-space: nowrap; }
body.workspace-next .chat-main .omnibox .web-search-toggle[aria-pressed="true"] { background: var(--desk-selected) !important; color: var(--desk-accent) !important; border-color: var(--desk-accent) !important; }
body.workspace-next .chat-main .omnibox .web-search-toggle.is-unconfigured { color: #855414 !important; background: #fff5df !important; border-color: #c79c50 !important; }
body.workspace-next .new-chat-btn i { background: transparent !important; }
body.workspace-next:not(.tool-open) .ai-workspace { min-height: 0; background: var(--desk-bg); }
body.workspace-next .workspace-sidebar,
body.workspace-next:not(.tool-open) .workspace-sidebar {
    background: var(--desk-rail); border-right: 1px solid var(--desk-line); box-shadow: none; backdrop-filter: none;
    padding: 20px 14px 12px; color: var(--desk-ink); overflow-y: auto;
}
body.workspace-next .sidebar-top { padding: 0 0 20px; min-height: 52px; }
body.workspace-next .sidebar-logo { width: 30px; height: 30px; border-radius: 6px; box-shadow: none !important; }
body.workspace-next .sidebar-brand { gap: 9px; padding: 0; }
body.workspace-next .sidebar-brand strong { font-size: 16px; color: var(--desk-ink); }
body.workspace-next .sidebar-brand span { font-size: 11px; color: var(--desk-muted); margin-top: 5px; }
body.workspace-next .sidebar-collapse-btn { width: 28px; height: 32px; color: var(--desk-muted); }
body.workspace-next .new-chat-btn,
body.workspace-next:not(.tool-open) .new-chat-btn { margin: 0 0 15px; min-height: 42px; background: var(--desk-ink); color: var(--desk-bg); border: 0; border-radius: 6px; box-shadow: none; }
body.workspace-next .new-chat-btn:hover { background: var(--desk-accent); color: var(--desk-bg); }
body.workspace-next .new-chat-btn strong, body.workspace-next .new-chat-btn i { color: inherit; font-size: 14px; }
body.workspace-next .workspace-nav { gap: 3px; }
body.workspace-next .workspace-nav-item,
body.workspace-next .specialist-nav button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 39px; border: 0 !important; padding: 8px 12px; border-radius: 5px; background: transparent; color: var(--desk-muted); font-size: 13px; text-align: left; box-shadow: none !important; }
body.workspace-next .workspace-nav-item:hover, body.workspace-next .specialist-nav button:hover { background: var(--desk-line); color: var(--desk-ink); }
body.workspace-next .workspace-nav-item.is-active, body.workspace-next .specialist-nav .is-active { background: var(--desk-selected); color: var(--desk-accent); }
body.workspace-next .workspace-nav-item .nav-icon { width: 20px; }
body.workspace-next .specialist-nav { padding: 16px 0; border-bottom: 1px solid var(--desk-line); }
body.workspace-next .specialist-nav i { font-size: 19px; width: 20px; }
body.workspace-next .sidebar-section-title { font-size: 11px; font-weight: 500; color: var(--desk-muted); padding: 0 12px 8px; }
body.workspace-next .history-section { padding-top: 18px; min-height: 110px; flex: 1; }
body.workspace-next .history-item { min-height: 34px; }
body.workspace-next .history-empty { color: var(--desk-muted); font-size: 12px; }
body.workspace-next .sidebar-user { margin-top: 10px; padding-top: 12px; border-color: var(--desk-line); }
body.workspace-next .sidebar-user-meta strong { color: var(--desk-ink); }
body.workspace-next .sidebar-user-meta span { color: var(--desk-muted); }
body.workspace-next .chat-main { min-width: 0; background: var(--desk-bg); }
body.workspace-next:not(.tool-open) .chat-topbar { min-height: 64px; padding: 12px 28px; background: var(--desk-bg); border-bottom: 1px solid var(--desk-line); backdrop-filter: none; }
body.workspace-next .workspace-view-title { font-size: 13px; color: var(--desk-muted); min-width: 0; }
body.workspace-next .workspace-view-title span { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.workspace-next .workspace-results-toggle { min-height: 34px; border-color: var(--desk-line); background: var(--desk-bg); color: var(--desk-ink); font-size: 12px; }
body.workspace-next .workspace-intro, body.workspace-next .workspace-home-content { display: none; }
body.workspace-next .chat-agent-hint, body.workspace-next #chatActionPills { display: none !important; }
body.workspace-next:not(.tool-open) .chat-main.is-empty-chat { display: flex; flex-direction: column; overflow: auto; }
body.workspace-next:not(.tool-open) .chat-main.is-empty-chat .chat-topbar { position: sticky; top: 0; z-index: 5; flex-shrink: 0; }
body.workspace-next:not(.tool-open) .chat-main.is-empty-chat .chat-scroll { display: none; }
body.workspace-next:not(.tool-open) .chat-main.is-empty-chat .omnibox-shell {
    position: static !important; inset: auto !important; transform: none !important; width: 100%; max-width: 1000px;
    margin: 0 auto !important; padding: 54px 44px 36px !important; background: transparent; flex-shrink: 0;
}
body.workspace-next .is-empty-chat .workspace-intro { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: center; margin-bottom: 28px; }
body.workspace-next .workspace-intro img { grid-row: span 2; border-radius: 8px; object-fit: cover; }
body.workspace-next .workspace-intro h1 { font-size: 28px; line-height: 1.45; font-weight: 650; margin: 0; color: var(--desk-ink); }
body.workspace-next .workspace-intro p { margin: 7px 0 0; color: var(--desk-muted); font-size: 14px; line-height: 1.6; }
body.workspace-next .is-empty-chat .workspace-home-content { display: block; }
body.workspace-next:not(.tool-open) .omnibox { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; border: 1px solid var(--desk-line); background: var(--desk-bg); border-radius: 8px; padding: 16px; box-shadow: 0 5px 20px #192d2010; min-height: 0; }
body.workspace-next:not(.tool-open) .omnibox:focus-within { border-color: var(--desk-accent); box-shadow: 0 5px 20px #192d2010; }
body.workspace-next #chatInput { order: -1; flex: 1 0 100%; width: 100%; min-height: 70px; max-height: 190px; border: 0; background: transparent; box-shadow: none; padding: 0 2px 8px; margin: 0; font-size: 15px; line-height: 1.65; color: var(--desk-ink); resize: none; }
body.workspace-next #chatInput::placeholder { color: var(--desk-muted); }
body.workspace-next .input-model-switcher { margin-right: auto; }
body.workspace-next .omnibox .model-switcher { background: var(--desk-soft); border: 0; color: var(--desk-muted); border-radius: 5px; font-size: 12px; min-height: 32px; }
body.workspace-next .omnibox .icon-btn, body.workspace-next .omnibox .web-search-toggle { height: 34px; min-width: 34px; border: 0; background: transparent; color: var(--desk-muted); box-shadow: none; }
body.workspace-next .omnibox .send-btn { height: 34px; width: 34px; border-radius: 6px; background: var(--desk-ink); color: var(--desk-bg); box-shadow: none; }
body.workspace-next .omnibox .send-btn:hover { background: var(--desk-accent); }
body.workspace-next .model-popover { background: var(--desk-bg); border-color: var(--desk-line); }
body.workspace-next .home-specialists { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; padding: 26px 0 36px; border-bottom: 1px solid var(--desk-line); }
body.workspace-next .home-specialist { display: flex; flex-direction: column; align-items: center; gap: 11px; text-decoration: none; border: 0; background: transparent; color: var(--desk-ink); padding: 8px 2px; border-radius: 6px; }
body.workspace-next .home-specialist:hover { background: var(--desk-soft); }
body.workspace-next .home-specialist > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 8px; color: var(--agent-color, #386253); background: var(--agent-soft, #edf3f0); }
body.workspace-next .home-specialist i { font-size: 24px; }
body.workspace-next .home-specialist strong { font-size: 12px; font-weight: 500; line-height: 1.6; text-align: center; }
.specialist-doc, .specialist-template { --agent-color: #326ba5; --agent-soft: #eaf2fa; }
.specialist-slides { --agent-color: #a85432; --agent-soft: #fbede6; }
.specialist-sheet { --agent-color: #327451; --agent-soft: #eaf4ed; }
.specialist-wechat_article { --agent-color: #86587f; --agent-soft: #f4edf3; }
.specialist-interview { --agent-color: #327c81; --agent-soft: #e7f2f3; }
.specialist-document_tools { --agent-color: #a1515a; --agent-soft: #f7ecee; }
body.workspace-next .starter-section { padding-top: 28px; }
body.workspace-next .starter-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
body.workspace-next .starter-heading h2 { font-size: 15px; font-weight: 600; margin: 0; color: var(--desk-ink); }
body.workspace-next .starter-heading button { font-size: 12px; padding: 7px 0; border: 0; background: transparent; color: var(--desk-muted); }
body.workspace-next .task-starters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; }
body.workspace-next .starter-item { display: flex; align-items: center; gap: 14px; text-align: left; color: var(--desk-ink); text-decoration: none; background: transparent; border: 0; border-bottom: 1px solid var(--desk-line); border-radius: 0; padding: 18px 0; min-width: 0; }
body.workspace-next .starter-item:hover strong { color: var(--desk-accent); }
body.workspace-next .starter-item > i:first-child { font-size: 22px; color: var(--desk-muted); }
body.workspace-next .starter-item > i:last-child { margin-left: auto; font-size: 15px; color: var(--desk-muted); }
body.workspace-next .starter-item span { min-width: 0; }
body.workspace-next .starter-item strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.7; overflow-wrap: anywhere; }
body.workspace-next .starter-item small { display: block; color: var(--desk-muted); font-size: 11px; margin-top: 4px; }
body.workspace-next .chat-main.has-messages .omnibox-shell { padding: 12px 24px 20px; max-width: 960px; background: var(--desk-bg); }
body.workspace-next .chat-main.has-messages #chatInput { min-height: 38px; }
body.workspace-next .chat-main.has-messages .chat-scroll { scrollbar-color: var(--desk-line) transparent; }
body.workspace-next .chat-main.is-agent-hub .omnibox-shell { display: none !important; }
body.workspace-next .agent-hub-view { max-width: 1152px; margin: 0 auto; padding: 36px 40px; }
body.workspace-next .agent-hub-head { align-items: center; padding: 0 0 28px; border-bottom: 0; }
body.workspace-next .agent-hub-head h2 { font-size: 28px; font-weight: 650; color: var(--desk-ink); margin: 0 0 10px; }
body.workspace-next .agent-hub-head p { font-size: 14px; color: var(--desk-muted); margin: 0; }
body.workspace-next .directory-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; border-bottom: 1px solid var(--desk-line); padding-bottom: 16px; }
body.workspace-next .agent-filters { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
body.workspace-next .agent-filters button { padding: 7px 10px; border: 0; border-radius: 5px; background: transparent; color: var(--desk-muted); font-size: 12px; }
body.workspace-next .agent-filters button[aria-pressed="true"] { background: var(--desk-selected); color: var(--desk-accent); }
body.workspace-next .agent-search { display: flex; align-items: center; gap: 8px; color: var(--desk-muted); background: var(--desk-soft); border-radius: 6px; padding: 9px 12px; width: 220px; }
body.workspace-next .agent-search input { width: 100%; min-width: 0; font-size: 12px; border: 0; background: transparent; outline: none; color: var(--desk-ink); padding: 0; }
body.workspace-next .discipline-section { margin-bottom: 28px; }
body.workspace-next .discipline-heading { margin-bottom: 13px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; }
body.workspace-next .discipline-heading h3 { font-size: 15px; margin: 0; color: var(--desk-ink); }
body.workspace-next .discipline-heading p { font-size: 12px; color: var(--desk-muted); margin: 0; }
body.workspace-next .specialist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
body.workspace-next .specialist-card { display: flex; gap: 16px; align-items: flex-start; width: 100%; min-width: 0; padding: 22px; text-align: left; color: var(--desk-ink); background: var(--desk-bg); border: 1px solid var(--desk-line); border-radius: 8px; text-decoration: none; transition: border-color 150ms ease, background-color 150ms ease; }
body.workspace-next .specialist-card:hover { border-color: var(--desk-accent); background: var(--desk-soft); }
body.workspace-next .specialist-card[aria-disabled="true"] { opacity: .65; }
body.workspace-next .specialist-symbol { display: grid; place-items: center; flex: 0 0 38px; height: 38px; background: var(--agent-soft, var(--desk-soft)); color: var(--agent-color, var(--desk-accent)); border-radius: 6px; font-size: 23px; }
body.workspace-next .specialist-copy { flex: 1; min-width: 0; }
body.workspace-next .specialist-copy strong { display: block; font-size: 15px; font-weight: 600; margin: 0 0 8px; }
body.workspace-next .specialist-copy > span { display: block; font-size: 12px; line-height: 1.8; color: var(--desk-muted); }
body.workspace-next .specialist-copy small { display: block; font-size: 10px; margin-top: 16px; color: var(--desk-muted); }
body.workspace-next .specialist-card > i { color: var(--desk-muted); }
body.workspace-next .directory-empty { text-align: center; padding: 60px 15px; color: var(--desk-muted); }
body.workspace-next .directory-empty > i { font-size: 28px; }
body.workspace-next .directory-empty h3 { font-size: 16px; }
body.workspace-next .directory-empty button { color: var(--desk-accent); background: transparent; border: 0; }
/* Tool pages share the same rail, without remounting their existing editors. */
body.workspace-next.tool-open { background: var(--desk-bg); overflow-y: auto; }
body.workspace-next.tool-open > .navbar, body.workspace-next.tool-open > footer { display: none !important; }
body.workspace-next.tool-open #mainContent { max-width: none; width: 100%; padding: 0 0 0 236px; margin: 0; }
body.workspace-next.tool-open #homeView { display: block !important; min-height: 0; height: 0; }
body.workspace-next.tool-open .ai-workspace { position: fixed; top: 0; left: 0; width: 236px; height: 100dvh; min-height: 0; display: block; z-index: 20; background: var(--desk-rail); }
body.workspace-next.tool-open .workspace-sidebar { width: 236px; }
body.workspace-next.tool-open .chat-main { display: none; }
body.workspace-next.tool-open .action-panel { max-width: 1120px !important; width: calc(100% - 64px) !important; margin: 0 auto !important; padding: 24px 0 60px !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; background: var(--desk-bg) !important; color: var(--desk-ink); }
body.workspace-next.tool-open .back-btn { color: var(--desk-muted); font-size: 12px; border: 0; background: transparent; margin-bottom: 16px; min-height: 36px; padding: 0; }
body.workspace-next.tool-open .panel-header { background: none !important; border: 0 !important; box-shadow: none !important; padding: 10px 0 24px !important; margin-bottom: 24px; border-bottom: 1px solid var(--desk-line) !important; border-radius: 0 !important; }
body.workspace-next.tool-open .panel-icon { background: var(--desk-soft); color: var(--desk-accent); box-shadow: none; border-radius: 8px; width: 48px; height: 48px; font-size: 25px; }
body.workspace-next.tool-open .panel-title h3 { font-size: 26px !important; font-weight: 650; color: var(--desk-ink); }
body.workspace-next.tool-open .panel-title p { color: var(--desk-muted); }
body.workspace-next.tool-open .primary-btn { border-radius: 6px !important; box-shadow: none !important; background: var(--desk-ink) !important; color: var(--desk-bg) !important; font-size: 14px; min-height: 44px; }
body.workspace-next.tool-open .action-panel :is(input[type="text"], textarea, select) { color: var(--desk-ink); border-color: var(--desk-line); background-color: var(--desk-bg); }
body.workspace-next.tool-open .action-panel label { color: var(--desk-ink); }
body.workspace-next.tool-open .feature-model-control { box-shadow: none; border: 0; border-radius: 6px; background: var(--desk-soft); }
body.workspace-next.sidebar-collapsed:not(.tool-open) .specialist-nav .sidebar-section-title,
body.workspace-next.sidebar-collapsed:not(.tool-open) .specialist-nav button span { display: none; }
body.workspace-next.sidebar-collapsed:not(.tool-open) .specialist-nav button { justify-content: center; padding: 8px; }
body.workspace-next.tool-open.sidebar-collapsed .sidebar-brand > div,
body.workspace-next.tool-open.sidebar-collapsed .nav-label,
body.workspace-next.tool-open.sidebar-collapsed .new-chat-btn > div { display: block; }
@media (max-width: 1100px) {
    body.workspace-next .specialist-grid { grid-template-columns: 1fr; }
    body.workspace-next:not(.tool-open) .chat-main.is-empty-chat .omnibox-shell { padding: 40px 28px 28px !important; }
}
@media (max-width: 900px) {
    body.workspace-next.tool-open #mainContent { padding-left: 0; }
    body.workspace-next.tool-open .ai-workspace { width: 0; overflow: visible; background: transparent; }
    body.workspace-next.tool-open .workspace-sidebar { width: 260px; position: fixed; }
    body.workspace-next.tool-open .mobile-sidebar-toggle { display: none; }
    body.workspace-next.tool-open .action-panel { width: calc(100% - 40px) !important; }
    body.workspace-next:not(.tool-open) .chat-topbar { padding: 12px 20px 12px 52px; }
    body.workspace-next .workspace-view-title span { max-width: 180px; }
}
@media (max-width: 600px) {
    body.workspace-next .workspace-intro { grid-template-columns: 36px 1fr; gap: 10px; }
    body.workspace-next .workspace-intro img { width: 36px; height: 36px; }
    body.workspace-next .workspace-intro h1 { font-size: 21px; }
    body.workspace-next .workspace-intro p { font-size: 12px; grid-column: 1 / -1; margin-top: 6px; }
    body.workspace-next:not(.tool-open) .chat-main.is-empty-chat .omnibox-shell { padding: 30px 20px 24px !important; }
    body.workspace-next .home-specialists { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding: 20px 0 24px; }
    body.workspace-next .home-specialist { gap: 7px; }
    body.workspace-next .task-starters { grid-template-columns: 1fr; }
    body.workspace-next .starter-section { padding-top: 22px; }
    body.workspace-next .starter-heading h2 { font-size: 14px; }
    body.workspace-next .starter-heading button { font-size: 11px; }
    body.workspace-next .agent-hub-view { padding: 24px 20px; }
    body.workspace-next .agent-hub-head { align-items: flex-start; gap: 12px; }
    body.workspace-next .agent-hub-head h2 { font-size: 23px; }
    body.workspace-next .agent-hub-head p { font-size: 12px; }
    body.workspace-next .agent-hub-head-actions { display: none; }
    body.workspace-next .agent-search { width: 100%; }
    body.workspace-next .specialist-card { padding: 18px; }
    body.workspace-next .omnibox .voice-btn { display: none !important; }
    body.workspace-next .omnibox { gap: 5px !important; padding: 12px !important; }
    body.workspace-next .omnibox .web-search-toggle { font-size: 11px; padding: 4px; }
    body.workspace-next .workspace-view-title { display: none; }
    body.workspace-next .chat-main.has-messages .omnibox-shell { padding: 8px 12px 16px; }
}
@media (prefers-reduced-motion: reduce) { body.workspace-next *, body.workspace-next *::before, body.workspace-next *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* Presentation workspace: source, outline, canvas and editable fields. */
body.workspace-next #mode5Panel .video-agent-top { display: block; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 20px 0 !important; }
body.workspace-next #mode5Panel .video-agent-top h3 { font-size: 26px !important; margin: 0 0 12px; color: var(--desk-ink) !important; letter-spacing: 0 !important; }
body.workspace-next #mode5Panel .video-agent-top p { color: var(--desk-muted) !important; font-size: 14px; }
body.workspace-next #mode5Panel :is(.video-agent-meta,.agent-header,.video-tool-stats) { display: none; }
body.workspace-next #mode5Panel :is(.video-toolbox-form,.video-toolbox-preview,.video-tool-preview-card) { background: transparent !important; color: var(--desk-ink) !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 0; backdrop-filter: none; }
body.workspace-next #mode5Panel .video-toolbox-shell { gap: 36px; align-items: start; }
body.workspace-next #mode5Panel .video-tool-preview-card { border-bottom: 1px solid var(--desk-line); padding: 24px 0; }
body.workspace-next #mode5Panel .video-tool-preview-card h4 { color: var(--desk-ink); font-size: 18px; }
body.workspace-next #mode5Panel .video-tool-preview-card p { color: var(--desk-muted); font-size: 14px; }
body.workspace-next #mode5Panel .video-tool-tabs { padding: 0; border: 0; background: transparent; border-bottom: 1px solid var(--desk-line); border-radius: 0; margin-bottom: 24px; }
body.workspace-next #mode5Panel .video-tool-tabs button { background: transparent !important; color: var(--desk-accent) !important; border: 0; border-bottom: 2px solid currentColor; border-radius: 0 !important; box-shadow: none !important; padding: 12px 0; }
body.workspace-next #mode5Panel .video-form-grid { gap: 18px; }
body.workspace-next #mode5Panel :is(select,input:not([type=range]),textarea) { width: 100%; border: 1px solid var(--desk-line); border-radius: 6px !important; padding: 10px; font-size: 14px; background: var(--desk-bg); color: var(--desk-ink); }
body.workspace-next #mode5Panel label { font-size: 14px; color: var(--desk-ink); }
body.workspace-next #mode5Panel :is(.primary-btn,.generate-btn) { border-radius: 6px !important; box-shadow: none !important; }
body.workspace-next #mode5Panel .video-empty { font-size: 13px; line-height: 1.7; color: var(--desk-muted); }
@media(max-width:600px) { body.workspace-next #documentBody { height: 320px; } body.workspace-next #mode5Panel .video-toolbox-shell { grid-template-columns: 1fr; } }
.document-editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 18px 0; }
.document-editor-toolbar label { flex: 1; min-width: 180px; }
.document-edit-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 32px; }
.document-preview-area { min-width: 0; padding: 18px; background: var(--desk-soft); }
.document-preview-label { display: flex; justify-content: space-between; color: var(--desk-muted); font-size: 12px; margin-bottom: 14px; }
.document-paper { background: white; color: #202923; border: 1px solid #dfe5e1; padding: 32px; min-height: 580px; max-height: 900px; overflow: auto; }
.document-paper h2 { font-size: 22px; text-align: center; line-height: 1.6; margin: 8px 0 30px; overflow-wrap: anywhere; }
.document-paper p { font-family: FangSong, '仿宋', serif; font-size: 16px; line-height: 2; text-indent: 2em; margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.document-format-note { font-size: 12px; line-height: 1.8; color: var(--desk-muted); }
.document-prompt-details { margin: 24px 0; border-block: 1px solid var(--desk-line); padding: 16px 0; }
#documentEditStatus { font-size: 14px; line-height: 1.7; color: var(--desk-accent); overflow-wrap: anywhere; }
#documentEditStatus.is-error { color: #a43636; }
@media(max-width:900px) { body.workspace-next #documentWorkspace { margin: 0 20px; } .document-edit-grid { grid-template-columns: 1fr; } }
@media(max-width:600px) { .document-workspace-head { align-items: flex-start; flex-direction: column; gap: 16px; } .document-workspace-tabs { gap: 16px; } .document-workspace-tabs button { font-size: 13px; } .document-paper { padding: 24px; min-height: 360px; } }
body.workspace-next .slides-start { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 36px; }
body.workspace-next .slides-panel :is(input, select, textarea) { width: 100%; border: 1px solid var(--desk-line); background: var(--desk-bg); color: var(--desk-ink); border-radius: 6px; padding: 10px 12px; font-size: 13px; }
body.workspace-next .slides-panel label { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; margin: 0 0 8px; }
body.workspace-next .slides-panel label > :is(input, select, textarea) { display: block; margin-top: 7px; }
body.workspace-next .slides-panel textarea { min-height: 110px; resize: vertical; line-height: 1.7; }
body.workspace-next .slides-options { display: grid; grid-template-columns: minmax(0, 1fr) 100px; gap: 16px; margin: 16px 0 8px; }
body.workspace-next .slides-start-side { border-left: 1px solid var(--desk-line); padding-left: 30px; }
body.workspace-next .slides-start-side h4 { font-size: 14px; margin: 0 0 16px; }
body.workspace-next .slides-start-side > .desk-button { display: flex; width: 100%; justify-content: center; margin-bottom: 10px; }
body.workspace-next .slides-start-side > label[for="slidesDrafts"] { margin-top: 28px; }
body.workspace-next .slides-compose-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
body.workspace-next .slides-file-button { margin: 0 auto 0 0; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; min-height: 40px; color: var(--desk-muted); }
body.workspace-next :is(.desk-primary, .desk-button, .desk-icon) { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; border: 1px solid var(--desk-line); background: var(--desk-bg); color: var(--desk-ink); border-radius: 6px; padding: 8px 14px; font-size: 12px; line-height: 1.5; cursor: pointer; }
body.workspace-next .desk-primary { color: var(--desk-bg); background: var(--desk-ink); border-color: var(--desk-ink); }
body.workspace-next .desk-icon { width: 36px; padding: 0; }
body.workspace-next .desk-button:hover, body.workspace-next .desk-icon:hover { background: var(--desk-selected); }
body.workspace-next .desk-primary:hover { background: var(--desk-accent); }
body.workspace-next .slides-note { font-size: 11px; line-height: 1.6; color: var(--desk-muted); margin: 12px 0 0; overflow-wrap: anywhere; }
body.workspace-next .slides-status { min-height: 22px; margin: 20px 0; font-size: 12px; line-height: 1.7; color: var(--desk-accent); overflow-wrap: anywhere; }
body.workspace-next .slides-status.is-error { color: #ad3d3d; }
body.workspace-next .slides-editor { border-top: 1px solid var(--desk-line); padding-top: 24px; }
body.workspace-next .slides-editor-bar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 14px; padding-bottom: 24px; }
body.workspace-next .slides-editor-bar label { margin: 0; }
body.workspace-next .slides-editor-bar label:first-child { flex: 1; min-width: 160px; }
body.workspace-next .slides-edit-layout { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 24px; }
body.workspace-next .slide-navigation { min-width: 0; }
body.workspace-next .slide-navigation ol { list-style: none; padding: 0; margin: 0 0 16px; max-height: 620px; overflow: auto; }
body.workspace-next .slide-navigation li { margin-bottom: 6px; }
body.workspace-next .slide-navigation li button { display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 12px; background: var(--desk-soft); color: var(--desk-ink); border: 1px solid transparent; border-radius: 5px; font-size: 12px; text-align: left; }
body.workspace-next .slide-navigation li button[aria-current="step"] { background: var(--desk-selected); border-color: var(--desk-accent); }
body.workspace-next .slide-navigation li small { color: var(--desk-muted); font-size: 10px; }
body.workspace-next .slide-navigation li span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
body.workspace-next .slide-main { min-width: 0; }
body.workspace-next .slide-preview { position: relative; width: 100%; aspect-ratio: 16 / 9; overflow: auto; padding: 4% 5%; background: #fff; color: var(--slide-ink); border: 1px solid var(--desk-line); container-type: inline-size; }
body.workspace-next .slide-preview.is-cover { background: var(--slide-ink); color: #fff; border-color: var(--slide-ink); }
body.workspace-next .slide-running-title { display: block; font-size: 10px; opacity: .85; overflow-wrap: anywhere; }
body.workspace-next .slide-preview h3 { font-size: 25px; line-height: 1.45; margin: 24px 0; font-weight: 650; overflow-wrap: anywhere; color: inherit; }
body.workspace-next .slide-points { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 24px; }
body.workspace-next .slide-points small { font-size: 10px; opacity: .8; }
body.workspace-next .slide-points p { font-size: 14px; line-height: 1.65; margin: 5px 0 0; overflow-wrap: anywhere; }
body.workspace-next .slide-preview.is-dense h3 { font-size: 19px; margin: 12px 0; }
body.workspace-next .slide-preview.is-dense .slide-points { gap: 10px 18px; }
body.workspace-next .slide-preview.is-dense .slide-points p { font-size: 11px; }
body.workspace-next .slide-page-number { display: block; text-align: right; font-size: 10px; margin-top: 16px; }
body.workspace-next .slide-edit-fields { padding: 24px 0; }
body.workspace-next .slide-edit-fields > label { margin: 0 0 18px; }
body.workspace-next .slide-edit-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
body.workspace-next .slide-edit-heading h4 { margin: 0; font-size: 14px; }
@media (max-width: 1100px) {
    body.workspace-next .slides-start { grid-template-columns: minmax(0, 1fr) 190px; gap: 22px; }
    body.workspace-next .slides-start-side { padding-left: 20px; }
    body.workspace-next .slides-edit-layout { grid-template-columns: 130px minmax(0, 1fr); gap: 16px; }
    body.workspace-next .slide-preview h3 { font-size: 20px; margin: 15px 0; }
    body.workspace-next .slide-points p { font-size: 12px; }
}
@media (max-width: 600px) {
    body.workspace-next .slides-start { grid-template-columns: 1fr; gap: 24px; }
    body.workspace-next .slides-start-side { border-left: 0; border-top: 1px solid var(--desk-line); padding: 20px 0 0; }
    body.workspace-next .slides-start-side { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    body.workspace-next .slides-start-side h4, body.workspace-next .slides-start-side .slides-note, body.workspace-next .slides-start-side > label[for="slidesDrafts"] { grid-column: 1 / -1; margin: 0; }
    body.workspace-next .slides-editor-bar { gap: 12px; }
    body.workspace-next .slides-edit-layout { grid-template-columns: 1fr; }
    body.workspace-next .slide-navigation ol { display: flex; gap: 8px; margin-bottom: 10px; }
    body.workspace-next .slide-navigation li { flex: 0 0 120px; }
    body.workspace-next .slide-navigation > .desk-button { width: 100%; }
    body.workspace-next .slide-preview { aspect-ratio: auto; min-height: 200px; }
    body.workspace-next .slide-preview h3 { font-size: 18px; }
    body.workspace-next .slide-points { gap: 14px; }
    body.workspace-next .slide-points p { font-size: 12px; }
}
