/* Task-specific mini-app studio; inherits the site's type, palette and buttons. */
body:has(.studio) main.container{width:min(1320px,calc(100% - 40px))}
body:has(.studio) .page-hero,body:has(.tool-directory) .page-hero{padding:28px 0 20px}
body:has(.studio) .page-hero h1,body:has(.tool-directory) .page-hero h1{font-size:clamp(1.9rem,3.2vw,3rem);max-width:1000px;margin-bottom:12px}
body:has(.studio) .page-hero .lead,body:has(.tool-directory) .page-hero .lead{font-size:1rem;max-width:880px}
body:has(.tool-directory) .tool-index-banner{padding:26px 34px}
body:has(.tool-directory) .tool-index-banner h2{margin:12px 0;font-size:2rem}
body:has(.tool-directory) .tool-index-stat strong{font-size:4.5rem}
.studio input,.studio textarea,.studio select{font-family:inherit}
.studio .app-field input,.studio .app-field select,.studio .app-field textarea{max-width:none;margin:0}
.timeline-item{position:relative}
.timeline-item:not(:last-child)::before{content:'';position:absolute;left:9px;top:24px;bottom:-24px;width:2px;background:#d4c9e7}
.timeline-item .timeline-marker::after{display:none}
.timeline-card h3{margin:0 0 7px;font-size:.86rem;line-height:1.35;letter-spacing:-.015em}
.sales-section-hero .sales-section-copy{font-size:1.65rem!important;line-height:1.3;color:#284878}
.sales-section-link[aria-current=location]{background:#eff3fa;color:#284878;font-weight:750}
.directory-illustration .tool-icon{margin:0}
@media(max-width:780px){body:has(.studio) main.container{width:calc(100% - 28px)}.app-field input,.app-field textarea,.app-field select,.studio .email-editable,.studio .email-subject{font-size:16px!important}}
@media(max-width:420px){body:has(.tool-directory) .tool-index-banner{padding:24px}.sales-section-hero .sales-section-copy{font-size:1.35rem!important}}
.studio { --studio-accent:#11675b; --studio-wash:#edf5f0; border:1px solid #c8dbd1; border-radius:26px; background:white; box-shadow:0 22px 65px -28px #124f4530; overflow:hidden; }
.studio-campaign { --studio-accent:#6a4db1; --studio-wash:#f2effa; }
.studio-email { --studio-accent:#9e4b34; --studio-wash:#fbf1ed; }
.studio-sales-page { --studio-accent:#355b9c; --studio-wash:#edf2fa; }
.studio-bar { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:16px 25px; border-bottom:1px solid #dae5de; background:linear-gradient(105deg,#fff,var(--studio-wash)); font-size:.8rem; font-weight:750; }
.studio-bar>span:first-child { display:flex; align-items:center; gap:11px; }
.studio .tool-icon { background:var(--studio-wash); color:var(--studio-accent); }
.studio .tool-live { font-size:.7rem; color:var(--studio-accent); }
.studio .tool-live>span { background:var(--studio-accent); }
.studio-workspace { display:grid; grid-template-columns:minmax(320px,.78fr) minmax(0,1.22fr); align-items:start; }
.studio-workspace>form { min-width:0; padding:27px; border-right:1px solid #dce6df; }
.studio-heading { margin-bottom:22px; }
.studio-heading .eyebrow,.studio-result-heading .eyebrow { color:var(--studio-accent); margin-bottom:7px; font-size:.65rem; }
.studio-heading h2,.studio-result-heading h2 { font-size:1.3rem; margin:0 0 7px; }
.studio-heading p,.studio-result-heading p { margin:0; font-size:.78rem; color:#66766d; }
.app-fields { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:15px 13px; }
.app-field { display:flex; flex-direction:column; gap:7px; min-width:0; }
.app-field>span:first-child { color:#344b43; font-size:.76rem; font-weight:750; }
.app-field input,.app-field select,.app-field textarea { width:100%; min-width:0; max-width:100%; padding:11px 12px; border:1px solid #cddbd3; border-radius:11px; background:#fbfcfa; color:#14231f; font:inherit; font-size:.88rem; transition:border-color .16s,box-shadow .16s; }
.app-field input:focus,.app-field select:focus,.app-field textarea:focus { outline:0; border-color:var(--studio-accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--studio-accent) 13%,transparent); }
.app-field textarea { resize:vertical; line-height:1.6; }
.app-field textarea::placeholder,.app-field input::placeholder { color:#8b9a92; }
.app-input { display:flex; align-items:center; min-width:0; border:1px solid #cddbd3; border-radius:11px; background:#fbfcfa; overflow:hidden; }
.app-input input { border:0; background:transparent; }
.app-input:focus-within { border-color:var(--studio-accent); box-shadow:0 0 0 3px color-mix(in srgb,var(--studio-accent) 13%,transparent); }
.app-input input:focus { box-shadow:none; }
.app-input small { flex:none; padding:0 11px 0 0; color:#596b60; font-size:.68rem; }
.app-field>small { color:#596b60; font-size:.67rem; line-height:1.5; }
.field-wide { grid-column:1/-1; }
.app-segmented,.app-checks { padding:0; margin:0; border:0; min-width:0; grid-column:1/-1; }
.app-segmented legend,.app-checks legend { margin-bottom:8px; color:#344b43; font-size:.76rem; font-weight:750; }
.app-segmented>div,.app-checks>div { display:flex; gap:6px; flex-wrap:wrap; padding:5px; border:1px solid #d2ded6; border-radius:13px; background:#f2f6f2; }
.app-segmented label,.app-checks label { position:relative; flex:1 1 auto; min-width:0; cursor:pointer; }
.app-segmented input,.app-checks input { position:absolute; opacity:0; width:1px; height:1px; }
.app-segmented label span,.app-checks label span { display:flex; min-height:39px; align-items:center; justify-content:center; padding:8px 10px; border-radius:9px; color:#50665b; text-align:center; font-size:.71rem; font-weight:700; }
.app-segmented input:checked+span { background:var(--studio-accent); color:white; box-shadow:0 2px 8px color-mix(in srgb,var(--studio-accent) 25%,transparent); }
.app-checks input:checked+span { color:var(--studio-accent); background:white; box-shadow:0 1px 5px #173f3114; }
.app-segmented input:focus-visible+span,.app-checks input:focus-visible+span { outline:3px solid #c38a42; outline-offset:2px; }
.app-checks label span::before { content:'＋'; margin-right:5px; }
.app-checks input:checked+span::before { content:'✓'; }
.app-form-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin-top:19px; }
.app-form-actions .button { min-height:44px; padding:11px 16px; background:var(--studio-accent); font-size:.8rem; }
.app-reset { border:0; padding:10px 2px; background:none; color:#5f7168; font:inherit; font-size:.74rem; text-decoration:underline; text-underline-offset:4px; cursor:pointer; }
.app-form-note { margin:12px 0 0; color:#718078; font-size:.66rem; line-height:1.55; }
.studio-result { min-width:0; min-height:620px; padding:27px; background:radial-gradient(ellipse at 100% 0,color-mix(in srgb,var(--studio-accent) 7%,white) 0,transparent 54%),#f8faf8; scroll-margin-top:86px; }
.studio-result-heading { display:flex; justify-content:space-between; align-items:center; gap:14px; margin-bottom:20px; }
.studio-result-heading .button { flex:none; min-height:39px; padding:9px 12px; background:white; font-size:.7rem; }
.studio-result-heading .button:disabled { opacity:.45; }
.studio-result-heading h2 { font-size:1.13rem; }
.studio-result-heading p { font-size:.68rem; }
.result-summary { margin-bottom:18px; }
.result-summary .badge { background:var(--studio-wash); color:var(--studio-accent); font-size:.64rem; }
.result-summary h3 { margin:12px 0 6px; font-size:1.14rem; letter-spacing:-.025em; }
.result-summary p { margin:0; color:#65766d; font-size:.75rem; line-height:1.6; }
.funnel-flow { display:grid; justify-items:center; }
.funnel-card { width:100%; position:relative; z-index:1; overflow:hidden; border:1px solid #ccddd4; border-radius:15px; background:white; box-shadow:0 7px 18px #214a3c08; transition:border-color .18s,box-shadow .18s; }
.funnel-card[open] { border-color:#8bb7a5; box-shadow:0 10px 24px #214a3c12; }
.funnel-summary { display:grid; grid-template-columns:36px minmax(0,1fr) 18px; align-items:center; gap:11px; min-height:74px; padding:12px 14px; list-style:none; cursor:pointer; }
.funnel-summary::-webkit-details-marker { display:none; }
.funnel-number { display:grid; place-items:center; width:32px; height:32px; border-radius:10px; background:var(--studio-wash); color:var(--studio-accent); font-size:.7rem; font-weight:850; }
.funnel-step-title { display:grid; gap:4px; min-width:0; }
.funnel-step-title strong { font-size:.79rem; line-height:1.3; }
.funnel-step-title small { color:#66776f; font-size:.65rem; line-height:1.45; }
.funnel-toggle { color:var(--studio-accent); font-size:1.15rem; transition:transform .16s; }
.funnel-card[open] .funnel-toggle { transform:rotate(45deg); }
.funnel-detail { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; border-top:1px solid #e0e9e3; padding:15px; background:#fbfdfb; }
.funnel-detail-item .eyebrow { display:block; margin-bottom:5px; color:var(--studio-accent); font-size:.56rem; letter-spacing:.08em; }
.funnel-detail-item p { margin:0; color:#46594f; font-size:.68rem; line-height:1.55; }
.funnel-connector { display:grid; place-items:center; height:27px; color:var(--studio-accent); font-size:1.15rem; }
.result-footnote { margin:16px 0 0; color:#738078; font-size:.67rem; line-height:1.6; }
.copy-feedback { min-height:22px; margin:8px 0 0; color:var(--studio-accent); font-size:.73rem; }
.email-preview { overflow:hidden; border:1px solid #e2d9d2; border-radius:19px; background:white; box-shadow:0 14px 34px #65423510; }
.email-preview-top { display:flex; align-items:center; gap:9px; padding:13px 17px; border-bottom:1px solid #eee7e2; color:#87695d; font-size:.62rem; font-weight:800; letter-spacing:.11em; }
.email-preview-mark { display:grid; place-items:center; width:30px; height:30px; border-radius:10px; background:#fbf1ed; color:#a75a42; font-size:1rem; }
.email-draft { margin-left:auto; border-radius:999px; padding:5px 9px; background:#f4f2ef; color:#746d64; font-size:.58rem; letter-spacing:0; }
.email-meta { padding:17px 20px 13px; border-bottom:1px solid #efe8e4; background:#fffdfc; }
.subject-options { display:grid; gap:7px; }
.email-meta-label { display:block; color:#806b60; font-size:.65rem; font-weight:750; }
.subject-option { width:100%; min-height:34px; padding:8px 10px; border:1px solid #eee3dc; border-radius:9px; background:white; color:#47534c; text-align:left; font:inherit; font-size:.7rem; cursor:pointer; }
.subject-option.selected { border-color:#d5977e; background:#fcf2ee; color:#7e3f2e; }
.email-subject,.email-editable { width:100%; min-width:0; padding:9px 10px; border:1px dashed #ddc6ba; border-radius:8px; background:#fffdfa; color:#24342c; font:inherit; font-size:.81rem; line-height:1.6; }
.email-subject { margin-top:8px; font-weight:750; }
.email-preheader { display:block; margin-top:12px; }
.email-preheader input { margin-top:5px; font-size:.7rem; }
.email-body { display:grid; gap:12px; padding:22px 22px 18px; }
.email-body textarea { resize:vertical; }
.email-opening { min-height:62px; font-weight:700; }
.email-copy-body { min-height:150px; }
.email-cta { border-style:solid; border-color:#c67a5f; background:#9e4b34; color:white; font-weight:800; text-align:center; }
.email-signature { width:min(65%,260px); }
.email-edit-note { margin:0; padding:0 22px 18px; color:#7a6f67; font-size:.65rem; }
.campaign-overview { padding:15px 17px; border:1px solid #e1daf0; border-radius:15px; background:linear-gradient(120deg,#fff,#f8f6fd); }
.campaign-timeline { display:grid; gap:0; margin:20px 0 0; padding:0; list-style:none; }
.timeline-item { display:grid; grid-template-columns:24px minmax(0,1fr); gap:12px; min-width:0; }
.timeline-marker { position:relative; display:block; width:15px; height:15px; margin:20px 0 0 3px; border:3px solid #fff; border-radius:50%; background:#735bb2; box-shadow:0 0 0 2px #b8aad9; }
.timeline-item:not(:last-child) .timeline-marker::after { content:''; position:absolute; top:12px; left:3px; width:2px; height:calc(100% + 21px); background:linear-gradient(#aa99d0,#ddd5ec); }
.timeline-card { position:relative; margin-bottom:12px; padding:14px 15px; border:1px solid #e0dbea; border-radius:14px; background:#fff; box-shadow:0 6px 16px #32255208; }
.timeline-card-top { display:flex; justify-content:space-between; gap:8px; align-items:center; margin-bottom:10px; }
.timeline-day { border-radius:7px; padding:5px 8px; background:#f0ecf8; color:#56428e; font-size:.67rem; font-weight:850; }
.timeline-channel { color:#6e6a76; font-size:.64rem; font-weight:700; }
.timeline-card h4 { margin:0 0 7px; font-size:.82rem; letter-spacing:-.015em; }
.timeline-card>p { margin:0; color:#59665f; font-size:.7rem; line-height:1.6; }
.timeline-card .timeline-suggested-cta { display:flex; gap:7px; margin-top:9px; color:#654fa0; }
.timeline-copy { margin-top:10px; border:0; padding:4px 0; background:none; color:#654fa0; font:inherit; font-size:.64rem; font-weight:750; text-decoration:underline; text-underline-offset:3px; cursor:pointer; }
.sales-builder-preview { display:grid; grid-template-columns:144px minmax(0,1fr); align-items:start; gap:14px; }
.sales-section-nav { position:sticky; top:92px; display:grid; gap:4px; max-height:70vh; overflow:auto; padding:7px; border:1px solid #dce3ee; border-radius:13px; background:#fff; }
.sales-section-link { padding:7px 8px; border-radius:7px; color:#617082; font-size:.62rem; line-height:1.35; text-decoration:none; }
.sales-section-link:hover,.sales-section-link:focus-visible { background:#eff3fa; color:#34558c; }
.sales-page-preview { overflow:auto; max-height:calc(100vh - 190px); min-height:530px; padding:22px; border:1px solid #dce3ee; border-radius:17px; background:white; box-shadow:0 12px 28px #27457410; }
.sales-page-section { position:relative; scroll-margin-top:105px; padding:20px 4px 17px; border-bottom:1px solid #e8edf4; }
.sales-section-hero { margin:-22px -22px 0; padding:30px 26px 27px; border:0; background:linear-gradient(130deg,#edf2fa,#f8faff); }
.sales-page-section h2 { margin:0 0 12px; color:#284878; font-size:1.65rem; line-height:1.18; }
.sales-page-section h3 { margin:0 0 10px; color:#2b4771; font-size:.98rem; }
.sales-page-section p { white-space:pre-line; }
.sales-hero-subtitle { margin:0; color:#576b84; font-size:.82rem; }
.sales-section-copy { min-height:40px; margin:0; padding:7px; border-radius:7px; color:#526175; font-size:.76rem; line-height:1.75; outline:0; white-space:pre-wrap; }
.sales-section-copy:focus { background:#f5f8fc; box-shadow:0 0 0 2px #aebfda; }
.sales-section-cta { border:0; }
.sales-page-cta { display:inline-flex; margin-top:12px; padding:10px 15px; border-radius:9px; background:#355b9c; color:white; font-size:.7rem; font-weight:800; }
.sales-copy-section { margin:7px 0 0 6px; border:0; padding:5px 0; background:none; color:#426498; font:inherit; font-size:.63rem; font-weight:750; cursor:pointer; text-decoration:underline; text-underline-offset:3px; }
.config-steps { display:flex; gap:5px; margin:-7px 0 19px; padding:4px; border-radius:12px; background:#eff3fa; }
.config-steps button { flex:1; border:0; border-radius:8px; padding:8px 4px; background:transparent; color:#53647b; font:inherit; font-size:.64rem; font-weight:700; cursor:pointer; }
.config-steps button[aria-current=step] { background:#fff; color:#355b9c; box-shadow:0 1px 5px #1c315214; }
.config-step-actions { display:flex; justify-content:space-between; gap:9px; margin-top:17px; }
.config-step-actions .button { min-height:38px; padding:8px 11px; font-size:.69rem; }
.studio-sales-page .app-fields { grid-template-columns:1fr; }
.studio-sales-page .app-fields>.app-field { grid-column:1/-1; }
.studio-method { margin-top:20px; padding:15px 18px; border:1px solid #dce5de; border-radius:13px; background:#fff; color:#52645b; }
.studio-method summary { color:#344c40; font-size:.76rem; font-weight:750; cursor:pointer; }
.studio-method p { margin:12px 0 0; font-size:.76rem; line-height:1.75; }
.studio-recommendation { margin-top:24px; }
.studio-recommendation h2 { font-size:1.3rem; }
.studio-recommendation .merchant-cta { margin-bottom:0; }
.studio [data-error] { margin:14px 0 0; }
.studio button:focus-visible,.studio a:focus-visible,.studio summary:focus-visible { outline:3px solid #bd8d2e; outline-offset:3px; }
.studio [hidden] { display:none!important; }
.catalog-footnote { margin:0 0 25px; color:#63746b; font-size:.78rem; text-align:center; }
.directory-illustration { display:flex; width:100%; min-height:120px; align-items:center; justify-content:center; gap:17px; margin:0 0 21px; border-radius:16px; background:linear-gradient(135deg,#edf5f0,#fbfdfb); }
.directory-lines { display:grid; gap:7px; width:94px; }
.directory-lines i { height:8px; border-radius:6px; background:#d0e2d7; }
.directory-lines i:nth-child(2) { width:78%; background:#e1c377; }
.directory-lines i:nth-child(3) { width:56%; }
.directory-campaign .directory-illustration { background:linear-gradient(135deg,#f2effa,#fff); }
.directory-email .directory-illustration { background:linear-gradient(135deg,#fbf1ed,#fff); }
.directory-sales-page .directory-illustration { background:linear-gradient(135deg,#edf2fa,#fff); }
.directory-campaign .directory-lines i:first-child { background:#c9bee1; }
.directory-email .directory-lines i:first-child { background:#e7bdac; }
.directory-sales-page .directory-lines i:first-child { background:#b9c9e2; }
.tool-directory-card { overflow:hidden; }
.tool-directory-card .tool-icon { width:46px; height:46px; font-size:1rem; }
@media(min-width:1000px){.studio-result{position:sticky;top:86px;max-height:calc(100vh - 100px);overflow:auto}.studio-sales-page .studio-result{position:relative;top:auto;max-height:none}.studio-sales-page .sales-page-preview{max-height:calc(100vh - 200px)}}
@media(max-width:999px){.studio-workspace{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}.studio-workspace>form,.studio-result{padding:22px}.funnel-detail{grid-template-columns:1fr}.sales-builder-preview{grid-template-columns:120px minmax(0,1fr)}}
@media(max-width:780px){.studio{border-radius:19px}.studio-bar{padding:13px 16px}.studio-workspace{grid-template-columns:1fr}.studio-workspace>form{border-right:0;border-bottom:1px solid #dce6df;padding:22px 19px}.studio-result{position:static;max-height:none;overflow:visible;padding:22px 19px}.studio-result-heading{align-items:flex-start}.studio-result-heading .button{font-size:.66rem}.sales-page-preview{max-height:none}.sales-section-nav{position:static;grid-template-columns:repeat(2,minmax(0,1fr));max-height:190px}.sales-section-link{font-size:.7rem}.sales-builder-preview{grid-template-columns:1fr}.sales-page-preview{padding:17px}.sales-section-hero{margin:-17px -17px 0;padding:24px 18px}.studio-sales-page .app-fields{grid-template-columns:1fr}.studio-sales-page .app-fields>.app-field{grid-column:1/-1}}
@media(max-width:500px){.studio-workspace>form,.studio-result{padding:18px 15px}.app-fields{grid-template-columns:1fr;gap:13px}.app-field,.field-wide{grid-column:1/-1}.app-segmented>div,.app-checks>div{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.studio-result-heading{display:grid;grid-template-columns:1fr}.studio-result-heading .button{justify-self:start}.funnel-summary{grid-template-columns:31px minmax(0,1fr) 17px;gap:8px;padding:11px}.funnel-number{width:29px;height:29px}.email-body{padding:18px 14px}.email-meta{padding:15px}.sales-page-section h2{font-size:1.4rem}.config-steps button{font-size:.58rem}.studio-bar .tool-live{font-size:0}.studio-bar .tool-live>span{width:8px;height:8px}.timeline-card{padding:12px}.timeline-card h4{font-size:.78rem}}
@media(prefers-reduced-motion:reduce){.studio *{scroll-behavior:auto!important;animation:none!important;transition:none!important}.tool-directory-card:hover{transform:none}}
