/*
 * MADO POP EASY CSS — かんたん作成専用
 * SSOT / ownership (2026-09-22)
 * - mode=easy のProvider UIだけを担当する。Normal editor / Banner AreaのUIを持たない。
 * - 共通土台は pop-campaign-common.css。JSは public/js/pop-campaign-easy.js のみ。
 * - 保存は既存canonical POP保存経路へ合流し、第二DB/REST/Public Runtimeを作らない。
 * - 将来customer-plugin/API導線へ接続する場合も、このCSSをNormalへコピーしない。
 * - 2026-11-02 / R397: CSS動き編集の4ボタンは共通CSSの
 *   .mado-pop-motion-modal__actions が正本。旧Easy専用3列上書きを廃止。
 *   デスクトップ4列、620px以下2列はNormalと完全共通にする。
 */
#mado-pop-campaign-page .mado-pop-easy { display: grid; gap: 16px; min-width: 0; }#mado-pop-campaign-page .mado-pop-easy [hidden] { display: none; }#mado-pop-campaign-page .mado-pop-easy__head {
    display: flex;
    align-items: start;
    justify-content: flex-start;
    gap: 18px;
    padding: 18px 20px;
    border: 1px solid #d9e8ef;
    border-radius: 18px;
    background: linear-gradient(135deg, #f8fffe 0%, #f6fbff 100%);
}#mado-pop-campaign-page .mado-pop-easy__step-nav {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    margin-bottom: -4px;
}
#mado-pop-campaign-page .mado-pop-easy__step-nav-back,
#mado-pop-campaign-page .mado-pop-easy__step-nav-next {
    min-width: 126px;
    min-height: 50px;
    padding: 10px 22px;
    font-size: 15px;
}
#mado-pop-campaign-page .mado-pop-easy__heading { margin: 0; color: #0f172a; font-size: 20px; font-weight: 800; line-height: 1.4; }
#mado-pop-campaign-page .mado-pop-easy__layout { display: grid; grid-template-columns: minmax(0, min(560px, 46%)) minmax(0, 1fr); gap: 18px; align-items: start; }
/* R73 / 2026-11-14: Stretch ONLY the two outer card surfaces in two-column mode.
 * Do not stretch .mado-pop-easy__step, its internally positioned controls or preview stage. */
@media (min-width: 981px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layout { align-items: stretch; }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layout > :is(.mado-pop-easy__steps, .mado-pop-easy__preview) { align-self: stretch; }
}#mado-pop-campaign-page .mado-pop-easy__steps,
#mado-pop-campaign-page .mado-pop-easy__preview {
    min-width: 0;
    border: 1px solid #d9e4ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}#mado-pop-campaign-page .mado-pop-easy__steps { padding: 22px; }
/* R85 / 2026-11-14 — One canonical step grid interval for all 15 visible steps.
 * Old compensating negative heading margins and per-STEP row-gap variants
 * caused STEP 2/10/12 to differ from the rest. Keep header in normal DOM flow:
 * STEP-number to title = 10px; downstream content spacing can be tuned later.
 * Do not introduce a second heading offset or row-gap per step/breakpoint. */
#mado-pop-campaign-page .mado-pop-easy__step {
    display: grid;
    gap: 10px;
    min-height: 360px;
    align-content: start;
}
/* R86 / 2026-11-14 — Heading and explanatory lead form one typographic pair.
 * The 10px STEP grid gap remains the single STEP-number -> title interval.
 * Tighten ONLY direct title -> lead paragraphs by 5px, without touching
 * following controls or layout-specific centered choice grids. STEP1 uses
 * the corresponding 5px intro gap below; no breakpoint-specific override. */
#mado-pop-campaign-page .mado-pop-easy__step > h3 + p {
    margin-block-start: -5px;
}
#mado-pop-campaign-page .mado-pop-easy__step[hidden] { display: none; }#mado-pop-campaign-page .mado-pop-easy__step-kicker { color: #0f7776; font-size: 12px; font-weight: 900; }#mado-pop-campaign-page .mado-pop-easy__step h3 { margin: 0; color: #0f172a; font-size: 20px; font-weight: 700; line-height: 1.45; }#mado-pop-campaign-page .mado-pop-easy__step p { margin: 0; color: #475569; font-size: 15px; line-height: 1.65; }
#mado-pop-campaign-page .mado-pop-easy__step p.mado-pop-easy__step-help {
    font-size: 16px;
}
#mado-pop-campaign-page .mado-pop-easy__step-help strong { color: #334155; font-weight: 700; }#mado-pop-campaign-page .mado-pop-easy__field { display: grid; gap: 7px; color: #1e293b; font-size: 14px; font-weight: 600; }#mado-pop-campaign-page .mado-pop-easy__link-destination { display: grid; gap: 7px; padding-top: 2px; }#mado-pop-campaign-page .mado-pop-easy__link-destination [data-mado-pop-easy-link-label] {
    font-size: 15px;
}
/* PC typography / 2026-11-02: keep phone/tablet link labels at their existing sizes. */
@media (min-width: 1025px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__link-destination [data-mado-pop-easy-link-label] {
        font-size: 14px;
    }
}

/* STEP10 (internal step 16): only the whole-POP link field gets a wider separation
 * from the per-layer link list. Other wizard row gaps remain unchanged. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="16"] > .mado-pop-easy__link-destination {
    margin-top: 20px; /* 20px base row gap + 20px = 40px at desktop widths. */
}
@media (max-width: 620px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
    .mado-pop-easy__step[data-mado-pop-easy-step="16"] > .mado-pop-easy__link-destination {
        margin-top: 29px; /* 11px row gap + 29px = 40px. */
    }
}
#mado-pop-campaign-page .mado-pop-easy__link-destination > p { font-size: 13px; white-space: pre-line; }#mado-pop-campaign-page .mado-pop-easy__field input:not(.mado-ui-number-stepper__input),
#mado-pop-campaign-page .mado-pop-easy__field textarea,
#mado-pop-campaign-page .mado-pop-easy__field select,
#mado-pop-campaign-page .mado-pop-easy__period input,
#mado-pop-campaign-page .mado-pop-easy__size-fields input:not(.mado-ui-number-stepper__input) {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #8494a6;
    border-radius: 10px;
    background: #ffffff;
    color: #0f172a;
    font: inherit;
}
/* R19: editable text inside input/textarea is 2px larger (14px -> 16px). Do not resize number/color controls or alter any bound input values. */
#mado-pop-campaign-page .mado-pop-easy__field input[type="text"],
#mado-pop-campaign-page .mado-pop-easy__field input[type="url"],
#mado-pop-campaign-page .mado-pop-easy__field input[type="email"],
#mado-pop-campaign-page .mado-pop-easy__field input[type="search"],
#mado-pop-campaign-page .mado-pop-easy__field input:not([type]),
#mado-pop-campaign-page .mado-pop-easy__field textarea {
    font-size: 16px;
}
#mado-pop-campaign-page .mado-pop-easy__choice-grid { display: grid; gap: 10px; }#mado-pop-campaign-page .mado-pop-easy__choice-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }#mado-pop-campaign-page .mado-pop-easy__choice-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }#mado-pop-campaign-page .mado-pop-easy__choice,
#mado-pop-campaign-page .mado-pop-easy__device {
    position: relative;
    display: block;
    cursor: pointer;
}#mado-pop-campaign-page .mado-pop-easy__choice input,
#mado-pop-campaign-page .mado-pop-easy__device input { position: absolute; opacity: 0; pointer-events: none; }#mado-pop-campaign-page .mado-pop-easy__choice > span,
#mado-pop-campaign-page .mado-pop-easy__device > span {
    display: grid;
    gap: 4px;
    min-height: 76px;
    place-content: center;
    padding: 12px;
    border: 1px solid #8494a6;
    border-radius: 13px;
    background: #ffffff;
    color: #334155;
    text-align: center;
}

#mado-pop-campaign-page .mado-pop-easy__device > span {
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0;
}#mado-pop-campaign-page .mado-pop-easy__choice small { color: #475569; font-size: 13px; font-weight: 600; }#mado-pop-campaign-page .mado-pop-easy__choice input:checked + span,
#mado-pop-campaign-page .mado-pop-easy__device input:checked + span { border-color: var(--mado-pop-primary); background: var(--mado-pop-primary-soft); color: #0f6665; box-shadow: 0 0 0 2px var(--mado-pop-primary-ring); }#mado-pop-campaign-page .mado-pop-easy__size-fields {
    display: grid;
    grid-template-columns: 134px auto 134px;
    column-gap: clamp(28px, 5vw, 58px);
    row-gap: 10px;
    align-items: end;
    justify-content: center;
    width: min(100%, 560px);
    margin-inline: auto;
}
#mado-pop-campaign-page .mado-pop-easy__size-fields label {
    display: grid;
    gap: 6px;
    justify-items: center;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    text-align: center;
}
#mado-pop-campaign-page .mado-pop-easy__times { padding-bottom: 13px; color: #64748b; font-weight: 900; }
#mado-pop-campaign-page .mado-pop-easy__unit { display: flex; justify-content: center; color: #64748b; }#mado-pop-campaign-page .mado-pop-size-guide > summary,
#mado-pop-campaign-page .mado-pop-easy__device-size-details > summary {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 8px;
    padding: 6px 11px;
    border: 1px solid #cbd9e7;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    /* PRE-LAUNCH HOLD 2026-11-02: font-size: 15px; shared guide summary is 14px in common CSS. */
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}#mado-pop-campaign-page .mado-pop-size-guide > summary::-webkit-details-marker,
#mado-pop-campaign-page .mado-pop-easy__device-size-details > summary::-webkit-details-marker { display: none; }#mado-pop-campaign-page .mado-pop-size-guide[open] > summary,
#mado-pop-campaign-page .mado-pop-easy__device-size-details[open] > summary {
    border-color: var(--mado-pop-primary);
    background: var(--mado-pop-primary-soft);
    color: #0f6665;
}#mado-pop-campaign-page .mado-pop-size-guide__body,
#mado-pop-campaign-page .mado-pop-easy__device-size-body {
    display: grid;
    gap: 20px;
    padding: 4px 14px 14px;
}#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__device-size-note {
    font-size: 15px;
    line-height: 1.6;
    color: #475569;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__device-size-note > strong {
    color: #0f172a;
    font-weight: 600;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__device-size-note > span {
    color: #475569;
    font-weight: 400;
}
#mado-pop-campaign-page .mado-pop-easy__device-size-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
}#mado-pop-campaign-page .mado-pop-size-guide__grid > div {
    min-width: 0;
    padding: 12px;
    border: 1px solid #dbe5ef;
    border-radius: 10px;
    background: #ffffff;
}



/* R73 / 2026-11-14 - STEP3 per-device card rebuilt as a regular
 * role=group with aria-labelledby, removing the UA fieldset/legend anonymous
 * internal layout box (which caused repeated false centering). The existing
 * named inputs/data attributes and their event/save path remain intact. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-easy__device-size-card {
    position: relative;
    display: grid;
    place-items: center;
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 150px;
    margin: 0;
    padding: 18px 12px;
    border: 1px solid #94a3b8;
    border-radius: 16px;
    background: #ffffff;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-easy__device-size-title {
    position: absolute;
    top: -10px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0 7px;
    background: #ffffff;
    color: #175c67;
    font-size: 14px;
    font-weight: 800;
    line-height: 20px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-easy__device-size-card > .mado-pop-easy__size-fields--device {
    position: static;
    display: grid;
    grid-template-columns: minmax(0,1fr) 20px minmax(0,1fr);
    column-gap: clamp(6px, 2.2vw, 16px);
    row-gap: 7px;
    align-items: end;
    justify-items: center;
    box-sizing: border-box;
    width: min(520px, 100%);
    max-width: 100%;
    margin: 0;
    transform: none;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-easy__device-size-card > .mado-pop-easy__size-fields--device > label {
    box-sizing: border-box;
    display: grid;
    justify-items: center;
    width: min(134px,100%);
    min-width: 0;
    gap: 6px;
    text-align: center;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-easy__device-size-card > .mado-pop-easy__size-fields--device > .mado-pop-easy__times {
    padding-bottom: 13px;
    align-self: end;
}
@media (max-width: 620px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-easy__device-size-card > .mado-pop-easy__size-fields--device {
        grid-template-columns: minmax(0,1fr) 16px minmax(0,1fr);
        column-gap: 4px;
    }
}
#mado-pop-campaign-page .mado-pop-easy__device-size-card[hidden] { display: none; }#mado-pop-campaign-page .mado-pop-easy__color-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }#mado-pop-campaign-page .mado-pop-easy__color-swatch { width: 44px; height: 44px; padding: 0; border: 1px solid #b8c8da; border-radius: 12px; background: var(--mado-pop-easy-swatch); cursor: pointer; }#mado-pop-campaign-page .mado-pop-easy__color-swatch.is-selected { border-color: var(--mado-pop-primary); box-shadow: 0 0 0 3px var(--mado-pop-primary-ring); }#mado-pop-campaign-page .mado-pop-easy__color-custom { display: flex; align-items: center; gap: 7px; color: #475569; font-size: 14px; font-weight: 800; }#mado-pop-campaign-page .mado-pop-easy__color-custom > input { width: 52px; height: 42px; padding: 3px; border: 1px solid #b8c8da; border-radius: 10px; background: #fff; }/* R73: STEP4 settings use the full width of their parent card at all viewports. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="4"] > .mado-pop-easy__background-ui {
    display: grid;
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="4"] :is(.mado-pop-easy__background-mode, .mado-pop-easy__background-panel) {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    min-width: 0;
}#mado-pop-campaign-page .mado-pop-easy__background-mode {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}#mado-pop-campaign-page .mado-pop-easy__background-panel {
    width: 100%;
}@media (max-width: 620px) {

#mado-pop-campaign-page .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}#mado-pop-campaign-page .mado-pop-easy__own-images {
    display: grid;
    gap: 10px;
    margin: 4px 0 18px;
    padding: 14px;
    border: 1px solid #cbdbe4;
    border-radius: 14px;
    background: #f8fbfd;
}#mado-pop-campaign-page .mado-pop-easy__own-images-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}#mado-pop-campaign-page .mado-pop-easy__own-images-head > span { flex: 0 0 auto; color: #526274; font-size: 11px; font-weight: 700; }#mado-pop-campaign-page .mado-pop-easy__upload-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }#mado-pop-campaign-page .mado-pop-easy__upload-grid:empty { display: none; }#mado-pop-campaign-page .mado-pop-easy__upload-material { min-height: 112px; }#mado-pop-campaign-page .mado-pop-easy__upload-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }#mado-pop-campaign-page .mado-pop-easy__upload-status { margin: 0; color: #475569; font-size: 12px; font-weight: 700; }#mado-pop-campaign-page .mado-pop-easy__upload-status[hidden] { display: none; }#mado-pop-campaign-page .mado-pop-easy__upload-status[data-state="uploading"] { color: #0f6f75; }#mado-pop-campaign-page .mado-pop-easy__upload-status[data-state="success"] { color: #166534; }#mado-pop-campaign-page .mado-pop-easy__upload-status[data-state="warning"] { color: #9a6700; }#mado-pop-campaign-page .mado-pop-easy__upload-status[data-state="error"] { color: #b42318; }#mado-pop-campaign-page .mado-pop-easy__catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--mado-pop-catalog-card-min-width), 1fr)); gap: 10px; max-height: 420px; overflow: auto; padding: 2px 4px 6px 2px; }#mado-pop-campaign-page .mado-pop-easy__material { display: grid; gap: 6px; place-items: center; min-width: 0; min-height: 108px; padding: 9px 8px; border: 1px solid #8494a6; border-radius: 10px; background: #fff; color: #334155; font-size: 12px; line-height: 1.35; font-weight: 800; cursor: pointer; }#mado-pop-campaign-page .mado-pop-easy__material[hidden] { display: none; }#mado-pop-campaign-page .mado-pop-easy__material img { display: block; width: 64px; height: 64px; object-fit: contain; }
/* 2026-09-27 EASY catalog thumbnails: normal-material catalog only; no changes to Keep image aspect ratio; the original 64px shared rule remains a fallback. */
#mado-pop-campaign-page [data-mado-pop-easy-normal-material] > .mado-pop-easy__catalog-grid > .mado-pop-easy__material img {
    width: min(100%, 96px);
    height: 82px;
    max-width: 100%;
    object-fit: contain;
}

#mado-pop-campaign-page [data-mado-pop-easy-normal-material] > .mado-pop-easy__catalog-grid > .mado-pop-easy__material[data-category="background-illustrations"] img {
    width: 100%;
    height: 100px;
}
#mado-pop-campaign-page .mado-pop-easy__material > span { display: block; width: 100%; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }#mado-pop-campaign-page .mado-pop-easy__material.is-selected { border-color: var(--mado-pop-primary); background: var(--mado-pop-primary-soft); box-shadow: 0 0 0 2px var(--mado-pop-primary-ring); }#mado-pop-campaign-page .mado-pop-easy__material.is-active-layer { outline: 1px solid rgba(15, 23, 42, .28); outline-offset: 2px; }#mado-pop-campaign-page .mado-pop-easy__mini-editor,
#mado-pop-campaign-page .mado-pop-easy__text-editor { display: grid; gap: 30px; margin-top: 14px; padding: 14px; border: 1px solid #dbe5ec; border-radius: 14px; background: #fbfefe; }#mado-pop-campaign-page .mado-pop-easy__mini-editor[hidden] { display: none; }#mado-pop-campaign-page .mado-pop-easy__mini-editor-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 5px 12px; color: #0f172a; font-size: 14px; }#mado-pop-campaign-page .mado-pop-easy__mini-editor-head span { color: #475569; font-size: 14px; font-weight: 500; }#mado-pop-campaign-page .mado-pop-easy__layer-tabs { display: flex; flex-wrap: wrap; gap: 12px; }#mado-pop-campaign-page .mado-pop-easy__layer-tabs[hidden] { display: none; }#mado-pop-campaign-page .mado-pop-easy__layer-tab { min-height: 30px; padding: 5px 9px; border: 1px solid #8494a6; border-radius: 999px; background: #fff; color: #334155; font-size: 12px; font-weight: 800; cursor: pointer; }#mado-pop-campaign-page .mado-pop-easy__layer-tab.is-active { border-color: var(--mado-pop-primary); background: var(--mado-pop-primary-soft); color: #0f6665; }#mado-pop-campaign-page .mado-pop-easy__quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }#mado-pop-campaign-page .mado-pop-easy__quick-control { display: grid; gap: 7px; color: #334155; font-size: 14px; font-weight: 600; }#mado-pop-campaign-page .mado-pop-easy__quick-control > span:first-child { display: flex; justify-content: space-between; gap: 8px; }#mado-pop-campaign-page .mado-pop-easy__quick-control output { color: #0f7776; }#mado-pop-campaign-page .mado-pop-easy__quick-control input[type="range"] { width: 100%; accent-color: var(--mado-pop-primary); }#mado-pop-campaign-page .mado-pop-easy__quick-number { display: flex; color: #64748b; font-weight: 700; }

#mado-pop-campaign-page .mado-pop-easy__material-size-aspect { position: relative; min-width: 0; }
/* STEP6 / 2026-11-03: Material sizing has two numeric controls, no slider-output copy. */
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material > .mado-pop-easy__quick-control,
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__material-size-aspect > .mado-pop-easy__quick-control {
    min-width: 0;
    justify-items: center;
    text-align: center;
}
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__quick-control > span:first-child {
    width: 100%;
    justify-content: center;
    text-align: center;
}
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__svg-aspect-controls {
    justify-items: center;
    text-align: center;
}
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__svg-axis-grid {
    width: 100%;
}

#mado-pop-campaign-page .mado-pop-easy__material-size-aspect [data-mado-pop-easy-material-uniform-size] > span:first-child { padding-right: 0; justify-content: center; }
#mado-pop-campaign-page .mado-pop-easy__material-size-aspect [data-mado-pop-easy-material-uniform-size].is-axis-mode { opacity: .46; }
#mado-pop-campaign-page .mado-pop-easy__material-size-aspect [data-mado-pop-easy-material-uniform-size].is-axis-mode input { cursor: not-allowed; }
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material > .mado-pop-easy__svg-aspect-controls {
    grid-column: 1;
    min-width: 0;
    width: 100%;
    display: grid;
    gap: 10px;
    margin-top: 8px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material > .mado-pop-easy__svg-aspect-controls[hidden],
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__svg-axis-grid[hidden] {
    display: none;
}
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__svg-aspect-lock { position: static; display: inline-flex; align-items: center; justify-content: center; justify-self: center; gap: 6px; color: #334155; font-size: 13px; font-weight: 800; cursor: pointer; }
#mado-pop-campaign-page .mado-pop-easy__svg-aspect-lock input { width: 17px; height: 17px; margin: 0; accent-color: var(--mado-pop-primary); }
/* Unlocked: one pale lime group for lock state + both independent axes. */
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material > .mado-pop-easy__svg-aspect-controls.is-unlocked {
    grid-column: 1 / -1;
    padding: 12px;
    border: 1px solid #e1e6eb;
    border-radius: 12px;
    background: #f3f5f7;
}
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__svg-axis-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    min-width: 0;
    width: 100%;
}
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__svg-axis-grid > .mado-pop-easy__quick-control {
    min-width: 0;
    justify-items: center;
}
#mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__svg-axis-grid .mado-pop-easy__quick-number {
    max-width: 100%;
    justify-content: center;
}#mado-pop-campaign-page .mado-pop-easy__quick-number input:not(.mado-ui-number-stepper__input),
#mado-pop-campaign-page .mado-pop-easy__compact-field input[type="number"]:not(.mado-ui-number-stepper__input),
#mado-pop-campaign-page .mado-pop-easy__compact-field select { width: 100%; min-height: 36px; padding: 6px 9px; border: 1px solid #8494a6; border-radius: 9px; background: #fff; color: #0f172a; font: inherit; }#mado-pop-campaign-page .mado-pop-easy__more { border-top: 1px solid #e4ebf1; padding-top: 10px; }#mado-pop-campaign-page [data-mado-pop-easy-material-more] { margin-top: -10px; }#mado-pop-campaign-page .mado-pop-easy__more summary { color: var(--mado-pop-text); font-size: 14px; font-weight: 600; cursor: pointer; }#mado-pop-campaign-page .mado-pop-easy__more-body { display: grid; gap: 10px; margin-top: 12px; }#mado-pop-campaign-page .mado-pop-easy__more-body--text { grid-template-columns: repeat(3, minmax(0, 1fr)); }#mado-pop-campaign-page .mado-pop-easy__more-body--material { grid-template-columns: repeat(3, minmax(0, 1fr)); }#mado-pop-campaign-page .mado-pop-easy__compact-field { display: grid; gap: 6px; color: #334155; font-size: 14px; font-weight: 600; }#mado-pop-campaign-page .mado-pop-easy__compact-field > span:last-child:not(.mado-ui-color-control--google):not(.mado-ui-color-presets) { display: flex; align-items: center; gap: 5px; color: #64748b; }#mado-pop-campaign-page .mado-pop-easy__compact-field input[type="color"]:not(.mado-ui-color-control--google__picker) { width: 100%; min-height: 36px; padding: 3px; border: 1px solid #8494a6; border-radius: 9px; background: #fff; }#mado-pop-campaign-page .mado-pop-easy__layer-guide { display: grid; gap: 10px; margin-top: 4px; width: 100%;
    max-width: 100%; padding: 10px 0; border: 0; border-radius: 0; background: transparent; }#mado-pop-campaign-page .mado-pop-easy__layer-guide-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 8px 14px; padding: 0 2px 2px; }#mado-pop-campaign-page .mado-pop-easy__layer-guide-help-item { display: inline-flex; align-items: center; gap: 5px; min-width: 0; color: #475569; font-size: 13px; font-weight: 700; line-height: 1.35; white-space: nowrap; }#mado-pop-campaign-page .mado-pop-easy__layer-guide-help-symbol { display: inline-grid; place-items: center; flex: 0 0 20px; width: 20px; height: 20px; color: #334155; font-size: 14px; font-weight: 800; line-height: 1; }#mado-pop-campaign-page .mado-pop-easy__layer-guide-help-symbol--arrow { font-size: 16px; }#mado-pop-campaign-page .mado-pop-easy__layer-guide-help-symbol--edit .mado-pop-layer-menu__edit-icon { width: 17px; height: 17px; flex-basis: 17px; }#mado-pop-campaign-page .mado-pop-easy__layer-guide-head > strong { color: #0f172a; font-size: 14px; }#mado-pop-campaign-page .mado-pop-easy__layer-guide-head > span:not(.mado-pop-easy__layer-guide-help-item) { color: #475569; font-size: 15px; font-weight: 400; }
/* STEP7/8/9 share one instruction typography and spacing rule. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-guide > :is(.mado-pop-easy__layer-guide-touch-note, .mado-pop-easy__layer-guide-instruction, .mado-pop-easy__focusable-help) {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: inherit;
    color: #475569;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.65;
}


#mado-pop-campaign-page .mado-pop-easy__layer-guide-list { display: grid; gap: 0; }
/* R81: Each logical layer is one row; use a subtle divider between rows. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__layer-guide-list {
    border-block: 1px solid #e2e8f0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__layer-guide-list > .mado-pop-layer-menu__row + .mado-pop-layer-menu__row {
    border-top: 1px solid #e2e8f0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__layer-guide-list > .mado-pop-layer-menu__row {
    border-radius: 0;
}
#mado-pop-campaign-page .mado-pop-easy__layer-guide-list .mado-pop-layer-menu__item { min-width: 0; }#mado-pop-campaign-page .mado-pop-easy__svg-colors { display: grid; gap: 8px; padding: 10px; border: 1px solid #e0e7ee; border-radius: 10px; background: #fff; }#mado-pop-campaign-page .mado-pop-easy__svg-colors[hidden] { display: none; }#mado-pop-campaign-page .mado-pop-easy__svg-colors > strong { font-size: 13px; }#mado-pop-campaign-page .mado-pop-easy__svg-color { display: grid; gap: 8px; width: 172px; max-width: 100%; min-width: 0; justify-items: start; align-content: start; color: #334155; font-size: 14px; font-weight: 600; }#mado-pop-campaign-page .mado-pop-easy__text-editor { margin-top: 0; gap: 14px; padding: 16px; background: #fff; }#mado-pop-campaign-page .mado-pop-easy__text-editor textarea[data-mado-pop-easy-title] { min-height: 68px; resize: vertical; }#mado-pop-campaign-page .mado-pop-easy__period { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }#mado-pop-campaign-page .mado-pop-easy__period[hidden] { display: none; }#mado-pop-campaign-page .mado-pop-easy__period label { display: grid; gap: 6px; color: #334155; font-size: 13px; font-weight: 800; }#mado-pop-campaign-page .mado-pop-easy__summary { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 16px; margin: 0; padding: 14px; border-radius: 12px; background: #f8fafc; font-size: 15px; }#mado-pop-campaign-page .mado-pop-easy__summary dt { color: #64748b; font-weight: 500; }#mado-pop-campaign-page .mado-pop-easy__summary dd { margin: 0; color: #0f172a; font-weight: 700; }#mado-pop-campaign-page .mado-pop-easy__save { justify-self: center; min-height: 46px; font-size: 15px; }#mado-pop-campaign-page .mado-pop-easy__status { min-height: 20px; font-weight: 700; }#mado-pop-campaign-page .mado-pop-easy__status--inline { font-size: 13px; font-weight: 600; line-height: 1.6; }#mado-pop-campaign-page .mado-pop-easy__status[data-state="error"] { color: #b42318; }#mado-pop-campaign-page .mado-pop-easy__status[data-state="success"] { color: #087f5b; }#mado-pop-campaign-page .mado-pop-easy__status--inline[data-state="success"] { font-size: 15px; }#mado-pop-campaign-page .mado-pop-easy__status[data-state="waiting"] { color: #8a5b00; }#mado-pop-campaign-page .mado-pop-easy__preview { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + 16px); padding: 16px; }/* R389 / 2026-11-02: Easy STEP editor uses its existing preview-side replay
 * toggle and the SAME two-card structure as Normal. Keep the popover OUTSIDE
 * the scrollable preview-stage; do not create another replay UI or listener. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-control {
    position: relative;
    z-index: 25;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: max-content;
    max-width: 100%;
    margin: -52px 12px 16px auto;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 75px;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid #bcdbe1;
    border-radius: 10px;
    background: #fff;
    color: #087f79;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 14px rgba(15,23,42,.10);
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-toggle:hover,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-toggle[aria-expanded="true"] {
    background: #e6f9f7;
    border-color: #0bbab0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-toggle:focus-visible {
    outline: 3px solid #087f79;
    outline-offset: 2px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-menu[data-mado-pop-compact-replay] {
    position: absolute;
    bottom: calc(100% + 7px);
    right: 0;
    z-index: 26;
    display: grid;
    justify-items: stretch;
    gap: 6px;
    box-sizing: border-box;
    width: min(260px, calc(100vw - 24px));
    max-width: min(260px, calc(100vw - 24px));
    padding: 8px;
    border: 1px solid #cfe4e3;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(15,23,42,.17);
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-menu[hidden] {
    display: none;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-menu-title {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #0f7776;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-status {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
    color: #b42318;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__motion-status:empty {
    display: none;
}
#mado-pop-campaign-page .mado-pop-easy__preview-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; color: #334155; font-size: 13px; }#mado-pop-campaign-page .mado-pop-easy__preview-stage { display: grid; place-items: center; min-height: 430px; padding: 22px; overflow: auto; border: 1px solid #e1e8ef; border-radius: 14px; background-color: #ffffff; background-image: none; }#mado-pop-campaign-page .mado-pop-easy__preview-canvas { position: relative; display: grid; place-items: center; align-content: center; gap: 7px; min-width: 80px; min-height: 60px; overflow: hidden; border-radius: 8px; box-shadow: 0 7px 20px rgba(15, 23, 42, .14); transition: width .18s ease, height .18s ease, background .18s ease; }#mado-pop-campaign-page .mado-pop-easy__preview-canvas.is-sns,
#mado-pop-campaign-page .mado-pop-easy__preview-canvas.is-background-hidden { box-shadow: none; }#mado-pop-campaign-page .mado-pop-easy__preview-canvas.has-natural-image { overflow: visible; }#mado-pop-campaign-page .mado-pop-easy__preview-images { position: absolute; inset: 0; z-index: auto; border-radius: inherit; pointer-events: none; }#mado-pop-campaign-page .mado-pop-easy__preview-image-shell { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; }#mado-pop-campaign-page .mado-pop-easy__preview-image-shell.is-natural { overflow: visible; }#mado-pop-campaign-page .mado-pop-easy__preview-image-layer { position: absolute; display: grid; place-items: center; pointer-events: auto; cursor: grab; touch-action: none; user-select: none; }#mado-pop-campaign-page .mado-pop-easy__preview-image-layer.is-dragging { cursor: grabbing; }#mado-pop-campaign-page .mado-pop-easy__preview-image-layer img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none; user-select: none; -webkit-user-drag: none; }#mado-pop-campaign-page .mado-pop-easy__preview-canvas.is-sns .mado-pop-easy__preview-image-layer { width: min(70%, 100px); height: min(70%, 100px); }#mado-pop-campaign-page .mado-pop-easy__preview-canvas > strong,
#mado-pop-campaign-page .mado-pop-easy__preview-canvas > span { position: relative; z-index: 20; max-width: 86%; color: #0f172a; text-align: center; white-space: pre-line; text-shadow: none; cursor: grab; touch-action: none; user-select: none; }#mado-pop-campaign-page .mado-pop-easy__preview-canvas > strong.is-dragging,
#mado-pop-campaign-page .mado-pop-easy__preview-canvas > span.is-dragging { cursor: grabbing; }#mado-pop-campaign-page .mado-pop-easy__text-editor + .mado-pop-easy__text-editor { margin-top: 18px; }#mado-pop-campaign-page .mado-pop-easy__text-editor .mado-pop-easy__field > span:first-child { font-size: 15px; }#mado-pop-campaign-page .mado-pop-easy__placement-browser { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; padding: 12px; border: 1px solid #dbe5ec; border-radius: 14px; background: #ffffff; }#mado-pop-campaign-page .mado-pop-easy__placement-option { position: relative; display: block; cursor: pointer; }#mado-pop-campaign-page .mado-pop-easy__placement-option input { position: absolute; opacity: 0; pointer-events: none; }#mado-pop-campaign-page .mado-pop-easy__placement-option span { display: grid; place-content: center; min-height: 52px; padding: 10px; border: 1px solid #8494a6; border-radius: 12px; background: #ffffff; color: #334155; text-align: center; font-size: 14px; font-weight: 600; }#mado-pop-campaign-page .mado-pop-easy__placement-option input:checked + span { border-color: var(--mado-pop-primary); background: var(--mado-pop-primary-soft); color: #0f6665; box-shadow: 0 0 0 2px var(--mado-pop-primary-ring); }#mado-pop-campaign-page .mado-pop-easy__placement-offsets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }#mado-pop-campaign-page .mado-pop-easy__preview-stage.is-position-preview { place-items: stretch; }
/* Preview close marker uses the same shared eight-style geometry as Normal.
 * Canonical visual CSS: pop-campaign-common.css (.mado-pop-preview-item__close-indicator).
 * Keep this Easy view free of its former circle/X definitions. */
/* The old STEP10-only gap:9px contradicted the actual step grid and the
 * canonical heading gap. Remove it; the normal step and choice layouts own it. */#mado-pop-campaign-page [data-mado-pop-easy-step="10"] .mado-pop-easy__placement-browser { margin-top: 3px; }#mado-pop-campaign-page .mado-pop-easy__more > summary:focus-visible{ outline: 3px solid #0f6665; outline-offset: 3px; border-radius: 8px; }#mado-pop-campaign-page .mado-pop-easy__body-editors { display: grid; gap: 18px; }#mado-pop-campaign-page .mado-pop-easy__text-editor--body { margin-top: 0; }#mado-pop-campaign-page .mado-pop-easy__text-editor-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }#mado-pop-campaign-page .mado-pop-easy__text-editor-head strong { color: #0f172a; font-size: 15px; font-weight: 900; }#mado-pop-campaign-page .mado-pop-easy__text-remove { min-height: 36px; padding: 6px 10px; border: 1px solid #c7d3df; border-radius: 9px; background: #ffffff; color: #b42318; font-size: 12px; font-weight: 900; cursor: pointer; }#mado-pop-campaign-page .mado-pop-easy__preview-bodies { display: contents; }#mado-pop-campaign-page .mado-pop-easy__preview-body { position: relative; z-index: 20; max-width: 86%; color: #0f172a; text-align: center; white-space: pre-line; text-shadow: none; cursor: grab; touch-action: none; user-select: none; }#mado-pop-campaign-page .mado-pop-easy__preview-body.is-dragging { cursor: grabbing; }#mado-pop-campaign-page .mado-pop-easy__choice input:focus-visible + span,
#mado-pop-campaign-page .mado-pop-easy__device input:focus-visible + span,
#mado-pop-campaign-page .mado-pop-easy__placement-option input:focus-visible + span { outline: 3px solid #0f6665; outline-offset: 3px; }#mado-pop-campaign-page .mado-pop-easy__material:focus-visible,
#mado-pop-campaign-page .mado-pop-easy__color-swatch:focus-visible,
#mado-pop-campaign-page .mado-pop-easy__text-remove:focus-visible{ outline: 3px solid #0f6665; outline-offset: 3px; }#mado-pop-campaign-page .mado-pop-easy .mado-ui-button--primary { color: #0f172a; }@media (max-width: 980px) {
#mado-pop-campaign-page .mado-pop-easy__layout { grid-template-columns: minmax(0, 1fr); }

#mado-pop-campaign-page .mado-pop-easy__preview { position: static; }


}

/* EASY TABLET COMPACT FLOW / 2026-10-18 r5 - show the canonical STEP n / total in the active green kicker instead; */
@media (min-width: 721px) and (max-width: 980px) {
    

    #mado-pop-campaign-page .mado-pop-easy {
        padding-bottom: clamp(220px, 28dvh, 340px);
    }

    #mado-pop-campaign-page .mado-pop-easy__step-kicker {
        font-size: 13px;
        line-height: 1.35;
    }
}@media (max-width: 760px) {
#mado-pop-campaign-page .mado-pop-easy__layer-guide { width: 100%; max-width: 100%; }
}@media (max-width: 620px) {

#mado-pop-campaign-page .mado-pop-easy__choice-grid--two,
    #mado-pop-campaign-page .mado-pop-easy__choice-grid--three,
    #mado-pop-campaign-page .mado-pop-easy__period,
    #mado-pop-campaign-page .mado-pop-easy__placement-offsets { grid-template-columns: minmax(0, 1fr); }

#mado-pop-campaign-page .mado-pop-easy__catalog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

#mado-pop-campaign-page .mado-pop-easy__upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

#mado-pop-campaign-page .mado-pop-easy__own-images-head { align-items: stretch; flex-direction: column; gap: 5px; }



#mado-pop-campaign-page .mado-pop-easy__size-fields,
    #mado-pop-campaign-page .mado-pop-easy__quick-grid,
    #mado-pop-campaign-page .mado-pop-easy__quick-grid--text,
    #mado-pop-campaign-page .mado-pop-easy__more-body--material,
    #mado-pop-campaign-page .mado-pop-easy__more-body--text { grid-template-columns: minmax(0, 1fr); }




}#mado-pop-campaign-page .mado-pop-easy__motion-guide-note {
    margin: 8px 0 0;
    padding: 0;
    font-size: 15px;
    line-height: 1.7;
}
#mado-pop-campaign-page .mado-pop-easy__motion-guide-note ul {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#mado-pop-campaign-page .mado-pop-easy__motion-preview-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 18px;
}#mado-pop-campaign-page .mado-pop-easy__motion-preview-row [hidden] {
    display: none;
}
#mado-pop-campaign-page [data-mado-pop-easy-normal-material],
#mado-pop-campaign-page [data-mado-pop-easy-sns-material] {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
#mado-pop-campaign-page [data-mado-pop-easy-normal-material] > .mado-pop-easy__mini-editor,
#mado-pop-campaign-page [data-mado-pop-easy-sns-material] > .mado-pop-easy__mini-editor{
    margin-top: 0;
    margin-bottom: 0;
}

#mado-pop-campaign-page .mado-pop-easy__layer-guide-list { min-height:110px; max-height:min(70vh,720px); padding-right:0; }
#mado-pop-campaign-page .mado-pop-easy__layer-guide-list .mado-pop-layer-menu__row { width:100%; min-width:0; }

/* Step headings get scripted focus for SR navigation. The black browser focus rectangle was misleading. */
#mado-pop-campaign-page .mado-pop-easy__step h3[tabindex="-1"]:focus { outline: none; }

/* EASY TIMING MODE TRANSITION / R41: reachable after the last preset by Tab. */
#mado-pop-campaign-page .mado-pop-easy__timing-switch {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 12px 0 2px;
    padding: 9px 13px;
    border: 1px solid var(--mado-pop-primary, #06bfb5);
    border-radius: 9px;
    background: var(--mado-pop-primary-soft, #e6faf8);
    color: #106969;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    text-align: left;
    cursor: pointer;
}
#mado-pop-campaign-page .mado-pop-easy__timing-switch:hover,
#mado-pop-campaign-page .mado-pop-easy__timing-switch:focus-visible {
    outline: 2px solid var(--mado-pop-primary-ring, #88e6df);
    outline-offset: 2px;
}

#mado-pop-campaign-page [data-mado-pop-easy-upload-button] {
    font-size: 15px;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="3"] > .mado-pop-easy__size-fields {
    margin-top: 15px;
}




#mado-pop-campaign-page .mado-pop-easy__catalog-actions {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:50px;
    width:100%;
    align-items:stretch;
}
#mado-pop-campaign-page .mado-pop-easy__catalog-actions > .mado-ui-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:0;
    width:100%;
    min-height:48px;
    padding:10px 8px;
    font-size:15px;
    text-align:center;
}
#mado-pop-campaign-page .mado-pop-easy__motion-guide-note,
#mado-pop-campaign-page .mado-pop-easy__motion-guide-note p,
#mado-pop-campaign-page .mado-pop-easy__motion-guide-note li,
#mado-pop-campaign-page .mado-pop-easy__motion-guide-note small {
    color:#1e293b;
}
#mado-pop-campaign-page .mado-pop-easy__field select {
    padding-right:42px;
    background-position:right 18px center;
}
#mado-pop-campaign-page .mado-pop-easy__trigger-options {
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:9px;
}
#mado-pop-campaign-page .mado-pop-easy__trigger-choice {
    display:block;
    position:relative;
    min-width:0;
    cursor:pointer;
}
#mado-pop-campaign-page .mado-pop-easy__trigger-choice input {
    position:absolute;
    inset:0;
    z-index:1;
    width:100%;
    height:100%;
    margin:0;
    opacity:.01;
    pointer-events:auto;
}
#mado-pop-campaign-page .mado-pop-easy__trigger-choice span {
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:48px;
    height:100%;
    padding:9px;
    border:1px solid #cbd9e7;
    border-radius:10px;
    background:#fff;
    color:#0f172a;
    font-size:15px;
    font-weight:800;
    text-align:center;
}
#mado-pop-campaign-page .mado-pop-easy__trigger-choice input:checked + span {
    border-color:#07bdb6;
    background:#eafffd;
    box-shadow:0 0 0 1px rgba(7,189,182,.15);
}
#mado-pop-campaign-page .mado-pop-easy__trigger-choice input:focus-visible + span {
    outline:3px solid var(--mado-pop-primary-ring,rgba(6,191,181,.25));
    outline-offset:2px;
}
#mado-pop-campaign-page .mado-pop-easy__trigger-panel {
    display:grid;
    gap:12px;
    padding:14px;
    border:1px solid #dbe5ec;
    border-radius:12px;
    background:#fbfefe;
}
#mado-pop-campaign-page .mado-pop-easy__trigger-panel[hidden] { display:none; }
/* DELAY LABEL ALIGNMENT / 2026-11-02
 * Only the 134px number pill owns the label center; the trailing unit is outside it.
 * Shared stepper dimensions remain in mado-base.css. This also works on phones.
 */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__trigger-panel[data-mado-pop-easy-trigger-panel="delay"]
.mado-pop-easy__field > span:first-child {
    box-sizing: border-box;
    width: min(100%, var(--mado-ui-number-stepper-width, 134px));
    text-align: center;
    justify-self: start;
}
/* PC typography / 2026-11-02: seconds label only; preserve 18px stepper numerals and mobile fields. */
@media (min-width: 1025px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
    .mado-pop-easy__trigger-panel[data-mado-pop-easy-trigger-panel="delay"]
    .mado-pop-easy__field > span:first-child {
        font-size: 14px;
    }
}
#mado-pop-campaign-page .mado-pop-easy__timing-unit {
    display:flex;
}
#mado-pop-campaign-page .mado-pop-easy__timing-unit input:not(.mado-ui-number-stepper__input) {
    width:min(100%,180px);
    min-height:42px;
    padding:8px 10px;
    border:1px solid #8494a6;
    border-radius:9px;
    background:#fff;
    color:#0f172a;
    font:inherit;
}
/* 2026-11-02: Easyの説明は選択前に見られるよう第三ラジオの外に配置。
 * 元の数値欄の脇に誤挿入したdetailsはPHPと共に撤去。既存共通detailsのJSを使用。
 * Easy単独読み込みでもポップアップになるためチップの必須スタイルをここで補完。
 */
#mado-pop-campaign-page .mado-pop-easy__scroll-trigger-choice {
    position: relative;
    min-width: 0;
    display: grid;
}
#mado-pop-campaign-page .mado-pop-easy__scroll-trigger-choice > .mado-pop-easy__trigger-choice {
    width: 100%;
}
#mado-pop-campaign-page .mado-pop-easy__scroll-trigger-choice > .mado-pop-help-chip--scroll {
    display: block;
    position: absolute;
    inset: 0;
    z-index: 70;
    margin: 0;
    pointer-events: none;
}
#mado-pop-campaign-page .mado-pop-easy__scroll-trigger-choice .mado-pop-help-chip__toggle {
    position: absolute;
    top: -8px;
    right: -7px;
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid #72c79c;
    border-radius: 50%;
    background: #e8fbf1;
    color: #15803d;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    font-family: inherit;
    list-style: none;
    cursor: pointer;
}
#mado-pop-campaign-page .mado-pop-easy__scroll-trigger-choice .mado-pop-help-chip__toggle::-webkit-details-marker {
    display: none;
}
#mado-pop-campaign-page .mado-pop-easy__scroll-trigger-choice .mado-pop-help-chip__toggle:focus-visible {
    outline: 2px solid #16a34a;
    outline-offset: 2px;
}
#mado-pop-campaign-page .mado-pop-easy__scroll-trigger-choice .mado-pop-help-chip__panel {
    display: none;
    position: absolute;
    top: auto;
    bottom: calc(100% + 8px);
    left: auto;
    right: 0;
    z-index: 90;
    box-sizing: border-box;
    width: min(280px, calc(100vw - 44px));
    margin: 0;
    padding: 12px 14px;
    border: 1px solid #c7e4ec;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 18px 36px rgba(15,23,42,.16);
    color: #475569;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.72;
    text-align: left;
    white-space: normal;
    pointer-events: auto;
}
#mado-pop-campaign-page .mado-pop-easy__scroll-trigger-choice .mado-pop-help-chip--scroll[open] > .mado-pop-help-chip__panel {
    display: block;
}

#mado-pop-campaign-page [data-mado-pop-easy-scroll-range] {
    width:100%;
    accent-color:var(--mado-pop-primary);
}
#mado-pop-campaign-page .mado-pop-easy__timing-presets {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    gap:7px;
}
#mado-pop-campaign-page .mado-pop-easy__timing-presets button {
    min-height:40px;
    padding:7px 4px;
    border:1px solid #cbd9e7;
    border-radius:9px;
    background:#fff;
    color:#1e293b;
    font-size:15px;
    font-weight:800;
    cursor:pointer;
}
#mado-pop-campaign-page .mado-pop-easy__timing-presets button[aria-pressed="true"] {
    border-color:#07bdb6;
    background:#eafffd;
}
@media(max-width:540px) {
    
    
    #mado-pop-campaign-page .mado-pop-easy__catalog-actions > .mado-ui-button { font-size:15px; }
}

/* EASY SHARED NUMBER STEPPER LAYOUT / 2026-10-17 The pill shape/hover/focus/disabled visual is owned by mado-base.css. */
#mado-pop-campaign-page .mado-pop-easy__unit,
#mado-pop-campaign-page .mado-pop-easy__quick-number,
#mado-pop-campaign-page .mado-pop-easy__compact-field > span:last-child,
#mado-pop-campaign-page .mado-pop-easy__timing-unit {
    align-items: center;
    gap: 8px;
}

#mado-pop-campaign-page .mado-pop-easy__size-fields .mado-ui-number-stepper,
#mado-pop-campaign-page .mado-pop-easy__quick-number .mado-ui-number-stepper,
#mado-pop-campaign-page .mado-pop-easy__compact-field .mado-ui-number-stepper,
#mado-pop-campaign-page .mado-pop-easy__timing-unit .mado-ui-number-stepper {
    flex: 0 0 var(--mado-ui-number-stepper-width, 134px);
}

/* Hover on the plus button must not conceal the minus button, or vice versa. */
#mado-pop-campaign-page .mado-pop-easy .mado-ui-number-stepper > .mado-ui-number-stepper__button:not(:disabled) {
    display: inline-grid;
    visibility: visible;
    opacity: 1;
    color: #334155;
}

/* EASY DIRECT STEP INDEX / 2026-10-02 Process-position numbers map through easyEligibleSteps(), so hidden SNS/guest steps do not */

#mado-pop-campaign-page .mado-pop-easy__step-index {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 7px;
    min-height: 32px;
}
#mado-pop-campaign-page .mado-pop-easy__step-index button {
    appearance: none;
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    min-width: 30px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 7px;
    background: transparent;
    color: #475569;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
}
#mado-pop-campaign-page .mado-pop-easy__step-index button:hover {
    border-color: #b9eeea;
    background: #f0fdfa;
    color: #0f7776;
}
#mado-pop-campaign-page .mado-pop-easy__step-index button.is-current,
#mado-pop-campaign-page .mado-pop-easy__step-index button[aria-current="step"] {
    border-color: #06bfb5;
    background: #e6fbf9;
    color: #0f7776;
    font-weight: 800;
}
#mado-pop-campaign-page .mado-pop-easy__step-index button:focus-visible {
    outline: 2px solid #0f7776;
    outline-offset: 2px;
}
#mado-pop-campaign-page .mado-pop-easy__step-index button[hidden] { display: none; }

@media (max-width: 720px) {
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-campaign-page__hero {
        display: none !important;
    }

    #mado-pop-campaign-page .mado-pop-easy {
        gap: 10px;
    }

    #mado-pop-campaign-page .mado-pop-easy__head {
        display: block;
        padding: 0 2px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    #mado-pop-campaign-page .mado-pop-easy[data-mado-pop-easy-process-position]:not([data-mado-pop-easy-process-position="1"])
        > .mado-pop-easy__head {
        display: none;
    }

    #mado-pop-campaign-page .mado-pop-easy__advanced-link{
        display: none !important;
    }

    #mado-pop-campaign-page .mado-pop-easy__heading {
        font-size: 18px;
        line-height: 1.35;
    }

    

    #mado-pop-campaign-page .mado-pop-easy__layout {
        gap: 10px;
    }

    #mado-pop-campaign-page .mado-pop-easy__steps {
        padding: 14px;
    }

    #mado-pop-campaign-page .mado-pop-easy__step {
        min-height: 0;
    }

    #mado-pop-campaign-page .mado-pop-easy__step-kicker {
        font-size: 13px;
        line-height: 1.35;
    }

    #mado-pop-campaign-page .mado-pop-easy__layout {
        
        padding-bottom: clamp(90px, 16dvh, 180px);
    }

    

    

    

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="3"]
        > .mado-pop-easy__size-fields {
        grid-template-columns: repeat(2, minmax(134px, 1fr));
        justify-content: center;
        align-items: start;
        gap: 8px;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="3"]
        > .mado-pop-easy__size-fields > .mado-pop-easy__times {
        display: none;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="3"]
        > .mado-pop-easy__size-fields > label {
        min-width: 0;
        justify-items: center;
        text-align: center;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="3"]
        > .mado-pop-easy__size-fields > label .mado-pop-easy__unit {
        width: 100%;
        justify-content: center;
    }
}

/* EASY DESKTOP + TABLET COMPACT CONTROL ALIGNMENT / 2026-10-18 r8 - Material size/opacity remain the same two canonical controls; this block only aligns their geometry. */
@media (min-width: 721px) {
    #mado-pop-campaign-page .mado-pop-easy__mini-editor > .mado-pop-easy__quick-grid {
        column-gap: 30px;
        row-gap: 10px;
        align-items: start;
    }

    #mado-pop-campaign-page .mado-pop-easy__mini-editor > .mado-pop-easy__quick-grid
        > .mado-pop-easy__material-size-aspect > [data-mado-pop-easy-material-uniform-size],
    #mado-pop-campaign-page .mado-pop-easy__mini-editor > .mado-pop-easy__quick-grid
        > .mado-pop-easy__quick-control {
        grid-template-rows: 22px 48px;
        row-gap: 7px;
        align-content: start;
    }

    #mado-pop-campaign-page .mado-pop-easy__mini-editor > .mado-pop-easy__quick-grid
        .mado-pop-easy__quick-control > span:first-child {
        min-height: 22px;
        align-items: center;
        line-height: 22px;
    }

    #mado-pop-campaign-page .mado-pop-easy__mini-editor > .mado-pop-easy__quick-grid
        .mado-pop-easy__quick-number {
        min-height: 48px;
        align-items: center;
    }

    #mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__svg-aspect-lock {
        min-height: 22px;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text {
        grid-template-columns: repeat(2, 172px);
        justify-content: center;
        align-items: start;
        column-gap: 32px;
        row-gap: 10px;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field {
        grid-template-rows: 22px 48px auto;
        row-gap: 8px;
        align-content: start;
        width: 172px;
        min-width: 0;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field > span:first-child {
        min-height: 22px;
        line-height: 22px;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field:not(.mado-pop-easy__compact-field--shared-color) > span:last-child {
        height: 48px;
        min-height: 48px;
        align-items: center;
        justify-content: center;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__compact-field--shared-color > .mado-ui-color-control--google,
    #mado-pop-campaign-page .mado-pop-easy__svg-color > .mado-ui-color-control--google,
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field--color > .mado-ui-color-control--google {
        justify-self: center;
        width: 134px;
        min-width: 134px;
        max-width: 134px;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        padding: 6px 10px 6px 6px;
        border-color: var(--mado-ui-compact-control-border, #bcbebf);
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__compact-field--shared-color > .mado-ui-color-control--google .mado-ui-color-control--google__hex,
    #mado-pop-campaign-page .mado-pop-easy__svg-color > .mado-ui-color-control--google .mado-ui-color-control--google__hex,
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field--color > .mado-ui-color-control--google .mado-ui-color-control--google__hex {
        height: 34px;
        min-height: 34px;
        line-height: 34px;
        font-size: 15px;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__compact-field--shared-color > .mado-ui-color-presets {
        justify-self: center;
        margin-top: 0;
    }
}

/* EASY TABLET RHYTHM + CONTROL FINISH / 2026-10-18 r7 - Whole-POP Link is now a canonical Easy step after Motion; that workflow change is owned by PHP/JS, not duplicated here. */
@media (min-width: 721px) and (max-width: 980px) {
    
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="1"] > .mado-pop-easy__choice-grid {
        margin-top: 10px;
        column-gap: 20px;
    }

    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="4"] > :is(
        [data-mado-pop-easy-bg-panel="solid"],
        .mado-pop-easy__background-ui
    ) {
    }

    #mado-pop-campaign-page .mado-pop-easy__step:is(
        [data-mado-pop-easy-step="1"],
        [data-mado-pop-easy-step="2"],
        [data-mado-pop-easy-step="3"],
        [data-mado-pop-easy-step="4"],
        [data-mado-pop-easy-step="5"],
        [data-mado-pop-easy-step="14"],
        [data-mado-pop-easy-step="15"]
    ) {
        min-height: 310px;
    }

    #mado-pop-campaign-page .mado-pop-easy__step:is(
        [data-mado-pop-easy-step="10"],
        [data-mado-pop-easy-step="12"],
        [data-mado-pop-easy-step="13"]
    ) {
        min-height: 290px;
    }

}

@media (min-width: 721px) {
    #mado-pop-campaign-page .mado-pop-easy__more-body--text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        align-items: start;
        column-gap: clamp(14px, 3vw, 28px);
        row-gap: 12px;
    }

    #mado-pop-campaign-page .mado-pop-easy__more-body--text > .mado-pop-easy__compact-field {
        width: min(134px, 100%);
        min-width: 0;
        justify-self: center;
        align-content: start;
    }

    #mado-pop-campaign-page .mado-pop-easy__more-body--text > .mado-pop-easy__compact-field > span:first-child {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    #mado-pop-campaign-page .mado-pop-easy__more-body--text .mado-ui-number-stepper {
        width: 134px;
        min-width: 0;
        max-width: 100%;
    }

    #mado-pop-campaign-page .mado-pop-easy__more-body--text .mado-pop-easy__compact-field > select {
        box-sizing: border-box;
        width: 134px;
        min-width: 0;
        max-width: 100%;
        height: 48px;
        min-height: 48px;
        margin: 0;
        padding: 0 42px 0 16px;
        border: 1px solid var(--mado-ui-compact-control-border, #bcbebf);
        border-radius: 999px;
        background-color: #ffffff;
        background-image: var(--mado-ui-select-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2364748b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"));
        background-repeat: no-repeat;
        background-position: right 18px center;
        background-size: 10px 6px;
        color: #202124;
        font: inherit;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.2;
        appearance: none;
        -webkit-appearance: none;
        -moz-appearance: none;
        box-shadow: none;
        cursor: pointer;
    }

    #mado-pop-campaign-page .mado-pop-easy__more-body--text .mado-pop-easy__compact-field > select:focus-visible {
        border-color: #64748b;
        outline: 2px solid rgba(100, 116, 139, 0.18);
        outline-offset: 1px;
    }
}

@media (min-width: 721px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="4"] {
        min-height: 300px;
    }
}
/* EASY UNSAVED EXIT / 2026-10-18 MADO BASE owns the shared modal, button colors and focus styles. */
#mado-pop-campaign-page .mado-pop-easy__leave-dialog {
    width: min(470px, 100%);
}
#mado-pop-campaign-page .mado-pop-easy__leave-actions {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
#mado-pop-campaign-page .mado-pop-easy__leave-actions > button {
    width: 100%;

}
#mado-pop-campaign-page .mado-pop-easy__leave-discard,
#mado-pop-campaign-page .mado-pop-easy__leave-discard:hover,
#mado-pop-campaign-page .mado-pop-easy__leave-discard:focus-visible {
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--mado-portal-text-muted, #64748b);
    text-decoration: underline;
    text-underline-offset: 3px;
}
#mado-pop-campaign-page .mado-pop-easy__leave-discard:focus-visible {
    outline: 2px solid var(--mado-brand-accent, #06bfb5);
    outline-offset: 2px;
}

#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="9"]
    .mado-pop-layer-menu__compact-toggle[aria-expanded="false"],
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="16"]
    .mado-pop-layer-menu__compact-toggle[aria-expanded="false"] {
    border-color: var(--mado-pop-primary);
    background-color: var(--mado-pop-primary-soft);
    animation: mado-pop-easy-layer-guide-pulse 2.4s ease-in-out infinite;
}

#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="9"]
    .mado-pop-layer-menu__row.is-compact-menu-open
    .mado-pop-layer-menu__move-controls[data-mado-pop-layer-compact-panel="1"]
    > .mado-pop-layer-menu__motion:not(:disabled),
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="16"]
    .mado-pop-layer-menu__row.is-compact-menu-open
    .mado-pop-layer-menu__move-controls[data-mado-pop-layer-compact-panel="1"]
    > .mado-pop-layer-menu__link:not(:disabled) {
    background-color: var(--mado-pop-primary-soft);
    animation: mado-pop-easy-layer-guide-pulse 2.4s ease-in-out infinite;
}
@keyframes mado-pop-easy-layer-guide-pulse {
    0%, 100% { box-shadow: inset 0 0 0 1px var(--mado-pop-primary-ring); }
    50% { box-shadow: inset 0 0 0 1px var(--mado-pop-primary), 0 0 0 4px var(--mado-pop-primary-ring); }
}
/* STEP 9 help disclosure: visible explanation comes before it; the chevron follows native <details>[open]. */
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="9"]
    .mado-pop-easy__motion-entry-help strong {
    font-weight: 700;
    color: var(--mado-portal-text, #0f172a);
}
/* R76: motion content inherits its parent's disclosure surface. */
@media (prefers-reduced-motion: reduce) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="9"]
        .mado-pop-layer-menu__compact-toggle[aria-expanded="false"],
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="16"]
        .mado-pop-layer-menu__compact-toggle[aria-expanded="false"],
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="9"]
        .mado-pop-layer-menu__row.is-compact-menu-open
        .mado-pop-layer-menu__move-controls[data-mado-pop-layer-compact-panel="1"]
        > .mado-pop-layer-menu__motion:not(:disabled),
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="16"]
        .mado-pop-layer-menu__row.is-compact-menu-open
        .mado-pop-layer-menu__move-controls[data-mado-pop-layer-compact-panel="1"]
        > .mado-pop-layer-menu__link:not(:disabled) {
        animation: none;
        box-shadow: inset 0 0 0 1px var(--mado-pop-primary);
    }
}

/* STEP 4: preserve the older wide-screen spacing, but do not apply this */
@media (min-width: 621px) {
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="4"] > :is(
    [data-mado-pop-easy-bg-panel="solid"], .mado-pop-easy__background-ui
) {
    margin-top: 50px;
}
}

#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="5"] > .mado-pop-easy__own-images {
    margin-top: 34px; 
}

#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="11"] .mado-pop-easy__placement-offsets {
    justify-items: center;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="11"] .mado-pop-easy__placement-offsets > .mado-pop-easy__compact-field {
    width: min(100%, 154px);
    justify-self: center;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="11"] .mado-pop-easy__placement-offsets > .mado-pop-easy__compact-field > span:first-child {
    text-align: center;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="11"] .mado-pop-easy__placement-offsets > .mado-pop-easy__compact-field > span:last-child {
    justify-content: center;
}
@media (min-width: 621px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="11"] .mado-pop-easy__placement-offsets {
        grid-template-columns: repeat(2, minmax(0, 172px));
        column-gap: 24px;
        justify-content: center;
    }
}

@media (min-width: 721px) and (max-width: 980px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="4"] > :is(
        [data-mado-pop-easy-bg-panel="solid"], .mado-pop-easy__background-ui
    ) {
        margin-top: 70px; 
    }
}

/* EASY R28 / 2026-10-18: targeted layout adjustments only. Small phones retain their canonical single column; wide desktop keeps 3 columns. PC choice/control groups gain 20px above only; don't shift headings, descriptions, or phone layout. */
@media (min-width: 621px) and (max-width: 1300px) {
    
}
@media (min-width: 981px) {
    
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="11"] > .mado-pop-easy__placement-browser {
        margin-top: 20px;
    }
    
}

/* EASY PHONE MATERIAL + PREVIEW COMPACT / 2026-10-18 R30 - The single canonical preview still follows the settings; no duplicate canvas, - SVG color input remains the native browser/OS color picker; only the MADO-owned */
@media (max-width: 720px) {
    
    #mado-pop-campaign-page .mado-pop-easy__more-body--material {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px 10px;
        align-items: start;
    }
    
    #mado-pop-campaign-page .mado-pop-easy__more-body--material > .mado-pop-easy__svg-colors {
        grid-column: 2;
        min-width: 0;
        padding: 8px;
        gap: 8px;
        align-self: start;
    }
    

    #mado-pop-campaign-page .mado-pop-easy__layout > .mado-pop-easy__preview {
        position: static;
        padding: 0;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }
    #mado-pop-campaign-page .mado-pop-easy__layout {
        row-gap: 4px;
    }
    #mado-pop-campaign-page .mado-pop-easy__preview-stage {
        min-height: 0;
        max-height: min(52dvh, 420px);
        padding: 6px;
        border: 0;
        border-radius: 8px;
        place-items: start center;
    }
    #mado-pop-campaign-page .mado-pop-easy__step-index {
        margin-top: 4px;
        padding: 0 2px;
    }
}

#mado-pop-campaign-page .mado-pop-easy__registered-colors {
    display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
    width: 100%; margin-top: 10px;
}
#mado-pop-campaign-page .mado-pop-easy__registered-colors[hidden] { display: none; }

/* R59: SNS has a single link URL, not the Normal POP per-layer editor. The scoped grid display rule must never override the native hidden state. */
#mado-pop-campaign-page .mado-pop-easy__layer-guide[hidden] { display: none !important; }

/* R60: hint for the not-yet-selected SNS logo; do not render into export canvas. */
#mado-pop-campaign-page .mado-pop-easy__preview-stage { position: relative; }
#mado-pop-campaign-page .mado-pop-easy__sns-preview-note {
    position: absolute;
    z-index: 2;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: min(320px, calc(100% - 32px));
    margin: 0;
    padding: 18px 14px;
    border: 1px solid #b2e5e1;
    border-radius: 14px;
    background: rgba(255, 255, 255, .94);
    color: #145b5b;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.6;
    text-align: center;
    pointer-events: none;
}
#mado-pop-campaign-page .mado-pop-easy__sns-preview-note span {
    display: block;
    margin-top: 5px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
}
#mado-pop-campaign-page .mado-pop-easy__sns-preview-note[hidden] { display: none !important; }

/* R60: the existing MADO BASE confirm design, raised into native dialog top layer. */
.mado-portal-container dialog.mado-pop-easy__kind-switch-modal {
    margin: 0;
    width: 100%;
    max-width: none;
    height: 100%;
    max-height: none;
    border: 0;
    background: transparent;
    color: inherit;
}
.mado-portal-container dialog.mado-pop-easy__kind-switch-modal:not([open]) { display: none !important; }
.mado-portal-container dialog.mado-pop-easy__kind-switch-modal::backdrop { background: transparent; }

#mado-pop-campaign-page .mado-pop-easy__registered-color { padding: 0;
    border: 1px solid var(--mado-portal-field-border, #cbd5e1); background: var(--mado-pop-registered-color); cursor: pointer;
}
#mado-pop-campaign-page .mado-pop-easy__registered-color:focus-visible {
    outline: 2px solid var(--mado-brand-accent, #06bfb5); outline-offset: 2px;
}

@media (min-width: 1025px) {
    
}

@media (max-width: 1024px) {
    
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text {
        display: grid;
        row-gap: 12px;
        justify-content: stretch;
        align-items: start;
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field {
        grid-template-rows: 22px 48px auto;
        row-gap: 8px;
        width: auto;
        min-width: 0;
        align-content: start;
        justify-items: center;
        text-align: center;
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field > span:first-child {
        min-height: 22px;
        line-height: 22px;
        text-align: center;
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field:not(.mado-pop-easy__compact-field--shared-color) > span:last-child {
        min-height: 48px;
        height: 48px;
        align-items: center;
        justify-content: center;
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__compact-field--shared-color > .mado-ui-color-control--google,
    #mado-pop-campaign-page .mado-pop-easy__svg-color > .mado-ui-color-control--google,
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field--color > .mado-ui-color-control--google {
        --mado-ui-compact-control-width: 134px;
        --mado-ui-compact-control-height: 48px;
        box-sizing: border-box;
        justify-self: center;
        width: min(134px, 100%);
        min-width: 0;
        max-width: 100%;
        height: 48px;
        min-height: 48px;
        max-height: 48px;
        padding: 6px 7px 6px 6px;
        border-color: var(--mado-ui-compact-control-border, #bcbebf);
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__compact-field--shared-color > .mado-ui-color-control--google .mado-ui-color-control--google__hex,
    #mado-pop-campaign-page .mado-pop-easy__svg-color > .mado-ui-color-control--google .mado-ui-color-control--google__hex,
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field--color > .mado-ui-color-control--google .mado-ui-color-control--google__hex {
        min-width: 0;
        height: 34px;
        min-height: 34px;
        line-height: 34px;
        font-size: 14px;
    }

    #mado-pop-campaign-page .mado-pop-easy__steps:has(> .mado-pop-easy__step:not([hidden]):is(
        [data-mado-pop-easy-step="8"],
        [data-mado-pop-easy-step="9"],
        [data-mado-pop-easy-step="16"]
    )) {
        padding-bottom: 4px;
    }
    
    #mado-pop-campaign-page .mado-pop-easy__steps:has(> .mado-pop-easy__step[data-mado-pop-easy-step="7"]:not([hidden])) {
        padding-bottom: 4px;
    }
    /* STEP 9 has a preview-controls row with two initially hidden buttons. Do not reserve the row's 18px margin or a grid gap while both are hidden. */
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="9"] > .mado-pop-easy__motion-preview-row:not(:has(> button:not([hidden]))) {
        display: none;
    }
}
/* Keep native 46px+42px+46px stepper tap targets at exceptionally narrow widths. */
@media (max-width: 345px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text {
    }
}

@media (min-width: 721px) and (max-width: 1024px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        column-gap: clamp(12px, 2.4vw, 24px);
    }
}

/* EASY R33 / 2026-10-18 — phone layout and unsaved-exit buttons. Cosmetic changes only; existing Easy modal/step navigation and canonical saving */

#mado-pop-campaign-page .mado-pop-easy__leave-actions > button {
    box-sizing: border-box;
    min-height: 47px;
    font-size: 14px;
    font-weight: 700;
}
/* Intentional, available secondary action: never imitate a disabled button. */
#mado-pop-campaign-page .mado-pop-easy__leave-actions > .mado-pop-easy__leave-discard {
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    box-shadow: none;
    color: #475569;
    text-decoration: none;
    cursor: pointer;
}
#mado-pop-campaign-page .mado-pop-easy__leave-actions > .mado-pop-easy__leave-discard:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
}
#mado-pop-campaign-page .mado-pop-easy__leave-actions > .mado-pop-easy__leave-discard:focus-visible {
    border-color: #06bfb5;
    background: #f8fafc;
    color: #334155;
    text-decoration: none;
    outline: 2px solid var(--mado-brand-accent, #06bfb5);
    outline-offset: 2px;
}

@media (min-width: 981px) {
    #mado-pop-campaign-page .mado-pop-easy__steps:has(> .mado-pop-easy__step:not([hidden]):is(
        [data-mado-pop-easy-step="8"],
        [data-mado-pop-easy-step="9"],
        [data-mado-pop-easy-step="16"]
    )) {
        padding-bottom: 2px; 
    }
}
@media (max-width: 720px) {
    
    #mado-pop-campaign-page .mado-pop-easy__step-nav {
        margin-bottom: 5px;
    }
    /* STEP 12: two symmetric numeric fields. 134px shared steppers remain full-size; never shrink their +/- touch targets to squeeze the grid. */
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="11"]
        > .mado-pop-easy__placement-offsets {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        justify-items: center;
        align-items: start;
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="11"]
        > .mado-pop-easy__placement-offsets > .mado-pop-easy__compact-field {
        min-width: 0;
        width: min(100%, 154px);
        justify-items: center;
        text-align: center;
    }

    /* At phone widths R32 already brought this bottom padding down to 4px. Remove the remaining 4px and the layer guide's last 10px, but never */
    #mado-pop-campaign-page .mado-pop-easy__steps:has(> .mado-pop-easy__step:not([hidden]):is(
        [data-mado-pop-easy-step="8"],
        [data-mado-pop-easy-step="9"],
        [data-mado-pop-easy-step="16"]
    )) {
        padding-bottom: 0;
    }
    #mado-pop-campaign-page .mado-pop-easy__step:is(
        [data-mado-pop-easy-step="8"],
        [data-mado-pop-easy-step="9"],
        [data-mado-pop-easy-step="16"]
    ) > .mado-pop-easy__layer-guide {
        padding: 4px 0 0; 
    }
}

@media (min-width: 721px) and (max-width: 980px) {
    #mado-pop-campaign-page .mado-pop-easy__steps:has(> .mado-pop-easy__step:not([hidden]):is(
        [data-mado-pop-easy-step="8"],
        [data-mado-pop-easy-step="9"],
        [data-mado-pop-easy-step="16"]
    )) {
        padding-bottom: 0;
    }
    #mado-pop-campaign-page .mado-pop-easy__step:is(
        [data-mado-pop-easy-step="8"],
        [data-mado-pop-easy-step="9"],
        [data-mado-pop-easy-step="16"]
    ) > .mado-pop-easy__layer-guide {
        padding: 4px 0 0;
    }
}
/* Exception for tiny phone widths where two full steppers cannot physically fit within settings-card gutters. This is a safety fallback, not tablet layout. */
@media (max-width: 339px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="11"]
        > .mado-pop-easy__placement-offsets {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* EASY R34 / 2026-10-18 — compact title editor panels. Visual state only: title + body_blocks remain the existing POP draft/save SSOT. */
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
    .mado-pop-easy__text-tab-panel[hidden],
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
    .mado-pop-easy__text-editor--body[hidden] { display: none !important; }
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid #e1e8ef;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-body-tabs { display: contents; }
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #cbdbe5;
    border-radius: 11px;
    background: #f8fcfc;
    color: var(--mado-pop-text, #0f172a);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.35;
    text-align: center;
    cursor: pointer;
}

#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab.is-active,
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab[aria-expanded="true"] {
    border-color: var(--mado-pop-primary, #06bfb5);
    background: var(--mado-pop-primary-soft, #e6fbf9);
    color: #075e59;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab:hover:not(:disabled) {
    border-color: var(--mado-pop-primary, #06bfb5);
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab:focus-visible {
    outline: 3px solid var(--mado-brand-accent, #06bfb5);
    outline-offset: 2px;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab:disabled {
    opacity: .5;
    cursor: not-allowed;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab-panel,
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__body-editors {
    min-width: 0;
    margin: 0;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab-panel > .mado-pop-easy__more-body {
    margin-top: 0;
    padding: 12px 0 4px;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-editor--body {
    margin: 0;
    padding: 12px;
    border: 1px solid #d6e1ea;
    border-radius: 12px;
    background: #fbfefe;
}

#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab-count {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
/* EASY R35 / 2026-10-18 — labels and tab density only. */
@media (min-width: 621px) and (max-width: 1024px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tabs {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 6px;
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab {
        padding-inline: 6px;
        /* 2026-11-02: old 13px disabled; base text tabs are 14px, same as further edit. */
    }
}
@media (max-width: 620px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
    /* Free horizontal space for one-line tab labels on 320–390px phones. */
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] > .mado-pop-easy__text-editor {
        padding-inline: 10px;
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab {
        padding-inline: 6px;
        /* 2026-11-02: old phone 13px disabled; inherit the existing 14px base. */
    }
}
/* Labels stay on one line across all three layouts; do not alter button hit height. */
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tab {
    white-space: nowrap;
}
@media (min-width: 721px) and (max-width: 1024px) {
    
    #mado-pop-campaign-page .mado-pop-easy__more-body--material {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    
}

/* EASY R36 / 2026-10-18 — keep "さらに編集" with each text's size/color. between added texts. POP draft fields, color storage, and save routes stay SSOT. */
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
    .mado-pop-easy__quick-grid--text > .mado-pop-easy__text-more-toggle {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: start;
    min-width: 0;
    width: min(134px, 100%);
    height: 48px;
    min-height: 48px;
    margin-top: 30px; 
    padding: 8px;
    border: 1px solid #cbdbe5;
    border-radius: 11px;
    background: #f8fcfc;
    color: var(--mado-pop-text, #0f172a);
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
    .mado-pop-easy__text-more-toggle:hover,
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
    .mado-pop-easy__text-more-toggle.is-active {
    border-color: var(--mado-pop-primary, #06bfb5);
    background: var(--mado-pop-primary-soft, #e6fbf9);
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
    .mado-pop-easy__text-more-toggle:focus-visible {
    outline: 3px solid var(--mado-pop-primary, #06bfb5);
    outline-offset: 2px;
}
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
    .mado-pop-easy__body-more-panel[hidden] { display: none !important; }
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
    .mado-pop-easy__body-more-panel > .mado-pop-easy__more-body {
    margin-top: 0;
    padding: 12px 0 4px;
}

@media (max-width: 1024px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
        .mado-pop-easy__quick-grid--text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-items: center;
        column-gap: clamp(10px, 2.4vw, 24px);
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
        .mado-pop-easy__quick-grid--text > .mado-pop-easy__text-more-toggle {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(134px, 100%);
        min-height: 48px;
        margin-top: 0;
    }
}

@media (min-width: 1025px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
        .mado-pop-easy__quick-grid--text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        justify-content: stretch;
        justify-items: center;
        column-gap: clamp(12px, 2vw, 24px);
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
        .mado-pop-easy__quick-grid--text > .mado-pop-easy__text-more-toggle {
        grid-column: 1 / -1;
        justify-self: center;
        width: min(134px, 100%);
        min-height: 48px;
        margin-top: 0;
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
        .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field {
        justify-items: center;
        text-align: center;
        width: min(172px, 100%);
    }
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
        .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field > span:first-child {
        text-align: center;
    }
}
/* The help is one intentional Tab stop after the heading on STEPs 8/9/10. Keep a visible, non-flashing focus ring and allow it to scroll into view. */
#mado-pop-campaign-page .mado-pop-easy__step .mado-pop-easy__focusable-help:focus-visible {
    outline: 3px solid var(--mado-pop-primary, #06bfb5);
    outline-offset: 4px;
    border-radius: 4px;
}

@media (max-width: 620px) {
    
    #mado-pop-campaign-page .mado-pop-easy__device-size-card > .mado-pop-easy__size-fields--device > .mado-pop-easy__times {
        display: block;
        align-self: end;
        padding-bottom: 13px;
        font-size: 16px;
    }
    
}

@media (max-width: 1024px) {
    #mado-pop-campaign-page .mado-pop-easy__more-body--material > .mado-pop-easy__compact-field,
    #mado-pop-campaign-page .mado-pop-easy__more-body--text > .mado-pop-easy__compact-field {
        min-width: 0;
        width: min(134px, 100%);
        justify-self: center;
        justify-items: center;
        text-align: center;
    }
    #mado-pop-campaign-page .mado-pop-easy__more-body--material > .mado-pop-easy__compact-field > span:first-child,
    #mado-pop-campaign-page .mado-pop-easy__more-body--text > .mado-pop-easy__compact-field > span:first-child {
        width: 100%;
        text-align: center;
    }
    #mado-pop-campaign-page .mado-pop-easy__more-body--material > .mado-pop-easy__compact-field > span:last-child,
    #mado-pop-campaign-page .mado-pop-easy__more-body--text > .mado-pop-easy__compact-field > span:last-child {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 345px) {
    #mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="7"]
        .mado-pop-easy__quick-grid--text {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    
    #mado-pop-campaign-page .mado-pop-easy__step > h3 + p {
        font-size: 16px;
    }
    #mado-pop-campaign-page .mado-pop-easy__step > p.mado-pop-easy__step-help {
        font-size: 17px;
    }
}

/* R54 / 2026-10-19: STEP 15 must be a visible Tab destination after Back. The other step headings keep their existing scripted-focus contract. */
#mado-pop-campaign-page .mado-pop-easy__step .mado-pop-easy__focusable-heading:focus-visible {
    outline: 3px solid var(--mado-pop-primary, #06bfb5);
    outline-offset: 4px;
    border-radius: 4px;
}

/* R55: STEP 1 radios must expose the entire card to mobile accessibility hit testing, like the Banner Area's native radio cards. Keep one native radio */
#mado-pop-campaign-page .mado-pop-easy__step[data-mado-pop-easy-step="1"]
    .mado-pop-easy__choice input[data-mado-pop-easy-kind] {
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: .01;
    pointer-events: auto;
}

/* Scrolling to an active heading must leave its STEP n label visible below */
@media (max-width: 1024px) {
    #mado-pop-campaign-page .mado-pop-easy__step {
        scroll-margin-top: 86px;
    }
    #mado-pop-campaign-page .mado-pop-easy__head .mado-pop-easy__heading {
        scroll-margin-top: 86px;
    }
}

/* R4 / 2026-11-21: STEP navigation and Save use the canonical editor action color.
 * See public/css/publication-ui.css (one token source; no second palette here).
 * Selected materials, device controls and backgrounds remain mint. */
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__step-nav-next,
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__save.mado-ui-button--primary {
    color: #ffffff;
    background-color: var(--mado-editor-save-bg, #36566b);
    border-color: var(--mado-editor-save-bg, #36566b);
}
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__step-nav-next:hover,
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__step-nav-next:focus,
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__step-nav-next:focus-visible,
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__step-nav-next:active,
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__save.mado-ui-button--primary:hover,
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__save.mado-ui-button--primary:focus,
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__save.mado-ui-button--primary:focus-visible,
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__save.mado-ui-button--primary:active {
    color: #ffffff;
    background-color: var(--mado-editor-save-bg-hover, #2f4d61);
    border-color: var(--mado-editor-save-bg-hover, #2f4d61);
}
/* R128: keyboard focus is visible but no longer a heavy black rectangle. */
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__step-nav-next:focus-visible,
#mado-pop-campaign-page .mado-pop-easy .mado-pop-easy__save.mado-ui-button--primary:focus-visible {
    outline: 2px solid var(--mado-pop-wizard-focus, #08766f);
    outline-offset: 2px;
}

#mado-pop-campaign-page .mado-pop-easy__mini-editor > .mado-pop-easy__quick-grid
    .mado-pop-easy__quick-number {
    justify-content: center;
}
#mado-pop-campaign-page .mado-pop-easy__more-body--material > .mado-pop-easy__compact-field {
    width: min(134px, 100%);
    min-width: 0;
    justify-self: center;
    justify-items: center;
    text-align: center;
}
#mado-pop-campaign-page .mado-pop-easy__more-body--material > .mado-pop-easy__compact-field > span:first-child {
    width: 100%;
    text-align: center;
}
#mado-pop-campaign-page .mado-pop-easy__more-body--material > .mado-pop-easy__compact-field > span:last-child {
    width: 100%;
    justify-content: center;
}


#mado-pop-campaign-page .mado-pop-easy__sns-size-panel[hidden] {
    display: none;
}
#mado-pop-campaign-page .mado-pop-easy__sns-size-panel .mado-pop-easy__mini-editor-head h4 {
    margin: 0;
    color: #0f172a;
    font-size: 15px;
    font-weight: 800;
}
#mado-pop-campaign-page .mado-pop-easy__sns-size-panel > .mado-pop-easy__quick-control {
    width: min(260px, 100%);
    justify-self: center;
}
#mado-pop-campaign-page .mado-pop-easy__sns-size-panel .mado-pop-easy__quick-number {
    justify-content: center;
}

#mado-pop-campaign-page .mado-pop-easy__registered-colors:not([hidden]),
#mado-pop-campaign-page .mado-pop-easy__compact-field--shared-color > .mado-ui-color-presets,
#mado-pop-campaign-page .mado-pop-easy__bg-palette {
    display: grid;
    grid-template-columns: repeat(5, 24px);
    justify-content: center;
    justify-items: center;
    align-items: center;
    column-gap: 7px;
    row-gap: 7px;
    width: 100%;
    max-width: 100%;
    margin-top: 8px;
}
@media (max-width: 720px) {
    #mado-pop-campaign-page .mado-pop-easy__registered-colors:not([hidden]),
    #mado-pop-campaign-page .mado-pop-easy__compact-field--shared-color > .mado-ui-color-presets,
    #mado-pop-campaign-page .mado-pop-easy__bg-palette {
        column-gap: 3px;
    }
}
@media (max-width: 360px) {
    #mado-pop-campaign-page .mado-pop-easy__registered-colors:not([hidden]),
    #mado-pop-campaign-page .mado-pop-easy__compact-field--shared-color > .mado-ui-color-presets,
    #mado-pop-campaign-page .mado-pop-easy__bg-palette {
        column-gap: 2px;
    }
}

#mado-pop-campaign-page .mado-pop-easy__registered-color,
#mado-pop-campaign-page .mado-pop-easy__bg-palette .mado-pop-easy__color-swatch {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
}
#mado-pop-campaign-page .mado-pop-easy__compact-field--shared-color
  > .mado-ui-color-presets > .mado-ui-color-preset {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
}
#mado-pop-campaign-page .mado-pop-easy__bg-palette {
    min-width: 0;
    overflow: visible;
    padding: 5px 0;
}
#mado-pop-campaign-page .mado-pop-easy__color-row:has(> .mado-pop-easy__bg-palette) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 9px;
}

#mado-pop-campaign-page .mado-pop-easy__phone-range-launch {
    display: none;
}
@media (max-width: 620px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 7px;
        padding-bottom: clamp(70px, 12dvh, 120px);
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step-nav {
        position: relative;
        z-index: 4;
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 6px;
        margin: 0;
        min-width: 0;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step-nav > :is(.mado-pop-easy__step-nav-back,.mado-pop-easy__step-nav-next) {
        flex: 1 1 0;
        min-width: 0;
        min-height: 44px;
        padding: 8px 8px;
        white-space: nowrap;
    }
    
/* 2026-11-02 REVIEW HOLD: phone progress now uses the visible green kicker.
    #mado-pop-campaign-page .mado-pop-easy__step-kicker {
        position: absolute;
        width: 1px;
        height: 1px;
        margin: -1px;
        padding: 0;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }
*/
    #mado-pop-campaign-page .mado-pop-easy__layout > .mado-pop-easy__preview {
        min-width: 0;
        order: 1;
        position: static;
        margin: 0;
        padding: 0;
    }
    #mado-pop-campaign-page .mado-pop-easy__preview-stage {
        min-height: clamp(200px, 32dvh, 360px);
        max-height: none;
        height: auto;
        padding: 5px;
        overflow: auto;
    }
    #mado-pop-campaign-page .mado-pop-easy__steps {
        min-width: 0;
        padding: 11px;
    }
    #mado-pop-campaign-page [data-mado-pop-easy-normal-material] .mado-pop-easy__catalog-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0,1fr));
        gap: 8px;
    }
    #mado-pop-campaign-page [data-mado-pop-easy-normal-material] .mado-pop-easy__catalog-actions > .mado-ui-button {
        min-width: 0;
        min-height: 44px;
        padding: 7px 5px;
        font-size: clamp(12px, 3.6vw, 15px);
        white-space: normal;
        overflow-wrap: anywhere;
    }
    #mado-pop-campaign-page [data-mado-pop-easy-material-editor] > .mado-pop-easy__mini-editor-head {
        display: none;
    }
    #mado-pop-campaign-page .mado-pop-easy__phone-range-field {
        display: flex;
        align-items: end;
        gap: 6px;
        min-width: 0;
    }
    
    #mado-pop-campaign-page .mado-pop-easy__phone-range-field > .mado-pop-easy__quick-control input[type="range"] {
        display: none;
    }
    #mado-pop-campaign-page .mado-pop-easy__phone-range-launch {
        display: inline-flex;
        flex: 0 0 52px;
        justify-content: center;
        align-items: center;
        min-width: 52px;
        min-height: 44px;
        padding: 6px;
        border: 1px solid #8bbfba;
        border-radius: 9px;
        background: #effbf9;
        color: #075e59;
        font-size: 14px;
        font-weight: 800;
        cursor: pointer;
    }
    #mado-pop-campaign-page .mado-pop-easy__phone-range-launch:focus-visible {
        outline: 2px solid #08766f;
        outline-offset: 2px;
    }
}
@media (min-width: 621px) {
    #mado-pop-campaign-page .mado-pop-easy__phone-range-field {
        display: contents;
    }
}
/* A single temporary slider dialog delegates to the unchanged Easy range. The native dialog owns focus containment and Escape, without new polling. */
#mado-pop-campaign-page .mado-pop-easy__phone-range-dialog {
    position: fixed;
    inset: auto 0 max(0px, env(safe-area-inset-bottom)) 0;
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    margin: auto 0 0;
    padding: 15px max(16px, env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    border: 1px solid #90c6c0;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -6px 22px rgba(15, 23, 42, .15);
    color: #132e41;
    font-size: 16px;
}
#mado-pop-campaign-page .mado-pop-easy__phone-range-dialog::backdrop {
    background: rgba(15,23,42,.18);
}
#mado-pop-campaign-page .mado-pop-easy__phone-range-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
#mado-pop-campaign-page .mado-pop-easy__phone-range-top strong {
    flex: 1 1 auto;
    font-size: 17px;
}
#mado-pop-campaign-page .mado-pop-easy__phone-range-top output {
    font-size: 18px;
    font-weight: 800;
}
#mado-pop-campaign-page .mado-pop-easy__phone-range-close {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #a7c5c5;
    border-radius: 10px;
    background: #fff;
    color: #18333f;
    font-size: 24px;
}
#mado-pop-campaign-page .mado-pop-easy__phone-range-track {
    display: block;
    width: 100%;
    min-height: 48px;
    margin: 5px 0 10px;
    accent-color: #00b7ad;
}
#mado-pop-campaign-page .mado-pop-easy__phone-range-extents {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 16px;
    color: #475569;
}
#mado-pop-campaign-page .mado-pop-easy__phone-range-launch:disabled {
    opacity: .45;
    cursor: not-allowed;
}
/* The editing section already has aria-label="選択中の素材を調整"; the repeated */
#mado-pop-campaign-page [data-mado-pop-easy-material-editor] .mado-pop-easy__mini-editor-head > strong {
    display: none;
}

@media (min-width: 721px) {
    #mado-pop-campaign-page .mado-pop-easy__mini-editor > .mado-pop-easy__quick-grid
      > .mado-pop-easy__material-size-aspect > .mado-pop-easy__phone-range-field > [data-mado-pop-easy-material-uniform-size],
    #mado-pop-campaign-page .mado-pop-easy__mini-editor > .mado-pop-easy__quick-grid
      > .mado-pop-easy__phone-range-field > .mado-pop-easy__quick-control {
        grid-template-rows: 22px 48px;
        row-gap: 7px;
        align-content: start;
    }
}
@media (max-width: 620px) {
    #mado-pop-campaign-page .mado-pop-easy__quick-grid--material .mado-pop-easy__svg-aspect-lock {
        position: static;
        justify-self: center;
        min-height: 32px;
        margin-top: 0;
    }
}

/* R130 / PHONE EASY PREVIEW CONTROL ALIGNMENT / 2026-10-22 The controls remain the canonical R129 inputs and slider launchers. */
@media (max-width: 620px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      [data-mado-pop-easy-material-editor] > .mado-pop-easy__quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 8px;
        row-gap: 12px;
        align-items: start;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      [data-mado-pop-easy-material-editor] .mado-pop-easy__phone-range-field {
        min-width: 0;
        gap: 4px;
        align-items: end;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      [data-mado-pop-easy-material-editor] .mado-pop-easy__phone-range-field > .mado-pop-easy__quick-control {
        min-width: 0;
        justify-items: center;
        gap: 6px;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      [data-mado-pop-easy-material-editor] .mado-pop-easy__quick-control > span:first-child {
        width: 100%;
        min-width: 0;
        white-space: nowrap;
        font-size: 15px;
        font-weight: 700;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      [data-mado-pop-easy-material-editor] .mado-pop-easy__quick-control > span:first-child output {
        display: none;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      [data-mado-pop-easy-material-editor] .mado-pop-easy__phone-range-launch {
        flex: 0 0 35px;
        width: 35px;
        min-width: 35px;
        min-height: 40px;
        padding: 5px 2px;
        font-size: 12px;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      [data-mado-pop-easy-material-editor] .mado-pop-easy__quick-number {
        justify-content: center;
        width: 100%;
        min-width: 0;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      [data-mado-pop-easy-material-editor] .mado-pop-easy__quick-number .mado-ui-number-stepper {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      [data-mado-pop-easy-material-editor] .mado-pop-easy__material-size-aspect
      .mado-pop-easy__svg-aspect-lock {
        position: static;
        justify-self: center;
        margin-top: 6px;
        font-size: 15px;
        white-space: normal;
    }
    /* R131 STEP 1: reserve the invisible Back column in the layout so Next button/focus stop is created; the :before spacer is presentational. */
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      .mado-pop-easy__step-nav:has(> .mado-pop-easy__step-nav-back[hidden])::before {
        content: "";
        flex: 1 1 0;
        min-width: 0;
    }
}

/* R130 / EASY FOCUS CONSISTENCY / 2026-10-22 after the R128 shared stylesheet. Keyboard controls keep a visible, */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy
 :is(button, a[href], input:not([type="hidden"]), select, textarea, summary, [role="button"], [role="tab"]):focus-visible {
    outline: 2px solid #08766f;
    outline-offset: 2px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy
 :is(h1, h2, h3, h4, h5, h6, p, strong, span)[tabindex="-1"]:focus {
    outline: none;
    box-shadow: none;
}

/* R131 / EASY PHONE FINAL EDITOR ALIGNMENT / 2026-10-22 Scope: <=620px Easy only. Existing native inputs, SVG palette colors, text-add action and save pipeline remain canonical and unchanged. */
@media (max-width: 620px) {
    
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      .mado-pop-easy__more-body--material > .mado-pop-easy__svg-colors {
        grid-column: 1 / -1;
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      .mado-pop-easy__more-body--material .mado-pop-easy__svg-color-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        min-width: 0;
        gap: 8px;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
      .mado-pop-easy__more-body--material .mado-pop-easy__svg-color {
        flex-wrap: wrap;
        align-content: start;
        min-width: 0;
    }
}

/* R132 / EASY PHONE BACKGROUND CONTROL RECONCILIATION (R133 flow restored) border. Gradient start/end remain the same Provider-bound native inputs. */
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step-nav {
    scroll-margin-top: 62px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__steps {
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    padding: 4px 0 10px;
  }
  /* R72 / 2026-11-14: STEP5 MADO素材 (internal step 6) is the only
   * phone step that restores the shared white card and visible outline.
   * Keep the other phone steps' existing full-bleed/transparent layout. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__layout > .mado-pop-easy__steps:has(> .mado-pop-easy__step[data-mado-pop-easy-step="6"]:not([hidden])) {
    box-sizing: border-box;
    border: 1px solid #d9e4ef;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
    padding: 14px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="4"] {
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="4"] > .mado-pop-easy__background-ui {
    margin-top: 0;
    gap: 9px;
    max-width: none;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="4"] > [data-mado-pop-easy-bg-panel="solid"] {
    margin-top: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel {
    box-sizing: border-box;
    min-width: 0;
    padding: 12px 11px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-ui-card__title {
    margin-bottom: 9px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field-grid {
    gap: 13px 8px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field {
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field__label {
    font-size: clamp(12px, 3.4vw, 14px);
    line-height: 1.4;
  }

  /* The solid-color picker stays the sole native picker; no shadow input. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-pop-easy__color-custom > input[type="color"] {
    width: 40px;
    min-width: 40px;
    height: 40px;
    border-radius: 50%;
    padding: 3px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-pop-easy__color-custom > input[type="color"]::-webkit-color-swatch {
    border-radius: 50%;
  }
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-pop-easy__phone-range-field {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    min-width: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-pop-easy__phone-range-field > .mado-ui-range-control {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-start;
    gap: 4px;
    min-width: 0;
    width: auto;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-pop-easy__phone-range-field .mado-ui-range-control__slider {
    display: none;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-pop-easy__phone-range-field .mado-ui-range-control__number {
    flex: 1 1 auto;
    min-width: 0;
    width: 62px;
    max-width: 72px;
    min-height: 42px;
    padding-inline: 2px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-pop-easy__phone-range-field > .mado-pop-easy__phone-range-launch {
    display: inline-grid;
    place-items: center;
    flex: 0 0 35px;
    width: 35px;
    min-width: 35px;
    min-height: 42px;
    padding: 3px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-ui-angle-control {
    gap: 5px;
    min-width: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel .mado-ui-angle-control__number {
    flex: 1 1 auto;
    width: 0;
    max-width: none;
    min-width: 0;
    padding-inline: 3px;
  }
}

/* R133–R134 / EASY PHONE SETTINGS ABOVE EXPANDABLE PREVIEW / 2026-10-22 Keep one PHP-rendered preview below the active wizard settings. Do not reorder/clone the canvas/step controls. Preserve native Tab order. */
@media (max-width: 620px) {
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layout > .mado-pop-easy__steps {
    order: 0;
    
    padding-top: 0;
    padding-bottom: 0;
    min-width: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layout > .mado-pop-easy__preview {
    order: 1;
    min-width: 0;
    align-self: start;
  }
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-stage {
    min-height: calc(clamp(200px, 32dvh, 360px) + 150px);
    max-height: none;
    height: auto;
    overflow: auto;
    place-items: start center;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__material-size-aspect .mado-pop-easy__svg-aspect-lock {
    font-size: 15px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tabs .mado-pop-easy__layer-tab {
    font-size: 14px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] [data-mado-pop-easy-upload-button] {
    font-size: 16px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-guide-list :is(.mado-pop-layer-menu__item-label, .mado-pop-layer-menu__item-main) {
    font-size: 16px;
    line-height: 1.45;
  }
  /* At 540px the original layout switches the trigger choices to one column; restore 3 equal choices on phones, wrapping long labels within their cell. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__trigger-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__trigger-choice span {
    box-sizing: border-box;
    min-width: 0;
    min-height: 50px;
    padding: 6px 3px;
    font-size: clamp(12px, 3.2vw, 15px);
    line-height: 1.4;
    overflow-wrap: anywhere;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__timing-presets button {
    font-size: 16px;
  }
}

/* R135 / EASY DISPLAY & COLOR INPUT FINISH / 2026-10-22 controls and SVG color inputs. Do not alter their values or save path. */

@media (min-width: 621px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview {
    padding: 0;
    overflow: hidden;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-stage {
    box-sizing: border-box;
    min-height: clamp(530px, 72dvh, 790px);
    max-height: none;
    height: auto;
    width: 100%;
    padding: 16px;
    border: 0;
    border-radius: inherit;
    overflow: auto;
    place-items: start center;
  }
  
  /* R72 / 2026-11-14: STEP5 (internal step 6) uses the shared settings-card
   * surface. The old exception that erased its border/background/padding was
   * removed. Do not reintroduce a step-specific border reset. */
}

#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__more-body--material > .mado-pop-easy__svg-colors {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  border: 0;
  padding: 4px 0;
  background: transparent;
  grid-column: 1 / -1;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__more-body--material .mado-pop-easy__svg-color-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 14px 12px;
  min-width: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__more-body--material .mado-pop-easy__svg-color {
  min-width: 0;
  box-sizing: border-box;
}

/* The shared Normal palette already uses pill controls. Make Easy's older native background color fields match that familiar rounded silhouette on */
@media (min-width: 621px) {
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel .mado-pop-easy__color-custom > input[type="color"]::-webkit-color-swatch,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel .mado-pop-easy__color-custom > input[type="color"]::-moz-color-swatch {
    border-radius: 999px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 10px;
  }
}

/* R136 / EASY FORM & LAYER CLARITY / 2026-10-22 Preserve the native details keyboard and read-out behavior. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-size-guide,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__device-size-details {
  border: 0;
  background: transparent;
  border-radius: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-size-guide > summary,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__device-size-details > summary {
  margin-inline: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__device-size-grid {
  min-width: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] [data-mado-pop-easy-upload-button] {
  font-weight: 700;
}
@media (min-width: 621px) {
  #mado-pop-campaign-page .mado-pop-selected-summary__eyebrow {
    font-weight: 500;
  }
}
@media (max-width: 620px) {
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__more-body--text,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__quick-grid--text {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 6px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__more-body--text > .mado-pop-easy__compact-field,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field {
    min-width: 0;
    width: 100%;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="2"] .mado-pop-easy__choice-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
  }
  
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__device-size-card > .mado-pop-easy__size-fields--device > label {
    min-width: 0;
    width: 100%;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="6"] .mado-pop-easy__mini-editor {
    border: 0;
    box-shadow: none;
    background: transparent;
    padding-inline: 0;
  }
}

#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__intro {
  display: grid;
  gap: 5px;
  min-width: 0;
}
/* STEP1 intro is the visible step heading, not a separate header style. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__intro > .mado-pop-easy__heading {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.45;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step > :is(h3, .mado-pop-easy__intro) + p,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__intro > .mado-pop-easy__lead,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
:is([data-mado-pop-easy-normal-material], [data-mado-pop-easy-sns-material]) > h3 + p {
  color: #475569;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.65;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__intro .mado-pop-easy__lead {
  margin: 0;
}
/* R75 / 2026-11-14: STEP1/15 main editor link. The existing Easy JS unsaved-exit
 * confirmation handles navigation. Keep no underline, but preserve focus access. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] a.mado-pop-easy__main-page-link,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] a.mado-pop-easy__main-page-link:visited,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] a.mado-pop-easy__main-page-link:hover {
    color: #0e686a;
    text-decoration: none;
    cursor: pointer;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] a.mado-pop-easy__main-page-link:hover {
    background: rgba(14, 104, 106, .08);
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] a.mado-pop-easy__main-page-link:focus-visible {
    outline: 2px solid #0e686a;
    outline-offset: 2px;
    border-radius: 2px;
    text-decoration: none;
}


@media (max-width: 620px) {
  /* The original 134px stepper must shrink WITH its grid column on 320px phones; never let its fixed flex basis create horizontal overflow. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__device-size-card .mado-ui-number-stepper {
    display: grid;
    grid-template-columns: minmax(30px, 32%) minmax(0, 1fr) minmax(30px, 32%);
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__device-size-card .mado-ui-number-stepper__button {
    min-width: 0;
    width: 100%;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__device-size-card .mado-ui-number-stepper__input {
    width: 100%;
    min-width: 0;
    padding-inline: 0;
    box-sizing: border-box;
  }
}

@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-material-editor] .mado-pop-easy__phone-range-field > .mado-pop-easy__phone-range-launch {
    display: none;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-material-editor] .mado-pop-easy__quick-number {
    font-size: 0;
    gap: 0;
    align-items: center;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-material-editor] .mado-pop-easy__quick-control > span:first-child {
    justify-content: center;
    text-align: center;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-material-editor] .mado-pop-easy__phone-range-field > .mado-pop-easy__quick-control {
    flex: 1 1 100%;
    align-items: center;
  }
}

#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-size-guide__grid > div > span {
  font-size: 14px;
  line-height: 1.55;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
[data-mado-pop-easy-material-more] > summary {
  font-size: 15px;
}

/* R140 / EASY BACKGROUND MODE HEADINGS / 2026-10-23 Selected tab already names the background mode, so an identical caption */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-ui > .mado-pop-easy__background-panel > .mado-ui-card__title {
  display: none;
}

#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"]
.mado-pop-campaign-field-grid > :is(.mado-ui-field--angle, .mado-ui-field--range) {
  display: grid;
  grid-template-rows: auto auto;
  justify-items: center;
  align-content: start;
  min-width: 0;
  gap: 6px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"]
.mado-pop-campaign-field-grid > :is(.mado-ui-field--angle, .mado-ui-field--range) > .mado-pop-campaign-field__label {
  width: 100%;
  text-align: center;
}
  /* Gradient number inputs already receive the canonical MADO number stepper. The decoration must not compete for space in a narrow settings column. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] :is(.mado-ui-angle-control, .mado-ui-range-control) {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 100%;
    min-width: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] :is(.mado-ui-unit-control__unit, .mado-ui-range-control__unit) { display: none; }
/* R278: Match STEP3 width/height controls: same base .mado-ui-number-stepper. Do not reset the button/input typography, borders, or +/- positions. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-ui-number-stepper {
  flex: 0 1 var(--mado-ui-number-stepper-width, 134px);
  width: min(var(--mado-ui-number-stepper-width, 134px), 100%);
  max-width: 100%;
  min-width: 0;
}
/* Gradient number inputs still have the old angle/range classes. Restore only canonical .mado-ui-number-stepper rules used by STEP3 and STEP7. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"]
.mado-ui-number-stepper > input.mado-ui-number-stepper__input {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
  font-family: inherit;
  font-size: 18px;
  font-weight: 700;
  line-height: normal;
  
  position: relative;
  top: -1px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] :is(.mado-ui-angle-control__dial, .mado-ui-range-control__slider, .mado-ui-unit-control__unit, .mado-ui-range-control__unit) {
  display: none;
}

/* R279 / Canonical capsule presentation is shared with the STEP7 text-color rule Do not copy the capsule typography or dimensions again here. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"]
  .mado-ui-color-control--google > input[type="color"] {
    display: block;
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 0;
    margin: 0;
    border: 1px solid var(--mado-ui-compact-control-border, #bcbebf);
    border-radius: 50%;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    overflow: hidden;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"]
  .mado-ui-color-control--google > input[type="color"]::-webkit-color-swatch-wrapper { padding: 0; }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"]
  .mado-ui-color-control--google > input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 50%; }

@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 8px;
    row-gap: 12px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field > .mado-pop-campaign-field__label {
    display: block;
    width: 100%;
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    text-align: center;
  }
  
}

/* R143 / 2026-10-23 — Easy phone first paint, tighter copy and size settings. No second layout state. The JS entry H2 focus no longer scrolls Back/Next away. */
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__heading {
    font-size: 20px;
    line-height: 1.4;
  }

}

/* 2026-11-02 REVIEW HOLD: JS no longer adds heading-number badge.
#mado-pop-campaign-page .mado-pop-easy__step-progress-badge {
  display: inline-flex;
  align-items: baseline;
  vertical-align: baseline;
  margin-right: 7px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #0f7776;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}
*/
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step > h3,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] [data-mado-pop-easy-normal-material] > h3,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] [data-mado-pop-easy-sns-material] > h3 {
  display: block;
  white-space: normal;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tabs-toggle {
  display: none;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list .mado-pop-layer-menu__edit-icon {
    display: inline-grid;
    place-items: center;
    width: 23px;
    height: 23px;
    color: currentColor;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list .mado-pop-layer-menu__edit-icon::before {
    content: "";
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    -webkit-mask: url("../images/stylus.svg") center / contain no-repeat;
    mask: url("../images/stylus.svg") center / contain no-repeat;
}
@media (max-width: 620px) {
    
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step h3 {
      font-size: 18px;
      line-height: 1.35;
    }
    
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__step:is(
      [data-mado-pop-easy-step="8"], [data-mado-pop-easy-step="9"], [data-mado-pop-easy-step="16"]
    ) > .mado-pop-easy__layer-guide {
      margin-top: -4px;
      padding-top: 0;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step-kicker {
      display: block;
    }
/* 2026-11-02 REVIEW HOLD: JS no longer adds heading-number badge.
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step-progress-badge {
      padding: 0;
      margin-right: 7px;
    }
*/
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tabs-toggle {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      min-height: 32px;
      margin: 4px 0 7px;
      padding: 5px 10px;
      border: 1px solid #b7cad9;
      border-radius: 999px;
      background: #fff;
      color: #284257;
      font-size: 13px;
      font-weight: 800;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tabs-toggle[hidden],
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tabs[hidden] { display: none; }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tabs {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
      align-items: start;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tabs.is-phone-collapsed {
      display: none;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tabs.is-phone-expanded {
      max-height: 180px;
      overflow: auto;
      scrollbar-width: none;
      -ms-overflow-style: none;
      -webkit-overflow-scrolling: touch;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tabs.is-phone-expanded::-webkit-scrollbar { display:none; width:0; height:0; }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-tab {
      width: 100%;
      min-width: 0;
      min-height: 34px;
      padding: 6px 10px;
      font-size: 12px;
      text-align: left;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__row {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
        gap: 1px;
        box-sizing: border-box;
        width: calc(100% + 14px);
        margin-left: -7px;
        margin-right: -7px;
        padding: 4px 4px 5px;
        overflow: hidden;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__row.has-phone-drag-handle {
        grid-template-columns: 25px minmax(0, 1fr);
        grid-template-rows: auto auto;
        column-gap: 2px;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__row.has-phone-drag-handle > .mado-pop-layer-menu__drag-handle {
        display: inline-grid;
        place-items: center;
        grid-column: 1;
        grid-row: 1 / 3;
        justify-self: center;
        align-self: center;
        width: 25px;
        height: 61px;
        color: #687d90;
        cursor: grab;
        touch-action: none;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__row.has-phone-drag-handle > .mado-pop-layer-menu__drag-handle svg {
        width: 18px;
        height: 40px;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__row.has-phone-drag-handle > .mado-pop-layer-menu__primary {
        grid-column: 2;
        grid-row: 1;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__row.has-phone-drag-handle > .mado-pop-layer-menu__move-controls {
        grid-column: 2;
        grid-row: 2;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__primary {
        display: flex;
        min-width: 0;
        align-items: center;
        flex-wrap: nowrap;
        gap: 4px;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__status-list { display: none; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__primary > .mado-pop-layer-menu__item {
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        min-width: 0;
        min-height: 34px;
        padding: 3px 2px;
        align-items: center;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__item-icon {
        width: 32px;
        height: 32px;
        color: #233d52;
        font-size: 14px;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__thumbnail {
        width: 30px;
        height: 30px;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__item-label {
        display: block;
        flex: 1 1 auto;
        width: auto;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 15px;
        line-height: 1.3;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls {
        position: relative;
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-start;
        gap: 6px;
        box-sizing: border-box;
        width: 100%;
        min-width: 0;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 12px 1px 26px;
        overscroll-behavior-x: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        touch-action: pan-x;
        mask-image: linear-gradient(to right, transparent 0, #000 6px, #000 calc(100% - 10px), transparent 100%);
        -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6px, #000 calc(100% - 10px), transparent 100%);
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls::-webkit-scrollbar { display: none; width:0; height:0; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls::after {
        content: "›";
        position: sticky;
        right: 0;
        z-index: 2;
        display: inline-grid;
        place-items: center;
        flex: 0 0 12px;
        width: 12px;
        min-width: 12px;
        height: 22px;
        margin-left: -2px;
        border-radius: 999px;
        color: #9cb0bd;
        font-size: 16px;
        font-weight: 800;
        line-height: 1;
        background: linear-gradient(to right, rgba(240,251,251,0), rgba(240,251,251,.86) 55%, rgba(240,251,251,1) 100%);
        pointer-events: none;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__action {
        display: inline-grid;
        place-items: center;
        box-sizing: border-box;
        flex: 0 0 28px;
        width: 28px;
        min-width: 28px;
        height: 28px;
        min-height: 28px;
        padding: 0;
        margin: 0;
        border: 1px solid transparent;
        border-radius: 8px;
        background: transparent;
        color: #20384c;
        box-shadow: none;
        transform: none;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__action:disabled { opacity: .35; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__action:hover:not(:disabled),
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__action:focus-visible:not(:disabled),
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__visibility.is-hidden,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__display-mode.is-natural,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__position-lock.is-locked,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__link.has-link,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__motion.has-motion {
        border-color: #12b5ae;
        background: #dff9f7;
        color: #0f7776;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__delete { color: #d92d20; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__action > svg,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__action > .mado-pop-layer-menu__edit-icon,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__action > .mado-pop-layer-menu__motion-glyph,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__action > .mado-pop-layer-menu__compact-glyph {
        display: inline-grid;
        place-items: center;
        width: 21px;
        height: 21px;
        margin: 0;
    }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__motion-glyph { width: 19px; height: 19px; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__motion-icon { width: 16px; height: 16px; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__position-lock-icon,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__link-icon,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__display-mode-icon,
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__visibility-icon { width: 19px; height: 19px; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__compact-glyph { font-size: 21px; font-weight: 900; line-height: 1; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__duplicate .mado-pop-layer-menu__compact-glyph { font-size: 23px; transform: translateY(-1px); }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__visibility { position: relative; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__visibility .mado-pop-layer-menu__visibility-slash { width: 19px; }
    #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"] .mado-pop-layer-menu__move-controls > .mado-pop-layer-menu__action:focus-visible { outline: 2px solid #12b5ae; outline-offset: 1px; }
}

/* R152 / 2026-10-23 — Easy phone selected-materials layout. One native fieldset surrounds both the legend toggle and its selected chips. */
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-normal-material] {
    gap: 14px;
  }

  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-material-editor] {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-material-editor][hidden] { display: none; }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-material-editor] > .mado-pop-easy__mini-editor-head { display: none; }

  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame {
    display: block;
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    margin: 0;
    padding: 5px 10px 10px;
    border: 1px solid #b9c9d0;
    border-radius: 17px;
    background: transparent;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-legend {
    box-sizing: border-box;
    display: table;
    width: auto;
    max-width: calc(100% - 12px);
    margin: 0 auto;
    padding: 0 7px;
    color: #284257;
    text-align: center;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-legend .mado-pop-easy__layer-tabs-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    width: auto;
    max-width: 100%;
    margin: 0;
    padding: 1px 4px;
    border: 0;
    border-radius: 4px;
    background: #fbfefe;
    color: #284257;
    font-size: 16px; 
    font-weight: 800;
    line-height: 1.4;
    cursor: pointer;
  }
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame:has(> .mado-pop-easy__layer-tabs.is-phone-collapsed) {
    display: block;
    padding: 0;
    min-height: 46px;
    border: 1px solid #a8c5ca;
    border-radius: 12px;
    background: #edf7f6;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame:has(> .mado-pop-easy__layer-tabs.is-phone-collapsed) > .mado-pop-easy__selected-material-legend {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame:has(> .mado-pop-easy__layer-tabs.is-phone-collapsed) .mado-pop-easy__layer-tabs-toggle {
    display: flex;
    width: 100%;
    min-height: 43px;
    padding: 5px 10px;
    border-radius: 11px;
    background: #edf7f6;
    color: #0f6172;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame:has(> .mado-pop-easy__layer-tabs.is-phone-collapsed) .mado-pop-easy__layer-tabs-toggle::after {
    content: "閉じています";
    font-size: 12px;
    font-weight: 600;
    margin-left: 10px;
    color: #466674;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-legend .mado-pop-easy__layer-tabs-toggle[hidden] { display: none; }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-legend .mado-pop-easy__layer-tabs-toggle:focus-visible {
    outline: 2px solid #0f7776;
    outline-offset: 2px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame > .mado-pop-easy__layer-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    margin: 0;
    padding: 3px 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame > .mado-pop-easy__layer-tabs[hidden],
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame > .mado-pop-easy__layer-tabs.is-phone-collapsed { display: none; }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame > .mado-pop-easy__layer-tabs.is-phone-expanded {
    max-height: 180px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: none;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame > .mado-pop-easy__layer-tabs.is-phone-expanded::-webkit-scrollbar {
    display: none;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__selected-material-frame .mado-pop-easy__layer-tab {
    min-height: 32px;
    padding: 5px 8px;
  }

  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-material-editor] > .mado-pop-easy__quick-grid,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  [data-mado-pop-easy-material-editor] > .mado-pop-easy__more {
    margin-top: 0;
    margin-bottom: 0;
  }
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__layout > .mado-pop-easy__preview {
  }
  
/* 2026-11-02 REVIEW HOLD: JS no longer adds heading-number badge.
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step-progress-badge { font-size: 12px; }
*/
}

/* R153 / 2026-10-23 — approved Easy phone composition (POP / SNS only). Keep only the existing native kind radios and their explanatory subtitles; */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="1"] .mado-pop-easy__choice-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="1"] .mado-pop-easy__choice > span {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 5px;
  padding: 12px 8px;
  min-width: 0;
  min-height: 120px;
  font-size: 15px;
  line-height: 1.3;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="1"] .mado-pop-easy__choice > span::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  background: currentColor;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="1"]
.mado-pop-easy__choice[for="mado-pop-easy-kind-normal"] > span::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.3'/%3E%3Cpath d='m3 17 5-5 4 4 3-3 6 6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2'/%3E%3Ccircle cx='8.5' cy='8.5' r='1.3'/%3E%3Cpath d='m3 17 5-5 4 4 3-3 6 6'/%3E%3C/svg%3E");
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="1"]
.mado-pop-easy__choice[for="mado-pop-easy-kind-sns"] > span::before {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='m8.2 10.8 7.4-4.6M8.2 13.2l7.4 4.6'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='2.5'/%3E%3Ccircle cx='6' cy='12' r='2.5'/%3E%3Ccircle cx='18' cy='19' r='2.5'/%3E%3Cpath d='m8.2 10.8 7.4-4.6M8.2 13.2l7.4 4.6'/%3E%3C/svg%3E");
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="1"] .mado-pop-easy__choice > span::after {
  content: "";
  position: absolute;
  top: 9px;
  right: 9px;
  width: 12px;
  height: 12px;
  border: 1.5px solid #94a3b8;
  border-radius: 50%;
  background: #fff;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="1"] .mado-pop-easy__choice input:checked + span::after {
  background: #06bfb5;
  border-color: #06bfb5;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="1"] .mado-pop-easy__choice > span strong {
  font-size: 16px;
  font-weight: 800;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="1"] .mado-pop-easy__choice > span small {
  font-size: 11px;
  line-height: 1.3;
}

@media (max-width: 620px) {
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy {
    gap: 8px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layout {
    row-gap: 15px;
  }
  /* One full-bleed white settings slab, with gray preview chrome below it. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layout > .mado-pop-easy__steps {
    box-sizing: border-box;
    width: 100vw;
    max-width: 100vw;
    min-width: 0;
    margin: 0 calc(50% - 50vw);
    padding: 8px max(12px, env(safe-area-inset-right)) 18px max(12px, env(safe-area-inset-left));
    border: 0;
    border-radius: 0;
    background: #ffffff;
    box-shadow: none;
  }
  /* R82: STEP5 material selection was already approved, keep its original inset. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__layout > .mado-pop-easy__steps:has(> .mado-pop-easy__step[data-mado-pop-easy-step="6"]:not([hidden])) {
    padding-top: 14px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layout > .mado-pop-easy__preview {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-head,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-stage {
    background: transparent;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-stage {
    border: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step {
    min-height: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="1"] > .mado-pop-easy__intro + h3 {
    margin-top: 0;
  }
  /* STEP1 intro preserves its own description spacing. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__intro .mado-pop-easy__lead {
    margin-top: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="1"] .mado-pop-easy__choice > span {
    min-height: 104px;
    padding: 9px 5px;
  }
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="3"] > .mado-pop-easy__size-fields,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="3"] > .mado-pop-easy__device-size-details {
    margin-top: 0;
    margin-bottom: 0;
  }

  /* The drag handle is a row sibling on phones; don't reserve a second drag */
  #mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"]
  .mado-pop-layer-menu__row.has-phone-drag-handle .mado-pop-layer-menu__item.has-reorder-handle {
    grid-template-columns: 34px minmax(0, 1fr) auto;
    column-gap: 12px;
  }
  #mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"]
  .mado-pop-layer-menu__row.has-phone-drag-handle .mado-pop-layer-menu__item-icon {
    margin-right: 0;
  }
}

/* R80: STEP3 reference and per-device disclosures share the same canonical
 * disclosure skin with STEP7/8 below. Keep only content/grid layout here. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="3"] > .mado-pop-size-guide > .mado-pop-size-guide__body {
    display: grid;
    gap: 12px;
    padding: 8px 2px 5px;
    text-align: left;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-size-guide__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-size-guide__grid > div {
    display: grid;
    gap: 5px;
    box-sizing: border-box;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid #dbe5ef;
    border-radius: 9px;
    background: #fff;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-size-guide__grid > div > strong {
    margin: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="3"] .mado-pop-size-guide__grid > div > span {
    overflow-wrap: anywhere;
}
/* Device-specific inputs remain in their separately owned R73 group. */

/* STEP6: the suffix is visual only; it does not participate in aligning the
 * label over the center of the actual numeric stepper (not stepper + suffix). */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__quick-grid--material > :is(.mado-pop-easy__material-size-aspect, .mado-pop-easy__quick-control)
.mado-pop-easy__quick-number {
    position: relative;
    width: max-content;
    max-width: 100%;
    margin-inline: auto;
    justify-content: center;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__quick-grid--material .mado-pop-easy__quick-unit {
    position: absolute;
    left: calc(100% + 2px);
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 13px;
    line-height: 1;
    pointer-events: none;
}

/* STEP4: reuse the same rounded shared color shape as gradient/text colors;
 * leave the registered swatch palette and the guest's direct input untouched. */
/* R3 / 2026-11-03: STEP3 compact device cards, centered vertically; existing
 * dimension steppers, labels and single-column device list remain intact. */


/* R5: reuse the three production preview-device SVGs in STEP2/3.
 * The image is decorative inside its existing readable checkbox/legend label. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__device-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__device-icon {
    display: block;
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    object-fit: contain;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] img.mado-pop-easy__device-size-icon {
    display: inline-block;
    width: 19px;
    height: 19px;
    margin-right: 5px;
    vertical-align: -4px;
    object-fit: contain;
}


/* STEP4: one solid-color field in the LEFT half, matching Gradient Start.
 * The unchanged registered palette follows its input in reading/Tab order. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="solid"] .mado-pop-easy__color-row--solid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    align-items: start;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="solid"] .mado-pop-easy__color-custom {
    grid-column: 1;
    display: grid;
    justify-items: center;
    min-width: 0;
    gap: 9px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="solid"] .mado-pop-easy__color-custom > span:first-child {
    justify-self: start;
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="solid"] .mado-pop-easy__color-custom > .mado-ui-color-control--google {
    width: min(100%, 134px);
    min-width: 0;
    height: 48px;
    box-sizing: border-box;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="solid"] .mado-pop-easy__bg-palette {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
    justify-self: center;
    min-width: 0;
}

/* STEP6: two accessible tabs share one panel area. The position controls
 * keep their original data attributes; SVG colors use the existing renderer. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__material-detail-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: -10px;
    padding-top: 10px;
    border-top: 1px solid #e4ebf1;
}
/* R78 / 2026-11-14: R77 was deployed with mixed PHP/CSS. The legacy
 * template still puts the detail button inside quick-grid--text and the add
 * button inside text-tabs. Keep both working AND form a two-column row even
 * when the PHP template is served from OPcache or an older deployment.
 * This fallback is inert whenever the R77+ action pair exists. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__field {
    grid-column: 1 / -1;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > :is(.mado-pop-easy__quick-grid--text, .mado-pop-easy__text-tabs) {
    display: contents;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field {
    grid-row: 2;
    min-width: 0;
    width: 100%;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field:first-child {
    grid-column: 1;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__quick-grid--text > .mado-pop-easy__compact-field:nth-child(2) {
    grid-column: 2;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__quick-grid--text > .mado-pop-easy__text-more-toggle {
    grid-area: 3 / 1;
    justify-self: stretch;
    align-self: stretch;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    height: 46px;
    margin: 0;
    border: 1px solid #cbd9e7;
    border-radius: 11px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__text-tabs > .mado-pop-easy__text-tab--add {
    grid-area: 3 / 2;
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    height: 46px;
    padding: 8px 6px;
    border: 1px solid #cbd9e7;
    border-radius: 11px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__text-tab-panel {
    grid-column: 1 / -1;
    grid-row: 4;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__text-tabs > .mado-pop-easy__text-body-tabs {
    grid-column: 1 / -1;
    grid-row: 5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"]
.mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__body-editors {
    grid-column: 1 / -1;
    grid-row: 6;
}
@media (max-width: 359px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="7"]
  .mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__quick-grid--text > .mado-pop-easy__text-more-toggle,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="7"]
  .mado-pop-easy__text-editor:not(:has(> .mado-pop-easy__text-actions)) > .mado-pop-easy__text-tabs > .mado-pop-easy__text-tab--add {
    font-size: 13px;
  }
}

/* R77 / 2026-11-14: STEP6's title actions align exactly with STEP5's two white
 * 46px buttons. Leave dynamic body text tabs separate and visible only when used.
 * The native title-more and add-body data hooks are unchanged. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid #e4ebf1;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__text-actions > .mado-pop-easy__text-more-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__text-actions > .mado-pop-easy__text-more-toggle > svg {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tabs {
    padding-top: 0;
    border-top: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-tabs:has(> .mado-pop-easy__text-body-tabs:empty):not(:has(> [data-mado-pop-easy-add-body])) {
    display: none;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="7"] .mado-pop-easy__text-actions > .mado-pop-easy__text-tab--add:disabled {
    color: #8796a8;
    background: #f7f9fa;
    cursor: not-allowed;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__material-detail-tab,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__text-actions > :is(.mado-pop-easy__text-more-toggle, .mado-pop-easy__text-tab--add) {
    min-width: 0;
    min-height: 46px;
    padding: 8px 6px;
    border: 1px solid #cbd9e7;
    border-radius: 11px;
    background: #fff;
    color: #334155;
    font-size: 14px;
    font-weight: 750;
    line-height: 1.35;
    cursor: pointer;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__material-detail-tab.is-active,
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__text-actions > .mado-pop-easy__text-more-toggle.is-active {
    color: #076b6c;
    border-color: #00bdb5;
    background: #e6f9f7;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__material-detail-tab:disabled {
    color: #8796a8;
    background: #f7f9fa;
    cursor: not-allowed;
}
/* R4: the editor grid already has 30px row-gap. Bring either revealed
 * panel 20px closer to the tabs without moving the buttons or controls. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__material-detail-panel {
    min-width: 0;
    margin-top: -20px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__material-detail-panel[hidden],
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__material-detail-panel .mado-pop-easy__svg-colors[hidden] {
    display: none;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__material-detail-panel .mado-pop-easy__more-body--material {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    justify-items: center;
    gap: 14px 10px;
    margin-top: 10px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__material-detail-panel .mado-pop-easy__more-body--material > .mado-pop-easy__compact-field {
    width: 100%;
    min-width: 0;
    justify-items: center;
    text-align: center;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__material-detail-panel .mado-pop-easy__more-body--material > .mado-pop-easy__compact-field > span:last-child {
    justify-content: center;
    width: 100%;
    min-width: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__material-detail-panel[data-mado-pop-easy-material-detail-panel="color"] .mado-pop-easy__svg-colors {
    width: 100%;
    margin-top: 9px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__material-detail-panel[data-mado-pop-easy-material-detail-panel="color"] .mado-pop-easy__svg-colors {
    box-sizing: border-box;
    min-width: 0;
    max-width: 100%;
    padding: 6px 0;
    border: 0;
    background: transparent;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__material-detail-panel[data-mado-pop-easy-material-detail-panel="color"] .mado-pop-easy__svg-color-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__material-detail-panel[data-mado-pop-easy-material-detail-panel="color"] .mado-pop-easy__svg-color {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    justify-items: center;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__material-detail-panel[data-mado-pop-easy-material-detail-panel="color"] .mado-pop-easy__svg-color > span:first-child {
    justify-self: start;
}
@media (max-width: 420px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
    .mado-pop-easy__material-detail-panel[data-mado-pop-easy-material-detail-panel="color"] .mado-pop-easy__svg-color-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}
@media (max-width: 360px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
    .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="solid"] .mado-pop-easy__color-row--solid {
        gap: 8px 4px;
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__material-detail-tab,
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__text-actions > :is(.mado-pop-easy__text-more-toggle, .mado-pop-easy__text-tab--add) {
        font-size: 13px;
        padding-inline: 4px;
    }
}


/* R9: shared equal-width 3-card grid for STEP2/STEP12.
 * Keep device/page selection on the same card system so future spacing fixes are made once.
 */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__choice-grid--equal-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__choice-grid--equal-three > :is(.mado-pop-easy__choice, .mado-pop-easy__device) {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__choice-grid--equal-three > :is(.mado-pop-easy__choice, .mado-pop-easy__device) > span {
  width: 100%;
  min-width: 0;
  min-height: 76px;
  padding: 12px;
  box-sizing: border-box;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__choice-grid--equal-three .mado-pop-easy__device-label {
  width: 100%;
  min-width: 0;
}
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__choice-grid--equal-three {
    gap: 15px;
  }
}
@media (max-width: 359px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__choice-grid--equal-three {
    gap: 9px;
  }
}

/* STEP2: 3 equal device cards at phone and desktop widths; no mobile 1-column fallback.
 * This is the existing step-scoped rule, not another late override block. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="2"] > .mado-pop-easy__choice-grid--equal-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  width: 100%;
  min-width: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="2"] > .mado-pop-easy__choice-grid--three > label {
  min-width: 0;
}

#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__layer-guide-list .mado-pop-layer-menu__item.has-reorder-handle {
  column-gap: 14px;
}
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="2"] > .mado-pop-easy__choice-grid--equal-three {
    gap: 15px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="2"] .mado-pop-easy__device > span {
    padding-inline: 6px;
  }
  #mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-pop-layer-phone-actions="1"]
  .mado-pop-layer-menu__row .mado-pop-layer-menu__item:not(.has-reorder-handle) {
    grid-template-columns: 32px minmax(0, 1fr) auto;
    column-gap: 13px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="2"] .mado-pop-easy__device-label {
    min-width: 0;
  }

}

.mado-pop-layer-action-tooltip.is-touch-hint {
  max-width: min(300px, calc(100vw - 16px));
  padding: 9px 12px;
  border-radius: 9px;
  background: #152b43;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  pointer-events: none;
}

@media (max-width: 359px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="2"] > .mado-pop-easy__choice-grid--equal-three {
    gap: 9px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="2"] .mado-pop-easy__device-label {
    flex-direction: column;
    font-size: 13px;
    gap: 3px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="2"] .mado-pop-easy__device-icon {
    width: 17px;
    height: 17px;
    flex-basis: 17px;
  }
}

/* STEP16 save actions / 2026-11-03: one source for sizing and spacing.
 * The editable column can be much narrower than the window when preview is alongside.
 * Query the actual STEP inline size, not the browser viewport, for 3/2 columns.
 * Keep this panel a normal grid: no duplicate per-button width/height definitions. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step[data-mado-pop-easy-step="15"] {
  container: mado-pop-easy-save / inline-size;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  gap: 15px;
  width: 100%;
  min-width: 0;
  max-width: 820px;
  margin: 14px auto 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions > :is(.mado-pop-easy__save, .mado-pop-easy__saved-list-link) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: stretch;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  text-decoration: none;
}
/* A visible secondary action must read as a button, not as faint body text. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions > .mado-ui-button--ghost {
  border: 1.5px solid #8fa9c4;
  background: #fff;
  color: #18324d;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions > .mado-ui-button--ghost:hover {
  border-color: #0f7776;
  background: #f1fbfa;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions > :is(.mado-pop-easy__save, .mado-pop-easy__saved-list-link):focus-visible {
  outline: 2px solid var(--mado-pop-wizard-focus, #08766f);
  outline-offset: 2px;
}
/* The JS/HTML hidden state must win even though the control normally uses flex. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions > [hidden] {
  display: none;
}
/* 3 columns on a genuinely wide editor; two columns on narrow desktop/tablet.
 * A last third card occupies one half-width column and is centered in the row. */
@media (min-width: 621px) {
  @container mado-pop-easy-save (min-width: 400px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions > :nth-child(3):not([hidden]) {
      grid-column: 1 / -1;
      width: calc((100% - 15px) / 2);
      justify-self: center;
    }
  }
  @container mado-pop-easy-save (min-width: 600px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions {
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions > :nth-child(3):not([hidden]) {
      grid-column: auto;
      width: 100%;
      justify-self: stretch;
    }
  }
}
/* Before a POP is saved, the only visible action remains centered. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__save-actions:has(> [data-mado-pop-easy-new][hidden]) > [data-mado-pop-easy-save] {
  grid-column: 1 / -1;
  width: min(100%, 240px);
  justify-self: center;
}
/* STEP16 save progress/result: one message, 20px below the actions.
 * Keep failure text red; all routine status wording is visually neutral. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="15"] > .mado-pop-easy__status {
  width: 100%;
  min-width: 0;
  margin: 20px 0 0;
  justify-self: stretch;
  text-align: center;
  color: #0f172a;
  line-height: 1.6;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="15"] > .mado-pop-easy__status[data-state="error"] {
  color: #b42318;
}
/* A portrait/wide image must not escape the actual layer box due to grid intrinsic min-size. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-image-layer img {
  min-width: 0;
  min-height: 0;
}

/* R76–R80 unified disclosure skin / 2026-11-14: STEP3 size guide + devices, STEP7 and STEP8.
 * Reuses Banner STEP2 .mado-banner-area__size-limit-note's established
 * mint/background/left-bar/+− pattern. All three remain native details/summary
 * for Enter/Space, Narrator and keyboard focus. No JS, saved state or route changes.
 * The closed state is colored as clearly as the expanded one. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] :is(.mado-pop-size-guide, .mado-pop-easy__device-size-details, .mado-pop-easy__layer-order-details, .mado-pop-easy__motion-details) {
    box-sizing: border-box;
    display: block;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 0;
    padding: 10px 12px;
    border: 0;
    border-left: 3px solid var(--mado-pop-primary, #06bfb5);
    border-radius: 5px;
    background: var(--mado-pop-primary-soft, #e6fbf9);
    color: #264452;
    font-size: 15px;
    line-height: 1.7;
    text-align: left;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] :is(.mado-pop-size-guide, .mado-pop-easy__device-size-details, .mado-pop-easy__layer-order-details, .mado-pop-easy__motion-details) > summary {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    list-style: none;
    cursor: pointer;
    color: #264452;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.5;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] :is(.mado-pop-size-guide, .mado-pop-easy__device-size-details, .mado-pop-easy__layer-order-details, .mado-pop-easy__motion-details) > summary::-webkit-details-marker {
    display: none;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] :is(.mado-pop-size-guide, .mado-pop-easy__device-size-details, .mado-pop-easy__layer-order-details, .mado-pop-easy__motion-details) > summary::marker {
    content: '';
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] :is(.mado-pop-size-guide, .mado-pop-easy__device-size-details, .mado-pop-easy__layer-order-details, .mado-pop-easy__motion-details) > summary::after {
    content: "＋";
    flex: 0 0 auto;
    font-size: 18px;
    font-weight: 700;
    color: var(--mado-pop-primary, #06bfb5);
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] :is(.mado-pop-size-guide, .mado-pop-easy__device-size-details, .mado-pop-easy__layer-order-details, .mado-pop-easy__motion-details)[open] > summary::after {
    content: "−";
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] :is(.mado-pop-size-guide, .mado-pop-easy__device-size-details, .mado-pop-easy__layer-order-details, .mado-pop-easy__motion-details) > summary:focus-visible {
    outline: 3px solid var(--mado-brand-accent-ring, rgba(6, 191, 181, .3));
    outline-offset: 3px;
    border-radius: 3px;
}
/* R80: visually group the TWO independent STEP3 details without a wrapper,
 * keeping original direct-child selectors, focus order and persisted state.
 * Step3 row-gap is 20px normally, 14px at 621–720px, 11px on phones;
 * pull only the second disclosure closer for a visible 8px gap. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="3"] > .mado-pop-size-guide {
    margin-top: 16px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="3"] > .mado-pop-size-guide + .mado-pop-easy__device-size-details {
    margin-top: -12px;
}
@media (max-width: 620px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
    .mado-pop-easy__step[data-mado-pop-easy-step="3"] > .mado-pop-size-guide + .mado-pop-easy__device-size-details {
        margin-top: -3px;
    }
}
@media (min-width: 621px) and (max-width: 720px) {
    #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
    .mado-pop-easy__step[data-mado-pop-easy-step="3"] > .mado-pop-size-guide + .mado-pop-easy__device-size-details {
        margin-top: -6px;
    }
}
/* The shared mint surface holds both the heading and expanded content. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-order-help {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #264452;
    font-size: 15px;
    line-height: 1.7;
}
/* R156 / 2026-10-23 — Easy layer help, native <details> + icon guide. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-order-help > p {
  margin: 0 0 10px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-order-help > p:last-child {
  margin-bottom: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-order-icon-guide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 8px 14px;
  margin: 2px 0 12px;
  padding: 0;
  list-style: none;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-order-icon-guide > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  font-size: 14px;
  line-height: 1.55;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-help-glyph {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  color: #264257;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  background: #fff;
  border: 1px solid #cbd9e7;
  border-radius: 7px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-help-glyph--delete {
  color: #b42318;
}
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-order-icon-guide {
    grid-template-columns: minmax(0, 1fr);
  }
}

#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__layer-help-glyph svg {
  width: 19px;
  height: 19px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__row {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto auto;
  grid-template-rows: minmax(40px,auto);
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 4px 6px;
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__primary {
  grid-column: 1; grid-row: 1; display: flex; flex-wrap: nowrap;
  width: 100%; min-width: 0;
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__primary > .mado-pop-layer-menu__item {
  flex: 1 1 0%; width: 100%; min-width: 0;
  padding: 3px 2px;
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__item.has-reorder-handle {
  grid-template-columns: 12px 32px minmax(0,1fr); column-gap: 8px;
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__item:not(.has-reorder-handle) {
  grid-template-columns: var(--mado-easy-layer-icon-size, 32px) minmax(0,1fr); column-gap: 10px;
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] :is(.mado-pop-layer-menu__item-icon, .mado-pop-layer-menu__thumbnail) {
  width: var(--mado-easy-layer-icon-size, 32px); height: var(--mado-easy-layer-icon-size, 32px);
  max-width: var(--mado-easy-layer-icon-size, 32px); max-height: var(--mado-easy-layer-icon-size, 32px);
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__item-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0; font-size: 14px; line-height: 1.35;
}
/* Status is already conveyed in accessible labels and the active action itself. Never repeat a second icon row above the direct action controls. */
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__status-list { display: none; }
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__quick-actions {
  grid-column: 2; grid-row: 1; display: inline-flex; flex-wrap: nowrap;
  align-items: center; justify-content: center; gap: 6px;
  padding: 0; margin: 0; min-width: 0; width: auto;
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__quick-actions > .mado-pop-layer-menu__action {
  display: inline-grid; place-items: center; box-sizing: border-box; flex: 0 0 36px;
  width: 36px; min-width: 36px; height: 36px; min-height: 36px;
  padding: 4px; border: 1px solid transparent; border-radius: 8px;
  background: transparent; color: #243a4d; box-shadow: none;
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__quick-actions > .mado-pop-layer-menu__action > svg {
  width: var(--mado-easy-layer-action-icon-size, 19px);
  height: var(--mado-easy-layer-action-icon-size, 19px);
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__quick-actions > :is(.mado-pop-layer-menu__visibility.is-hidden, .mado-pop-layer-menu__display-mode.is-natural, .mado-pop-layer-menu__position-lock.is-locked) {
  border-color: #0db9ad; background: #ddf8f5; color: #0c6e6b;
}

#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__compact-toggle {
  grid-column: 3; grid-row: 1; display: inline-flex;
  align-items: center; justify-content: center;
  width: 36px; min-width: 36px; height: 36px; min-height: 36px;
  padding: 0; margin: 0; border: 1px solid #b8ced9;
  background: #fff; border-radius: 9px; color: #294158;
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__compact-toggle > span:first-child {
  display: inline-grid; place-items: center; width: 24px; height: 24px;
  font-size: 0; line-height: 0; letter-spacing: 0;
}
#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__compact-toggle > span:first-child::after {
  content: none; display: none; -webkit-mask-image: none; mask-image: none;
}

#mado-pop-campaign-page.is-easy-create-mode
  .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__move-controls[data-mado-pop-layer-compact-panel="1"] {
  position: fixed; grid-column: auto; grid-row: auto;
}
/* R81 / 2026-11-14: ONE phone row layout for the actual shared presenter.
 * A row has a sibling drag handle, label, direct actions and popup trigger.
 * The old 27px padding + absolute grip displaced the handle over thumbnails.
 * Keep them in independent grid columns; never duplicate the grip in .item. */
@media (max-width: 620px) {
  #mado-pop-campaign-page.is-easy-create-mode
    .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions]
    .mado-pop-layer-menu__row.has-phone-drag-handle {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr) max-content 36px;
    grid-template-rows: minmax(40px, auto);
    align-items: center;
    gap: 5px;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    margin: 0;
    min-height: 52px;
    padding: 5px 6px;
    overflow: visible;
  }
  #mado-pop-campaign-page.is-easy-create-mode
    .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions]
    .mado-pop-layer-menu__row.has-phone-drag-handle > .mado-pop-layer-menu__drag-handle {
    position: static;
    display: grid;
    grid-column: 1;
    grid-row: 1;
    place-items: center;
    transform: none;
    justify-self: center;
    align-self: center;
    box-sizing: border-box;
    width: 20px;
    height: 40px;
    margin: 0;
    padding: 0;
    touch-action: none;
  }
  #mado-pop-campaign-page.is-easy-create-mode
    .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions]
    .mado-pop-layer-menu__row.has-phone-drag-handle > .mado-pop-layer-menu__drag-handle svg {
    width: 14px;
    height: 25px;
  }
  #mado-pop-campaign-page.is-easy-create-mode
    .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions]
    .mado-pop-layer-menu__row.has-phone-drag-handle > .mado-pop-layer-menu__primary {
    grid-column: 2;
    grid-row: 1;
    min-width: 0;
    width: 100%;
  }
  #mado-pop-campaign-page.is-easy-create-mode
    .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions]
    .mado-pop-layer-menu__row.has-phone-drag-handle .mado-pop-layer-menu__item {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 7px;
    min-width: 0;
    width: 100%;
    padding: 2px 0;
  }
  #mado-pop-campaign-page.is-easy-create-mode
    .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions]
    .mado-pop-layer-menu__row.has-phone-drag-handle > .mado-pop-layer-menu__quick-actions {
    grid-column: 3;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    min-height: 36px;
    padding: 0;
    margin: 0;
  }
  #mado-pop-campaign-page.is-easy-create-mode
    .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions]
    .mado-pop-layer-menu__row.has-phone-drag-handle > .mado-pop-layer-menu__compact-toggle {
    grid-column: 4;
    grid-row: 1;
    justify-self: end;
    align-self: center;
    transform: none;
  }
}

.mado-pop-easy__layer-guide-touch-note{
  display:block;
  margin:0 0 10px;
  font-size:13px;
  line-height:1.55;
  color:#24435a;
  font-weight:600;
}
.mado-pop-easy__layer-guide-touch-note code{
  display:inline-block;
  margin-right:4px;
  padding:0 4px;
  border-radius:6px;
  background:#eef6f5;
  color:#083b57;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  font-size:.95em;
}

/* R197 / Easy preview device placement + shared layer menu presentation. do not copy listeners, status buttons, save routes, or layer token logic. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-canvas {
  touch-action: none; 
}
@media (min-width: 1025px) {
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-stage:not(.is-position-preview) {
    height: clamp(350px, calc(100dvh - 270px), 820px);
    min-height: 350px;
    max-height: 820px;
    align-items: safe center;
    justify-items: center;
    align-content: center;
    padding: 34px;
    overflow: auto;
  }
}
@media (min-width: 621px) and (max-width: 1024px) {
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-stage:not(.is-position-preview) {
    height: clamp(360px, 55dvh, 640px);
    min-height: 360px;
    max-height: 640px;
    align-items: start;
    justify-items: center;
    align-content: start;
    padding: 52px 24px 30px;
    overflow: auto;
  }
}
@media (max-width: 620px) {
  
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-stage:not(.is-position-preview) {
    height: clamp(320px, 55dvh, 550px);
    min-height: 320px;
    max-height: 550px;
    align-items: start;
    justify-items: center;
    align-content: start;
    padding: 28px 12px 24px;
    overflow: auto;
  }
}
/* Easy STEPs 8/9/10 use the same actual compact actions as Normal POP. quick buttons AND the overflow popup; status glyphs must not duplicate. */
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__row {
  display: grid;
  grid-template-columns: minmax(0,1fr) max-content 36px;
  grid-template-rows: auto;
  gap: 6px;
  padding: 6px 8px;
  min-height: 50px;
  align-items: center;
  overflow: visible;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__primary {
  grid-column: 1; grid-row: 1;
  min-width: 0;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__item-label {
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__status-list {
  display: none;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__quick-actions {
  grid-column: 2; grid-row: 1;
  display: inline-flex;
  width: auto;
  min-width: 0;
  gap: 6px;
  padding: 0;
  align-items: center;
  justify-content: flex-end;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__quick-actions > .mado-pop-layer-menu__action {
  box-sizing: border-box; width: 36px; min-width: 36px;
  height: 36px; min-height: 36px;
  padding: 3px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__compact-toggle {
  grid-column: 3; grid-row: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: end;
}
/* Easy trigger already renders three literal dots from the canonical row JS. Do not draw a second glyph via ::after; R157 suppresses that pseudo-element. */

/* R199 / Unified preview scaling (2026-10-24): Normal POP-style viewport + single transformed canvas. Do not animate canvas width/height: */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-viewport {
  position: relative;
  display: block;
  box-sizing: border-box;
  flex: 0 0 auto;
  min-width: 0;
  min-height: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-viewport > .mado-pop-easy__preview-canvas {
  box-sizing: border-box;
  max-width: none;
  max-height: none;
  transition: none;
  transform-origin: top left;
}

/* R201-R202 / 2026-10-25 — Easy choice-card alignment: single canonical layout. help description is present. Do not shift individual steps with magic margins. empty for a step without help text. Reading/Tab order stays in DOM order. */
@media (min-width: 621px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:not([hidden]):is(
    [data-mado-pop-easy-step="2"],
    [data-mado-pop-easy-step="10"],
    [data-mado-pop-easy-step="12"],
    [data-mado-pop-easy-step="13"]
  ) {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: min-content min-content min-content minmax(0, 1fr) min-content minmax(0, 2fr);
    align-content: stretch;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:is(
    [data-mado-pop-easy-step="2"],
    [data-mado-pop-easy-step="10"],
    [data-mado-pop-easy-step="12"],
    [data-mado-pop-easy-step="13"]
  ) > .mado-pop-easy__step-kicker {
    grid-row: 1;
    margin-bottom: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:is(
    [data-mado-pop-easy-step="2"],
    [data-mado-pop-easy-step="10"],
    [data-mado-pop-easy-step="12"],
    [data-mado-pop-easy-step="13"]
  ) > h3 {
    grid-row: 2;
    margin-bottom: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:is(
    [data-mado-pop-easy-step="2"],
    [data-mado-pop-easy-step="10"],
    [data-mado-pop-easy-step="12"],
    [data-mado-pop-easy-step="13"]
  ) > p {
    grid-row: 3;
    margin-bottom: 14px;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:is(
    [data-mado-pop-easy-step="2"],
    [data-mado-pop-easy-step="10"],
    [data-mado-pop-easy-step="12"],
    [data-mado-pop-easy-step="13"]
  ) > .mado-pop-easy__choice-grid {
    grid-row: 5;
    margin: 0;
  }
  /* Expanded date controls must remain immediately below the period choices. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="13"]:has(> .mado-pop-easy__period:not([hidden])) {
    grid-template-rows: none;
    align-content: start;
  }
  /* Expanded period controls keep the same canonical 10px step gap. */
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="13"]:has(> .mado-pop-easy__period:not([hidden])) > :is(.mado-pop-easy__step-kicker, h3) {
    margin-bottom: 0;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="13"]:has(> .mado-pop-easy__period:not([hidden])) > :is(
    .mado-pop-easy__step-kicker, h3, .mado-pop-easy__choice-grid
  ) {
    grid-row: auto;
  }
}
/* R202 / PC only: the choice rows must sit at the card's actual 50% height, */
@media (min-width: 1025px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:not([hidden]):is(
    [data-mado-pop-easy-step="2"],
    [data-mado-pop-easy-step="10"],
    [data-mado-pop-easy-step="12"],
    [data-mado-pop-easy-step="13"]
  ):not(:has(> .mado-pop-easy__period:not([hidden]))) {
    position: relative;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:not([hidden]):is(
    [data-mado-pop-easy-step="2"],
    [data-mado-pop-easy-step="10"],
    [data-mado-pop-easy-step="12"],
    [data-mado-pop-easy-step="13"]
  ):not(:has(> .mado-pop-easy__period:not([hidden]))) > .mado-pop-easy__choice-grid {
    position: absolute;
    grid-row: 1 / -1; 
    inset-inline: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
  }
}

@media (min-width: 621px) and (max-width: 1024px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:not([hidden]):is(
    [data-mado-pop-easy-step="2"],
    [data-mado-pop-easy-step="10"],
    [data-mado-pop-easy-step="12"],
    [data-mado-pop-easy-step="13"]
  ) {
    grid-template-rows: min-content min-content min-content minmax(0, 1.45fr) min-content minmax(0, 1.55fr);
  }
}
/* On a narrow phone, selections may wrap/stack. Never enforce a card height */
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:is(
    [data-mado-pop-easy-step="2"],
    [data-mado-pop-easy-step="10"],
    [data-mado-pop-easy-step="12"],
    [data-mado-pop-easy-step="13"]
  ) > .mado-pop-easy__choice-grid {
    margin-top: 30px;
  }
}
/* Phone widths with enough room can keep the same compact two/three-card choice rows as the tablet. At <=359px the native stacked layout remains, */
@media (min-width: 360px) and (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:is([data-mado-pop-easy-step="10"], [data-mado-pop-easy-step="13"]) > .mado-pop-easy__choice-grid--two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="12"] > .mado-pop-easy__choice-grid--equal-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 621px) and (max-width: 720px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="2"] { min-height: 310px; }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:is([data-mado-pop-easy-step="10"], [data-mado-pop-easy-step="12"], [data-mado-pop-easy-step="13"]) { min-height: 290px; }
}

/* R82: this 12px inset is for the tablet selection layout only.
 * On phones it stacked with the card padding, making STEP2/11 sit too low. */
@media (min-width: 621px) and (max-width: 1024px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:is([data-mado-pop-easy-step="2"], [data-mado-pop-easy-step="11"]) {
    padding-top: 12px;
  }
}

#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
 .mado-pop-easy__step[data-mado-pop-easy-step="12"]
 .mado-pop-easy__choice-grid--three .mado-pop-easy__choice > span > strong {
    font-size: 16px;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

@media (max-width: 1024px) {
  #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] {
    --mado-easy-layer-icon-size: 38px;
    --mado-easy-layer-action-icon-size: 19px;
    --mado-easy-layer-dots-size: 20px;
  }
  #mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__item-icon { font-size: 13px; }
}

/* R285 / EASY VISIBLE ZOOM SSOT: this is a readout and selector for the */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-head {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 6px 12px;
  background: #fff;
  color: #334155;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-zoom {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-zoom-select {
  box-sizing: border-box;
  width: 112px;
  min-width: 112px;
  height: 34px;
  min-height: 34px;
  padding: 4px 25px 4px 10px;
  border: 1px solid #bcbebf;
  border-radius: 999px;
  background-color: #fff;
  color: #0f172a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-zoom-select:focus-visible {
  outline: 2px solid var(--mado-pop-primary, #06bfb5);
  outline-offset: 2px;
}
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-head {
    min-height: 42px;
    padding: 5px 6px;
    background: #f1efef; /* R80: phone zoom/readout strip */
  }
}

/* R274 / EASY EDITOR-ONLY HANDLES: same four-corner UX as Normal POP. One frame anchored to preview-stage OUTSIDE capture canvas. Never shipped */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-selection {
  position: absolute; z-index: 210; box-sizing: border-box;
  border: 2px solid var(--mado-pop-selected-border, var(--mado-brand-accent, #06bfb5));
  outline: 1px solid rgba(255,255,255,.9);
  box-shadow: 0 0 0 1px rgba(15,23,42,.2);
  pointer-events: none; user-select: none; transform-origin: center;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-selection[hidden] { display: none; }
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-selection.is-locked { border-style: dashed; }
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle {
  appearance: none; position: absolute; display: grid; place-items: center;
  width: 24px; height: 24px; padding: 0; border: 2px solid #fff;
  border-radius: 50%;
  background: var(--mado-pop-selected-border, var(--mado-brand-accent, #06bfb5));
  color: #fff; box-shadow: 0 1px 7px rgba(15,23,42,.35);
  pointer-events: auto; touch-action: none; cursor: nwse-resize;
  transform: translate(-50%,-50%) rotate(var(--mado-pop-direct-counter-rotation,0rad));
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle::after {
  content: ''; width: 6px; height: 6px; background: currentColor; border-radius: 50%;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle.is-nw {left:0;top:0;background:#164e63;cursor:grab;}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle.is-ne {left:100%;top:0;cursor:nesw-resize;}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle.is-sw {left:0;top:100%;cursor:nesw-resize;}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle.is-se {left:100%;top:100%;}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle.is-nw::after {
  width: 18px; height: 18px; border-radius: 0;
  -webkit-mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%20-960%20960%20960%22%3E%3Cpath%20d%3D%22M480-160q-133%200-226.5-93.5T160-480q0-133%2093.5-226.5T480-800q85%200%20149%2034.5T740-671v-129h60v254H546v-60h168q-38-60-97-97t-137-37q-109%200-184.5%2075.5T220-480q0%20109%2075.5%20184.5T480-220q83%200%20152-47.5T728-393h62q-29%20105-115%20169t-195%2064Z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%20-960%20960%20960%22%3E%3Cpath%20d%3D%22M480-160q-133%200-226.5-93.5T160-480q0-133%2093.5-226.5T480-800q85%200%20149%2034.5T740-671v-129h60v254H546v-60h168q-38-60-97-97t-137-37q-109%200-184.5%2075.5T220-480q0%20109%2075.5%20184.5T480-220q83%200%20152-47.5T728-393h62q-29%20105-115%20169t-195%2064Z%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle:focus-visible {outline:3px solid var(--mado-selection-accent,#f47a14);outline-offset:3px;}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle:disabled {opacity:.55;cursor:not-allowed;}
@media (pointer:coarse) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__direct-handle {width:34px;height:34px;}
}

#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__quick-actions > .mado-pop-layer-menu__action,
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__quick-actions > .mado-pop-layer-menu__action {
  border: 1px solid #d6e1e8;
  background: #fff;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__quick-actions > .mado-pop-layer-menu__action:hover,
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__quick-actions > .mado-pop-layer-menu__action:hover {
  border-color: #b9cad4;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__compact-toggle,
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__compact-toggle {
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  border: 1px solid #d6e1e8;
  border-radius: 8px;
  align-self: center;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__compact-toggle > span:first-child,
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__compact-toggle > span:first-child {
  width: 24px;
  height: 24px;
  font-size: 15px;
  line-height: 1;
  letter-spacing: .4px;
  transform: none;
  display: inline-grid;
  place-items: center;
  font-size: 0;
}
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-pop-layer-compact-ui="1"] .mado-pop-layer-menu__display-mode-icon,
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list[data-mado-easy-compact-actions] .mado-pop-layer-menu__display-mode-icon {
  width: 18.7px;
  height: 18.7px;
}


/* R73: the icon is independent of font baseline on desktop, tablet and phone. */
#mado-pop-campaign-page.is-easy-create-mode .mado-pop-easy__layer-guide-list :is([data-mado-pop-layer-compact-toggle], .mado-pop-layer-menu__compact-toggle) > span > .mado-pop-layer-menu__dots-icon {
  display: block;
  width: 19px;
  height: 19px;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

/* R63 / 2026-11-14 — Easy STEP10, close-button choice and style picker order.
 * PHP already renders the two dismiss-mode choices BEFORE the shared 8-card
 * style picker. Older PC/tablet grid positioning moved/overlapped the choice
 * row when the style picker is visible. Keep both controls in normal DOM/grid
 * flow: choose whether to show a close button first, then choose its design.
 * Scope strictly to Easy step 10. Do not change the saved dismiss/style model,
 * shared picker, other centrally arranged steps, or R62 sibling card stretch.
 */
@media (min-width: 621px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:not([hidden])[data-mado-pop-easy-step="10"]:has(> .mado-pop-easy__close-style-picker:not([hidden])) {
    grid-template-rows: none;
    grid-auto-rows: auto;
    align-content: start;
  }

  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:not([hidden])[data-mado-pop-easy-step="10"]:has(> .mado-pop-easy__close-style-picker:not([hidden])) > :is(
    .mado-pop-easy__step-kicker,
    h3,
    .mado-pop-easy__choice-grid
  ) {
    grid-row: auto;
    margin-bottom: 0;
  }

  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step:not([hidden])[data-mado-pop-easy-step="10"]:has(> .mado-pop-easy__close-style-picker:not([hidden])) > .mado-pop-easy__choice-grid {
    position: static;
    grid-row: auto;
    inset: auto;
    transform: none;
    width: 100%;
    margin: 0;
  }
}
/* STEP10: selector uses the same shared eight-card control as Normal. */
/* Closed STEP10 on phones receives the same breathing room as STEP2.
 * Opened style cards return immediately under the choices (below). */
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="10"]:not(:has(> .mado-pop-easy__close-style-picker:not([hidden]))) > .mado-pop-easy__choice-grid {
    margin-top: 52px;
  }
}
/* R78 / 2026-11-14: when a close-button design is being chosen on a narrow phone,
 * restore normal DOM order and compact the choice row. When closed, R202 shares
 * STEP2's centered-choice spacing; never shift the style cards over the choice. */
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="10"]:has(> .mado-pop-easy__close-style-picker:not([hidden])) > .mado-pop-easy__choice-grid,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="12"]:has(> .mado-pop-easy__page-paths:not([hidden])) > .mado-pop-easy__choice-grid {
    margin-top: 10px;
  }
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__close-style-picker[hidden] {
    display: none;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__close-style-picker {
    min-width: 0;
    width: 100%;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__close-style-picker .mado-pop-close-style {
    margin-top: 8px;
}

/* EASY GRADIENT: reuse the existing two-column field grid; only the conditional angle needs an explicit hidden rule. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"]
.mado-pop-campaign-field-grid > [data-mado-pop-easy-gradient-angle-wrap][hidden],
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__background-panel[data-mado-pop-easy-bg-panel="gradient"] .mado-pop-campaign-field-grid > [data-mado-pop-easy-gradient-spread-wrap][hidden] { display: none; }
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-gradient__field > .mado-pop-campaign-field__label {
  width: 100%;
  text-align: center;
}

/* R24 / 2026-11-03 — Easy preview text follows the public POP contract.
 * No 86% text-width cap, automatic wrap or editor-only inner padding.
 * POP dimensions/position, drag offsets and save schema remain unchanged.
 * User-entered newline characters alone create line breaks. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-viewport > .mado-pop-easy__preview-canvas {
  padding: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-canvas > strong[data-mado-pop-easy-preview-title],
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-canvas .mado-pop-easy__preview-body {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  width: max-content;
  max-width: none;
  white-space: pre;
}

/* 2026-11-14 / Easy STEP12: four destinations in 2x2. Reuse the Normal
 * editor's item display_rule_mode/include + display_rule_paths and Provider
 * runtime matcher; these rules only arrange the Easy UI, never change targeting. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"]:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"]:not([hidden]):has(> .mado-pop-easy__page-paths:not([hidden])) > .mado-pop-easy__choice-grid--page {
  position: static;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  inset: auto;
  top: auto;
  transform: none;
  width: 100%;
  min-width: 0;
  margin: 10px 0 0;
}
/* R78 / 2026-11-14 — STEP12 uses STEP2-like visual breathing room until
 * the URL path form is actually opened. Four page cards occupy two rows, so
 * they need a larger minimum area than STEP2's single row. */
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"]:not([hidden]):not(:has(> .mado-pop-easy__page-paths:not([hidden]))) {
  min-height: 420px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"]:not([hidden]):not(:has(> .mado-pop-easy__page-paths:not([hidden]))) > .mado-pop-easy__choice-grid--page {
  position: static;
  grid-row: auto;
  inset: auto;
  top: auto;
  transform: none;
  margin-block: auto;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"] > .mado-pop-easy__choice-grid--page {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  width: 100%;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"] .mado-pop-easy__choice-grid--page > .mado-pop-easy__choice {
  min-width: 0;
  margin: 0;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"] .mado-pop-easy__choice-grid--page .mado-pop-easy__choice strong {
  overflow-wrap: anywhere;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"] .mado-pop-easy__page-paths:not([hidden]) {
  display: grid;
  gap: 9px;
  min-width: 0;
  margin-top: 4px;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"] .mado-pop-easy__page-paths > label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"] .mado-pop-easy__page-paths > textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  min-width: 0;
  box-sizing: border-box;
  font-size: 16px;
  line-height: 1.5;
  border: 1px solid #8494a6;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
  color: #0f172a;
}
#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
.mado-pop-easy__step[data-mado-pop-easy-step="12"] .mado-pop-easy__page-paths > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: #475569;
}
@media (max-width: 359px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="12"] .mado-pop-easy__choice-grid--page .mado-pop-easy__choice strong {
    font-size: 14px;
  }
}

@media (min-width: 360px) and (max-width: 440px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="12"] .mado-pop-easy__choice-grid--page .mado-pop-easy__choice strong {
    font-size: 15px;
  }
}

/* R73 / 2026-11-14: only Easy POP at tablet and phone widths receives grey shell chrome.
 * Portal utility toolbar and content-frame consume this inherited theme token.
 * Desktop Easy and Normal/editor/other Portal screens keep their own backgrounds. */
@media (min-width: 621px) and (max-width: 1024px) {
  body.mado-portal-account-page:has(#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]) {
    --mado-portal-page-bg: #e7e5e5;
    --mado-portal-nav-frame-page-bg: #e7e5e5;
  }
}
@media (max-width: 620px) {
  body.mado-portal-account-page:has(#mado-pop-campaign-page[data-mado-pop-easy-mode="1"]) {
    --mado-portal-page-bg: #f1efef;
    --mado-portal-nav-frame-page-bg: #f1efef;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__preview-stage {
    background-color: #f1efef;
  }
}

/* R83 / 2026-11-14: Across phones all step heading text uses ONE type scale.
 * Only the main heading/its immediate description are normalized; editors,
 * help panels, per-layer text and disclosure content keep their own typography. */
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__intro > .mado-pop-easy__heading {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__step > h3 + p,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] .mado-pop-easy__intro > .mado-pop-easy__lead,
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"] :is([data-mado-pop-easy-normal-material], [data-mado-pop-easy-sns-material]) > h3 + p {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.45;
  }
}

/* R81 / 2026-11-14: Link destination STEP (visible STEP 9).
 * Compact the kicker/title/lead only. Keep canonical list/action click path. */
@media (min-width: 621px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__steps:has(> .mado-pop-easy__step:not([hidden])[data-mado-pop-easy-step="16"]) {
    padding-top: 16px; /* was 22px: visible STEP number -6px */
  }
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="16"] > .mado-pop-easy__layer-guide {
    margin-top: 0; /* remove old desktop-only extra 24px above layer list */
  }
}
@media (max-width: 620px) {
  #mado-pop-campaign-page[data-mado-pop-easy-mode="1"]
  .mado-pop-easy__step[data-mado-pop-easy-step="16"] > .mado-pop-easy__layer-guide {
    margin-top: 0;
  }
}
