/* v0.6.60 — scoped native Integrations and Websites chrome. Presentation only;
 * do not hide or rearrange permission/consent controls or change provider states. */
#appShell[data-theme] #integrationsView.re498-integrations {
  --re500-canvas:var(--ruction-surface-base);--re500-panel:var(--ruction-surface-card);--re500-panel-alt:var(--ruction-surface-raised);
  --re500-ink:var(--ruction-text-primary);--re500-muted:var(--ruction-text-muted);--re500-border:var(--ruction-border);
  --re500-teal:var(--ruction-elements-teal);--re500-blue:var(--ruction-action);--re500-green:var(--ruction-success);
  --re500-warning:var(--ruction-attention);--re500-danger:var(--ruction-error);
  --re498-teal:var(--ruction-interactive-ink);--re498-green:var(--ruction-success);--re498-danger:var(--ruction-attention);
}
#appShell #integrationsView .re498-canvas {gap:16px;container-type:inline-size}
#appShell #integrationsView :is(.re498-kicker,.re498-eyebrow,.re500-dialog-kicker) {color:var(--ruction-interactive-ink)!important}
#appShell #integrationsView .re498-hero h2 {--ruction-body-size:clamp(25px,2.5vw,35px)}
#appShell #integrationsView .re498-group-head h3 {--ruction-body-size:19px}
#appShell #integrationsView .re498-toolbar h3 {--ruction-body-size:21px}
#appShell #integrationsView :is(.re498-gauge strong,.re498-stat strong,.re498-band-number) {font-variant-numeric:tabular-nums}
#appShell #integrationsView .re498-gauge strong {--ruction-body-size:clamp(23px,2.5vw,30px)}
#appShell #integrationsView .re498-stat strong {--ruction-body-size:22px;line-height:1.2}
#appShell #integrationsView .re498-stat small {--ruction-body-size:12px;white-space:normal;overflow-wrap:anywhere;line-height:1.3}
#appShell #integrationsView .re500-ring-progress {stroke:var(--ruction-success)}
#appShell #integrationsView .re498-tabs {flex-wrap:wrap!important;overflow:visible!important;justify-content:flex-start!important;gap:5px!important}
#appShell #integrationsView .re498-tabs button {min-height:38px;white-space:normal;flex:0 1 auto;line-height:1.25}
#appShell #integrationsView .re498-tabs button:is(.is-active,:hover),#appShell #integrationsView .re498-filter-row button[aria-pressed=true] {background:var(--ruction-action)!important;color:var(--ruction-action-text)!important;border-color:var(--ruction-action)!important}
#appShell #integrationsView .re498-search:focus-within {outline:2px solid var(--ruction-interactive-ink);outline-offset:2px}
#appShell #integrationsView .re498-toolbar {align-items:flex-end;flex-wrap:wrap}
#appShell #integrationsView .re498-toolbar-tools {min-width:0;max-width:100%;align-items:center}
#appShell #integrationsView .re498-search {min-width:min(205px,100%);max-width:100%;flex:1 1 180px}
#appShell #integrationsView .re498-provider-list {container-type:inline-size;box-sizing:border-box;min-width:0}
#appShell #integrationsView .re498-provider {
  grid-template-columns:56px minmax(0,1.35fr) minmax(0,.72fr) minmax(0,1.05fr) 48px 40px!important;
  gap:12px!important;min-width:0;
}
#appShell #integrationsView .re498-provider>* {min-width:0;box-sizing:border-box}
#appShell #integrationsView .re498-provider-main strong {--ruction-body-size:14px;overflow-wrap:anywhere;line-height:1.35}
#appShell #integrationsView :is(.re498-provider-main p,.re498-provider-detail) {--ruction-body-size:12px;line-height:1.45;overflow-wrap:anywhere}
#appShell #integrationsView .re498-badge {--ruction-body-size:12px;line-height:1.25;white-space:normal;overflow-wrap:anywhere;text-align:center}
#appShell #integrationsView .re498-provider[data-re498-state=review] .re498-badge {color:var(--ruction-attention)!important;border-color:var(--ruction-attention)!important;background:var(--ruction-surface-raised)!important}
#appShell #integrationsView .re498-provider[data-re498-state=paused] .re498-badge {color:var(--ruction-text-muted)!important;border-style:dashed!important}
#appShell #integrationsView .re498-provider[data-re498-state=connected]:before {background:var(--ruction-success)!important}
#appShell #integrationsView .re498-provider[data-re498-state=review]:before {background:var(--ruction-attention)!important;opacity:1}
/* A switch represents the saved control state, not the verification badge.
 * In particular saved Ads and AI consent can be enabled while under review. */
#appShell #integrationsView .re498-provider .re498-switch {box-sizing:border-box;width:48px!important;min-width:48px!important;height:28px!important;padding:3px!important;justify-self:end}
#appShell #integrationsView .re498-provider .re498-switch span {box-sizing:border-box;width:18px!important;height:18px!important;border:1px solid #34383d;transform:translateX(0)!important}
#appShell #integrationsView .re498-provider .re498-switch[aria-checked=true] {background:var(--ruction-success)!important;border-color:var(--ruction-success)!important;background-image:none!important}
#appShell #integrationsView #re566AIRow #re566AISwitch[aria-checked=true] {background:var(--ruction-success)!important;border-color:var(--ruction-success)!important;background-image:none!important}
#appShell #integrationsView .re498-provider .re498-switch[aria-checked=true] span {transform:translateX(22px)!important}
#appShell #integrationsView .re498-provider .re498-switch[aria-checked=false] span {transform:translateX(0)!important}
#appShell #integrationsView .re498-switch[aria-busy=true] {cursor:wait!important}
#appShell #integrationsView .re498-switch[aria-disabled=true] {cursor:not-allowed!important}
#appShell #integrationsView .re566-ai-controls {padding:13px 15px 15px;gap:9px}
#appShell #integrationsView .re566-ai-controls label {color:var(--ruction-text-primary);line-height:1.5;overflow-wrap:anywhere}
#appShell #integrationsView .re566-ai-footnote {color:var(--ruction-text-muted);line-height:1.5}
#appShell #integrationsView .re559-acceptance-actions select {max-width:100%;min-width:0}
#appShell #integrationsView :is(button,input,select,textarea,summary):focus-visible {outline:2px solid var(--ruction-interactive-ink)!important;outline-offset:2px}
@container(max-width:800px) {
  #appShell #integrationsView .re498-provider {grid-template-columns:54px minmax(0,1fr) minmax(0,.85fr) 48px 40px!important;gap:8px 10px!important}
  #appShell #integrationsView .re498-provider .re498-brand {grid-column:1;grid-row:1/3;align-self:start;width:54px!important;height:54px!important}
  #appShell #integrationsView .re498-provider .re498-provider-main {grid-column:2;grid-row:1}
  #appShell #integrationsView .re498-provider .re498-badge {grid-column:3;grid-row:1;justify-self:start}
  #appShell #integrationsView .re498-provider .re498-provider-detail {grid-column:2/4;grid-row:2!important;border-left:0;padding:0!important}
  #appShell #integrationsView .re498-provider .re498-switch {grid-column:4;grid-row:1/3;align-self:center}
  #appShell #integrationsView .re498-provider .re498-more {grid-column:5;grid-row:1/3;align-self:center}
}
@container(max-width:490px) {
  #appShell #integrationsView .re498-provider {grid-template-columns:46px minmax(0,1fr) 48px 40px!important;gap:7px 9px!important;padding:12px 5px 12px 8px!important}
  #appShell #integrationsView .re498-provider .re498-brand {grid-column:1;grid-row:1/3;align-self:start;width:46px!important;height:46px!important}
  #appShell #integrationsView .re498-provider .re498-provider-main {grid-column:2/-1;grid-row:1}
  #appShell #integrationsView .re498-provider .re498-badge {grid-column:2;grid-row:2;justify-self:start}
  #appShell #integrationsView .re498-provider .re498-provider-detail {grid-column:2/-1;grid-row:3!important}
  #appShell #integrationsView .re498-provider .re498-switch {grid-column:3;grid-row:2;align-self:center}
  #appShell #integrationsView .re498-provider .re498-more {grid-column:4;grid-row:2;align-self:center}
}
@container(max-width:340px) {
  #appShell #integrationsView .re498-provider {grid-template-columns:48px minmax(0,1fr)!important;gap:7px 10px!important}
  #appShell #integrationsView .re498-provider .re498-provider-main {grid-column:2;grid-row:1}
  #appShell #integrationsView .re498-provider .re498-badge {grid-column:2;grid-row:2}
  #appShell #integrationsView .re498-provider .re498-provider-detail {grid-column:1/-1;grid-row:3!important}
  #appShell #integrationsView .re498-provider .re498-switch {grid-column:1;grid-row:4;justify-self:start}
  #appShell #integrationsView .re498-provider .re498-more {grid-column:2;grid-row:4;justify-self:start}
}
@container(max-width:690px) {
  #appShell #integrationsView .re498-overview {grid-template-columns:110px minmax(0,1fr)!important;gap:12px!important;padding:14px!important}
  #appShell #integrationsView .re498-stats {grid-column:1/-1!important;padding:12px 0 0!important;border-left:0!important;border-top:1px solid var(--ruction-border)!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  #appShell #integrationsView .re498-toolbar-tools {width:100%}
  #appShell #integrationsView .re498-tabs button {flex:1 1 120px;justify-content:center}
}
@container(max-width:380px) {
  #appShell #integrationsView .re498-overview {grid-template-columns:minmax(0,1fr)!important;justify-items:center}
  #appShell #integrationsView .re498-progress-copy,#appShell #integrationsView .re498-stats {width:100%}
  #appShell #integrationsView .re498-provider-list {padding-left:17px!important;padding-right:8px!important}
}

/* Existing modal body remains the only normal vertical scroll region. The
 * short-screen fallback permits the entire dialog to scroll if chrome fills it. */
#appShell #integrationsView .re500-dialog {box-sizing:border-box;max-height:min(90dvh,900px)!important;max-width:calc(100vw - 24px)!important}
#appShell #integrationsView .re500-dialog-shell {max-height:min(90dvh,900px)}
#appShell #integrationsView .re500-dialog-identity h2 {--ruction-body-size:clamp(18px,2vw,24px);overflow-wrap:anywhere;line-height:1.25}
#appShell #integrationsView .re500-dialog-identity>div {min-width:0}
#appShell #integrationsView .re500-dialog-summary strong {--ruction-body-size:13px;line-height:1.4}
#appShell #integrationsView .re500-dialog-body :is(p,small,label) {overflow-wrap:anywhere;line-height:1.5}
#appShell #integrationsView .re500-dialog-body :is(#disconnectGoogle,#adsDisconnect,.woo-danger) {background:var(--ruction-surface-card)!important;color:var(--ruction-error)!important;border-color:var(--ruction-error)!important}
#appShell #integrationsView .re500-dialog-done {min-height:40px;background:var(--ruction-action)!important;border-color:var(--ruction-action)!important}
#appShell #integrationsView .re500-dialog-done:hover {background:var(--ruction-action-hover)!important}
@media(max-width:420px) {
  #appShell #integrationsView .re500-dialog-summary {grid-template-columns:minmax(0,1fr)!important}
  #appShell #integrationsView .re500-dialog-icon {width:42px;height:42px}
  #appShell #integrationsView .re500-dialog-done {width:100%}
}
@media(max-height:560px) {
  #appShell #integrationsView .re500-dialog {overflow:auto!important;overscroll-behavior:contain}
  #appShell #integrationsView .re500-dialog-shell {max-height:none;overflow:visible}
  #appShell #integrationsView .re500-dialog-body {overflow:visible;flex:none}
}

/* Website settings retain site-scoped objectives and existing controls. */
#appShell #websitesView .site-cards {grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:14px}
#appShell #websitesView .site-card {background:var(--ruction-surface-card)!important;border-color:var(--ruction-border)!important;min-width:0;padding:17px;min-height:0}
#appShell #websitesView .site-card>svg {color:var(--ruction-interactive-ink);background:var(--ruction-surface-raised)}
#appShell #websitesView .site-card>strong {--ruction-body-size:18px;color:var(--ruction-text-primary)!important;overflow-wrap:anywhere}
#appShell #websitesView .site-address {color:var(--ruction-text-muted)!important;overflow-wrap:anywhere;word-break:break-word;line-height:1.45}
#appShell #websitesView .v09-kpi strong {--ruction-body-size:clamp(19px,2vw,25px);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
#appShell #websitesView .re398-objective-form {border-color:var(--ruction-border);gap:11px}
#appShell #websitesView .re398-objective-form h3 {--ruction-body-size:15px;color:var(--ruction-text-primary)}
#appShell #websitesView .re398-select-label {color:var(--ruction-text-muted);line-height:1.4}
#appShell #websitesView .re398-select-label select {background:var(--ruction-surface-raised);border-color:var(--ruction-border);color:var(--ruction-text-primary);min-height:40px}
#appShell #websitesView .re399-revenue-control {background:var(--ruction-surface-raised);border:1px solid var(--ruction-border);border-radius:8px;padding:10px;line-height:1.5}
#appShell #websitesView .re399-revenue-control input {accent-color:var(--ruction-action)}
#appShell #websitesView .re399-revenue-note {color:var(--ruction-text-muted);line-height:1.5}
#appShell #websitesView .re398-objective-status {padding:9px 11px;line-height:1.5;border:1px solid var(--ruction-border);border-radius:8px;background:var(--ruction-surface-raised);color:var(--ruction-text-muted)}
#appShell #websitesView .re398-objective-status[data-re660-state=saved] {border-left:3px solid var(--ruction-success);color:var(--ruction-text-primary)}
#appShell #websitesView .re398-objective-status:is([data-re660-state=unsaved],[data-re660-state=unconfigured]) {border-left:3px solid var(--ruction-attention);color:var(--ruction-text-primary)}
#appShell #websitesView .re398-objective-status[data-re660-state=error] {border-left:3px solid var(--ruction-error);color:var(--ruction-text-primary)}
#appShell #websitesView .re399-save {background:var(--ruction-action)!important;color:var(--ruction-action-text)!important;border-color:var(--ruction-action)!important;min-height:40px}
#appShell #websitesView .re399-save:hover:not(:disabled) {background:var(--ruction-action-hover)!important}
#appShell #websitesView :is(button,input,select):focus-visible {outline:2px solid var(--ruction-interactive-ink);outline-offset:2px}
/* Body-mounted Add Website dialog derives the shell theme; values/handlers unchanged. */
body:has(#appShell) #addWebsiteDialog {--re660-card:#1C1F22;--re660-raised:#24282C;--re660-ink:#F4F6F7;--re660-muted:#ADB4BB;--re660-line:#393D42;--re660-error:#F47474;--re660-focus:#56D2FF}
body:has(#appShell[data-theme=light]) #addWebsiteDialog {--re660-card:#FFFFFF;--re660-raised:#EEF0F2;--re660-ink:#202328;--re660-muted:#58626D;--re660-line:#D8DCDF;--re660-error:#B8323D;--re660-focus:#006D94}
body:has(#appShell) #addWebsiteDialog {box-sizing:border-box;width:min(460px,calc(100vw - 24px));max-height:90dvh;overflow:auto;margin:auto;background:var(--re660-card);color:var(--re660-ink);border:1px solid var(--re660-line);border-radius:12px;padding:20px}
#addWebsiteDialog #newWebsiteForm :is(h2,label) {color:var(--re660-ink)}
#addWebsiteDialog #newWebsiteForm p {color:var(--re660-muted);line-height:1.5}
#addWebsiteDialog #newWebsiteForm :is(input,select) {min-width:0;box-sizing:border-box;background:var(--re660-raised);color:var(--re660-ink);border-color:var(--re660-line);min-height:40px}
#addWebsiteDialog #newWebsiteForm #newWebsiteError {color:var(--re660-error)}
#addWebsiteDialog #newWebsiteForm #newWebsiteCancel {background:var(--re660-raised);color:var(--re660-ink);border-color:var(--re660-line)}
#addWebsiteDialog #newWebsiteForm #newWebsiteSave {background:#0678A8;color:#fff;border-color:#0678A8;min-height:40px}
#addWebsiteDialog #newWebsiteForm :is(button,input,select):focus-visible {outline:2px solid var(--re660-focus);outline-offset:2px}
@media(max-width:420px) {#addWebsiteDialog #newWebsiteForm .new-website-actions {gap:8px}#addWebsiteDialog #newWebsiteForm .new-website-actions button {flex:1 1 auto}#addWebsiteDialog #newWebsiteCancel {margin-left:0}}
@media(prefers-reduced-motion:reduce) {#appShell #integrationsView :is(.re498-switch,.re498-switch span) {transition:none!important}}
