* {
    box-sizing: border-box;
}

:root {
    --ink: #0b1115;
    --muted: #657178;
    --line: #e6ecef;
    --panel: #ffffff;
    --soft: #f6f8f9;
    --brand: #007e78;
    --acid: #b8ff00;
}

body {
    min-height: 100vh;
    margin: 0;
    background: #fff;
    color: var(--ink);
    font-family: Arial, sans-serif;
}

html.channel-theme-dark body {
    --ink: #f4f7f8;
    --muted: #aab5ba;
    --line: #263139;
    --panel: #11191f;
    --soft: #182229;
    background: #081015;
    color: var(--ink);
}

a {
    color: inherit;
}

.channels-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    min-height: 72px;
    grid-template-columns: 210px minmax(240px, 640px) auto;
    gap: 22px;
    align-items: center;
    padding: 14px 34px;
    border-bottom: 1px solid var(--line);
    background: rgb(255 255 255 / 92%);
    backdrop-filter: blur(18px);
}

.channels-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 900;
    text-decoration: none;
}

.channels-logo span {
    display: grid;
    width: 34px;
    height: 24px;
    place-items: center;
    border-radius: 7px;
    background: linear-gradient(135deg, var(--brand), #071015);
    color: #fff;
    font-size: 12px;
}

.channels-logo b {
    font-size: 18px;
}

.channels-top-search {
    display: grid;
    grid-template-columns: 1fr 64px;
    justify-self: center;
    width: min(100%, 640px);
}

.channels-top-search input {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid #cfd8dc;
    border-right: 0;
    border-radius: 22px 0 0 22px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    outline: none;
}

.channels-top-search input:focus {
    border-color: var(--brand);
    box-shadow: inset 0 0 0 1px var(--brand);
}

.channels-top-search button {
    display: grid;
    place-items: center;
    border: 1px solid #cfd8dc;
    border-radius: 0 22px 22px 0;
    background: #f7f9fa;
    cursor: pointer;
}

.channels-top-search button span {
    position: relative;
    width: 16px;
    height: 16px;
    border: 2px solid var(--ink);
    border-radius: 50%;
}

.channels-top-search button span::after {
    content: "";
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 8px;
    height: 2px;
    transform: rotate(45deg);
    border-radius: 2px;
    background: var(--ink);
}

.channels-create,
.channel-form button,
.builder-toolbar button {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    border: 0;
    border-radius: 22px;
    background: var(--ink);
    color: #fff;
    cursor: pointer;
    font-weight: 800;
    text-decoration: none;
    transition: background .18s ease, transform .18s ease;
}

.channels-create:hover,
.channel-form button:hover,
.builder-toolbar button:hover {
    background: var(--brand);
    transform: translateY(-1px);
}

.channels-create {
    justify-self: end;
}

.channels-create--ghost {
    background: #eef3f3;
    color: var(--ink);
}

.channels-layout {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
}

.channels-sidebar {
    position: sticky;
    top: 73px;
    height: calc(100vh - 73px);
    padding: 16px 12px;
    border-right: 1px solid var(--line);
    background: #fff;
}

.channels-sidebar a {
    display: flex;
    min-height: 42px;
    align-items: center;
    padding: 0 14px;
    border-radius: 12px;
    color: var(--ink);
    font-weight: 700;
    text-decoration: none;
}

.channels-sidebar a:hover,
.channels-sidebar a.is-active {
    background: #f0f3f4;
}

.channels-feed {
    min-width: 0;
    padding: 18px 28px 56px;
}

.channels-chips {
    position: sticky;
    top: 73px;
    z-index: 20;
    display: flex;
    gap: 10px;
    padding: 0 0 18px;
    overflow-x: auto;
    background: #fff;
    scrollbar-width: none;
}

.channels-chips::-webkit-scrollbar {
    display: none;
}

.channels-chips a {
    flex: 0 0 auto;
    padding: 10px 14px;
    border-radius: 10px;
    background: #f1f3f4;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.channels-chips a:hover,
.channels-chips a.is-active {
    background: var(--ink);
    color: #fff;
}

.channels-hero {
    display: grid;
    min-height: 0;
    align-items: center;
    margin-bottom: 18px;
    padding: 14px 28px;
    overflow: hidden;
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgb(7 16 21 / 88%), rgb(7 16 21 / 52%), rgb(0 126 120 / 30%)),
        radial-gradient(circle at 82% 30%, rgb(184 255 0 / 56%), transparent 28%),
        linear-gradient(135deg, #0b1115, #0c3736);
    color: #fff;
}

.channels-hero p {
    margin: 0 0 4px;
    color: var(--acid);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.channels-hero h1 {
    margin: 0;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
}

.channels-hero span {
    display: block;
    max-width: 560px;
    margin-top: 0;
    color: rgb(255 255 255 / 78%);
    font-size: 15px;
    line-height: 1.45;
}

.channels-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 28px 16px;
}

.channel-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    color: var(--ink);
    text-decoration: none;
}

.channel-card__cover {
    position: relative;
    display: grid;
    aspect-ratio: 16 / 9;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
    background:
        linear-gradient(135deg, rgb(0 126 120 / 92%), rgb(7 16 21 / 96%)),
        #071015;
    box-shadow: 0 14px 32px rgb(7 16 21 / 12%);
    transition: transform .18s ease, box-shadow .18s ease;
}

.channel-card:nth-child(3n + 2) .channel-card__cover {
    background:
        linear-gradient(135deg, rgb(184 255 0 / 88%), rgb(7 16 21 / 94%)),
        #071015;
}

.channel-card:nth-child(3n) .channel-card__cover {
    background:
        linear-gradient(135deg, rgb(18 119 181 / 88%), rgb(7 16 21 / 94%)),
        #071015;
}

.channel-card:hover .channel-card__cover {
    transform: translateY(-2px);
    box-shadow: 0 18px 44px rgb(7 16 21 / 18%);
}

.channel-card__cover span {
    color: #fff;
    font-size: clamp(48px, 8vw, 92px);
    font-weight: 900;
    text-shadow: 0 12px 28px rgb(0 0 0 / 24%);
}

.channel-card__meta {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 12px;
}

.channel-card__avatar {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--acid);
    font-size: 18px;
    font-weight: 900;
}

.channel-card__body {
    display: grid;
    min-width: 0;
    gap: 4px;
}

.channel-card__body strong {
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.32;
    text-overflow: ellipsis;
}

.channel-card__body small,
.channel-card__body span {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.channel-card--empty .channel-card__cover {
    background:
        linear-gradient(135deg, rgb(7 16 21 / 88%), rgb(0 126 120 / 72%)),
        #071015;
}

.channels-pages {
    margin-top: 28px;
}

.channels-shell,
.channel-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 42px 0 64px;
}

/* Public channels should use the available desktop canvas instead of looking
   like a narrow article column. Builder/list pages keep their working width. */
.channel-page {
    width: min(1440px, calc(100% - 48px));
}

.channels-shell--narrow {
    width: min(680px, calc(100% - 28px));
}

.channels-head,
.channel-public-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 24px;
}

.channels-head__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.channels-head__actions form {
    margin: 0;
}

.channel-public-head a {
    font-weight: 900;
    text-decoration: none;
}

.channel-public-head__brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink);
}

.channel-public-head .channel-public-head__brand span,
.channel-product-page__head .channel-public-head__brand span {
    display: grid;
    min-width: 42px;
    height: 29px;
    place-items: center;
    border-radius: 9px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    letter-spacing: .04em;
}

.channel-public-head__brand b {
    font-size: 17px;
}

.channel-form,
.channel-block {
    border-radius: 14px;
    background: var(--panel);
    box-shadow: 0 24px 70px rgb(7 16 21 / 10%);
}

.channel-form {
    display: grid;
    gap: 16px;
    padding: 26px;
}

.channel-form h1,
.channel-block h1 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
}

.channel-form label {
    display: grid;
    gap: 7px;
    color: var(--ink);
    font-weight: 800;
}

.channel-form input,
.channel-form textarea,
.builder-block select,
.builder-block input,
.builder-block textarea {
    width: 100%;
    padding: 14px 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--soft);
    color: var(--ink);
    font: inherit;
    outline: none;
}

.channel-form input:focus,
.channel-form textarea:focus,
.builder-block select:focus,
.builder-block input:focus,
.builder-block textarea:focus {
    border-color: rgb(0 126 120 / 45%);
    background: #fff;
    box-shadow: 0 0 0 4px rgb(0 126 120 / 10%);
}

.channel-form > button {
    min-height: 54px;
    border-radius: 10px;
}

.channels-alert,
.channels-success {
    padding: 12px 14px;
    border-radius: 10px;
    font-weight: 800;
}

.channels-warning {
    margin-bottom: 16px;
    padding: 13px 16px;
    border: 1px solid #f0c36d;
    border-radius: 12px;
    background: #fff7e6;
    color: #754c00;
    font-weight: 800;
}

.channels-alert {
    background: #ffe3df;
    color: #943228;
}

.channels-success {
    background: #efffd3;
    color: #314900;
}

.builder-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.builder-toolbar button {
    min-height: 40px;
    background: #eef3f3;
    color: var(--ink);
    box-shadow: none;
}

.builder-list {
    display: grid;
    gap: 12px;
}

.builder-block {
    display: grid;
    grid-template-columns: 44px minmax(130px, 190px) 1fr;
    gap: 10px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgb(7 16 21 / 6%);
}

.builder-block.is-dragged {
    opacity: .55;
}

.builder-block textarea {
    grid-column: 3;
}

.builder-rich-toolbar {
    grid-column: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px;
    margin-bottom: -5px;
}

.builder-rich-toolbar > span {
    margin-right: 4px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.builder-rich-toolbar button {
    display: grid;
    width: 34px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f3f6f6;
    color: var(--ink);
    cursor: pointer;
    font: inherit;
}

.builder-rich-toolbar button:hover,
.builder-rich-toolbar button:focus-visible {
    border-color: var(--brand);
    background: #e9fffa;
    outline: 0;
}

.builder-rich-toolbar__link {
    display: none !important;
}

.builder-block.is-hero-type .builder-rich-toolbar__link,
.builder-block.is-text-type .builder-rich-toolbar__link,
.builder-block.is-contact-type .builder-rich-toolbar__link,
.builder-block.is-product-type .builder-rich-toolbar__link {
    display: grid !important;
    margin-left: 3px;
    background: var(--ink);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.builder-block.is-hero-type .builder-rich-toolbar__link:hover,
.builder-block.is-hero-type .builder-rich-toolbar__link:focus-visible,
.builder-block.is-text-type .builder-rich-toolbar__link:hover,
.builder-block.is-text-type .builder-rich-toolbar__link:focus-visible,
.builder-block.is-contact-type .builder-rich-toolbar__link:hover,
.builder-block.is-contact-type .builder-rich-toolbar__link:focus-visible,
.builder-block.is-product-type .builder-rich-toolbar__link:hover,
.builder-block.is-product-type .builder-rich-toolbar__link:focus-visible {
    background: var(--brand);
}

.channel-block a {
    color: var(--block-light-link, var(--brand));
    font-weight: 800;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.channel-theme-dark .channel-block a {
    color: var(--block-dark-link, #56d9d2);
}

.channel-block a.channel-hashtag {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--block-light-link, var(--brand)) 11%, transparent);
    text-decoration: none;
}

.channel-block a.channel-hashtag:hover {
    text-decoration: underline;
}

.channel-theme-dark .channel-block a.channel-hashtag {
    background: color-mix(in srgb, var(--block-dark-link, #56d9d2) 14%, transparent);
}

.channel-block--product {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: 28px;
}

/* One product is a wide showcase. Several products become a catalogue grid. */
.channel-page--product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    align-items: start;
    gap: 14px;
}

.channel-page--product-grid > .channel-public-head,
.channel-page--product-grid > .channel-block:not(.channel-block--product) {
    grid-column: 1 / -1;
}

.channel-page--product-grid > .channel-public-head {
    width: 100%;
    margin-bottom: 10px;
}

.channel-page--product-grid > .channel-block {
    margin-bottom: 0;
}

.channel-page--product-grid > .channel-block--product {
    grid-template-columns: 1fr;
    align-content: start;
    gap: 12px;
    height: 100%;
    padding: 14px;
}

.channel-page--product-grid .channel-product-image-button {
    aspect-ratio: 4 / 3;
}

.channel-block--product > .channel-product-image-button img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    border-radius: 0;
    object-fit: contain;
    background: #fff;
}

.channel-page--product-grid .channel-product__content {
    align-content: start;
    height: 100%;
}

.channel-page--product-grid .channel-product__content h1 {
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
}

.channel-page--product-grid .channel-product__content p {
    font-size: min(var(--block-body-size, 18px), 14px);
}

.channel-page--product-grid .channel-product__excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    max-height: 5.7em;
    margin: 0;
    line-height: 1.42;
}

.channel-page--product-grid .channel-product__content {
    gap: 11px;
}


.channel-page--product-grid .channel-product__button {
    margin-top: 0;
}
.channel-product__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.channel-page--product-grid .channel-product__price {
    font-size: 18px;
}
.channel-product__pricing { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 10px; }
.channel-product__pricing del { color: #748286; font-size: 13px; }
.channel-product__pricing em { border-radius: 999px; background: #ffe2df; color: #a5261d; padding: 3px 7px; font-size: 12px; font-style: normal; font-weight: 850; }

.channel-page--product-grid .channel-product__button {
    min-height: 38px;
    padding: 0 15px;
    border-radius: 9px;
    font-size: 14px;
}
.channel-block a.channel-product__button--discount { border: 1px solid var(--block-light-link, var(--brand)); background: transparent; color: var(--block-light-link, var(--brand)); }
.channel-theme-dark .channel-block a.channel-product__button--discount { border-color: var(--block-dark-link, #56d9d2); background: transparent; color: var(--block-dark-link, #56d9d2); }

.channel-product__image {
    width: 100%;
    max-height: 440px;
    border-radius: 16px;
    object-fit: cover;
}

.channel-product__content {
    display: grid;
    justify-items: var(--block-align, start);
    gap: 16px;
}

.channel-product__content h1,
.channel-product__content p {
    width: 100%;
}
.channel-product__title-link { color: inherit; text-decoration: none; }
.channel-product__title-link:hover,.channel-product__title-link:focus-visible { color: var(--block-light-link, var(--brand)); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.channel-theme-dark .channel-product__title-link:hover,.channel-theme-dark .channel-product__title-link:focus-visible { color: var(--block-dark-link, #56d9d2); }

.channel-product__price {
    color: var(--block-light-text, var(--ink));
    font-size: clamp(22px, 3vw, 34px);
    line-height: 1.15;
}

.channel-block a.channel-product__button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 12px;
    background: var(--block-light-link, var(--brand));
    color: #fff;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}

.channel-block a.channel-product__button:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

.channel-block a.channel-product__button--discount {
    min-height: 38px;
    width: auto;
    padding: 0 18px;
    border: 1px solid var(--block-light-link, var(--brand));
    border-radius: 9px;
    background: transparent;
    color: var(--block-light-link, var(--brand));
    font-size: 14px;
    white-space: nowrap;
}

.channel-block a.channel-product__button--discount:hover {
    background: color-mix(in srgb, var(--block-light-link, var(--brand)) 7%, transparent);
    filter: none;
}

.channel-theme-dark .channel-product__price {
    color: var(--block-dark-text, #fff);
}

.channel-theme-dark .channel-block a.channel-product__button {
    background: var(--block-dark-link, #56d9d2);
    color: #071013;
}

.channel-theme-dark .channel-block a.channel-product__button--discount {
    border-color: var(--block-dark-link, #56d9d2);
    background: transparent;
    color: var(--block-dark-link, #56d9d2);
}

body.builder-modal-open {
    overflow: hidden;
}

.builder-link-modal[hidden] {
    display: none;
}

.builder-link-modal {
    position: fixed;
    z-index: 1000;
    inset: 0;
    display: grid;
    padding: 20px;
    place-items: center;
}

.builder-link-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgb(5 13 18 / 68%);
    backdrop-filter: blur(5px);
}

.builder-link-modal__dialog {
    position: relative;
    width: min(100%, 520px);
    box-sizing: border-box;
    padding: 28px;
    border: 1px solid rgb(255 255 255 / 18%);
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 30px 90px rgb(0 0 0 / 28%);
}

.builder-link-modal__dialog h2 {
    margin: 5px 0 8px;
    font-size: 28px;
}

.builder-link-modal__dialog > p {
    margin: 0 0 20px;
    color: var(--muted);
    line-height: 1.5;
}

.builder-link-modal__eyebrow {
    color: var(--brand);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.builder-link-modal__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #eef3f3;
    color: var(--ink);
    cursor: pointer;
    font-size: 25px;
}

.builder-link-modal form,
.builder-link-modal label {
    display: grid;
    gap: 8px;
}

.builder-link-modal form {
    gap: 15px;
}

.builder-link-modal label {
    font-weight: 900;
}

.builder-link-modal input {
    width: 100%;
    height: 50px;
    box-sizing: border-box;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: 0;
    background: #f5f7f7;
    color: var(--ink);
    font: inherit;
}

.builder-link-modal input:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgb(0 147 139 / 13%);
}

.builder-link-modal__error {
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff0f0;
    color: #a31616;
    font-size: 14px;
    font-weight: 800;
}

.builder-link-modal__actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 4px;
}

.builder-link-modal__actions button {
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 11px;
    cursor: pointer;
    font-weight: 900;
}

.builder-link-modal__cancel {
    background: #eef3f3;
    color: var(--ink);
}

.builder-link-modal__submit {
    background: var(--ink);
    color: #fff;
}

.builder-link-modal__submit:hover {
    background: var(--brand);
}

.builder-delete-modal__confirm {
    background: #b42318;
    color: #fff;
}

.builder-delete-modal__confirm:hover {
    background: #8f1c14;
}

.builder-type-select {
    position: absolute;
    width: 1px !important;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.builder-type-switch {
    display: grid;
    align-self: start;
    gap: 5px;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #eef3f3;
}

.builder-type-label {
    align-self: start;
    padding: 14px 12px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #eef3f3;
    color: var(--ink);
    font-weight: 900;
    text-align: center;
}

.builder-type-switch button {
    min-height: 36px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    text-align: left;
    box-shadow: none;
    transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.builder-type-switch button:hover {
    color: var(--ink);
}

.builder-type-switch button.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 5px 14px rgb(7 16 21 / 9%);
}

.builder-cover-field {
    grid-column: 3;
    display: grid;
    gap: 12px;
}

.builder-cover-field[hidden] {
    display: none;
}

.builder-cover-preview {
    width: 100%;
    max-height: 320px;
    border-radius: 14px;
    object-fit: cover;
}

.builder-cover-field__title {
    font-weight: 900;
}

.builder-cover-input {
    position: absolute;
    width: 1px !important;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
}

.builder-cover-dropzone {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    min-height: 92px;
    padding: 16px;
    border: 2px dashed #b8c9c6;
    border-radius: 14px;
    background: linear-gradient(135deg, #f8fbfb, #f0f6f5);
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.builder-cover-dropzone:hover,
.builder-cover-dropzone.is-dragover {
    border-color: var(--brand);
    background: #effffb;
    transform: translateY(-1px);
}

.builder-cover-dropzone.has-file {
    border-style: solid;
    border-color: var(--brand);
}

.builder-cover-dropzone__icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 14px;
    background: var(--ink);
    color: #fff;
    font-size: 25px;
    font-weight: 900;
}

.builder-cover-dropzone__copy {
    display: grid;
    gap: 5px;
}

.builder-cover-dropzone__copy strong {
    font-size: 17px;
}

.builder-cover-dropzone__copy small,
.builder-cover-file-name {
    color: var(--muted);
    font-size: 13px;
}

.builder-cover-design {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--builder-gradient-from), var(--builder-gradient-to));
    box-shadow: inset 6px 0 0 var(--builder-accent);
    color: var(--ink);
    transition: background .2s ease, color .2s ease;
}

.builder-cover-design[hidden],
.builder-product-fields[hidden] {
    display: none;
}

.builder-product-fields {
    grid-column: 3;
    display: grid;
    grid-template-columns: minmax(150px, .65fr) minmax(240px, 1.35fr);
    gap: 10px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9f9;
}

.builder-product-fields label {
    display: grid;
    gap: 7px;
}

.builder-product-fields label:last-child {
    grid-column: 1 / -1;
}

.builder-product-destination,
.builder-product-url,
.builder-product-slug {
    grid-column: 1 / -1;
}

.builder-product-destination {
    display: grid;
    gap: 8px;
}

.builder-product-destination > select {
    position: absolute;
    width: 1px !important;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.builder-product-destination__switch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5px;
    padding: 5px;
    border-radius: 12px;
    background: #e9eeee;
}

.builder-product-destination__switch button {
    min-height: 40px;
    padding: 8px 12px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-weight: 900;
}

.builder-product-destination__switch button.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 5px 16px rgb(7 16 21 / 9%);
}

.builder-product-url[hidden],
.builder-product-slug[hidden] {
    display: none;
}

.builder-product-slug__input {
    display: flex;
    min-width: 0;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.builder-product-slug__input > span {
    flex: 0 1 auto;
    overflow: hidden;
    padding-left: 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.builder-product-slug__input input {
    min-width: 190px;
    border: 0;
    background: transparent;
}

.channel-product-page__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0 24px;
}

.channel-product-page__head-actions {
    display: flex;
    align-items: center;
    gap: 9px;
}

.channel-theme-dark .channel-product-page__head .channels-create--ghost {
    background: #eef3f3;
    color: #0b1115;
}

.channel-theme-dark .channel-product-page__head .channels-create--ghost:hover,
.channel-theme-dark .channel-product-page__head .channels-create--ghost:focus-visible {
    background: var(--brand);
    color: #fff;
}

.channel-product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding: clamp(18px, 3vw, 36px);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 24px 70px rgb(7 16 21 / 10%);
}

.channel-product-detail__image {
    width: 100%;
    max-height: 560px;
    border-radius: 18px;
    object-fit: contain;
    background: #fff;
}

.channel-product-detail__content {
    display: grid;
    gap: 13px;
    max-width: 980px;
    color: var(--block-light-text, var(--ink));
}

.channel-product-detail__channel {
    color: var(--block-light-link, var(--brand));
    font-weight: 900;
    text-decoration: none;
}

.channel-product-detail h1 {
    margin: 0;
    font-size: clamp(25px, 3vw, 40px);
    line-height: 1.15;
}

.channel-product-detail__description {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.55;
}

.channel-product-detail__price {
    font-size: clamp(21px, 2.4vw, 30px);
    line-height: 1;
}
.channel-product-detail__pricing { display: flex; align-items: center; flex-wrap: wrap; gap: 9px 12px; }
.channel-product-detail__pricing del { color: #748286; font-size: 15px; }
.channel-product-detail__pricing em { border-radius: 999px; background: #ffe2df; color: #a5261d; padding: 4px 8px; font-size: 13px; font-style: normal; font-weight: 850; }
.channel-product-detail__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.channel-product-detail__actions a.channel-product-detail__button--discount { border: 1px solid var(--block-light-link,#007e78); background: transparent; color: var(--block-light-link,#007e78); }
.channel-product-detail__actions a.channel-product-detail__button--discount:hover { background: color-mix(in srgb,var(--block-light-link,#007e78) 10%,transparent); }
.channel-theme-dark .channel-product-detail__button--discount { border-color: var(--block-dark-link,#56d9d2); background: transparent; color: var(--block-dark-link,#56d9d2); }

.channel-product-detail__button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    justify-self: start;
    padding: 0 18px;
    border-radius: 10px;
    background: var(--block-light-link, var(--brand));
    color: #fff;
    font-size: 14px;
    font-weight: 850;
    text-decoration: none;
    transition: filter .18s ease, transform .18s ease;
}

.channel-product-detail__button:hover {
    filter: brightness(.92);
    transform: translateY(-1px);
}

.channel-product-detail__note {
    margin: 8px 0 0;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.channel-theme-dark .channel-product-detail__content {
    color: var(--block-dark-text, #fff);
}

.channel-theme-dark .channel-product-detail__channel {
    color: var(--block-dark-link, #56d9d2);
}

.channel-theme-dark .channel-product-detail__button {
    background: var(--block-dark-link, #56d9d2);
    color: #071013;
}

.channel-product-page a.channel-hashtag {
    display: inline-block;
    padding: 1px 5px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--block-light-link, var(--brand)) 11%, transparent);
    color: var(--block-light-link, var(--brand));
    font-weight: 800;
    text-decoration: none;
}

.channel-product-page a.channel-hashtag:hover {
    text-decoration: underline;
}

.channel-theme-dark .channel-product-page a.channel-hashtag {
    background: color-mix(in srgb, var(--block-dark-link, #56d9d2) 14%, transparent);
    color: var(--block-dark-link, #56d9d2);
}

.builder-product-sections {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.builder-product-sections > strong {
    grid-column: 1 / -1;
}

.builder-product-sections fieldset {
    display: grid;
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
}

.builder-product-sections legend {
    padding: 0 5px;
    font-weight: 900;
}

.builder-product-sections--wide {
    grid-template-columns: 1fr;
}

.builder-product-sections--wide fieldset {
    padding: 16px;
}

.channel-product-sections {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.channel-product-section {
    padding: clamp(24px, 4vw, 42px);
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 20px 55px rgb(7 16 21 / 8%);
}

.channel-product-section h2 {
    margin: 0 0 14px;
    font-size: clamp(24px, 3vw, 36px);
    line-height: 1.12;
}

.channel-product-section div {
    font-size: 17px;
    line-height: 1.7;
}

.channel-theme-dark .channel-product-section {
    background: #111c23;
    color: #fff;
    box-shadow: 0 20px 55px rgb(0 0 0 / 24%);
}

.channel-product-wide-sections {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.channel-product-wide-section {
    min-height: 220px;
    padding: clamp(32px, 6vw, 72px);
    border-radius: 22px;
    background: var(--panel);
    box-shadow: 0 22px 65px rgb(7 16 21 / 9%);
}

.channel-product-wide-section h2 {
    max-width: 1000px;
    margin: 0 0 20px;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1.08;
}

.channel-product-wide-section div {
    max-width: 1050px;
    font-size: clamp(18px, 2vw, 22px);
    line-height: 1.75;
}

.channel-theme-dark .channel-product-wide-section {
    background: #111c23;
    color: #fff;
    box-shadow: 0 22px 65px rgb(0 0 0 / 26%);
}

.builder-block.is-dark-theme .builder-cover-design { color: #fff; }
.builder-color-panel[hidden] { display: none; }
.builder-cover-design__group { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.builder-cover-design__group > strong { width: 100%; }
.builder-theme-switch { display: flex; gap: 4px; padding: 4px; border-radius: 10px; background: rgb(127 127 127 / 15%); }
.builder-theme-switch button { padding: 8px 12px; border: 0; border-radius: 7px; background: transparent; color: inherit; cursor: pointer; font-weight: 800; }
.builder-theme-switch button.is-active { background: #fff; color: #111827; box-shadow: 0 4px 12px rgb(0 0 0 / 12%); }
.builder-theme-select { position:absolute;width:1px!important;height:1px;overflow:hidden;clip-path:inset(50%); }
.builder-color-control { display: inline-flex; align-items: center; gap: 7px; padding: 6px 9px; border-radius: 9px; background: rgb(127 127 127 / 13%); font-size: 13px; font-weight: 800; }
.builder-color-control input[type="color"] { width: 32px; height: 32px; padding: 0; border: 0; border-radius: 8px; background: transparent; cursor: pointer; }

.builder-text-design{grid-column:3;border:1px solid var(--line);border-radius:12px;background:#fff}.builder-text-design summary{padding:12px 14px;cursor:pointer;font-weight:900}.builder-text-design__body{display:grid;gap:14px;padding:0 14px 14px}.builder-text-option,.builder-text-colors{display:grid;gap:8px}.builder-align-switch,.builder-weight-switch{display:flex;flex-wrap:wrap;gap:5px}.builder-align-switch button,.builder-weight-switch button{padding:8px 11px;border:0;border-radius:8px;background:#eef3f3;color:var(--muted);cursor:pointer;font-weight:800}.builder-align-switch button.is-active,.builder-weight-switch button.is-active{background:var(--ink);color:#fff}.builder-align-select,.builder-weight-select{position:absolute;width:1px!important;height:1px;overflow:hidden;clip-path:inset(50%)}.builder-range-option{display:grid;gap:8px}.builder-range-option>span{display:flex;justify-content:space-between;gap:10px}.builder-range-option output{color:var(--brand);font-weight:900}.builder-range-option input[type="range"]{padding:0}.builder-text-colors{grid-template-columns:1fr 1fr}.builder-text-colors>strong{grid-column:1/-1}.builder-text-colors label{display:flex;align-items:center;gap:8px}.builder-text-colors input[type="color"]{width:38px;height:38px;padding:0;border:0;background:transparent;cursor:pointer}

.builder-block.is-hero-type > input[name="block_title[]"],
.builder-block.is-hero-type > textarea[name="block_text[]"] {
    border-color: rgb(127 127 127 / 24%);
    background: var(--builder-gradient-from, #fff);
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.builder-block.is-hero-type.is-dark-theme > input[name="block_title[]"],
.builder-block.is-hero-type.is-dark-theme > textarea[name="block_text[]"] {
    border-color: rgb(255 255 255 / 18%);
}

.builder-cover-file-name {
    max-width: 220px;
    overflow: hidden;
    font-weight: 800;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.builder-block__order {
    display: grid;
    align-self: start;
    gap: 5px;
}

.builder-block__drag,
.builder-block__move,
.builder-block__copy,
.builder-block__remove {
    border: 0;
    border-radius: 10px;
    background: #efffd3;
    color: var(--ink);
    cursor: grab;
    font-weight: 900;
}

.builder-block__drag,
.builder-block__move {
    width: 44px;
    min-height: 38px;
}

.builder-block__move {
    cursor: pointer;
}

.builder-block__move:disabled {
    opacity: .28;
    cursor: default;
}

.builder-block__move:not(:disabled):hover {
    background: var(--brand);
    color: #fff;
}

.builder-block__actions {
    grid-column: 3;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-self: stretch;
}

.builder-block__copy,
.builder-block__remove {
    padding: 10px 14px;
    cursor: pointer;
}

.builder-block__copy {
    background: #e8f5f4;
    color: var(--brand);
}

.builder-block__copy:hover {
    background: var(--brand);
    color: #fff;
}

.channel-public-head {
    display: grid;
    grid-template-columns: max-content minmax(240px, 1fr) max-content;
    column-gap: 22px;
    padding: 12px 0;
    color: var(--ink);
}

.channel-public-head__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 52px;
    width: 100%;
    max-width: 620px;
    min-width: 0;
    justify-self: center;
}

.channel-public-head__search input {
    min-width: 0;
    height: 42px;
    padding: 0 17px;
    border: 1px solid #cfd8dc;
    border-right: 0;
    border-radius: 22px 0 0 22px;
    outline: 0;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.channel-public-head__search input:focus {
    border-color: var(--brand);
    box-shadow: inset 1px 0 0 var(--brand);
}

.channel-public-head__search button {
    position: relative;
    display: grid;
    height: 42px;
    place-items: center;
    border: 1px solid #cfd8dc;
    border-radius: 0 22px 22px 0;
    background: #f5f7f7;
    cursor: pointer;
}

.channel-public-head__search button span {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.channel-public-head__search button span::after {
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: '';
    transform: rotate(45deg);
}

.channel-public-head span {
    color: var(--brand);
    font-weight: 900;
}

.channel-public-head__actions {
    display: flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
}

.channel-public-head__actions a {
    padding: 9px 12px;
    border-radius: 9px;
    color: var(--ink);
    font-size: 14px;
}

.channel-public-head__actions a:hover {
    background: #eef3f3;
}

.channel-public-head__actions a.is-primary {
    background: var(--ink);
    color: #fff;
}

.channel-public-head__controls {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    justify-self: end;
}

.channel-public-head__handle {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 0 12px;
    border-radius: 999px;
    background: #effffb;
    color: var(--brand) !important;
    font-size: 14px;
    white-space: nowrap;
}

.channel-public-head__toggle {
    display: none;
    border: 0;
    background: transparent;
}

.channel-theme-toggle {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--soft);
    color: var(--ink);
    cursor: pointer;
    font-size: 19px;
}

.channel-mobile-search-toggle {
    display: none;
}

.channel-mobile-search-toggle span {
    position: relative;
    display: block;
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.channel-mobile-search-toggle span::after {
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 7px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    content: '';
    transform: rotate(45deg);
}

.channel-theme-toggle__moon { display: none; }
.channel-theme-dark .channel-theme-toggle__sun { display: none; }
.channel-theme-dark .channel-theme-toggle__moon { display: inline; }

.channel-theme-dark .channel-public-head__brand span,
.channel-theme-dark .channel-public-head__actions a.is-primary {
    background: #f4f7f8;
    color: #091116;
}

.channel-theme-dark .channel-public-head__handle {
    background: #112b29;
}

.channel-theme-dark .channel-public-head__search input {
    border-color: #344149;
    background: #091116;
    color: #f4f7f8;
}

.channel-theme-dark .channel-public-head__search input::placeholder {
    color: #92a0a8;
}

.channel-theme-dark .channel-public-head__search button {
    border-color: #344149;
    background: #172128;
    color: #f4f7f8;
}

.channel-theme-dark .channel-public-head__actions {
    background: #11191f;
}

.channel-theme-dark .channel-public-head__actions a:hover {
    background: #1c282f;
}

.channel-theme-dark .channel-public-head__toggle {
    background: #f4f7f8;
}

.channel-theme-dark .channel-public-head__toggle span {
    background: #091116;
}

.channel-theme-dark .channel-block:not(.channel-block--hero) {
    background: #11191f;
    color: #f4f7f8;
}

.my-channels > h1 {
    margin-top: 0;
}

.my-channels {
    display: grid;
    gap: 14px;
}

.my-channel-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}

.my-channel-card__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.my-channel-card__actions form {
    margin: 0;
}

.my-channel-card div {
    display: grid;
    gap: 5px;
}

.my-channel-card strong {
    font-size: 20px;
}

.my-channel-card span {
    color: var(--muted);
}

.my-channel-card__public-link {
    display: block;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.my-channel-card__public-link:hover strong,
.my-channel-card__public-link:hover span {
    color: #007e78;
    text-decoration: underline;
}

.channel-delete-note {
    display: block;
    margin-top: 7px;
    color: var(--muted);
    font-weight: 700;
}

.channel-delete-note--protected {
    color: #8a5a00;
}

.channel-handle-form {
    margin-top: 14px;
    max-width: 560px;
}

.channel-handle-form > label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.channel-handle-form > div {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-handle-form input {
    min-width: 0;
    flex: 1;
    padding: 11px 12px;
    border: 1px solid #ccd7da;
    border-radius: 10px;
    font: inherit;
}

.channel-handle-form small {
    display: block;
    margin-top: 6px;
    overflow-wrap: anywhere;
}

.channel-handle-form .channel-handle-form__error {
    color: #b42318;
    font-weight: 700;
}

.channel-handle-form__availability.is-available {
    color: #067647;
    font-weight: 800;
}

.channel-handle-form__availability.is-unavailable {
    color: #b42318;
    font-weight: 800;
}

.channel-library-picker,.channel-manager-section{margin:18px 0;padding:22px;border:1px solid #dbe4e6;border-radius:16px;background:#fff}.channel-library-picker>div,.channel-manager-section>header{display:flex;align-items:center;justify-content:space-between;gap:16px}.channel-library-picker>div{display:grid}.channel-library-picker form{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:12px;padding:12px;border-radius:12px;background:#f3f7f7}.builder-toolbar__library{padding:12px 16px;border-radius:999px;background:#eaf0f0;color:#071015;font-weight:800;text-decoration:none}.channel-content-manager>h1{margin:28px 0}.channel-manager-section>header h2{margin:0}.channel-manager-section>header p{margin:5px 0;color:#657276}.channel-manager-grid{display:grid;gap:10px;margin-top:18px}.channel-manager-grid article{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:15px;border:1px solid #e0e7e8;border-radius:12px}.channel-manager-grid article>div:first-child{display:grid;gap:5px}.channel-manager-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.channel-manager-actions a,.channel-manager-actions button{padding:9px 12px;border:0;border-radius:9px;background:#eaf0f0;color:#071015;font-weight:800;text-decoration:none;cursor:pointer}.channel-manager-actions form:last-child button{background:#ffe1dc;color:#a42116}.channel-content-form{max-width:1000px;margin-inline:auto}.content-rich-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:7px}.content-rich-toolbar button{min-height:40px;width:auto;padding:8px 12px}.content-rich-toolbar input{flex:1;min-width:220px}.channel-content-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.channel-publications{margin-top:14px;padding:44px 48px;border-radius:16px;background:#fff;box-shadow:0 18px 45px rgb(7 16 21 / 8%)}.channel-publications>header span{color:#007e78;font-weight:900;text-transform:uppercase}.channel-publications>header h2{margin:5px 0 24px;font-size:clamp(32px,4vw,52px)}.channel-publications__grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.channel-publication-card{overflow:hidden;border:1px solid #e1e8e9;border-radius:15px;background:#fff}.channel-publication-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.channel-publication-card>div{padding:18px}.channel-publication-card time{color:#6a777b;font-size:13px}.channel-publication-card h3{margin:8px 0}.channel-publication-card h3 a{color:#071015;text-decoration:none}.channel-publication-card p{color:#4f5e63}.channel-publication-card__more{color:#007e78;font-weight:900}.channel-publication-page{max-width:1120px;margin:0 auto;padding:48px 24px;color:var(--publication-light-text)}.channel-publication-page>header{display:flex;align-items:center;justify-content:space-between;margin-bottom:24px}.channel-publication-page article{padding:48px;border-radius:20px;background:#fff;box-shadow:0 20px 60px rgb(7 16 21 / 10%)}.channel-publication-page__cover{width:100%;max-height:600px;object-fit:cover;border-radius:15px}.channel-publication-page h1{font-size:clamp(38px,6vw,72px);line-height:1.05}.channel-publication-page__lead{font-size:22px}.channel-publication-page__body{font-size:19px;line-height:1.75;white-space:normal}.channel-publication-page a{color:var(--publication-light-link)}.channel-theme-dark .channel-publications,.channel-theme-dark .channel-publication-card,.channel-theme-dark .channel-publication-page article{background:#111c22;color:#fff}.channel-theme-dark .channel-publication-card h3 a{color:#fff}.channel-theme-dark .channel-publication-page{color:var(--publication-dark-text)}.channel-theme-dark .channel-publication-page a{color:var(--publication-dark-link)}

.channel-library-picker--compact>div{display:flex}.channel-library-picker--compact>div>span{display:grid;gap:5px}.channel-library-picker--compact small{color:#657276}.builder-block.is-library-product>input[name="block_title[]"],.builder-block.is-library-product>.builder-rich-toolbar,.builder-block.is-library-product>textarea[name="block_text[]"],.builder-block.is-library-product>.builder-product-fields,.builder-block.is-library-product>.builder-text-design,.builder-block.is-library-product>.builder-cover-field{display:none!important}.builder-library-product-card{grid-column:3;display:grid;grid-template-columns:110px minmax(0,1fr) auto;align-items:center;gap:18px;padding:16px;border:1px solid #dbe4e6;border-radius:15px;background:#f7fafa}.builder-library-product-card img{width:110px;height:90px;border-radius:10px;object-fit:cover}.builder-library-product-card>div{display:grid;gap:4px}.builder-library-product-card span{color:#008e87;font-size:12px;font-weight:900;text-transform:uppercase}.builder-library-product-card strong{font-size:20px}.builder-library-product-card p{margin:2px 0 0;color:#657276;font-size:13px}.builder-library-product-card a{white-space:nowrap}@media(max-width:760px){.channel-library-picker--compact>div{align-items:flex-start;flex-direction:column}.builder-library-product-card{grid-column:1/-1;grid-template-columns:76px 1fr}.builder-library-product-card img{width:76px;height:70px}.builder-library-product-card>a{grid-column:1/-1;text-align:center}}

@media(max-width:760px){.channel-publications{padding:25px 18px}.channel-publications__grid{grid-template-columns:1fr}.channel-manager-section>header,.channel-manager-grid article{align-items:flex-start;flex-direction:column}.channel-content-options{grid-template-columns:1fr}.channel-publication-page{padding:18px 12px}.channel-publication-page article{padding:24px 18px}}

.channel-product-editor {
    max-width: 1120px;
}

.channel-product-editor .builder-product-fields,
.channel-product-editor .builder-cover-field {
    grid-column: 1 / -1;
}

.channel-product-editor .content-product-toolbar {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9f9;
}

.channel-product-editor .content-product-link-button {
    display: grid !important;
    margin-left: 3px;
    background: var(--ink);
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.channel-product-editor .builder-cover-preview {
    max-height: 560px;
    object-fit: contain;
    background: #eef3f3;
}

@media (max-width: 760px) {
    .channel-product-editor .content-product-toolbar span { width: 100%; }
}

.publication-product-picker{display:grid;gap:10px;padding:18px;border:1px solid #dbe4e6;border-radius:14px}.publication-product-picker legend{padding:0 8px;font-weight:900}.publication-product-picker label{display:flex;align-items:center;gap:12px;padding:12px;border-radius:10px;background:#f3f7f7}.publication-product-picker input{width:20px;height:20px;flex:0 0 auto}.publication-product-picker label span{display:grid;gap:3px}.publication-products{margin-top:42px;padding-top:28px;border-top:1px solid #dbe4e6}.publication-products>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.publication-products article{display:grid;grid-template-columns:150px 1fr;gap:16px;padding:14px;border:1px solid #dbe4e6;border-radius:14px;box-shadow:none}.publication-products img{width:150px;height:150px;object-fit:cover;border-radius:10px}.publication-products article section{display:flex;align-items:flex-start;flex-direction:column}.publication-products h3{margin:0}.publication-products article a{margin-top:auto;padding:9px 13px;border-radius:9px;background:#008e87;color:#fff;font-weight:800;text-decoration:none}@media(max-width:760px){.publication-products>div{grid-template-columns:1fr}.publication-products article{grid-template-columns:100px 1fr}.publication-products img{width:100px;height:100px}}

.channel-publication-editor{width:min(100%,1120px);max-width:1120px;box-sizing:border-box;padding:34px;gap:20px;border-radius:24px;box-shadow:0 20px 60px rgb(7 16 21 / 10%)}
.channel-publication-editor h1{margin:0 0 6px;font-size:clamp(38px,5vw,62px);line-height:1.02}
.channel-publication-editor>label,.channel-publication-editor .builder-cover-field{display:grid;gap:9px;font-weight:900}
.channel-publication-editor textarea[name="body"]{min-height:360px;font-size:17px;line-height:1.6}
.channel-publication-editor .content-publication-toolbar{padding:12px;border:1px solid var(--line);border-radius:12px;background:#f7f9f9}
.channel-publication-editor .content-publication-link-button{display:grid!important;margin-left:3px;background:var(--ink);color:#fff;font-size:18px;font-weight:900}
.channel-publication-editor .builder-cover-preview{max-height:520px;object-fit:contain;background:#eef3f3}
.channel-publication-editor .publication-product-picker{margin:0;padding:22px;background:#f8fafa}
.channel-publication-editor .channel-content-options{padding:20px;border:1px solid var(--line);border-radius:16px;background:#f8fafa}
.channel-publication-editor .channel-content-options label{display:grid;gap:8px;font-weight:900}
.channel-publication-editor .channel-content-options input[type="color"]{width:100%;height:52px;padding:5px;border-radius:11px;cursor:pointer}
.channel-publication-editor>button[type="submit"]{min-height:56px;border-radius:14px;font-size:17px}
@media(max-width:760px){.channel-publication-editor{padding:22px 16px;border-radius:18px}.channel-publication-editor .content-publication-toolbar span{width:100%}.channel-publication-editor textarea[name="body"]{min-height:280px}}

.channel-moderation-badge{display:inline-flex;width:max-content;margin-top:5px;padding:6px 10px;border-radius:999px;font-size:12px;font-weight:900}.channel-moderation-badge.is-pending{background:#fff1c7;color:#875b00}.channel-moderation-badge.is-approved{background:#dff8ed;color:#087049}.channel-moderation-badge.is-rejected{background:#ffe1dc;color:#a42116}.channel-moderation-note{max-width:720px;padding:8px 10px;border-left:3px solid #b42318;background:#fff4f2;color:#8b1d14}.channel-manager-wait{padding:9px 12px;border-radius:9px;background:#fff1c7;color:#875b00;font-size:13px;font-weight:800}
.channel-moderation{padding-bottom:70px}.channel-moderation__heading{margin:26px 0 30px}.channel-moderation__heading>span{color:#008e87;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.channel-moderation__heading h1{margin:5px 0;font-size:clamp(42px,6vw,72px)}.channel-moderation__heading p{font-size:18px;color:#59686c}.channel-moderation__section{margin:20px 0;padding:26px;border:1px solid #dbe4e6;border-radius:20px;background:#fff;box-shadow:0 18px 50px rgb(7 16 21 / 7%)}.channel-moderation__section>header{display:flex;align-items:center;justify-content:space-between;gap:15px}.channel-moderation__section h2{margin:0;font-size:30px}.channel-moderation__section>header span{padding:7px 11px;border-radius:999px;background:#fff1c7;color:#875b00;font-weight:900}.channel-moderation__list{display:grid;gap:14px;margin-top:20px}.channel-moderation__list article{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,380px);gap:24px;padding:20px;border:1px solid #e0e7e8;border-radius:15px;background:#f8fafa}.channel-moderation__copy{display:grid;align-content:start;gap:7px}.channel-moderation__copy h3,.channel-moderation__copy p{margin:0}.channel-moderation__copy small{color:#6b787c}.channel-moderation__copy a{width:max-content;color:#007e78;font-weight:900}.channel-moderation__actions{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start}.channel-moderation__actions form{display:grid;gap:8px}.channel-moderation__actions textarea{min-height:72px;padding:10px;border:1px solid #ccd7d9;border-radius:10px;resize:vertical}.channel-moderation__actions button{min-height:44px;padding:0 16px;border:0;border-radius:10px;color:#fff;font-weight:900;cursor:pointer}.channel-moderation__approve{background:#008e87}.channel-moderation__reject{background:#b42318}.channel-moderation__empty{margin:0;color:#6b787c}@media(max-width:760px){.channel-moderation__section{padding:18px}.channel-moderation__list article{grid-template-columns:1fr}.channel-moderation__actions{grid-template-columns:1fr}}

.channel-moderation__copy details{margin-top:8px;padding:12px;border-radius:11px;background:#fff}.channel-moderation__copy summary{cursor:pointer;font-weight:900}.channel-moderation__copy details>img,.channel-moderation__block img{display:block;width:min(100%,680px);max-height:420px;margin-top:12px;border-radius:10px;object-fit:contain;background:#eef3f3}.channel-moderation__block{margin-top:12px;padding-top:12px;border-top:1px solid #dbe4e6}.channel-moderation__block p,.channel-moderation__full-text{margin-top:7px!important;white-space:pre-wrap;line-height:1.55}
.channels-moderation-link{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 17px;border-radius:999px;background:#008e87;color:#fff;font-weight:900;text-decoration:none}.channels-moderation-link span{display:grid;place-items:center;min-width:24px;height:24px;padding:0 6px;border-radius:999px;background:#fff;color:#00736d;font-size:12px}.channels-moderation-link:hover{background:#00736d}
.channel-review-bar{position:sticky;top:12px;z-index:20;display:flex;align-items:center;gap:20px;margin:0 0 18px;padding:14px 18px;border-radius:15px;background:#071015;color:#fff;box-shadow:0 12px 35px rgb(0 0 0 / 22%)}.channel-review-bar a{padding:10px 13px;border-radius:10px;background:#fff;color:#071015;font-weight:900;text-decoration:none}.channel-review-bar>div{display:grid;gap:3px}.channel-review-bar span{color:#bdc8cb}.channel-block-review{grid-column:1/-1;display:grid;gap:10px;margin-top:22px;padding:16px;border:2px solid #f0b429;border-radius:14px;background:#fff;color:#071015;text-align:left}.channel-block-review>p{margin:0!important;color:#a42116!important;font-size:14px!important}.channel-block-review>div{display:grid;grid-template-columns:auto minmax(260px,460px);gap:10px;align-items:start}.channel-block-review form{display:grid;gap:8px}.channel-block-review textarea{min-height:62px;padding:10px;border:1px solid #ccd7d9;border-radius:10px;resize:vertical}.channel-block-review button{min-height:42px;padding:0 15px;border:0;border-radius:10px;color:#fff;font-weight:900;cursor:pointer}@media(max-width:760px){.channel-review-bar{position:static;align-items:flex-start;flex-direction:column}.channel-block-review>div{grid-template-columns:1fr}}
.builder-block-moderation{grid-column:3;display:flex;align-items:center;flex-wrap:wrap;gap:10px}.builder-block-moderation small{padding:7px 10px;border-left:3px solid #b42318;background:#fff4f2;color:#8b1d14}@media(max-width:760px){.builder-block-moderation{grid-column:1/-1}}

.channels-delete {
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 12px;
    background: #b42318;
    color: #fff;
    cursor: pointer;
    font-weight: 900;
}

.channels-delete:hover,
.channels-delete:focus-visible {
    background: #8f1c14;
}

/* Standalone product editor: builder controls must not create implicit columns. */
.channel-product-editor {
    width: min(100%, 1120px);
    max-width: 1120px;
    grid-template-columns: minmax(0, 1fr);
    box-sizing: border-box;
}

.channel-product-editor > *,
.channel-product-editor > .builder-rich-toolbar,
.channel-product-editor > .builder-product-fields,
.channel-product-editor > .builder-cover-field,
.channel-product-editor > button {
    grid-column: 1 / -1;
    min-width: 0;
}

.channel-product-editor .builder-product-fields {
    width: 100%;
    box-sizing: border-box;
    grid-template-columns: minmax(180px, .65fr) minmax(0, 1.35fr);
}

.channel-product-editor .builder-product-destination__switch button:hover,
.channel-product-editor .builder-product-destination__switch button:focus-visible {
    background: var(--brand);
    color: #fff;
}

.channel-product-editor .builder-product-destination__switch button.is-active,
.channel-product-editor .builder-product-destination__switch button.is-active:hover,
.channel-product-editor .builder-product-destination__switch button.is-active:focus-visible {
    background: #fff;
    color: var(--ink);
}

.channel-product-editor > button[type="submit"] {
    width: 100%;
}

.channel-manager-section > header > .channels-create {
    width: auto;
    min-width: max-content;
    white-space: nowrap;
}

@media (max-width: 760px) {
    .channel-product-editor .builder-product-fields { grid-template-columns: 1fr; }
    .channel-product-editor .builder-product-fields > * { grid-column: 1 / -1; }
    .channel-product-editor .builder-product-sections { grid-template-columns: 1fr; }
    .channel-product-editor .builder-cover-dropzone { grid-template-columns: 46px 1fr; }
    .channel-product-editor .builder-cover-file-name { grid-column: 1 / -1; text-align: left; }
}

.channel-admin-delete-info {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #f0c9c6;
    border-radius: 10px;
    background: #fff4f2;
    color: #6f1d17;
    font-size: 13px;
    line-height: 1.5;
}

.channel-admin-delete-info code {
    font-weight: 900;
}

.channel-access-panel {
    grid-column: 1 / -1;
    margin-top: 14px;
    padding: 16px;
    border: 1px solid #dce6e8;
    border-radius: 14px;
    background: #f7fafb;
}

.channel-access-panel__actions,
.channel-collaborator-form,
.channel-collaborator-list > div {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.channel-access-panel__actions form,
.channel-collaborator-list form { margin: 0; }

.channel-collaborator-form label {
    display: flex;
    align-items: center;
    gap: 8px;
}

.channel-collaborator-form input[type="number"] {
    min-width: 180px;
    padding: 11px 13px;
    border: 1px solid #ccd8dc;
    border-radius: 10px;
}

.channel-collaborator-list > div {
    justify-content: space-between;
    padding-top: 10px;
    border-top: 1px solid #dce6e8;
}

.channel-block {
    margin-bottom: 14px;
    padding: clamp(22px, 5vw, 56px);
}

.channel-block--hero {
    min-height: 320px;
    display: grid;
    align-content: center;
    background: linear-gradient(135deg, var(--hero-light-from, #fff), var(--hero-light-to, #eef7f5));
    color: var(--ink);
    box-shadow: inset 7px 0 0 var(--hero-light-accent, #007e78), 0 24px 70px rgb(7 16 21 / 10%);
}

.channel-theme-dark .channel-block--hero {
    background: linear-gradient(135deg, var(--hero-dark-from, #101820), var(--hero-dark-to, #1d3557));
    box-shadow: inset 7px 0 0 var(--hero-dark-accent, #00b8b0), 0 24px 70px rgb(0 0 0 / 28%);
    color: #fff;
}

.channel-theme-dark .channel-block--hero h1,
.channel-theme-dark .channel-block--hero p { color: #fff; }

.channel-block p {
    max-width: 760px;
    margin: 0;
    color: inherit;
    font-size: var(--block-body-size, 18px);
    line-height: 1.65;
    text-align: var(--block-align, left);
    color: var(--block-light-text, inherit);
}

.channel-block h1{font-size:var(--block-title-size,58px);font-weight:var(--block-title-weight,800);text-align:var(--block-align,left);color:var(--block-light-text,var(--ink))}
.channel-theme-dark .channel-block h1,.channel-theme-dark .channel-block p{color:var(--block-dark-text,#fff)}

.channel-block__cover {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    margin-bottom: 24px;
    border-radius: 12px;
    object-fit: contain;
}

.channel-card__cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.channel-card__cover img + span {
    display: none;
}

@media (max-width: 1100px) {
    .channel-public-head {
        column-gap: 12px;
    }

    .channel-public-head__search {
        max-width: 380px;
    }

    .channel-public-head__actions a {
        padding-inline: 9px;
        font-size: 13px;
    }

    .channels-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 940px) and (min-width: 721px) {
    .channel-public-head {
        grid-template-columns: max-content 1fr;
    }

    .channel-public-head__search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .channel-public-head__controls {
        grid-column: 2;
        grid-row: 1;
    }
}

@media (max-width: 820px) {
    .channels-topbar {
        grid-template-columns: 1fr auto;
        padding: 12px 14px;
    }

    .channels-top-search {
        grid-column: 1 / -1;
        grid-row: 2;
    }

    .channels-layout {
        grid-template-columns: 1fr;
    }

    .channels-sidebar {
        display: none;
    }

    .channels-feed {
        padding: 14px 14px 46px;
    }

    .channels-chips {
        top: 118px;
    }

    .channels-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .channels-shell,
    .channel-page {
        width: min(100% - 18px, 560px);
        padding-top: 16px;
    }

    .channel-page--product-grid {
        grid-template-columns: 1fr;
    }

    .builder-product-sections {
        grid-template-columns: 1fr;
    }

    .channels-head,
    .channel-public-head {
        align-items: center;
    }

    .my-channel-card {
        align-items: stretch;
        grid-template-columns: 1fr;
    }

    .channel-public-head {
        position: relative;
        z-index: 20;
        grid-template-columns: auto 1fr;
        row-gap: 10px;
        padding: 7px 0 13px;
    }

    .channel-public-head__search {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        grid-template-columns: minmax(0, 1fr) 48px;
        margin-top: 0;
        max-width: none;
    }

    .channel-public-head.is-search-open .channel-public-head__search {
        display: grid;
    }

    .channel-mobile-search-toggle {
        display: grid;
        width: 42px;
        height: 42px;
        flex: 0 0 auto;
        place-items: center;
        border: 0;
        border-radius: 50%;
        background: transparent;
        color: var(--ink);
        cursor: pointer;
    }

    .channel-mobile-search-toggle:hover,
    .channel-mobile-search-toggle:focus-visible,
    .channel-public-head.is-search-open .channel-mobile-search-toggle {
        background: #eef3f3;
        outline: 0;
    }

    .channel-theme-dark .channel-mobile-search-toggle {
        color: #f4f7f8;
    }

    .channel-theme-dark .channel-mobile-search-toggle:hover,
    .channel-theme-dark .channel-mobile-search-toggle:focus-visible,
    .channel-theme-dark .channel-public-head.is-search-open .channel-mobile-search-toggle {
        background: #172128;
    }

    .channel-public-head__search input,
    .channel-public-head__search button {
        height: 44px;
    }

    .channel-public-head__search input {
        padding-inline: 15px;
        font-size: 16px;
    }

    .channel-public-head__brand b {
        display: none;
    }

    .channel-public-head__controls {
        min-width: 0;
        margin-left: auto;
        gap: 7px;
    }

    .channel-public-head__handle {
        display: block;
        max-width: 104px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .channel-public-head__toggle {
        display: grid;
        width: 42px;
        height: 42px;
        place-content: center;
        gap: 4px;
        border-radius: 12px;
        background: var(--ink);
        cursor: pointer;
    }

    .channel-public-head__toggle span {
        display: block;
        width: 18px;
        height: 2px;
        border-radius: 2px;
        background: #fff;
    }

    .channel-public-head__toggle b {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }

    .channel-public-head__actions {
        position: absolute;
        top: calc(100% + 8px);
        right: 0;
        display: none;
        width: min(250px, calc(100vw - 28px));
        box-sizing: border-box;
        padding: 8px;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: #fff;
        box-shadow: 0 20px 55px rgb(7 16 21 / 18%);
    }

    .channel-public-head.is-menu-open .channel-public-head__actions {
        display: grid;
    }

    .channel-public-head__actions a {
        padding: 12px 13px;
    }

    .channel-form {
        padding: 16px;
    }

    .builder-block {
        grid-template-columns: 42px 1fr;
    }

    .builder-block input,
    .builder-block textarea,
    .builder-rich-toolbar,
    .builder-product-fields,
    .builder-cover-field,
    .builder-block__actions {
        grid-column: 1 / -1;
    }

    .builder-type-switch,
    .builder-type-label {
        grid-column: 2;
    }

    .builder-type-switch button {
        text-align: center;
    }

    .builder-cover-dropzone {
        grid-template-columns: 46px 1fr;
    }

    .builder-cover-dropzone__icon {
        width: 46px;
        height: 46px;
    }

    .builder-cover-file-name {
        grid-column: 1 / -1;
        max-width: none;
        text-align: left;
    }

    .builder-cover-design { grid-template-columns: 1fr; }
    .builder-product-fields { grid-template-columns: 1fr; }
    .builder-product-fields label:last-child { grid-column: auto; }
    .builder-product-destination,
    .builder-product-url,
    .builder-product-slug { grid-column: auto; }
    .builder-product-destination__switch { grid-template-columns: 1fr; }
    .builder-product-slug__input { display: grid; padding-top: 9px; }
    .builder-product-slug__input > span { padding: 0 12px; }
    .builder-product-slug__input input { min-width: 0; width: 100%; }
    .channel-block--product { grid-template-columns: 1fr; gap: 18px; }
    .channel-product__image { max-height: 360px; }
    .channel-block a.channel-product__button { width: 100%; box-sizing: border-box; }
    .channel-block a.channel-product__button--discount { width: auto; }
    .channel-product-page__head { align-items: flex-start; }
    .channel-product-page__head .channel-public-head__brand b { display: none; }
    .channel-product-detail { grid-template-columns: 1fr; padding: 18px; gap: 24px; }
    .channel-product-detail__image { max-height: 420px; }
    .builder-text-design{grid-column:1/-1}.builder-text-colors{grid-template-columns:1fr}
    .builder-text-colors>strong{grid-column:auto}
}

@media (max-width: 390px) {
    .channel-public-head__handle {
        max-width: 78px;
        padding-inline: 9px;
    }

    .channel-theme-toggle {
        width: 36px;
        height: 36px;
    }

    .channel-mobile-search-toggle {
        width: 36px;
        height: 36px;
    }

    .channel-public-head__toggle {
        width: 38px;
        height: 38px;
    }
}

@media (max-width: 520px) {
    .builder-link-modal {
        align-items: end;
        padding: 10px;
    }

    .builder-link-modal__dialog {
        padding: 24px 18px 18px;
        border-radius: 20px;
    }

    .builder-link-modal__dialog h2 {
        padding-right: 38px;
        font-size: 24px;
    }

    .builder-link-modal__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Channel-owned product catalog and YML import. */
.channel-catalog-manager { display: grid; gap: 18px; }
.channel-yml-import,
.channel-product-filter,
.channel-catalog-bulk__bar,
.channel-load-more {
    border: 1px solid #cfe1df;
    border-radius: 18px;
    background: #f4f9f8;
    padding: 16px;
}
.channel-yml-import { display: grid; grid-template-columns: minmax(240px,1fr) minmax(240px,1fr) auto; align-items: end; gap: 14px; }
.channel-yml-import div,
.channel-yml-import label { display: grid; gap: 6px; }
.channel-yml-import small { color: #587074; font-weight: 500; line-height: 1.4; }
.channel-yml-import input,
.channel-product-filter input,
.channel-product-filter select {
    width: 100%; box-sizing: border-box; border: 1px solid #bed6d3; border-radius: 12px; background: #fff; padding: 12px 14px; color: #17373c;
}
.channel-yml-import button,
.channel-product-filter button,
.channel-catalog-bulk__bar button,
.channel-products-more,
.channel-load-more a {
    border: 0; border-radius: 12px; background: #087d76; color: #fff; padding: 13px 18px; font: inherit; font-weight: 800; text-decoration: none; cursor: pointer;
}
.channel-yml-import button:disabled { opacity: .65; cursor: wait; }
.channel-yml-progress { grid-column: 1 / -1; display: grid; gap: 9px; border-radius: 14px; background: #fff; padding: 14px; }
.channel-yml-progress[hidden] { display: none; }
.channel-yml-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.channel-yml-progress progress { width: 100%; height: 18px; overflow: hidden; border: 0; border-radius: 999px; accent-color: #07877f; }
.channel-yml-progress progress::-webkit-progress-bar { background: #dce9e7; border-radius: 999px; }
.channel-yml-progress progress::-webkit-progress-value { background: linear-gradient(90deg,#087d76,#16aaa1); border-radius: 999px; transition: width .25s ease; }
.channel-yml-progress progress::-moz-progress-bar { background: linear-gradient(90deg,#087d76,#16aaa1); border-radius: 999px; }
.channel-yml-progress small { color: #587074; }
.channel-product-filter { display: grid; grid-template-columns: repeat(5,minmax(120px,1fr)) auto auto; align-items: end; gap: 12px; }
.channel-product-filter label { display: grid; gap: 5px; font-weight: 800; font-size: 13px; }
.channel-product-filter > a { padding: 12px; color: #087d76; font-weight: 800; text-align: center; }
.channel-catalog-bulk { display: grid; gap: 14px; }
.channel-catalog-bulk__bar { display: flex; align-items: center; gap: 18px; }
.channel-catalog-bulk__bar span { margin-left: auto; color: #587074; }
.channel-product-library-grid article { grid-template-columns: auto minmax(0,1fr) auto; }
.channel-product-check { display: grid; justify-items: center; gap: 5px; font-size: 12px; font-weight: 800; color: #087d76; }
.channel-product-check input { width: 20px; height: 20px; accent-color: #087d76; }
.channel-product-category { display: inline-flex; width: fit-content; border-radius: 999px; background: #dcefed; color: #086e68; padding: 5px 10px; font-weight: 800; }
.channel-load-more { display: flex; justify-content: center; align-items: center; gap: 18px; }
.channel-product-categories { display: flex; gap: 8px; overflow-x: auto; padding: 6px 0 12px; scrollbar-width: thin; }
.channel-product-categories button,.channel-product-categories a { flex: 0 0 auto; border: 1px solid #bcd7d4; border-radius: 999px; background: #fff; color: #174247; padding: 9px 14px; font: inherit; font-weight: 800; cursor: pointer; text-decoration: none; }
.channel-product-categories button.is-active,.channel-product-categories a.is-active { border-color: #087d76; background: #087d76; color: #fff; }
.channel-product-categories--public { width: min(1180px,calc(100% - 32px)); margin: 0 auto 14px; }
.channel-page--product-grid > .channel-product-categories--public { grid-column: 1 / -1; width: 100%; box-sizing: border-box; }
.channel-category-result { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 1px solid #b8d9d6; border-left: 5px solid #087d76; border-radius: 14px; background: #eff8f7; padding: 13px 16px; }
.channel-category-result > div { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 12px; }
.channel-category-result small { color: #587074; }
.channel-category-result strong { font-size: 20px; }
.channel-category-result a { border-radius: 10px; background: #087d76; color: #fff; padding: 9px 13px; font-weight: 800; text-decoration: none; }
.channel-category-result a span { font-weight: 600; opacity: .82; }
.channel-product-category--link { text-decoration: none; }
.channel-product-category--link:hover,.channel-product-category--link:focus-visible { outline: 2px solid #087d76; outline-offset: 2px; }
.channel-products-more { display: block; width: min(360px,calc(100% - 32px)); margin: 18px auto 34px; }
.channel-page--product-grid > .channel-products-more--public { grid-column: 1 / -1; justify-self: center; }
.channel-category-library { border: 1px solid #cfe1df; border-radius: 14px; background: #f7fbfa; }
.channel-category-library > summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 15px; cursor: pointer; list-style: none; }
.channel-category-library > summary::-webkit-details-marker { display: none; }
.channel-category-library > summary span { display: grid; gap: 2px; }
.channel-category-library > summary small { color: #587074; font-weight: 500; }
.channel-category-library > summary::after { content: 'Развернуть'; color: #087d76; font-weight: 850; }
.channel-category-library[open] > summary::after { content: 'Свернуть'; }
.channel-category-library__body { display: grid; gap: 14px; padding: 0 12px 12px; }
.channel-category-library > header { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.channel-category-library h3 { margin: 0 0 5px; font-size: 22px; }
.channel-category-library p { margin: 0; color: #587074; }
.channel-category-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
.channel-category-grid article { display: grid; align-content: start; gap: 8px; border: 1px solid #cfe1df; border-radius: 12px; background: #f7fbfa; padding: 10px; }
.channel-category-grid article > div { display: grid; gap: 4px; }
.channel-category-grid small { color: #587074; }
.channel-category-grid .channel-manager-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.channel-category-grid .channel-manager-actions form { order: 3; display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 6px; width: 100%; }
.channel-category-grid .channel-target-picker { min-width: 0; }
.channel-category-grid .channel-target-picker > input[type="search"] { min-height: 34px; padding: 6px 9px; font-size: 13px; }
.channel-category-grid .channel-manager-actions > button { margin-left: auto; }
.channel-category-grid button,.channel-category-grid a { width: auto; border: 0; border-radius: 8px; background: #e1efed; color: #086e68; padding: 7px 10px; font-size: 13px; font-weight: 800; line-height: 1.2; text-decoration: none; cursor: pointer; }
.channel-category-grid form button { white-space: nowrap; }
.channel-catalog-operations { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: 12px; border: 1px solid #cfe1df; border-radius: 18px; background: #f4f9f8; padding: 16px; }
.channel-catalog-operations label { display: grid; grid-template-columns: 1fr auto; gap: 7px; }
.channel-catalog-operations label > span { grid-column: 1 / -1; font-size: 13px; font-weight: 800; }
.channel-catalog-operations input { min-width: 0; border: 1px solid #bed6d3; border-radius: 12px; padding: 11px 13px; }
.channel-catalog-operations button { border: 0; border-radius: 12px; background: #087d76; color: #fff; padding: 11px 14px; font: inherit; font-weight: 800; cursor: pointer; }
.channel-catalog-hint { margin: 9px 4px 15px; color: #587074; font-size: 13px; }
.channel-range-actions { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); align-items: start; gap: 10px; margin: 14px 0; padding: 14px; border: 1px solid #78b9b4; border-radius: 14px; background: #eef8f6; }
.channel-range-actions > header { grid-column: 1 / -1; display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.channel-range-actions > header small { color: #587074; }
.channel-range-actions label { display: grid; grid-template-columns: minmax(0,1fr); align-content: start; gap: 7px; }
.channel-range-actions label span { font-size: 14px; font-weight: 800; }
.channel-range-actions input,.channel-range-actions select { box-sizing: border-box; width: 100%; min-width: 0; min-height: 40px; border: 1px solid #b9d4d1; border-radius: 9px; padding: 8px 10px; background: #fff; }
.channel-range-actions button { align-self: end; min-height: 42px; border: 0; border-radius: 9px; padding: 9px 12px; background: #087d76; color: #fff; font: inherit; font-size: 14px; font-weight: 850; line-height: 1.2; cursor: pointer; }
.channel-range-actions > button { margin-top: 25px; }
.channel-range-actions [hidden] { display: none !important; }
.channel-bulk-progress { grid-column: 1 / -1; display: grid; gap: 7px; margin-top: 4px; padding: 12px; border-radius: 10px; background: #fff; }
.channel-bulk-progress > div { display: flex; justify-content: space-between; gap: 12px; }
.channel-bulk-progress progress { width: 100%; height: 18px; accent-color: #087d76; }
.channel-bulk-progress small { color: #526a72; }
.channel-range-summary { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 10px; border-left: 5px solid #087d76; border-radius: 14px; background: #eef7f5; padding: 14px 16px; }
.channel-range-summary span,.channel-range-summary b { border-radius: 999px; background: #fff; padding: 6px 10px; }
.channel-range-summary small { grid-column: 1 / -1; color: #587074; }
.channel-storefront-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; border: 1px solid #b8d9d6; border-radius: 14px; background: #f4fbfa; padding: 12px 16px; }
.channel-storefront-summary strong { color: #075f5a; }
.channel-storefront-summary span { border-radius: 999px; background: #fff; padding: 6px 10px; }
.channel-storefront-summary small { width: 100%; color: #587074; }
.channel-category-block { display: grid; justify-items: start; gap: 10px; }
.channel-category-block > * { margin: 0; }
[data-channel-product][hidden], [data-publication-product][hidden] { display: none !important; }
.channel-theme-dark .channel-product-categories button,.channel-theme-dark .channel-product-categories a { background: #17242b; border-color: #416068; color: #eefafa; }
.channel-theme-dark .channel-product-categories button.is-active,.channel-theme-dark .channel-product-categories a.is-active { background: #36bdb5; border-color: #36bdb5; color: #071416; }
.channel-theme-dark .channel-product-category { background: #254846; color: #79e2dc; }

/* Public product category: stable cards and full-size cover preview. */
.channel-category-page { max-width: 1280px; }
.channel-category-page > article { padding: clamp(24px,4vw,48px); }
.channel-category-page > article > h1 { margin: 46px 0 18px; }
.channel-category-page .channel-publication-page__lead { margin: 0; }
.channel-category-products { margin-top: 32px; padding-top: 28px; }
.channel-category-products > div { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; align-items: stretch; }
.channel-category-products article { display: flex; min-width: 0; height: 100%; overflow: hidden; flex-direction: column; gap: 0; padding: 0; border: 1px solid #d6e2e3; border-radius: 18px; background: #fff; }
.channel-product-image-button { position: relative; display: block; width: 100%; aspect-ratio: 4 / 3; overflow: hidden; padding: 0; border: 0; border-bottom: 1px solid #d6e2e3; background: #edf3f3; cursor: zoom-in; }
.channel-product-image-button::after { content: '⤢'; position: absolute; right: 10px; bottom: 10px; display: grid; width: 34px; height: 34px; place-items: center; border-radius: 50%; background: rgb(7 22 27 / 78%); color: #fff; font-size: 19px; opacity: 0; transform: translateY(4px); transition: opacity .18s ease,transform .18s ease; }
.channel-product-image-button:hover::after,.channel-product-image-button:focus-visible::after { opacity: 1; transform: none; }
.channel-category-products .channel-product-image-button img { display: block; width: 100%; height: 100%; border-radius: 0; object-fit: contain; background: #fff; transition: transform .22s ease; }
.channel-product-image-button:hover img { transform: scale(1.025); }
.channel-category-products article > section { display: flex; flex: 1; align-items: stretch; padding: 18px; }
.channel-category-products h3 { margin: 0; font-size: 18px; line-height: 1.28; overflow-wrap: anywhere; }
.channel-category-products article p { margin: 12px 0 16px; color: #44565b; line-height: 1.42; }
.channel-category-product__footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; width: 100%; margin-top: auto; }
.channel-category-product__footer strong { font-size: 18px; }
.channel-category-products .channel-category-product__footer a { margin: 0; }
.channel-theme-dark .channel-category-products article { border-color: #334850; background: #111c22; }
.channel-theme-dark .channel-category-products article p { color: #c0d0d3; }
.channel-theme-dark .channel-product-image-button { border-color: #334850; background: #17242b; }
.channel-theme-dark .channel-category-products .channel-product-image-button img { background: #eef2f2; }
.channel-lightbox-open { overflow: hidden; }
.channel-image-lightbox[hidden] { display: none; }
.channel-image-lightbox { position: fixed; z-index: 10000; inset: 0; display: grid; place-items: center; padding: 28px; }
.channel-image-lightbox__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; background: rgb(2 9 12 / 88%); cursor: zoom-out; }
.channel-image-lightbox figure { position: relative; z-index: 1; display: grid; max-width: min(1100px,94vw); max-height: 92vh; margin: 0; justify-items: center; }
.channel-image-lightbox img { display: block; max-width: 100%; max-height: calc(92vh - 54px); border-radius: 14px; background: #fff; object-fit: contain; box-shadow: 0 28px 90px rgb(0 0 0 / 48%); }
.channel-image-lightbox figcaption { max-width: 900px; padding: 12px 48px 0; color: #fff; font-weight: 800; text-align: center; }
.channel-image-lightbox__product { margin-top: 12px; border-radius: 10px; background: #0a8b83; color: #fff; padding: 10px 16px; font-size: 14px; font-weight: 850; text-decoration: none; }
.channel-image-lightbox__product:hover,.channel-image-lightbox__product:focus-visible { background: #08736d; }
.channel-image-lightbox__close { position: absolute; z-index: 2; top: -18px; right: -18px; display: grid; width: 46px; height: 46px; place-items: center; padding: 0 0 4px; border: 2px solid #fff; border-radius: 50%; background: #0a7772; color: #fff; font: 700 32px/1 sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgb(0 0 0 / 35%); }

@media (max-width: 980px) {
    .channel-category-products > div { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
    .channel-category-page { padding: 24px 12px; }
    .channel-category-page > header { gap: 12px; }
    .channel-category-page > article { padding: 22px 14px; border-radius: 16px; }
    .channel-category-page > article > h1 { margin-top: 30px; font-size: clamp(38px,14vw,58px); }
    .channel-category-page .channel-publication-page__lead { font-size: 18px; }
    .channel-category-products > div { grid-template-columns: 1fr; }
    .channel-category-products article { grid-template-columns: 1fr; }
    .channel-category-products .channel-product-image-button img { width: 100%; height: 100%; }
    .channel-image-lightbox { padding: 14px; }
    .channel-image-lightbox__close { top: 8px; right: 8px; }
    .channel-image-lightbox figcaption { padding-inline: 12px; }
}

/* Service widgets are an independent channel library, separate from products. */
.channel-widget-manager > header { align-items: flex-start; }
.channel-widget-category-library { margin-top: 20px; padding: 18px; border: 1px solid #cfe1df; border-radius: 16px; background: #f5faf9; }
.channel-widget-category-library h3 { margin: 0 0 12px; }
.channel-widget-category-library > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.channel-widget-category-library article { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border-radius: 12px; background: #fff; }
.channel-widget-category-library article > span { display: grid; gap: 4px; }
.channel-widget-category-library small { color: #65777a; }
.channel-widget-library-grid article > div:first-child { align-items: start; }
.channel-widget-library-grid .channel-product-category { width: fit-content; }
.channel-uncategorized-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 18px; }
.channel-uncategorized-heading h3 { margin: 0; }
.channel-uncategorized-heading small { color: #587074; }
.channel-widget-editor { max-width: 1320px; }
.channel-manager-create-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 9px; }
.channel-transfer-guide { max-width: 1180px; }
.channel-transfer-guide__hero,.channel-transfer-guide>section:not(.channel-transfer-guide__hero) { margin: 18px 0; padding: 28px; border: 1px solid #dbe4e6; border-radius: 18px; background: #fff; }
.channel-transfer-guide__hero small { color: #087d76; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.channel-transfer-guide__hero h1 { margin: 9px 0 12px; font-size: clamp(30px,5vw,52px); line-height: 1.05; }
.channel-transfer-guide__hero p,.channel-transfer-guide section p,.channel-transfer-guide li { line-height: 1.6; }
.channel-transfer-guide__nav { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; border: 1px solid #dbe4e6; border-radius: 14px; background: rgb(255 255 255 / 94%); backdrop-filter: blur(10px); }
.channel-transfer-guide__nav a { padding: 8px 11px; border-radius: 9px; background: #edf4f3; color: #087d76; font-weight: 800; text-decoration: none; }
.channel-transfer-guide h2 { margin-top: 0; }
.channel-transfer-guide code { overflow-wrap: anywhere; }
.channel-transfer-guide pre { overflow: auto; padding: 18px; border-radius: 13px; background: #071015; color: #e9ffff; line-height: 1.55; }
.channel-transfer-guide__downloads { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.channel-transfer-guide__downloads a { display: grid; gap: 5px; padding: 14px; border: 1px solid #cfe0df; border-radius: 12px; color: #071015; text-decoration: none; }
.channel-transfer-guide__downloads span { color: #087d76; font-weight: 800; }
.channel-transfer-guide__table { overflow-x: auto; }
.channel-transfer-guide table { width: 100%; border-collapse: collapse; }
.channel-transfer-guide th,.channel-transfer-guide td { padding: 12px; border-bottom: 1px solid #dbe4e6; text-align: left; vertical-align: top; }
.channel-transfer-guide__warning { padding: 16px; border-left: 4px solid #c57b00; border-radius: 10px; background: #fff6df; }
@media(max-width:700px){.channel-transfer-guide__downloads{grid-template-columns:1fr}.channel-transfer-guide__hero,.channel-transfer-guide>section:not(.channel-transfer-guide__hero){padding:19px 15px}}
.channel-widget-editor > form { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(360px,.95fr); gap: 28px; align-items: start; }
.channel-widget-editor__form { display: grid; gap: 18px; padding: 32px; border: 1px solid #dce7e8; border-radius: 22px; background: #fff; box-shadow: 0 18px 50px rgb(7 16 21 / 8%); }
.channel-widget-editor__form h1,.channel-widget-editor__form p { margin: 0; }
.channel-widget-editor__eyebrow { color: #087d76; font-size: 13px; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; }
.channel-widget-editor__form > label,.channel-widget-editor fieldset label { display: grid; gap: 7px; font-weight: 800; }
.channel-widget-editor__form label small { color: #66777b; font-weight: 400; }
.channel-widget-editor__form input:not([type=color]),.channel-widget-editor__form textarea { width: 100%; box-sizing: border-box; border: 1px solid #c7d9dc; border-radius: 12px; background: #fbfdfd; padding: 12px 14px; color: #071015; font: inherit; }
.channel-widget-editor__form input[type=color] { width: 72px; height: 46px; padding: 4px; border: 1px solid #c7d9dc; border-radius: 10px; background: #fff; }
.channel-widget-editor__form fieldset { display: grid; gap: 13px; margin: 0; padding: 18px; border: 1px solid #dce7e8; border-radius: 16px; }
.channel-widget-editor__form legend { padding: 0 8px; font-weight: 900; }
.channel-widget-editor__action { display: grid; grid-template-columns: .7fr 1.3fr; gap: 12px; }
.channel-widget-editor__form > button { border: 0; border-radius: 13px; background: #087d76; color: #fff; padding: 14px 20px; font: inherit; font-weight: 900; cursor: pointer; }
.channel-widget-editor__preview { position: sticky; top: 24px; display: grid; gap: 10px; }
.channel-widget-editor__preview > span { color: #647579; font-size: 13px; font-weight: 900; text-transform: uppercase; }
.channel-service-widget { display: grid; width: 100%; box-sizing: border-box; gap: 22px; padding: clamp(24px,4vw,42px); border: 1px solid #e0e7eb; border-radius: 20px; background: #fff; color: #111820; box-shadow: 0 18px 52px rgb(20 38 55 / 9%); text-align: left; }
.channel-service-widget__copy { display: grid; gap: 10px; }
.channel-service-widget__embed { width: 100%; min-width: 0; }
.channel-service-widget__embed-frame { display: block; width: 100%; height: 520px; border: 0; background: transparent; }
.channel-service-widget__embed-preview { display: grid; gap: 8px; padding: 18px; border: 1px dashed #b8c9d0; border-radius: 12px; background: #f4f8f8; }
.channel-service-widget__embed-preview code { overflow-wrap: anywhere; color: #007e78; }
.channel-service-widget__embed-preview small { color: #69777e; }
.channel-service-widget__copy small { width: fit-content; border-radius: 999px; background: color-mix(in srgb,var(--widget-accent) 12%,white); color: var(--widget-accent); padding: 5px 9px; font-weight: 900; }
.channel-service-widget h2 { margin: 0; font-size: clamp(25px,3.4vw,38px); line-height: 1.08; }
.channel-service-widget p { margin: 0; color: #69777e; font-size: 17px; line-height: 1.55; }
.channel-service-widget__field { display: grid; grid-template-columns: auto minmax(180px,360px); align-items: center; width: fit-content; max-width: 100%; overflow: hidden; border: 1px solid #d4dde2; border-radius: 9px; background: #fff; }
.channel-service-widget__field span { padding: 10px 13px; border-right: 1px solid #d4dde2; font-weight: 800; }
.channel-service-widget__field input { min-width: 0; border: 0; outline: 0; padding: 10px 13px; color: #111820; font: inherit; }
.channel-service-widget__actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.channel-service-widget__actions a { border: 1px solid transparent; border-radius: 9px; padding: 11px 18px; font-weight: 900; text-decoration: none; }
.channel-service-widget__actions a.is-primary { background: var(--widget-accent); color: #fff; }
.channel-service-widget__actions a.is-secondary { border-color: color-mix(in srgb,var(--widget-accent) 22%,white); background: color-mix(in srgb,var(--widget-accent) 12%,white); color: var(--widget-accent); }
.channel-service-widget__actions a.is-link { padding-inline: 0; color: var(--widget-accent); }
.channel-service-widget__text-links { display: grid; justify-items: start; gap: 6px; }
.channel-service-widget__text-links a { color: var(--widget-accent); font-weight: 850; text-decoration: none; }
.channel-service-widget__text-links a:hover { text-decoration: underline; }
.channel-target-picker { position: relative; display: grid; gap: 3px; min-width: min(320px, 78vw); }
.channel-target-picker > small { color: #587074; font-size: 11px; font-weight: 750; }
.channel-target-picker > strong { overflow: hidden; color: #103b3e; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.channel-target-picker > input[type="search"] { width: 100%; min-height: 40px; border: 1px solid #b9d4d1; border-radius: 10px; padding: 8px 11px; background: #fff; color: #122b35; font: inherit; }
.channel-target-picker.is-selected > strong::before { content: '✓ '; color: #087d76; }
.builder-save-actions { display: grid; grid-template-columns: auto minmax(260px,1fr); align-items: center; gap: 10px; }
.builder-save-actions > a { border: 1px solid #bfd4d3; border-radius: 10px; padding: 11px 14px; color: #086e68; font-weight: 850; text-decoration: none; }
.builder-save-actions > button { margin: 0; }
.channel-target-picker__results { position: absolute; z-index: 40; top: calc(100% + 4px); left: 0; right: 0; max-height: 260px; overflow: auto; padding: 6px; border: 1px solid #bdd6d4; border-radius: 10px; background: #fff; box-shadow: 0 16px 35px rgb(7 16 21 / 18%); }
.channel-target-picker__results button { display: block; width: 100%; padding: 9px 10px; border: 0; border-radius: 7px; background: transparent; color: #122b35; text-align: left; font: inherit; cursor: pointer; }
.channel-target-picker__results button:hover { background: #e7f4f2; }
.channel-target-picker__results small { display: block; padding: 9px; color: #66767d; }
.channel-product-id-range { align-self: end; padding: 9px 4px; color: #526a72; }
.channel-category-id-filter,.publication-category-id-filter { display: flex; align-items: end; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; }
.channel-category-id-filter label,.publication-category-id-filter label { display: grid; gap: 5px; font-weight: 800; }
.channel-service-widget__features { display: flex; flex-wrap: wrap; gap: 12px 22px; margin: 0; padding: 0; list-style: none; }
.channel-service-widget__features li { position: relative; padding-left: 24px; }
.channel-service-widget__features li::before { content: '✓'; position: absolute; left: 0; top: 1px; display: grid; width: 16px; height: 16px; place-items: center; border-radius: 50%; background: var(--widget-accent); color: #fff; font-size: 11px; font-weight: 900; }
.channel-block--service_widget { padding: 0; background: transparent !important; box-shadow: none; }
.channel-widget-category-block { border-left: 5px solid #2563dc; }
.channel-widget-category-grid { display: grid; gap: 22px; margin-top: 34px; }
.channel-widget-category-page { max-width: 1180px; }
.channel-inline-category { display: grid; gap: 20px; width: 100%; }
.channel-inline-category > header { display: grid; gap: 5px; }
.channel-inline-category > header > * { margin: 0; }
.channel-inline-category > header small { color: #087d76; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.channel-inline-category > header h2 { font-size: clamp(25px,3vw,38px); }
.channel-inline-category .channel-widget-category-grid,
.channel-inline-category .channel-category-products { margin-top: 0; padding-top: 0; }
.channel-block--category,.channel-block--widget_category { padding: clamp(20px,3vw,34px); }
.channel-manager-actions select { max-width: 220px; min-height: 38px; border: 1px solid #c9dbdd; border-radius: 9px; background: #fff; padding: 7px 10px; color: #17363d; font: inherit; }
.channel-catalog-bulk__bar label:has(select) { display: flex; align-items: center; gap: 8px; }
.channel-catalog-bulk__bar select { min-height: 38px; border: 1px solid #c9dbdd; border-radius: 9px; background: #fff; padding: 7px 10px; font: inherit; }
.channel-theme-dark .channel-service-widget { border-color: #32454f; background: #111c22; color: #fff; }
.channel-theme-dark .channel-service-widget p { color: #bac9cd; }
.channel-theme-dark .channel-service-widget__field { border-color: #41565f; background: #17252c; }
.channel-theme-dark .channel-service-widget__field span { border-color: #41565f; }
.channel-theme-dark .channel-service-widget__field input { background: #17252c; color: #fff; }
.channel-theme-dark .channel-inline-category > header small { color: #65ddd6; }

@media (max-width: 900px) {
    .channel-widget-editor > form { grid-template-columns: 1fr; }
    .channel-widget-editor__preview { position: static; }
}
@media (max-width: 700px) {
    .channel-widget-category-library > div { grid-template-columns: 1fr; }
    .channel-widget-category-library article { align-items: flex-start; flex-direction: column; }
    .channel-widget-editor__form { padding: 20px 14px; }
    .channel-widget-editor__action { grid-template-columns: 1fr; }
    .channel-service-widget__field { width: 100%; grid-template-columns: 1fr; }
    .channel-service-widget__field span { border-right: 0; border-bottom: 1px solid #d4dde2; }
    .channel-service-widget__actions { align-items: stretch; flex-direction: column; }
    .channel-service-widget__actions a { text-align: center; }
    .channel-service-widget__actions a.is-link { text-align: left; }
    .channel-service-widget__features { display: grid; }
}

@media (max-width: 820px) {
    .channel-yml-import,
    .channel-product-filter { grid-template-columns: 1fr; }
    .channel-yml-import button,
    .channel-product-filter button { width: 100%; }
    .channel-catalog-bulk__bar { align-items: stretch; flex-direction: column; }
    .channel-catalog-bulk__bar span { margin-left: 0; }
    .channel-product-library-grid article { grid-template-columns: auto minmax(0,1fr); }
    .channel-product-library-grid .channel-manager-actions { grid-column: 1 / -1; width: 100%; }
    .channel-product-library-grid .channel-manager-actions > * { flex: 1 1 145px; text-align: center; }
    .channel-load-more { flex-direction: column; }
    .channel-category-grid { grid-template-columns: 1fr; }
    .channel-category-grid .channel-manager-actions form { grid-template-columns: 1fr; }
    .builder-save-actions { grid-template-columns: 1fr; }
    .channel-catalog-operations { grid-template-columns: 1fr; }
    .channel-catalog-operations label { grid-template-columns: 1fr; }
    .channel-catalog-operations label > span { grid-column: auto; }
    .channel-range-actions { grid-template-columns: 1fr; }
    .channel-range-actions > header { grid-column: auto; align-items: flex-start; flex-direction: column; }
    .channel-range-actions label { grid-template-columns: 1fr; }
    .channel-range-actions label span { grid-column: auto; }
    .channel-range-summary { grid-template-columns: 1fr; }
    .channel-range-summary small { grid-column: auto; }
}
