/* DetailFlow v1.6.5.95 — compact tab management and workspace-first preview. */
/* Header: current project is always visible; all work tabs stay accessible from the switcher. */
.topbar{height:62px;gap:13px;padding:0 17px}
.topbar .brand{min-width:145px}
.topbar .brand-logo{width:145px;height:54px}
.top-tabs.df95-tabs{position:relative;overflow:visible;align-self:center;gap:6px;margin-left:0;min-width:0;flex:1 1 330px;align-items:center;white-space:nowrap}
.df95-current-tab{min-width:0;max-width:185px;flex:0 1 185px}
.df95-active-tab{display:block;width:100%;height:34px;padding:0 10px;border:1px solid #d6e4f2;border-radius:7px;background:#f1f6fc;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:780;color:#40617f;cursor:pointer}
.df95-active-tab.active{border-color:#86b7e5;color:#155fa7;background:#e8f3ff;box-shadow:inset 0 -2px 0 #2681d8}
.df95-empty-tab{font-size:11px;color:#8b9ca9;white-space:nowrap}
.df95-tab-menu-toggle{height:34px;flex:0 0 auto;padding:0 9px;border:1px solid #d3e1ed;border-radius:7px;background:#fff;color:#496783;font-size:11px;font-weight:750;white-space:nowrap;cursor:pointer}
.df95-tab-menu-toggle:hover,.df95-tab-menu-toggle[aria-expanded="true"]{background:#e7f2ff;color:#125e9e;border-color:#7fb1df}
.df95-tab-menu{position:absolute;left:0;top:calc(100% + 9px);z-index:1100;width:min(355px,calc(100vw - 25px));max-height:min(68vh,540px);display:flex;flex-direction:column;background:#fff;border:1px solid #c6d8e9;border-radius:12px;box-shadow:0 15px 38px rgba(25,49,75,.24);padding:10px;white-space:normal}
.df95-menu-head{display:flex;flex-direction:column;gap:3px;padding:2px 5px 9px;border-bottom:1px solid #e8edf2}
.df95-menu-head strong{font-size:12px;color:#2d4a66}
.df95-menu-head small{font-size:10px;color:#8395a3}
.df95-menu-items{overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column;gap:3px;padding:7px 0}
.df95-menu-row{display:flex;align-items:center;gap:4px;min-height:36px;padding:3px;border:1px solid transparent;border-radius:7px;cursor:grab}
.df95-menu-row:hover{background:#f6f9fe}
.df95-menu-row.is-active{background:#e9f4ff;border-color:#b9d9f6}
.df95-menu-row.drag-over{border-color:#2382d6;box-shadow:inset 3px 0 #2684da}
.df95-menu-row.dragging{opacity:.4}
.df95-tab-grip{font-size:17px;color:#91a5b8;cursor:grab;padding:0 3px;user-select:none}
.df95-tab-select{flex:1;min-width:0;text-align:left;background:transparent;border:0;padding:5px 4px;font-size:12px;font-weight:650;color:#344f6b;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
.df95-menu-row.is-active .df95-tab-select{color:#155caa;font-weight:800}
.df95-row-edit,.df95-row-close{flex:0 0 27px;width:27px;height:27px;border:0;border-radius:6px;background:transparent;font-size:15px;color:#647f97}
.df95-row-close{font-size:20px}
.df95-row-edit:hover{background:#e5f1ff;color:#1b6ba8}.df95-row-close:hover{background:#ffe7e5;color:#b53939}
.df95-add-tab{height:33px;flex-shrink:0;margin-top:5px;border-radius:7px;border:1px dashed #a2c7eb;background:#eff7ff;color:#25699e;font-size:11px;font-weight:800}
.top-tabs.df95-tabs #tabBulk{border:1px solid transparent;border-radius:7px;padding:0 9px;height:34px;font-size:11px;font-weight:700;color:#617c92;flex:0 0 auto}
.top-tabs.df95-tabs #tabBulk:hover,.top-tabs.df95-tabs #tabBulk.active{background:#f0f6ff;border-color:#d2e7fa;color:#1c64ac}
.top-tabs.df95-tabs #tabFinal{flex:0 0 auto;height:34px;min-height:0;padding:0 11px;border-radius:7px;font-size:11px;box-shadow:none;margin:0}
.header-actions{gap:6px;min-width:0}
.header-actions .btn{height:34px;padding:0 11px;border-radius:7px;font-size:11px}
.subbar{height:30px;padding:0 17px}
.subbar-status{max-width:45vw;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}
/* Preview: keep essential controls but reclaim the empty 90px toolbar + 50px drag hint. */
#editorView .center-toolbar{position:relative;min-height:51px;padding:7px 15px;gap:9px;flex-wrap:nowrap}
#editorView .center-toolbar .df95-toolbar-title{display:flex;align-items:center;flex:0 1 auto;min-width:0;gap:7px;position:relative}
#editorView .center-toolbar h2{font-size:14px;white-space:nowrap;font-weight:780}
#editorView .center-toolbar .df95-preview-help{display:grid;place-items:center;width:19px;height:19px;flex:0 0 19px;border-radius:50%;border:1px solid #b6d0e5;background:#f2f8ff;font-size:11px;font-weight:850;color:#4b7798;padding:0}
#editorView .center-toolbar p{display:none;position:absolute;left:0;top:calc(100% + 11px);z-index:35;width:max-content;max-width:min(480px,85vw);padding:11px 13px;border:1px solid #bad2e7;border-radius:8px;background:white;box-shadow:0 8px 22px rgba(20,50,80,.18);white-space:normal;line-height:1.5;font-size:11px;color:#486a87;margin:0}
#editorView .center-toolbar .df95-help-open p{display:block}
#editorView .center-toolbar .toolbar-right{gap:7px;flex-wrap:nowrap;min-width:0;margin-left:auto}
#editorView .center-toolbar .zoom-pill{padding:5px 8px;border-radius:6px;font-size:10px}
#editorView .center-toolbar .df82-preview-zoom{min-width:205px;padding:3px 5px;gap:4px;border-radius:7px}
#editorView .center-toolbar .df82-preview-zoom button{width:24px;height:24px}
#editorView .center-toolbar .df82-preview-zoom #previewZoomReset{height:24px;width:34px}
#editorView:not(.poster-editor-mode) .preview-scroll{padding:6px 10px 22px;align-items:safe center}
#editorView .preview-scroll .drop-help{display:none}
#editorView .preview-scroll.df95-empty-preview .drop-help,#editorView .preview-scroll.drop-active .drop-help{display:block;width:min(100%,440px);padding:6px 10px;margin:0 0 6px;border-radius:5px;font-size:10px}
#editorView .preview-scroll .preview-footnote{display:none}
/* Allow a 860px output page to use the available horizontal workspace at 100% zoom. */
#editorView:not(.poster-editor-mode) .preview-stage:not(.guides-disabled) .preview-paper{width:min(100%,860px);max-width:860px}
#editorView:not(.poster-editor-mode) .preview-stage.guides-disabled .preview-paper{max-width:860px}
@media (max-width:1350px){
 .topbar{gap:8px;padding:0 9px}.topbar .brand{min-width:116px}.topbar .brand-logo{width:116px;height:48px}
 .top-tabs.df95-tabs{gap:4px}.df95-current-tab{max-width:145px;flex-basis:145px}
 .header-actions .btn{padding:0 8px}
 #editorView .center-toolbar{padding:6px 10px}
}
@media (max-width:1020px){
 .topbar{flex-wrap:wrap;height:auto;min-height:62px;gap:7px;padding:5px 10px}
 .topbar .header-actions{margin-left:auto;width:auto}
 .top-tabs.df95-tabs{flex:1 1 400px}
 .subbar{height:27px}
 #editorView .center-toolbar h2{font-size:12px}
 #editorView .center-toolbar .zoom-pill{display:none}
}
@media (max-width:720px){
 .topbar .header-actions{flex:1 0 100%;justify-content:flex-start;overflow-x:auto;padding-bottom:3px}
 .top-tabs.df95-tabs{flex-basis:auto;min-width:0}
 .df95-current-tab{max-width:130px;flex-basis:130px}
 #editorView .center-toolbar{flex-wrap:wrap;gap:4px}
 #editorView .center-toolbar .toolbar-right{flex:1 1 100%;justify-content:flex-end}
 #editorView .center-toolbar .df82-preview-zoom{min-width:185px}
}
