/* Reference-aligned editor chrome. Published page styles stay in the canvas. */
.editor-shell {
  --accent: #006aff;
  --accent-hover: #005ce0;
  --text: #151c20;
  --border: #e2e4e7;
  --line: #e2e4e7;
  --surface: #fff;
  --control: #edeef0;
  --muted: #687078;
  min-width: 1000px;
  background: var(--surface);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 12px;
  color-scheme: light;
}
.editor-shell button { transition: background .12s, color .12s; }
.editor-shell :is(button,a):focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.editor-header {
  height: 40px;
  min-width: 1000px;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(320px, 1fr);
  padding: 0 8px 0 0;
  gap: 8px;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.editor-brand { gap: 8px; overflow: hidden; }
.editor-home { width: 40px; height: 39px; display: grid; place-items: center; flex-shrink: 0; color: #293239; }
.editor-home:hover { background: #f1f2f3; }
.editor-header .header-separator { background: var(--border); height: 16px; margin: 0 2px; }
.editor-brand > .header-separator { display: none; }
.editor-project-title { font-size: 12px; color: #1c242b; max-width: 210px; padding: 6px 4px; gap: 10px; }
.draft-tag { font-size: 9px; color: #767e85; border-color: #e2e4e7; border-radius: 3px; padding: 2px 4px; }
.editor-header-actions { justify-content: flex-end; gap: 2px; }
.editor-header .icon-btn { color: #535c64; padding: 5px; border-radius: 3px; }
.editor-header .icon-btn:hover { background: #edeef0; color: #111a21; }
.editor-header .icon-btn svg { width: 15px; height: 15px; }
.editor-header .btn { height: 26px; padding: 3px 8px; font-size: 12px; border-radius: 3px; gap: 5px; font-weight: 400; }
.editor-header .btn-primary { color: #171d22; border: 1px solid #d5d8db; background: #dfe1e3; }
.editor-header .btn-primary:hover { background: #ccd0d4; box-shadow: none; }
.editor-header .btn-primary svg { display: none; }
.editor-header .btn-quiet { color: #1b2329; }
.editor-header .btn-quiet:hover { background: #f0f1f3; }
.save-status { color: #66756d; font-size: 10px; padding: 5px 4px; }
.save-status svg { width: 11px; }
.save-status.error { color: #c23c33; }
.saving-dot { background: #b08c2e; }
.canvas-toolbar {
  height: 39px;
  border: 0;
  background: transparent;
  padding: 0;
  gap: 7px;
  justify-content: center;
}
.canvas-toolbar .canvas-page-label { display: none; }
.device-controls { height: 39px; gap: 0; }
.designer-width-control { order: -1; color: #687078; gap: 0; margin-right: 8px; font-size: 11px; }
.designer-width-control input { width: 51px; padding: 3px 0; background: transparent; color: #5f6871; border: 1px solid transparent; font-size: 12px; line-height: 1.5; }
.designer-width-control input:hover { background: #f1f2f3; }
.designer-width-control span { text-transform: lowercase; padding-right: 3px; }
.editor-shell .device-button { position: relative; height: 39px; padding: 0 9px; border-radius: 0; color: #535b63; font-size: 12px; }
.editor-shell .device-button.active { color: #086cff; background: #f5f8ff; }
.editor-shell .device-button::after { content: ''; position: absolute; bottom: 0; height: 2px; left: 0; right: 0; background: #ad3cff; }
.editor-shell .device-button[data-device=landscape]::after { background: #8448ff; }
.editor-shell .device-button[data-device=mobile]::after { background: #6348ff; }
.editor-shell .device-button[data-device=desktop]::after { background: #006aff; }
.editor-shell .device-button:hover { background: #edeff2; color: #101b24; }
.canvas-toolbar select { color: #667078; border: 0; background: transparent; padding: 4px 2px; font-size: 10px; max-width: 72px; }
.editor-body { height: calc(100vh - 64px); }
.editor-rail { width: 40px; padding: 4px 0; gap: 8px; border-color: var(--border); background: #fff; }
.rail-button { width: 32px; height: 32px; border-radius: 3px; color: #26343d; }
.rail-button.active { background: #e9ebed; color: #17212a; }
.rail-button.active::before { display: none; }
.rail-button:hover { background: #f0f1f3; color: #101a22; }
.editor-rail > .icon-btn { color: #34414b; padding: 5px; }
.editor-left { width: 240px; background: #fff; border-color: var(--border); scrollbar-color: #d5d8dc transparent; color: var(--text); }
.editor-inspector { width: 260px; background: #fff; border-color: var(--border); color: var(--text); scrollbar-color: #d5d8dc transparent; }
.editor-shell .panel-title { height: 40px; padding: 0 12px; border-color: var(--border); color: #192127; }
.editor-shell .panel-title h2 { font-size: 12px; font-weight: 600; letter-spacing: 0; }
.editor-shell .panel-title > span { background: transparent; color: #8b9298; border: 0; font-size: 10px; }
.left-panel-content { padding: 12px; }
.editor-shell .panel-search { background: #f7f8f9; border-color: #e4e6e8; border-radius: 3px; color: #7b848d; padding: 6px 8px; }
.editor-shell .panel-search input { color: #26323d; font-size: 11px; }
.editor-shell .panel-search input::placeholder { color: #838b93; }
.editor-shell :is(.panel-section-label,.panel-hint,.panel-info,.empty-inline,.panel-section-label small) { color: #68747e; }
.editor-shell .panel-section-label { font-size: 11px; margin-top: 16px; }
.core-components-panel { margin: 0 -12px; }
.editor-shell .core-search { margin: 0; padding: 0 12px 12px; background: #fff; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
.core-component-group { padding: 0 12px 12px; border-color: var(--border); }
.core-component-group > summary { padding: 12px 0 10px; font-weight: 600; font-size: 12px; }
.core-components-grid { gap: 4px; }
.core-component-card { min-height: 66px; border-color: #e2e4e7; color: #37434c; background: #fff; border-radius: 3px; }
.core-component-card:hover { background: #f0f5ff; border-color: #8eb9ff; color: #006aff; }
.core-component-card svg { width: 21px; height: 21px; }
.core-component-card span { font-size: 10px; }
.editor-shell :is(.element-item,.block-item,.preset-entry,.collection-row,.component-list > button,.editor-asset-grid > button) { background: #fff; border-color: var(--border); color: #3e4b55; border-radius: 3px; }
.editor-shell :is(.element-item,.block-item,.preset-entry,.collection-row,.component-list > button):hover { background: #f3f7fe; border-color: #a9caff; color: #006aff; transform: none; }
.editor-shell :is(.preset-entry small,.collection-row small,.component-list small,.panel-info) { color: #76818a; }
.editor-shell .btn-outline { background: transparent; border-color: #dfe3e7; color: #384650; border-radius: 3px; padding: 7px 9px; font-size: 11px; }
.editor-shell .btn-outline:hover { color: #006aff; background: #edf4ff; border-color: #b6d1ff; }
.editor-shell .btn-primary { color: #fff; background: #006aff; border-color: #006aff; }
.editor-header .btn-primary { color: #171d22; border-color: #d5d8db; background: #dfe1e3; }
.editor-shell .btn-quiet { color: #52616c; }
.editor-left[data-panel=layers] { display: flex; flex-direction: column; }
.designer-layer-search { margin: 8px 10px; flex-shrink: 0; }
.navigator-toolbar { padding: 4px 8px; background: #fff; border-color: var(--border); gap: 4px; flex-shrink: 0; }
.navigator-tool { padding: 4px; font-size: 10px; color: #66717b; border-color: #e5e7ea; background: #f7f8fa; border-radius: 3px; }
.navigator-tool:hover { color: #006aff; border-color: #b5cfff; }
.editor-left .document-root-row { min-height: 25px; height: 25px; border: 0; color: #23303a; padding: 0 10px; gap: 3px; flex-shrink: 0; }
.editor-left .document-root-row .layer-label { height: 25px; }
.document-root-row .layer-label code { color: #35424e; }
.layers-tree { overflow: auto; flex: 1 1 auto; min-height: 70px; scrollbar-width: thin; scrollbar-color: #d5d8dc transparent; padding-top: 0; }
.layer-row { height: 25px; padding-left: calc(9px + var(--depth)*14px); padding-right: 9px; border: 0; }
.layer-label { color: #24323e; height: 25px; font-size: 11px; gap: 5px; }
.layer-toggle,.layer-toggle-spacer { width: 14px; min-width: 14px; height: 24px; }
.layer-toggle { color: #7d8992; }
.layer-toggle:hover { color: #006aff; background: #edf4ff; }
.editor-shell .layer-code-tag { color: #697a88; font-size: 10px; }
.layer-node-name { color: #23313b; font-size: 11px; }
.layer-row:hover { background: #f0f3f6; }
.editor-shell :is(.layer-row.selected,.document-root-row.selected) { background: #d6e2f2; color: #172b3c; }
.editor-shell .layer-row.selected :is(.layer-label,.layer-code-tag,.layer-node-name) { color: #152c3d; }
.layer-branch > .layer-row.contains-selection { background: #edf3fb; }
.layer-selection-dot { background: #006aff; }
.layer-eye { color: #697581; padding: 3px; opacity: .55; }
.layer-eye:hover,.layer-eye:focus-visible { background: #c4d8f5; color: #006aff; opacity: 1; }
.layer-eye.is-hidden { color: #788995; }
.editor-left[data-panel=layers] > .panel-info { display: none; }
.navigator-css-preview { margin: auto 0 0; border-top: 1px solid var(--border); padding: 10px 12px; flex: 0 0 auto; min-height: 40px; background: #fff; }
.navigator-css-preview[open] { min-height: 170px; }
.navigator-css-preview summary { font-size: 12px; color: #26323b; }
.navigator-css-preview pre { font: 11px/1.5 ui-monospace, SFMono-Regular, Consolas, monospace; min-height: 100px; max-height: 200px; background: #fff; color: #275ca8; padding: 8px 0 0; border-radius: 0; }
.canvas-workspace { background: #f6f7f9; }
.canvas-stage { padding: 0; background: #f5f6f8; background-image: none; scrollbar-color: #cbd0d6 #f5f6f8; }
.canvas-ruler,.canvas-stage-footer { display: none; }
.canvas-page-wrap { background: #fff; box-shadow: 0 0 0 1px #e4e7eb; min-height: 100%; }
.canvas-page-wrap > iframe { background: #fff; }
.editor-breadcrumb { height: 24px; border-color: var(--border); padding: 0 8px; gap: 7px; background: #fff; color: #687681; }
.crumb { color: #253540; font-size: 11px; padding: 2px; }
.crumb svg { width: 12px; height: 12px; }
.crumb:hover { color: #006aff; background: #edf4ff; }
.breadcrumb-end { color: #9099a1; font-size: 9px; }
.designer-selection-hud { background: #006aff; border: 0; border-radius: 2px; box-shadow: none; font-size: 10px; padding: 3px 5px; }
.inspector-tabs { height: 40px; align-items: stretch; gap: 0; padding: 0 12px; background: #fff; border-color: var(--border); }
.inspector-tab { flex: 0 0 auto; padding: 0 7px; border: 0; border-radius: 0; gap: 4px; font-size: 12px; color: #626d75; }
.inspector-tab svg { display: none; }
.inspector-tab.active { background: #fff; border: 0; color: #18252e; font-weight: 600; box-shadow: inset 0 -2px #006aff; }
.inspector-tab:hover { background: #f4f6f8; }
.selected-element { padding: 7px 10px; border-color: var(--border); gap: 6px; min-height: 37px; }
.selected-element-icon { background: #eff1f3; color: #60717e; padding: 4px; border-radius: 2px; }
.selected-element input { color: #293640; font-size: 11px; }
.selected-element small { display: none; }
.selected-element > .icon-btn { color: #7b8790; padding: 3px; }
.inspector-section { padding: 12px; border-color: var(--border); }
.inspector-section > h3,.inspector-section > summary { font-size: 12px; font-weight: 600; color: #19252e; }
.inspector-section[open] > summary { margin-bottom: 12px; }
.editor-shell .inspector-section .field { margin: 10px 0 0; }
.editor-shell :is(.style-field,.inspector-section .field > span) { color: #3a4853; font-size: 11px; font-weight: 400; }
.style-field { gap: 7px; margin-bottom: 8px; }
.style-field > span { width: 65px; }
.editor-shell .property-grid { gap: 8px; }
.editor-shell .property-grid .style-field > span { font-size: 11px; margin-bottom: 5px; }
.editor-shell :is(.style-field > input,.style-field > select,.color-input,.inspector-section .field input,.inspector-section .field textarea,.inspector-section .field select,.designer-selector-row select,.designer-selectors select,.global-variable-row input) { border: 1px solid transparent; background: #edeef0; color: #202d37; border-radius: 3px; padding: 4px 6px; font-size: 11px; line-height: 1.5; min-height: 25px; height: auto; }
.editor-shell :is(input,textarea,select):focus { border-color: #006aff !important; box-shadow: 0 0 0 1px #006aff25; }
.editor-shell :is(input,textarea)::placeholder { color: #8c969e; }
.color-input { height: 26px; }
.editor-shell .color-input input:not([type=color]) { background: transparent; color: #34444f; font-size: 10px; }
.editor-shell .inspector-note { color: #74818c; font-size: 10px; line-height: 1.7; margin-top: 9px; }
.editor-inspector .muted { color: #6f7d88; font-size: 10px; }
.breakpoint-notice { background: #f7f9fb; color: #788690; font-size: 10px; padding: 6px 12px; border-color: var(--border); }
.breakpoint-notice.override { background: #f2efff; color: #7158b9; }
.designer-selectors { padding: 12px; background: #fff; border-color: var(--border); }
.designer-section-label { font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: 0; color: #24323c; }
.designer-section-label > button { background: #edeef0; color: #5d6a74; }
.designer-class-empty { display: block; width: 100%; font-size: 10px; background: #edeef0; color: #6e7983; padding: 5px 7px; border-radius: 3px; }
.designer-class-chips { margin: 9px 0; }
.designer-class-chip { background: #dceaff; border-color: #b1ceff; }
.designer-class-chip button { color: #0064e5; padding: 3px 4px; }
.designer-class-chip button:last-child { border-color: #b1ceff; }
.designer-selector-row { grid-template-columns: minmax(0,1fr) 88px; gap: 5px; }
.designer-inheritance { color: #7d8890; font-size: 9px; margin-top: 8px !important; }
.designer-control-caption { color: #5f6e79; font-size: 10px; margin: 10px 0 6px; }
.designer-segment { margin: 7px 0; }
.designer-segment button { background: #eff1f3; border-color: #e1e5e9; color: #4d5f6b; padding: 5px 2px; font-size: 10px; }
.designer-segment button:hover,.designer-segment button.active { background: #dceaff; border-color: #b6d1ff; color: #006aff; }
.designer-align-grid { height: 66px; gap: 2px; }
.designer-align-grid button { border-color: #dfe3e7; background: #f0f2f4; }
.designer-align-grid button i { background: #8896a2; width: 7px; height: 7px; }
.designer-align-grid button.active { background: #dfebff; border-color: #a4c5ff; }
.designer-align-grid button.active i { background: #006aff; }
.designer-spacing { margin: 10px 0 6px; }
.designer-box-margin { height: 145px; border-color: #e1e4e7; border-radius: 3px; background: conic-gradient(from 45deg at 50% 50%,#edeff1 0deg 90deg,#f6f7f8 90deg 180deg,#edeff1 180deg 270deg,#f6f7f8 270deg); }
.designer-box-padding { inset: 29px 38px; border-color: #e2e6e9; background: #f6f7f8; border-radius: 0; }
.designer-box-caption { top: 3px; left: 5px; color: #7c858c; font-size: 7px; }
.designer-box-padding > .designer-box-caption { color: #7c858c; font-size: 7px; }
.designer-space { height: 25px; width: 34px; }
.designer-space > span { font-size: 6px; color: #85919a; }
.editor-shell .designer-space input { width: 34px !important; color: #3e4f5d !important; background: transparent !important; font-size: 10px !important; padding: 1px !important; }
.editor-shell .designer-space input:focus { background: #e3eeff !important; color: #006aff !important; }
.designer-space-top { top: 1px; left: calc(50% - 17px); }
.designer-space-bottom { bottom: 1px; left: calc(50% - 17px); }
.designer-space-left { top: calc(50% - 12px); }
.designer-space-right { top: calc(50% - 12px); }
.designer-box-padding .designer-space-top { top: 9px; }
.designer-box-padding .designer-space-bottom { bottom: 0; }
.designer-box-content { inset: 31px 30px 24px; border: 1px solid #dde4e9; color: #8a97a1; background: #fff; font-size: 5px; letter-spacing: 0; }
.designer-box-caption button.active { color: #006aff; background: #dceaff; border-color: #b5cfff; }
.designer-space-help { color: #8b959e; font-size: 9px; }
#editor-inspector label[data-style-origin=local] > span:first-child { color: #006aff; }
#editor-inspector label[data-style-origin=inherited] > span:first-child { color: #8055bf; }
#editor-inspector label[data-style-origin=overridden] > span:first-child { color: #a4792e; }
.style-property-reset { background: #e8effa; color: #006aff; }
.style-property-reset:hover { color: #fff; background: #006aff; }
.editor-shell :is(.advanced-style-presets button,.designer-text-tool) { color: #4a5e6e; background: #f0f3f6; border-color: #e0e5e9; }
.editor-shell :is(.advanced-style-presets button,.designer-text-tool):hover { color: #006aff; background: #e5efff; }
.inspector-empty { padding: 28px 12px; border-color: var(--border); }
.inspector-cursor { color: #9aa9b5; margin-bottom: 14px; }
.inspector-empty h3 { color: #475865; font-size: 12px; }
.inspector-empty p { color: #85929d; font-size: 11px; }
.editor-shell .core-checkbox { color: #43535f; font-size: 11px; justify-content: space-between; flex-direction: row-reverse; min-height: 24px; }
.editor-shell .core-checkbox input { appearance: none; width: 25px; height: 14px; min-height: 0; border: 0; border-radius: 10px; background: #d7dce1; position: relative; cursor: pointer; flex-shrink: 0; padding: 0; }
.editor-shell .core-checkbox input::after { content: ''; width: 10px; height: 10px; position: absolute; top: 2px; left: 2px; border-radius: 50%; background: white; transition: transform .12s; }
.editor-shell .core-checkbox input:checked { background: #006aff; }
.editor-shell .core-checkbox input:checked::after { transform: translateX(11px); }
.editor-shell .core-settings { color: #354551; }
.editor-shell .page-row { border-color: #e3e7eb; }
.editor-shell .page-row.active { background: #eaf2ff; border-color: #b4d0ff; }
.editor-shell .page-row > button:first-child { color: #394e5f; }
.editor-shell .page-row :is(small,i,.icon-btn) { color: #8a98a5; }
.editor-shell :is(.library-heading,.library-taxonomy,.library-card,.builtin-card,.library-card-tools,.library-filter) { background: #fff; color: #435460; border-color: #e3e7eb; }
.editor-shell :is(.library-filter:hover,.library-filter.active) { background: #eaf2ff; color: #006aff; border-color: #bfd6ff; }
.editor-shell .builtin-card :is(strong,small,span) { color: #5d6f7d; }
.editor-shell .library-card-tools :is(button,a) { color: #5278a4; }
.editor-shell :is(.cms-selected-target,.cms-channel-binding-row,.cms-binding-summary,.cms-legacy-collections) { background: #f7f9fb; color: #4b606f; border-color: #e0e6ec; }
.editor-shell :is(.cms-selected-target b,.cms-selected-target p,.cms-selected-target small,.cms-binding-summary > span,.cms-binding-summary p,.cms-binding-summary ul,.cms-legacy-collections > summary) { color: #597080; }
.editor-shell .cms-channel-binding-row.is-bound { background: #eef5ff; border-color: #b9d4ff; }
.editor-shell :is(.cms-channel-binding-row > a,.cms-binding-tools > a) { color: #006aff; }
.editor-shell .admin-editor-context { color: #006aff; background: #edf4ff; border-color: #bfd6ff; font-size: 10px; }
/* Dialogs opened from the editor use the same neutral palette. */
body:has(.editor-shell) .modal { --accent: #006aff; --line: #e0e5ea; background: #fff; color: #273b49; border-color: #dfe5eb; border-radius: 6px; }
body:has(.editor-shell) :is(.modal-head,.modal-footer,.modal-divider) { border-color: #e4e8ed; }
body:has(.editor-shell) :is(.modal-head h2,.modal .field > span,.modal .field-label) { color: #344957; }
body:has(.editor-shell) .modal .btn-primary { color: #fff; background: #006aff; border-color: #006aff; }
body:has(.editor-shell) .modal :is(.field > input,.field > select,.field > textarea) { background: #f2f4f7; color: #344957; border-color: #e0e6eb; border-radius: 3px; }
body:has(.editor-shell) .modal .text-btn { color: #006aff; }
@media (min-width:1600px) { .editor-inspector { width: 260px; } }
@media (max-width:1350px) {
  .editor-inspector { width: 250px; }
  .editor-left { width: 225px; }
  .editor-header { grid-template-columns: minmax(200px,1fr) auto minmax(260px,1fr); }
  .save-status { max-width: 20px; overflow: hidden; padding: 4px; }
  .save-status svg { flex-shrink: 0; }
  .editor-project-title { max-width: 175px; }
  .draft-tag { display: none; }
}
@media (max-width:1100px) {
  .editor-header-actions > .header-separator { display: none; }
  .editor-project-title { max-width: 150px; }
  .editor-header { gap: 3px; grid-template-columns: minmax(190px,1fr) auto minmax(240px,1fr); }
  .canvas-toolbar { gap: 2px; }
  .device-button { padding: 0 7px; }
  .canvas-toolbar select { max-width: 62px; }
}
@media (prefers-reduced-motion:reduce) { .editor-shell * { transition: none !important; } }

.editor-inspector > .panel-title + .inspector-section .field { display: grid; grid-template-columns: 65px minmax(0,1fr); align-items: center; gap: 6px; }
.editor-inspector > .panel-title + .inspector-section .field > span { margin: 0; }

/* Keep layout controls close to the selected element, as in the reference. */
.editor-inspector > .inspector-tabs + .panel-title { display: none; }
.designer-section-label { font-family: inherit; }
.designer-selectors .field { display: grid; grid-template-columns: 52px minmax(0,1fr); gap: 6px; align-items: center; margin: 6px 0; }
.designer-selectors .field > span { margin: 0; font-weight: 400; }
.editor-shell .designer-selectors .field > select { padding: 3px 5px; font-size: 10px; }
.editor-shell :is(.motion-target,.motion-preview-actions) { background: #fff; border-color: #e2e6eb; color: #344a5a; padding: 12px; }
.editor-shell :is(.motion-target small,.motion-preview-actions p,.motion-hero p) { color: #7b8b98; font-size: 10px; }
.editor-shell :is(.motion-hero,.designer-video-interaction) { background: #f5f8fc; border-color: #e2e8ef; padding: 14px 12px; }
.editor-shell .motion-hero h3 { color: #253f55; font-size: 18px; margin: 10px 0; }
.editor-shell .motion-hero > span { color: #8b9eaf; }
.editor-shell .designer-video-interaction b { color: #36566f; }
.editor-shell .designer-video-interaction p { color: #8191a0; }
.editor-shell .ix-quick-effects > summary { background: #f7f9fc; color: #4c6274; padding: 12px; }
.editor-shell .motion-preset { background: #f9fafc; border-color: #e1e7ee; color: #647a8c; border-radius: 3px; padding: 10px 7px; }
.editor-shell .motion-preset.active { background: #e9f2ff; border-color: #9ec4ff; color: #006aff; }
.editor-shell .motion-clear { color: #7e8fa0; }
.editor-shell .ix-plus { background: #edf4ff; border-color: #bad5ff; color: #006aff; border-radius: 3px; }
.editor-shell :is(.ix-empty,.fx-mini-empty) { color: #8395a4; border-color: #dce5ed; font-size: 11px; }
.editor-shell .ix-card { border-radius: 3px; border-color: #e1e7ed; }
.editor-shell :is(.ix-event,.ix-card small,.ix-card-tools button) { color: #778e9f; }
body:has(.editor-shell) :is(.ix-editor,.fx-studio,.fx-browser) { background: #f7f9fc; color: #344c5f; }
body:has(.editor-shell) :is(.ix-editor h3,.fx-settings-head > span,.fx-hint,.fx-preset-copy b) { color: #48667f; }
body:has(.editor-shell) .ix-editor-top button { background: #006aff; color: #fff; }
body:has(.editor-shell) .ix-scrub { accent-color: #006aff; }
body:has(.editor-shell) .fx-preset { border-color: #e1e7ef; }
body:has(.editor-shell) .fx-preset.active { border-color: #006aff; box-shadow: 0 0 0 1px #006aff; }
body:has(.editor-shell) .modal .btn-primary:hover { background: #005ce0; box-shadow: none; }

.editor-shell .inspector-section .field input[type=color] { height: 28px; padding: 3px; }
.editor-shell .designer-selectors .field > span { color: #758492; }

/* Editor text has a 12px floor, including legacy panels and editor dialogs.
   Canvas and published documents are separate frames and retain their typography. */
.editor-shell *,
body:has(.editor-shell) #modal-root * {
  font-size: 12px !important;
}
.editor-shell :is(h1,h2,h3),
body:has(.editor-shell) #modal-root :is(h1,h2,h3) {
  font-size: 14px !important;
}
.editor-shell .core-component-group :is(h3,summary),
.editor-shell .panel-title h2,
.editor-shell .inspector-section :is(h3,summary),
.editor-shell .navigator-css-preview summary {
  font-size: 12px !important;
}
body:has(.editor-shell) #modal-root .modal-head h2 {
  font-size: 18px !important;
}
.editor-shell .ix-plus,
body:has(.editor-shell) #modal-root .ix-plus {
  font-size: 20px !important;
}
.editor-shell :is(.layer-row,.document-root-row,.layer-label) {
  min-height: 28px;
  height: 28px;
}
.core-component-card {
  min-height: 76px;
  padding: 10px 3px;
}
.core-component-card span {
  max-width: 100%;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.editor-shell .inspector-note,
.editor-shell .panel-info,
.editor-shell .panel-hint,
.editor-shell .motion-preview-actions p {
  line-height: 1.7;
}
.editor-shell .designer-box-margin { height: 220px; }
.editor-shell .designer-box-padding { inset: 48px 50px; }
.editor-shell .designer-box-content { inset: 45px 30px 40px; }
.editor-shell .designer-space { width: 44px; height: 36px; }
.editor-shell .designer-space input { width: 44px !important; font-size: 12px !important; }
.editor-shell .designer-space-top,
.editor-shell .designer-space-bottom { left: calc(50% - 22px); }
.editor-shell .designer-space-left,
.editor-shell .designer-space-right { top: calc(50% - 18px); }
.editor-shell .designer-box-padding .designer-space-top { top: 15px; }
.editor-shell .designer-box-padding .designer-space-bottom { bottom: 0; }
.editor-shell .designer-box-caption { font-size: 12px !important; }
.editor-shell .designer-box-caption button { min-width: 16px; }
.editor-shell .designer-selector-row { grid-template-columns: minmax(0,1fr) 92px; }
.editor-shell .core-checkbox { gap: 7px; line-height: 1.5; }
.editor-shell .core-checkbox input { font-size: 12px !important; }
.editor-shell .breadcrumb-end { overflow: hidden; text-overflow: ellipsis; }
.editor-shell .inspector-section .btn { white-space: normal; line-height: 1.5; }
/* Style-origin markers must not turn the spacing inputs into flow items. */
#editor-inspector label.designer-space[data-style-origin] { position: absolute; }
.editor-shell .designer-box-content { display: none; }
/* Preserve larger headings and illustrative glyphs above the minimum. */
.editor-shell .motion-hero h3 { font-size: 18px !important; }
body:has(.editor-shell) #modal-root .ix-editor-top .field input { font-size: 17px !important; }
body:has(.editor-shell) #modal-root .fx-studio-intro h3 { font-size: 24px !important; }
body:has(.editor-shell) #modal-root .fx-preset-art i { font-size: 48px !important; }
body:has(.editor-shell) #modal-root .fx-preset-copy b { font-size: 14px !important; }
.element-style-section > summary { margin-bottom: 12px; }
.inspector-subsection { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e4e8ed; }
.inspector-subsection > summary { color: #596f80; cursor: pointer; }
.inspector-subsection > p { margin: 10px 0 6px; color: #82929f; }
.editor-shell .element-style-section .style-field { align-items: flex-start; }
.editor-shell .element-style-section .style-field > span { padding-top: 4px; }

/* Canvas hover follows the source node, independently of the selected layer. */
.editor-shell :is(.layer-row,.document-root-row)[data-canvas-hovered] {
  background: #e8f1ff;
  box-shadow: inset 3px 0 #4f95e8;
}
.editor-shell :is(.layer-row,.document-root-row)[data-canvas-hovered] :is(.layer-code-tag,.layer-node-name,.layer-label) {
  color: #1768c4;
}
.editor-shell :is(.layer-row,.document-root-row).selected[data-canvas-hovered] {
  background: #d6e2f2;
  box-shadow: inset 3px 0 #1768c4;
}

/* The dropdown helper belongs to the light inspector theme as well. */
.editor-shell .dropdown-editor-section {
  background: #f7f9fc;
  border-top-color: #e1e7ef;
  border-bottom-color: #e1e7ef;
}
.editor-shell .dropdown-editor-section h3 { color: #19252e; }
.editor-shell .dropdown-editor-section .inspector-note { color: #536578; }
.editor-shell .dropdown-editor-row > b { color: #23313b; }
/* Keep the authored CSS visible, with units beside scalar values. */
.editor-shell .style-unit-field { flex: 1; min-width: 0; width: 100%; }
.editor-shell .style-unit-field.is-scalar,
.editor-shell .transform-unit-field { display: grid; grid-template-columns: minmax(0,1fr) 52px; align-items: stretch; gap: 2px; }
.editor-shell .transform-unit-field.is-unitless { grid-template-columns: minmax(0,1fr); }
.editor-shell :is(.style-unit-field,.transform-unit-field) > :is(input,select),
.editor-shell .style-unit-tokens select {
  width: 100%; min-width: 0; max-width: 100%; border: 1px solid transparent;
  border-radius: 3px; background: #edeef0; color: #202d37;
  padding: 4px; font: inherit; font-size: 12px; min-height: 28px;
}
.editor-shell :is(.style-unit-field,.transform-unit-field) select { color: #536578; padding-left: 2px; padding-right: 0; }
.editor-shell .style-unit-tokens { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.editor-shell .style-unit-token { display: inline-flex; align-items: center; gap: 3px; margin: 0; padding-left: 4px; color: #536578; border: 1px solid #e1e7ef; border-radius: 3px; font-size: 12px; }
.editor-shell .style-unit-tokens select { width: 54px; min-height: 24px; }
.editor-shell .designer-box-margin { height: 300px; }
.editor-shell .designer-box-padding { inset: 64px 54px; }
.editor-shell .designer-space { width: 48px; height: 58px; }
.editor-shell .designer-space .style-unit-field { display: flex; flex-direction: column; gap: 0; }
.editor-shell .designer-space .style-unit-field > :is(input,select) { width: 46px !important; min-height: 20px; height: 20px; padding: 0 !important; text-align: center; }
.editor-shell .designer-space-top,.editor-shell .designer-space-bottom { left: calc(50% - 24px); }
.editor-shell .designer-space-left,.editor-shell .designer-space-right { top: calc(50% - 29px); }
.editor-shell .designer-box-padding .designer-space-top { top: 14px; }
.library-hover-panel { position: fixed; z-index: 400; background: #fff; color: #24324a; border: 1px solid #dce4ee; box-shadow: 0 16px 60px #14284230; border-radius: 10px; overflow: auto; font-family: var(--font),sans-serif; font-size: 12px; line-height: 1.6; }
.library-hover-panel header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 16px 10px; }
.library-hover-panel header span { font-size: 12px; color: #69809b; }
.library-hover-panel h3 { font-size: 15px; line-height: 1.6; margin: 6px 0 0; font-weight: 600; }
.library-hover-panel button { font: inherit; cursor: pointer; }
.library-hover-panel [data-preview-close] { flex-shrink: 0; font-size: 22px; border: 0; background: #f0f3f8; color: #536578; border-radius: 5px; width: 30px; height: 30px; }
.library-hover-description { margin: 0 16px 12px; color: #69809b; }
.library-hover-device { display: flex; align-items: center; gap: 6px; padding: 8px 14px; background: #f7f9fc; border-block: 1px solid #e4eaf2; }
.library-hover-device button { border: 1px solid #dbe4ef; background: white; color: #536578; padding: 4px 12px; border-radius: 4px; font-size: 12px; }
.library-hover-device button.active { background: #e8f0ff; color: #1768c4; border-color: #a8c6f4; }
.library-hover-device span { margin-left: auto; color: #69809b; font-size: 12px; }
.library-hover-viewport { margin: 12px 14px; overflow: hidden; background: #f7f9fc; border: 1px solid #e0e6ef; }
.library-hover-viewport iframe { display: block; transform-origin: top left; border: 0; background: #fff; }
.library-hover-panel footer { display: flex; align-items: center; gap: 12px; padding: 14px; background: #fafbfd; border-top: 1px solid #e4eaf2; flex-wrap: wrap; }
.library-hover-origin { color: #69809b; font-size: 12px; }
.library-hover-panel footer a { color: #1768c4; font-size: 12px; }
.library-hover-panel footer .btn { margin-left: auto; font-size: 12px; background: #1768c4; color: white; padding: 8px 14px; border-radius: 5px; border: 0; }
.editor-shell .library-heading small { color: #69809b; font-size: 12px; line-height: 1.7; }
.navigation-kind-filters { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.editor-shell .navigation-kind { padding: 5px 7px; background: #f4f7fb; border: 1px solid #e1e7ef; color: #536578; border-radius: 4px; font: inherit; font-size: 12px; cursor: pointer; }
.editor-shell .navigation-kind.active { border-color: #a8c6f4; background: #e8f0ff; color: #1768c4; }
.editor-shell .navigation-source-link { color: #1768c4; font-size: 12px; }
.library-hover-panel .library-preview-name { margin: 12px 16px 6px; font-size: 14px; line-height: 1.7; color: #24324a; }
.library-hover-panel:not(.library-category-browser) .library-preview-name { display: none; }
.library-browser-body { min-width: 0; }
.library-category-browser .library-browser-body { display: grid; grid-template-columns: 230px minmax(0,1fr); border-top: 1px solid #e4eaf2; }
.library-preview-detail { min-width: 0; }
.library-browser-sidebar { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding: 14px; background: #f7f9fc; border-right: 1px solid #e4eaf2; height: min(680px,calc(100vh - 160px)); }
.library-browser-sidebar > label { display: flex; flex-direction: column; gap: 5px; color: #536578; font-size: 12px; margin: 0; }
.library-browser-sidebar [hidden] { display: none; }
.library-browser-sidebar :is(input,select) { width: 100%; min-width: 0; min-height: 30px; padding: 5px 7px; border: 1px solid #dce4ee; border-radius: 4px; font: inherit; font-size: 12px; color: #24324a; background: white; }
.library-browser-count { color: #69809b; margin: 0; font-size: 12px; }
.library-browser-results { flex: 1; min-height: 80px; overflow: auto; display: flex; flex-direction: column; gap: 6px; padding-right: 2px; }
.library-browser-item { display: flex; flex-direction: column; gap: 5px; flex-shrink: 0; padding: 10px; border: 1px solid #e0e6ef; border-radius: 5px; background: white; color: #24324a; text-align: left; font: inherit; font-size: 12px; }
.library-browser-item strong { font-size: 12px; line-height: 1.7; font-weight: 500; overflow-wrap: anywhere; }
.library-browser-item span { font-size: 12px; line-height: 1.6; color: #69809b; }
.library-browser-item:hover,.library-browser-item.active { background: #eaf2ff; border-color: #9fbfe9; }
.library-browser-item:focus-visible { outline: 2px solid #1768c4; outline-offset: -2px; }
.library-browser-more { padding: 8px; background: white; border: 1px solid #dce4ee; color: #1768c4; border-radius: 4px; font-size: 12px; }
.library-preview-empty { padding: 45px 18px; color: #69809b; font-size: 12px; }
@media(max-width:980px){.library-category-browser .library-browser-body { grid-template-columns: minmax(0,1fr); }.library-browser-sidebar { height: 260px; border-right: 0; border-bottom: 1px solid #e4eaf2; }.library-browser-sidebar > label { flex-shrink: 0; }.library-browser-sidebar .library-browser-kind { display: none; }}

.static-site-art{overflow:hidden;position:relative;background:#edf0f4}.static-site-art>img{display:block;width:100%;height:100%;object-fit:cover;object-position:top}.template-reference{flex-wrap:wrap}

/* Original templates may have deeper DOM trees than native blocks. */
.editor-shell .layer-row[data-static-owner] { min-width: calc(190px + var(--depth)*14px); }
.editor-shell .layer-row[data-static-owner] .layer-eye { position: sticky; right: 0; z-index: 1; background: inherit; }
