:root {
    --swx-canvas: #f4f6f8;
    --swx-surface: #ffffff;
    --swx-surface-subtle: #f8fafb;
    --swx-control: #f1f4f6;
    --swx-ink: #17211d;
    --swx-ink-secondary: #4e5c56;
    --swx-ink-tertiary: #74817b;
    --swx-ink-muted: #98a29d;
    --swx-line: rgba(23, 33, 29, .10);
    --swx-line-soft: rgba(23, 33, 29, .065);
    --swx-brand: #166b4f;
    --swx-brand-strong: #0f563f;
    --swx-brand-soft: #e4f4ed;
    --swx-signal: #70d9ac;
    --swx-warning: #9a6617;
    --swx-warning-soft: #fff4dc;
    --swx-danger: #b63838;
    --swx-danger-soft: #fff0f0;
    --swx-radius-control: 9px;
    --swx-radius-card: 14px;
    --swx-radius-panel: 20px;
    --swx-shadow-card: 0 0 0 1px rgba(23, 33, 29, .055), 0 1px 2px -1px rgba(23, 33, 29, .07), 0 8px 24px rgba(23, 33, 29, .045);
    --swx-shadow-float: 0 0 0 1px rgba(23, 33, 29, .06), 0 12px 34px rgba(23, 33, 29, .11);
    --swx-ease: cubic-bezier(.23, 1, .32, 1);
}

.swairishx-screen #wpcontent { background: var(--swx-canvas); }
.swairishx-screen #wpbody-content { min-height: calc(100vh - 32px); padding-bottom: 0; }
.swairishx-screen #wpfooter { display: none; }
.swairishx-screen .wrap { margin: 0; }

.swairishx-admin {
    width: min(1480px, calc(100% - 48px));
    margin: 0 auto;
    color: var(--swx-ink);
    font-family: "Avenir Next", "Segoe UI Variable", "Segoe UI", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

.swairishx-admin *, .swairishx-admin *::before, .swairishx-admin *::after { box-sizing: border-box; }
.swairishx-admin [hidden] { display: none !important; }
.swairishx-admin h1, .swairishx-admin h2, .swairishx-admin h3, .swairishx-admin p { margin-top: 0; }
.swairishx-admin h1, .swairishx-admin h2, .swairishx-admin h3 { color: var(--swx-ink); text-wrap: balance; }
.swairishx-admin p, .swairishx-admin small { text-wrap: pretty; }
.swairishx-admin a { color: inherit; }
.swairishx-admin svg { display: block; width: 19px; height: 19px; }
.swairishx-admin button, .swairishx-admin input, .swairishx-admin select, .swairishx-admin textarea { font-family: inherit; }

.swx-appbar {
    position: sticky;
    top: 32px;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto minmax(100px, 1fr);
    align-items: center;
    min-height: 72px;
    margin: 0 -24px;
    padding: 0 24px;
    border-bottom: 1px solid var(--swx-line-soft);
    background: rgba(244, 246, 248, .92);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.swx-product { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; }
.swx-product:hover, .swx-product:focus { color: inherit; }
.swx-product__mark { position: relative; display: grid; width: 38px; height: 38px; place-items: center; overflow: hidden; border-radius: 11px; background: var(--swx-ink); color: #fff; font-size: 11px; font-weight: 750; letter-spacing: -.02em; }
.swx-product__mark i { position: absolute; right: -7px; bottom: -8px; width: 23px; height: 23px; border-radius: 50%; background: var(--swx-signal); opacity: .95; }
.swx-product > span:last-child { display: grid; gap: 1px; }
.swx-product strong { font-size: 13px; font-weight: 700; letter-spacing: -.015em; }
.swx-product small { color: var(--swx-ink-tertiary); font-size: 10px; font-weight: 500; }

.swx-context-nav { display: flex; align-items: center; gap: 3px; padding: 4px; border-radius: 12px; background: rgba(23, 33, 29, .045); }
.swx-context-nav a { display: inline-flex; min-height: 38px; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; color: var(--swx-ink-tertiary); font-size: 12px; font-weight: 650; text-decoration: none; transition: color 160ms var(--swx-ease), background-color 160ms var(--swx-ease), box-shadow 160ms var(--swx-ease); }
.swx-context-nav a svg { width: 16px; height: 16px; }
.swx-context-nav a:hover, .swx-context-nav a:focus-visible { color: var(--swx-ink); }
.swx-context-nav a.is-active { background: var(--swx-surface); color: var(--swx-ink); box-shadow: 0 1px 5px rgba(23, 33, 29, .09); }
.swx-help-link { justify-self: end; display: inline-flex; min-height: 40px; align-items: center; gap: 7px; padding: 8px 10px; border-radius: 9px; color: var(--swx-ink-tertiary); font-size: 12px; font-weight: 600; text-decoration: none; }
.swx-help-link:hover, .swx-help-link:focus-visible { color: var(--swx-ink); background: rgba(23, 33, 29, .05); }
.swx-help-link svg { width: 17px; height: 17px; }

.swx-pagehead { display: flex; align-items: end; justify-content: space-between; gap: 32px; min-height: 170px; padding: 50px 2px 30px; }
.swx-pagehead__path { display: block; margin-bottom: 8px; color: var(--swx-ink-muted); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.swx-pagehead h1 { margin: 0 0 7px; font-size: clamp(32px, 3.1vw, 46px); font-weight: 700; line-height: 1; letter-spacing: -.047em; }
.swx-pagehead p { max-width: 66ch; margin: 0; color: var(--swx-ink-secondary); font-size: 14px; }
.swx-main { display: grid; gap: 18px; padding-bottom: 58px; }

.swx-button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; gap: 10px; padding: 9px 15px; border: 0; border-radius: var(--swx-radius-control); background: #e8edeb; color: var(--swx-ink); font-size: 12px; font-weight: 700; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: none; transition: transform 140ms var(--swx-ease), background-color 180ms var(--swx-ease), color 180ms var(--swx-ease), box-shadow 180ms var(--swx-ease); }
.swx-button svg { width: 17px; height: 17px; }
.swx-button:hover, .swx-button:focus { color: var(--swx-ink); background: #dde5e1; }
.swx-button:focus-visible, .swairishx-admin a:focus-visible, .swairishx-admin button:focus-visible, .swairishx-admin summary:focus-visible { outline: 3px solid rgba(22, 107, 79, .22); outline-offset: 2px; }
.swx-button:active { transform: scale(.97); }
.swx-button:disabled { opacity: .45; cursor: not-allowed; }
.swx-button--primary { background: var(--swx-brand); color: #fff; box-shadow: 0 1px 1px rgba(7, 45, 33, .12), 0 5px 14px rgba(22, 107, 79, .17); }
.swx-button--primary:hover, .swx-button--primary:focus { background: var(--swx-brand-strong); color: #fff; }
.swx-button--quiet { background: transparent; color: var(--swx-ink-secondary); }
.swx-button--quiet:hover, .swx-button--quiet:focus { background: rgba(23, 33, 29, .055); }
.swx-text-link { display: inline-flex; align-items: center; gap: 6px; color: var(--swx-brand); font-size: 12px; font-weight: 700; text-decoration: none; }
.swx-text-link:hover, .swx-text-link:focus { color: var(--swx-brand-strong); }
.swx-text-link svg { width: 15px; height: 15px; transition: transform 160ms var(--swx-ease); }
.swx-text-link:hover svg { transform: translateX(2px); }
.swx-eyebrow { display: block; margin-bottom: 8px; color: var(--swx-brand); font-size: 10px; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }

.swx-focus-card { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(360px, .6fr); align-items: stretch; overflow: hidden; border-radius: var(--swx-radius-panel); background: var(--swx-ink); color: #fff; box-shadow: 0 15px 38px rgba(23, 33, 29, .13); }
.swx-focus-card__copy { padding: clamp(30px, 4vw, 50px); }
.swx-focus-card .swx-eyebrow { color: #92dfbe; }
.swx-focus-card h2 { max-width: 760px; margin: 0 0 13px; color: #fff; font-size: clamp(30px, 3.2vw, 48px); font-weight: 690; line-height: 1.02; letter-spacing: -.052em; }
.swx-focus-card p { max-width: 64ch; margin: 0; color: rgba(255, 255, 255, .67); font-size: 14px; line-height: 1.65; }
.swx-focus-card__actions { display: flex; align-items: center; gap: 18px; margin-top: 26px; }
.swx-focus-card .swx-button--primary { background: #ecfaf3; color: #123729; box-shadow: none; }
.swx-focus-card .swx-button--primary:hover { background: #d7f2e5; }
.swx-focus-card .swx-text-link { color: rgba(255, 255, 255, .72); }
.swx-focus-card .swx-text-link:hover { color: #fff; }

.swx-signal-funnel { display: flex; flex-direction: column; justify-content: center; gap: 17px; min-height: 270px; padding: 34px; background: rgba(255, 255, 255, .045); border-left: 1px solid rgba(255, 255, 255, .08); }
.swx-signal-funnel__head { display: flex; justify-content: space-between; padding-bottom: 7px; color: rgba(255, 255, 255, .52); font-size: 10px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; }
.swx-signal-funnel__head strong { color: #a8e7cb; font-size: 11px; }
.swx-signal-line { display: grid; grid-template-columns: 70px minmax(90px, 1fr) 52px; align-items: center; gap: 10px; color: rgba(255, 255, 255, .65); font-size: 11px; }
.swx-signal-line i { display: block; height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, .09); }
.swx-signal-line i::after { display: block; width: var(--swx-signal); height: 100%; border-radius: inherit; background: var(--swx-signal); content: ""; }
.swx-signal-line strong { color: #fff; font-size: 12px; font-variant-numeric: tabular-nums; text-align: right; }

.swx-stat-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); overflow: hidden; border-radius: var(--swx-radius-card); background: var(--swx-surface); box-shadow: var(--swx-shadow-card); }
.swx-metric { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 13px; min-height: 108px; padding: 20px 22px; border-right: 1px solid var(--swx-line-soft); }
.swx-metric:last-child { border-right: 0; }
.swx-metric__icon { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: var(--swx-brand-soft); color: var(--swx-brand); }
.swx-metric__icon svg { width: 18px; height: 18px; }
.swx-metric > div { display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 1px 8px; }
.swx-metric span:not(.swx-metric__icon) { grid-column: 1; color: var(--swx-ink-tertiary); font-size: 10px; font-weight: 650; }
.swx-metric strong { grid-column: 2; grid-row: 1 / span 2; color: var(--swx-ink); font-size: 28px; font-weight: 680; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.swx-metric small { grid-column: 1; color: var(--swx-ink-muted); font-size: 10px; }

.swx-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 18px; }
.swx-pro-banner { display: grid; grid-template-columns: 50px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 24px; border: 1px solid rgba(22,107,79,.14); border-radius: var(--swx-radius-card); background: linear-gradient(115deg, #f1faf5 0%, #fffaf2 100%); box-shadow: var(--swx-shadow-card); }
.swx-pro-banner__mark { display: grid; width: 48px; height: 48px; place-items: center; border-radius: 14px; background: var(--swx-ink); color: #a8e7cb; }
.swx-pro-banner__mark svg { width: 21px; height: 21px; }
.swx-pro-banner .swx-eyebrow { margin-bottom: 4px; }
.swx-pro-banner h2 { margin: 0 0 5px; font-size: 18px; font-weight: 680; letter-spacing: -.025em; }
.swx-pro-banner p { max-width: 74ch; margin: 0; color: var(--swx-ink-tertiary); font-size: 11px; line-height: 1.55; }
.swx-campaign-card, .swx-side-card, .swx-settings-card, .swx-privacy-card { border-radius: var(--swx-radius-card); background: var(--swx-surface); box-shadow: var(--swx-shadow-card); }
.swx-campaign-card { overflow: visible; }
.swx-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; }
.swx-card-heading h2 { margin: 0; font-size: 18px; font-weight: 680; line-height: 1.2; letter-spacing: -.025em; }
.swx-card-heading p { max-width: 60ch; margin: 7px 0 0; color: var(--swx-ink-tertiary); font-size: 12px; }
.swx-card-heading .swx-eyebrow { margin-bottom: 4px; }
.swx-side-card { padding-bottom: 10px; }
.swx-side-card .swx-card-heading { align-items: start; }
.swx-quick-link { display: grid; grid-template-columns: 42px minmax(0, 1fr) 18px; align-items: center; gap: 12px; min-height: 74px; margin: 0 10px; padding: 12px; border-top: 1px solid var(--swx-line-soft); color: var(--swx-ink); text-decoration: none; transition: background-color 160ms var(--swx-ease), transform 160ms var(--swx-ease); }
.swx-quick-link:hover, .swx-quick-link:focus { color: var(--swx-ink); background: var(--swx-surface-subtle); }
.swx-quick-link:active { transform: scale(.99); }
.swx-quick-link > span { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: var(--swx-control); color: var(--swx-brand); }
.swx-quick-link > span svg { width: 18px; height: 18px; }
.swx-quick-link > div { display: grid; gap: 2px; }
.swx-quick-link strong { font-size: 12px; }
.swx-quick-link small { color: var(--swx-ink-tertiary); font-size: 10px; }
.swx-quick-link > svg { width: 15px; height: 15px; color: var(--swx-ink-muted); }

.swx-campaign-tools { display: flex; justify-content: space-between; gap: 18px; padding: 0 24px 18px; }
.swx-search { display: flex; min-width: min(320px, 100%); min-height: 40px; align-items: center; gap: 8px; padding: 0 11px; border-radius: var(--swx-radius-control); background: var(--swx-control); color: var(--swx-ink-muted); }
.swx-search:focus-within { background: #fff; box-shadow: 0 0 0 3px rgba(22, 107, 79, .14), inset 0 0 0 1px var(--swx-brand); }
.swx-search svg { flex: 0 0 auto; width: 16px; height: 16px; }
.swx-search input[type="search"] { width: 100%; min-height: 38px; margin: 0; padding: 0; border: 0; outline: 0; background: transparent; box-shadow: none; color: var(--swx-ink); font-size: 12px; }
.swx-search input[type="search"]:focus { border: 0; outline: 0; box-shadow: none; }
.swx-filter-pills { display: inline-flex; align-items: center; gap: 3px; padding: 3px; border-radius: 10px; background: var(--swx-control); }
.swx-filter-pills button { min-height: 34px; padding: 6px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--swx-ink-tertiary); font-size: 11px; font-weight: 650; cursor: pointer; }
.swx-filter-pills button.is-active { background: #fff; color: var(--swx-ink); box-shadow: 0 1px 4px rgba(23, 33, 29, .09); }

.swx-campaign-table__head, .swx-campaign-row { display: grid; grid-template-columns: minmax(310px, 1.4fr) 88px minmax(150px, .65fr) 105px 84px; align-items: center; gap: 14px; }
.swx-campaign-table__head { min-height: 38px; padding: 0 24px; border-top: 1px solid var(--swx-line-soft); border-bottom: 1px solid var(--swx-line-soft); background: var(--swx-surface-subtle); color: var(--swx-ink-muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.swx-campaign-row { min-height: 82px; padding: 12px 24px; border-bottom: 1px solid var(--swx-line-soft); transition: background-color 160ms var(--swx-ease); }
.swx-campaign-row:last-child { border-bottom: 0; }
.swx-campaign-row:hover { background: #fbfcfc; }
.swx-campaign-name { display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 12px; }
.swx-row__type { display: grid; width: 40px; height: 40px; place-items: center; border-radius: 11px; background: var(--swx-brand-soft); color: var(--swx-brand); }
.swx-row__type svg { width: 18px; height: 18px; }
.swx-campaign-name h3 { margin: 0 0 2px; overflow: hidden; font-size: 12px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.swx-campaign-name h3 a { text-decoration: none; }
.swx-campaign-name h3 a:hover { color: var(--swx-brand); }
.swx-campaign-name p { margin: 0; color: var(--swx-ink-tertiary); font-size: 10px; }
.swx-status, .swx-connection-state { display: inline-flex; width: fit-content; min-height: 25px; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--swx-control); color: var(--swx-ink-tertiary); font-size: 9px; font-weight: 750; }
.swx-status i, .swx-connection-state i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .65; }
.swx-status.is-ready, .swx-connection-state.is-connected { background: var(--swx-brand-soft); color: var(--swx-brand); }
.swx-row-signal { display: grid; gap: 2px; }
.swx-row-signal strong { font-size: 13px; font-variant-numeric: tabular-nums; }
.swx-row-signal span, .swx-campaign-row time { color: var(--swx-ink-tertiary); font-size: 9px; font-variant-numeric: tabular-nums; }
.swx-row-actions { display: flex; justify-content: flex-end; gap: 5px; }
.swx-icon-button { display: grid; width: 34px; height: 34px; place-items: center; margin: 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--swx-ink-tertiary); text-decoration: none; cursor: pointer; list-style: none; }
.swx-icon-button::-webkit-details-marker { display: none; }
.swx-icon-button:hover, .swx-icon-button:focus { color: var(--swx-ink); background: var(--swx-control); }
.swx-icon-button svg { width: 16px; height: 16px; }
.swx-row-actions details { position: relative; }
.swx-row-actions details > div { position: absolute; top: calc(100% + 6px); right: 0; z-index: 20; display: grid; min-width: 168px; padding: 6px; border-radius: 10px; background: var(--swx-surface); box-shadow: var(--swx-shadow-float); transform-origin: top right; animation: swx-pop 160ms var(--swx-ease) both; }
.swx-row-actions details > div a { padding: 9px 10px; border-radius: 7px; color: var(--swx-ink-secondary); font-size: 11px; font-weight: 600; text-decoration: none; }
.swx-row-actions details > div a:hover { background: var(--swx-control); color: var(--swx-ink); }
.swx-row-actions details > div a.is-danger { color: var(--swx-danger); }
.swx-row-actions details > div a.is-danger:hover { background: var(--swx-danger-soft); }

.swx-empty { display: grid; justify-items: center; min-height: 320px; align-content: center; padding: 46px 24px; border-top: 1px solid var(--swx-line-soft); text-align: center; }
.swx-empty__signal { display: flex; align-items: end; gap: 4px; width: 54px; height: 54px; justify-content: center; margin-bottom: 18px; padding: 15px; border-radius: 16px; background: var(--swx-brand-soft); }
.swx-empty__signal i { display: block; width: 5px; border-radius: 3px; background: var(--swx-brand); }
.swx-empty__signal i:nth-child(1) { height: 9px; opacity: .35; }
.swx-empty__signal i:nth-child(2) { height: 17px; opacity: .65; }
.swx-empty__signal i:nth-child(3) { height: 25px; }
.swx-empty h3 { margin: 0 0 6px; font-size: 17px; font-weight: 680; letter-spacing: -.02em; }
.swx-empty p { max-width: 430px; margin: 0 0 19px; color: var(--swx-ink-tertiary); font-size: 12px; }
.swx-no-results { padding: 32px 24px; border-top: 1px solid var(--swx-line-soft); color: var(--swx-ink-tertiary); text-align: center; }

/* Builder */
.swx-builder { display: grid; grid-template-columns: minmax(600px, .95fr) minmax(460px, .7fr); align-items: start; gap: 18px; }
.swx-builder__workspace, .swx-preview-shell { border-radius: var(--swx-radius-card); background: var(--swx-surface); box-shadow: var(--swx-shadow-card); }
.swx-builder__workspace { overflow: hidden; }
.swx-builder-title { display: grid; grid-template-columns: auto minmax(200px, 1fr) auto; align-items: center; gap: 12px; min-height: 68px; padding: 12px 18px; border-bottom: 1px solid var(--swx-line-soft); }
.swx-builder-title > label { color: var(--swx-ink-tertiary); font-size: 10px; font-weight: 700; }
.swx-builder-title > input { width: 100%; min-height: 40px; margin: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--swx-ink); box-shadow: none; font-size: 14px; font-weight: 680; }
.swx-builder-title > input:hover { background: var(--swx-surface-subtle); }
.swx-builder-title > input:focus { outline: 0; background: var(--swx-control); box-shadow: 0 0 0 3px rgba(22, 107, 79, .13); }
.swx-save-state { display: inline-flex; align-items: center; gap: 6px; color: var(--swx-ink-tertiary); font-size: 9px; font-weight: 650; }
.swx-save-state i { width: 6px; height: 6px; border-radius: 50%; background: var(--swx-brand); }

.swx-stepnav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px; border-bottom: 1px solid var(--swx-line-soft); background: var(--swx-surface-subtle); }
.swx-stepnav button { position: relative; display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; align-items: center; gap: 8px; min-height: 52px; padding: 7px 9px; border: 0; border-radius: 9px; background: transparent; color: var(--swx-ink-tertiary); text-align: left; cursor: pointer; }
.swx-stepnav button:hover { color: var(--swx-ink); }
.swx-stepnav button.is-active { background: var(--swx-surface); color: var(--swx-ink); box-shadow: 0 1px 5px rgba(23, 33, 29, .08); }
.swx-stepnav button > span:first-child { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 8px; background: rgba(23, 33, 29, .05); }
.swx-stepnav button.is-active > span:first-child { background: var(--swx-brand-soft); color: var(--swx-brand); }
.swx-stepnav button svg { width: 15px; height: 15px; }
.swx-stepnav button > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.swx-stepnav button small { color: var(--swx-ink-muted); font-size: 8px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.swx-stepnav button strong { overflow: hidden; font-size: 10px; font-weight: 680; text-overflow: ellipsis; white-space: nowrap; }
.swx-stepnav button > i { display: none; color: var(--swx-brand); }
.swx-stepnav button.is-complete > i { display: block; }

.swx-builder__panels { min-height: 660px; }
.swx-panel { display: none; }
.swx-panel.is-active { display: grid; gap: 22px; padding: 28px; animation: swx-enter 210ms var(--swx-ease) both; }
.swx-section-intro h2 { margin: 0 0 6px; font-size: 22px; font-weight: 690; letter-spacing: -.03em; }
.swx-section-intro p { max-width: 66ch; margin: 0; color: var(--swx-ink-tertiary); font-size: 12px; }
.swx-section-card { display: grid; gap: 18px; padding: 20px; border-radius: 13px; background: var(--swx-surface-subtle); box-shadow: inset 0 0 0 1px var(--swx-line-soft); }
.swx-section-card--fields { gap: 20px; }
.swx-section-card__title { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 11px; }
.swx-mini-icon { display: grid; width: 36px; height: 36px; place-items: center; border-radius: 10px; background: var(--swx-brand-soft); color: var(--swx-brand); }
.swx-mini-icon svg { width: 17px; height: 17px; }
.swx-section-card__title h3 { margin: 0 0 2px; font-size: 13px; font-weight: 680; }
.swx-section-card__title p { margin: 0; color: var(--swx-ink-tertiary); font-size: 10px; }

.swx-type-picker, .swx-theme-picker { margin: 0; padding: 0; border: 0; }
.swx-type-picker legend, .swx-theme-picker legend { margin-bottom: 9px; color: var(--swx-ink-secondary); font-size: 10px; font-weight: 700; }
.swx-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.swx-type-card { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 78px; padding: 12px; border-radius: 11px; background: var(--swx-surface); box-shadow: inset 0 0 0 1px var(--swx-line); cursor: pointer; transition: transform 140ms var(--swx-ease), box-shadow 160ms var(--swx-ease), background-color 160ms var(--swx-ease); }
.swx-type-card:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(22, 107, 79, .32), 0 5px 14px rgba(23, 33, 29, .055); }
.swx-type-card:has(input:checked) { background: #f4fbf7; box-shadow: inset 0 0 0 2px var(--swx-brand), 0 5px 14px rgba(22, 107, 79, .08); }
.swx-type-card input, .swx-theme-card input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.swx-type-card:has(input:focus-visible), .swx-theme-card:has(input:focus-visible) { outline: 3px solid rgba(22, 107, 79, .2); outline-offset: 2px; }
.swx-type-card__icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; background: var(--swx-control); color: var(--swx-brand); }
.swx-type-card:has(input:checked) .swx-type-card__icon { background: var(--swx-brand); color: #fff; }
.swx-type-card__icon svg { width: 17px; height: 17px; }
.swx-type-card > span:nth-child(3) { display: grid; gap: 3px; }
.swx-type-card strong { font-size: 11px; font-weight: 680; }
.swx-type-card small { color: var(--swx-ink-tertiary); font-size: 9px; font-weight: 500; }
.swx-type-card em, .swx-theme-card em { padding: 3px 5px; border-radius: 5px; background: var(--swx-warning-soft); color: var(--swx-warning); font-size: 7px; font-style: normal; font-weight: 800; }

.swx-offer-presets { min-width: 0; margin: 0; padding: 18px; border: 0; border-radius: 13px; background: var(--swx-surface-subtle); box-shadow: inset 0 0 0 1px var(--swx-line-soft); }
.swx-offer-presets legend { display: flex; width: 100%; align-items: baseline; justify-content: space-between; gap: 16px; margin: 0 0 12px; padding: 0; color: var(--swx-ink); }
.swx-offer-presets legend span { font-size: 13px; font-weight: 700; }
.swx-offer-presets legend small { color: var(--swx-ink-tertiary); font-size: 9px; font-weight: 500; }
.swx-offer-preset-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.swx-offer-preset { display: grid; gap: 11px; min-width: 0; min-height: 132px; padding: 10px; border: 0; border-radius: 12px; background: var(--swx-surface); color: var(--swx-ink); box-shadow: inset 0 0 0 1px var(--swx-line); text-align: left; cursor: pointer; transition: transform 140ms var(--swx-ease), box-shadow 160ms var(--swx-ease), background-color 160ms var(--swx-ease); }
.swx-offer-preset:hover { transform: translateY(-1px); background: #fbfcfb; box-shadow: inset 0 0 0 1px rgba(22, 107, 79, .3), 0 5px 14px rgba(23, 33, 29, .055); }
.swx-offer-preset:active { transform: scale(.99); }
.swx-offer-preset:focus-visible { outline: 3px solid rgba(22, 107, 79, .2); outline-offset: 2px; }
.swx-offer-preset.is-selected { background: #f4fbf7; box-shadow: inset 0 0 0 2px var(--swx-brand), 0 5px 14px rgba(22, 107, 79, .08); }
.swx-offer-preset__preview { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 66px; padding: 9px; overflow: hidden; border-radius: 8px; background: var(--swx-preset-bg); color: var(--swx-preset-fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .09); }
.swx-offer-preset__preview > i { display: grid; width: 23px; height: 23px; place-items: center; border-radius: 6px; background: rgba(255, 255, 255, .12); color: currentColor; }
.swx-offer-preset__preview > i svg { width: 12px; height: 12px; }
.swx-offer-preset__preview > img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.swx-offer-preset__preview > span { display: grid; gap: 2px; min-width: 0; }
.swx-offer-preset__preview strong, .swx-offer-preset__preview small { overflow: hidden; color: inherit; text-overflow: ellipsis; white-space: nowrap; }
.swx-offer-preset__preview strong { font-size: 8px; font-weight: 750; }
.swx-offer-preset__preview small { font-size: 6px; opacity: .72; }
.swx-offer-preset__preview > b { max-width: 72px; padding: 6px 7px; overflow: hidden; border-radius: 5px; background: var(--swx-preset-accent); color: #10261f; font-size: 6px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.swx-offer-preset__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 2px 1px; }
.swx-offer-preset__meta > span { display: grid; gap: 2px; min-width: 0; }
.swx-offer-preset__meta strong { font-size: 11px; font-weight: 700; }
.swx-offer-preset__meta small { overflow: hidden; color: var(--swx-ink-tertiary); font-size: 8px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.swx-offer-preset__meta em { display: inline-flex; flex: 0 0 auto; min-height: 24px; align-items: center; gap: 4px; padding: 4px 7px; border-radius: 7px; background: var(--swx-control); color: var(--swx-ink-tertiary); font-size: 7px; font-style: normal; font-weight: 750; }
.swx-offer-preset__meta em svg { display: none; width: 11px; height: 11px; }
.swx-offer-preset.is-selected .swx-offer-preset__meta em { background: var(--swx-brand); color: #fff; }
.swx-offer-preset.is-selected .swx-offer-preset__meta em svg { display: block; }

.swx-grid-two, .swx-grid-three { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.swx-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.swx-field { display: grid; gap: 7px; color: var(--swx-ink-secondary); font-size: 10px; font-weight: 700; }
.swx-field input, .swx-field select, .swx-field textarea { width: 100%; min-height: 44px; max-width: none; margin: 0; padding: 9px 11px; border: 0; border-radius: var(--swx-radius-control); background: var(--swx-control); color: var(--swx-ink); box-shadow: inset 0 0 0 1px rgba(23, 33, 29, .045); font-size: 12px; font-weight: 500; transition: background-color 160ms var(--swx-ease), box-shadow 160ms var(--swx-ease); }
.swx-field select { padding-right: 32px; }
.swx-field textarea { min-height: 106px; resize: vertical; line-height: 1.55; }
.swx-field input:hover, .swx-field select:hover, .swx-field textarea:hover { background: #ebefed; }
.swx-field input:focus, .swx-field select:focus, .swx-field textarea:focus { outline: 0; background: #fff; box-shadow: 0 0 0 3px rgba(22, 107, 79, .14), inset 0 0 0 1px var(--swx-brand); }
.swx-field small { color: var(--swx-ink-tertiary); font-size: 9px; font-weight: 500; }
.swx-message-tip { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: center; gap: 10px; padding: 12px 14px; border-radius: 11px; background: var(--swx-brand-soft); color: var(--swx-brand-strong); }
.swx-message-tip > svg { width: 18px; height: 18px; }
.swx-message-tip > div { display: grid; gap: 1px; }
.swx-message-tip strong { font-size: 10px; }
.swx-message-tip span { font-size: 9px; opacity: .75; }
.swx-media-field { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding-top: 20px; border-top: 1px solid var(--swx-line-soft); }
.swx-media-field__art { position: relative; display: grid; aspect-ratio: 1; place-items: center; overflow: hidden; border-radius: 14px; background: #f6efe3; box-shadow: inset 0 0 0 1px rgba(23, 33, 29, .08); }
.swx-media-field__art img { width: 100%; height: 100%; object-fit: cover; }
.swx-media-field__art > span { display: none; place-items: center; gap: 7px; color: var(--swx-ink-muted); text-align: center; }
.swx-media-field__art.is-empty > span { display: grid; }
.swx-media-field__art svg { width: 24px; height: 24px; }
.swx-media-field__art small { font-size: 8px; font-weight: 650; }
.swx-media-field__controls { display: grid; align-content: start; gap: 14px; min-width: 0; }
.swx-media-field__controls > div:first-child { display: grid; gap: 3px; }
.swx-media-field__controls > div:first-child strong { font-size: 12px; }
.swx-media-field__controls > div:first-child small { max-width: 58ch; color: var(--swx-ink-tertiary); font-size: 9px; line-height: 1.5; }
.swx-media-field__actions { display: flex; align-items: center; gap: 12px; }
.swx-text-button { min-height: 40px; padding: 7px 4px; border: 0; background: transparent; color: var(--swx-danger); font-size: 9px; font-weight: 700; cursor: pointer; }
.swx-text-button:hover { text-decoration: underline; }
.swx-text-button:focus-visible { outline: 3px solid rgba(22, 107, 79, .2); outline-offset: 2px; }
.swx-subsection { display: grid; grid-template-columns: minmax(150px, .55fr) minmax(260px, 1fr); align-items: start; gap: 22px; padding-top: 19px; border-top: 1px solid var(--swx-line-soft); }
.swx-subsection h3 { margin: 2px 0 3px; font-size: 11px; }
.swx-subsection p { margin: 0; color: var(--swx-ink-tertiary); font-size: 9px; }
.swx-subsection--stacked { grid-template-columns: 1fr; gap: 13px; }
.swx-conversion-fields { display: grid; gap: 14px; }
.swx-disclosure { border-top: 1px solid var(--swx-line-soft); }
.swx-disclosure summary { display: flex; min-height: 48px; align-items: center; justify-content: space-between; color: var(--swx-ink-secondary); font-size: 11px; font-weight: 700; cursor: pointer; list-style: none; }
.swx-disclosure summary::-webkit-details-marker { display: none; }
.swx-disclosure summary::after { margin-left: 10px; color: var(--swx-ink-muted); content: "+"; font-size: 17px; font-weight: 400; }
.swx-disclosure[open] summary::after { content: "−"; }
.swx-disclosure summary span { margin-left: auto; padding: 3px 6px; border-radius: 5px; background: var(--swx-control); color: var(--swx-ink-muted); font-size: 8px; }
.swx-disclosure__body { display: grid; gap: 14px; padding: 3px 0 16px; animation: swx-enter 160ms var(--swx-ease) both; }

.swx-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.swx-theme-card { position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px; padding: 9px; border-radius: 10px; background: var(--swx-surface); box-shadow: inset 0 0 0 1px var(--swx-line); cursor: pointer; }
.swx-theme-card:has(input:checked) { box-shadow: inset 0 0 0 2px var(--swx-brand); }
.swx-theme-swatch { grid-column: 1 / -1; position: relative; display: block; height: 52px; overflow: hidden; border-radius: 7px; background: #17211d; }
.swx-theme-swatch i { position: absolute; top: 15px; left: 10px; width: 54%; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .86); }
.swx-theme-swatch b { position: absolute; right: 9px; bottom: 10px; width: 27px; height: 13px; border-radius: 4px; background: var(--swx-signal); }
.swx-theme-card--paper .swx-theme-swatch { background: #f3eee3; box-shadow: inset 0 0 0 1px #ddd4c2; }
.swx-theme-card--paper .swx-theme-swatch i { background: #2b302d; }
.swx-theme-card--paper .swx-theme-swatch b { background: #cf6a42; }
.swx-theme-card--contrast .swx-theme-swatch { background: #111; }
.swx-theme-card--contrast .swx-theme-swatch b { background: #fff; }
.swx-theme-card strong { font-size: 10px; }
.swx-color-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.swx-color-field { display: grid; gap: 7px; color: var(--swx-ink-secondary); font-size: 10px; font-weight: 700; }
.swx-color-field > span:last-child { display: flex; min-height: 44px; align-items: center; gap: 8px; padding: 6px 9px; border-radius: 9px; background: var(--swx-control); }
.swx-color-field input { width: 28px; height: 28px; margin: 0; padding: 2px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; }
.swx-color-field code { padding: 0; background: transparent; color: var(--swx-ink-secondary); font-size: 9px; }
.swx-toggle-list { display: grid; border-top: 1px solid var(--swx-line-soft); }
.swx-toggle { display: flex; min-height: 64px; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--swx-line-soft); cursor: pointer; }
.swx-toggle > span { display: grid; gap: 2px; }
.swx-toggle strong { font-size: 11px; }
.swx-toggle small { color: var(--swx-ink-tertiary); font-size: 9px; font-weight: 500; }
.swx-toggle input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.swx-toggle > i { position: relative; flex: 0 0 auto; width: 38px; height: 22px; border-radius: 999px; background: #cbd2ce; transition: background-color 160ms var(--swx-ease); }
.swx-toggle > i::after { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(23, 33, 29, .22); content: ""; transition: transform 160ms var(--swx-ease); }
.swx-toggle input:checked + i { background: var(--swx-brand); }
.swx-toggle input:checked + i::after { transform: translateX(16px); }
.swx-toggle input:focus-visible + i { outline: 3px solid rgba(22, 107, 79, .2); outline-offset: 2px; }

.swx-builder-actions { position: sticky; bottom: 0; z-index: 15; display: flex; min-height: 70px; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 18px; border-top: 1px solid var(--swx-line-soft); background: rgba(255, 255, 255, .94); backdrop-filter: blur(14px); }
.swx-builder-actions__progress { display: grid; gap: 6px; min-width: 150px; }
.swx-builder-actions__progress span { color: var(--swx-ink-tertiary); font-size: 9px; font-weight: 700; }
.swx-builder-actions__progress > i { display: block; width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: var(--swx-control); }
.swx-builder-actions__progress b { display: block; width: 25%; height: 100%; border-radius: inherit; background: var(--swx-brand); transition: width 220ms var(--swx-ease); }
.swx-builder-actions__buttons { display: flex; align-items: center; gap: 7px; }

.swx-preview-shell { position: sticky; top: 122px; overflow: hidden; }
.swx-preview-shell__head { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid var(--swx-line-soft); }
.swx-preview-shell__head > div:first-child { display: flex; align-items: center; gap: 7px; }
.swx-preview-shell__head strong { font-size: 10px; }
.swx-live-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--swx-brand); }
.swx-live-dot::after { position: absolute; inset: -3px; border: 1px solid var(--swx-brand); border-radius: inherit; content: ""; animation: swx-pulse 2s infinite; }
.swx-device-switch { display: flex; gap: 2px; padding: 3px; border-radius: 8px; background: var(--swx-control); }
.swx-device-switch button { display: grid; width: 30px; height: 28px; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--swx-ink-muted); cursor: pointer; }
.swx-device-switch button.is-active { background: #fff; color: var(--swx-ink); box-shadow: 0 1px 3px rgba(23, 33, 29, .1); }
.swx-device-switch svg { width: 14px; height: 14px; }
.swx-preview-stage { display: grid; min-height: 610px; place-items: center; padding: clamp(20px, 3vw, 38px); background: #e8eeeb; transition: background-color 180ms var(--swx-ease); }
.swx-preview-browser { position: relative; width: 100%; max-width: 660px; min-height: 430px; overflow: hidden; border-radius: 13px; background: #fff; box-shadow: 0 0 0 1px rgba(23, 33, 29, .08), 0 18px 44px rgba(23, 33, 29, .12); transition: width 240ms var(--swx-ease), min-height 240ms var(--swx-ease); }
.swx-preview-stage.is-mobile .swx-preview-browser { width: 270px; min-height: 510px; }
.swx-preview-browser__chrome { display: flex; height: 36px; align-items: center; gap: 5px; padding: 0 11px; border-bottom: 1px solid rgba(23, 33, 29, .06); background: #fafbfb; }
.swx-preview-browser__chrome i { width: 6px; height: 6px; border-radius: 50%; background: #d0d7d3; }
.swx-preview-browser__chrome span { margin-left: 9px; color: #a0aaa5; font-size: 7px; }
.swx-preview-site__nav { display: flex; height: 48px; align-items: center; gap: 18px; padding: 0 20px; border-bottom: 1px solid rgba(23, 33, 29, .05); }
.swx-preview-site__nav b { width: 60px; height: 7px; margin-right: auto; border-radius: 3px; background: #1d382f; }
.swx-preview-site__nav span { width: 26px; height: 4px; border-radius: 3px; background: #dce3df; }
.swx-preview-site__hero { display: grid; align-content: center; min-height: 340px; padding: 50px 12%; background: #f7f8f7; }
.swx-preview-site__hero i { width: 42px; height: 8px; margin-bottom: 17px; border-radius: 4px; background: #bad8ca; }
.swx-preview-site__hero b { width: 75%; height: 17px; margin: 3px 0; border-radius: 4px; background: #d6ddda; }
.swx-preview-site__hero b:nth-of-type(2) { width: 54%; }
.swx-preview-site__hero span { width: 36%; height: 62px; margin-top: 28px; border-radius: 12px; background: #e3e9e6; }
.swx-preview-notice { position: absolute; top: 36px; right: 0; left: 0; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 20px; align-items: center; gap: 10px; min-height: 70px; padding: 11px 14px; background: #10261f; color: #f5fbf7; transition: top 180ms var(--swx-ease), bottom 180ms var(--swx-ease), background-color 180ms var(--swx-ease), color 180ms var(--swx-ease), border-radius 180ms var(--swx-ease), transform 180ms var(--swx-ease); }
.swx-preview-notice.is-bottom { top: auto; bottom: 0; }
.swx-preview-notice.is-toast { top: auto; right: 16px; bottom: 16px; left: 16px; border-radius: 10px; box-shadow: 0 9px 24px rgba(23, 33, 29, .2); }
.swx-preview-notice__mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .12); }
.swx-preview-notice__mark svg { width: 15px; height: 15px; }
.swx-preview-notice__image { grid-column: 1; grid-row: 1; width: 38px; height: 38px; border-radius: 10px; object-fit: cover; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .1); }
.swx-preview-notice.has-image-end { grid-template-columns: minmax(0, 1fr) 38px auto 20px; }
.swx-preview-notice__image.is-end { grid-column: 2; }
.swx-preview-notice.has-image-end > div { grid-column: 1; }
.swx-preview-notice > div { grid-column: 2; display: grid; gap: 2px; min-width: 0; }
.swx-preview-notice strong { overflow: hidden; color: inherit; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.swx-preview-notice > div span { overflow: hidden; color: inherit; font-size: 8px; opacity: .72; text-overflow: ellipsis; white-space: nowrap; }
.swx-preview-notice button { min-height: 30px; padding: 6px 9px; border: 0; border-radius: 7px; background: #6ee7b7; color: #10261f; font-size: 8px; font-weight: 750; }
.swx-preview-notice__close { color: currentColor; font-size: 16px; font-style: normal; opacity: .55; text-align: center; }
.swx-preview-countdown { flex: 0 0 auto; padding: 5px 7px; border-radius: 6px; background: rgba(255,255,255,.14); color: inherit; font-size: 8px; font-weight: 750; font-variant-numeric: tabular-nums; }
.swx-preview-coupon { flex: 0 0 auto; min-height: 25px; padding: 4px 7px; border: 1px dashed currentColor; border-radius: 6px; background: transparent; color: inherit; font-size: 8px; font-weight: 750; }
.swx-preview-stage.is-mobile .swx-preview-notice { grid-template-columns: 26px minmax(0, 1fr) 16px; gap: 7px; }
.swx-preview-stage.is-mobile .swx-preview-notice.has-image-end { grid-template-columns: minmax(0, 1fr) 26px 16px; }
.swx-preview-stage.is-mobile .swx-preview-notice__image { width: 26px; height: 26px; border-radius: 7px; }
.swx-preview-stage.is-mobile .swx-preview-notice.has-image-end .swx-preview-notice__image { grid-column: 2; }
.swx-preview-stage.is-mobile .swx-preview-notice.has-image-end > div { grid-column: 1; }
.swx-preview-stage.is-mobile .swx-preview-notice button { grid-column: 2; width: fit-content; }
.swx-preview-stage.is-mobile .swx-preview-notice.has-image-end button { grid-column: 1; }
.swx-preview-stage.is-mobile .swx-preview-notice__close { grid-column: 3; grid-row: 1; }
.swx-preview-summary { display: grid; grid-template-columns: 1fr 1fr; min-height: 58px; border-top: 1px solid var(--swx-line-soft); }
.swx-preview-summary > div { display: grid; align-content: center; gap: 1px; padding: 10px 14px; border-right: 1px solid var(--swx-line-soft); }
.swx-preview-summary > div:last-child { border-right: 0; }
.swx-preview-summary span { color: var(--swx-ink-muted); font-size: 8px; font-weight: 650; text-transform: uppercase; }
.swx-preview-summary strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

/* Integrations */
.swx-integrations-head { display: flex; align-items: end; justify-content: space-between; gap: 28px; padding: 24px; border-radius: var(--swx-radius-card); background: var(--swx-surface); box-shadow: var(--swx-shadow-card); }
.swx-integrations-head h2 { margin: 0 0 6px; font-size: 22px; letter-spacing: -.03em; }
.swx-integrations-head p { max-width: 72ch; margin: 0; color: var(--swx-ink-tertiary); font-size: 11px; }
.swx-main > .swx-filter-pills { width: fit-content; }
.swx-integration-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swx-integration { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: start; gap: 13px; min-height: 144px; padding: 19px; border-radius: var(--swx-radius-card); background: var(--swx-surface); box-shadow: var(--swx-shadow-card); transition: transform 160ms var(--swx-ease), box-shadow 160ms var(--swx-ease); }
.swx-integration:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(23, 33, 29, .06), 0 10px 26px rgba(23, 33, 29, .075); }
.swx-integration__mark { display: grid; width: 46px; height: 46px; place-items: center; border-radius: 12px; background: var(--swx-control); color: var(--swx-brand); font-size: 10px; font-weight: 800; letter-spacing: -.02em; }
.swx-integration__copy h3 { margin: 3px 0 4px; font-size: 12px; }
.swx-integration__copy p { margin: 0; color: var(--swx-ink-tertiary); font-size: 9px; line-height: 1.55; }
.swx-connection-state { position: absolute; right: 16px; bottom: 15px; }
/* Settings and extension surfaces */
.swx-settings-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .65fr); gap: 18px; }
.swx-settings-card { display: grid; align-content: start; gap: 20px; padding: 24px; }
.swx-settings-card .swx-button { width: fit-content; }
.swx-privacy-card { position: relative; overflow: hidden; padding: 25px; background: var(--swx-ink); color: #fff; }
.swx-privacy-card::after { position: absolute; right: -50px; bottom: -70px; width: 190px; height: 190px; border: 1px solid rgba(112, 217, 172, .24); border-radius: 50%; content: ""; box-shadow: 0 0 0 28px rgba(112, 217, 172, .045), 0 0 0 58px rgba(112, 217, 172, .03); }
.swx-privacy-card__icon { display: grid; width: 43px; height: 43px; place-items: center; margin-bottom: 38px; border-radius: 12px; background: rgba(112, 217, 172, .12); color: var(--swx-signal); }
.swx-privacy-card .swx-eyebrow { color: #92dfbe; }
.swx-privacy-card h2 { max-width: 430px; margin: 0 0 9px; color: #fff; font-size: 22px; line-height: 1.12; letter-spacing: -.035em; }
.swx-privacy-card p { max-width: 58ch; margin: 0; color: rgba(255, 255, 255, .62); font-size: 11px; line-height: 1.65; }
.swx-privacy-card dl { position: relative; z-index: 2; display: grid; margin: 25px 0 0; }
.swx-privacy-card dl div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-top: 1px solid rgba(255, 255, 255, .1); }
.swx-privacy-card dt { color: rgba(255, 255, 255, .54); font-size: 9px; }
.swx-privacy-card dd { margin: 0; color: #fff; font-size: 10px; font-weight: 700; }
.swx-settings-extensions { display: grid; gap: 16px; }

.swx-feedback { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 11px 13px; border-radius: 10px; background: var(--swx-brand-soft); color: var(--swx-brand-strong); font-size: 11px; font-weight: 650; }
.swx-feedback svg { width: 16px; height: 16px; }
.swx-notice-drawer { margin-top: 12px; }
.swx-notice-drawer:empty { display: none; }
.swx-notice-drawer > details { border-radius: 10px; background: #fff9ec; box-shadow: inset 0 0 0 1px rgba(154, 102, 23, .12); }
.swx-notice-drawer > details > summary { display: flex; min-height: 42px; align-items: center; justify-content: space-between; padding: 8px 13px; color: #76511b; font-size: 10px; font-weight: 700; cursor: pointer; list-style: none; }
.swx-notice-drawer > details > summary::-webkit-details-marker { display: none; }
.swx-notice-drawer > details > div { display: grid; gap: 7px; padding: 0 10px 10px; }
.swx-notice-drawer .notice, .swx-notice-drawer .updated, .swx-notice-drawer .error { margin: 0; box-shadow: none; }
.swx-app-footer { display: flex; justify-content: flex-end; gap: 14px; padding: 18px 0 28px; border-top: 1px solid var(--swx-line-soft); color: var(--swx-ink-muted); font-size: 9px; }
.swx-app-footer a { text-decoration: none; }

@keyframes swx-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes swx-pop { from { opacity: 0; transform: translateY(-4px) scale(.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes swx-pulse { 0%, 100% { opacity: 0; transform: scale(.8); } 50% { opacity: .55; transform: scale(1.35); } }

@media (max-width: 1280px) {
    .swx-builder { grid-template-columns: minmax(560px, 1fr) minmax(390px, .7fr); }
    .swx-dashboard-grid { grid-template-columns: minmax(0, 1fr) 300px; }
    .swx-campaign-table__head, .swx-campaign-row { grid-template-columns: minmax(260px, 1.2fr) 80px minmax(130px, .65fr) 90px 76px; }
    .swx-integration-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1120px) {
    .swx-appbar { grid-template-columns: 1fr auto; }
    .swx-context-nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; margin-bottom: 8px; }
    .swx-help-link { grid-column: 2; grid-row: 1; }
    .swx-pagehead { min-height: 150px; padding-top: 38px; }
    .swx-focus-card { grid-template-columns: 1fr; }
    .swx-signal-funnel { border-top: 1px solid rgba(255, 255, 255, .08); border-left: 0; }
    .swx-builder { grid-template-columns: 1fr; }
    .swx-preview-shell { position: static; }
    .swx-builder__panels { min-height: 0; }
    .swx-dashboard-grid { grid-template-columns: 1fr; }
    .swx-side-card { display: grid; grid-template-columns: repeat(3, 1fr); padding: 10px; }
    .swx-side-card .swx-card-heading { grid-column: 1 / -1; }
    .swx-quick-link { border-top: 1px solid var(--swx-line-soft); }
}

@media (max-width: 960px) {
    .swx-pro-banner { grid-template-columns: 48px minmax(0, 1fr); }
    .swx-pro-banner .swx-button { grid-column: 1 / -1; width: 100%; }
    .swx-stat-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swx-metric:nth-child(2) { border-right: 0; }
    .swx-metric:nth-child(-n+2) { border-bottom: 1px solid var(--swx-line-soft); }
    .swx-campaign-table__head { display: none; }
    .swx-campaign-row { grid-template-columns: minmax(250px, 1fr) 90px 74px; }
    .swx-campaign-row > :nth-child(3), .swx-campaign-row > time { display: none; }
    .swx-settings-layout { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
    .swairishx-screen #wpcontent { padding-left: 0; }
    .swairishx-screen #wpbody-content { min-height: 100vh; }
    .swairishx-admin { width: calc(100% - 24px); }
    .swx-appbar { top: 46px; margin: 0 -12px; padding: 9px 12px; }
    .swx-product small, .swx-help-link span { display: none; }
    .swx-context-nav { width: 100%; justify-content: flex-start; overflow-x: auto; }
    .swx-context-nav a { flex: 0 0 auto; }
    .swx-pagehead { align-items: flex-start; flex-direction: column; min-height: 155px; padding: 32px 0 22px; }
    .swx-pagehead h1 { font-size: 34px; }
    .swx-pagehead .swx-button { width: 100%; }
    .swx-focus-card__copy { padding: 28px 22px; }
    .swx-focus-card h2 { font-size: 32px; }
    .swx-signal-funnel { min-height: 230px; padding: 24px 22px; }
    .swx-focus-card__actions { align-items: flex-start; flex-direction: column; }
    .swx-dashboard-grid, .swx-integration-grid, .swx-settings-layout { grid-template-columns: 1fr; }
    .swx-side-card { display: block; }
    .swx-builder-title { grid-template-columns: 1fr auto; }
    .swx-builder-title > label { display: none; }
    .swx-stepnav { grid-template-columns: repeat(4, 1fr); }
    .swx-stepnav button { display: flex; justify-content: center; min-height: 46px; padding: 6px; }
    .swx-stepnav button > span:nth-child(2), .swx-stepnav button > i { display: none; }
    .swx-panel.is-active { padding: 22px 16px; }
    .swx-type-grid, .swx-offer-preset-grid, .swx-grid-two, .swx-grid-three, .swx-color-row, .swx-theme-grid { grid-template-columns: 1fr; }
    .swx-media-field { grid-template-columns: 104px minmax(0, 1fr); }
    .swx-offer-presets { padding: 14px; }
    .swx-offer-presets legend { align-items: flex-start; flex-direction: column; gap: 3px; }
    .swx-type-card { min-height: 72px; }
    .swx-subsection { grid-template-columns: 1fr; gap: 10px; }
    .swx-builder-actions { align-items: stretch; flex-direction: column; }
    .swx-builder-actions__progress { width: 100%; }
    .swx-builder-actions__buttons { justify-content: space-between; }
    .swx-builder-actions__buttons .swx-button--primary { flex: 1; }
    .swx-preview-stage { min-height: 500px; padding: 18px; }
    .swx-preview-browser { min-height: 410px; }
    .swx-integrations-head { align-items: stretch; flex-direction: column; }
    .swx-integrations-head .swx-search { width: 100%; }
    .swx-campaign-tools { align-items: stretch; flex-direction: column; }
    .swx-campaign-tools .swx-filter-pills { width: fit-content; }
    .swx-campaign-row { grid-template-columns: minmax(0, 1fr) 70px; padding: 12px 16px; }
    .swx-campaign-row > :nth-child(2) { display: none; }
    .swx-campaign-name { grid-template-columns: 38px minmax(0, 1fr); }
    .swx-row__type { width: 36px; height: 36px; }
}

@media (max-width: 520px) {
    .swx-context-nav a span { display: none; }
    .swx-context-nav a { min-width: 42px; justify-content: center; }
    .swx-stat-strip { grid-template-columns: 1fr; }
    .swx-metric { border-right: 0; border-bottom: 1px solid var(--swx-line-soft); }
    .swx-metric:last-child { border-bottom: 0; }
    .swx-preview-stage.is-mobile .swx-preview-browser { width: 250px; }
}

@media (prefers-reduced-motion: reduce) {
    .swairishx-admin *, .swairishx-admin *::before, .swairishx-admin *::after { animation: none !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
