
/* V60.19 — shared preview and public theme layouts */
.mp-theme-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(245px,1fr));gap:16px}
.mp-theme-card{border:1px solid #dce5df;border-radius:14px;overflow:hidden;background:#fff}
.mp-theme-preview.mp-public{height:200px;overflow:hidden;padding:9px!important;box-sizing:border-box;background:#f5f7f5;pointer-events:none;--primary:#176b4d}
.mp-theme-preview .mp-hero{background:#176b4d;color:white;border-radius:8px;padding:12px;margin-bottom:8px;display:block;font-size:14px}
.mp-theme-preview .mp-toolbar{position:static;background:transparent;padding:4px 0;display:flex;gap:6px;margin-bottom:7px}
.mp-theme-preview .mp-cat{padding:4px 8px;font-size:10px;border-radius:12px;background:white;color:#37483e}
.mp-theme-preview .mp-cat.active{background:var(--primary);color:white}
.mp-theme-preview .mp-grid{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.mp-theme-preview .mp-item{display:flex;min-height:0;background:#fff;border:1px solid #e0e7e2;border-radius:8px;overflow:hidden}
.mp-theme-preview .mp-info{padding:6px;font-size:10px;min-width:0;display:block}
.mp-theme-preview .mp-price{font-size:10px;color:var(--primary)}
.mp-theme-placeholder{width:40%;min-width:40%;height:45px;background:linear-gradient(135deg,#cfb08c,#95643f)}
.mp-theme-preview .mp-item:nth-child(2n) .mp-theme-placeholder{background:linear-gradient(135deg,#d5c7a2,#82946d)}
.mp-theme-meta{display:grid;gap:7px;padding:12px}.mp-theme-meta small{color:#53675c}
.mp-library-upload{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));align-items:end;gap:10px;margin:14px 0}
.mp-library-filter{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.mp-library-filter input,.mp-library-filter select{flex:1;min-width:160px}
.mp-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:12px;margin-top:12px}
.mp-library-tile{min-width:0;display:flex;flex-direction:column;gap:6px;border:1px solid #dce5df;border-radius:10px;padding:8px;background:white;overflow-wrap:anywhere}
.mp-library-tile img{width:100%;height:110px;object-fit:cover;border-radius:6px}.mp-library-tile small{color:#53675c}.mp-library-tile button{margin-top:auto}
.mp-library-dialog{width:min(850px,94vw);max-height:88dvh;overflow:auto;border:0;border-radius:16px;padding:20px;background:#fff;color:#1c3528}
.mp-library-dialog::backdrop{background:#102c2399}.mp-library-dialog-head{display:flex;justify-content:space-between;align-items:center;gap:10px}
.mp-library-dialog-head h2{margin:0}.mp-library-dialog-head button{font-size:24px;padding:4px 12px}
.mp-public[data-theme="2"]{--theme-accent:#624630}.mp-public[data-theme="2"] .mp-hero{background:#624630;border-radius:0;font-family:Georgia,serif}.mp-public[data-theme="2"] .mp-grid{grid-template-columns:1fr}.mp-public[data-theme="2"] .mp-item{border-radius:0;border:0;border-bottom:1px solid #d5c8b7;box-shadow:none;min-height:100px}.mp-public[data-theme="2"] .mp-item>img{width:110px;min-width:110px;max-height:120px}.mp-public[data-theme="2"] .mp-info{flex:1}.mp-public[data-theme="2"] .mp-section h2{font-family:Georgia,serif;border-bottom:2px solid #624630;padding-bottom:7px}
.mp-public[data-theme="3"] .mp-hero{background:linear-gradient(135deg,#305c70,#163342)}.mp-public[data-theme="3"] .mp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-public[data-theme="3"] .mp-item{flex-direction:column;border-radius:12px}.mp-public[data-theme="3"] .mp-item>img,.mp-public[data-theme="3"] .mp-theme-placeholder{width:100%;min-width:100%;aspect-ratio:4/3;max-height:240px;object-fit:cover}.mp-public[data-theme="3"] .mp-info{width:100%;box-sizing:border-box}
.mp-public[data-theme="4"] .mp-hero{background:#a83221;border-radius:14px;border-bottom:6px solid #f9b649}.mp-public[data-theme="4"] .mp-cat.active,.mp-public[data-theme="4"] .mp-actions button{background:#a83221;color:white}.mp-public[data-theme="4"] .mp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.mp-public[data-theme="4"] .mp-item{flex-direction:column;border:2px solid #e6ad58;border-radius:12px}.mp-public[data-theme="4"] .mp-item>img,.mp-public[data-theme="4"] .mp-theme-placeholder{width:100%;min-width:100%;aspect-ratio:16/10;object-fit:cover}.mp-public[data-theme="4"] .mp-price{color:#a83221}
.mp-public[data-theme="5"] .mp-hero{background:#72513d;border-radius:30px 30px 10px 10px;font-family:Georgia,serif}.mp-public[data-theme="5"] .mp-toolbar{background:#f7efe5}.mp-public[data-theme="5"] .mp-grid{grid-template-columns:1fr}.mp-public[data-theme="5"] .mp-item{background:#fffbf5;border:1px solid #e0ceba;border-radius:24px;min-height:145px}.mp-public[data-theme="5"] .mp-item>img{margin:9px;border-radius:18px;width:31%;min-width:31%;max-height:170px}.mp-public[data-theme="5"] .mp-price{color:#72513d}
body:has(.mp-public[data-theme="6"]:not(.mp-theme-preview):not(.mp-theme-demo)){background:#191b1d;color:#f5f0e8}.mp-public[data-theme="6"] .mp-hero{background:#151515;border:1px solid #9b835b}.mp-public[data-theme="6"] .mp-toolbar{background:#191b1d;border-color:#48433d}.mp-public[data-theme="6"] .mp-cat{background:#292929;color:#f5f0e8;border-color:#58514a}.mp-public[data-theme="6"] .mp-cat.active{background:#d6bc82;color:#171717}.mp-public[data-theme="6"] .mp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-public[data-theme="6"] .mp-item{background:#292929;color:#fff;border:1px solid #665b49;border-radius:4px;flex-direction:column}.mp-public[data-theme="6"] .mp-item>img,.mp-public[data-theme="6"] .mp-theme-placeholder{width:100%;min-width:100%;aspect-ratio:16/9;object-fit:cover}.mp-public[data-theme="6"] .mp-info h3,.mp-public[data-theme="6"] .mp-section h2{color:#f5f0e8}.mp-public[data-theme="6"] .mp-desc{color:#d1c9bd}.mp-public[data-theme="6"] .mp-price{color:#e4c987}.mp-public[data-theme="6"] .mp-actions button{background:#d6bc82;color:#171717}
.mp-public[data-theme="7"] .mp-hero{background:#f5e9d4;color:#222;border-radius:0;border-bottom:3px solid #222;min-height:120px}.mp-public[data-theme="7"] .mp-hero h1{color:#222;font-family:Georgia,serif}.mp-public[data-theme="7"] .mp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-public[data-theme="7"] .mp-item{flex-direction:column;border:0;border-bottom:1px solid #aaa;border-radius:0;box-shadow:none}.mp-public[data-theme="7"] .mp-item:first-child{grid-column:1/-1}.mp-public[data-theme="7"] .mp-item>img,.mp-public[data-theme="7"] .mp-theme-placeholder{width:100%;min-width:100%;max-height:250px;aspect-ratio:16/9;object-fit:cover}.mp-public[data-theme="7"] .mp-info h3,.mp-public[data-theme="7"] .mp-section h2{font-family:Georgia,serif}
.mp-public[data-theme="8"] .mp-hero{background:#fff;color:#24352b;border-radius:0;border-bottom:1px solid #bbb;padding:18px}.mp-public[data-theme="8"] .mp-hero h1{color:#24352b}.mp-public[data-theme="8"] .mp-grid{grid-template-columns:1fr;gap:0}.mp-public[data-theme="8"] .mp-item{min-height:0;box-shadow:none;border:0;border-bottom:1px solid #ddd;border-radius:0}.mp-public[data-theme="8"] .mp-item>img,.mp-public[data-theme="8"] .mp-theme-placeholder{display:none}.mp-public[data-theme="8"] .mp-info{display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:12px;width:100%;padding:12px}.mp-public[data-theme="8"] .mp-info h3{grid-column:1}.mp-public[data-theme="8"] .mp-desc{grid-column:1;grid-row:2;margin:0}.mp-public[data-theme="8"] .mp-price{grid-column:2;grid-row:1}.mp-public[data-theme="8"] .mp-actions{grid-column:2;grid-row:2}.mp-public[data-theme="8"] .mp-info small,.mp-public[data-theme="8"] .mp-allergen{grid-column:1/-1}
.mp-public[data-theme="9"] .mp-hero{background:linear-gradient(120deg,#173e4b,#377c7c)}.mp-public[data-theme="9"] .mp-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.mp-public[data-theme="9"] .mp-item{flex-direction:column;border-radius:6px}.mp-public[data-theme="9"] .mp-item>img,.mp-public[data-theme="9"] .mp-theme-placeholder{width:100%;min-width:100%;aspect-ratio:1;object-fit:cover}.mp-public[data-theme="9"] .mp-info{padding:10px}.mp-public[data-theme="9"] .mp-info h3{font-size:15px}
.mp-public[data-theme="10"] .mp-hero{background:linear-gradient(130deg,#402d3c,#6a4145);border-radius:4px;border:2px solid #b99a65;text-align:center;min-height:120px;justify-content:space-between}.mp-public[data-theme="10"] .mp-hero h1,.mp-public[data-theme="10"] .mp-section h2{font-family:Georgia,serif}.mp-public[data-theme="10"] .mp-section h2{text-align:center;letter-spacing:.06em}.mp-public[data-theme="10"] .mp-grid{grid-template-columns:1fr;max-width:760px;margin:auto;gap:24px}.mp-public[data-theme="10"] .mp-item{flex-direction:column;border:1px solid #c6ad84;border-radius:4px;text-align:center}.mp-public[data-theme="10"] .mp-item>img,.mp-public[data-theme="10"] .mp-theme-placeholder{width:100%;min-width:100%;aspect-ratio:16/8;max-height:330px;object-fit:cover}.mp-public[data-theme="10"] .mp-info{align-items:center;padding:24px}.mp-public[data-theme="10"] .mp-price{color:#6a4145}
.mp-theme-preview[data-theme] .mp-hero{min-height:0;padding:8px;margin-bottom:4px}.mp-theme-preview[data-theme] .mp-item{min-height:0;max-height:90px}.mp-theme-preview[data-theme] .mp-theme-placeholder{max-height:45px}.mp-theme-preview[data-theme] .mp-info{padding:5px}.mp-theme-preview[data-theme="6"]{background:#191b1d;color:#f5f0e8}
@media(max-width:520px){.mp-public[data-theme="2"] .mp-item>img{width:86px;min-width:86px}.mp-public[data-theme="9"] .mp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-public[data-theme="3"] .mp-info,.mp-public[data-theme="4"] .mp-info,.mp-public[data-theme="6"] .mp-info,.mp-public[data-theme="7"] .mp-info{padding:10px}.mp-public[data-theme="3"] .mp-info h3,.mp-public[data-theme="4"] .mp-info h3,.mp-public[data-theme="6"] .mp-info h3,.mp-public[data-theme="7"] .mp-info h3{font-size:14px}}

.mp-image-credits{font-size:12px;line-height:1.5;margin:16px 0;overflow-wrap:anywhere}.mp-image-credits p{margin:8px 0}.mp-library-more{margin:14px auto;display:block}.mp-library-more[hidden]{display:none!important}

.mp-media-thumb{display:flex;gap:8px;align-items:center;border:1px solid #e0e9e0;padding:8px;border-radius:10px;margin:6px 0}.mp-media-thumb img{width:70px;height:70px;object-fit:cover;border-radius:7px}.mp-media-thumb>div{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.mp-media-thumb small{display:block;width:100%}.mp-video-edit video,.mp-customer-video{width:100%;max-height:280px;background:#111;border-radius:12px;margin:8px 0}.mp-media-strip{display:flex;gap:8px;overflow-x:auto;padding:6px 0}.mp-media-strip button{padding:2px;background:white;border:1px solid #ddd;flex:0 0 auto}.mp-media-strip img{width:64px;height:64px;object-fit:cover;border-radius:6px}.mp-setup-queue{border:1px solid #dce5df;border-radius:10px;padding:12px;margin:8px 0;overflow-wrap:anywhere}

/* V60.23.1 — consistent theme tokens, realistic preview and compact admin navigation */
.mp-public[data-theme="2"]{--primary:#624630}.mp-public[data-theme="3"]{--primary:#305c70}.mp-public[data-theme="4"]{--primary:#a83221}.mp-public[data-theme="5"]{--primary:#72513d}.mp-public[data-theme="6"]{--primary:#a48b5d}.mp-public[data-theme="7"]{--primary:#5d4734}.mp-public[data-theme="8"]{--primary:#33443b}.mp-public[data-theme="9"]{--primary:#236668}.mp-public[data-theme="10"]{--primary:#6a4145}
.mp-public .mp-info{flex:1;min-width:0;box-sizing:border-box}.mp-public .mp-info h3,.mp-public .mp-price,.mp-public .mp-hero h1{overflow-wrap:anywhere}.mp-public .mp-actions{width:100%;margin-top:10px}.mp-public .mp-actions button{max-width:100%;font-size:14px;white-space:normal;line-height:1.25;padding:10px 14px}
.mp-public[data-theme="7"] .mp-hero p,.mp-public[data-theme="8"] .mp-hero p{color:#453e37}.mp-public[data-theme="6"] .mp-notice,.mp-public[data-theme="6"] .mp-image-credits{color:#cfc3b2}.mp-public[data-theme="6"] .mp-image-credits a{color:#f0cd8e}
.mp-public[data-theme="3"] .mp-item>img,.mp-public[data-theme="4"] .mp-item>img,.mp-public[data-theme="6"] .mp-item>img,.mp-public[data-theme="7"] .mp-item>img,.mp-public[data-theme="9"] .mp-item>img,.mp-public[data-theme="10"] .mp-item>img{display:block;height:auto;max-width:100%}
.mp-public[data-theme="8"] .mp-info{display:grid;flex:1}.mp-public[data-theme="8"] .mp-actions{width:auto;align-self:end}.mp-public[data-theme="8"] .mp-actions button{font-size:12px;padding:8px}
.mp-public[data-theme="9"] .mp-info h3{font-size:16px}.mp-public[data-theme="10"] .mp-info{width:100%}
.mp-public[data-theme="6"] .mp-hero select{color:#171717}.mp-public[data-theme="6"] .mp-empty{background:#292929;color:#f5f0e8}
@media(max-width:360px){.mp-public[data-theme="3"] .mp-grid,.mp-public[data-theme="4"] .mp-grid,.mp-public[data-theme="6"] .mp-grid,.mp-public[data-theme="7"] .mp-grid,.mp-public[data-theme="9"] .mp-grid{grid-template-columns:minmax(0,1fr)}}
.mp-theme-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr))}
.mp-theme-preview.mp-public{height:225px;position:relative;overflow:hidden;max-width:none;margin:0;border-radius:0;pointer-events:none}
.mp-theme-preview .mp-hero{display:flex!important;gap:5px!important;padding:9px!important;margin-bottom:5px!important;min-height:0!important}
.mp-theme-preview .mp-hero h1{font-size:15px!important;margin:0!important}.mp-theme-preview .mp-hero p{font-size:9px!important;margin:2px 0!important}
.mp-theme-preview .mp-logo{width:26px;height:26px;flex-basis:26px;padding:2px;border-radius:5px}.mp-theme-preview .mp-identity{gap:7px}
.mp-theme-preview .mp-toolbar{padding:3px!important;margin-bottom:3px!important}.mp-theme-preview .mp-cats{gap:3px}.mp-theme-preview .mp-cat{font-size:9px!important;padding:3px 6px!important}
.mp-theme-preview .mp-section{margin:5px 0}.mp-theme-preview .mp-section h2{font-size:11px!important;margin:3px 0 5px!important;padding:0!important}.mp-theme-preview .mp-grid{gap:4px!important}
.mp-theme-preview .mp-item{max-height:110px;min-height:0!important}.mp-theme-preview .mp-item>img{height:52px!important;max-height:52px!important;object-fit:cover}.mp-theme-preview .mp-info{padding:5px!important;min-width:0}.mp-theme-preview .mp-info h3{font-size:10px!important;margin:0 0 3px!important}.mp-theme-preview .mp-price{font-size:10px!important}.mp-theme-preview .mp-desc,.mp-theme-preview .mp-actions{display:none!important}
.mp-theme-preview .mp-section:nth-of-type(n+3){display:none}.mp-theme-preview[data-theme="8"] .mp-info{grid-template-columns:minmax(0,1fr) auto}.mp-theme-preview[data-theme="10"] .mp-grid{gap:4px!important}
.mp-theme-meta .mp-theme-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px}.mp-theme-preview-btn{background:#eef4ef!important;color:#1b6647!important}
.mp-theme-full-dialog{width:min(1120px,95vw);max-height:94dvh;overflow:auto;border:0;border-radius:18px;padding:16px;background:#e8efe9;color:#18392e}.mp-theme-full-dialog::backdrop{background:#102c23aa}
.mp-theme-dialog-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.mp-theme-dialog-head small{display:block;color:#577062}.mp-theme-dialog-head button{padding:5px 14px;font-size:23px}
.mp-preview-sizes{display:flex;gap:8px;margin:8px 0 14px}.mp-preview-sizes button[aria-pressed="false"]{background:white;color:#176b4d}
.mp-preview-device{margin:auto;width:100%;background:#f5f7f5;border:1px solid #c5d8ca;border-radius:20px;padding:12px;overflow:hidden}.mp-preview-device[data-size="mobile"]{width:min(100%,390px);padding:8px}.mp-preview-device[data-size="mobile"] .mp-theme-demo{padding:0 2px 18px}.mp-preview-device[data-size="mobile"] .mp-hero{padding:20px 16px;margin-bottom:10px}.mp-preview-device[data-size="mobile"] .mp-logo{width:48px;height:48px;flex-basis:48px}.mp-preview-device[data-size="mobile"] .mp-hero h1{font-size:25px}.mp-preview-device[data-size="mobile"] .mp-grid{grid-template-columns:1fr}.mp-preview-device[data-size="mobile"] .mp-theme-demo:is([data-theme="3"],[data-theme="4"],[data-theme="6"],[data-theme="7"],[data-theme="9"]) .mp-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.mp-preview-device[data-size="mobile"] .mp-info{padding:12px}.mp-preview-device[data-size="mobile"] .mp-item{min-height:120px}.mp-preview-device[data-size="mobile"] .mp-info h3{font-size:14px}.mp-preview-device[data-size="mobile"] .mp-desc{font-size:12px}.mp-preview-device[data-size="mobile"] .mp-price{font-size:16px}.mp-theme-demo .mp-toolbar{position:static}.mp-theme-demo[data-theme="6"]{background:#191b1d;color:#f5f0e8;padding:12px;border-radius:12px}.mp-theme-demo .mp-actions button:disabled{opacity:.85}
.mp-sidebar-nav .mp-nav-group{display:flex;flex-direction:column;gap:2px}.mp-nav-group-label{padding:12px 12px 4px;font-size:10px;font-weight:750;letter-spacing:.055em;text-transform:uppercase;color:#b0c9bb}.mp-sidebar .mp-nav-item{padding:9px 12px!important;min-height:38px}.mp-sidebar .mp-nav-item:focus-visible{outline:2px solid #a9e3c3;outline-offset:-2px}
@media(max-width:800px){.mp-sidebar-nav .mp-nav-group{flex-direction:row;align-items:center;flex:none;border-right:1px solid #ffffff30;padding-right:8px}.mp-nav-group-label{padding:4px 6px;font-size:9px;white-space:nowrap}.mp-sidebar .mp-nav-item{padding:8px 10px!important}.mp-theme-full-dialog{padding:10px}.mp-preview-device{padding:6px}.mp-preview-sizes button{flex:1}}

.mp-video-hint{font-size:12px;line-height:1.55;color:#526b5e;margin:0 0 12px}.mp-video-edit video{object-fit:contain}
