/* Editor-only P0 chrome. Never linked or served by the print renderer.
   Do not add artwork descendants or broad element selectors here. */
.editor-app { background: #101112; }
.editor-app .editor-chrome,
.editor-app .editor-toolbar { color: #F3F0E8; }
.editor-app #status.editor-status {
  background: #191B1D;
  color: #F3F0E8;
  border: 1px solid #34373A;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .16);
}
.editor-app #status.editor-status[data-kind="error"] {
  color: #F3F0E8;
  border-color: #34373A;
}
.editor-app #editor-finish {
  background: #D4F54A;
  color: #101112 !important;
  border-radius: 6px;
  font-weight: 600;
}
/* Preserve the reserved status track and search announcements. */
.editor-app #search.editor-search [data-message] {
  background: #101112;
  color: #A7AAAD;
}
.editor-app #search.editor-search [data-message]:empty {
  visibility: hidden;
}
.editor-app #icp-footer {
  background: #101112;
  color: #6F7377;
}
.editor-app #icp-footer a {
  color: #6F7377;
}

/* P1-A: search UI only; the existing grid tracks remain unchanged. */
.editor-app #search.editor-search fieldset {
  box-sizing: border-box;
  background: #191B1D;
  border: 1px solid #34373A;
  border-radius: 8px;
}
.editor-app #search.editor-search fieldset:focus-within {
  border-color: #D4F54A;
}
.editor-app #search.editor-search input {
  background: transparent;
  border: 0;
  outline: none;
  color: #F3F0E8;
}
.editor-app #search.editor-search input::placeholder {
  color: #7F8386;
}
.editor-app #search.editor-search button[type="submit"] {
  background: transparent;
  border: 0;
  color: #F3F0E8;
}
.editor-app #search.editor-search button[type="submit"]:hover,
.editor-app #search.editor-search button[type="submit"]:focus-visible,
.editor-app #search.editor-search button[type="submit"]:active {
  color: #D4F54A;
}
.editor-app #search.editor-search [data-results] {
  background: #191B1D;
  border-color: #34373A;
  border-radius: 8px;
}
.editor-app #search.editor-search [data-results] button {
  background: #191B1D;
  border-color: #34373A;
  color: #F3F0E8;
}
.editor-app #search.editor-search [data-results] button:hover,
.editor-app #search.editor-search [data-results] button:focus-visible {
  background: #24272A;
  color: #D4F54A;
}
.editor-app #search.editor-search [data-results] span {
  color: #A7AAAD;
}
.editor-app #search.editor-search [data-message][data-kind="error"] {
  color: #E18B84;
}

/* P1-B: tool chrome only. Artwork layers are deliberately excluded. */
.editor-app #main-actions.editor-toolbar .main-toolbar button {
  color: #F3F0E8;
  border-radius: 6px;
}
.editor-app #main-actions.editor-toolbar .main-toolbar button:disabled {
  color: #7F8386;
}
.editor-app #main-actions.editor-toolbar .main-toolbar button:hover:not(:disabled),
.editor-app #main-actions.editor-toolbar .main-toolbar button:focus-visible {
  background: #24272A;
  color: #D4F54A;
}
.editor-app #main-actions.editor-toolbar .editor-undo-icon {
  vertical-align: middle;
}
.editor-app #text-edit-mode.editor-panel,
.editor-app #shell-layer-panel.editor-panel,
.editor-app #icon-panel,
.editor-app #marker-tools [data-marker-options] {
  background: #191B1D;
  color: #F3F0E8;
}
.editor-app #text-edit-mode.editor-panel button,
.editor-app #shell-layer-panel.editor-panel button,
.editor-app #icon-panel button,
.editor-app #marker-tools [data-marker-options] button {
  background: #24272A;
  border-color: #34373A;
  border-radius: 6px;
  color: #F3F0E8;
}
.editor-app #text-edit-mode.editor-panel input,
.editor-app #text-edit-mode.editor-panel textarea,
.editor-app #text-edit-mode.editor-panel select,
.editor-app #marker-tools [data-marker-options] input {
  background: #24272A;
  border-color: #34373A;
  border-radius: 6px;
  color: #F3F0E8;
  accent-color: #D4F54A;
}
.editor-app #text-edit-mode.editor-panel textarea::placeholder,
.editor-app #text-edit-mode.editor-panel input::placeholder {
  color: #7F8386;
}
.editor-app #text-edit-mode.editor-panel input:focus-visible,
.editor-app #text-edit-mode.editor-panel textarea:focus-visible,
.editor-app #text-edit-mode.editor-panel select:focus-visible,
.editor-app #marker-tools [data-marker-options] input:focus-visible {
  outline: 1px solid #D4F54A;
  outline-offset: -1px;
}
.editor-app #text-edit-mode.editor-panel button[aria-pressed="true"],
.editor-app #shell-layer-panel.editor-panel button[aria-pressed="true"],
.editor-app #icon-panel button[aria-pressed="true"],
.editor-app #marker-tools [data-marker-options] button[aria-pressed="true"] {
  outline: 1px solid #D4F54A;
  outline-offset: -1px;
}
.editor-app #text-edit-mode.editor-panel .stroke-counts button[data-existing="true"] {
  background: #24272A;
  border-bottom-color: #9FBDA8;
}
.editor-app #shell-layer-panel.editor-panel .layer-row {
  background: #191B1D;
}
.editor-app #shell-layer-panel.editor-panel .layer-choose[aria-pressed="true"] {
  background: #24272A;
  color: #D4F54A;
}
.editor-app #text-selection-delete {
  background: radial-gradient(circle, #24272A 0 12px, transparent 13px);
  color: #E18B84 !important;
  text-shadow: none;
}
.editor-app #marker-selection-delete::after {
  content: "";
  background: #24272A url("./assets/ui/delete.svg") center / 14px 14px no-repeat;
  box-shadow: inset 0 0 0 1px #34373A;
}
.editor-app #text-selection-delete:hover,
.editor-app #text-selection-delete:active {
  color: #F3F0E8 !important;
}
/* A neutral thumbnail backing keeps original black/white icon artwork legible. */
.editor-app #icon-panel .icon-grid img {
  background: #F3F0E8;
  border-radius: 4px;
}

/* Independent secondary text tools; retain the six existing grid tracks. */
.editor-app #text-edit-mode.editor-panel .text-mode-toolbar {
  gap: 6px;
}
.editor-app #text-edit-mode.editor-panel .text-mode-toolbar button {
  border: 1px solid #34373A;
  border-radius: 6px;
  background: #24272A;
  color: #F3F0E8;
}
.editor-app #text-edit-mode.editor-panel[data-entry="font"] [data-text-entry="font"],
.editor-app #text-edit-mode.editor-panel[data-entry="size"] [data-text-entry="size"],
.editor-app #text-edit-mode.editor-panel[data-entry="color"] [data-text-entry="color"],
.editor-app #text-edit-mode.editor-panel[data-entry="strokes"] [data-text-entry="strokes"],
.editor-app #text-edit-mode.editor-panel[data-entry="more"] [data-text-entry="more"] {
  border-color: #D4F54A;
  color: #D4F54A;
}

/* Local completion language and appearance; each original handler remains distinct. */
.editor-app #editor-shell #editor-dock button.editor-complete-action {
  background: #24272A;
  border: 1px solid #64733C;
  border-radius: 6px;
  color: #D4F54A;
}

/* Secondary control tokens are inherited by tool UI, never artwork. */
.editor-app #editor-dock {
  --editor-control-h: 44px;
  --editor-control-radius: 10px;
  --editor-control-border: #34373A;
  --editor-control-surface: #24272A;
}
.editor-app #editor-dock .text-panel-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}
.editor-app #editor-dock .text-panel-header strong {
  text-align: center;
}
.editor-app #editor-dock .text-panel-header button {
  min-width: 0;
}
.editor-app #editor-shell #editor-dock button.editor-back-action {
  background: transparent;
  border: 0;
  border-radius: var(--editor-control-radius);
  color: #A7AAAD;
}
.editor-app #editor-shell #editor-dock button.editor-back-action:hover,
.editor-app #editor-shell #editor-dock button.editor-back-action:active {
  background: rgba(255,255,255,.05);
  color: #F3F0E8;
}
.editor-app #editor-shell #editor-dock button.editor-secondary-action,
.editor-app #text-edit-mode.editor-panel [data-more-field="curvature"] button,
.editor-app #text-edit-mode.editor-panel [data-more-field="rotation"] button {
  background: var(--editor-control-surface);
  border: 1px solid var(--editor-control-border);
  border-radius: var(--editor-control-radius);
  color: #F3F0E8;
}
.editor-app #editor-shell #editor-dock button.editor-secondary-action:hover {
  border-color: #7F8386;
}
.editor-app #text-edit-mode.editor-panel input[type="number"],
.editor-app #marker-tools [data-marker-options] input[type="number"],
.editor-app #text-edit-mode.editor-panel input[type="number"]::-webkit-inner-spin-button,
.editor-app #text-edit-mode.editor-panel input[type="number"]::-webkit-outer-spin-button,
.editor-app #marker-tools [data-marker-options] input[type="number"]::-webkit-inner-spin-button,
.editor-app #marker-tools [data-marker-options] input[type="number"]::-webkit-outer-spin-button {
  appearance: none;
  -moz-appearance: textfield;
  box-shadow: none;
}
.editor-app #text-edit-mode.editor-panel input[type="number"],
.editor-app #marker-tools [data-marker-options] input[type="number"] {
  box-sizing: border-box;
  border: 1px solid var(--editor-control-border);
  border-radius: var(--editor-control-radius);
  background: var(--editor-control-surface);
  color: #F3F0E8;
  text-align: center;
}
.editor-app #text-edit-mode.editor-panel input[type="number"]:focus-visible,
.editor-app #marker-tools [data-marker-options] input[type="number"]:focus-visible {
  border-color: #D4F54A;
  outline: none;
}
.editor-app #text-edit-mode.editor-panel .text-size-controls,
.editor-app #text-edit-mode.editor-panel .stroke-edit-row,
.editor-app #text-edit-mode.editor-panel .text-more-row,
.editor-app #marker-tools [data-marker-options] .text-size-controls {
  align-items: center;
  gap: 6px;
}

/* Text surface wraps visible content; the surrounding dock budget stays intact. */
.editor-app #text-edit-mode.editor-panel {
  bottom: auto;
  height: auto;
  min-height: 0;
  max-height: 100%;
  padding-bottom: 20px;
  overflow-y: auto;
}

/* Text tones belong to tool chrome only, never to the design layer. */
.editor-app #editor-dock {
  --editor-text-primary: #F3F0E8;
  --editor-text-secondary: #A7AAAD;
  --editor-text-muted: #7F8386;
  --editor-accent: #D4F54A;
}
.editor-app #text-edit-mode.editor-panel .text-content-field,
.editor-app #text-edit-mode.editor-panel .text-size-controls > span,
.editor-app #text-edit-mode.editor-panel .stroke-section-label,
.editor-app #text-edit-mode.editor-panel .stroke-edit-row > span,
.editor-app #text-edit-mode.editor-panel .text-more-row > span,
.editor-app #text-edit-mode.editor-panel .custom-color label {
  color: var(--editor-text-secondary);
}
.editor-app #text-edit-mode.editor-panel .text-content-field textarea {
  background: #191B1D;
  border: 1px solid #34373A;
  border-radius: 8px;
  color: var(--editor-text-primary);
  box-shadow: none;
  outline: none;
}
.editor-app #text-edit-mode.editor-panel .text-content-field textarea::placeholder {
  color: var(--editor-text-muted);
}
.editor-app #text-edit-mode.editor-panel .text-content-field textarea:focus-visible {
  border-color: var(--editor-accent);
}
.editor-app #text-edit-mode.editor-panel .text-panel-header strong,
.editor-app #text-edit-mode.editor-panel input[type="number"] {
  color: var(--editor-text-primary);
}
.editor-app #text-edit-mode.editor-panel button.editor-back-action {
  color: var(--editor-text-secondary);
}
.editor-app #text-edit-mode.editor-panel button:disabled {
  color: var(--editor-text-muted);
}
.editor-app .watermark-note,
.editor-app .watermark-note strong {
  color: #A7AAAD;
}

/* One geometric UI icon family; no effect on artwork icons. */
.editor-app .editor-chrome .editor-ui-icon,
.editor-app #editor-dock .editor-ui-icon {
  vertical-align: middle;
}
.editor-app #search.editor-search input::-webkit-search-cancel-button {
  -webkit-appearance: none;
  height: 20px;
  width: 20px;
  background: #A7AAAD;
  -webkit-mask: url("./assets/ui/close.svg") center / contain no-repeat;
  mask: url("./assets/ui/close.svg") center / contain no-repeat;
  cursor: pointer;
}
.editor-app #search.editor-search input::-webkit-search-cancel-button:hover {
  background: #F3F0E8;
}
.editor-app #text-edit-mode.editor-panel button[aria-label="自定义颜色"],
.editor-app #shell-layer-panel.editor-panel .layer-handle {
  font-size: 0 !important;
}
.editor-app #text-edit-mode.editor-panel button[aria-label="自定义颜色"]::before,
.editor-app #shell-layer-panel.editor-panel .layer-handle::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #A7AAAD;
  vertical-align: middle;
}
.editor-app #text-edit-mode.editor-panel button[aria-label="自定义颜色"]::before {
  -webkit-mask: url("./assets/ui/plus.svg") center / contain no-repeat;
  mask: url("./assets/ui/plus.svg") center / contain no-repeat;
}
.editor-app #shell-layer-panel.editor-panel .layer-handle::before {
  -webkit-mask: url("./assets/ui/grip.svg") center / contain no-repeat;
  mask: url("./assets/ui/grip.svg") center / contain no-repeat;
}
.editor-app #main-actions.editor-toolbar #undo-design:disabled .editor-undo-icon {
  opacity: .55;
}

/* Property content stays subordinate to the editing tools. */
.editor-app #text-edit-mode.editor-panel {
  --editor-text-field: #D8D5CC;
}
.editor-app #text-edit-mode.editor-panel .text-content-field textarea {
  height: 64px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--editor-text-field);
}
.editor-app #text-edit-mode.editor-panel .text-content-field textarea:focus-visible {
  border-color: rgba(212,245,74,.5);
}

/* P1-C: icon/layer surfaces wrap content inside the unchanged dock budget. */
.editor-app #icon-panel,
.editor-app #marker-tools [data-marker-options],
.editor-app #shell-layer-panel.editor-panel {
  bottom: auto;
  height: auto;
  min-height: 0;
  max-height: 100%;
  padding-bottom: 20px;
}
.editor-app #marker-tools [data-marker-options] {
  overflow-y: auto;
}
.editor-app #icon-panel [data-icon-scroll],
.editor-app #shell-layer-panel.editor-panel #layer-list {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.editor-app #icon-panel .text-panel-header,
.editor-app #shell-layer-panel.editor-panel .text-panel-header {
  flex-shrink: 0;
}
.editor-app #marker-tools [data-marker-options] .text-size-controls > span,
.editor-app #marker-tools [data-marker-options] [data-marker-confirm-all] p {
  color: var(--editor-text-secondary);
}
.editor-app #shell-layer-panel.editor-panel .layer-row {
  box-sizing: border-box;
  border-bottom: 1px solid var(--editor-control-border);
}
.editor-app #shell-layer-panel.editor-panel .layer-name {
  color: var(--editor-text-primary);
}
.editor-app #shell-layer-panel.editor-panel .layer-preview {
  color: var(--editor-text-secondary);
}
.editor-app #shell-layer-panel.editor-panel .layer-choose[aria-pressed="true"] .layer-name {
  color: var(--editor-accent);
}
.editor-app #shell-layer-panel.editor-panel .layer-row.is-drop-target {
  box-shadow: inset 0 -2px var(--editor-accent);
}

/* Icon size header and inline batch confirmation only. */
.editor-app #marker-tools [data-marker-options] [data-marker-home] {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
}
.editor-app #marker-tools [data-marker-options] [data-marker-size-open] {
  background: transparent;
  border: 0;
  color: var(--editor-text-primary);
  font-weight: 600;
}
.editor-app #marker-tools [data-marker-options] [data-marker-sizes] .text-panel-header strong {
  background: transparent;
  border: 0;
  color: var(--editor-text-primary);
  font-weight: 600;
}
.editor-app #marker-tools [data-marker-options] [data-marker-sizes] .text-panel-header button {
  justify-self: start;
  white-space: nowrap;
}
.editor-app #marker-tools [data-marker-options] [data-marker-sizes] .text-panel-header .editor-complete-action {
  justify-self: end;
}
.editor-app #marker-tools [data-marker-options] [data-marker-confirm-all] {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--editor-control-border);
  border-radius: var(--editor-control-radius);
  background: #191B1D;
}
.editor-app #marker-tools [data-marker-options] [data-marker-confirm-all] p {
  grid-column: 1 / -1;
  margin: 0;
  background: transparent;
  color: var(--editor-text-secondary);
}
.editor-app #marker-tools [data-marker-options] [data-marker-apply-cancel] {
  grid-column: 2;
}
.editor-app #editor-shell #editor-dock [data-marker-confirm-all] [data-marker-apply-confirm] {
  background: #24272A;
  border-color: rgba(212,245,74,.5);
  color: #D4F54A;
}

/* Icon home action remains distinct from the size subpanel title. */
.editor-app #marker-tools [data-marker-options] [data-marker-size-open] {
  justify-self: center;
  width: auto;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0 14px;
  background: var(--editor-control-surface);
  border: 1px solid var(--editor-control-border);
  border-radius: var(--editor-control-radius);
  color: var(--editor-text-primary);
  font-weight: 400;
  white-space: nowrap;
}
.editor-app #marker-tools [data-marker-options] [data-marker-size-open]:hover,
.editor-app #marker-tools [data-marker-options] [data-marker-size-open]:focus-visible {
  border-color: #7F8386;
}

/* Tool IA: root identity/completion, then settings body. */
.editor-app #text-edit-mode.editor-panel .editor-root-header,
.editor-app #marker-tools [data-marker-options] .editor-root-header,
.editor-app #shell-layer-panel.editor-panel .editor-root-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
}
.editor-app #text-edit-mode.editor-panel .editor-tool-context {
  color: var(--editor-text-primary);
  font-weight: 600;
}
.editor-app #text-edit-mode.editor-panel .editor-settings-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}
.editor-app #text-edit-mode.editor-panel .editor-settings-grid [data-text-entry="more"] {
  grid-column: 1 / -1;
}
.editor-app #text-edit-mode.editor-panel button.editor-setting-entry,
.editor-app #marker-tools [data-marker-options] button.editor-setting-entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  box-sizing: border-box;
  min-width: 0;
  min-height: 44px;
  width: 100%;
  padding: 0 14px;
  background: var(--editor-control-surface);
  border: 1px solid var(--editor-control-border);
  border-radius: var(--editor-control-radius);
  color: var(--editor-text-primary);
  font-weight: 400;
}
.editor-app #text-edit-mode.editor-panel .editor-setting-chevron,
.editor-app #marker-tools [data-marker-options] .editor-setting-chevron {
  flex: none;
}
.editor-app #text-edit-mode.editor-panel button.editor-setting-entry:focus-visible,
.editor-app #marker-tools [data-marker-options] button.editor-setting-entry:focus-visible {
  outline: 1px solid var(--editor-accent);
  outline-offset: -1px;
}

/* Swap status copy inside the existing map hint row without changing its geometry. */
.editor-app .watermark-note [data-marker-message] {
  color: #F3F0E8;
}
.editor-app .watermark-note [data-marker-message]::before {
  content: ""; display: inline-block; width: 6px; height: 6px;
  margin-right: 8px; vertical-align: middle;
  border-radius: 50%; background: #D4F54A;
}

/* Short text root contributes its real content height; subpanels retain the dock cap. */
.editor-app #text-edit-mode.editor-panel:has(> [data-text-home]:not([hidden])) {
  position: relative;
  max-height: none;
  overflow: visible;
}
.editor-app #editor-dock:has(#text-edit-mode:not([hidden]) > [data-text-home]:not([hidden])) {
  min-height: min-content;
  overflow: visible;
}
.editor-app #editor-shell:has(#text-edit-mode:not([hidden]) > [data-text-home]:not([hidden])) {
  overflow-y: auto;
}
.editor-app #editor-dock:has(#text-edit-mode:not([hidden]) > [data-text-home]:not([hidden])) #main-actions {
  display: none;
}

/* Preview chrome only: the live artwork and its raster preview are untouched. */
.editor-app #work-preview.editor-preview-ui {
  color: #F3F0E8;
  padding: 16px 4px 0;
  text-align: left;
}
.editor-app #work-preview.editor-preview-ui .preview-choice-title {
  color: #F3F0E8;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
  margin: 24px 0 12px;
}
.editor-app #work-preview.editor-preview-ui .preview-action-group {
  background: #191B1D;
  border: 1px solid #34373A;
  border-radius: 10px;
  overflow: hidden;
}
.editor-app #work-preview.editor-preview-ui .preview-version {
  box-sizing: border-box;
  display: flex;
  width: 100%;
  min-height: 76px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: #F3F0E8;
  padding: 14px 16px;
  margin: 0;
  gap: 12px;
  text-align: left;
}
.editor-app #work-preview.editor-preview-ui .preview-version + .preview-version {
  border-top: 1px solid #34373A;
}
.editor-app #work-preview.editor-preview-ui .preview-option-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 4px;
}
.editor-app #work-preview.editor-preview-ui .preview-option-copy strong {
  color: #F3F0E8;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
.editor-app #work-preview.editor-preview-ui .preview-option-description {
  color: #A7AAAD;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.editor-app #work-preview.editor-preview-ui .preview-option-chevron {
  flex: 0 0 auto;
  color: #7F8386;
  font-size: 24px;
  line-height: 1;
}
.editor-app #work-preview.editor-preview-ui .preview-version:focus-visible {
  border-color: #D4F54A;
  outline: 2px solid #D4F54A;
  outline-offset: -3px;
}
.editor-app #work-preview.editor-preview-ui .preview-version:active:not(:disabled) {
  background: #24272A;
  border-color: #A7AAAD;
}
@media (hover: hover) {
  .editor-app #work-preview.editor-preview-ui .preview-version:hover:not(:disabled) {
    background: #24272A;
  }
}
.editor-app #work-preview.editor-preview-ui .preview-version:disabled {
  cursor: wait;
  opacity: .7;
}
.editor-app .editor-chrome #preview-continue {
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  color: #A7AAAD;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.editor-app .editor-chrome #preview-continue:active {
  background: #24272A;
}
.editor-app .editor-chrome #preview-continue:focus-visible {
  outline: 1px solid #A7AAAD;
  outline-offset: -2px;
}
/* Preview footer follows content; editor geometry and footer stay unchanged. */
.editor-app:has(#editor-shell[data-preview="true"]) {
  overflow-y: auto;
}
.editor-app #editor-shell[data-preview="true"] {
  max-height: none;
}
.editor-app:has(#editor-shell[data-preview="true"]) #icp-footer {
  position: static;
  width: 100%;
  height: auto;
  margin-top: 36px;
}

/* Explicit Native UI context only; no authentication or artwork state. */
html[data-ui-host="miniprogram"] .editor-app #editor-shell:not([data-preview="true"]) {
  grid-template-rows: 0px 44px var(--shell-poster) var(--shell-note) var(--shell-operation, var(--shell-dock)) var(--shell-status, 20px);
}
html[data-ui-host="miniprogram"] .editor-app #editor-shell:not([data-preview="true"]) > .brand-row {
  display: none;
}
html[data-ui-host="miniprogram"] .editor-app #editor-shell[data-preview="true"] > .brand-row > #editor-back,
html[data-ui-host="miniprogram"] .editor-app #editor-shell[data-preview="true"] > .brand-row > strong,
html[data-ui-host="miniprogram"] .editor-app #editor-shell[data-preview="true"] > .brand-row > .capsule-safe-space {
  display: none;
}

/* Preview owns brand confirmation; both acquisition paths remain peer actions. */
.editor-app #work-preview.editor-preview-ui .preview-artwork-status { margin: 0 0 8px; color: #A7AAAD; font-size: 12px; line-height: 1.5; }
.editor-app #work-preview.editor-preview-ui .preview-brand-statement { margin: 0 0 8px; color: #F3F0E8; font-size: 21px; font-weight: 600; line-height: 1.4; }
.editor-app #work-preview.editor-preview-ui .preview-brand-support { margin: 0; color: #A7AAAD; font-size: 14px; line-height: 1.6; }
.editor-app #work-preview.editor-preview-ui .preview-option-action { margin-top: 8px; color: #F3F0E8; font-size: 13px; line-height: 1.5; }
.editor-app #work-preview.editor-preview-ui .preview-option-chevron { display: block; width: 20px; height: 20px; opacity: .7; }

/* Sparse Preview-only brand signals; artwork and peer row surfaces remain unchanged. */
.editor-app #work-preview.editor-preview-ui .preview-artwork-status,
.editor-app #work-preview.editor-preview-ui .preview-choice-title { display: flex; align-items: center; gap: 9px; }
.editor-app #work-preview.editor-preview-ui .preview-artwork-status::before,
.editor-app #work-preview.editor-preview-ui .preview-choice-title::before { content: ""; flex: 0 0 3px; width: 3px; border-radius: 2px; background: #D4F54A; }
.editor-app #work-preview.editor-preview-ui .preview-artwork-status::before { height: 20px; }
.editor-app #work-preview.editor-preview-ui .preview-choice-title::before { height: 24px; }
.editor-app #work-preview.editor-preview-ui .preview-action-group { position: relative; }
.editor-app #work-preview.editor-preview-ui .preview-option-chevron { background: #D4F54A; opacity: 1; -webkit-mask: url('./assets/ui/chevron-right.svg') center / contain no-repeat; mask: url('./assets/ui/chevron-right.svg') center / contain no-repeat; }

/* One inset rail for the whole group; overlay preserves row and artwork geometry. */
.editor-app #work-preview.editor-preview-ui .preview-action-group::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: #D4F54A; pointer-events: none; z-index: 1; }
