/*
 * Pro Tools lifecycle and Data Studio presentation.
 * Every rule is scoped to Pro Tools or Data Studio surfaces.
 */
.pro-tools-page .pro-lifecycle{margin:0 0 26px;padding:clamp(18px,3vw,28px);border:1px solid var(--color-border);border-radius:18px;background:var(--color-surface);box-shadow:var(--shadow-sm)}
.pro-tools-page .pro-lifecycle-head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:16px}.pro-tools-page .pro-lifecycle-head h2{margin:2px 0 5px;font-size:clamp(24px,3vw,34px)}.pro-tools-page .pro-lifecycle-head p{max-width:720px;margin:0;color:var(--color-text-muted)}
.pro-tools-page .pro-scenarios{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pro-tools-page .pro-scenario{position:relative;display:grid;align-content:start;gap:8px;min-width:0;padding:18px;border:1px solid var(--color-border);border-radius:14px;background:var(--color-surface-muted)}.pro-tools-page .pro-scenario[aria-current="step"]{border-color:#75bd45;background:#efffe5;box-shadow:inset 0 0 0 1px #75bd45}.pro-tools-page .pro-scenario[aria-current="step"]::before{content:"Your route";position:absolute;top:10px;right:10px;padding:4px 8px;border-radius:999px;background:#173528;color:#fff;font-size:10px;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.pro-tools-page .pro-scenario strong{padding-right:68px;font-size:16px}.pro-tools-page .pro-scenario span{color:var(--color-text-muted);font-size:13px}.pro-tools-page .pro-scenario .button{justify-self:start;margin-top:4px}.pro-tools-page .tour-button{white-space:nowrap}.pro-tools-page .pro-summary[data-state="registered"]{background:linear-gradient(145deg,#173528,#285b32)}.pro-tools-page .pro-summary[data-state="onboarded"]{background:linear-gradient(145deg,#07100e,#173528)}
body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour{width:min(620px,calc(100vw - 28px));padding:0;border:0;border-radius:20px;background:#fff;color:#0c1714;box-shadow:0 28px 90px rgba(0,0,0,.35)}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour::backdrop{background:rgba(7,16,14,.66);backdrop-filter:blur(3px)}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour-inner{padding:clamp(22px,5vw,38px)}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour-progress{color:#285b32;font-size:12px;font-weight:850;letter-spacing:.09em;text-transform:uppercase}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour h2{margin:8px 0 10px;font-size:clamp(27px,5vw,40px);line-height:1.04}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour p{color:#536574;font-size:16px;line-height:1.55}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour-actions{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:24px}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour-actions>div{display:flex;gap:8px}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour button,body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour a{min-height:44px}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour .tour-close{background:transparent;color:#405564}
body.pro-module .pattern-tools .studio-lifecycle{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px;align-items:center;margin:16px 0 22px;padding:18px 20px;border:1px solid #75bd45;border-radius:16px;background:linear-gradient(135deg,#efffe5,#fff);color:#0c1714}body.pro-module .pattern-tools .studio-lifecycle h2{margin:3px 0 5px;font-size:clamp(22px,3vw,30px)}body.pro-module .pattern-tools .studio-lifecycle p{max-width:760px;margin:0;color:#536574}body.pro-module .pattern-tools .studio-lifecycle-actions{display:flex;flex-wrap:wrap;justify-content:flex-end;gap:8px}body.pro-module .pattern-tools .studio-lifecycle .button{min-height:42px}body.pro-module .pattern-tools .hero{padding-top:clamp(24px,4vw,52px)}body.pro-module .pattern-tools .preview-stage,body.pro-module .pattern-tools .import-panel,body.pro-module .pattern-tools .pro-studio-sources{min-width:0;max-width:100%;box-sizing:border-box}body.pro-module .pattern-tools .preview-canvas svg{max-width:100%;height:auto;animation:pro-studio-reveal .5s ease both;transform-origin:center}body.pro-module .pattern-tools .viz circle,body.pro-module .pattern-tools .viz rect,body.pro-module .pattern-tools .viz path{transition:opacity .16s ease,filter .16s ease,stroke-width .16s ease}body.pro-module .pattern-tools .viz circle:hover,body.pro-module .pattern-tools .viz circle:focus,body.pro-module .pattern-tools .viz rect:hover,body.pro-module .pattern-tools .viz rect:focus,body.pro-module .pattern-tools .viz path:hover,body.pro-module .pattern-tools .viz path:focus{filter:brightness(1.22);outline:none}body.pro-module .pattern-tools .lab-flow>div{transition:transform .18s ease,border-color .18s ease}body.pro-module .pattern-tools .lab-flow>div:hover{transform:translateY(-2px);border-color:#75bd45}@keyframes pro-studio-reveal{from{opacity:.25;transform:translateY(7px) scale(.992)}to{opacity:1;transform:none}}
@media(max-width:840px){.pro-tools-page .pro-scenarios{grid-template-columns:1fr}.pro-tools-page .pro-lifecycle-head{display:grid}.pro-tools-page .tour-button{justify-self:start}body.pro-module .pattern-tools .studio-lifecycle{grid-template-columns:1fr}body.pro-module .pattern-tools .studio-lifecycle-actions{justify-content:flex-start}}
@media(max-width:620px){.pro-tools-page .pro-lifecycle{padding:16px}.pro-tools-page .pro-scenario{padding:16px}.pro-tools-page .pro-intro .action-row{display:grid;grid-template-columns:1fr;width:100%;gap:8px}.pro-tools-page .pro-intro .action-row :is(.button,button){width:100%;min-width:0;max-width:100%;justify-content:center;white-space:normal}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour-actions,body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour-actions>div{display:grid;grid-template-columns:1fr;width:100%}body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour-actions button,body:where(.pro-tools-page,[data-module="data-studio"]) .pro-tour-actions a{width:100%;justify-content:center}body.pro-module .pattern-tools{width:100%;max-width:100%;padding-inline:14px}body.pro-module .pattern-tools > .lab-nav{position:relative;top:auto;z-index:2;display:flex;width:100%;margin:10px 0 16px;padding:5px;border-radius:14px;scroll-snap-type:x proximity}body.pro-module .pattern-tools > .lab-nav a{scroll-snap-align:start}body.pro-module .pattern-tools .hero{grid-template-columns:1fr;gap:22px}body.pro-module .pattern-tools .hero h1{font-size:clamp(38px,12vw,54px);overflow-wrap:anywhere}body.pro-module .pattern-tools .pro-source-grid,body.pro-module .pattern-tools .viewer-toolbar,body.pro-module .pattern-tools .column-guide{grid-template-columns:1fr}body.pro-module .pattern-tools .import-drop,body.pro-module .pattern-tools .import-drop>div{display:grid;grid-template-columns:1fr;width:100%;min-width:0}body.pro-module .pattern-tools .import-drop .button{width:100%;white-space:normal}body.pro-module .pattern-tools .preview-stage{padding:16px;border-radius:20px}body.pro-module .pattern-tools .preview-top{align-items:flex-start;flex-wrap:wrap}}
@media(prefers-reduced-motion:reduce){body.pro-module .pattern-tools .preview-canvas svg{animation:none}body.pro-module .pattern-tools .viz *,body.pro-module .pattern-tools .lab-flow>div{transition:none}}
body.pro-module .pattern-tools .pro-advanced-note{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center}body.pro-module .pattern-tools .pro-advanced-copy{display:grid;gap:4px;min-width:0}body.pro-module .pattern-tools .pro-advanced-copy strong{color:var(--pt-lime)}body.pro-module .pattern-tools .pro-advanced-copy span{color:#d6e4dc;font-size:13px;line-height:1.45}body.pro-module .pattern-tools .pro-advanced-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-end;min-width:0}body.pro-module .pattern-tools .pro-advanced-actions .button{min-height:38px;padding:8px 12px;border-color:rgba(255,255,255,.34);background:rgba(255,255,255,.08);color:#fff;white-space:nowrap}body.pro-module .pattern-tools .pro-advanced-actions .button:hover,body.pro-module .pattern-tools .pro-advanced-actions .button:focus-visible{border-color:var(--pt-lime);background:var(--pt-lime);color:var(--pt-ink)}
@media(max-width:700px){body.pro-module .pattern-tools .pro-advanced-note{display:flex;flex-direction:column;align-items:stretch;gap:14px}body.pro-module .pattern-tools .pro-advanced-copy{width:100%}body.pro-module .pattern-tools .pro-advanced-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;justify-content:stretch;gap:8px}body.pro-module .pattern-tools .pro-advanced-actions .button{display:flex;width:100%;min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere;text-align:center}}
@media(max-width:430px){body.pro-module .pattern-tools .pro-advanced-actions{grid-template-columns:1fr}}
body.pro-module .pattern-tools :is(.tool-card,.story-card,.pro-source-card,.data-readiness,.viewer-panel){min-width:0;max-width:100%;box-sizing:border-box}body.pro-module .pattern-tools :is(.tool-grid,.story-grid,.pro-source-grid,.viewer-toolbar){min-width:0;max-width:100%}body.pro-module .pattern-tools .button{max-width:100%}body.pro-module .pattern-tools :is(h1,h2,h3,p,span,strong,label){overflow-wrap:break-word}body[data-module="data-studio"] .pattern-tools .data-tooltip{box-sizing:border-box;max-width:min(260px,calc(100vw - 24px))}
/* Keep native lens controls reliably tappable; decorative preview layers never receive input. */
body.pro-module .pattern-tools .preview-stage::before{pointer-events:none}body.pro-module .pattern-tools .preview-tabs{position:relative;z-index:5;pointer-events:auto}body.pro-module .pattern-tools .preview-tabs button{position:relative;z-index:1;pointer-events:auto;touch-action:manipulation}
@media(max-width:620px){body.pro-module .pattern-tools .section{min-width:0;overflow:visible}body.pro-module .pattern-tools .tool-card,body.pro-module .pattern-tools .story-card,body.pro-module .pattern-tools .pro-source-card{padding-left:clamp(16px,5vw,24px);padding-right:clamp(16px,5vw,24px)}body.pro-module .pattern-tools .viewer-lenses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%;max-width:100%;gap:7px;overflow:visible;overscroll-behavior:auto}body.pro-module .pattern-tools .viewer-lenses>*{width:100%;min-width:0;max-width:100%;white-space:normal;touch-action:manipulation}body.pro-module .pattern-tools .story-card .bar-row{min-width:0;grid-template-columns:minmax(72px,.8fr) minmax(64px,2fr) auto;gap:7px}body.pro-module .pattern-tools .story-card .bar-row>*{min-width:0}}
@media(max-width:360px){body.pro-module .pattern-tools .viewer-lenses{grid-template-columns:1fr}}

/* The mobile Data Studio must not keep a navigation bar over the charts. */
@media(max-width:760px){
  body.guided-workspace[data-module="data-studio"] .section-navigation{position:static;top:auto;z-index:auto}
  body[data-module="data-studio"] .pattern-tools #preview-canvas,
  body[data-module="data-studio"] .pattern-tools #full-canvas{overflow:hidden}
}

/* Sources are workspace controls, not a marketing hero. Keep their sizing
   independent of shared section typography and mobile section spacing. */
body.pro-module .pattern-tools #studio-sources {
  padding: clamp(16px, 2vw, 24px);
  scroll-margin-top: 96px;
}
body.pro-module .pattern-tools #studio-sources .section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: start;
  gap: 20px;
}
body.pro-module .pattern-tools #studio-sources .section-head > * { min-width: 0; }
body.pro-module .pattern-tools #studio-sources .section-head h2 {
  margin: 6px 0 16px;
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.15;
  letter-spacing: -.025em;
}
body.pro-module .pattern-tools #studio-sources .section-head p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}
body.pro-module .pattern-tools #studio-sources .button {
  min-height: 44px;
  height: auto;
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  text-align: center;
  font-size: 14px;
  line-height: 1.4;
}
body.pro-module .pattern-tools #studio-sources .ga4-property select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 44px;
  color-scheme: light;
}
body.pro-module .pattern-tools #studio-sources .pro-source-status:empty { display: none; }
@media (max-width: 900px) {
  body.pro-module .pattern-tools #studio-sources .section-head { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}

/* Story/KPI cards are light surfaces nested inside the dark import panel.
   Reset the shared dark-surface foreground contract so copy stays readable. */
body[data-module="data-studio"] .pattern-tools .import-panel.ac-surface-dark :is(.story-card,.story-kpi){
  background:#fff;
  color:var(--pt-ink)!important;
}
body[data-module="data-studio"] .pattern-tools .import-panel.ac-surface-dark .story-card :is(h1,h2,h3,strong,label),
body[data-module="data-studio"] .pattern-tools .import-panel.ac-surface-dark .story-kpi :is(strong,label){
  color:var(--pt-ink)!important;
}
body[data-module="data-studio"] .pattern-tools .import-panel.ac-surface-dark .story-card :is(p,small,.muted,.small,.hint,.help),
body[data-module="data-studio"] .pattern-tools .import-panel.ac-surface-dark .story-kpi :is(span,small,.muted,.small){
  color:#536574!important;
}
body[data-module="data-studio"] .pattern-tools .import-panel.ac-surface-dark .story-card :is(.eyebrow,.ac-eyebrow,.ac-kicker){
  color:var(--pt-blue)!important;
}


/* Only the signed-in Studio receives these layout rules. */
body.pro-module .pattern-tools .studio-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 20px}
body.pro-module .pattern-tools .studio-header h1{margin:5px 0;font-size:clamp(28px,4vw,40px);letter-spacing:-.035em;line-height:1.15}
body.pro-module .pattern-tools .studio-header p{margin:0;color:var(--muted,#536574);max-width:640px}
body.pro-module .pattern-tools.studio-organised > :is(.hero,.lab-nav){display:none}
body.pro-module .pattern-tools .studio-area-nav{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;padding:6px;border:1px solid var(--line,#d8e1e7);border-radius:14px;background:var(--surface,#fff);margin:0 0 24px}
body.pro-module .pattern-tools .studio-area-nav a{display:flex;align-items:center;justify-content:center;min-height:44px;padding:10px 8px;border-radius:9px;text-align:center;font-size:14px;font-weight:700;text-decoration:none;background:#fff;color:var(--pt-ink);line-height:1.3}
body.pro-module .pattern-tools .studio-area-nav a:is(:hover,:focus-visible){background:var(--pt-lime);color:var(--pt-ink)}
body.pro-module .pattern-tools .studio-area-nav a[aria-current]{background:var(--pt-ink);color:#fff}
body.pro-module .pattern-tools .studio-area-nav a:focus-visible{outline:3px solid #285b32;outline-offset:2px}
body.pro-module .pattern-tools .studio-work-area{min-width:0;scroll-margin-top:100px}
body.pro-module .pattern-tools .studio-work-area[hidden]{display:none}
body.pro-module .pattern-tools .studio-work-area > h2{margin:0;font-size:24px;line-height:1.25}
body.pro-module .pattern-tools .studio-area-copy{margin:8px 0 20px;color:var(--muted,#536574);max-width:720px}
body.pro-module .pattern-tools .studio-work-area > .section{padding:20px 0}
body.pro-module .pattern-tools .studio-work-area .section-head{gap:16px;align-items:start;margin-bottom:18px}
body.pro-module .pattern-tools .studio-work-area .section-head h2{font-size:clamp(22px,3vw,28px);line-height:1.2}
body.pro-module .pattern-tools .studio-work-area .section-head p{font-size:14px;line-height:1.5}
body.pro-module .pattern-tools .studio-work-area :is(.import-head h2,.pro-preview h2){font-size:26px;line-height:1.2}
body.pro-module .pattern-tools .studio-work-area .import-head p{font-size:14px}
body.pro-module .pattern-tools .studio-field-guide{margin:18px 0;border:1px solid var(--line,#d8e1e7);border-radius:12px;padding:0 16px;background:#fff;color:var(--pt-ink)}
body.pro-module .pattern-tools .studio-field-guide > summary{min-height:44px;padding:12px 0;cursor:pointer;font-weight:700}
body.pro-module .pattern-tools .studio-field-guide .section{padding:12px 0 20px}
body.pro-module .pattern-tools .studio-report-surface{padding:clamp(16px,3vw,28px)}
body.pro-module .pattern-tools .studio-report-surface:has(> [hidden]):not(:has(> :not([hidden]))){display:none}
body.pro-module .pattern-tools .studio-report-surface > .ga4-import-controls{display:block}
body.pro-module .pattern-tools .studio-report-surface > .ga4-import-controls[hidden]{display:none}
body.pro-module .pattern-tools .studio-work-area .tool-card{min-height:0;padding:22px}
body.pro-module .pattern-tools .studio-work-area .tool-card h3{font-size:23px}
body.pro-module .pattern-tools .studio-work-area .tool-card .mini-viz{display:none}
body.pro-module .pattern-tools .studio-work-area .tool-card p{font-size:14px}
body.pro-module .pattern-tools .studio-work-area .pro-studio-sources{padding:22px}
body.pro-module .pattern-tools .studio-header .button{white-space:normal;text-align:center}
@media(max-width:840px){body.pro-module .pattern-tools .studio-area-nav{grid-template-columns:repeat(3,minmax(0,1fr))}body.pro-module .pattern-tools .studio-work-area .section-head{grid-template-columns:1fr}}
@media(max-width:560px){body.pro-module .pattern-tools .studio-header{display:grid;gap:12px}body.pro-module .pattern-tools .studio-header .button{justify-self:start}body.pro-module .pattern-tools .studio-area-nav{gap:4px;padding:4px}body.pro-module .pattern-tools .studio-area-nav a{font-size:12px;padding:9px 5px}body.pro-module .pattern-tools .studio-work-area .import-panel{padding:16px;border-radius:16px}body.pro-module .pattern-tools .studio-work-area .pro-studio-sources{padding:16px}}

body.pro-module .pattern-tools.studio-organised .acx-hero{padding:18px;border-radius:14px;grid-template-columns:minmax(0,1fr) minmax(220px,.5fr)}
body.pro-module .pattern-tools.studio-organised .acx-hero h3{margin:6px 0;font-size:23px;line-height:1.2}
body.pro-module .pattern-tools.studio-organised .acx-hero p{font-size:14px}
body.pro-module .pattern-tools.studio-organised .acx-source-switch{margin:16px 0}
body.pro-module .pattern-tools.studio-organised > .studio-header{display:flex;min-height:0;padding:20px;border:1px solid #d8e1e7;border-radius:14px;background:#fff;color:var(--pt-ink);box-shadow:none}
body.pro-module .pattern-tools.studio-organised .studio-header :is(h1,h2,p,.eyebrow){color:var(--pt-ink)}
body.pro-module .pattern-tools.studio-organised .studio-header p{color:#536574}
body.pro-module .pattern-tools.studio-organised .studio-header .eyebrow{color:#285b32}
@media(max-width:560px){body.pro-module .pattern-tools.studio-organised > .studio-header{display:grid;padding:16px}}
@media(max-width:700px){body.pro-module .pattern-tools.studio-organised .acx-hero{grid-template-columns:1fr}}
@media(max-width:560px){body.pro-module .pattern-tools.studio-organised .acx-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:visible}body.pro-module .pattern-tools.studio-organised .acx-tab{width:100%;min-width:0;min-height:44px;padding:8px 4px;white-space:normal}}

body.pro-module .pattern-tools.studio-organised #viewer .studio-field-guide.ac-surface-dark{background:var(--pt-ink);color:#fff;border-color:rgba(255,255,255,.25)}
body.pro-module .pattern-tools.studio-organised #viewer .studio-field-guide.ac-surface-dark > summary{color:#fff}
body.pro-module .pattern-tools.studio-organised .studio-field-guide > .dataset-summary{margin:0 0 16px}
body.pro-module .pattern-tools.studio-organised .studio-field-guide > .studio-lifecycle{margin:0 0 16px}
