/* V1.1 — compact mobile-first guest portal. All theme vars are scoped per local. */
.v11-guest{--accent:#5945e8;--surface:#fff;--text:#172138;--soft:#f7f8fc;--border:#e9eaf1;--subtle:#76809a;--gradient:linear-gradient(145deg,#e8e6ff,#f8f6ff);--user-bg:#f7f8fc;--user-bg-image:none;max-width:560px;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;padding:14px 17px 8px;background:var(--soft);color:var(--text);position:relative;isolation:isolate;overflow:hidden}
.v11-guest:before{content:"";position:absolute;inset:0;background:var(--gradient);z-index:-2;opacity:.75;pointer-events:none}
.v11-guest.theme-minimal{--soft:#f7f8fa;--text:#101827;--border:#dfe3e8;--gradient:linear-gradient(170deg,#fdfdfd 0%,#eef1f5 98%);--subtle:#6b7581}
.v11-guest.theme-bistro{--soft:#fcf8f0;--text:#2d271f;--border:#ecdfce;--gradient:linear-gradient(170deg,#f8e9d0,#fff9ed 85%);--subtle:#826f60}
.v11-guest.theme-dark{--soft:#15161e;--surface:#252633;--text:#f4f3f6;--border:#454251;--gradient:linear-gradient(155deg,#23202f,#14131b 90%);--subtle:#bcbbca}
.v11-guest.theme-fresh{--soft:#f0f8f6;--text:#153a34;--border:#d1e6de;--gradient:linear-gradient(165deg,#d9f4e8,#f4fdfa 96%);--subtle:#6b8e81}
.v11-guest.bg-mode-solid{background:var(--user-bg)}.v11-guest.bg-mode-solid:before{opacity:.06}
.v11-guest.bg-mode-image{background:var(--soft)}.v11-guest.bg-mode-image:before{background:linear-gradient(180deg,rgba(255,255,255,.86),rgba(255,255,255,.95)),var(--user-bg-image) center/cover no-repeat;opacity:1}.v11-guest.theme-dark.bg-mode-image:before{background:linear-gradient(180deg,rgba(18,17,26,.8),rgba(18,17,26,.95)),var(--user-bg-image) center/cover no-repeat}
.v11-top{display:flex;align-items:center;justify-content:space-between;min-height:34px;gap:8px;margin-bottom:13px}.v11-site{display:flex;align-items:center;gap:8px;font-size:.7rem;font-weight:850;letter-spacing:.12em;line-height:1.05}.v11-site small{display:block;font-size:.48rem;letter-spacing:.17em;font-weight:650;color:var(--subtle);margin-top:4px}.v11-spark{background:var(--accent);border-radius:9px;width:30px;height:30px;display:grid;place-items:center;color:#fff;font-size:1.28rem}.v11-top-right{font-weight:680;font-size:.65rem;color:var(--subtle);white-space:nowrap;display:flex;align-items:center;gap:6px}.live-dot{display:inline-block;height:7px;width:7px;border-radius:50%;background:#24bd83}
.v11-intro{margin:0 0 13px;padding:0 1px}.v11-eyebrow{display:block;font-size:.57rem;letter-spacing:.14em;font-weight:850;color:var(--accent);margin-bottom:2px}.v11-intro h1{font-size:clamp(1.38rem,5.5vw,1.85rem);margin:0;letter-spacing:-.04em;line-height:1.16;font-weight:840;overflow-wrap:anywhere}.v11-intro p{font-size:.72rem;line-height:1.25;margin:4px 0 0;color:var(--subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.v11-gallery{margin:0 0 15px}.v11-stage{height:clamp(175px,29dvh,260px);position:relative;border-radius:19px;overflow:hidden;background:#403d45;isolation:isolate;box-shadow:0 9px 20px #27233226}.v11-stage:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.22),transparent 38%,rgba(0,0,0,.54));z-index:-1;pointer-events:none}.v11-slide{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transform:scale(1.045);transition:opacity .42s ease,transform 3.8s ease;z-index:-2}.v11-slide.is-active{opacity:1;transform:scale(1)}.v11-fallback{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;background:linear-gradient(140deg,#8a7594,#6f594f 50%,#283c43);color:#fff;font-weight:730;z-index:-2;gap:14px}.v11-fallback-emblem{font-size:4rem;opacity:.6}.v11-gallery-top{display:flex;justify-content:space-between;align-items:center;position:absolute;top:12px;left:12px;right:12px;z-index:2}.v11-gallery-chip{font-size:.66rem;color:#fff;background:#10101855;backdrop-filter:blur(9px);border:1px solid #ffffff50;border-radius:50px;padding:6px 11px;font-weight:720;max-width:70%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v11-gallery-logo{height:36px;width:36px;object-fit:cover;border-radius:12px;border:2px solid #fff}.v11-gallery-bottom{position:absolute;bottom:15px;left:15px;right:93px;color:#fff;display:flex;flex-direction:column;gap:1px;text-shadow:0 1px 8px #0008}.v11-gallery-bottom span{font-size:.67rem;font-weight:600;opacity:.91}.v11-gallery-bottom strong{font-size:1.4rem;line-height:1.1;letter-spacing:-.03em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.v11-controls{position:absolute;right:10px;bottom:13px;color:#fff;border-radius:100px;background:#12121277;backdrop-filter:blur(8px);display:flex;align-items:center;gap:5px;padding:3px;z-index:3}.v11-controls button{border:0;color:white;background:#ffffff24;border-radius:100%;height:26px;width:26px;display:grid;place-items:center;font-size:1.32rem;line-height:1}.v11-controls button:focus-visible{outline:2px solid #fff;outline-offset:1px}.v11-controls span{font-size:.62rem;min-width:28px;text-align:center;font-weight:800}.v11-controls.v11-single{padding:9px 13px}.v11-controls.v11-single span{font-size:.59rem;letter-spacing:.02em}
.v11-thumbs{display:flex;gap:6px;margin-top:7px;max-height:43px;overflow-x:auto}.v11-thumbs button{border:2px solid transparent;width:57px;height:40px;flex:none;border-radius:8px;overflow:hidden;padding:0;background:transparent;opacity:.64}.v11-thumbs button.active{border-color:var(--accent);opacity:1}.v11-thumbs img{height:100%;width:100%;object-fit:cover}
.v11-section-label{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:0 1px 9px}.v11-section-label strong{font-size:.82rem;font-weight:830;letter-spacing:-.025em}.v11-section-label span{font-size:.63rem;color:var(--subtle)}
.v11-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.v11-tile{border:1px solid var(--border);background:var(--surface);color:var(--text);border-radius:15px;min-height:88px;padding:11px 13px;box-shadow:0 5px 17px #1f21300a;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;text-align:left;min-width:0;transition:transform .15s ease}.v11-tile:active{transform:scale(.98)}.v11-tile .v11-icon{font-size:1.25rem;font-weight:730;color:var(--accent);line-height:1.1;margin-bottom:5px;display:block}.v11-tile strong{font-size:.79rem;font-weight:780;line-height:1.15;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.v11-tile small{font-size:.62rem;line-height:1.2;color:var(--subtle);margin-top:5px}.v11-primary{background:var(--accent);border-color:var(--accent);color:#fff}.v11-primary .v11-icon,.v11-primary small{color:#fff;opacity:.94}
.v11-sponsor,.v11-ad-placeholder{margin-top:auto;position:relative;top:0;padding-top:13px}.v11-sponsored-inner{background:var(--surface);border:1px solid var(--border);border-radius:14px;padding:8px 10px;display:flex;align-items:center;gap:11px;min-height:67px}.v11-sponsored-icon{width:39px;height:39px;flex:none;border-radius:11px;display:grid;place-items:center;font-size:1.45rem;background:color-mix(in srgb,var(--accent) 13%,var(--surface));color:var(--accent)}.v11-sponsored-image{width:60px;height:44px;object-fit:cover;flex:none;border-radius:9px}.v11-sponsored-inner>div{min-width:0;flex:1}.v11-sponsored-inner>div small{font-size:.53rem;font-weight:850;letter-spacing:.1em;color:var(--accent);display:block}.v11-sponsored-inner strong{display:block;font-size:.77rem;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.v11-sponsored-inner>div span{display:block;font-size:.6rem;color:var(--subtle);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-top:2px}.v11-sponsor-arrow{font-size:.9rem;color:var(--subtle)}.v11-ad-placeholder{display:flex;justify-content:space-between;color:var(--subtle);font-size:.65rem;align-items:center;gap:4px;border:1px dashed var(--border);border-radius:12px;padding:12px;margin-top:auto}.v11-ad-placeholder strong{color:var(--text)}
.v11-footer{text-align:center;margin-top:9px;color:var(--subtle);font-size:.58rem;line-height:1.3;min-height:14px}.v11-footer b{font-weight:800;color:var(--text)}.v11-footer span{padding:0 5px}
/* Business gallery/appearance admin */
.appearance-panel{max-width:950px}.appearance-section{border-top:1px solid var(--line);padding:22px 0;margin:0}.appearance-section:first-of-type{border-top:0}.appearance-section h3{margin:0 0 13px;font-size:1.07rem}.appearance-gallery{display:grid;grid-template-columns:repeat(auto-fill,minmax(115px,1fr));gap:10px;margin:15px 0 23px}.appearance-thumb{border:1px solid var(--line);padding:5px;border-radius:13px;background:#fff}.appearance-thumb img{width:100%;aspect-ratio:1.25;object-fit:cover;border-radius:9px;display:block}.cover-choice{margin:8px 3px 5px;display:flex;gap:6px;align-items:center;font-size:.72rem}.cover-choice input{width:15px;min-height:15px;height:15px;margin:0;accent-color:var(--purple)}.appearance-empty{border:1px dashed var(--line);color:var(--muted);background:#f9fafc;border-radius:12px;padding:22px 14px;margin:10px 0 22px;font-size:.8rem}.theme-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(135px,1fr));gap:10px;margin:10px 0 21px}.theme-select{cursor:pointer;border:1px solid var(--line);border-radius:12px;margin:0;padding:8px;display:block;position:relative}.theme-select input{position:absolute;right:8px;top:5px;width:15px;height:15px;margin:0;accent-color:var(--purple)}.theme-select:has(input:checked){outline:2px solid var(--purple);outline-offset:1px}.theme-select strong{font-size:.71rem;display:block;margin-top:8px;line-height:1.3}.theme-swatch{display:flex;align-items:center;justify-content:center;gap:6px;min-height:58px;border-radius:8px;background:#eeeaff}.theme-swatch i{height:28px;width:35px;background:#fff;border-radius:7px}.theme-swatch b{height:27px;width:30px;border-radius:7px;background:#5945e8}.theme-swatch em{height:12px;width:16px;border-radius:4px;background:#c4baff}.theme-swatch-minimal{background:#e9edf2}.theme-swatch-minimal b{background:#566273}.theme-swatch-bistro{background:#f4e2ca}.theme-swatch-bistro b{background:#9a6244}.theme-swatch-dark{background:#22232c}.theme-swatch-dark i{background:#41414f}.theme-swatch-dark b{background:#7757bd}.theme-swatch-fresh{background:#def4e6}.theme-swatch-fresh b{background:#208c69}.appearance-form input[type=color]{padding:3px;height:46px}.appearance-delete{display:flex;gap:9px;flex-wrap:wrap}.appearance-delete form{display:grid;gap:6px;width:104px}.appearance-delete img{height:64px;width:100%;object-fit:cover;border-radius:9px}.appearance-delete button{text-align:left;font-size:.72rem}.background-preview img{max-height:90px;max-width:180px;object-fit:cover;border-radius:9px}
@media (max-height:710px) and (max-width:700px){.v11-guest{padding-top:8px}.v11-top{margin-bottom:8px}.v11-intro{margin-bottom:7px}.v11-gallery{margin-bottom:10px}.v11-stage{height:clamp(156px,25dvh,185px)}.v11-tile{min-height:78px;padding:9px 12px}.v11-tile .v11-icon{margin-bottom:3px}.v11-sponsored-inner{min-height:57px}.v11-sponsor{padding-top:8px}}
@media (max-width:350px){.v11-guest{padding-left:11px;padding-right:11px}.v11-tile strong{font-size:.71rem}.v11-section-label strong{font-size:.77rem}}
@media (min-width:701px){.v11-guest{border-left:1px solid #ececf1;border-right:1px solid #ececf1;box-shadow:0 14px 80px #161c3920;padding:18px 23px 12px}.v11-gallery .v11-stage{height:270px}.v11-tile{min-height:105px}.v11-sponsor{margin-top:25px}}
@media (prefers-reduced-motion:reduce){.v11-slide,.v11-tile{transition:none!important}}

/* --------------------------------------------------------------------------
   V1.2 / Atmosfera: visual refresh without altering business/SQL logic.
   Overrides are intentionally scoped to .v12-guest (guest home only).
   -------------------------------------------------------------------------- */
.v11-guest.v12-guest{
  --text:#162036;
  max-width:560px;
  padding:13px 16px max(11px,env(safe-area-inset-bottom));
  background:var(--soft);
  overflow:visible;
}
.v12-guest:before{opacity:.72}
.v12-guest.v11-guest.theme-dark{--text:#f4f3f6}
.v12-guest .v11-top{min-height:44px;margin-bottom:12px;padding:2px 1px}
.v12-guest .v11-site{gap:10px;font-size:.78rem;letter-spacing:.15em;line-height:1.12}
.v12-guest .v11-site small{font-size:.53rem;letter-spacing:.19em;margin-top:3px}
.v12-guest .v11-spark{
 width:39px;height:39px;border-radius:14px;
 background:linear-gradient(143deg,color-mix(in srgb,var(--accent) 72%,#fff),var(--accent));
 font-size:1.56rem;box-shadow:0 6px 15px color-mix(in srgb,var(--accent) 26%,transparent);
}
.v12-guest .v11-top-right{font-size:.67rem;font-weight:770;gap:7px;letter-spacing:.004em}
.v12-guest .live-dot{width:7px;height:7px;box-shadow:0 0 0 4px #37c88b22}
.v12-guest .v11-gallery{margin-bottom:17px}
.v12-guest .v11-stage{
 height:clamp(215px,36dvh,365px);
 border-radius:23px;
 box-shadow:0 19px 45px #201a3650;
}
.v12-guest .v11-stage:after{
 background:linear-gradient(180deg,rgba(12,9,18,.30) 0%,transparent 34%,rgba(6,7,14,.08) 47%,rgba(7,8,14,.86) 100%);
}
.v12-guest .v11-gallery-top{top:15px;left:15px;right:15px}
.v12-guest .v11-gallery-chip{
 padding:8px 12px;font-size:.64rem;letter-spacing:.01em;
 border:1px solid #ffffff5e;background:#15151c70;
 box-shadow:0 2px 20px #0002;
}
.v12-guest .v11-gallery-chip span{color:#f1dfae;margin-right:2px}
.v12-guest .v11-gallery-logo{width:40px;height:40px;border-radius:13px;box-shadow:0 5px 16px #0005}
.v12-guest .v11-gallery-bottom{
 bottom:23px;left:21px;right:85px;gap:4px;z-index:1
}
.v12-guest .v12-hero-eyebrow{
 font-size:.58rem!important;font-weight:820!important;letter-spacing:.22em;
 color:#fff;opacity:.84
}
.v12-guest .v11-gallery-bottom strong{
 font-size:clamp(1.72rem,7vw,2.5rem);line-height:1.02;letter-spacing:-.055em;
 font-weight:870;white-space:normal;overflow-wrap:anywhere;
 display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
}
.v12-guest .v12-hero-subtitle{
 font-size:.71rem;line-height:1.28;color:#f5f5f7;opacity:.92;font-weight:500;
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;
 text-shadow:0 1px 6px #0006;
}
.v12-guest .v11-controls{right:13px;bottom:18px;background:#ffffff31;border:1px solid #ffffff60;backdrop-filter:blur(12px);padding:3px 5px;gap:3px}
.v12-guest .v11-controls button{width:28px;height:28px;background:#ffffff36}
.v12-guest .v11-controls span{font-size:.62rem;font-variant-numeric:tabular-nums}
.v12-guest .v11-controls.v11-single{padding:8px 11px}
.v12-guest .v11-thumbs{margin-top:10px}
.v12-guest .v11-section-label{margin:0 1px 12px;align-items:baseline}
.v12-guest .v11-section-label strong{font-size:.99rem;font-weight:840;letter-spacing:-.04em}
.v12-guest .v11-section-label>span{font-size:.65rem;white-space:nowrap}
.v12-guest .v11-actions{gap:10px}
.v12-guest .v11-tile{
 position:relative;min-height:105px;padding:11px 12px 12px;
 display:flex;justify-content:flex-start;align-items:flex-start;gap:0;
 border-radius:20px;
 box-shadow:0 7px 22px #222a430b;
 text-align:left;isolation:isolate;overflow:hidden;
 transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;
}
.v12-guest .v11-tile:focus-visible{outline:3px solid var(--accent);outline-offset:2px}
.v12-guest .v11-tile:hover{transform:translateY(-2px);box-shadow:0 12px 27px #222a431a}
.v12-guest .v11-tile:active{transform:scale(.985)}
.v12-guest .v11-primary{
 background:linear-gradient(139deg,color-mix(in srgb,var(--accent) 86%,#c9aafc),var(--accent) 55%,color-mix(in srgb,var(--accent) 83%,#0a0b20));
 border-color:transparent;
 box-shadow:0 10px 26px color-mix(in srgb,var(--accent) 26%,transparent);
}
.v12-guest .v11-primary:before{
 content:"";position:absolute;z-index:-1;width:140px;height:140px;border-radius:50%;
 border:27px solid #ffffff14;right:-62px;top:-76px;pointer-events:none
}
.v12-guest .v11-primary:after{
 content:"";position:absolute;z-index:-1;width:110px;height:110px;border-radius:50%;
 background:#fff1;right:-50px;bottom:-88px;pointer-events:none
}
.v12-guest .v11-tile .v11-icon{
 display:grid;place-items:center;width:33px;height:33px;flex:none;
 border-radius:11px;
 color:var(--accent);
 background:color-mix(in srgb,var(--accent) 10%,var(--surface));
 margin:0 0 7px;
}
.v12-guest .v11-icon svg{width:19px;height:19px;display:block}
.v12-guest .v11-primary .v11-icon{color:#fff;background:#ffffff2e;border:1px solid #ffffff38}
.v12-guest .v12-tile-copy{display:flex;flex-direction:column;gap:4px;min-width:0;padding-right:5px}
.v12-guest .v11-tile strong{
 display:block;font-size:clamp(.68rem,2.95vw,.82rem);font-weight:800;
 line-height:1.18;overflow:visible;text-overflow:clip;white-space:normal;
}
.v12-guest .v11-tile small{font-size:.59rem;line-height:1.2;margin:0;letter-spacing:.005em}
.v12-guest .v12-go{
 position:absolute;top:11px;right:12px;font-size:.89rem;font-weight:700;color:var(--accent);
 display:grid;place-items:center;width:23px;height:23px;border-radius:50%;
 background:color-mix(in srgb,var(--accent) 9%,var(--surface));
}
.v12-guest .v11-primary .v12-go{color:#fff;background:#ffffff2f}
.v12-guest .v11-sponsor{margin-top:auto;padding-top:14px}
.v12-guest .v11-sponsored-inner{
 padding:10px 11px;min-height:72px;border-radius:18px;
 background:var(--surface);box-shadow:0 9px 25px #21263b0a;
}
.v12-guest .v11-sponsored-icon{width:44px;height:44px;border-radius:13px;font-size:1.65rem}
.v12-guest .v11-sponsored-image{height:48px;width:62px;border-radius:11px}
.v12-guest .v11-sponsored-inner>div small{font-size:.5rem;letter-spacing:.15em}
.v12-guest .v11-sponsored-inner strong{font-size:.81rem;margin-top:3px}
.v12-guest .v11-sponsored-inner>div span{font-size:.63rem}
.v12-guest .v11-sponsor-arrow{font-size:1.12rem;color:var(--accent)}
.v12-guest .v11-ad-placeholder{margin-top:auto;padding:12px 15px;background:var(--surface)}
.v12-guest .v11-footer{margin:10px 0 0;display:flex;align-items:center;justify-content:center;gap:4px;font-size:.62rem;letter-spacing:.005em}
.v12-guest .v11-footer span{padding:0 2px}
.v12-guest .v11-footer .v12-footer-mark{font-size:.94rem;color:var(--accent);padding:0 4px 0 0}
@media(max-height:750px) and (max-width:700px){
 .v12-guest.v11-guest{padding-top:9px}
 .v12-guest .v11-top{margin-bottom:8px;min-height:35px}
 .v12-guest .v11-gallery{margin-bottom:11px}
 .v12-guest .v11-stage{height:clamp(170px,29dvh,242px);border-radius:18px}
 .v12-guest .v11-gallery-bottom{bottom:15px;left:15px}
 .v12-guest .v11-section-label{margin-bottom:8px}
 .v12-guest .v11-tile{min-height:87px;padding:9px 10px}
 .v12-guest .v11-tile .v11-icon{width:28px;height:28px;margin-bottom:4px}
 .v12-guest .v11-icon svg{width:17px;height:17px}
 .v12-guest .v11-tile .v12-go{top:8px;right:8px}
 .v12-guest .v11-sponsor{padding-top:9px}
 .v12-guest .v11-sponsored-inner{min-height:58px;padding:7px 10px}
}
@media(max-width:360px){
 .v12-guest .v11-tile strong{font-size:.67rem}
 .v12-guest .v11-gallery-bottom strong{font-size:1.55rem}
 .v12-guest .v11-top-right{font-size:.58rem}
 .v12-guest .v11-site{font-size:.67rem}
}
@media(min-width:701px){
 .v12-guest .v11-stage{height:340px}
 .v12-guest .v11-tile{min-height:115px}
 .v12-guest .v11-sponsor{margin-top:22px}
}
@media(prefers-reduced-motion:reduce){.v12-guest .v11-tile,.v12-guest .v11-slide{transition:none!important}}
/* Distribute spare screen height to the photo instead of leaving a blank band above the ad. */
@media (max-width:700px){
 .v12-guest.v11-guest{display:grid;grid-template-rows:auto minmax(210px,1fr) auto auto auto auto;align-content:stretch}
 .v12-guest .v11-gallery{display:flex;flex-direction:column;min-height:0}
 .v12-guest .v11-stage{height:auto;flex:1 1 auto;min-height:210px}
 .v12-guest .v11-sponsor,.v12-guest .v11-ad-placeholder{margin-top:0}
}
@media(max-height:650px) and (max-width:700px){
 .v12-guest.v11-guest{grid-template-rows:auto minmax(165px,1fr) auto auto auto auto}
 .v12-guest .v11-stage{min-height:165px}
}
