/* Owner 2026-10-09 journey v3. Scoped to the current member application. */
.journey-header .journey-picks{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;text-decoration:none;color:inherit;white-space:nowrap}
.journey-header .journey-picks[hidden],#journey-nav-logout[hidden]{display:none!important}
#journey-navigation #journey-nav-logout{min-width:44px;min-height:44px}
.catalog-notice{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:13px;line-height:1.5;margin:6px 0}
.catalog-notice p{margin:0;flex:1;min-width:0}.catalog-notice .button{min-width:44px;min-height:44px;font-size:13px;padding:8px}
.line-member-hint{font-size:12px;line-height:1.5;margin:4px 0}
.picks-search{display:grid;gap:6px;margin:12px 0}.picks-search input{width:100%;min-height:44px;font-size:16px}
.checkout-flow{display:grid;grid-template-columns:minmax(0,1fr) minmax(230px,.7fr);gap:20px;align-items:start}
.checkout-flow>*,.checkout-flow fieldset,.trial-confirm fieldset{min-width:0;min-inline-size:0}
.checkout-flow .checkout-summary{grid-column:2;grid-row:1 / span 2}.checkout-flow .checkout-email{grid-column:1;grid-row:1}.checkout-flow .checkout-order{grid-column:1;grid-row:2}
.checkout-email h2{margin-top:0}.checkout-email form{display:grid;gap:12px}.checkout-email .email-verified{margin:0}
.checkout-email input{width:100%;min-height:44px;font-size:16px}.checkout-email .actions{gap:8px}
.checkout-email button.primary{min-height:48px;font-size:16px}
.checkout-email button.secondary{min-height:48px;font-size:16px}
.checkout-order .consent-details,.trial-confirm .consent-details{margin:12px 0 8px}
.checkout-order .check,.trial-confirm .check{margin:0 0 12px;min-height:44px}
.trial-confirm .actions{gap:8px}.trial-confirm .trial-demand{margin:12px 0}
#journey-dialog .trial-gate-actions{display:flex;flex-wrap:wrap;gap:8px}
#journey-dialog .trial-gate-actions :is(button,a.button){min-height:48px;margin:0}
.trial-confirm .trial-demand label{display:flex;gap:8px;align-items:center;min-height:44px}
.checkout-order{padding-bottom:20px}.order-return-link{overflow-wrap:anywhere}
.journey-footer .contact-icons{display:flex;gap:8px;flex-wrap:wrap;margin-top:8px}
.journey .home-section details+details{margin-top:8px}
.journey .microcopy{display:flex;flex-wrap:wrap;gap:8px}
.journey .microcopy a{margin:0;min-width:44px}
body[data-route='/login'] .panel>.actions+details{margin-top:8px}
body[data-route='/login'] .narrow>.microcopy{margin-top:8px}
body[data-route='/checkout/email'] .narrow>.microcopy{margin-top:8px}
@media(min-width:768px) and (max-width:1000px){
 .journey-header{padding:12px 20px;gap:8px}.journey-brand{flex:1;min-width:0}
 .journey-header nav{display:none}.journey-header .journey-menu{display:inline-flex;width:44px;min-height:44px;padding:8px}
 .journey-header nav.open{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:8px;background:var(--color-bg);padding:12px 20px;max-height:calc(100dvh - 80px);overflow:auto;border-bottom:1px solid var(--color-line)}
}

/* Owner 2026-10-11 A3–A11/A19: improve existing controls without changing page layout. */
.journey .desktop-catalog-filters{align-items:start}
.journey .desktop-catalog-filters>.brand-select{flex:1;min-width:135px}
.brand-select{display:grid;gap:6px;position:relative}
.brand-select-button{display:flex!important;align-items:center;justify-content:space-between;gap:8px;width:100%;min-height:44px!important;border:1px solid var(--color-line)!important;border-radius:6px;background:var(--paper)!important;padding:8px 10px!important;font-size:16px;color:var(--ink);text-decoration:none!important}
.brand-select-button::before{display:none!important}
.brand-select-button[aria-pressed=true]{border-color:var(--ink)!important;box-shadow:inset 0 0 0 1px var(--ink)}
.brand-filter{position:relative;min-width:0}
.brand-popover{position:absolute;z-index:25;top:calc(100% + 8px);left:0;width:360px;min-width:320px;max-width:calc(100vw - 32px);max-height:60dvh;padding:12px;background:var(--paper);border:1px solid var(--color-line);border-radius:10px;box-shadow:0 10px 28px #17233726;overflow:auto;display:grid;gap:8px}
.brand-popover .brand-options{display:grid;grid-template-columns:1fr 1fr;gap:8px;overflow:visible;max-height:none}
.brand-options button{min-height:44px;min-width:44px;padding:8px;font-size:14px}
.brand-options button[hidden]{display:none!important}
.brand-options button[aria-pressed=true]{background:var(--ink);color:var(--paper)}
.mobile-sheet .brand-picker-scroll{display:block}.mobile-sheet .brand-picker-scroll>input{margin:6px 0 8px}.mobile-sheet .brand-picker-scroll .brand-options{max-height:none;overflow:visible}
.mobile-sheet .sheet-header-actions{display:flex;gap:8px;align-items:center}.mobile-sheet .sheet-header-actions button{min-width:44px;min-height:44px}
.mobile-sheet footer[hidden]{display:none!important}
.journey .detail a[data-source-open]{display:inline-flex;align-items:center;min-width:44px;min-height:44px;line-height:1.5}
#journey-dialog .actions{display:flex;gap:8px;flex-wrap:wrap}#journey-dialog-content>h2{padding-right:44px}
.journey .email-text,.journey .checkout-email p,.journey .panel p{overflow-wrap:anywhere;min-width:0}
.journey .field-error{color:#7b1b16;font-size:14px;line-height:1.5}.field-error[hidden]{display:none}
.email-submit-row{display:flex;gap:8px;flex-wrap:wrap}.email-submit-row button{min-height:48px}
.journey .checkout-order form>.actions+.button{margin-top:8px}
.journey .order-progress{display:flex;gap:0;flex-wrap:nowrap;align-items:start;padding:0;list-style:none}
.journey .order-progress li{flex:1;position:relative;text-align:center;font-size:12px;padding:30px 4px 0;line-height:1.5;color:var(--color-neutral-700)}
.journey .order-progress li::before{content:'';position:absolute;top:7px;left:calc(50% - 6px);width:12px;height:12px;border:2px solid #8f969b;border-radius:50%;background:var(--paper);z-index:1}
.journey .order-progress li+li::after{content:'';position:absolute;top:14px;left:-50%;width:100%;height:2px;background:#bdc3c7}
.journey .order-progress li.done::before{background:#537d67;border-color:#537d67}.journey .order-progress li.current::before{border-color:var(--ink);box-shadow:0 0 0 3px #17233720}.journey .order-progress li.current{font-weight:700;color:var(--ink)}
.journey .order-progress li.done+li::after{background:#537d67}
.journey .product-body .price-range{white-space:nowrap}.journey .member-nav{flex-wrap:nowrap;overflow-x:auto}.journey .member-nav a{flex:none;white-space:nowrap}
body[data-route='/account/profile'] .form{max-width:560px}
body[data-route='/account/orders'] #journey-content>button[data-action=refresh]{margin-bottom:8px}
.page-skeleton.page-skeleton-form{grid-template-columns:1fr;max-width:760px}.page-skeleton.page-skeleton-form span{height:80px}.page-skeleton.page-skeleton-form span:first-child{height:28px;width:55%}
.legal-link-group{display:inline-flex;align-items:center;white-space:nowrap}.journey .legal-link-group a,#journey-dialog .legal-link-group a{display:inline-flex;align-items:center;min-width:44px;min-height:44px;margin:0;line-height:1.5}
.source-brand-cards{list-style:none;padding:0;margin:12px 0;display:grid;gap:12px}.source-brand-cards li{display:grid;grid-template-columns:80px minmax(0,1fr);gap:12px;align-items:center;border-top:1px solid var(--color-line);padding-top:12px}.source-brand-cards img,.source-brand-placeholder{display:block;width:80px;height:auto;aspect-ratio:3/4;object-fit:contain;background:var(--color-neutral-200);border-radius:6px}.source-brand-placeholder{display:flex;align-items:center;justify-content:center;padding:8px;font-size:12px;overflow-wrap:anywhere}.source-brand-cards li>div{display:grid;gap:8px}.source-brand-cards strong{overflow-wrap:anywhere}.product-public-code{font-size:12px;color:var(--color-neutral-700)}
.source-brand-cards img[hidden]{display:none!important}
@media(max-width:767px){
 body[data-route='/checkout/email']:has(#email-start) .email-submit-row{position:fixed;z-index:12;bottom:0;left:0;right:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--color-line);display:flex;gap:8px}
 body[data-route='/checkout/email'] .email-submit-row .primary{flex:1}
 body[data-route='/checkout/email']:has(#email-start){padding-bottom:88px}
 body[data-route='/checkout/earlybird']:has(.checkout-ready),body[data-route='/checkout/standard']:has(.checkout-ready){padding-bottom:88px}
 .journey .member-nav{gap:8px}.journey .member-nav a{padding:9px 10px;font-size:12px}
}
@media(max-width:767px){
 .journey-header{padding:10px 12px;gap:8px;flex-wrap:nowrap}
 .journey-brand{flex:1;min-width:0;gap:0}.journey-brand>span:first-child{font-size:22px;letter-spacing:4px}.journey-brand>span:last-child{display:none}
 .journey-header .journey-picks,.journey-header #journey-auth{font-size:12px;padding:8px;min-height:44px;white-space:nowrap}
 .journey-header .journey-menu{flex:none;width:44px;padding:8px}
 .journey-header nav.open{position:absolute;top:100%;left:0;right:0;background:var(--color-bg);padding:12px 16px;max-height:calc(100dvh - 65px);overflow:auto;border-bottom:1px solid var(--color-line)}
 body[data-route='/catalog'] .journey{padding-top:8px}
 body[data-route='/catalog'] .journey h1{font-size:22px;line-height:1.4;margin:0}
 body[data-route='/catalog'] .catalog-intro{display:block;font-size:14px;line-height:1.5;white-space:normal;margin:6px 0}
 body[data-route='/catalog'] .credits-pills{display:none}
 body[data-route='/catalog'] .catalog-notice{font-size:12px;line-height:1.4;margin:4px 0}
 body[data-route='/catalog'] .catalog-layout{margin-top:6px}
 .journey .catalog-toolbar-top{display:grid;grid-template-columns:minmax(0,1fr) minmax(108px,138px);gap:8px;align-items:stretch}
 .journey .catalog-toolbar-top .search-field{grid-column:1 / -1;min-width:0;width:100%;margin:0}
 .journey .catalog-toolbar-top .search-field input{width:100%;min-height:44px}
 .journey .catalog-toolbar-top .mobile-filter-trigger{grid-column:1;margin:0;min-height:44px;justify-content:center}
 .journey .catalog-toolbar-top .catalog-select{grid-column:2;max-width:none;margin:0;font-size:0;gap:0}
 .journey .catalog-toolbar-top .catalog-select select{font-size:16px!important;width:100%;min-height:44px;margin:0}
 .selected-filter-tags:empty{display:none}
 .checkout-flow{display:flex;flex-direction:column;gap:12px}.checkout-flow>*{width:100%}
 .checkout-flow .checkout-summary{order:0;position:static}.checkout-flow .checkout-email{order:1}.checkout-flow .checkout-order{order:2}
 .checkout-summary dl{margin:0}.checkout-summary h2{font-size:18px;margin:0 0 8px}.checkout-summary p{font-size:13px;margin:8px 0 0}
 .checkout-order.checkout-ready .checkout-actions{position:fixed;z-index:10;bottom:0;left:0;right:0;background:var(--paper);border-top:1px solid var(--color-line);padding:10px 16px calc(10px + env(safe-area-inset-bottom));margin:0}
 .checkout-order .checkout-actions .primary{width:100%;min-height:48px}.checkout-order.checkout-ready{padding-bottom:88px}
 .journey .checkout-order:not(.checkout-ready) #checkout button.primary{position:static;left:auto;right:auto;bottom:auto;width:100%;box-shadow:none;margin:0}
 .journey .checkout-order:not(.checkout-ready) #checkout{padding-bottom:0}
 .trial-confirm .primary{min-height:48px;width:100%}
 body[data-route='/account/orders'] .journey{padding-bottom:110px}
 .order-selected .order-return-link{position:fixed;z-index:10;bottom:calc(10px + env(safe-area-inset-bottom));left:16px;right:16px;min-height:48px;margin:0;box-shadow:0 0 0 10px var(--color-bg);text-align:center}
 #journey-notice:empty{display:none}
}

/* Owner 2026-10-14: wrap complete policy links without separator-only rows. */
.journey .legal-links-inline,#journey-dialog .legal-links-inline{display:flex;flex-wrap:wrap;align-items:center;gap:0 16px;line-height:1.5}.trial-consent-error[hidden]{display:none}.trial-consent-error{margin:8px 0;overflow-wrap:anywhere}
.journey .policy-update-notice{max-width:none;margin:12px 0}.journey .policy-update-notice details{margin:0;padding:0;border:0;background:transparent}.journey .policy-update-notice summary{font-size:14px;line-height:1.5}.journey .policy-update-notice .legal-update-content{line-height:1.8}

#journey-dialog .trial-demand>summary{display:flex;align-items:center;min-width:44px;min-height:44px;padding:8px;box-sizing:border-box}
#journey-dialog .trial-form-footer{display:grid;gap:8px;min-width:0}
#journey-dialog .trial-form-footer .trial-consent-error{margin:0}
#journey-dialog .trial-buttons{display:flex;gap:8px}
#journey-dialog .trial-buttons button{flex:1;min-width:0;min-height:48px}
@media(max-width:767px){
 #journey-dialog:has(.trial-confirm){overflow:hidden}
 #journey-dialog:has(.trial-confirm) #journey-dialog-content{display:flex;flex-direction:column;max-height:calc(90dvh - 40px - env(safe-area-inset-bottom));min-height:0}
 #journey-dialog:has(.trial-confirm) #journey-dialog-content>h2,#journey-dialog:has(.trial-confirm) #journey-dialog-content>p{flex:none}
 #journey-dialog .trial-confirm{display:flex;flex-direction:column;flex:1;min-height:0;gap:8px}
 #journey-dialog .trial-form-scroll{flex:1;min-height:0;overflow:auto;padding-bottom:8px}
#journey-dialog .trial-form-footer{flex:none}
 #journey-dialog .trial-form-footer .primary{position:static}
}

/* C5 shared navigation, including the legal/error shell. */
.journey-brand small{font-size:12px!important;line-height:1.5}.journey-header .navigation-link{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:8px;background:transparent;border:0;border-radius:0;color:inherit;font:inherit;font-size:14px;text-decoration:none;white-space:nowrap}.journey-header .navigation-link[hidden],#journey-navigation a[hidden]{display:none!important}.journey-footer .contact-icons a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;min-height:44px}.journey-footer{text-align:center}
@media(max-width:1023px){.journey-header nav{display:none}.journey-header .journey-menu{display:inline-flex;flex:none;width:44px;min-height:44px}.journey-header nav.open{display:flex;position:absolute;top:100%;left:0;right:0;flex-direction:column;align-items:stretch;gap:8px;background:var(--color-bg);padding:12px 20px;max-height:calc(100dvh - 80px);overflow:auto;border-bottom:1px solid var(--color-line)}#journey-navigation a,#journey-navigation .navigation-link{min-height:44px;font-size:15px;padding:10px 8px;justify-content:flex-start}}
@media(min-width:1024px){.journey-header nav{display:flex!important;gap:12px;align-items:center}.journey-header .journey-menu{display:none!important}}
@media(max-width:767px){.journey-brand{gap:8px}.journey-brand>span:first-child{font-size:20px;letter-spacing:3px}.journey-brand>span:last-child{display:grid!important;font-size:13px;line-height:1.3}.journey-brand small{font-size:12px!important}.journey-header .navigation-link{font-size:12px;padding:8px}.journey-header{gap:8px}}

@media(max-width:767px){.journey #email-start .email-submit-row button.primary,.journey #email-verify .email-submit-row button.primary{position:static;left:auto;right:auto;bottom:auto;width:auto;margin:0;box-shadow:none}}

.journey a[data-navigation-pending="true"]{opacity:.65;cursor:progress;transition:none!important}
/* H1/T2: the current purchase step stays reachable without scrolling. */
@media(max-width:767px){
 body[data-route='/plans'] .plan-choice-action:has(.primary),.journey .checkout-email .email-submit-row{position:fixed;z-index:12;bottom:0;left:0;right:0;margin:0;padding:10px 16px calc(10px + env(safe-area-inset-bottom));background:var(--paper);border-top:1px solid var(--color-line);display:flex;gap:8px}
 body[data-route='/plans'] .plan-choice-action .primary,.journey .checkout-email .email-submit-row button{flex:1;min-height:48px;margin:0}
 body[data-route='/plans'] .plan-choice-action .primary{width:100%;justify-content:center}
 .checkout-flow.checkout-email-first .checkout-email{order:0}.checkout-flow.checkout-email-first .checkout-summary{order:1}
 body:has(.plan-choice-action .primary) .journey-footer,body:has(.checkout-email .email-submit-row) .journey-footer{padding-bottom:calc(88px + env(safe-area-inset-bottom))}
 body:has(.checkout-email .email-submit-row) .journey{padding-bottom:88px}
 html:has(.checkout-email .email-submit-row){scroll-padding-bottom:100px}
 body[data-route='/account/orders']:has(.checkout-email .email-submit-row) .order-selected .order-return-link{position:static;left:auto;right:auto;bottom:auto;box-shadow:none}
}
/* A7: return control gets its own row so title and close button never overlap. */
.mobile-sheet>header{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px 12px}
.mobile-sheet>header h2{grid-column:1;grid-row:1;min-width:0;text-wrap:balance}
.mobile-sheet>header .dialog-close{grid-column:2;grid-row:1;position:static;justify-self:end;width:44px;min-width:44px;padding:0}
.mobile-sheet>header [data-action=back-brand-picker]{grid-column:1 / -1;grid-row:2;justify-self:start;font-size:14px}
/* A8: the progress track never uses the button surface inherited by .done. */
.journey .order-progress li,.journey .order-progress li.done{background:transparent;border:0;border-radius:0;color:var(--color-neutral-700)}
.journey .order-progress li.done{color:#41634c}
.journey .order-progress li.current{color:var(--ink);font-weight:700}
@media(min-width:768px){.brand-popover{position:fixed;top:var(--brand-popover-top,12px);left:var(--brand-popover-left,16px);max-height:var(--brand-popover-height,calc(100dvh - 24px));box-sizing:border-box}}

/* Owner 2026-10-11 E: readable legal links, consistent sign-in actions and unobscured detail footer. */
#journey-dialog .legal-links-inline a{font-size:12px}
body[data-route='/login'] .journey [data-provider]{height:52px;min-height:52px;padding:12px 16px;line-height:1.5;display:inline-flex;align-items:center;justify-content:center;white-space:nowrap}
.journey .detail .actions>.primary{white-space:normal;text-align:center;justify-content:center;font-size:14px;line-height:1.5;padding:10px 12px;overflow-wrap:normal;min-width:0}
.journey .detail .actions[hidden]{display:none!important}
.journey .detail .snapshot-image-fallback{aspect-ratio:3/4;min-height:0;background:var(--color-neutral-100);text-align:center;overflow-wrap:anywhere}

.journey .detail img[hidden]{display:none!important}

.journey .product-image.snapshot-image-empty{aspect-ratio:3/4}
.journey .product-image .snapshot-image-fallback{position:absolute;inset:0;aspect-ratio:auto;min-height:0;background:var(--color-neutral-100);text-align:center;overflow-wrap:anywhere}

/* R7 A5/A6: fixed actions stay above the footer; long purchase labels may wrap. */
.journey .detail .actions>.locked-plan-value{flex:0 0 100%;min-height:0;margin:0 0 4px;font-size:14px;line-height:1.5}
.brand-options button:has(.brand-option-name){display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:4px 6px}.brand-option-name{overflow-wrap:anywhere}.brand-option-meta{white-space:nowrap}
@media(max-width:767px){.has-customer-dock .journey{padding-bottom:calc(24px + var(--customer-dock-reserved-height,96px))}.journey .detail{padding-bottom:24px}.journey .detail .actions{align-items:stretch}.journey .detail .actions>.button,.journey .detail .actions>button{flex:1 1 0;min-width:0}.journey .detail .actions>.locked-plan-value{flex:0 0 100%;min-height:0;margin:0 0 4px;font-size:14px;line-height:1.5}}
