.promo-pack-mode {
  top: var(--creation-plan-viewport-top, 0px) !important;
  height: var(--creation-plan-viewport-height, 100dvh) !important;
  bottom: auto !important;
  padding: 0 !important;
}
.promo-pack-mode .subpage-body { padding: 0 !important; min-height: 0; }
.pk-page { width: 100%; max-width: 740px; margin: 0 auto; padding: 18px 18px 0; color: #17202e; letter-spacing: 0; }
.pk-page *, .pk-page *::before, .pk-page *::after { box-sizing: border-box; letter-spacing: 0; }
.pk-page button, .pk-page input, .pk-page textarea, .pk-page select { font: inherit; }
.pk-page button { cursor: pointer; }
.pk-page button:disabled { cursor: default; opacity: .55; }
.pk-page button:focus-visible, .pk-page input:focus-visible, .pk-page textarea:focus-visible, .pk-page select:focus-visible { outline: 2px solid #6957e8; outline-offset: 2px; }
.pk-page .app-icon { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.pk-section-title { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 16px; padding-bottom: 20px; }
.pk-section-title h3 { margin: 0; font-size: 19px; line-height: 1.4; overflow-wrap: anywhere; }
.pk-section-title > span { color: #7c8491; font-size: 12px; }
.pk-page fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.pk-field { display: grid; gap: 9px; margin-bottom: 20px; min-width: 0; }
.pk-field > span { font-size: 14px; font-weight: 650; }
.pk-field input, .pk-field textarea, .pk-field select { width: 100%; min-width: 0; padding: 12px; border: 1px solid #dfe4ed; background: #fff; color: #202633; border-radius: 8px; font-size: 15px; line-height: 1.6; }
.pk-field textarea { resize: vertical; }
.pk-offer-input { margin-top: -8px; }
.pk-photo-row { display: flex; gap: 12px; align-items: center; margin: 0 0 22px; color: #717c8d; font-size: 13px; }
.pk-photo { display: grid; place-items: center; width: 64px; height: 64px; overflow: hidden; background: #fff; color: #6854e9; border: 1px dashed #bbc3d3; border-radius: 8px; padding: 0; flex-shrink: 0; }
.pk-photo img { width: 100%; height: 100%; object-fit: cover; }
.pk-style-list { display: grid; grid-auto-flow: column; grid-auto-columns: 96px; gap: 9px; overflow-x: auto; overscroll-behavior-x: contain; padding: 2px 2px 8px; }
.pk-style { display: grid; grid-template-rows: 116px 30px; min-width: 0; padding: 3px; border: 1px solid #dfe4ed; border-radius: 8px; background: #fff; color: #647185; }
.pk-style.selected { border-color: #816be7; color: #5d46ca; box-shadow: 0 0 0 1px #816be7; }
.pk-style-art { display: grid; place-items: center; background: #f0f3f6; border-radius: 5px; overflow: hidden; }
.pk-style-art img { width: 100%; height: 116px; object-fit: contain; }
.pk-style > span:last-child { display: block; width: 100%; padding: 6px 2px 2px; font-size: 12px; line-height: 20px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-style-unavailable { align-self: center; font-size: 12px; color: #b33f4c; line-height: 1.6; }
.pk-icon { display: grid; place-items: center; background: transparent; border: 0; min-width: 40px; min-height: 40px; color: #8d6c73; margin-left: auto; }
.pk-options { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
.pk-options button { min-height: 42px; background: #fff; border: 1px solid #dfe4ed; border-radius: 8px; color: #657080; padding: 8px 3px; font-size: 13px; overflow-wrap: anywhere; }
.pk-options button.selected { color: #5947cf; background: #efecff; border-color: #b1a5f6; font-weight: 650; }
.pk-offers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pk-more { border-top: 1px solid #e1e5ed; padding: 4px 0; }
.pk-more summary, .pk-setup > summary { min-height: 48px; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: #697384; list-style: none; }
.pk-more summary::-webkit-details-marker, .pk-setup > summary::-webkit-details-marker { display: none; }
.pk-more-fields { padding-top: 14px; }
.pk-switch { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 14px; margin: 4px 0 20px; min-height: 40px; }
.pk-switch input { width: 20px; height: 20px; accent-color: #6550df; }
.pk-setup { border-bottom: 1px solid #e1e5ed; margin-bottom: 18px; }
.pk-setup > summary { justify-content: space-between; color: #263041; font-weight: 600; overflow-wrap: anywhere; }
.pk-setup > summary span { display: inline-flex; align-items: center; flex-shrink: 0; font-size: 12px; color: #838b99; font-weight: 400; }
.pk-setup fieldset { padding-top: 12px; }
.pk-status { display: grid; justify-items: center; gap: 10px; font-size: 13px; margin: 12px 0 18px; }
.pk-status:empty { display: none; }
.pk-status .loading-spinner { width: 28px; height: 28px; }
.pk-status generation-tips { display: block; width: 100%; max-width: 440px; }
.pk-error { color: #b33f4c; font-size: 13px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; margin: 4px 0 14px; }
.pk-saved { display: flex; align-items: center; gap: 6px; color: #247969; font-size: 12px; }
.pk-results { display: block !important; margin: 0 !important; }
.pk-results .promo-pack-result-head { background: none; border: 0; padding: 0 0 14px; display: block; box-shadow: none; }
.pk-results .promo-pack-result-head strong { font-size: 17px; line-height: 1.5; overflow-wrap: anywhere; }
.pk-poster { position: relative; display: flex; justify-content: center; height: min(560px, 55dvh); background: #e8ecf1; border-radius: 8px; overflow: hidden; }
.pk-poster img { display: block; width: 100%; height: 100%; object-fit: contain; }
.pk-poster-empty { min-height: 140px; display: grid; place-items: center; background: #edf0f5; color: #858f9c; border-radius: 8px; font-size: 13px; }
.pk-result-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 10px 0 22px; }
.pk-image-hint { margin: 8px 0 0; color: #788496; font-size: 12px; line-height: 1.6; text-align: center; }
.pk-edit { padding: 0 0 20px; }
.pk-edit .pk-field { margin-bottom: 10px; }
.pk-edit .pk-image-hint { text-align: left; margin-bottom: 10px; }
.pk-edit-actions { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.pk-edit-actions > button:not(.pk-primary) { background: #fff; border: 1px solid #dfe4ed; border-radius: 8px; color: #647185; min-height: 46px; }
.pk-result-actions button, .pk-snapshot-actions button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 44px; padding: 8px; border: 1px solid #dfe4ed; background: #fff; border-radius: 8px; color: #475467; font-size: 13px; }
.pk-copy { border-top: 1px solid #dfe4ed; padding-top: 12px; }
.pk-copy-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pk-copy-head [role=tablist] { display: flex; gap: 6px; }
.pk-copy-head button { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 44px; min-height: 42px; background: transparent; border: 0; border-radius: 6px; color: #6d7687; font-size: 13px; padding: 8px 10px; }
.pk-copy-head button[aria-selected=true] { color: #5d46d6; background: #eeebff; font-weight: 600; }
.pk-copy pre { font: inherit; font-size: 15px; line-height: 1.85; white-space: pre-wrap; overflow-wrap: anywhere; padding: 8px 0 14px; margin: 0; }
.pk-footer { position: sticky; bottom: 0; background: #f7f9fd; border-top: 1px solid #e1e5ed; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); margin-top: 18px; z-index: 2; }
.pk-has-project .pk-footer { position: static; }
.pk-total { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 10px; font-size: 12px; color: #778192; }
.pk-total strong { font-size: 16px; color: #192333; }
.pk-primary { min-height: 48px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: #6551e9; color: #fff; border: 0; border-radius: 8px; padding: 10px 14px; font-weight: 650; font-size: 15px; }
.pk-footer-actions { display: flex; gap: 10px; }
.pk-footer-actions > button { flex: 1; min-height: 46px; border: 1px solid #dddfe8; border-radius: 8px; background: #fff; color: #596479; font-size: 14px; }
.pk-footer-actions > .pk-primary { color: #fff; background: #6551e9; }
.pk-snapshot { padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
.pk-snapshot-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border-top: 1px solid #e1e5ed; padding-top: 16px; }
@media (max-width: 350px) { .pk-page { padding-left: 12px; padding-right: 12px; } .pk-options { gap: 5px; } .pk-options button { font-size: 12px; } }
@media (min-width: 900px) { .pk-page { padding-top: 24px; } .pk-poster { height: min(620px, 60dvh); } }
