/* Account summary and the approved secondary settings screen share kit tokens. */
.marketing-summary { margin-bottom:32px; }
.marketing-summary-link { width:100%; min-height:64px; text-decoration:none; color:var(--text-primary); gap:16px; }
.marketing-summary-link .account-item-left { min-width:0; }
.marketing-summary-link .account-item-text { overflow-wrap:anywhere; }
.marketing-summary-icon { width:24px; height:24px; display:block; background-color:var(--primary-color); -webkit-mask:url('icons/marketing-bell.svg') center / contain no-repeat; mask:url('icons/marketing-bell.svg') center / contain no-repeat; }
.marketing-summary-link:focus-visible, .marketing-settings-back:focus-visible { outline:2px solid var(--primary-color); outline-offset:3px; }
.marketing-page-header { padding:24px 16px 0; background:transparent; }
.marketing-page-header .account-title { overflow-wrap:break-word; }
.marketing-page-header .marketing-settings-back:not([hidden]) { margin-bottom:8px; }
.marketing-preferences[data-view="settings"] { padding-top:0; }
.marketing-settings-back { flex:none; width:44px; height:44px; display:flex; align-items:center; justify-content:center; color:var(--primary-color); }
.marketing-settings-back[hidden] { display:none; }
.marketing-settings-back svg { width:10px; height:18px; transform:rotate(180deg); }
.marketing-preferences { padding:24px 16px calc(28px + env(safe-area-inset-bottom)); color:var(--text-primary); }
.marketing-preferences[hidden] { display:none; }
.marketing-preferences p { margin:0 0 12px; }
.marketing-preference-status { font-size:17px; line-height:23px; font-weight:600; }
.marketing-preference-status:empty { display:none; }
.marketing-settings-description { font-size:14px; line-height:21px; color:var(--text-secondary); margin-bottom:24px !important; }
.marketing-settings-label { font-size:13px; line-height:18px; font-weight:400; color:var(--text-secondary); margin:24px 2px 10px; }
.marketing-settings-options { padding:0 16px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-primary); }
.marketing-interest-option { display:flex; align-items:center; justify-content:space-between; gap:14px; min-height:56px; padding:14px 0; font-size:16px; line-height:22px; cursor:pointer; }
.marketing-interest-option + .marketing-interest-option { border-top:1px solid var(--border-color); }
.marketing-interest-option span { flex:1; min-width:0; }
.marketing-interest-option input { appearance:none; -webkit-appearance:none; width:22px; height:22px; flex:none; margin:0; border:1.5px solid var(--text-secondary); border-radius:5px; background:var(--bg-primary); }
.marketing-interest-option input:checked { border-color:var(--primary-color); background-color:var(--primary-color); background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m4 10 4 4 8-8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.marketing-interest-option input:focus-visible { outline:2px solid var(--primary-color); outline-offset:3px; }
.marketing-settings-hint { font-size:13px; line-height:19px; color:var(--text-secondary); margin:8px 2px 24px !important; }
.marketing-settings-language { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:58px; margin-top:24px; padding:8px 16px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-primary); font-size:16px; line-height:22px; }
.marketing-settings-language span { min-width:0; }
.marketing-settings-language select { min-height:44px; max-width:52%; font:inherit; font-size:16px; color:var(--primary-color); background:transparent; border:0; }
.marketing-settings-action, .marketing-topics-retry { display:block; width:100%; min-height:48px; margin:24px 0 0; padding:12px 16px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-primary); color:var(--primary-color); font:inherit; font-size:16px; line-height:22px; cursor:pointer; }
.marketing-preferences .marketing-subscribe-action { background:var(--primary-color); border-color:var(--primary-color); color:var(--esd-color-text-inverse); }
.marketing-settings-action:focus-visible, .marketing-topics-retry:focus-visible, .marketing-settings-language select:focus-visible { outline:2px solid var(--primary-color); outline-offset:3px; }
.marketing-preferences button:disabled, .marketing-preferences select:disabled { opacity:.65; cursor:default; }
.marketing-preferences[aria-busy=true] .marketing-interest-option { cursor:wait; }
.marketing-service-note { margin:18px 2px 0 !important; font-size:13px; line-height:19px; color:var(--text-secondary); }
.marketing-dev-auth-diagnostic { font-size:12px; line-height:18px; overflow-wrap:anywhere; color:var(--text-secondary); }
@media (forced-colors:active) { .marketing-interest-option input { appearance:auto; -webkit-appearance:auto; background-image:none; } }

.marketing-subscription-row { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:64px; padding:12px 16px; border:1px solid var(--border-color); border-radius:12px; background:var(--bg-primary); font-size:16px; line-height:22px; cursor:pointer; }
.marketing-subscription-row span { flex:1; min-width:0; }
.marketing-subscription-toggle { appearance:none; -webkit-appearance:none; flex:none; width:50px; height:30px; margin:7px 0; border:1px solid var(--text-secondary); border-radius:16px; background:var(--text-secondary); position:relative; cursor:pointer; }
.marketing-subscription-toggle::after { content:""; position:absolute; width:24px; height:24px; top:2px; left:2px; border-radius:50%; background:var(--bg-primary); }
.marketing-subscription-toggle:checked { background:var(--primary-color); border-color:var(--primary-color); }
.marketing-subscription-toggle:checked::after { left:22px; }
.marketing-subscription-toggle:focus-visible { outline:2px solid var(--primary-color); outline-offset:3px; }
.marketing-subscription-toggle:disabled { opacity:.65; cursor:wait; }
@media (forced-colors:active) { .marketing-subscription-toggle { appearance:auto; -webkit-appearance:auto; } .marketing-subscription-toggle::after { display:none; } }

/* Initial settings placeholders reuse the shared skeleton palette and motion. */
.marketing-settings-skeleton { gap:24px; }
.marketing-settings-skeleton .ui-skeleton-line { max-width:70%; }
.marketing-settings-skeleton .ui-skeleton-badge { flex:none; }
.marketing-settings-skeleton .marketing-skeleton-toggle { width:50px; height:30px; border-radius:16px; }
.marketing-settings-skeleton .marketing-skeleton-checkbox { width:22px; height:22px; border-radius:5px; }
.marketing-settings-skeleton .marketing-interest-option { cursor:default; }
