/* Native discount seams only; source components stay in styles.css. */
.discounts-live .cabinet-layout > div {min-width:0}
.discounts-live .publication-text,.discounts-live .destination-target,.discounts-live h1,.discounts-live h2 {overflow-wrap:anywhere}
.discounts-live .discount-promo {display:flex;align-items:flex-start;gap:12px;flex-wrap:wrap;margin:12px 0}
.discounts-live .discount-promo-disclosure {min-width:0;max-width:100%}
.discounts-live .discount-promo-disclosure summary {cursor:pointer}
.discounts-live .promo-code {white-space:pre-wrap;overflow-wrap:anywhere}
.discounts-live .discount-promo-disclosure .promo-code {display:block;margin-top:12px}
.discounts-live .destination-target {display:block;overflow-wrap:anywhere}
.discounts-live .publication {display:flex;flex-direction:column;min-width:0}
.discounts-live .publication h3 {overflow-wrap:anywhere}
.discounts-live .discount-provider {margin:8px 0 0}
.discounts-live .discount-card-footer {margin-top:auto;padding-top:16px}
.discounts-live .discount-owner-footer {display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}
.discounts-live .discount-owner-footer .form-actions {margin:0}
.discounts-live .discount-owner-footer .status {margin-left:auto;max-width:100%;white-space:normal}
.discounts-live [data-copy-promo][hidden] {display:none}
.discounts-live .discount-copy-status:empty {display:none}
[data-discount-dialog] textarea[name="rejection_reason"] {height:105px}
[data-discount-dialog] .dialog-top h2 {min-width:0;overflow-wrap:anywhere}
[data-discount-dialog] .dialog-top > button {flex-shrink:0}
[data-discount-dialog] .form-grid {grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
[data-discount-dialog] .form-grid > * {min-width:0}
[data-discount-dialog] .form-actions > * {max-width:100%;white-space:normal;text-align:center}
[data-discount-dialog] .notice,[data-discount-dialog] .errorlist,[data-discount-dialog] .destination-target {overflow-wrap:anywhere}
[data-discount-dialog] #discount-dialog-close,[data-discount-dialog] #discount-decision-close {margin:0}
[data-discount-dialog][open]:not(:modal) {position:fixed;left:50%;top:5dvh;transform:translateX(-50%);margin:0;z-index:1000;max-width:calc(100% - 32px);max-height:90dvh;overflow:auto}
@media(max-width:650px) {[data-discount-dialog] .form-grid {grid-template-columns:minmax(0,1fr)}}

/* Public offer surfaces; owner cards and dialogs retain their existing seams. */
.discounts-public .discount-provider {margin:8px 0 12px;font-size:18px;line-height:25px;font-weight:700}
.discounts-public .page-heading .discount-provider {font-size:18px}
.discounts-public .publication-text {flex:1}
.discounts-public .discount-details {margin-top:auto}
.discounts-public .discount-card-footer {margin-top:0}
[data-public-activation] .button {min-height:48px}
[data-public-activation] .discount-promo {container:discount-promo / inline-size;position:relative;display:flex;align-items:center;justify-content:center;min-height:104px;padding:20px 16px;border-radius:10px;background:var(--tint);margin:12px 0}
[data-public-activation] .promo-code {display:block;font-size:22px;line-height:30px;font-weight:700;text-align:center;user-select:text;position:relative;z-index:1}
/* Keep the code's intrinsic wrapped height under the opaque scratch control. */
[data-public-activation] .is-enhanced:not(.is-revealed) .promo-code {visibility:hidden}
/* The inert longest localized message sizes the slot; only the live status speaks.
   No-JS keeps selectable code without an unused feedback gap. */
[data-public-activation] .discount-copy-feedback {display:none}
[data-public-activation].is-copy-enhanced .discount-copy-feedback {display:grid;margin:0 0 14px}
[data-public-activation] .discount-copy-feedback > * {grid-area:1 / 1;min-width:0;margin:0;overflow-wrap:anywhere}
[data-public-activation] .discount-copy-reserve {visibility:hidden;user-select:none}
[data-public-activation].is-copy-enhanced .discount-copy-status:empty {display:block}

[data-public-activation] .discount-scratch {position:absolute;z-index:2;inset:0;width:100%;border:0;border-radius:10px;background:#E7F2F4 url('/assets/illustrations/discounts.svg') no-repeat right center;background-size:140px auto;color:#0E6572;font-weight:700;padding:20px 16px;text-align:left;transition:background-color 140ms}
/* Measured 15px/700 labels: RU 175px, EN 117px. A centered label needs
   label + 2 * (140px artwork + 4px clearance): 463px RU / 405px EN outer.
   Round up, then subtract the surface's unchanged 2 * 16px padding. */
@container discount-promo (width < 432px){[data-public-activation]:not(:lang(en)) .discount-scratch {background-image:none;text-align:center}}
@container discount-promo (width < 374px){[data-public-activation]:lang(en) .discount-scratch {background-image:none;text-align:center}}

[data-public-activation] .discount-scratch:focus-visible {outline:2px solid var(--accent);outline-offset:3px}
@media(prefers-reduced-motion:reduce){[data-public-activation] .discount-scratch {transition:none}}
/* A bounded error page reuses the public shell and section illustration tokens. */
.error-page .not-found {display:flex;align-items:center;justify-content:space-between;gap:32px;padding:32px 0}
.error-page .not-found-art {width:260px;height:auto;flex-shrink:0}
.error-page .not-found h1 {font-size:38px;line-height:1.15;margin:10px 0 16px}
.error-page .not-found .form-actions {margin-top:24px}
@media(max-width:650px){.error-page .not-found {flex-direction:column;align-items:flex-start;gap:20px;padding:22px 0}.error-page .not-found h1 {font-size:28px}.error-page .not-found-art {width:180px}}

.discounts-public .discount-details > p:not(.discount-copy-status):not(.discount-dates) {margin:12px 0}

/* Intrinsic grid rows share bottom edges, not a global card/activation height.
   Stretch space stays above the compact activation/date/detail group only. */
.discounts-public .publications-grid {align-items:stretch}
.discounts-public .publications-grid .publication {display:flex;flex-direction:column;min-height:0}
.discounts-public .publications-grid .publication-text {flex:0 1 auto;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-block-size:4.65em;max-block-size:3lh}
.discounts-public .publications-grid .discount-details {margin-top:auto;margin-bottom:0}
.discounts-public .publications-grid .discount-card-footer {margin-top:0}
.discounts-public .publications-grid .discount-details > :last-child {margin-bottom:0}
.discounts-public .publications-grid .discount-details > p:last-child {margin-bottom:0}
/* Without feedback or dates, the selectable surface is the visible last child. */
[data-public-activation]:not(.is-copy-enhanced):not(:has(.discount-dates)) .discount-promo {margin-bottom:0}

[data-public-activation] .promo-code {background:none;padding:0;border:0;border-radius:0;font-family:inherit;max-width:100%}

/* Match the existing native application language tabs, not a new tab design. */
.discounts-live .description-switch .tabs {margin-top:0}
.discounts-live .description-switch .tabs [aria-selected=true] {color:var(--accent);border-bottom:2px solid var(--accent)}
.discounts-live .description-switch .tabs[hidden],.discounts-live [data-description-panel][hidden] {display:none}

/* Shared public DTO cards: existing tokens, intrinsic rows, never editor cards. */
.publication-feed {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;align-items:stretch}
.publication-feed .publication-card {display:flex;flex-direction:column;min-width:0;min-height:0}
.publication-feed .publication-meta {display:flex;align-items:center;gap:8px;flex-wrap:wrap;color:var(--muted);font-size:12px}
.publication-feed .publication-product {font-size:11px;line-height:1.5;font-weight:600;padding:2px 6px;border:1px solid var(--line);border-radius:4px;color:var(--muted);background:var(--bg)}
.publication-feed .publication-meta time {margin-left:auto}
.publication-feed .publication-provider {margin:8px 0 12px;font-size:18px;line-height:25px;font-weight:700;overflow-wrap:anywhere}
.publication-feed .publication-card h2,.publication-feed .publication-card h3 {overflow-wrap:anywhere}
.publication-feed .publication-card .publication-text {flex:0 1 auto;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;max-block-size:3lh;overflow-wrap:anywhere}
.publication-feed .publication-card-footer {margin-top:auto;padding-top:16px}
.publication-feed .publication-card [data-public-activation] {margin-top:auto}
.publication-feed .publication-card [data-public-activation]+.publication-card-footer {margin-top:0}
[data-public-activation] {min-width:0}
[data-public-activation] .promo-code {white-space:pre-wrap;overflow-wrap:anywhere}
[data-public-activation] [data-copy-promo][hidden] {display:none}
.service-about {align-items:start}
.service-about.service-about--empty {grid-template-columns:minmax(0,1fr)}
.service-about .service-materials {min-width:0}
.service-about .publication-feed--service {grid-template-columns:minmax(0,1fr)}
@media(max-width:900px){.publication-feed {grid-template-columns:minmax(0,1fr)}}
