/* Submission Studio. Semantic tokens only (assets/css/tokens.css), so Light and Dark both work. */
.psub { display: grid; gap: 24px; }
.psub [hidden] { display: none !important; }
.psub__hp { position: absolute; left: -9999px; }
.psub__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.psub__form { display: grid; gap: 16px; min-width: 0; }
.psub__type { display: grid; gap: 16px; }
.psub__alert { margin: 0; }
.psub__aside { position: sticky; top: calc(var(--header-height) + 16px); display: grid; gap: 16px; }
.psub__panel { display: grid; gap: 16px; }
.psub-mono { font-family: var(--font-mono); }

/* Built-in type tabs (when the page has no hero tabs) */
.psub-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 6px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-card); width: max-content; max-width: 100%; }
.psub-tabs__tab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-md); color: var(--text-body); font-weight: 600; text-decoration: none; }
.psub-tabs__tab:hover { color: var(--text-heading); background: var(--bg-hover); }
.psub-tabs__tab[aria-selected="true"] { color: var(--text-inverse); background: var(--gradient-primary); }

/* Section cards */
.psub-sec { padding: 20px 24px 24px; }
.psub-sec:hover { box-shadow: var(--shadow-sm); }
.psub-sec__head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.psub-sec__num { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--gradient-primary); color: var(--text-inverse); font-weight: 700; font-size: 15px; }
.psub-sec__titles { flex: 1; min-width: 0; }
.psub-sec__title { margin: 2px 0 2px; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; color: var(--text-heading); }
.psub-sec__title small { font-size: .875rem; font-weight: 500; color: var(--text-secondary); }
.psub-sec__desc { margin: 0; font-size: 14px; color: var(--text-secondary); }
.psub-sec__note { flex: none; margin-top: 4px; font-size: 13px; color: var(--text-secondary); }
.psub-sec__action { flex: none; gap: 6px; min-height: 36px; padding: 6px 14px; font-size: 13px; }
.psub-sec__body--split { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 24px; }

/* 6-column field grid; each field sets --col (1-6). */
.psub-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; align-content: start; }
.psub-grid > * { grid-column: span var(--col, 6); min-width: 0; }
.psub-field { display: flex; flex-direction: column; gap: 6px; }
.psub-field__top { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.psub-label { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text-heading); }
.psub-req { color: var(--color-error); }
.psub-count { flex: none; font-size: 12px; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.psub-count.is-over { color: var(--color-error); }
.psub-help { font-size: 12.5px; color: var(--text-secondary); }
.psub-err { margin: 0; font-size: 13px; color: var(--color-error); }
.psub-field.has-error .input,
.psub-field.has-error .psub-rte,
.psub-field.has-error .psub-code,
.psub-field.has-error .psub-gallery__drop,
.psub-field.has-error .psub-agree__box { border-color: var(--color-error); }
.psub-tip { display: inline-grid; place-items: center; position: relative; color: var(--text-muted); cursor: help; }
.psub-tip:hover::after, .psub-tip:focus::after { content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 5; width: 220px; padding: 8px 10px; border-radius: var(--radius-md); background: var(--text-heading); color: var(--bg-card); font-size: 12px; font-weight: 400; line-height: 1.45; transform: translateX(-50%); box-shadow: var(--shadow-md); }
.psub-field textarea.input { resize: vertical; min-height: 64px; }
.psub-checks { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.psub-checks label, .psub-check { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--text-body); }

/* Select with chevron */
.psub-select { position: relative; }
.psub-select select { width: 100%; padding-right: 36px; appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%; background-size: 5px 5px; background-repeat: no-repeat; }

/* Prefix inputs ($, --ar) */
.psub-affix { display: flex; align-items: stretch; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-input); overflow: hidden; }
.psub-affix:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--ui-focus-glow); }
.psub-affix__pre { display: grid; place-items: center; flex: none; min-width: 40px; padding: 0 12px; border-right: 1px solid var(--border-default); background: var(--bg-subtle); color: var(--text-secondary); font-weight: 600; font-size: 14px; }
.psub-affix .input { flex: 1; min-width: 0; border: 0; border-radius: 0; box-shadow: none; }
.psub-affix .input:focus { box-shadow: none; }
.psub-affix--code .psub-affix__pre { min-width: 0; padding: 0 0 0 12px; border: 0; background: none; font-family: var(--font-mono); font-weight: 500; }
.psub-affix--code .input { padding-left: 8px; font-family: var(--font-mono); }

/* Resource type picker */
.psub-picker__cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.psub-picker__card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--border-default); border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text-body); font: inherit; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.psub-picker__card:hover { border-color: var(--border-strong); background: var(--bg-hover); }
.psub-picker__card[aria-pressed="true"] { border-color: var(--color-primary); background: var(--bg-active); box-shadow: 0 0 0 3px var(--ui-focus-glow); }
.psub-picker__icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--bg-subtle); color: var(--text-secondary); }
.psub-picker__card[aria-pressed="true"] .psub-picker__icon { background: var(--gradient-primary); color: var(--text-inverse); }
.psub-picker__text { display: grid; gap: 2px; }
.psub-picker__text strong { color: var(--text-heading); font-size: 14px; }
.psub-picker__text small { color: var(--text-secondary); font-size: 12.5px; line-height: 1.4; }

/* Drop zones */
.psub-drop { position: relative; display: grid; justify-items: center; align-content: center; gap: 4px; padding: 20px; text-align: center; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--bg-section); cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.psub-drop:hover, .psub-drop.is-over { border-color: var(--color-primary); background: var(--bg-active); }
.psub-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.psub-drop__icon { color: var(--color-primary); }
.psub-drop__title { color: var(--text-heading); font-size: 14px; }
.psub-drop__text { color: var(--text-secondary); font-size: 13px; }
.psub-drop__hint { margin-top: 6px; color: var(--text-muted); font-size: 12px; }
.psub-drop__file { color: var(--text-body); font-size: 13px; }
.psub-drop__img { width: 100%; max-height: 140px; object-fit: cover; border-radius: var(--radius-md); }
.psub-drop progress { width: 100%; }

/* Gallery */
.psub-gallery { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.psub-gallery__drop { flex: 1 1 240px; min-height: 132px; max-width: 100%; }
.psub-gallery.has-items .psub-gallery__drop { flex: 0 1 250px; }
.psub-thumbs { display: contents; margin: 0; padding: 0; list-style: none; }
.psub-thumbs__item, .psub-thumbs__add { position: relative; flex: none; width: 104px; height: 132px; border-radius: var(--radius-md); overflow: hidden; }
.psub-thumbs__item { border: 1px solid var(--border-default); background: var(--bg-subtle); }
.psub-thumbs__item img { width: 100%; height: 100%; object-fit: cover; }
.psub-thumbs__item.is-loading img { opacity: .5; }
.psub-thumbs__bar { position: absolute; left: 8px; right: 8px; bottom: 8px; height: 4px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .6); overflow: hidden; }
.psub-thumbs__bar span { display: block; width: 0; height: 100%; background: var(--color-primary); transition: width .2s ease; }
.psub-thumbs__item:not(.is-loading) .psub-thumbs__bar { display: none; }
.psub-thumbs__cover { position: absolute; left: 6px; bottom: 6px; display: none; padding: 2px 6px; border-radius: var(--radius-sm); background: var(--color-primary); color: var(--text-inverse); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.psub-thumbs__item:first-child:not(.is-loading) .psub-thumbs__cover { display: block; }
.psub-thumbs__remove { position: absolute; top: 6px; right: 6px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: var(--navy-900); color: var(--white); font-size: 16px; line-height: 1; cursor: pointer; opacity: .85; }
.psub-thumbs__remove:hover { opacity: 1; background: var(--color-error); }
.psub-thumbs__add { display: grid; place-items: center; align-content: center; gap: 6px; border: 2px dashed var(--border-strong); background: var(--bg-section); color: var(--text-secondary); font-size: 13px; font-weight: 600; cursor: pointer; }
.psub-thumbs__add:hover { border-color: var(--color-primary); color: var(--color-primary); }
.psub-thumbs__add input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* Repeatable list */
.psub-list { display: grid; gap: 8px; }
.psub-list__rows { display: grid; gap: 8px; }
.psub-list__row { display: flex; align-items: center; gap: 8px; }
.psub-list__grip { display: grid; place-items: center; flex: none; color: var(--text-muted); }
.psub-list__row .input { flex: 1; min-width: 0; }
.psub-btn-sm { justify-self: start; gap: 6px; min-height: 36px; padding: 6px 14px; font-size: 13px; }
.psub-icon-btn { display: grid; place-items: center; flex: none; width: 32px; height: 32px; padding: 0; border: 0; border-radius: var(--radius-md); background: none; color: var(--text-muted); cursor: pointer; }
.psub-icon-btn:hover { color: var(--text-heading); background: var(--bg-hover); }
.psub-icon-btn--danger { color: var(--color-error); }
.psub-icon-btn--danger:hover { color: var(--color-error); background: var(--color-error-bg); }

/* Rich text */
.psub-rte { position: relative; display: flex; flex-direction: column; flex: 1; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-input); }
.psub-rte:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--ui-focus-glow); }
.psub-rte__bar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--border-default); }
.psub-rte__btn { display: grid; place-items: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: var(--radius-sm); background: none; color: var(--text-body); cursor: pointer; }
.psub-rte__btn:hover { background: var(--bg-hover); color: var(--text-heading); }
.psub-rte__area { flex: 1; min-height: 150px; padding: 12px 14px 28px; color: var(--text-body); font-size: 14px; line-height: 1.6; outline: none; overflow-wrap: anywhere; }
.psub-rte__area ul, .psub-rte__area ol { margin: 4px 0; padding-left: 22px; }
.psub-rte__area p { margin: 0 0 6px; }
.psub-rte.is-empty .psub-rte__area::before { content: attr(data-placeholder); color: var(--text-muted); pointer-events: none; }
.psub-count--in { position: absolute; right: 12px; bottom: 8px; }

/* Prompt editor (line numbers + variable highlight) */
.psub-code { position: relative; display: flex; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-section); overflow: hidden; font-family: var(--font-mono); font-size: 13.5px; line-height: 1.7; }
.psub-code:focus-within { border-color: var(--border-focus); box-shadow: 0 0 0 3px var(--ui-focus-glow); }
.psub-code__gutter { flex: none; width: 40px; height: 220px; padding: 12px 0; overflow: hidden; border-right: 1px solid var(--border-default); background: var(--bg-subtle); color: var(--text-muted); text-align: center; user-select: none; }
.psub-code__gutter span { display: block; }
.psub-code__wrap { position: relative; flex: 1; min-width: 0; height: 220px; }
.psub-code__hl, .psub-code__input { position: absolute; inset: 0; margin: 0; padding: 12px 14px 28px; border: 0; font: inherit; line-height: inherit; white-space: pre-wrap; overflow-wrap: anywhere; word-break: normal; tab-size: 2; }
.psub-code__hl { overflow: hidden; color: var(--text-body); pointer-events: none; }
.psub-code__hl mark { padding: 0; border-radius: 3px; background: var(--badge-info-bg); color: var(--color-primary); box-shadow: 0 0 0 1px var(--alert-info-border); }
.psub-code__input { width: 100%; height: 100%; resize: none; background: transparent; color: transparent; caret-color: var(--text-heading); outline: none; overflow: auto; }
.psub-code__input::placeholder { color: var(--text-muted); }
.psub-code__input::selection { background: var(--ui-focus-glow); color: transparent; }

/* Parameter group */
.psub-group { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; border: 0; min-width: 0; }
.psub-group > .psub-label { padding: 0; }
.psub-group__box { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-section); }
.psub-group__box .psub-label { font-size: 12.5px; font-weight: 500; color: var(--color-primary); }

/* "More options" */
.psub-more { border: 1px dashed var(--border-strong); border-radius: var(--radius-md); }
.psub-more > summary { display: flex; align-items: center; gap: 6px; padding: 10px 14px; color: var(--text-secondary); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.psub-more > summary::-webkit-details-marker { display: none; }
.psub-more[open] > summary .promptix-icon { transform: rotate(45deg); }
.psub-more > .psub-grid { padding: 4px 14px 14px; }

/* Variables builder */
.psub-vars { display: grid; gap: 10px; }
.psub-vars__table { border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; }
.psub-vars__head, .psub-vars__row { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr) minmax(0, 1fr) 56px; gap: 10px; align-items: center; padding: 8px 12px; }
.psub-vars__head { background: var(--bg-subtle); color: var(--text-secondary); font-size: 12.5px; font-weight: 600; }
.psub-vars__row + .psub-vars__row { border-top: 1px solid var(--border-default); }
.psub-vars__row .input { min-height: 38px; }
.psub-vars__act { text-align: center; }
.psub-vars__row .psub-icon-btn { justify-self: center; }
.psub-vars__empty { margin: 0; padding: 14px 12px; color: var(--text-muted); font-size: 13px; }
.psub-vars__preview { display: grid; gap: 6px; }
.psub-vars__preview pre { margin: 0; padding: 12px 14px; border: 1px solid var(--border-default); border-radius: var(--radius-md); background: var(--bg-section); color: var(--text-body); font-size: 13px; white-space: pre-wrap; }

/* Agreement */
.psub-agree { position: relative; display: inline-flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-body); cursor: pointer; }
.psub-agree input { position: absolute; width: 22px; height: 22px; margin: 0; opacity: 0; cursor: pointer; }
.psub-agree__box { display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--bg-input); color: transparent; }
.psub-agree input:checked + .psub-agree__box { border-color: transparent; background: var(--gradient-primary); color: var(--text-inverse); }
.psub-agree input:focus-visible + .psub-agree__box { box-shadow: 0 0 0 3px var(--ui-focus-glow); }
.psub-agree__box .promptix-icon { stroke-width: 3; }

/* Perks list beside the price fields */
.psub-perks { display: grid; align-content: center; gap: 12px; margin: 0; padding: 0 0 0 20px; border-left: 1px solid var(--border-default); list-style: none; }
.psub-perks li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-body); }
.psub-tick { display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--color-success); color: var(--text-inverse); }
.psub-tick .promptix-icon { stroke-width: 3; }

/* Submit buttons */
.psub-submit { width: 100%; gap: 10px; min-height: 52px; font-size: 1rem; }
.psub-submit--form { min-height: 56px; font-size: 1.0625rem; }
.psub-submit.is-busy { opacity: .7; pointer-events: none; }

/* Sidebar cards */
.psub-card { padding: 20px; }
.psub-card:hover { box-shadow: var(--shadow-sm); }
.psub-card__head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.psub-card__icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--radius-md); background: var(--color-primary-light); color: var(--color-primary); }
.psub-card__title { flex: 1; margin: 0; font-size: 1.0625rem; font-weight: 700; color: var(--text-heading); }
.psub-card__lead { margin: 0 0 14px; font-size: 13.5px; color: var(--text-secondary); }
.psub-live { gap: 6px; font-size: 11.5px; }
.psub-live__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 0 3px var(--color-success-bg); }

/* Live preview card */
.psub-pv { border: 1px solid var(--border-default); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-card); }
.psub-pv__media { position: relative; aspect-ratio: 16 / 10; background: var(--gradient-soft); }
.psub-pv__slides, .psub-pv__slides img { width: 100%; height: 100%; }
.psub-pv__slides img { display: block; object-fit: cover; }
.psub-pv__empty { display: grid; place-items: center; height: 100%; color: var(--text-muted); }
.psub-pv__chip { position: absolute; top: 10px; display: inline-flex; align-items: center; gap: 5px; max-width: 60%; padding: 4px 9px; border-radius: var(--radius-sm); background: var(--bg-card); color: var(--text-heading); font-size: 12px; font-weight: 600; box-shadow: var(--shadow-sm); }
.psub-pv__chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.psub-pv__chip--engine { left: 10px; }
.psub-pv__chip--engine .promptix-icon { color: var(--color-purple); }
.psub-pv__chip--vars { right: 10px; }
.psub-pv__chip--vars .promptix-icon { color: var(--color-primary); }
.psub-pv__nav { position: absolute; top: 50%; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: var(--bg-card); color: var(--text-heading); box-shadow: var(--shadow-md); cursor: pointer; transform: translateY(-50%); }
.psub-pv__nav--prev { left: 10px; }
.psub-pv__nav--prev .promptix-icon { transform: rotate(90deg); }
.psub-pv__nav--next { right: 10px; }
.psub-pv__nav--next .promptix-icon { transform: rotate(-90deg); }
.psub-pv__body { display: grid; gap: 10px; padding: 14px 16px 16px; }
.psub-pv__title { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.3; color: var(--text-heading); overflow-wrap: anywhere; }
.psub-pv__desc { margin: 0; font-size: 13.5px; color: var(--text-secondary); overflow-wrap: anywhere; }
.psub-pv__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.psub-pv__tags:empty { display: none; }
.psub-pv__tag { padding: 3px 10px; border: 1px solid var(--border-default); border-radius: var(--radius-pill); background: var(--bg-subtle); color: var(--text-body); font-size: 12px; }
.psub-pv__seller { display: flex; align-items: center; gap: 10px; }
.psub-pv__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
.psub-pv__who { display: grid; gap: 1px; min-width: 0; }
.psub-pv__who strong { font-size: 14px; color: var(--text-heading); }
.psub-pv__who small { font-size: 12px; color: var(--text-secondary); }
.psub-pv__verified { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--color-purple); }
.psub-pv__foot { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.psub-pv__price { font-size: 1.375rem; font-weight: 800; color: var(--text-heading); }
.psub-pv__price-note { font-size: 12px; color: var(--text-secondary); }
.psub-pv__cta { width: 100%; gap: 8px; pointer-events: none; }

/* Earnings example */
.psub-earn__grid { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.psub-earn__rows p { margin: 0 0 4px; font-size: 13.5px; color: var(--text-body); }
.psub-earn__rows .psub-earn__example { color: var(--text-secondary); }
.psub-earn__you { color: var(--color-success); }
.psub-donut { --p: 85; position: relative; display: grid; place-items: center; flex: none; width: 92px; height: 92px; border-radius: 50%; background: conic-gradient(var(--color-primary) calc(var(--p) * 1%), var(--color-purple) 0); }
.psub-donut::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--bg-card); }
.psub-donut span { position: relative; font-size: 1.125rem; font-weight: 800; color: var(--text-heading); }
.psub-earn__legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 12px 0 0; padding: 10px 0 0; border-top: 1px solid var(--border-default); list-style: none; font-size: 12.5px; color: var(--text-secondary); }
.psub-earn__legend li { display: inline-flex; align-items: center; gap: 6px; }
.psub-dot { width: 10px; height: 10px; border-radius: 50%; }
.psub-dot--you { background: var(--color-primary); }
.psub-dot--fee { background: var(--color-purple); }

/* Auto-fill */
.psub-autofill { display: grid; gap: 8px; padding: 14px 16px; border: 1px dashed var(--border-strong); border-radius: var(--radius-md); background: var(--bg-section); }
.psub-autofill .psub-label .promptix-icon { color: var(--color-purple); }
.psub-autofill__row { display: flex; gap: 8px; }
.psub-autofill__row .input { flex: 1; min-width: 0; }
.psub-autofill__ai { font-size: 14px; color: var(--text-body); }
.psub-autofill__msg { margin: 0; font-size: 13.5px; color: var(--text-secondary); }
.psub-autofill__msg.is-error { color: var(--color-error); }
.psub-autofill__undo { justify-self: start; padding: 0; border: 0; background: none; color: var(--text-link); font: inherit; font-size: 13.5px; text-decoration: underline; cursor: pointer; }
.psub-suggested { color: var(--color-purple); font-size: 12px; font-weight: 600; }

/* Gate (guest / not a creator) and success */
.psub-gate, .psub-done { display: grid; justify-items: center; gap: 10px; max-width: 560px; margin: 0 auto; padding: 40px 32px; text-align: center; }
.psub-gate__icon, .psub-done__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gradient-primary); color: var(--text-inverse); }
.psub-done__icon { background: var(--color-success); }
.psub-gate__title, .psub-done__title { margin: 6px 0 0; font-size: 1.5rem; font-weight: 700; color: var(--text-heading); }
.psub-gate__text, .psub-done__text { margin: 0; color: var(--text-secondary); }
.psub-gate__actions, .psub-done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 8px 0 0; }

@media (max-width: 1199px) {
  .psub__layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .psub-sec__body--split { grid-template-columns: 1fr; }
  .psub-perks { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--border-default); }
}

@media (max-width: 991px) {
  .psub__layout { grid-template-columns: 1fr; }
  .psub__aside { position: static; }
}

@media (max-width: 782px) {
  .psub-grid { grid-template-columns: 1fr; }
  .psub-grid > * { grid-column: auto; }
  .psub-picker__cards { grid-template-columns: 1fr; }
  .psub-sec { padding: 16px; }
  .psub-sec__head { flex-wrap: wrap; }
  .psub-sec__action, .psub-sec__note { margin-left: 46px; }
  .psub-vars__head { display: none; }
  .psub-vars__row { grid-template-columns: 1fr 1fr; padding: 12px; }
  .psub-vars__row [data-var-name] { grid-column: 1 / -1; }
  .psub-vars__row .psub-icon-btn { grid-column: 2; justify-self: end; }
  .psub-perks { grid-template-columns: 1fr; }
  .psub-gallery__drop, .psub-gallery.has-items .psub-gallery__drop { flex: 1 1 100%; }
  .psub-thumbs__item, .psub-thumbs__add { width: calc((100% - 24px) / 3); height: auto; aspect-ratio: 4 / 5; }
}
