/* Shared M3 controls; AIPH_00054 information hierarchy from confirmed Demo r1. */
/* r2 keeps the demo's segmented tabs and list hierarchy within the existing H5 shell. */
.pm-page.pm-catalog .surface{padding:16px}
.pm-page.pm-catalog{gap:17px}.pm-page.pm-catalog .search-field{flex:0 0 46px;height:46px}.pm-page.pm-catalog .pm-tabs button{font-size:12px}
.pm-catalog{display:flex;flex-direction:column;min-height:calc(100vh - 112px);min-height:calc(100dvh - 112px);gap:17px}.pm-catalog .pm-tabs{background:#e9eee2;border-radius:11px;padding:4px}.pm-catalog .pm-tabs button{border:0;border-radius:8px;font-size:12px;font-weight:500;color:#292c29;min-height:40px}.pm-catalog .pm-tabs .primary-button{background:#fff;box-shadow:0 1px 3px #3331}.pm-catalog .search-field{background:#fff;border:1px solid #bcc5b0;border-radius:10px;min-height:46px}.pm-catalog .search-field input{height:44px;font-size:13px}.pm-catalog .surface{border:1px solid #e0e4d8;border-radius:15px;padding:0 16px;background:#fff}.pm-catalog .list-row{padding:15px 0;gap:12px;min-height:74px}.pm-catalog .row-icon{width:37px;height:37px;border-radius:10px;background:#eff1ea;color:#536447}.pm-catalog .row-title{font-size:14px;line-height:23px}.pm-catalog .row-subtitle{font-size:12px;line-height:20px;color:#70756e}.pm-count{font-size:12px;color:#70756e;margin-top:-10px}.pm-catalog-footer{margin-top:auto;padding-top:18px}.pm-catalog-footer button{width:100%;min-height:44px;background:#38432f;border:1px solid #38432f;border-radius:24px;font-size:13px;font-weight:550;color:#fff}
.pm-page .pm-tabs{gap:4px;align-items:stretch}.pm-page .pm-tabs button{font-size:13px;padding:8px 5px;min-width:0;white-space:nowrap}.pm-list-thumb{width:48px;height:48px;flex:none;display:grid;place-items:center;border-radius:10px;overflow:hidden;background:var(--surface-container,#eef1e9)}.pm-list-thumb img{width:100%;height:100%;object-fit:cover}.pm-list-thumb svg{width:24px;height:24px}.pm-detail-image{display:block;width:100%;max-height:440px;object-fit:contain;border-radius:12px;background:var(--surface-container,#eef1e9)}.pm-page [data-pm="delete"]{color:var(--error,#ba1a1a)}
.pm-cover{display:grid;place-items:center;width:100%;aspect-ratio:1.25;border:0;border-radius:12px;background:var(--surface-container,#eaf0e9);padding:0;overflow:hidden}.pm-cover img{height:100%;width:100%;object-fit:contain}.pm-cover-empty svg{width:88px;height:88px;color:var(--on-surface-variant,#788477);opacity:.65}.pm-tabs{background:var(--surface-container,#edf1ed);padding:4px;border-radius:12px}.pm-tabs button{flex:1;min-height:40px;border-radius:9px}.pm-tabs .primary-button{background:var(--surface,#fff);color:var(--on-surface,#252d28);box-shadow:0 1px 3px #0001}
.pm-page{gap:22px}.pm-page section{min-width:0}.pm-page h2,.pm-page h3{margin:0 0 12px;font-size:18px;line-height:1.5}.pm-page h3{font-size:16px}.pm-form{display:grid;gap:24px}.pm-form textarea{min-height:116px;resize:vertical}.pm-tabs,.pm-actions{display:flex;gap:12px;align-items:center}.pm-actions{margin-top:8px}.pm-actions>*{flex:1}.pm-spec-row{display:grid;grid-template-columns:minmax(76px,.8fr) minmax(100px,1.5fr) auto;gap:8px;margin:10px 0;align-items:center}.pm-spec-row input{min-width:0;width:100%;box-sizing:border-box;padding:12px 10px;border:1px solid var(--outline-variant,#c6ccd4);border-radius:10px;background:var(--surface,#fff);font:inherit}.pm-spec-row button{min-width:44px;padding:8px}.pm-specs{margin:0}.pm-specs>div{display:grid;grid-template-columns:minmax(85px,1fr) 2fr;gap:16px;padding:12px 0;border-bottom:1px solid var(--outline-variant,#e2e5eb)}.pm-specs dt{color:var(--on-surface-variant,#5d6573)}.pm-specs dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}.pm-copy{white-space:pre-wrap;line-height:1.8;overflow-wrap:anywhere}.pm-status{display:inline-block;font-size:12px;color:var(--primary,#1b69d9);padding:4px 10px;border-radius:20px;background:var(--primary-container,#e7efff);margin-bottom:12px}.pm-media-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:12px}.pm-media{min-width:0}.pm-media>button{width:100%;aspect-ratio:1;padding:0;overflow:hidden;border-radius:12px;border:1px solid var(--outline-variant,#dfe4ec);background:var(--surface-container,#f1f3f7)}.pm-media img{width:100%;height:100%;object-fit:cover}.pm-media .text-button{width:100%;font-size:12px;min-height:44px;padding:4px}.pm-empty{padding:24px 16px;color:var(--on-surface-variant,#5d6573);line-height:1.7}.pm-error{padding:14px;border-radius:12px;background:var(--error-container,#ffedea);color:var(--on-error-container,#82322d);overflow-wrap:anywhere}.pm-page .search-field{display:flex;align-items:center;gap:10px;border:1px solid var(--outline-variant,#dfe4ec);border-radius:12px;padding:0 12px;min-height:50px}.pm-page .search-field svg{width:20px;flex:none}.pm-page .search-field input{min-width:0;flex:1;border:0;background:transparent;outline:0;font:inherit;height:48px}.pm-page .row-subtitle{overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}.pm-picker-search{display:block;margin-bottom:12px}.pm-picker-search input{box-sizing:border-box;width:100%;padding:13px;border:1px solid var(--outline-variant,#ccd3de);border-radius:10px;font:inherit}.sheet-option[hidden]{display:none}.gc-product{display:grid;gap:12px;padding:20px 0;border-block:1px solid var(--outline-variant,#dfe4ec)}.gc-product-heading{display:flex;justify-content:space-between;gap:12px;align-items:center}.gc-product-heading h3{margin:0}.gc-product .gc-actions{flex-wrap:wrap}.gc-product-facts{margin:0;font-size:14px;line-height:1.7;color:var(--on-surface-variant,#5d6573);white-space:pre-wrap;overflow-wrap:anywhere}.gc-product-refs{display:flex;gap:8px;flex-wrap:wrap}.gc-product-refs img{width:76px;height:76px;object-fit:cover;border-radius:10px}.gc-product .gc-warning{margin:0}@media(max-width:359px){.pm-spec-row{gap:5px;grid-template-columns:minmax(60px,.8fr) minmax(90px,1.3fr) 44px}.pm-spec-row input{padding:10px 6px}.pm-page{gap:18px}}

/* AIPH_00054 r4: album grids and source-linked creations. */
.pm-page .pm-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 12px}.pm-page .pm-tile{display:flex;flex-direction:column;gap:9px;border:0;background:transparent;padding:0;min-width:0;text-align:left;color:inherit}.pm-page .pm-tile-cover{position:relative;display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1;border-radius:14px;overflow:hidden;background:#e9eee2}.pm-page .pm-tile-cover img,.pm-page .pm-tile-cover video{width:100%;height:100%;object-fit:cover;pointer-events:none}.pm-page .pm-tile-title{font-size:14px;font-weight:600;line-height:1.45;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}.pm-page .pm-video-mark{position:absolute;bottom:8px;right:8px;display:flex;align-items:center;gap:4px;background:#1b251bc4;color:white;border-radius:16px;padding:3px 8px;font-size:11px}.pm-page .pm-video-mark svg{width:12px;height:12px}.pm-page .pm-media-placeholder svg{width:32px;height:32px;color:#64735a}.pm-page .pm-album-hint{font-size:12px;color:#70756e;text-align:center;margin:0 0 10px}.pm-page .pm-upload-status{font-size:13px;line-height:1.6;overflow-wrap:anywhere}.pm-page .pm-upload-status ul{padding-left:18px;margin:8px 0}.pm-page .pm-tabs button{white-space:nowrap;min-width:0;padding:9px 5px}.pm-page .pm-gallery-section{min-width:0}

.pm-page .pm-tile-cover .pm-media-placeholder{position:absolute;inset:0;display:grid;place-items:center}.pm-page .pm-tile-cover img{position:relative}.pm-page .pm-video-mark{z-index:1}
