.setting-page-container:has(> ._admin-backoffice-container #abo-view-theme:not(.dis-none)),
._admin-backoffice-container:has(#abo-view-theme:not(.dis-none)),
.admin-backoffice-container:has(#abo-view-theme:not(.dis-none)) > .abo-layout {
  height: 100%;
  min-height: 0;
}
.admin-backoffice-container:has(#abo-view-theme:not(.dis-none)) .abo-main {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}
.admin-backoffice-container:has(#abo-view-theme:not(.dis-none)) .abo-mobile-nav { flex: none; }
.admin-backoffice-container:has(#abo-view-theme:not(.dis-none)) .abo-content-padding {
  flex: 1;
  min-height: 0;
  padding-bottom: 0;
}
.pos-theme-page { display: flex; flex-direction: column; height: 100%; max-width: 1440px; min-height: 0; margin: 0 auto; }
.pos-theme-page > :not(form) { flex: none; }
.pos-theme-heading, .pos-theme-panel-title { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.pos-theme-heading { margin-bottom: 18px; }
.pos-theme-heading .abo-page-desc { margin-bottom: 0; }
.pos-theme-store { display: inline-flex; align-items: center; gap: 8px; max-width: 40%; color: var(--pos-muted); font-size: 12px; }
.pos-theme-store span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pos-theme-controls { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; margin: 0; padding: 0; border: 0; }
.pos-theme-grid { display: grid; flex: 1; min-height: 0; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); align-items: start; align-content: start; gap: 20px; padding: 3px 6px 20px 3px; overflow-y: auto; scrollbar-gutter: stable; overscroll-behavior: contain; }
.pos-theme-settings { display: grid; gap: 16px; min-width: 0; }
.pos-theme-panel { padding: 20px; border: 1px solid var(--pos-border); border-radius: 10px; background: var(--pos-surface); }
.pos-theme-panel h2 { margin: 0; color: var(--pos-text); font-size: 15px; font-weight: 600; }
.pos-theme-panel-title p { margin: 6px 0 0; color: var(--pos-muted); font-size: 12px; line-height: 1.6; }
.pos-theme-scope { display: inline-flex; align-items: center; gap: 6px; flex: none; padding: 5px 8px; border: 1px solid var(--pos-border); border-radius: 5px; color: var(--pos-muted); background: var(--pos-canvas); font-size: 10px; white-space: nowrap; }
.pos-theme-preview-column { position: sticky; top: 0; min-width: 0; }
.pos-theme-preview-caption { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 12px; color: var(--pos-muted); font-size: 11px; }
.pos-theme-preview-caption span:first-child { display: inline-flex; align-items: center; gap: 7px; color: var(--pos-text); font-size: 12px; font-weight: 500; }
.pos-theme-actions { display: flex; flex: none; align-items: center; flex-wrap: wrap; gap: 10px; padding: 12px 0; border-top: 1px solid var(--pos-border); background: var(--pos-canvas); }
.pos-theme-secondary, .pos-theme-save { height: auto; min-height: 36px; padding: 8px 14px; border: 1px solid var(--pos-border); border-radius: 6px; background: var(--pos-surface); color: var(--pos-text); font: inherit; font-size: 12px; cursor: pointer; }
.pos-theme-page .pos-theme-save { border-color: var(--pos-primary-fill); background: var(--pos-primary-fill); color: var(--pos-primary-fill-ink); font-weight: 600; }
.pos-theme-page .pos-theme-save:hover:not(:disabled) { border-color: var(--pos-primary-fill-hover); background: var(--pos-primary-fill-hover); }
.pos-theme-save:disabled, .pos-theme-secondary:disabled { opacity: .5; cursor: not-allowed; }
.pos-theme-save-note { flex: 1; color: var(--pos-muted); font-size: 11px; text-align: right; margin-right: 10px; }
.pos-theme-message:empty { display: none; }
.pos-theme-message { margin-bottom: 18px; padding: 12px 14px; border: 1px solid var(--pos-border); border-radius: 6px; background: var(--pos-surface); color: var(--pos-text); font-size: 12px; line-height: 1.6; }
.pos-theme-message[data-error=true] { border-color: #DC2626; }
.pos-theme-retry { align-self: flex-start; margin-bottom: 12px; }
.pos-theme-page :is(button, input, select):focus-visible, .pos-theme-page label:has(input:focus-visible) { outline: 2px solid var(--pos-primary); outline-offset: 3px; }
@media (max-width: 1250px) {
  .pos-theme-grid { grid-template-columns: minmax(0, 1fr); }
  .pos-theme-preview-column { position: static; }
  .pos-theme-preview-caption { max-width: 380px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 1100px) {
  .pos-theme-panel { padding: 18px; }
  .pos-theme-panel-title { align-items: flex-start; flex-wrap: wrap; gap: 12px; }
}
@media (max-width: 850px) {
  .pos-theme-actions { gap: 8px; }
  .pos-theme-save-note { order: 4; flex-basis: 100%; text-align: left; margin-top: 6px; }
}
@media (max-width: 450px) {
  .pos-theme-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .pos-theme-store { max-width: 100%; }
  .pos-theme-panel { padding: 16px; }
}

/* Theme page: settings on the left, a live Book preview on the right. */
#abo-view-theme { max-width: none; }
#abo-view-theme > .pt-shell { flex: 1; }
.pos-theme-page [hidden] { display: none !important; }
.pos-theme-page .pt-shell :where(button) { position: relative; z-index: auto; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: auto; margin: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pos-theme-page .pt-shell button::before { content: none; }
.pos-theme-page .pt-shell button:active > * { animation: none; }
.pt-shell { display: flex; flex-direction: column; width: 100%; max-width: 1560px; min-height: 0; margin-inline: auto; overflow: hidden;  color: var(--pos-text);}
.pt-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-gutter: stable; container: pt-body / inline-size; }
.pt-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; grid-column: 1 / -1; padding: 2px 4px 0; }
.pt-message { grid-column: 1 / -1; }
.pt-head .abo-breadcrumb { color: var(--pos-muted); }
.pt-head .abo-breadcrumb .active { color: var(--pos-text); }
.pt-title { margin: 2px 0 0; color: var(--pos-text); font-size: 24px; font-weight: 600; line-height: 1.3; }
.pt-lead { margin-top: 6px; color: var(--pos-muted); font-size: 13px; line-height: 1.6; }
.pt-device { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--pos-surface2); color: var(--pos-muted); font-size: 11px; font-weight: 500; }
.pt-message { padding: 10px 12px; border-radius: 10px; background: var(--pos-primary-soft); color: var(--pos-primary-text); font-size: 12px; line-height: 1.5; }
.pt-message:empty { display: none; }
.pt-message[data-error=true] { background: color-mix(in srgb, #DC2626 10%, var(--pos-surface)); color: #B91C1C; }
[data-pos-appearance=dark] .pt-message[data-error=true] { color: #FCA5A5; }
.pt-steps { display: grid; grid-template-columns: minmax(340px, 440px) minmax(0, 1fr); grid-template-rows: auto auto 40px auto; align-items: start; gap: 20px 28px; min-width: 0; margin: 0; padding: 24px; border: 0; }
.pt-col { display: contents; }
.pt-config-tabs { display: grid; grid-column: 1; grid-row: 3; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 999px; background: var(--pos-surface2); }
.pos-theme-page .pt-config-tabs button { height: 34px; padding: 0 8px; border-radius: 999px; color: var(--pos-muted); font-size: 12px; font-weight: 500; transition: background-color .15s ease, color .15s ease; }
.pos-theme-page .pt-config-tabs button:hover { color: var(--pos-text); }
.pos-theme-page .pt-config-tabs button[aria-selected=true] { background: var(--pos-surface); color: var(--pos-text); font-weight: 600; box-shadow: 0 1px 3px rgb(16 24 40 / 14%); }
.pt-config-panel { grid-column: 1; grid-row: 4; min-width: 0; }
.pt-col-main.pt-config-panel { display: flex; flex-direction: column; gap: 16px; }
.pt-status-heading { display: flex; align-items: flex-start; gap: 12px; }
.pt-step-mode { grid-column: 1; grid-row: 3; }
.pt-step-color { grid-column: 1; grid-row: 4; }
.pt-step-background { grid-column: 1; grid-row: 4; }
.pt-step-status { grid-column: 1; grid-row: 4; }
.pt-col-side > .pt-stage { grid-column: 2; grid-row: 3 / 5; position: sticky; top: 24px; }
#abo-view-theme .pt-stage .pt-app { height: clamp(380px, calc(100dvh - 420px), 620px); }
.pt-step { padding: 18px; border: 1px solid var(--pos-border); border-radius: 14px; background: var(--pos-surface); }
.pt-step-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pt-step-no { display: inline-grid; flex: none; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--pos-surface2); color: var(--pos-text); font-size: 12px; font-weight: 600; }
.pt-step h2 { margin: 2px 0 0; color: var(--pos-text); font-size: 15px; font-weight: 600; }
.pt-step-head p { margin-top: 4px; color: var(--pos-muted); font-size: 12px; line-height: 1.55; }

.pt-modes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 8px 6px 2px; }
.pt-mode { --mode-accent: var(--pos-primary-fill); position: relative; display: flex; flex-direction: column; align-items: center; gap: 22px; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; cursor: pointer; }
.pt-mode:hover .pt-mode-art { outline-color: color-mix(in srgb, var(--mode-accent) 45%, transparent); }
.pt-mode:has(input:checked) .pt-mode-art { outline-color: var(--mode-accent); }
.pos-theme-page :is(.pt-mode, .pt-segmented label, .pt-drop) input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pt-mode-art { position: relative; width: 100%; max-width: 170px; aspect-ratio: 1.48; border-radius: 12px; outline: 2px solid transparent; outline-offset: 4px; transition: outline-color .15s ease; }
.pt-mode-art-light { background: #EEF1EF; --art-surface: #FFFFFF; --art-accent: var(--pos-primary); }
.pt-mode-art-dark { background: #161A1D; --art-surface: #2A3036; --art-accent: var(--pos-primary); }
.pt-mode-art > i { position: absolute; display: block; border-radius: 4px; background: var(--art-surface); }
.pt-mode-art > i:first-child { left: 13%; top: 17%; width: 74%; height: 14%; }
.pt-mode-art > i:first-child::after { content: ""; position: absolute; left: 8%; top: 35%; width: 23%; height: 30%; border-radius: 2px; background: var(--art-accent); }
.pt-mode-art > i:nth-child(2) { left: 13%; top: 39%; width: 45%; height: 44%; }
.pt-mode-art > i:last-child { right: 13%; top: 39%; width: 23%; height: 44%; background: color-mix(in srgb, var(--art-accent) 16%, var(--art-surface)); }
.pt-mode-name { display: flex; align-items: center; justify-content: center; gap: 7px; color: var(--pos-text); font-size: 14px; font-weight: 500; }
.pt-mode-name::before { content: ""; flex: none; width: 18px; height: 18px; box-sizing: border-box; border: 2px solid color-mix(in srgb, var(--pos-muted) 60%, transparent); border-radius: 50%; }
.pt-mode:has(input:checked) .pt-mode-name::before { border-color: var(--mode-accent); background: radial-gradient(circle, var(--mode-accent) 0 4px, transparent 4.5px); }

.pt-presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.pos-theme-page .pt-preset { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-width: 0; padding: 10px; border: 1px solid var(--pos-border); border-radius: 14px; background: var(--pos-surface); color: var(--pos-text); text-align: left; transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease; }
.pos-theme-page .pt-preset:hover:not([aria-pressed=true]) { border-color: color-mix(in srgb, var(--pos-text) 28%, var(--pos-border)); }
.pos-theme-page .pt-preset[aria-pressed=true] { border-color: var(--pos-primary-fill); box-shadow: 0 0 0 1px var(--pos-primary-fill); }
.pt-preset-art { position: relative; flex: none; width: 42px; height: 42px; }
.pt-preset-primary { position: absolute; inset: 0 8px 8px 0; border-radius: 50%; background: var(--preset-primary); }
.pt-preset-accent { position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--preset-accent); box-shadow: 0 0 0 2.5px var(--pos-surface); }
.pt-preset-copy { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pt-preset-name { font-size: 13px; font-weight: 600; }
.pt-preset-desc { display: -webkit-box; overflow: hidden; color: var(--pos-muted); font-size: 11px; line-height: 1.4; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
.pos-theme-page :is(.pt-preset-check, .pt-swatch-check) { display: grid; flex: none; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--pos-primary-fill); color: var(--pos-primary-fill-ink); opacity: 0; transform: scale(.6); transition: opacity .15s ease, transform .15s ease; }
.pos-theme-page :is(.pt-preset-check, .pt-swatch-check) svg { width: 13px; height: 13px; }
.pos-theme-page [aria-pressed=true] :is(.pt-preset-check, .pt-swatch-check) { opacity: 1; transform: none; }

.pt-segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; padding: 3px; border-radius: 999px; background: var(--pos-surface2); }
.pt-segmented label { position: relative; display: grid; place-items: center; height: 34px; margin: 0; border-radius: 999px; color: var(--pos-muted); font-size: 12px; font-weight: 500; cursor: pointer; transition: background-color .15s ease, color .15s ease; }
.pt-segmented label:hover { color: var(--pos-text); }
.pt-segmented label:has(input:checked) { background: var(--pos-surface); color: var(--pos-text); font-weight: 600; box-shadow: 0 1px 3px rgb(16 24 40 / 14%); }
.pt-swatches { display: grid; grid-template-columns: repeat(5, minmax(0, 64px)); gap: 12px; margin-top: 16px; }
.pos-theme-page .pt-swatch { flex-direction: column; gap: 6px; min-width: 0; color: var(--pos-muted); font-size: 11px; }
.pt-swatch-fill { display: grid; place-items: center; width: 100%; max-width: 60px; aspect-ratio: 1; border: 1px solid var(--pos-border); border-radius: 14px; transition: box-shadow .15s ease; }
.pt-swatch:hover .pt-swatch-fill { box-shadow: 0 0 0 2px var(--pos-surface), 0 0 0 3px var(--pos-border); }
.pt-swatch[aria-pressed=true] .pt-swatch-fill { border-color: transparent; box-shadow: 0 0 0 2px var(--pos-surface), 0 0 0 4px var(--pos-primary-fill); }
.pt-swatch-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-swatch[aria-pressed=true] .pt-swatch-name { color: var(--pos-text); font-weight: 600; }
.pt-image { display: grid; justify-items: start; gap: 8px; margin-top: 16px; }
.pt-drop { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; margin: 0; padding: 14px; border: 1.5px dashed var(--pos-border); border-radius: 14px; background: var(--pos-surface2); cursor: pointer; transition: border-color .15s ease; }
.pt-drop:hover { border-color: var(--pos-primary-fill); }
.pt-drop img { flex: none; width: 72px; height: 52px; border-radius: 8px; object-fit: cover; }
.pt-drop-icon { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--pos-surface); color: var(--pos-primary-text); font-size: 18px; }
.pt-drop.has-image .pt-drop-icon { display: none; }
.pt-drop-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pt-drop-copy strong { overflow-wrap: anywhere; color: var(--pos-text); font-size: 13px; font-weight: 600; }
.pt-drop-copy small { color: var(--pos-muted); font-size: 11px; line-height: 1.5; }
.pt-caption { margin-top: 12px; color: var(--pos-muted); font-size: 12px; line-height: 1.5; }
.pt-bg-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px 24px; }
.pt-bg-row .pt-segmented { flex: 0 1 320px; }
.pt-bg-choices { flex: 1 1 300px; min-width: 0; }
.pt-bg-choices :is(.pt-swatches, .pt-image) { margin-top: 0; }
.pt-bg-choices .pt-caption { margin-top: 10px; }
.pt-step-background.pt-config-panel { padding: 20px 4px; border: 0; border-radius: 0; background: transparent; }
.pt-step-background .pt-step-head { margin-bottom: 18px; }
.pt-step-background .pt-step-head h2 { font-size: 14px; }
.pt-step-background .pt-bg-row { display: grid; gap: 20px; }
.pt-step-background .pt-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.pt-step-background .pt-swatch { align-items: stretch; gap: 8px; text-align: left; }
.pt-step-background .pt-swatch-fill { position: relative; width: 100%; max-width: none; aspect-ratio: 2; border-radius: 8px; }
.pt-step-background .pt-swatch-name { padding: 0 2px; font-size: 12px; }
.pt-step-background .pt-swatch-check { position: absolute; right: 8px; bottom: 8px; }
.pt-background-treatment { display: grid; gap: 7px; margin-bottom: 16px; }
.pt-background-treatment[hidden] { display: none; }
.pt-background-control-label { color: var(--pos-text); font-size: 12px; font-weight: 600; }
.pt-background-fill { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pt-gradient-types { display: grid; grid-template-columns: repeat(auto-fit, minmax(76px, 1fr)); gap: 10px; }
.pt-gradient-choice { position: relative; display: grid; gap: 6px; min-width: 0; margin: 0; color: var(--pos-muted); text-align: center; font-size: 11px; cursor: pointer; }
.pt-gradient-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pt-gradient-art { display: block; height: 54px; border: 1px solid var(--pos-border); border-radius: 6px; }
.pt-gradient-choice:has(input:checked) { color: var(--pos-text); font-weight: 600; }
.pt-gradient-choice:has(input:checked) .pt-gradient-art { outline: 2px solid var(--pos-primary-fill); outline-offset: 2px; }
.pt-step-background .pt-background-colors { grid-template-columns: repeat(auto-fit, minmax(60px, 1fr)); gap: 14px 10px; margin-bottom: 24px; }
.pt-background-colors .pt-swatch-fill { aspect-ratio: 1.25; }
.pt-background-colors .pt-swatch-name { min-width: 0; min-height: 28px; font-size: 10px; line-height: 14px; white-space: normal; overflow-wrap: anywhere; }
.pt-background-colors .pt-swatch-check { right: 4px; bottom: 4px; width: 16px; height: 16px; }
.pt-background-window { display: grid; grid-template-columns: 22% 1fr; grid-template-rows: 7px 1fr; gap: 4px; width: 60%; height: 57%; padding: 6px; border: 1px solid color-mix(in srgb, var(--pos-border) 70%, transparent); border-radius: 4px; background: color-mix(in srgb, var(--pos-surface) 85%, transparent); box-shadow: 0 2px 5px rgb(16 24 40 / 5%); }
.pt-background-window i { border-radius: 2px; background: var(--pos-surface2); }
.pt-background-window i:first-child { grid-row: 1 / -1; }
.pt-background-window i:last-child { background: var(--pos-surface); }
.pt-bg-default { display: grid; place-items: center; aspect-ratio: 2.6; border: 1px solid var(--pos-border); border-radius: 8px; background: var(--pos-canvas); }
.pt-bg-default .pt-background-window { width: 52%; height: 62%; }
.pt-step-background .pt-image { gap: 12px; }
.pt-step-background .pt-drop { min-height: 136px; border-radius: 8px; background: var(--pos-surface); }
.pt-background-heading { display: flex; align-items: center; gap: 10px; min-height: 36px; margin-bottom: 18px; }
.pt-background-heading h2 { flex: 1; margin: 0; font-size: 15px; font-weight: 600; }
.pos-theme-page .pt-background-back { flex: none; width: 32px; height: 32px; border-radius: 50%; color: var(--pos-muted); }
.pos-theme-page .pt-background-back:hover { color: var(--pos-text); background: var(--pos-surface2); }
.pt-background-categories, .pt-background-custom, .pt-photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pos-theme-page .pt-background-category { display: flex; flex-direction: column; align-items: stretch; gap: 9px; min-width: 0; color: var(--pos-text); font-size: 13px; }
.pt-background-category strong { font-weight: 500; text-align: center; }
.pt-photo-mosaic, .pt-color-mosaic { display: grid; aspect-ratio: 1.65; overflow: hidden; border: 1px solid var(--pos-border); border-radius: 8px; }
.pt-photo-mosaic { grid-template-columns: 60% 40%; grid-template-rows: 1fr 1fr; gap: 2px; background: var(--pos-surface2); }
.pt-photo-mosaic img { display: block; width: 100%; height: 100%; min-height: 0; object-fit: cover; }
.pt-photo-mosaic img:first-child { grid-row: 1 / -1; }
.pt-color-mosaic { grid-template-columns: 1fr 1fr; gap: 8px; padding: 12px; background: var(--pos-surface2); }
.pt-color-mosaic i { display: block; border-radius: 4px; border: 1px solid var(--pos-border); }
.pt-color-mosaic i:nth-child(1) { background: linear-gradient(135deg, #FBF1E8, #F7EAF0); }
.pt-color-mosaic i:nth-child(2) { background: linear-gradient(135deg, #EDF4FA, #F0EDF9); }
.pt-color-mosaic i:nth-child(3) { background: #EDF5EF; }
.pt-color-mosaic i:nth-child(4) { background: #F3EEF8; }
.pt-background-section-title { display: flex; align-items: center; margin: 22px 0 12px; }
.pt-background-section-title h3 { margin: 0; color: var(--pos-text); font-size: 13px; font-weight: 600; }
.pt-background-section-title:first-child { margin-top: 0; }
.pt-background-add { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; min-width: 0; aspect-ratio: 1.65; margin: 0; border: 1px dashed var(--pos-border); border-radius: 8px; background: var(--pos-surface2); color: var(--pos-muted); cursor: pointer; font-size: 12px; }
.pt-background-add > i { font-size: 24px; }
.pos-theme-page .pt-background-add input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pt-background-add:hover, .pt-background-category:hover .pt-photo-mosaic, .pt-background-category:hover .pt-color-mosaic { border-color: var(--pos-primary); }
.pos-theme-page .pt-background-custom .pt-bg-default { display: flex; flex-direction: column; gap: 8px; width: 100%; aspect-ratio: 1.65; border: 1px solid var(--pos-border); border-radius: 8px; background: var(--pos-canvas); color: var(--pos-muted); font-size: 12px; }
.pt-background-custom .pt-bg-default[aria-pressed=true] { outline: 2px solid var(--pos-primary-fill); outline-offset: -2px; color: var(--pos-primary-text); }
.pt-background-custom .pt-bg-default .pt-background-window { width: 60%; height: 45%; }
.pt-background-image-actions { display: flex; justify-content: space-between; width: 100%; }
.pt-photo-search { display: flex; align-items: center; gap: 9px; margin-bottom: 16px; padding: 0 12px; border: 1px solid var(--pos-border); border-radius: 8px; background: var(--pos-surface); color: var(--pos-muted); }
.pos-theme-page .pt-photo-search input { width: 100%; min-width: 0; height: 40px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--pos-text); font: inherit; font-size: 13px; }
.pt-photo-search:focus-within { outline: 2px solid var(--pos-primary); outline-offset: 2px; }
.pos-theme-page .pt-photo-search input:focus-visible { outline: none; }
.pos-theme-page .pt-photo-choice { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; text-align: left; color: var(--pos-muted); font-size: 12px; }
.pt-photo-art { position: relative; display: block; width: 100%; aspect-ratio: 1.65; border: 1px solid var(--pos-border); border-radius: 8px; background: var(--pos-surface2); }
.pt-photo-art img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 7px; object-fit: cover; }
.pt-photo-choice[aria-pressed=true] .pt-photo-art { outline: 2px solid var(--pos-primary-fill); outline-offset: 2px; }
.pt-photo-choice:disabled { cursor: progress; opacity: .65; }
.pt-photo-choice:hover:not(:disabled) .pt-photo-art { border-color: var(--pos-primary); }
.pt-photo-empty { padding: 28px 0; text-align: center; color: var(--pos-muted); font-size: 13px; }
.pt-photo-grid { align-items: start; }
.pt-photo-result { min-width: 0; }
.pt-photo-result .pt-photo-choice { width: 100%; }
.pt-photo-name { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.5; }
.pt-photo-source { display: inline-block; margin-top: 3px; color: var(--pos-muted); font-size: 10px; text-decoration: underline; }
.pt-photo-search-status { margin: 16px 0 10px; color: var(--pos-muted); font-size: 12px; line-height: 1.5; }
.pos-theme-page .pt-photo-more { width: 100%; min-height: 38px; padding: 8px 12px; border: 1px solid var(--pos-border); border-radius: 8px; background: var(--pos-surface); color: var(--pos-text); font-size: 12px; font-weight: 500; }
.pos-theme-page .pt-photo-more:hover:not(:disabled) { background: var(--pos-surface2); }
.pos-theme-page .pt-photo-more:disabled { opacity: .6; cursor: progress; }
.pt-photo-credit { margin: 18px 0 0; color: var(--pos-muted); font-size: 11px; }
.pt-photo-credit a { color: var(--pos-primary-text); text-decoration: underline; }
.pt-step-background .pt-solid-swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pt-solid-swatches .pt-swatch-fill { aspect-ratio: 1; }
.pt-solid-swatches .pt-swatch-name { font-size: 10px; text-align: center; }
.pt-step-background .pt-background-solids-title { padding-top: 18px; border-top: 1px solid var(--pos-border); }
.pt-step-background > .pt-caption { margin-top: 18px; }
.pt-step-background .pt-image { margin-top: 16px; }
.pos-theme-page .pt-link { padding: 4px 0; color: var(--pos-primary-text); font-size: 12px; font-weight: 600; }
.pos-theme-page .pt-link:hover:not(:disabled) { text-decoration: underline; }
.pos-theme-page .pt-link:disabled { color: var(--pos-muted); opacity: .55; cursor: default; }

.pt-advanced summary { display: flex; align-items: flex-start; gap: 12px; list-style: none; cursor: pointer; }
.pt-advanced summary::-webkit-details-marker { display: none; }
.pt-advanced-copy { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; }
.pt-advanced-title { display: flex; align-items: center; gap: 8px; margin-top: 2px; color: var(--pos-text); font-size: 15px; font-weight: 600; }
.pt-optional { padding: 2px 8px; border-radius: 999px; background: var(--pos-surface2); color: var(--pos-muted); font-size: 10px; font-weight: 500; }
.pt-advanced-desc { color: var(--pos-muted); font-size: 12px; line-height: 1.55; }
.pt-dots { display: grid; flex: none; grid-template-columns: repeat(6, 8px); gap: 4px; margin-top: 6px; }
.pt-dots i { width: 8px; height: 8px; border-radius: 50%; }
.pt-advanced[open] .pt-dots { display: none; }
.pt-chevron { flex: none; margin-top: 6px; color: var(--pos-muted); font-size: 12px; transition: transform .2s ease; }
.pt-advanced[open] .pt-chevron { transform: rotate(180deg); }
.pt-advanced-body { margin-top: 14px; }
.pt-advanced-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.pt-advanced-tools p { color: var(--pos-muted); font-size: 12px; }
.pt-statuses { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); column-gap: 28px; }
.pt-status { display: grid; grid-template-columns: minmax(0, 1fr) 128px; align-items: center; gap: 8px 12px; padding: 7px 0; }
.pt-status:last-child { border-bottom: 0; }
.pt-status-label { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; color: var(--pos-text); font-size: 12px; }
.pt-status-dot { flex: none; width: 20px; height: 20px; border-radius: 5px; background: var(--status-swatch); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 8%); }
.pos-theme-page .pt-status-picker { display: flex; justify-content: flex-start; gap: 8px; width: 100%; min-width: 0; min-height: 40px; padding: 6px 8px; border: 1px solid var(--pos-border); border-radius: 8px; background: var(--pos-surface); font-size: 12px; }
.pt-status-picker [data-status-name] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-status-picker i { margin-left: auto; font-size: 10px; color: var(--pos-muted); }
.pos-theme-page .pt-status-picker:hover, .pos-theme-page .pt-status-picker[aria-expanded=true] { border-color: var(--pos-primary); }
.pt-status-palette { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(32px, 1fr)); gap: 4px; padding: 8px 0 12px; border-bottom: 1px solid var(--pos-border); }
.pt-status-choice { position: relative; display: grid; place-items: center; height: 36px; min-width: 0; margin: 0; cursor: pointer; }
.pt-status-choice input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: inherit; }
.pt-status-color { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 6px; background: var(--choice-color); color: var(--choice-ink, #fff); box-shadow: inset 0 0 0 1px rgb(0 0 0 / 10%); pointer-events: none; }
.pt-status-color svg { width: 16px; height: 16px; visibility: hidden; }
.pt-status-choice input:checked + .pt-status-color { outline: 2px solid var(--choice-color); outline-offset: 3px; }
.pt-status-choice input:checked + .pt-status-color svg { visibility: visible; }
.pt-status-choice input:focus-visible + .pt-status-color { outline: 2px solid var(--pos-text); outline-offset: 3px; }
.pt-status-choice:has(input:disabled) { cursor: not-allowed; }
.pt-status-choice input:disabled + .pt-status-color { opacity: 0.3; }
.pt-status-choice input:disabled + .pt-status-color::after { content: ""; position: absolute; width: 1px; height: 30px; background: var(--pos-text); transform: rotate(45deg); }
.pt-status-error { grid-column: 1 / -1; color: #DC2626; font-size: 11px; line-height: 1.5; }
.pt-status-error:empty { display: none; }
[data-pos-appearance=dark] .pt-status-error { color: #FCA5A5; }

.pt-actions { display: flex; flex: none; align-items: center; gap: 10px; padding: 12px 24px; border-top: 1px solid var(--pos-border); }
.pt-save-note { flex: 1; margin-right: 6px; color: var(--pos-muted); font-size: 11px; text-align: right; }
.pos-theme-page .pt-btn { min-height: 40px; padding: 0 18px; border: 1px solid var(--pos-border); border-radius: 999px; background: var(--pos-surface); color: var(--pos-text); font-size: 13px; font-weight: 600; transition: background-color .15s ease, border-color .15s ease; }
.pos-theme-page .pt-btn:hover:not(:disabled) { background: var(--pos-surface2); }
.pos-theme-page .pt-btn-primary { min-width: 96px; border-color: var(--pos-primary-fill); background: var(--pos-primary-fill); color: var(--pos-primary-fill-ink); }
.pos-theme-page .pt-btn-primary:hover:not(:disabled) { border-color: var(--pos-primary-fill-hover); background: var(--pos-primary-fill-hover); }
.pos-theme-page .pt-btn:disabled { opacity: .45; cursor: not-allowed; }
.pos-theme-page :is(.pt-shell button, .pt-shell select, .pt-advanced summary):focus-visible,
.pos-theme-page .pt-shell label:has(input:focus-visible) { outline: 2px solid var(--pos-primary-fill); outline-offset: 2px; }

.pt-stage { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--pos-border); border-radius: 14px; background: radial-gradient(color-mix(in srgb, var(--pos-text) 10%, transparent) 1px, transparent 1.5px) 0 0 / 18px 18px, var(--pos-surface2); }
.pt-stage-bar { display: grid; flex: none; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 8px 12px; }
.pt-stage-bar > .pt-stage-title { grid-column: 1; grid-row: 1; }
.pt-stage-bar > .pt-state { grid-column: 2; grid-row: 1; }
.pt-stage-bar > .pt-key { grid-column: 1 / -1; grid-row: 2; }
.pt-stage-title { display: inline-flex; align-items: center; gap: 8px; color: var(--pos-text); font-size: 13px; font-weight: 600; }
.pt-stage-title small, .pt-state { padding: 3px 10px; border: 1px solid var(--pos-border); border-radius: 999px; background: var(--pos-surface); color: var(--pos-muted); font-size: 11px; font-weight: 500; }
.pt-state { display: inline-flex; align-items: center; gap: 6px; }
.pt-state::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #22A06B; }
.pt-state[data-dirty=true] { color: var(--pos-text); }
.pt-state[data-dirty=true]::before { background: #E8A317; }

.pt-key { display: flex; flex: 1; flex-wrap: wrap; gap: 6px; }
.pos-theme-page .pt-key-item { gap: 6px; padding: 4px 10px; border: 1px solid var(--pos-border); border-radius: 999px; background: var(--pos-surface); color: var(--pos-muted); font-size: 11px; font-weight: 500; transition: color .15s ease, border-color .15s ease; }
.pos-theme-page .pt-key-item:hover { border-color: color-mix(in srgb, var(--pos-text) 28%, var(--pos-border)); color: var(--pos-text); }
.pt-key-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; }
.pt-key-primary { background: var(--pos-primary-fill); }
.pt-key-accent { background: var(--pos-accent); }
.pt-key-background { border-radius: 3px; background: var(--pos-wallpaper) center / cover no-repeat, var(--pos-background-color); box-shadow: inset 0 0 0 1px var(--pos-border); }
.pt-key-status { background: conic-gradient(var(--pos-confirmed-color) 0 25%, var(--pos-inService-color) 0 50%, var(--pos-checkedIn-color) 0 75%, var(--pos-done-color) 0); }

#abo-view-theme .pt-app[data-preview-focus=background] { position: relative; }
#abo-view-theme .pt-app[data-preview-focus=background] > * { display: none; }
.pt-stage:has([data-preview-focus=background]) .pt-stage-title small,
.pt-stage:has([data-preview-focus=background]) .pt-key-item:not([data-flash-zone=background]) { display: none; }
#abo-view-theme .pt-app[data-preview-focus=background]:not([data-pos-background=default])::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background-position: center;
  background-size: 100% 100%;
  filter: none;
}

/* Preview: theme-driven parts use real tokens; everything else is a neutral sketch. */
#abo-view-theme .pt-app { --pt-sk: color-mix(in srgb, var(--pos-text) 9%, transparent); --pt-sk-strong: color-mix(in srgb, var(--pos-text) 18%, transparent); --pt-line: color-mix(in srgb, var(--pos-border) 65%, transparent); display: flex; flex: none; flex-direction: column; height: 360px; max-width: none; min-height: 0; margin: 0; overflow: hidden; container: pt-app / inline-size; border: 1px solid var(--pos-border); border-radius: 14px; background-color: var(--pos-background-color, var(--pos-canvas)); color: var(--pos-text); font-size: 11px; box-shadow: 0 16px 40px -16px rgb(16 24 40 / 28%), 0 2px 6px rgb(16 24 40 / 6%); }
.pt-app i { color: inherit; font-style: normal; }
.pt-sk { display: block; flex: none; height: 6px; border-radius: 999px; background: var(--pt-sk); }
.pt-app-header { display: flex; flex: none; align-items: center; gap: 14px; height: 48px; padding: 0 14px; border-bottom: 1px solid var(--pos-border); background: var(--pos-surface); }
.pt-sk-logo { width: 34px; height: 14px; border-radius: 6px; }
.pt-app-nav { display: flex; flex: 1; justify-content: center; gap: 4px; min-width: 0; overflow: hidden; }
.pt-nav { position: relative; display: flex; flex: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; width: 62px; height: 47px; color: var(--pos-muted); }
.pt-nav.is-active { color: var(--pos-primary-text); }
.pt-nav.is-active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--pos-primary-fill); }
.pt-nav .fa-light { font-size: 13px; }
.pt-nav b { font-size: 10px; font-weight: 600; }
.pt-sk-icon { width: 12px; height: 12px; border-radius: 4px; }
.pt-sk-word { width: 34px; }
.pt-sk-avatar { width: 26px; height: 26px; border-radius: 50%; }
.pt-app-body { display: grid; flex: 1; grid-template-columns: 148px minmax(0, 1fr); gap: 10px; min-height: 0; padding: 10px; }
.pt-app-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; padding: 12px; overflow: hidden; border: 1px solid var(--pos-border); border-radius: 12px; background: var(--pos-surface); }
.pt-side-head { display: flex; align-items: center; justify-content: space-between; }
.pt-sk-dots { width: 22px; }
.pt-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px 0; justify-items: center; }
.pt-month-grid b { width: 8px; height: 4px; margin-bottom: 2px; border-radius: 999px; background: var(--pt-sk); }
.pt-month-grid span { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 8px; font-weight: 700; }
.pt-month-grid span:not(.is-blank, .is-selected)::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--pt-sk-strong); }
.pt-month-grid .is-selected { background: var(--pos-primary-fill); color: var(--pos-primary-fill-ink); }
.pt-side-list { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--pos-border); }
.pt-side-list span { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pt-sk-line { width: 70%; }
.pt-radio { flex: none; box-sizing: border-box; width: 11px; height: 11px; border: 1.5px solid var(--pt-sk-strong); border-radius: 50%; }
.pt-radio.is-on { border: 3.5px solid var(--pos-primary-fill); }
.pt-app-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.pt-toolbar { display: flex; flex: none; align-items: center; gap: 8px; height: 30px; }
.pt-day { display: grid; flex: none; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: var(--pos-primary-fill); color: var(--pos-primary-fill-ink); font-weight: 700; }
.pt-sk-title { width: 64px; height: 9px; }
.pt-sk-pill { width: 44px; height: 22px; background: transparent; box-shadow: inset 0 0 0 1.5px var(--pt-sk-strong); }
.pt-sk-date { width: 76px; }
.pt-seg { display: flex; flex: none; margin-left: auto; padding: 2px; border-radius: 8px; background: var(--pos-surface); box-shadow: inset 0 0 0 1px var(--pos-border); }
.pt-seg span { display: grid; place-items: center; width: 24px; height: 20px; border-radius: 6px; color: var(--pos-muted); font-size: 10px; }
.pt-seg .is-on { background: var(--pos-primary-soft); color: var(--pos-primary-text); }
.pt-new { display: inline-flex; flex: none; align-items: center; gap: 5px; height: 26px; padding: 0 12px; border-radius: 999px; background: var(--pos-primary-fill); color: var(--pos-primary-fill-ink); font-weight: 600; }
.pt-cal { display: flex; flex: 1; flex-direction: column; min-height: 180px; overflow: hidden auto; border: 1px solid var(--pos-border); border-radius: 12px; background: var(--pos-surface); container-type: inline-size; }
.pt-cal-head, .pt-cal-grid { --pt-cols: 9; display: grid; grid-template-columns: 34px repeat(var(--pt-cols), minmax(0, 1fr)); }
.pt-cal-head { flex: none; border-bottom: 1px solid var(--pos-border); }
.pt-tech { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 0; padding: 8px 4px; border-left: 1px solid var(--pt-line); }
.pt-sk-face { width: 22px; height: 22px; border-radius: 50%; }
.pt-sk-name { width: 60%; max-width: 34px; height: 5px; }
.pt-cal-grid { position: relative; flex: 1 0 264px; grid-template-rows: repeat(12, minmax(22px, 1fr)); background-image: linear-gradient(color-mix(in srgb, var(--pt-line) 65%, transparent) .5px, transparent .5px), linear-gradient(90deg, var(--pt-line) 1px, transparent 1px); background-position: 0 0, 34px 0; background-size: 100% calc(100% / 6), calc((100% - 34px) / var(--pt-cols)) 100%; }
.pt-hour { grid-column: 1; align-self: start; justify-self: center; width: 16px; height: 5px; margin-top: 6px; }
.pt-h1 { grid-row: 1; }
.pt-h2 { grid-row: 3; }
.pt-h3 { grid-row: 5; }
.pt-h4 { grid-row: 7; }
.pt-h5 { grid-row: 9; }
.pt-h6 { grid-row: 11; }
.pt-ev { position: relative; display: flex; flex-direction: column; gap: 5px; min-width: 0; margin: 3px; padding: 7px 7px 6px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--status-color) 35%, var(--pos-border)); border-radius: 8px; background: var(--status-bg); box-shadow: 0 1px 2px rgb(16 24 40 / 6%); }
.pt-ev::after { content: ""; position: absolute; top: 0; right: 0; width: 12px; height: 12px; background: linear-gradient(225deg, var(--status-color) 50%, transparent 50%); }
.pt-ev[data-pos-status=unconfirmed] { border-style: dashed; }
.pt-ev .pt-sk { background: color-mix(in srgb, var(--status-ink) 22%, transparent); }
.pt-ev .pt-sk-line { width: 78%; }
.pt-ev .pt-sk-short { width: 50%; height: 5px; }
.pt-ev small { display: inline-flex; align-items: center; align-self: flex-start; gap: 4px; max-width: 100%; margin-top: auto; padding: 2px 6px; overflow: hidden; border-radius: 999px; background: var(--pos-surface); color: var(--status-ink); font-size: 8.5px; font-weight: 600; white-space: nowrap; }
.pt-ev small i { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--status-color); }
/* Fewer technician columns as the preview narrows; tickets in hidden columns hide too. */
@container (max-width: 899px) {
  .pt-ev small { gap: 0; padding: 3px; font-size: 0; }
}
@container (max-width: 639px) {
  .pt-cal-head, .pt-cal-grid { --pt-cols: 7; }
  .pt-tech:nth-child(n+9), .pt-ev-6 { display: none; }
}
@container (max-width: 479px) {
  .pt-cal-head, .pt-cal-grid { --pt-cols: 5; }
  .pt-tech:nth-child(n+7), .pt-ev-4 { display: none; }
}
@container (max-width: 359px) {
  .pt-cal-head, .pt-cal-grid { --pt-cols: 4; }
  .pt-tech:nth-child(n+6), .pt-ev-5 { display: none; }
}
.pt-ev-1 { grid-column: 3; grid-row: 1 / span 3; }
.pt-ev-2 { grid-column: 5; grid-row: 3 / span 3; }
.pt-ev-3 { grid-column: 2; grid-row: 5 / span 3; }
.pt-ev-4 { grid-column: 8; grid-row: 1 / span 3; }
.pt-ev-5 { grid-column: 6; grid-row: 6 / span 3; }
.pt-ev-6 { grid-column: 10; grid-row: 4 / span 3; }
.pt-now { position: absolute; left: 34px; right: 0; top: calc(100% / 12 * 3.5); z-index: 1; border-top: 2px solid var(--pos-accent); pointer-events: none; }
.pt-now i { position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--pos-accent); }
.pt-legend { display: flex; flex: none; flex-wrap: wrap; gap: 4px 12px; padding: 8px 10px; border: 1px solid var(--pos-border); border-radius: 10px; background: var(--pos-surface); }
.pt-legend-item { display: inline-flex; align-items: center; gap: 5px; color: var(--pos-muted); font-size: 9px; }
.pt-legend-item i { width: 8px; height: 8px; border-radius: 50%; background: var(--status-color); }
@keyframes pt-flash { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 20%, 70% { box-shadow: 0 0 0 2px var(--pos-surface), 0 0 0 4px #F59E0B; } }
@keyframes pt-flash-inset { 0%, 100% { box-shadow: inset 0 0 0 0 transparent; } 20%, 70% { box-shadow: inset 0 0 0 3px #F59E0B; } }
.pt-app[data-flash~=color] [data-zone~=color], .pt-app[data-flash~=accent] [data-zone~=accent],
.pt-app[data-flash~=status] [data-zone~=status] { animation: pt-flash 1.2s ease; }
.pt-app[data-flash~=background] [data-zone~=background] { animation: pt-flash-inset 1.2s ease; }

@container pt-app (max-width: 899px) {
  .pt-app-body { grid-template-columns: minmax(0, 1fr); }
  .pt-app-side { display: none; }
}
@container pt-body (max-width: 899px) {
  .pt-steps { display: flex; flex-direction: column; }
  .pt-col { display: contents; }
  .pt-steps > *, .pt-step, .pt-stage { width: 100%; }
  .pt-col-side > .pt-stage { position: static; }
  #abo-view-theme .pt-stage .pt-app { height: 440px; }
  .pt-head { order: 1; }
  .pt-message { order: 2; }
  .pt-stage { order: 3; }
  .pt-config-tabs { order: 4; }
  .pt-col-main.pt-config-panel { order: 5; }
  .pt-step-mode { order: 4; }
  .pt-step-color { order: 5; }
  .pt-step-background { order: 6; }
  .pt-step-status { order: 7; }
}
@container pt-body (max-width: 520px) {
  .pt-steps { gap: 14px; padding: 16px; }
  .pt-step { padding: 16px; }
  .pt-presets { grid-template-columns: minmax(0, 1fr); }
  .pt-swatches { gap: 8px; }
  #abo-view-theme .pt-stage .pt-app { height: 380px; }
  .pt-wide, .pt-legend { display: none; }
  .pt-app-body { padding: 8px; }
  .pt-sk-title { width: 40px; }
}
@media (max-width: 600px) {
  .pt-actions { flex-wrap: wrap; padding: 12px 16px; }
  .pt-save-note { order: 5; flex-basis: 100%; margin: 0; text-align: left; }
  .pt-actions .pt-link { margin-right: auto; }
}
@media (prefers-reduced-motion: reduce) {
  .pos-theme-page .pt-shell *, .pos-theme-page .pt-shell *::after { transition: none !important; }
}
