/* DetailFlow v1.6.6 · Slim shared ribbon, no duplicated preview toolbars. */
.subbar.df166-subbar{display:flex;align-items:center;justify-content:flex-start;gap:10px;height:37px;min-height:37px;padding:0 13px;background:#fff;border-bottom:1px solid #dae3eb;overflow:visible;position:relative;z-index:16}
.df166-subbar .crumb{flex:0 1 auto;min-width:90px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
.df166-subbar .subbar-status{margin-left:auto;max-width:32vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
body[data-df166-mode="editor"] .df166-subbar .subbar-status,body[data-df166-mode="final"] .df166-subbar .subbar-status{display:none}
.df166-subbar .center-toolbar.df166-subbar-editor{
 flex:1 1 auto;min-width:0;min-height:0;height:36px;max-height:36px;
 display:flex;align-items:center;justify-content:flex-end;gap:9px;
 padding:0;background:transparent;border:0;box-shadow:none;
}
.df166-subbar .df95-toolbar-title{display:flex;align-items:center;gap:5px;position:relative;min-width:0;margin-right:auto}
.df166-subbar .center-toolbar h2{font-size:11px;font-weight:750;color:#375269;white-space:nowrap}
.df166-subbar .df95-preview-help{display:grid;place-items:center;width:18px;height:18px;padding:0;flex:0 0 18px;border:1px solid #bdd5e7;border-radius:50%;color:#4c789b;background:#f4f9ff;font-size:10px;font-weight:800}
.df166-subbar .center-toolbar p{display:none;position:absolute;z-index:130;top:calc(100% + 10px);left:0;min-width:280px;max-width:min(450px,90vw);padding:10px 12px;border:1px solid #c5d9eb;border-radius:8px;background:#fff;color:#57738b;font-size:11px;line-height:1.6;box-shadow:0 6px 24px #153a522b}
.df166-subbar .center-toolbar .df95-help-open p{display:block}
.df166-subbar .toolbar-right{display:flex;align-items:center;flex:0 0 auto;gap:7px;margin-left:auto}
.df166-subbar .zoom-pill{padding:4px 8px;border-radius:5px;font-size:10px}
.df166-subbar .df82-preview-zoom{display:flex;align-items:center;gap:4px;min-width:220px;width:245px;height:30px;padding:2px 5px;border:1px solid #d5e3ef;border-radius:7px;background:#f6faff}
.df166-subbar .df82-preview-zoom button{width:24px;height:24px;border:1px solid #cbddec;background:#fff;color:#28649a;border-radius:5px;font-size:14px;padding:0}
.df166-subbar .df82-preview-zoom #previewZoomReset{width:37px;font-size:10px}
.df166-subbar .df82-preview-zoom input[type=range]{min-width:60px;flex:1 1 90px;max-width:140px;accent-color:#287dcc}
.df166-subbar .df82-preview-zoom output{width:40px;text-align:right;font-weight:800;color:#255a84;font-size:11px;font-variant-numeric:tabular-nums}
.df166-subbar .final-preview-header.df166-subbar-final{
 display:flex;align-items:center;justify-content:flex-end;gap:9px;flex:1 1 auto;min-width:0;
 height:36px;min-height:0;padding:0;margin:0;background:transparent;border:0;box-shadow:none;flex-wrap:nowrap;
}
.df166-subbar .final-preview-title{display:flex;flex:0 1 auto;align-items:center;gap:8px;min-width:0;white-space:nowrap}
.df166-subbar .final-preview-title h2{font-size:11px;font-weight:800;color:#2d506d;white-space:nowrap}
.df166-subbar .final-preview-title .subtle{font-size:10px;white-space:nowrap}
.df166-subbar .final-zoom-controls{display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;gap:4px;min-width:0;white-space:nowrap}
.df166-subbar .final-zoom-controls button{height:27px;min-width:25px;padding:0 6px;flex:0 0 auto;font-size:11px;white-space:nowrap}
.df166-subbar .final-zoom-controls input[type=range]{flex:0 1 140px;width:clamp(65px,8vw,140px);min-width:65px;max-width:140px;accent-color:#2679c6}
.df166-subbar .final-zoom-controls output{min-width:33px;font-size:11px;text-align:center}
.df166-subbar .final-actions{display:flex;align-items:center;flex:0 0 auto;gap:5px;margin:0}
.df166-subbar .final-actions .btn{height:28px;padding:0 9px;font-size:11px;border-radius:6px}
body[data-df166-mode="editor"] .df166-subbar-final,body[data-df166-mode="final"] .df166-subbar-editor,body[data-df166-mode="bulk"] .df166-subbar-editor,body[data-df166-mode="bulk"] .df166-subbar-final{display:none!important}
/* The toolbar has moved above the editor grid; the rulers now start immediately below it. */
#editorView .preview-scroll{padding-top:2px!important}
#editorView .preview-scroll .drop-help{display:none}
#finalView.df96-final-compact{height:var(--editor-height,calc(100dvh - 122px));min-height:0;padding:2px 7px 5px}
#finalView.df96-final-compact .final-grid{gap:7px}
#finalView.df96-final-compact .final-preview-panel{border-radius:7px}
#finalView.df96-final-compact .final-preview-scroll{padding-top:2px}
#finalView.df96-final-compact .final-select{padding-top:9px}
@media(max-width:1390px){
 .df166-subbar{gap:6px}
 .df166-subbar .final-preview-title .subtle{display:none}
 .df166-subbar .final-preview-header.df166-subbar-final{gap:5px}
 .df166-subbar .final-zoom-controls{gap:3px}
 .df166-subbar .final-zoom-controls button{padding:0 4px}
 .df166-subbar .final-actions .btn{padding:0 6px;font-size:10px}
}
@media(max-width:1050px){
 .df166-subbar .final-preview-title{display:none}
 .df166-subbar .center-toolbar h2{font-size:10px}
 .df166-subbar .zoom-pill{display:none}
 .df166-subbar .df82-preview-zoom{min-width:188px;width:218px}
 .df166-subbar .final-zoom-controls input[type=range]{max-width:95px}
}
@media(max-width:790px){
 .subbar.df166-subbar{padding:0 8px;gap:5px}
 .df166-subbar .crumb{min-width:0;max-width:105px}
 .df166-subbar .center-toolbar h2{display:none}
 .df166-subbar .final-zoom-controls #finalBackToTab,.df166-subbar .final-zoom-controls #finalToggleInfo{padding:0 4px;font-size:10px}
 .df166-subbar .final-zoom-controls input[type=range]{max-width:65px;min-width:45px}
 .df166-subbar .final-actions .btn{padding:0 5px}
}
