/* New inner screens only; the approved Phase 1 layout/tokens remain intact. */
[hidden] { display: none !important; }
.p2-sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.p2-main { padding-block: 0 44px; min-height: 65vh; }
.p2-main h1 { font-size: 25px; line-height: 1.6; margin: 0; font-weight: 700; }
.p2-main h2 { font-size: 19px; line-height: 1.65; }
.p2-main input, .p2-dialog input { font: inherit; color: var(--navy); }
.p2-backbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 14px; padding-block: 8px 14px; border-top: 1px solid var(--border); font-size: 13px; }
.p2-backbar a { display: inline-flex; align-items: center; gap: 4px; min-height: 44px; color: var(--navy); }
.p2-backbar a .icon { width: 18px; height: 18px; }
.p2-backbar > span { color: var(--text-secondary); min-width: 0; overflow-wrap: anywhere; }
.p2-page-header { margin-block: 14px 24px; }
.p2-page-header h1::after { content: ''; display: block; height: 3px; width: 36px; background: var(--brand-pink); border-radius: 3px; margin-top: 12px; }
.p2-page-header p { color: var(--text-secondary); margin-top: 13px; line-height: 1.9; max-width: 640px; }
.p2-eyebrow { display: block; font-size: 13px; font-weight: 600; color: var(--brand-pink); margin-bottom: 7px; }
.p2-muted { color: var(--text-secondary); font-size: 13px; line-height: 1.9; }
.p2-notice { padding: 14px 16px; border: 1px solid var(--border-pink); border-radius: var(--radius-sm); background: var(--brand-pink-soft); font-size: 13px; line-height: 1.85; margin-bottom: 20px !important; }
.p2-button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 100%; min-height: 50px; padding: 12px 16px; border: 1px solid transparent; border-radius: var(--radius-sm); background: var(--brand-pink); color: var(--white) !important; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-button); cursor: pointer; }
.p2-button .icon { width: 18px; height: 18px; }
.p2-button-secondary { border-color: var(--border); background: var(--white); color: var(--navy) !important; box-shadow: none; }
.p2-button:disabled { background: var(--navy-soft); color: var(--text-secondary) !important; box-shadow: none; border-color: var(--border); cursor: default; }
.p2-text-link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--brand-pink) !important; font-weight: 500; }
.p2-text-link .icon { width: 18px; height: 18px; }
.p2-branches { display: grid; gap: 16px; }
.p2-branch { display: flex; flex-direction: column; align-items: start; padding: 24px; border: 1px solid var(--border-pink); border-radius: var(--radius-lg); background: var(--brand-pink-soft); box-shadow: var(--shadow-card); }
.p2-branch:nth-child(2) { background: var(--white); border-color: var(--border); }
.p2-branch-icon { display: grid; place-items: center; width: 64px; height: 64px; border: 1px solid var(--border-pink); border-radius: var(--radius-md); background: var(--white); margin-bottom: 18px; color: var(--brand-pink); }
.p2-branch-icon .icon { width: 32px; height: 32px; }
.p2-branch h2 { margin-bottom: 8px; }
.p2-branch p { color: var(--text-secondary); line-height: 1.9; }
.p2-branch .p2-card-action { margin-top: 20px; }
.p2-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 12px; }
.p2-card { min-width: 0; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px; background: var(--white); box-shadow: var(--shadow-card); }
.p2-card-link { display: flex; height: 100%; flex-direction: column; }
.p2-card .card-image { aspect-ratio: 1; }
.p2-placeholder { aspect-ratio: 4 / 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 12px; text-align: center; background: var(--navy-soft); color: var(--navy); border-radius: var(--radius-sm); }
.p2-placeholder > .icon { width: 42px; height: 42px; stroke-width: 1.25; }
.p2-placeholder > span { font-size: 11px; color: var(--text-secondary); }
.p2-placeholder-large { aspect-ratio: 4 / 3; gap: 20px; }
.p2-placeholder-large > .icon { width: 72px; height: 72px; }
.p2-placeholder-large > span { font-size: 13px; }
.p2-card-body { padding: 12px 5px 5px; display: flex; flex-direction: column; flex: 1; gap: 7px; }
.p2-card-meta { font-size: 11px; color: var(--text-secondary); line-height: 1.7; }
.p2-card-body h2 { font-size: 15px; font-weight: 600; min-height: 50px; line-height: 1.7; }
.p2-card-price { color: var(--brand-pink); font-size: 21px; font-weight: 700; margin-top: auto !important; }
.p2-card-price small { font-size: 13px; font-weight: 500; }
.p2-card-action { display: flex; align-items: center; justify-content: space-between; gap: 4px; min-height: 44px; color: var(--brand-pink); font-size: 12px; font-weight: 600; margin-top: auto; }
.p2-card-action .icon { width: 16px; height: 16px; }
.p2-product-intro { display: grid; gap: 8px; }
.p2-gallery { border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 7px; background: var(--white); overflow: hidden; }
.p2-gallery .card-image { aspect-ratio: 1; }
.p2-product-info .p2-page-header { margin-bottom: 16px; }
.p2-full-total { padding: 16px; border: 1px solid var(--border-pink); border-radius: var(--radius-md); background: var(--brand-pink-soft); display: flex; flex-direction: column; gap: 3px; }
.p2-full-total > span { font-size: 13px; }
.p2-full-total > span:last-child { color: var(--text-secondary); }
.p2-full-total strong, .p2-product-price { font-size: 28px; font-weight: 700; color: var(--brand-pink); }
.p2-full-total strong small, .p2-product-price small { font-size: 15px; font-weight: 500; }
.p2-product-info > .p2-text-link { margin-top: 8px; }
.p2-contents { margin-top: 28px; scroll-margin-top: 20px; }
.p2-section-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.p2-section-heading > span { font-size: 12px; color: var(--text-secondary); }
.p2-contents fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
.p2-select-all { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; gap: 11px; align-items: center; min-height: 60px; background: var(--navy-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; cursor: pointer; }
.p2-select-all > span { font-weight: 600; }
.p2-select-all small { font-size: 12px; }
.p2-item-list { margin-top: 12px; border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
.p2-item-row { display: grid; grid-template-columns: 24px minmax(0,1fr) auto; align-items: center; gap: 10px; padding: 16px 12px; min-height: 72px; cursor: pointer; background: var(--white); }
.p2-item-row + .p2-item-row { border-top: 1px solid var(--border); }
.p2-item-row:has(input:not(:checked)) { background: var(--off-white); }
.p2-item-row input, .p2-select-all input { appearance: auto; accent-color: var(--brand-pink); width: 23px; height: 23px; margin: 0; cursor: pointer; }
.p2-item-name { font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; }
.p2-item-price { font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.p2-item-price small { font-size: 11px; font-weight: 500; }
.p2-selection-summary { margin-top: 24px; border: 1px solid var(--border-pink); border-radius: var(--radius-md); padding: 20px; background: var(--brand-pink-soft); }
.p2-selection-summary h2 { margin-bottom: 10px; }
.p2-current-price { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding-block: 12px; }
.p2-current-price strong { font-size: 24px; color: var(--brand-pink); }
.p2-current-price small { font-size: 14px; }
.p2-selection-summary .p2-muted { margin-top: 12px; }
[data-empty-hint] { padding-bottom: 12px; }
.p2-sticky-summary { position: fixed; inset-inline: 0; bottom: 0; z-index: 8; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 16px max(10px,env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--border-pink); box-shadow: 0 -6px 22px rgba(10,44,85,.08); }
.p2-sticky-summary > div { display: flex; flex-direction: column; }
.p2-sticky-summary > div > span { font-size: 12px; }
.p2-sticky-summary strong { font-size: 21px; color: var(--brand-pink); }
.p2-sticky-summary small { font-size: 12px; }
.p2-sticky-summary .p2-button { width: 140px; }
.p2-description { margin-top: 14px !important; color: var(--text-secondary); line-height: 1.95; }
.p2-field { margin-top: 22px; display: flex; flex-direction: column; gap: 9px; }
.p2-field label { font-size: 14px; font-weight: 600; }
.p2-field label > span { font-size: 12px; font-weight: 400; color: var(--text-secondary); }
.p2-field input { width: 100%; min-width: 0; min-height: 50px; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 11px 13px; background: var(--white); font-size: 16px; }
.p2-field small { color: var(--text-secondary); font-size: 12px; }
.p2-personalization-preview { padding: 18px; border: 1px solid var(--border-pink); border-radius: var(--radius-sm); background: var(--brand-pink-soft); text-align: center; }
.p2-personalization-preview span { color: var(--text-secondary); font-size: 12px; }
.p2-personalization-preview p { margin-top: 8px; font-size: 18px; overflow-wrap: anywhere; }
.p2-quantity-field { display: flex; align-items: center; justify-content: space-between; margin-block: 24px 18px; }
.p2-quantity { display: flex; direction: ltr; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.p2-quantity button { width: 46px; height: 48px; border: 0; color: var(--navy); background: var(--navy-soft); font-size: 22px; cursor: pointer; }
.p2-quantity button:disabled { color: var(--text-muted); }
.p2-quantity input { width: 54px; height: 48px; border: 0; text-align: center; appearance: textfield; font-size: 16px; }
.p2-quantity input::-webkit-inner-spin-button { appearance: none; }
.p2-product-subtotal { margin-bottom: 16px !important; }
.p2-product-info > .p2-muted { margin-top: 12px; }
.p2-details { margin-top: 28px; border-block: 1px solid var(--border); }
.p2-details summary { padding: 18px 0; font-weight: 600; cursor: pointer; }
.p2-details p { padding-bottom: 18px; color: var(--text-secondary); }
.p2-related { margin-top: 28px; }
.p2-related .p2-muted { margin-top: 8px; }
.p2-notebook-intro { display: grid; gap: 22px; }
.p2-notebook-intro .card-image { aspect-ratio: 4/3; }
.p2-notebook-intro h2 { margin-bottom: 14px; }
.p2-notebook-intro p { margin-bottom: 14px; }
.p2-studio { display: grid; gap: 22px; }
.p2-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; }
.p2-steps button { display: flex; align-items: center; flex-direction: column; gap: 6px; padding: 12px 5px; min-height: 78px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); color: var(--navy); font-size: 12px; cursor: pointer; }
.p2-steps b { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-soft); }
.p2-steps [aria-current="step"] { background: var(--brand-pink-soft); border-color: var(--brand-pink); }
.p2-steps [aria-current="step"] b { background: var(--brand-pink); color: var(--white); }
.p2-studio-panels { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-card); }
.p2-studio-placeholder { padding: 40px 8px; display: grid; justify-items: center; gap: 16px; text-align: center; }
.p2-studio-placeholder .icon { width: 44px; height: 44px; color: var(--brand-pink); }
.p2-studio-placeholder small { color: var(--text-secondary); }
.p2-studio-controls { display: flex; gap: 12px; margin-top: 28px; }
.p2-studio-summary { margin: 20px 0; }
.p2-studio-summary > div { display: grid; gap: 5px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.p2-studio-summary dt { color: var(--text-secondary); font-size: 12px; }
.p2-studio-summary dd { margin: 0; overflow-wrap: anywhere; }
.p2-empty { text-align: center; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px 22px; }
.p2-empty > .icon { width: 42px; height: 42px; color: var(--brand-pink); margin: 0 auto 18px; }
.p2-empty p { color: var(--text-secondary); margin-block: 12px 22px; }
.p2-dialog-open { overflow: hidden; }
.p2-dialog { width: calc(100% - 24px); max-width: 540px; max-height: 88dvh; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; color: var(--navy); background: var(--white); font-family: inherit; box-shadow: var(--shadow-soft); }
.p2-dialog::backdrop { background: rgba(10,44,85,.48); }
.p2-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.p2-dialog-header h2 { font-size: 20px; margin: 0; }
.p2-dialog-header .icon-button { font-size: 30px; background: var(--navy-soft); flex: 0 0 44px; cursor: pointer; }
.p2-menu-dialog { margin: 0 0 0 auto; width: min(88vw,380px); max-height: 100dvh; height: 100dvh; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.p2-menu-links { display: flex; flex-direction: column; }
.p2-menu-links a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 58px; padding: 12px 10px; border-bottom: 1px solid var(--border); font-size: 15px; }
.p2-menu-links .icon { width: 18px; height: 18px; color: var(--brand-pink); }
.p2-menu-links [aria-current="page"] { background: var(--brand-pink-soft); border-radius: var(--radius-sm); }
.p2-search-field { display: flex; align-items: center; gap: 8px; padding-inline: 10px 4px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--white); }
.p2-search-field > .icon { width: 20px; height: 20px; }
.p2-search-field input { width: 100%; min-width: 0; min-height: 54px; border: 0; background: transparent; font-size: 16px; }
.p2-search-submit { border: 0; background: var(--navy); color: var(--white); min-width: 48px; min-height: 44px; padding: 8px; border-radius: 9px; cursor: pointer; }
.p2-search-count { margin-block: 16px !important; font-size: 13px; color: var(--text-secondary); }
.p2-search-results { list-style: none; padding: 0; margin: 0; }
.p2-search-results a { display: flex; flex-direction: column; gap: 6px; padding: 14px 4px; border-bottom: 1px solid var(--border); }
.p2-search-results strong { font-size: 14px; line-height: 1.8; }
.p2-search-results span { font-size: 12px; color: var(--text-secondary); }
.p2-search-empty { padding: 24px 0; }
.p2-search-empty p { margin-top: 8px; color: var(--text-secondary); }
.p2-review-items { list-style: none; padding: 0; margin: 18px 0; }
.p2-review-items li { padding-block: 10px; border-bottom: 1px solid var(--border); font-size: 14px; overflow-wrap: anywhere; }
.p2-review-total { font-size: 22px; font-weight: 700; color: var(--brand-pink); margin-bottom: 20px !important; }
.p2-button, .p2-card, .p2-branch { transition: transform var(--motion-duration) ease, box-shadow var(--motion-duration) ease; }
.p2-button:active:not(:disabled) { transform: scale(.985); }
@media (hover:hover) and (pointer:fine) {
    .p2-card:hover, .p2-branch:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
    .p2-menu-links a:hover { background: var(--brand-pink-soft); }
}
@media (min-width:768px) {
    .p2-main { padding-bottom: 64px; }
    .p2-main h1 { font-size: 32px; }
    .p2-backbar { padding-bottom: 20px; }
    .p2-branches, .p2-product-intro, .p2-notebook-intro { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 32px; }
    .p2-product-info .p2-page-header { margin-top: 0; }
    .p2-gallery { align-self: start; }
    .p2-grid { gap: 20px; }
    .p2-contents, .p2-selection-summary { max-width: 820px; margin-inline: auto; }
    .p2-contents { margin-top: 44px; }
    .p2-selection-summary .p2-button { max-width: 320px; }
    .p2-sticky-summary { display: none; }
    .p2-studio { grid-template-columns: 200px minmax(0,1fr); align-items: start; }
    .p2-steps { grid-template-columns: 1fr; }
    .p2-steps button { flex-direction: row; min-height: 58px; gap: 12px; padding: 12px; }
    .p2-notebook-intro .p2-button { max-width: 340px; }
}
@media (min-width:1024px) {
    .p2-grid { grid-template-columns: repeat(4,minmax(0,1fr)); }
    .p2-grid[data-catalog="bags"] { grid-template-columns: repeat(3,minmax(0,1fr)); }
    .p2-card-body { padding: 16px 10px 6px; }
    .p2-card-body h2 { font-size: 17px; }
    .p2-card-action { font-size: 14px; }
}
@media (prefers-reduced-motion:reduce) {
    .p2-button, .p2-card, .p2-branch { transform: none !important; transition: none !important; }
}
