/* Fresh platform editor anatomy from UX 6n–6q. Values and actions remain real. */
html.ysa-connected-preview #framework_main:is(.subscription,.developer_hub){padding:28px 32px}
html.ysa-connected-preview .ysa-subscription-page{max-width:none;margin:0;padding:0}
html.ysa-connected-preview .ysa-subscription-page>.ysa-content-breadcrumb{font-size:10.5px;letter-spacing:.08em;text-transform:uppercase;color:var(--ysa-text-muted);font-weight:700;margin:0 0 6px}
html.ysa-connected-preview .ysa-subscription-page>.ysa-pricing-header{display:flex;justify-content:space-between;align-items:start;gap:20px;margin:0 0 22px}
html.ysa-connected-preview .ysa-subscription-page h1{font:400 30px/1.1 var(--ysa-font-heading);margin:0 0 6px}
html.ysa-connected-preview .ysa-subscription-page>.ysa-pricing-header p{max-width:680px;margin:0;color:var(--ysa-text-muted);font-size:14px}
html.ysa-connected-preview .ysa-subscription-page .ysa-pricing-header-actions{display:flex;gap:8px;flex-wrap:wrap}
html.ysa-connected-preview .ysa-pricing-layout{display:block}
html.ysa-connected-preview .ysa-pricing-chapter-nav{display:flex;gap:8px;flex-wrap:wrap;position:static;width:auto;border:0;padding:0;margin:0 0 22px}
html.ysa-connected-preview .ysa-pricing-chapter-nav>span{display:none}
html.ysa-connected-preview .ysa-pricing-chapter-nav a{display:flex;gap:7px;align-items:center;min-height:34px;padding:6px 12px;border:1px solid var(--ysa-line);border-radius:999px;background:white;font-size:12px;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-chapter-nav a[aria-current=true]{background:var(--ysa-ink);border-color:var(--ysa-ink);color:white}
html.ysa-connected-preview .ysa-pricing-chapter-nav b{display:none}
html.ysa-connected-preview .ysa-pricing-chapter-content{display:flex;flex-direction:column;gap:20px;min-width:0}
html.ysa-connected-preview .ysa-pricing-chapter-heading{display:flex;gap:12px;align-items:start;margin:14px 0 0;padding:0;border:0;scroll-margin-top:24px}
html.ysa-connected-preview .ysa-pricing-chapter-heading.is-first{display:none}
html.ysa-connected-preview .ysa-pricing-chapter-number{display:grid;place-items:center;flex:0 0 28px;height:28px;border-radius:50%;background:var(--ysa-ink);color:white;font-size:12px}
html.ysa-connected-preview .ysa-pricing-chapter-kicker{display:none}
html.ysa-connected-preview .ysa-pricing-chapter-heading h2{font:400 22px/1.25 var(--ysa-font-heading);margin:0 0 4px}
html.ysa-connected-preview .ysa-pricing-chapter-heading p{margin:0;color:var(--ysa-text-muted);font-size:12.5px}
html.ysa-connected-preview :is(.ysa-pricing-current,.ysa-billing-usage-card,.ysa-pricing-payment-panel,.ysa-pricing-reseller-cancel,.ysa-pricing-bottom>.ysa-content-card,.ysa-pricing-plan-card,.ysa-pricing-module-card){padding:20px;border:1px solid var(--ysa-line);border-radius:18px;background:white;min-width:0;margin:0}
html.ysa-connected-preview .ysa-pricing-current{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:18px 24px}
html.ysa-connected-preview .ysa-pricing-current-identity h2{font:400 18px/1.2 var(--ysa-font-heading);margin:8px 0 5px}
html.ysa-connected-preview .ysa-pricing-current-identity p{font-size:12.5px;color:var(--ysa-text-muted);margin:8px 0 0}
html.ysa-connected-preview .ysa-pricing-current-kicker{display:flex;align-items:center;gap:10px;font-size:11px;color:var(--ysa-text-muted)}
html.ysa-connected-preview :is(.ysa-pricing-current-state,.ysa-pricing-plan-status,.ysa-billing-badge,.ysa-pricing-card-badge){display:inline-flex;align-items:center;gap:5px;border-radius:999px;padding:4px 8px;background:var(--ysa-sage-soft);color:var(--ysa-ink);font-size:11px;font-weight:600;line-height:1.3}
html.ysa-connected-preview .ysa-pricing-current-state i{width:5px;font-size:5px}
html.ysa-connected-preview .ysa-pricing-current-title>span{font-size:12.5px;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-current-billing{text-align:right}
html.ysa-connected-preview .ysa-pricing-current-label{display:block;font-size:11px;color:var(--ysa-text-muted);margin-bottom:6px}
html.ysa-connected-preview :is(.ysa-pricing-current-price,.ysa-pricing-price){display:flex;align-items:baseline;gap:3px;font-size:24px;font-weight:600;line-height:1.3}
html.ysa-connected-preview .ysa-pricing-current-price{justify-content:end}
html.ysa-connected-preview :is(.ysa-pricing-current-price,.ysa-pricing-price)>strong{font-size:28px;letter-spacing:-.5px}
html.ysa-connected-preview :is(.ysa-pricing-current-price,.ysa-pricing-price)>div{margin-left:4px;font-size:11px;font-weight:400;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-current-billing>p{margin:8px 0;font-size:12px}
html.ysa-connected-preview .ysa-pricing-current-features{grid-column:1/-1}
html.ysa-connected-preview .ysa-pricing-current-features ul{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none}
html.ysa-connected-preview .ysa-pricing-current-features li{display:flex;align-items:start;gap:6px;padding:10px;border-radius:10px;background:var(--ysa-canvas);font-size:12px}
html.ysa-connected-preview .ysa-pricing-current-features i{color:var(--ysa-ok);margin-top:3px}
html.ysa-connected-preview :is(.ysa-billing-card-heading,.ysa-pricing-order-summary-head){display:flex;align-items:start;gap:12px;justify-content:space-between;margin:0 0 16px}
html.ysa-connected-preview :is(.ysa-billing-card-heading,.ysa-pricing-order-summary-head) h2{font:400 18px/1.2 var(--ysa-font-heading);margin:0 0 5px}
html.ysa-connected-preview :is(.ysa-billing-card-heading,.ysa-pricing-order-summary-head) p{margin:0;font-size:12px;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-billing-icon{display:none}
html.ysa-connected-preview :is(.ysa-billing-usage-stats,.ysa-billing-usage-grid){display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html.ysa-connected-preview .ysa-pricing-intro{display:flex;justify-content:space-between;align-items:start;gap:18px;margin:8px 0 0}
html.ysa-connected-preview .ysa-pricing-intro h2{font:400 24px/1.3 var(--ysa-font-heading);margin:0 0 5px}
html.ysa-connected-preview .ysa-pricing-intro p{font-size:12.5px;color:var(--ysa-text-muted);margin:0}
html.ysa-connected-preview .ysa-pricing-plans{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
html.ysa-connected-preview .ysa-pricing-plan-card{position:relative;display:flex;flex-direction:column;gap:12px;min-height:300px}
html.ysa-connected-preview .ysa-pricing-plan-card:is(.is-recommended,.is-selected){border-color:var(--ysa-ink);background:#F7F9F8}
html.ysa-connected-preview .ysa-pricing-plan-head h2{font:400 22px/1.2 var(--ysa-font-heading);margin:0}
html.ysa-connected-preview .ysa-pricing-plan-head>span{font-size:12px;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-card-badge{position:absolute;top:18px;right:18px;background:var(--ysa-lime-soft)}
html.ysa-connected-preview .ysa-pricing-included{font-size:12px;color:var(--ysa-text-muted);margin:0}
html.ysa-connected-preview .ysa-pricing-feature-list{display:flex;flex-direction:column;gap:9px;list-style:none;padding:0;margin:0;order:1}
html.ysa-connected-preview .ysa-pricing-feature-list li{display:flex;gap:8px;font-size:12.5px}
html.ysa-connected-preview .ysa-pricing-feature-list i{color:var(--ysa-ok)}
html.ysa-connected-preview .ysa-pricing-plan-button{order:2;margin-top:auto;min-height:36px;width:100%;padding:8px 12px;border:1px solid var(--ysa-line);border-radius:10px;background:white;font-size:12px;font-weight:600}
html.ysa-connected-preview .ysa-pricing-plan-button:is(.is-primary,.is-selected){background:var(--ysa-ink);border-color:var(--ysa-ink);color:white}
html.ysa-connected-preview :is(.ysa-pricing-notice,.ysa-pricing-alert){display:flex;align-items:center;gap:14px;padding:16px 20px;border:1px solid var(--ysa-line);border-radius:14px;background:var(--ysa-canvas);font-size:12.5px}
html.ysa-connected-preview .ysa-pricing-notice p{flex:1;margin:0}
html.ysa-connected-preview .ysa-pricing-bottom{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html.ysa-connected-preview .ysa-pricing-bottom h2{font:400 20px/1.3 var(--ysa-font-heading);margin:0 0 10px}
html.ysa-connected-preview .ysa-pricing-bottom p{font-size:13px;color:var(--ysa-text-muted);line-height:1.5}
html.ysa-connected-preview .ysa-pricing-reseller-cancel h2{font:400 20px/1.3 var(--ysa-font-heading);margin:6px 0 10px}
html.ysa-connected-preview .ysa-pricing-reseller-cancel p{font-size:13px;line-height:1.6;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-danger-btn{min-height:36px;padding:8px 14px;border:1px solid #E9BEB4;border-radius:10px;background:white;color:#A43F1B;font-size:12px;font-weight:600}
html.ysa-connected-preview :is(.ysa-pricing-cancel-dialog,.ysa-subscription-confirm){position:fixed;inset:110px auto auto 50%;transform:translateX(-50%);width:min(560px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 142px);height:auto;padding:24px;margin:0;border:0;border-radius:20px;background:white;color:var(--ysa-ink);box-shadow:0 24px 80px #0e252330;overflow:auto}
html.ysa-connected-preview :is(.ysa-pricing-cancel-dialog,.ysa-subscription-confirm)::backdrop{background:rgba(14,37,35,.38);backdrop-filter:blur(2px)}
html.ysa-connected-preview :is(.ysa-pricing-cancel-dialog,.ysa-subscription-confirm) h2{margin:0 34px 6px 0;font:400 22px/1.2 var(--ysa-font-heading)}
html.ysa-connected-preview :is(.ysa-pricing-cancel-dialog,.ysa-subscription-confirm) p{font-size:12.5px;color:var(--ysa-text-muted);line-height:1.6}
html.ysa-connected-preview :is(.ysa-pricing-cancel-dialog-close,.ae-dialog-close){position:absolute;top:20px;right:20px;width:28px;height:28px;min-height:0;padding:0;border:0;background:transparent;color:var(--ysa-text-muted);font-size:20px}
html.ysa-connected-preview .ysa-pricing-cancel-dialog-icon{display:none}
html.ysa-connected-preview .ysa-pricing-cancel-dialog-actions{display:flex;justify-content:end;gap:8px;flex-wrap:wrap;margin-top:24px}
html.ysa-connected-preview .ysa-pricing-cancel-confirm{display:flex;align-items:start;gap:8px;margin-top:16px;font-size:12.5px;color:var(--ysa-text-2)}
html.ysa-connected-preview .ae-cancel-phrase{display:flex;flex-direction:column;gap:7px;margin-top:18px;font-size:12.5px;font-weight:600}
html.ysa-connected-preview .ae-cancel-phrase input{width:100%;height:38px;min-height:38px;padding:9px 12px;border:1px solid #D4D7D1;border-radius:10px;font-size:13px;font-weight:400}
html.ysa-connected-preview .ysa-subscription-confirm{top:150px;max-height:calc(100dvh - 182px)}
html.ysa-connected-preview .ysa-subscription-confirm .ysa-pricing-plan-selection-status{display:none}
html.ysa-connected-preview .ysa-subscription-confirm .ysa-pricing-setup{padding:0;margin:0;border:0;border-radius:0;background:white}
html.ysa-connected-preview .ysa-subscription-confirm .ysa-content-card-header{padding:0;margin:0 0 20px;border:0}
html.ysa-connected-preview .ysa-subscription-confirm .ysa-content-card-header p{margin:0;font-size:12.5px;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-order-summary{padding:0;border:0;border-radius:0;background:white;margin:0 0 20px}
html.ysa-connected-preview .ysa-pricing-order-summary-head{display:none}
html.ysa-connected-preview .ysa-pricing-order-summary dl{margin:0}
html.ysa-connected-preview .ysa-pricing-order-summary dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:10px 0;border-bottom:1px solid var(--ysa-line);font-size:12.5px}
html.ysa-connected-preview .ysa-pricing-order-summary dt{color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-order-summary dd{margin:0;text-align:right;font-weight:600}
html.ysa-connected-preview .ysa-pricing-order-total{display:flex;justify-content:space-between;gap:16px;padding:14px 0;font-size:13px}
html.ysa-connected-preview .ysa-pricing-payment-form .ysa-content-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
html.ysa-connected-preview .ysa-pricing-payment-form label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:12px;font-weight:600}
html.ysa-connected-preview .ysa-pricing-payment-form :is(input:not([type=hidden]),select){min-width:0;width:100%;height:38px;padding:8px 11px;border:1px solid #D4D7D1;border-radius:10px;font-size:13px;font-weight:400}
html.ysa-connected-preview .ysa-pricing-payment-form input[type=checkbox]{width:18px;height:18px;min-height:0;padding:0;accent-color:var(--ysa-ink)}
html.ysa-connected-preview #framework_main.subscription>.framework_frame_left{display:none}
html.ysa-connected-preview #framework_main.subscription>.framework_frame_right{width:auto;float:none;margin:0;padding:0;min-width:0}
html.ysa-connected-preview .ysa-subscription-page>.ysa-content-breadcrumb{display:none}
html.ysa-connected-preview .ysa-billing-eyebrow{display:block;margin-bottom:5px;font-size:10px;font-weight:700;letter-spacing:.09em;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ae-subscription-summary{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,1fr);gap:16px;align-items:start}
html.ysa-connected-preview .ae-subscription-summary-single{grid-template-columns:minmax(0,1fr)}
html.ysa-connected-preview .ae-subscription-summary .ysa-pricing-current{grid-template-columns:minmax(0,1fr) auto}
html.ysa-connected-preview .ae-subscription-summary .ysa-pricing-current>.ysa-billing-usage-card{grid-column:1/-1;padding:0;border:0;border-radius:0}
html.ysa-connected-preview .ae-subscription-summary .ysa-pricing-current-identity>p{display:none}
html.ysa-connected-preview .ysa-billing-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0}
html.ysa-connected-preview .ysa-billing-metric{display:flex;flex-direction:column;gap:6px;min-width:0;padding:12px;border-radius:10px;background:var(--ysa-canvas)}
html.ysa-connected-preview .ysa-billing-metric dt{font-size:11px;line-height:1.4;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-billing-metric dd{margin:0;font-size:18px;line-height:1.3;font-weight:600}
html.ysa-connected-preview .ysa-billing-footnote{margin:8px 0 0;font-size:11px;line-height:1.5;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ae-current-features{grid-column:1/-1;border-top:1px solid var(--ysa-line);padding-top:12px}
html.ysa-connected-preview .ae-current-features>summary,.ysa-connected-preview .ysa-pricing-payment-panel details>summary{cursor:pointer;font-size:12px;font-weight:600}
html.ysa-connected-preview .ae-current-features .ysa-pricing-current-features{margin-top:10px}
html.ysa-connected-preview .ae-current-features .ysa-pricing-current-label{display:none}
html.ysa-connected-preview .ysa-pricing-payment-grid{display:flex;flex-direction:column;font-size:12.5px;margin:18px 0}
html.ysa-connected-preview .ysa-pricing-payment-grid>div{display:flex;justify-content:space-between;gap:14px;padding:10px 0;border-bottom:1px solid var(--ysa-line)}
html.ysa-connected-preview .ysa-pricing-payment-grid span{color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-payment-grid strong{text-align:right;overflow-wrap:anywhere;min-width:0}
html.ysa-connected-preview .ysa-pricing-payment-panel .ysa-content-card-header{margin:0;padding:0;border:0}
html.ysa-connected-preview .ysa-pricing-payment-panel h2{font:400 18px/1.2 var(--ysa-font-heading);margin:0 0 5px}
html.ysa-connected-preview .ysa-pricing-payment-panel p{margin:0;font-size:12px;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-payment-panel form{padding-top:14px;font-size:12px}
html.ysa-connected-preview .ae-cancel-terms{padding:12px 14px;border-radius:12px;background:var(--ysa-canvas);color:var(--ysa-text-2)}
/* Full subscription chapters use their actual module, Voice and Waterloop markup. */
html.ysa-connected-preview :is(.ysa-pricing-addons,.ysa-voice-billing,.ysa-waterloop-card){min-width:0;margin:0;padding:20px;border:1px solid var(--ysa-line);border-radius:18px;background:var(--ysa-sheet)}
html.ysa-connected-preview :is(.ysa-pricing-addon,.ysa-pricing-cortex-table thead,.ysa-pricing-cortex-usage,.ysa-pricing-cortex-policy,.ysa-waterloop-settings){--ysa-text-muted:var(--ysa-text-3)}
html.ysa-connected-preview .ysa-pricing-addons-head{display:flex;align-items:start;justify-content:space-between;gap:24px;margin:0 0 20px}
html.ysa-connected-preview .ysa-pricing-addons-head>div:first-child{flex:1;min-width:0}
html.ysa-connected-preview .ysa-pricing-addons-head h2{font:400 22px/1.25 var(--ysa-font-heading);margin:0 0 6px}
html.ysa-connected-preview .ysa-pricing-addons-head p{max-width:70ch;margin:0;font-size:12.5px;line-height:1.6;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-fixed-total{display:flex;flex-direction:column;gap:5px;flex:0 1 250px;text-align:right;min-width:0}
html.ysa-connected-preview .ysa-pricing-fixed-total>span{font-size:11px;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-fixed-total>strong{font-size:24px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
html.ysa-connected-preview .ysa-pricing-fixed-total>small{font-size:11px;line-height:1.5;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-addon{display:grid;grid-template-columns:40px minmax(0,1fr) auto;gap:14px;align-items:start;padding:18px;border:1px solid var(--ysa-line);border-radius:14px;background:var(--ysa-canvas)}
html.ysa-connected-preview .ysa-pricing-addon-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:12px;background:var(--ysa-sage-soft);color:var(--ysa-ink);font-size:19px}
html.ysa-connected-preview .ysa-pricing-addon-copy{min-width:0}
html.ysa-connected-preview .ysa-pricing-addon-copy>div{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:0 0 8px}
html.ysa-connected-preview .ysa-pricing-addon-copy h3{font:400 19px/1.3 var(--ysa-font-heading);margin:0}
html.ysa-connected-preview .ysa-pricing-addon-copy>p{margin:0 0 6px;font-size:12.5px;line-height:1.6;color:var(--ysa-text-2)}
html.ysa-connected-preview .ysa-pricing-addon-copy>small{font-size:11.5px;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-addon-status{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;background:var(--ysa-sheet);color:var(--ysa-text-muted);font-size:10.5px;font-weight:600;line-height:1.3}
html.ysa-connected-preview .ysa-pricing-addon.is-active .ysa-pricing-addon-status{background:var(--ysa-sage-soft);color:var(--ysa-ink)}
html.ysa-connected-preview .ysa-pricing-addon-price{display:flex;flex-direction:column;gap:4px;min-width:110px;text-align:right}
html.ysa-connected-preview .ysa-pricing-addon-price strong{font-size:24px;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
html.ysa-connected-preview .ysa-pricing-addon-price :is(span,small){font-size:11px;line-height:1.5;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-addon-link{display:flex;gap:8px;margin:10px 0 0;min-height:36px;padding:8px 12px;border:1px solid var(--ysa-line);border-radius:9px;background:var(--ysa-sheet);color:var(--ysa-ink);font-size:12px;font-weight:600}
html.ysa-connected-preview .ysa-pricing-cortex-details{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(300px,.9fr);gap:18px 24px;margin-top:20px;padding-top:20px;border-top:1px solid var(--ysa-line);min-width:0}
html.ysa-connected-preview .ysa-pricing-cortex-explanation{min-width:0}
html.ysa-connected-preview .ysa-pricing-cortex-explanation h3{font:400 19px/1.3 var(--ysa-font-heading);margin:0 0 10px}
html.ysa-connected-preview .ysa-pricing-cortex-explanation p{margin:0 0 10px;font-size:12.5px;line-height:1.65;color:var(--ysa-text-2)}
html.ysa-connected-preview .ysa-pricing-cortex-explanation p:last-child{margin-bottom:0}
html.ysa-connected-preview .ysa-pricing-cortex-table-wrap{min-width:0;align-self:start;border:1px solid var(--ysa-line);border-radius:12px;overflow:hidden}
html.ysa-connected-preview .ysa-pricing-cortex-table{width:100%;margin:0;border:0;border-collapse:collapse;table-layout:fixed;font-size:12px;line-height:1.45;font-variant-numeric:tabular-nums}
html.ysa-connected-preview .ysa-pricing-cortex-table :is(th,td){padding:11px 12px;border:0;border-bottom:1px solid var(--ysa-line);text-align:left;white-space:normal;overflow-wrap:normal}
html.ysa-connected-preview .ysa-pricing-cortex-table :is(th,td):first-child{width:29%}
html.ysa-connected-preview .ysa-pricing-cortex-table :is(th,td):nth-child(2){width:34%}
html.ysa-connected-preview .ysa-pricing-cortex-table :is(th,td):last-child{width:37%;text-align:right}
html.ysa-connected-preview .ysa-pricing-cortex-table thead th{background:var(--ysa-canvas);color:var(--ysa-text-muted);font-size:11px;font-weight:600}
html.ysa-connected-preview .ysa-pricing-cortex-table tbody th{background:transparent;color:var(--ysa-ink);font-weight:500}
html.ysa-connected-preview .ysa-pricing-cortex-table tbody tr:last-child :is(th,td){border-bottom:0}
html.ysa-connected-preview .ysa-pricing-cortex-table .is-current :is(th,td){background:var(--ysa-sage-soft);font-weight:600}
html.ysa-connected-preview :is(.ysa-pricing-cortex-example,.ysa-pricing-cortex-usage,.ysa-pricing-cortex-usage-notice,.ysa-pricing-cortex-cohort,.ysa-pricing-cortex-policy){grid-column:1/-1;min-width:0;margin:0}
html.ysa-connected-preview .ysa-pricing-cortex-example{font-size:11.5px;line-height:1.6;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-cortex-usage{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
html.ysa-connected-preview .ysa-pricing-cortex-usage>div{display:flex;flex-direction:column;gap:5px;padding:14px 16px;border:1px solid var(--ysa-line);border-radius:12px;background:var(--ysa-canvas)}
html.ysa-connected-preview .ysa-pricing-cortex-usage strong{font-size:22px;font-weight:600;line-height:1.3}
html.ysa-connected-preview .ysa-pricing-cortex-usage span{font-size:11.5px;color:var(--ysa-text-muted)}
html.ysa-connected-preview :is(.ysa-pricing-cortex-usage-notice,.ysa-pricing-cortex-cohort){padding:12px 14px;border:1px solid var(--ysa-line);border-radius:12px;background:var(--ysa-canvas);font-size:12px;line-height:1.6;color:var(--ysa-text-2)}
html.ysa-connected-preview .ysa-pricing-cortex-cohort{background:var(--ysa-sage-soft)}
html.ysa-connected-preview .ysa-pricing-cortex-policy{padding:16px;border:1px solid var(--ysa-line);border-radius:12px;background:var(--ysa-canvas)}
html.ysa-connected-preview .ysa-pricing-cortex-policy label{display:flex;align-items:start;gap:10px;min-height:32px;font-size:12.5px;cursor:pointer}
html.ysa-connected-preview .ysa-pricing-cortex-policy input{flex-shrink:0;margin-top:2px}
html.ysa-connected-preview .ysa-pricing-cortex-policy :is(strong,small){display:block}
html.ysa-connected-preview .ysa-pricing-cortex-policy small{margin-top:4px;color:var(--ysa-text-muted);font-size:11.5px;line-height:1.5}
html.ysa-connected-preview .ysa-pricing-cortex-policy-note{margin:10px 0 0;font-size:11.5px;line-height:1.6;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-cortex-policy-feedback{margin:8px 0 0;font-size:12px}
html.ysa-connected-preview .ysa-pricing-cortex-policy-feedback:empty{display:none}
html.ysa-connected-preview .ysa-voice-billing{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 24px}
html.ysa-connected-preview .ysa-voice-billing>h2{grid-column:1/-1;font:400 22px/1.3 var(--ysa-font-heading);margin:0}
html.ysa-connected-preview .ysa-voice-billing>p{margin:0;min-width:0;font-size:12.5px;line-height:1.65;color:var(--ysa-text-2)}
html.ysa-connected-preview .ysa-voice-billing>[data-voice-price]{grid-column:1/-1;padding:14px 16px;border-radius:12px;background:var(--ysa-sage-soft);color:var(--ysa-ink);font-size:15px;font-weight:600}
html.ysa-connected-preview .ysa-voice-billing>[data-voice-usage]{padding:12px 14px;border:1px solid var(--ysa-line);border-radius:12px;background:var(--ysa-canvas)}
html.ysa-connected-preview .ysa-voice-confirm{display:flex;align-items:start;gap:10px;grid-column:1/-1;min-height:44px;padding:14px;border:1px solid var(--ysa-line);border-radius:12px;background:var(--ysa-canvas);font-size:12px;line-height:1.6;cursor:pointer}
html.ysa-connected-preview .ysa-voice-confirm input{flex-shrink:0;margin-top:2px}
html.ysa-connected-preview .ysa-voice-plan-form,html.ysa-connected-preview .ysa-voice-disable-form{display:flex;flex-direction:column;align-items:flex-start;gap:16px;grid-column:1/-1;min-width:0}
html.ysa-connected-preview .ysa-voice-plan-form p,html.ysa-connected-preview .ysa-voice-plan-form .ysa-voice-confirm,html.ysa-connected-preview .ysa-voice-disable-form .ysa-voice-confirm{margin:0}
html.ysa-connected-preview .ysa-voice-tier-label{display:flex;flex-direction:column;gap:8px;width:100%;max-width:460px;font-size:14px;font-weight:600}
html.ysa-connected-preview .ysa-voice-tier-label select{box-sizing:border-box;width:100%;max-width:100%;min-height:44px;padding:10px 13px;font:inherit}
html.ysa-connected-preview .ysa-voice-billing [data-voice-form] [data-voice-action]{min-height:44px}
html.ysa-connected-preview .ysa-voice-disable-form{padding-top:16px;border-top:1px solid var(--ysa-line)}
html.ysa-connected-preview .ysa-voice-billing>[data-voice-action]{justify-self:start;min-height:38px}
html.ysa-connected-preview .ysa-voice-billing>[data-voice-status]{grid-column:1/-1}
html.ysa-connected-preview .ysa-voice-billing>[data-voice-status]:empty{display:none}
html.ysa-connected-preview .ysa-voice-billing:not([data-voice-billing])>p{grid-column:1/-1}
html.ysa-connected-preview .ysa-waterloop-card{display:grid;gap:24px}
html.ysa-connected-preview .ysa-waterloop-story{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);gap:24px;align-items:start;min-width:0}
html.ysa-connected-preview .ysa-waterloop-gallery{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.333fr);grid-template-rows:auto auto;gap:10px;padding:10px;border-radius:14px;background:var(--ysa-canvas);min-width:0}
html.ysa-connected-preview .ysa-waterloop-gallery-frame{min-width:0;min-height:0;overflow:hidden;border-radius:10px}
html.ysa-connected-preview .ysa-waterloop-gallery-frame-main{grid-column:1/-1;aspect-ratio:16/10}
html.ysa-connected-preview .ysa-waterloop-gallery-frame-drinking{aspect-ratio:3/4}
html.ysa-connected-preview .ysa-waterloop-gallery-frame-installation{aspect-ratio:4/3}
html.ysa-connected-preview .ysa-waterloop-gallery img{display:block;width:100%;height:100%;max-width:100%;min-width:0;min-height:0;object-fit:cover;object-position:center}
html.ysa-connected-preview .ysa-waterloop-gallery-main{object-position:50% 52%}
html.ysa-connected-preview .ysa-waterloop-copy{min-width:0}
html.ysa-connected-preview .ysa-waterloop-eyebrow{display:block;font-size:10.5px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:var(--ysa-text-muted);margin:0 0 7px}
html.ysa-connected-preview .ysa-waterloop-copy h2{font:400 24px/1.25 var(--ysa-font-heading);margin:0 0 14px}
html.ysa-connected-preview .ysa-waterloop-copy>p{margin:0 0 14px;font-size:12.5px;line-height:1.65;color:var(--ysa-text-2)}
html.ysa-connected-preview .ysa-waterloop-pledge{padding:12px 14px;border-radius:12px;background:var(--ysa-sage-soft)}
html.ysa-connected-preview .ysa-waterloop-principles{display:grid;gap:14px;list-style:none;padding:0;margin:18px 0 0}
html.ysa-connected-preview .ysa-waterloop-principles li{display:flex;align-items:start;gap:10px}
html.ysa-connected-preview .ysa-waterloop-principles li>span{display:grid;place-items:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;background:var(--ysa-canvas);font-size:10px;font-weight:600}
html.ysa-connected-preview .ysa-waterloop-principles :is(strong,small){display:block;font-size:12px;line-height:1.6}
html.ysa-connected-preview .ysa-waterloop-principles small{margin-top:3px;font-weight:400;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-waterloop-settings{display:grid;grid-template-columns:minmax(180px,.7fr) minmax(0,1.3fr);gap:24px;min-width:0;padding:18px;border:1px solid var(--ysa-line);border-radius:14px;background:var(--ysa-canvas)}
html.ysa-connected-preview .ysa-waterloop-settings-head{display:flex;align-items:start;justify-content:space-between;gap:12px}
html.ysa-connected-preview .ysa-waterloop-settings-head>div{min-width:0}
html.ysa-connected-preview .ysa-waterloop-settings-head :is(span,strong,small){display:block}
html.ysa-connected-preview .ysa-waterloop-settings-head>div>span{font-size:11px;color:var(--ysa-text-muted);margin-bottom:6px}
html.ysa-connected-preview .ysa-waterloop-settings-head strong{font-size:20px;font-weight:600;line-height:1.3}
html.ysa-connected-preview .ysa-waterloop-settings-head small{font-size:11.5px;line-height:1.6;color:var(--ysa-text-muted);margin-top:6px}
html.ysa-connected-preview .ysa-waterloop-optional{padding:4px 8px;border:1px solid var(--ysa-line);border-radius:999px;background:var(--ysa-sheet);font-size:10px;font-weight:600}
html.ysa-connected-preview .ysa-waterloop-settings-body{min-width:0}
html.ysa-connected-preview :is(.ysa-waterloop-toggle-row,.ysa-waterloop-journey-option){display:flex;align-items:start;gap:10px;min-width:0;font-size:12px;line-height:1.6;cursor:pointer}
html.ysa-connected-preview .ysa-waterloop-toggle-row{margin-bottom:14px}
html.ysa-connected-preview :is(.ysa-waterloop-toggle-row,.ysa-waterloop-journey-option)>input{flex-shrink:0;margin-top:2px}
html.ysa-connected-preview :is(.ysa-waterloop-toggle-row,.ysa-waterloop-journey-option)>span{min-width:0}
html.ysa-connected-preview :is(.ysa-waterloop-toggle-row,.ysa-waterloop-journey-option) :is(strong,small){display:block}
html.ysa-connected-preview :is(.ysa-waterloop-toggle-row,.ysa-waterloop-journey-option) small{margin-top:4px;font-size:11.5px;line-height:1.6;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-waterloop-control-grid{display:grid;grid-template-columns:minmax(140px,.65fr) minmax(0,1.35fr);gap:16px;min-width:0}
html.ysa-connected-preview .ysa-waterloop-amount-field{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:11.5px}
html.ysa-connected-preview .ysa-waterloop-amount-field small{font-size:11px;line-height:1.5;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-waterloop-money-input{display:flex;align-items:center;gap:6px;min-width:0;padding:0 10px;border:1px solid var(--ysa-line-strong);border-radius:10px;background:var(--ysa-sheet)}
html.ysa-connected-preview .ysa-waterloop-money-input>i{font-style:normal;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-waterloop-money-input>input{min-width:0;width:100%;border:0;border-radius:0;background:transparent;padding:9px 0}
html.ysa-connected-preview .ysa-waterloop-disclaimer{margin:14px 0;font-size:11.5px;line-height:1.6;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-waterloop-actions{display:flex;align-items:center;flex-wrap:wrap;gap:10px}
html.ysa-connected-preview .ysa-waterloop-actions button{min-height:38px}
html.ysa-connected-preview .ysa-waterloop-actions [data-waterloop-feedback]{font-size:12px}
html.ysa-connected-preview .ysa-pricing-waterloop-option{display:flex;flex-direction:column;gap:14px;min-width:0;margin:18px 0;padding:16px;border:1px solid var(--ysa-line);border-radius:14px}
html.ysa-connected-preview .ysa-pricing-waterloop-option legend{padding:0 6px;font-size:13px;font-weight:600}
html.ysa-connected-preview .ysa-pricing-waterloop-option legend span{margin-left:6px;font-size:10px;color:var(--ysa-text-muted);font-weight:400}
html.ysa-connected-preview .ysa-pricing-waterloop-intro{display:flex;align-items:start;gap:12px;min-width:0}
html.ysa-connected-preview .ysa-pricing-waterloop-intro>img{display:block;flex-shrink:0;width:64px;height:72px;object-fit:cover;border-radius:10px}
html.ysa-connected-preview .ysa-pricing-waterloop-intro>div{min-width:0}
html.ysa-connected-preview .ysa-pricing-waterloop-intro strong{font-size:12px;line-height:1.5}
html.ysa-connected-preview .ysa-pricing-waterloop-intro p{margin:5px 0 0;font-size:11.5px;line-height:1.6;color:var(--ysa-text-muted)}
html.ysa-connected-preview .ysa-pricing-waterloop-option :is(.ysa-waterloop-toggle-row,.ysa-waterloop-journey-option){flex-direction:row}
html.ysa-connected-preview .ysa-pricing-waterloop-option .ysa-waterloop-money-input>input{border:0;border-radius:0;background:transparent;padding:9px 0}
@media(max-width:1000px){html.ysa-connected-preview .ysa-pricing-cortex-details{grid-template-columns:minmax(0,1fr)}html.ysa-connected-preview .ysa-waterloop-settings{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){
 html.ysa-connected-preview :is(.ysa-pricing-addons,.ysa-voice-billing,.ysa-waterloop-card){padding:16px;border-radius:16px}
 html.ysa-connected-preview .ysa-pricing-addons-head{flex-direction:column;gap:14px}
 html.ysa-connected-preview .ysa-pricing-fixed-total{flex-basis:auto;text-align:left}
 html.ysa-connected-preview .ysa-pricing-addon{position:relative;grid-template-columns:minmax(0,1fr);gap:12px;padding:14px}
 html.ysa-connected-preview .ysa-pricing-addon-icon{position:absolute;left:14px;top:14px;width:32px;height:32px;border-radius:10px;font-size:16px}
 html.ysa-connected-preview .ysa-pricing-addon-copy>div{min-height:32px;padding-left:44px}
 html.ysa-connected-preview .ysa-pricing-addon-price{grid-column:1;text-align:left;min-width:0}
 html.ysa-connected-preview .ysa-pricing-addon-copy h3{font-size:18px}
 html.ysa-connected-preview .ysa-pricing-cortex-details{gap:16px;padding-top:16px;margin-top:16px}
 html.ysa-connected-preview .ysa-pricing-cortex-table :is(th,td){padding:9px 8px;font-size:11px}
 html.ysa-connected-preview .ysa-pricing-cortex-usage>div{padding:12px}
 html.ysa-connected-preview .ysa-pricing-cortex-usage strong{font-size:20px}
 html.ysa-connected-preview .ysa-pricing-cortex-policy{padding:14px}
 html.ysa-connected-preview .ysa-pricing-cortex-policy label{min-height:44px}
 html.ysa-connected-preview .ysa-voice-billing{grid-template-columns:minmax(0,1fr);gap:14px}
 html.ysa-connected-preview .ysa-voice-billing>[data-voice-action]{width:100%;min-height:44px}
 html.ysa-connected-preview .ysa-waterloop-story{grid-template-columns:minmax(0,1fr);gap:20px}
 html.ysa-connected-preview .ysa-waterloop-settings{padding:14px;gap:18px}
 html.ysa-connected-preview .ysa-waterloop-control-grid{grid-template-columns:minmax(0,1fr);gap:14px}
 html.ysa-connected-preview .ysa-waterloop-actions button{width:100%;min-height:44px}
 html.ysa-connected-preview .ysa-pricing-waterloop-option{padding:14px}
}
@media(max-width:1100px){html.ysa-connected-preview .ae-subscription-summary{grid-template-columns:minmax(0,1fr)}}
@media(max-width:720px){html.ysa-connected-preview .ae-subscription-summary .ysa-pricing-current{grid-template-columns:minmax(0,1fr)}html.ysa-connected-preview .ysa-billing-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}html.ysa-connected-preview .ysa-pricing-header{flex-wrap:wrap}}

/* Developer Hub: actual catalog and permission-filtered resource links. */
html.ysa-connected-preview .ysa-developer-hub{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(320px,1fr);gap:16px;max-width:none;min-width:0;margin:0;padding:0}
html.ysa-connected-preview .pm-head{grid-column:1/-1;display:flex;justify-content:space-between;align-items:center;gap:22px;margin-bottom:6px}
html.ysa-connected-preview .pm-kicker{margin-bottom:5px;color:var(--ysa-text-muted);font-size:10px;font-weight:700;letter-spacing:.1em;text-transform:uppercase}
html.ysa-connected-preview .pm-title{font:400 30px/1.1 var(--ysa-font-heading);margin:0 0 6px}
html.ysa-connected-preview .pm-sub{max-width:740px;margin:0;font-size:13.5px;color:var(--ysa-text-muted);line-height:1.5}
html.ysa-connected-preview .pm-actions{display:flex;flex-shrink:0;gap:8px;flex-wrap:wrap}
html.ysa-connected-preview :is(.pm-btn,.pm-reset,.ae-resource-card a,.ae-api-card>a){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:36px;padding:8px 13px;border:1px solid var(--ysa-line);border-radius:10px;background:white;font-size:12px;font-weight:600;color:var(--ysa-ink);text-decoration:none}
html.ysa-connected-preview .ae-api-grid{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
html.ysa-connected-preview :is(.ae-resource-card,.ae-api-card,.ysa-developer-hub>.pm-card){min-width:0;padding:18px 20px;border:1px solid var(--ysa-line);border-radius:18px;background:white}
html.ysa-connected-preview .ae-resource-card{display:flex;flex-direction:column;gap:12px;min-height:220px}
html.ysa-connected-preview :is(.ae-resource-card,.ae-api-card) h2{font:400 18px/1.2 var(--ysa-font-heading);margin:0}
html.ysa-connected-preview .ae-resource-card p{font-size:12.5px;color:var(--ysa-text-muted);line-height:1.5;margin:0}
html.ysa-connected-preview .ae-resource-card dl{margin:0;font-size:12px}
html.ysa-connected-preview .ae-resource-card dl>div{display:flex;justify-content:space-between;gap:10px;padding:9px 0;border-bottom:1px solid var(--ysa-line)}
html.ysa-connected-preview .ae-resource-card dt{color:var(--ysa-text-muted)}
html.ysa-connected-preview .ae-resource-card dd{margin:0;font-weight:600;text-align:right}
html.ysa-connected-preview .ae-resource-card>a{margin-top:auto;align-self:start}
html.ysa-connected-preview .ysa-developer-hub>.pm-card{grid-column:1;grid-row:3}
html.ysa-connected-preview .pm-card-head{display:flex;justify-content:space-between;align-items:start;gap:16px;margin-bottom:16px}
html.ysa-connected-preview .pm-card-title{font:400 18px/1.2 var(--ysa-font-heading);margin:0}
html.ysa-connected-preview .pm-card-title>span{font:400 11px/1.4 var(--ysa-font-sans);color:var(--ysa-text-muted)}
html.ysa-connected-preview .pm-map-actions{display:flex;gap:5px}
html.ysa-connected-preview .pm-map-actions button{min-height:30px;padding:5px 9px;font-size:11px}
html.ysa-connected-preview .pm-stage{position:relative;min-width:0;min-height:260px}
html.ysa-connected-preview .pm-area-tiles{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
html.ysa-connected-preview .pm-area-tile{display:flex;flex-direction:column;align-items:stretch;gap:12px;min-width:0;padding:15px;border:1px solid var(--ysa-line);border-radius:14px;background:white;color:var(--ysa-ink);text-align:left}
html.ysa-connected-preview .pm-area-tile[aria-pressed=true]{border-color:var(--ysa-ink);background:var(--ysa-canvas)}
html.ysa-connected-preview .pm-area-tile>strong{font-size:12.5px;font-weight:600}
html.ysa-connected-preview .pm-area-tile small{font-size:10px;color:var(--ysa-text-muted);font-weight:400}
html.ysa-connected-preview .pm-area-modules{display:flex;flex-wrap:wrap;gap:4px}
html.ysa-connected-preview .pm-area-modules span{padding:3px 6px;border-radius:99px;background:var(--ysa-canvas);font-size:10.5px;line-height:1.3}
html.ysa-connected-preview .pm-area-explanation{margin-top:14px;padding:14px;border-radius:12px;background:var(--ysa-canvas);font-size:12px;line-height:1.5;min-height:60px}
html.ysa-connected-preview .pm-catalog{font-size:12px;margin-top:14px}
html.ysa-connected-preview .pm-catalog>summary{cursor:pointer;font-weight:600}
html.ysa-connected-preview .pm-catalog-area{padding:14px 0;border-bottom:1px solid var(--ysa-line)}
html.ysa-connected-preview .pm-catalog-area h3{font:400 18px/1.3 var(--ysa-font-heading);margin:0 0 5px}
html.ysa-connected-preview .pm-catalog-area p,html.ysa-connected-preview .pm-catalog-area dd{font-size:12px;color:var(--ysa-text-muted);margin:5px 0 12px}
html.ysa-connected-preview .pm-catalog-area dt{font-weight:600;font-size:12px}
html.ysa-connected-preview .av-launch{grid-column:2;grid-row:3;display:flex;flex-direction:column;align-items:start;gap:14px;min-height:380px;padding:24px;border-radius:18px;background:var(--ysa-ink);color:white}
html.ysa-connected-preview .av-launch-art{display:none}
html.ysa-connected-preview .ae-village-kicker{font-size:10px;font-weight:700;letter-spacing:.1em;color:var(--ysa-lime);margin:0 0 8px}
html.ysa-connected-preview .av-launch h2{font:400 24px/1.25 var(--ysa-font-heading);color:white;margin:0 0 10px}
html.ysa-connected-preview .av-launch p:not(.ae-village-kicker){max-width:410px;font-size:13.5px;line-height:1.5;color:#D3DEDA;margin:0}
html.ysa-connected-preview .av-launch .pm-btn{margin-top:auto}
html.ysa-connected-preview .av-launch-error{grid-column:1/-1;margin:0;padding:12px;border-radius:10px;background:#FFF0E8;color:#A43F1B;font-size:12px}
html.ysa-connected-preview .ae-api-bottom{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:16px}
html.ysa-connected-preview .ae-api-card>p{font-size:12.5px;color:var(--ysa-text-muted);line-height:1.6}
html.ysa-connected-preview .ae-endpoints{display:flex;flex-direction:column;gap:12px;margin:20px 0}
html.ysa-connected-preview .ae-endpoints>div{display:grid;grid-template-columns:36px minmax(0,1fr);gap:8px;font-size:11px;align-items:start}
html.ysa-connected-preview .ae-endpoints b{font-size:10px;color:#0054C4}
html.ysa-connected-preview .ae-endpoints b.is-get{color:var(--ysa-ok)}
html.ysa-connected-preview .ae-endpoints code{padding:4px 6px;border-radius:5px;background:var(--ysa-canvas);font:11px/1.4 var(--ysa-font-mono);overflow-wrap:anywhere}
html.ysa-connected-preview .ae-api-empty{display:flex;flex-direction:column;justify-content:center;align-items:start;gap:10px;min-height:210px;color:var(--ysa-text-muted);font-size:13px;line-height:1.6}
/* Fullscreen Agent Village uses its existing scoped component stylesheet. */
@media(max-width:1100px){
 html.ysa-connected-preview .ae-api-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.ysa-connected-preview .pm-head{flex-wrap:wrap}
 html.ysa-connected-preview .pm-area-tiles{grid-template-columns:repeat(2,minmax(0,1fr))}
 html.ysa-connected-preview .ysa-developer-hub{grid-template-columns:minmax(0,1fr)}
 html.ysa-connected-preview .ysa-developer-hub>.pm-card,html.ysa-connected-preview .av-launch{grid-column:1;grid-row:auto}
}
@media(max-width:720px){
 html.ysa-connected-preview #framework_main:is(.subscription,.developer_hub){padding:22px 16px}
 html.ysa-connected-preview .ysa-subscription-page>.ysa-pricing-header{flex-wrap:wrap}
 html.ysa-connected-preview .ysa-pricing-current{grid-template-columns:minmax(0,1fr)}
 html.ysa-connected-preview .ysa-pricing-current-billing{text-align:left}
 html.ysa-connected-preview .ysa-pricing-current-price{justify-content:start}
 html.ysa-connected-preview .ysa-pricing-current-features ul,html.ysa-connected-preview .ysa-pricing-plans,html.ysa-connected-preview .ysa-pricing-bottom{grid-template-columns:minmax(0,1fr)}
 html.ysa-connected-preview :is(.ysa-pricing-notice,.ysa-pricing-intro){flex-wrap:wrap}
 html.ysa-connected-preview :is(.ysa-pricing-cancel-dialog,.ysa-subscription-confirm){top:24px;max-height:calc(100dvh - 48px);padding:20px}
 html.ysa-connected-preview .ysa-pricing-payment-form .ysa-content-form-grid{grid-template-columns:minmax(0,1fr)}
 html.ysa-connected-preview .ysa-pricing-order-summary dl>div{gap:12px}
 html.ysa-connected-preview .ysa-pricing-cancel-dialog-actions>*{min-height:44px}
 html.ysa-connected-preview .ae-api-grid,html.ysa-connected-preview .ae-api-bottom{grid-template-columns:minmax(0,1fr)}
 html.ysa-connected-preview .ae-resource-card{min-height:190px}
 html.ysa-connected-preview .pm-area-tiles{grid-template-columns:minmax(0,1fr)}
 html.ysa-connected-preview .pm-map-actions{flex-wrap:wrap}
 html.ysa-connected-preview .pm-card-head{flex-wrap:wrap}
 html.ysa-connected-preview .av-launch{min-height:300px;padding:22px}
}

@media(max-width:720px){
 html.ysa-connected-preview :is(.ysa-pricing-plan-button,.pm-btn,.pm-reset,.ae-resource-card>a,.ae-api-card>a){min-height:44px}
 html.ysa-connected-preview :is(.ysa-pricing-cancel-dialog-close,.ae-dialog-close){width:44px;height:44px;top:12px;right:12px}
 html.ysa-connected-preview :is(.ysa-pricing-cancel-dialog,.ysa-subscription-confirm) h2{margin-right:44px}
 html.ysa-connected-preview :is(.pm-area-tile small,.pm-area-modules span,.ae-endpoints b,.ae-endpoints code,.ysa-pricing-current-label,.ysa-billing-metric dt,.ysa-billing-footnote,.ysa-billing-badge){font-size:11.5px}
}

/* Upgrade keeps its native checkout and scrolling dialog, with title and close always available. */
html.ysa-connected-preview dialog.ysa-subscription-confirm{scroll-padding-block:112px}
html.ysa-connected-preview dialog.ysa-subscription-confirm>.ae-dialog-close{display:flex;position:sticky;top:0;right:auto;z-index:4;margin:0 0 -28px auto}
html.ysa-connected-preview dialog.ysa-subscription-confirm .ysa-pricing-setup{overflow:visible}
html.ysa-connected-preview dialog.ysa-subscription-confirm .ysa-content-card-header{position:sticky;top:0;z-index:3;margin-bottom:0;padding-bottom:16px;background:var(--ysa-sheet);box-shadow:0 -24px 0 var(--ysa-sheet)}
@media(max-width:720px){
 html.ysa-connected-preview dialog.ysa-subscription-confirm>.ae-dialog-close{margin-bottom:-44px}
 html.ysa-connected-preview dialog.ysa-subscription-confirm :is(.ysa-content-inline-actions button,[data-plan-cancel],.ysa-pricing-submit){min-width:44px;min-height:44px}
 html.ysa-connected-preview dialog.ysa-subscription-confirm .ysa-content-card-header{box-shadow:0 -20px 0 var(--ysa-sheet)}
}
