/* ===== Sohibqiron v4: кабинет, админ-дашборд, книги, музей, заставка, камера ===== */
:root{--r-card:22px}
.noscroll{overflow:hidden}

/* ---------- Общие компоненты ---------- */
.tab-head{display:flex;justify-content:space-between;align-items:flex-end;gap:14px;flex-wrap:wrap;margin:2px 0 16px}
.tab-head h2{margin:0;font-size:clamp(26px,4vw,34px)}
.tab-head p{margin:4px 0 0}
.empty-state{text-align:center;padding:34px 20px}
.big-ic{font-size:46px;line-height:1;margin-bottom:8px}
.plan-note{background:color-mix(in srgb,var(--gold) 12%,transparent);border:1px dashed var(--gold);border-radius:14px;padding:10px 14px;font-size:13px;color:var(--ink2);margin:0 0 16px}
.plan-pill{display:inline-block;background:var(--gold);color:#fff;border-radius:999px;padding:3px 12px;font:700 12px Manrope}
.lock-card{text-align:center;padding:34px 22px;border-style:dashed}
.lock-ic{font-size:44px;filter:grayscale(.2)}
.eyebrow{font:600 11px Manrope;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin:0 0 6px}
.modal.v4>div{max-width:560px;background:var(--surface);color:var(--ink)}
.modal.v4 h3{margin:0 0 12px;padding-right:30px}
.modal.v4.picker>div,.modal.v4.laypick>div{max-width:720px}

/* выбор фото */
.pick-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:8px;max-height:56vh;overflow:auto;padding:2px}
.pk{position:relative;aspect-ratio:1;border:2px solid transparent;border-radius:12px;overflow:hidden;padding:0;background:var(--surface2);cursor:pointer}
.pk img{width:100%;height:100%;object-fit:cover;display:block}
.pk small{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.65));color:#fff;font-size:10px;padding:10px 4px 3px;text-align:center}
.pk.on{border-color:var(--gold);box-shadow:0 0 0 2px var(--gold)}
.pk i{position:absolute;top:5px;right:5px;width:22px;height:22px;border-radius:50%;background:var(--gold);color:#fff;font-style:normal;display:grid;place-items:center;font-size:13px}

/* ---------- Кабинет молодожёнов ---------- */
body[data-page="couple"] main{max-width:1180px}
.cab{display:grid;grid-template-columns:250px 1fr;gap:26px;align-items:start}
.cab-side{position:sticky;top:96px;background:color-mix(in srgb,var(--surface) 92%,transparent);border:1px solid var(--line);border-radius:26px;padding:18px 12px;box-shadow:0 20px 50px -28px var(--shadow);display:flex;flex-direction:column;gap:2px}
.cs-brand{text-align:center;padding:4px 8px 14px;border-bottom:1px solid var(--line);margin-bottom:8px}
.cs-brand .names{display:block;font-size:30px;line-height:1.1;color:var(--ink)}
.cab-side nav{display:flex;flex-direction:column;gap:2px}
.cab-side nav button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;border:0;background:none;color:var(--ink2);font:600 14px Manrope;padding:11px 12px;border-radius:14px;cursor:pointer;position:relative;transition:background .2s,transform .2s}
.cab-side nav button i{font-style:normal;width:26px;text-align:center;font-size:17px}
.cab-side nav button:hover{background:color-mix(in srgb,var(--gold) 12%,transparent)}
.cab-side nav button.on{background:var(--btn);color:var(--btn-ink)}
.dot{margin-left:auto;background:#c0392b;color:#fff;border-radius:999px;font:700 11px/18px Manrope;min-width:18px;text-align:center;font-style:normal;padding:0 5px}
.cs-out{margin-top:10px;border:0;background:none;color:var(--muted);font:600 13px Manrope;cursor:pointer;padding:10px}
.cab-main{min-width:0}
.cab-main>*{animation:tabin .35s ease both}
@keyframes tabin{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.tile-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:12px;margin:14px 0}
.tile{display:flex;flex-direction:column;align-items:flex-start;gap:4px;text-align:left;background:linear-gradient(160deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:20px;padding:16px;cursor:pointer;color:var(--ink);transition:transform .2s,box-shadow .2s}
.tile:hover{transform:translateY(-3px);box-shadow:0 18px 40px -22px var(--shadow)}
.tile i{font-style:normal;font-size:28px}.tile b{font:700 15px Manrope}.tile small{color:var(--muted);font-size:12px;line-height:1.35}
.album-switch{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}
.album-switch h3{margin:0}
.cab-cd{text-align:center}
.cab-cd .cd{justify-content:center}
.cover-card{display:grid;grid-template-columns:210px 1fr;gap:20px;align-items:center}
.cover-prev{position:relative;aspect-ratio:3/4;border-radius:20px;background:var(--surface2) center/cover;overflow:hidden;box-shadow:0 20px 40px -22px var(--shadow);display:flex;flex-direction:column;justify-content:flex-end;padding:14px;color:#fff}
.cover-prev::before{content:"";position:absolute;inset:0;background:linear-gradient(transparent 40%,rgba(0,0,0,.6))}
.cover-prev.none{background:linear-gradient(160deg,var(--gold2),var(--gold))}
.cp-names{position:relative;font-size:34px;line-height:1;text-shadow:0 2px 14px rgba(0,0,0,.4)}.cp-names small{font-size:.6em}
.cp-btn{position:relative;margin-top:10px;background:#fff;color:#222;border-radius:999px;font:700 11px Manrope;padding:6px 12px;align-self:flex-start;letter-spacing:.08em;text-transform:uppercase}
.frame-pick{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin:8px 0 14px}
.fp{border:1.5px solid var(--line);background:var(--surface);border-radius:14px;padding:10px;cursor:pointer;color:var(--ink);font:600 12px Manrope;text-align:center}
.fp i{display:block;height:34px;border-radius:8px;margin-bottom:6px;background:linear-gradient(135deg,var(--a),var(--b))}
.fp.on{border-color:var(--btn);box-shadow:0 0 0 1.5px var(--btn)}
/* расписание */
.sch-row{display:grid;grid-template-columns:104px 64px 1fr auto auto auto;gap:6px;align-items:center;margin-bottom:8px}
.sch-row input,.sch-row select{padding:10px}
.sch-row .btn.sm{padding:9px 11px}
.next-box{display:flex;align-items:center;gap:12px;background:linear-gradient(135deg,var(--gold2),var(--gold));color:#2b2013;border-radius:18px;padding:12px 16px;margin:6px 0 14px}
.next-box .nx-ic{font-size:30px}.next-box small{display:block;opacity:.75;font-size:11px;letter-spacing:.12em;text-transform:uppercase}
.next-box div{flex:1}.next-box time{font:700 20px "Cormorant Garamond",serif;font-variant-numeric:tabular-nums}
.sch-list{list-style:none;margin:0;padding:0;position:relative}
.sch-list::before{content:"";position:absolute;left:62px;top:10px;bottom:10px;width:2px;background:var(--line)}
.sch-list li{display:grid;grid-template-columns:50px 26px 1fr;gap:12px;align-items:center;padding:9px 0}
.sch-list time{font:700 14px Manrope;color:var(--gold);text-align:right;font-variant-numeric:tabular-nums}
.sch-list i{font-style:normal;background:var(--surface);border:1px solid var(--line);width:28px;height:28px;border-radius:50%;display:grid;place-items:center;position:relative;z-index:1;font-size:14px}
.sch-list li.past{opacity:.45}.sch-list li.now i{background:var(--gold);border-color:var(--gold);box-shadow:0 0 0 5px color-mix(in srgb,var(--gold) 25%,transparent)}
.sch-list li.now span{font-weight:700}
.next-pill{position:relative;display:inline-flex;align-items:center;gap:8px;margin:0 0 14px;background:rgba(255,255,255,.18);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:7px 14px;color:#fff;font:600 13px Manrope}
.next-pill time{font-variant-numeric:tabular-nums;opacity:.9}
.inv-hero:not(.has-cover) .next-pill{color:var(--ink);background:var(--surface);border-color:var(--line)}

/* ---------- Мобильный кабинет ---------- */
@media(max-width:860px){
  .cab{display:block}
  .cab-side{display:none}
  .cover-card{grid-template-columns:1fr}
  .sch-row{grid-template-columns:96px 58px 1fr;}
  .sch-row .btn{grid-row:2;justify-self:start}
  body.has-nav main{padding-bottom:110px}
}
.mobile-nav button i{font-style:normal;font-size:20px;display:block;line-height:1.1}

/* ---------- Главная страница гостя (в духе Lahza) ---------- */
.inv-hero.has-cover{min-height:100svh;margin:0 -18px 8px;align-items:flex-end}
.inv-hero.has-cover .inv-cover{background-position:center 25%;transform:scale(1.04)}
.inv-hero.has-cover .inv-cover::after{background:linear-gradient(180deg,rgba(0,0,0,.18) 0%,rgba(0,0,0,0) 30%,rgba(0,0,0,.18) 55%,rgba(14,10,6,.78) 100%)}
.inv-hero.has-cover .inv-names{padding:0 24px 34px;color:#fff;text-align:center}
.inv-hero.has-cover .inv-names .names{color:#fff;align-items:center;text-shadow:0 4px 30px rgba(0,0,0,.5);font-size:clamp(64px,19vw,128px)}
.inv-hero.has-cover .inv-names .amp{color:#f3d9a0}
.inv-hero.has-cover .eyebrow{color:rgba(255,255,255,.88);letter-spacing:.28em}
.inv-hero.has-cover .btn.dark{background:#fff;color:#1c150d;border-color:#fff}
.inv-hero.has-cover .scroll-hint{color:rgba(255,255,255,.8)}
.inv-hero.has-cover .inv-cta{justify-content:center}
.inv-hero.has-cover .inv-cd .cd{color:#fff;justify-content:center}
.inv-hero.has-cover .inv-cd .cd span{color:rgba(255,255,255,.75)}
.inv-cd{margin:6px 0 14px}.inv-cd .cd{display:flex;gap:14px;justify-content:center}
.inv-cd .cd b{font:500 34px "Cormorant Garamond",serif}
.inv-hero:not(.has-cover) .inv-cd{margin-top:6px}
.inv-hero:not(.has-cover) .next-pill{margin-left:auto;margin-right:auto}
.inv-hero:not(.has-cover) .inv-names{text-align:center}

/* ---------- Заставка при открытии по QR ---------- */
#splash{position:fixed;inset:0;z-index:300;background:#f7f2e9;color:#2b2420;display:grid;place-items:center;overflow:hidden;cursor:pointer}
.sp-in{position:relative;z-index:2;text-align:center;padding:0 20px}
.sp-ring{width:84px;fill:none;stroke:#b8924a;stroke-width:2.2;margin-bottom:14px;stroke-dasharray:260;stroke-dashoffset:260;animation:sp-draw 1.3s .1s ease forwards}
.sp-ring path{fill:#b8924a;stroke:none;opacity:0;animation:sp-fade .5s 1s forwards}
.sp-word{display:flex;justify-content:center;font:500 clamp(30px,9vw,58px) "Cormorant Garamond",serif;letter-spacing:.22em;margin-right:-.22em}
.sp-word span{display:inline-block;opacity:0;transform:translateY(.5em) scale(.9);filter:blur(8px);animation:sp-let .9s calc(.25s + var(--i)*.07s) cubic-bezier(.2,.8,.2,1) forwards}
.sp-line{display:block;height:1.5px;width:0;margin:16px auto 12px;background:linear-gradient(90deg,transparent,#b8924a,transparent);animation:sp-w 1s 1s ease forwards}
.sp-sub{font:italic 22px "Cormorant Garamond",serif;color:#8a6d37;min-height:30px;opacity:0;animation:sp-fade .8s 1.5s forwards;margin:0}
.sp-cur{position:absolute;top:0;bottom:0;width:50.5%;background:#f7f2e9;transform:translateX(0);z-index:1;transition:transform 1s cubic-bezier(.7,0,.2,1)}
.sp-cur.l{left:0;box-shadow:2px 0 0 #b8924a,12px 0 40px rgba(0,0,0,.25)}.sp-cur.r{right:0;box-shadow:-2px 0 0 #b8924a,-12px 0 40px rgba(0,0,0,.25)}
#splash.out{pointer-events:none;background:transparent}
#splash.out .sp-in{animation:sp-away .5s ease forwards}
#splash.out .sp-cur.l,#splash.out .sp-cur.r{transform:none}
#splash.out .sp-cur{animation:sp-curtain 1.1s cubic-bezier(.7,0,.2,1) forwards}
#splash.out .sp-cur.l{animation-name:sp-curl}#splash.out .sp-cur.r{animation-name:sp-curr}
@keyframes sp-curl{0%{transform:translateX(0)}100%{transform:translateX(-101%)}}
@keyframes sp-curr{0%{transform:translateX(0)}100%{transform:translateX(101%)}}
@keyframes sp-draw{to{stroke-dashoffset:0}}
@keyframes sp-fade{to{opacity:1}}
@keyframes sp-w{to{width:min(260px,60vw)}}
@keyframes sp-let{to{opacity:1;transform:none;filter:none}}
@keyframes sp-away{to{opacity:0;transform:scale(1.08)}}
body.splash-on{overflow:hidden}
body.splash-reveal .inv-cover{animation:cover-zoom 1.8s cubic-bezier(.2,.7,.2,1) both}
body.splash-reveal .inv-names{animation:names-up 1.2s .35s cubic-bezier(.2,.8,.2,1) both}
@keyframes cover-zoom{from{transform:scale(1.25)}to{transform:scale(1.04)}}
@keyframes names-up{from{opacity:0;transform:translateY(40px);filter:blur(6px)}to{opacity:1;transform:none;filter:none}}
/* фон шторок виден только на выходе: до этого они уезжают за край и невидимы */
#splash:not(.out) .sp-cur{display:none}
#splash.out .sp-cur{display:block}
@media(prefers-reduced-motion:reduce){.sp-word span,.sp-ring,.sp-line,.sp-sub{animation-duration:.01s;animation-delay:0s}}

/* ---------- Камера гостя ---------- */
body[data-page="guest"] .cam{max-width:520px;padding:0;background:none;border:0;box-shadow:none;margin-top:10px}
.cam .vf{aspect-ratio:3/4;max-height:calc(100svh - 270px);border:0;border-radius:34px;margin:10px 0 0;background:#0d0b09;box-shadow:0 34px 70px -30px rgba(30,18,6,.7),0 0 0 1px rgba(255,255,255,.08) inset}
.cam .vf::before{content:"";position:absolute;inset:0;z-index:3;pointer-events:none;border-radius:inherit;background:
 linear-gradient(#fff,#fff) 18px 18px/26px 2px no-repeat,linear-gradient(#fff,#fff) 18px 18px/2px 26px no-repeat,
 linear-gradient(#fff,#fff) calc(100% - 18px) 18px/26px 2px no-repeat,linear-gradient(#fff,#fff) calc(100% - 18px) 18px/2px 26px no-repeat,
 linear-gradient(#fff,#fff) 18px calc(100% - 18px)/26px 2px no-repeat,linear-gradient(#fff,#fff) 18px calc(100% - 18px)/2px 26px no-repeat,
 linear-gradient(#fff,#fff) calc(100% - 18px) calc(100% - 18px)/26px 2px no-repeat,linear-gradient(#fff,#fff) calc(100% - 18px) calc(100% - 18px)/2px 26px no-repeat;opacity:.85}
.cam .vf .frame-deco{border:0;margin:0;inset:0;border-radius:inherit;box-shadow:inset 0 0 90px rgba(0,0,0,.35),inset 0 -120px 90px -60px rgba(0,0,0,.5)}
.cam .vf .caption{bottom:94px;font-size:clamp(26px,7vw,36px);color:#fff}
.cam .vf .caption small{color:rgba(255,255,255,.85);letter-spacing:.2em}
.cam .vf .fs{padding:20px 12px 12px}
.cam .ctl{grid-template-columns:1fr auto 1fr;padding:18px 8px 6px;align-items:center}
.cam .shutter{width:84px;height:84px;border:3px solid var(--gold);background:var(--btn);box-shadow:inset 0 0 0 5px var(--bg),0 0 0 6px color-mix(in srgb,var(--gold) 28%,transparent),0 18px 34px -14px var(--shadow);transition:transform .15s}
.cam .shutter:active{transform:scale(.92)}
.cam .shutter.rec{background:#c0392b;border-color:#c0392b;animation:rec 1.2s infinite}
@keyframes rec{50%{box-shadow:inset 0 0 0 5px var(--bg),0 0 0 14px rgba(192,57,43,.2)}}
.cam .round{width:54px;height:54px;border-radius:50%;background:color-mix(in srgb,var(--surface) 85%,transparent);backdrop-filter:blur(10px);border:1px solid var(--line);box-shadow:0 8px 20px -12px var(--shadow)}
.cam .left b{font:600 34px "Cormorant Garamond",serif;color:var(--ink)}
.cam .tabs{margin:0 0 4px}

/* ---------- Книги-альбомы ---------- */
.bk-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.bk-list.tight{grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:12px}
.bk-card{display:flex;flex-direction:column;gap:10px;background:linear-gradient(160deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:22px;padding:12px;box-shadow:0 18px 40px -26px var(--shadow);color:var(--ink);text-align:left}
.bk-card.mini{cursor:pointer;padding:8px;gap:6px;font:600 13px Manrope}
.bk-cover{display:block;border:0;padding:0;background:none;cursor:pointer;border-radius:10px;overflow:hidden;box-shadow:0 14px 26px -16px rgba(0,0,0,.55);position:relative}
.bk-cover::before{content:"";position:absolute;left:0;top:0;bottom:0;width:5%;background:linear-gradient(90deg,rgba(0,0,0,.28),transparent);z-index:3;pointer-events:none}
.bk-meta{display:flex;flex-direction:column;gap:8px}.bk-meta b{font:700 16px Manrope}
.lay-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:12px}
.lay-grid.th{grid-template-columns:repeat(auto-fill,minmax(190px,1fr))}
.lay-grid>button,.lay-grid>div{position:relative;display:flex;flex-direction:column;gap:6px;border:1.5px solid var(--line);background:var(--surface);border-radius:16px;padding:8px;cursor:pointer;color:var(--ink);text-align:center}
.lay-grid.static>div{cursor:default}
.lay-grid>button:hover{border-color:var(--gold)}
.lay-grid small{font:600 12px Manrope}
.lay-grid .lock{opacity:.7}
.lay-grid em{font-style:normal;font-size:10.5px;color:var(--gold);line-height:1.3}
.lay-grid .bk-fit{border-radius:8px;overflow:hidden;pointer-events:none}

/* рабочая область книги */
.bk-fit{position:relative;width:100%;aspect-ratio:1000/680;--u:.3px;container-type:normal}
.bk-canvas{position:absolute;inset:0;overflow:hidden;font-family:Manrope,sans-serif;color:#2b2420;background:#fbf8f1}
.bk-slot{position:absolute;overflow:hidden;background:#e9e2d4}
.bk-slot img{width:100%;height:100%;object-fit:cover;display:block;user-select:none;-webkit-user-drag:none}
.bk-slot.empty{display:grid;place-items:center;background:repeating-linear-gradient(45deg,rgba(0,0,0,.04),rgba(0,0,0,.04) 6px,transparent 6px,transparent 12px),#efe9dc}
.bk-empty{font-size:calc(var(--u)*34);color:rgba(0,0,0,.2)}
.bk-plus{font-size:calc(var(--u)*46);color:#8a7d6e;font-family:Manrope}
.bk-canvas.mini .bk-slot.empty{background:#efe9dc}
.bk-canvas.mini .bk-t{display:block}
.bk-deco{position:absolute;pointer-events:none}
.bk-t{position:absolute;overflow:hidden;white-space:normal;word-wrap:break-word;line-height:1.25}
.editing .bk-slot,.editing .bk-t,.editing .bk-ribbon{cursor:pointer}
.editing .bk-slot{outline:calc(var(--u)*2) dashed rgba(184,146,74,.65);outline-offset:calc(var(--u)*-2)}
.editing .bk-t{outline:calc(var(--u)*2) dotted rgba(60,120,200,.5)}
.bk-slot[data-n]::after{content:none}
/* формы */
.sh-pol{background:#fff;padding:calc(var(--u)*10) calc(var(--u)*10) calc(var(--u)*34);box-shadow:0 calc(var(--u)*6) calc(var(--u)*16) rgba(0,0,0,.25)}
.sh-pol img{height:100%}
.sh-pol.empty{background:#fff}
.sh-tape{background:#fff;padding:calc(var(--u)*8);box-shadow:0 calc(var(--u)*4) calc(var(--u)*12) rgba(0,0,0,.3);overflow:visible}
.sh-tape::before{content:"";position:absolute;top:calc(var(--u)*-12);left:50%;width:calc(var(--u)*70);height:calc(var(--u)*24);transform:translateX(-50%) rotate(-3deg);background:rgba(240,214,150,.75);box-shadow:0 1px 3px rgba(0,0,0,.15);z-index:2}
.sh-tape img{position:relative}
.sh-circle{border-radius:50%;border:calc(var(--u)*5) solid #fff;box-shadow:0 calc(var(--u)*4) calc(var(--u)*12) rgba(0,0,0,.3);overflow:visible}
.sh-circle img{border-radius:50%}
.sh-arch{border-radius:999px 999px 0 0;border:calc(var(--u)*4) solid #c9a45c}
.sh-oval{border-radius:50%;border:calc(var(--u)*5) solid #c9a45c}
.sh-bleed{border:0}
.sh-chalk{background:#f4efe3;padding:calc(var(--u)*5) calc(var(--u)*5) calc(var(--u)*22);box-shadow:0 calc(var(--u)*3) calc(var(--u)*8) rgba(0,0,0,.5)}
.sh-chalk img{filter:contrast(1.05)}
.sh-chalk .bk-cap{position:absolute;left:0;right:0;bottom:calc(var(--u)*2);text-align:center;font:italic calc(var(--u)*15) "Cormorant Garamond",serif;color:#333}
.sh-ct{background:#111;padding:calc(var(--u)*3);border:calc(var(--u)*1) solid #333}
.sh-ct.mk::after{content:"";position:absolute;inset:8% 6%;border:calc(var(--u)*4) solid #e2483d;border-radius:50%;transform:rotate(-8deg)}
.sh-film,.sh-film2{background:#111;padding:calc(var(--u)*5);border-radius:calc(var(--u)*2)}
.sh-film2{border:calc(var(--u)*10) solid #111;padding:0}
.f-bw img{filter:grayscale(1) contrast(1.1)}
.bk-ribbon{position:absolute;left:0;right:0;bottom:0;background:rgba(255,255,255,.92);font:italic calc(var(--u)*13) "Cormorant Garamond",serif;text-align:center;color:#1f2a26;padding:calc(var(--u)*2) 0;font-style:italic;min-height:calc(var(--u)*5)}
.sh-circle .bk-ribbon{bottom:8%;left:5%;right:5%;border-radius:calc(var(--u)*8)}
.bk-ribbon:empty{display:none}
.bk-tree{position:absolute;inset:0;width:100%;height:100%}
/* декор */
.dc-chalkbg{background:radial-gradient(ellipse at 30% 20%,#34423c,#1c2622);box-shadow:inset 0 0 0 calc(var(--u)*14) #7a5a3a}
.dc-strip{background:#111;border-radius:calc(var(--u)*4)}
.dc-strip::before,.dc-strip::after{content:"";position:absolute;left:0;right:0;height:calc(var(--u)*10);background:repeating-linear-gradient(90deg,#f3eee3 0 calc(var(--u)*9),transparent calc(var(--u)*9) calc(var(--u)*20))}
.dc-strip::before{top:calc(var(--u)*4)}.dc-strip::after{bottom:calc(var(--u)*4)}
.dc-tp-left{background:linear-gradient(135deg,#e9f0ec,#d3e3dc)}
.dc-leaves{background:radial-gradient(circle at 10% 10%,rgba(95,143,128,.35) 0 8%,transparent 9%),radial-gradient(circle at 92% 90%,rgba(95,143,128,.35) 0 10%,transparent 11%),#f1f5f0}
.dc-goldbg{background:linear-gradient(135deg,#1d1710,#2d2214);box-shadow:inset 0 0 0 calc(var(--u)*8) #c9a45c,inset 0 0 0 calc(var(--u)*11) #1d1710}
/* темы холста */
.th-polaroid{background:linear-gradient(135deg,#f7efe2,#efe3cf)}
.th-minimal{background:#faf8f4}
.th-chalk{background:#1c2622}.th-contact{background:#e7e2d8}.th-film{background:#1a1713}
.th-scrap{background:#efe3cf url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='6' height='6'%3E%3Crect width='6' height='6' fill='none'/%3E%3Ccircle cx='1' cy='1' r='.6' fill='%23b8924a' opacity='.25'/%3E%3C/svg%3E")}
.th-magazine{background:#fffefb}.th-tree{background:#f4f7f3}.th-pano{background:#161412}.th-gold{background:#1d1710}
/* текстовые стили */
.k-script{font:calc(var(--u)*46)/1 "Great Vibes",cursive;color:#7a5c24}
.k-cap{font:italic calc(var(--u)*24) "Cormorant Garamond",serif;text-align:center;color:#6b5c46}
.k-title{font:600 calc(var(--u)*50)/1.05 "Cormorant Garamond",serif;color:#2b2420}
.k-small{font:600 calc(var(--u)*17) Manrope;letter-spacing:.18em;text-transform:uppercase;color:#8a7d6e}
.k-body{font:calc(var(--u)*19)/1.5 "Cormorant Garamond",serif;color:#4a3f37}
.k-kicker{font:700 calc(var(--u)*15) Manrope;letter-spacing:.3em;text-transform:uppercase;color:#b8924a;text-align:center}
.k-chalkt{font:calc(var(--u)*58)/1 "Great Vibes",cursive;color:#f4efe3;text-align:center;display:flex;align-items:center;justify-content:center}
.k-chalks{font:calc(var(--u)*26)/1.2 "Cormorant Garamond",serif;color:#e8dcc3;font-style:italic;text-align:center}
.k-chalkq{font:calc(var(--u)*26)/1.3 "Great Vibes",cursive;color:#f4efe3;text-align:center}
.k-mono{font:600 calc(var(--u)*16)/1.4 "Courier New",monospace;color:#ddd;letter-spacing:.1em}
.th-contact .k-mono{color:#222}
.k-hand{font:calc(var(--u)*24)/1.2 "Great Vibes",cursive;color:#5a4528}
.k-mkick{font:700 calc(var(--u)*14) Manrope;letter-spacing:.3em;text-transform:uppercase;color:#b3342b}
.k-mtitle{font:700 calc(var(--u)*40)/1 "Playfair Display","Cormorant Garamond",serif;color:#161412;text-transform:uppercase}
.k-mtitle2{font:700 calc(var(--u)*72)/.95 "Playfair Display","Cormorant Garamond",serif;color:#161412}
.k-mscript{font:calc(var(--u)*34) "Great Vibes",cursive;color:#b3342b}
.k-mbody{font:calc(var(--u)*16)/1.5 "Cormorant Garamond",serif;color:#2b2420;column-count:1}
.k-mbody2{font:calc(var(--u)*13.5)/1.45 "Cormorant Garamond",serif;color:#2b2420;text-align:justify}
.k-mhead{font:700 calc(var(--u)*22)/1.05 "Playfair Display",serif;color:#161412}
.k-mbar{font:700 calc(var(--u)*11) Manrope;background:#161412;color:#fff;letter-spacing:.2em;text-transform:uppercase;padding:calc(var(--u)*6) calc(var(--u)*8)}
.k-mquote{font:italic 600 calc(var(--u)*40)/1.2 "Playfair Display",serif;color:#161412}
.k-treetitle{font:calc(var(--u)*52)/1 "Great Vibes",cursive;color:#17211f}
.k-treebody{font:calc(var(--u)*18)/1.5 "Cormorant Garamond",serif;color:#2b3a36}
.k-ptext{font:calc(var(--u)*54)/1 "Great Vibes",cursive;color:#fff;text-shadow:0 2px 10px rgba(0,0,0,.6)}
.k-pbody{font:calc(var(--u)*19)/1.5 "Cormorant Garamond",serif;color:#e9dfcd}
.th-pano .k-pbody{color:#e9dfcd}.th-pano.th-pano .k-title{color:#fff}
.k-gtitle{font:calc(var(--u)*52)/1 "Great Vibes",cursive;color:#e8c77c}
.k-gsub{font:600 calc(var(--u)*17) Manrope;letter-spacing:.22em;text-transform:uppercase;color:#c9a45c}
.k-gbody{font:italic calc(var(--u)*19)/1.45 "Cormorant Garamond",serif;color:#efe2c4}
.th-chalk .k-title,.th-film .k-title{color:#f4efe3}

/* просмотр книги */
.bkv{position:fixed;inset:0;z-index:120;background:radial-gradient(ellipse at 50% 30%,#3a2f22,#14100b);display:flex;flex-direction:column;color:#fff}
.bkv-top{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;font:600 15px Manrope}
.bkv-top button{background:rgba(255,255,255,.12);border:0;color:#fff;width:40px;height:40px;border-radius:50%;font-size:22px;cursor:pointer}
.bkv-stage{flex:1;min-height:0;display:grid;place-items:center;perspective:2200px;touch-action:pan-y}
.bkv-nav{display:flex;justify-content:center;gap:26px;padding:8px}
.bkv-nav button{background:rgba(255,255,255,.12);color:#fff;border:0;width:52px;height:52px;border-radius:50%;font-size:28px;cursor:pointer}
.bkv-hint{text-align:center;color:rgba(255,255,255,.55);margin:0 0 14px}
.bk{position:relative;transform-style:preserve-3d;filter:drop-shadow(0 30px 40px rgba(0,0,0,.6))}
.bk .pgbox{position:absolute;top:0;bottom:0;transform-style:preserve-3d}
.bk.dbl .pgbox.l{left:0;width:50%}.bk.dbl .pgbox.r{right:0;width:50%}
.bk.single .pgbox.full{left:0;right:0;width:100%}
.bk .bk-page{position:absolute;inset:0;overflow:hidden;background:#fff}
.bk .bk-page .bk-fit{position:absolute;top:0;width:200%;height:100%;aspect-ratio:auto}
.bk.single .bk-page{border-radius:4px}
.bk.dbl .pgbox.l .bk-page{border-radius:6px 0 0 6px}.bk.dbl .pgbox.r .bk-page{border-radius:0 6px 6px 0}
.bk .spine{position:absolute;left:50%;top:0;bottom:0;width:calc(2px + 2%);transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(0,0,0,.28) 45%,rgba(0,0,0,.34) 50%,rgba(0,0,0,.28) 55%,transparent);pointer-events:none;z-index:5}
.bk-leaf{position:absolute;top:0;bottom:0;left:0;width:100%;transform-origin:left center;transform-style:preserve-3d;z-index:6}
.bk-leaf .lf{position:absolute;inset:0;backface-visibility:hidden;-webkit-backface-visibility:hidden;overflow:hidden;background:#fff}
.bk-leaf .lf.bk{transform:rotateY(180deg);background:linear-gradient(90deg,#efe7d6,#fff)}
.bk-leaf .lf::after{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,rgba(0,0,0,.18),transparent 35%)}
.bk-leaf .lf .bk-page{position:absolute;inset:0}
.bk-leaf.one{width:100%}
.bk.dbl .pgbox.r{overflow:visible}.bk.dbl .pgbox.l{overflow:visible}

/* редактор */
.bke{position:fixed;inset:0;z-index:110;background:var(--bg);display:flex;flex-direction:column;overflow:auto;padding:12px 14px 20px}
.bke-top{display:flex;gap:10px;align-items:center}
.bke-name{flex:1;font:600 17px Manrope;padding:10px 14px}
.bke-bar{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0 4px}.bke-bar select{width:auto;padding:9px 12px;border-radius:999px;border:1.5px solid var(--line);background:var(--surface);color:var(--ink)}
.bke-hint{margin:2px 0 8px}
.bke-stage{max-width:min(1000px,calc((100svh - 330px)*1.47));margin:6px auto;width:100%;box-shadow:0 30px 60px -34px var(--shadow);border-radius:6px;overflow:hidden}
.bke-tools{display:flex;gap:8px;align-items:center;flex-wrap:wrap;justify-content:center;margin:8px 0}
.bke-strip{display:flex;gap:10px;overflow-x:auto;padding:6px 2px 10px;scroll-snap-type:x proximity}
.bke-th{flex:0 0 120px;border:2px solid transparent;border-radius:10px;padding:3px;background:var(--surface);cursor:pointer;color:var(--ink);scroll-snap-align:start;position:relative}
.bke-th.on{border-color:var(--gold)}
.bke-th small{display:block;text-align:center;font:600 11px Manrope;margin-top:2px}
.bke-th .bk-fit{pointer-events:none;border-radius:6px;overflow:hidden}
.bke-th.add{display:grid;place-items:center;min-height:90px;border-style:dashed;border-color:var(--line)}.bke-th.add span{font-size:28px}

/* ---------- Музей ---------- */
.hall-card{background:linear-gradient(160deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:22px;padding:14px;margin-bottom:14px}
.hall-head{display:flex;gap:8px;align-items:center;margin-bottom:10px}.hall-head input{flex:1;font:600 15px Manrope}
.hall-n{width:30px;height:30px;border-radius:50%;background:var(--gold);color:#fff;display:grid;place-items:center;font:700 13px Manrope;flex:none}
.mu-items{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px;margin-top:12px}
.mu-it{position:relative;aspect-ratio:3/4;border-radius:12px;overflow:hidden;background:var(--surface2);border:1px solid var(--line)}
.mu-it img{width:100%;height:100%;object-fit:cover;cursor:pointer}
.mu-it small{position:absolute;left:0;right:0;bottom:0;background:linear-gradient(transparent,rgba(0,0,0,.72));color:#fff;padding:14px 5px 4px;font-size:10.5px;text-align:center;pointer-events:none;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.mu-it button{position:absolute;top:4px;right:4px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.55);color:#fff;cursor:pointer;line-height:1}
.mu-add{aspect-ratio:3/4;border:2px dashed var(--line);border-radius:12px;background:none;color:var(--muted);cursor:pointer;display:grid;place-items:center;align-content:center;gap:4px}.mu-add span{font-size:26px}.mu-add small{font-size:11px}
.mu-link .qr-row{display:flex;gap:16px;align-items:center;flex-wrap:wrap}.mu-link .qr{background:#fff;padding:8px;border-radius:12px}
.mt-ivory.on{background:#efe3cf;color:#2b2420}.mt-rose.on{background:#f3c7d1;color:#4a1f2b}.mt-sage.on{background:#bcd3c2;color:#1f3a2a}.mt-night.on{background:#1d2540;color:#fff}.mt-gold.on{background:#d9b66f;color:#2b2013}
.mi-help{margin:6px 0}
body.is-museum header,body.is-museum .mobile-nav,body.is-museum .sup-fab,body.is-museum main::after{display:none!important}
body.is-museum main{max-width:none;padding:0}
.mus{position:fixed;inset:0;background:#17120d;overflow:hidden;touch-action:none;user-select:none;-webkit-user-select:none}
.mus canvas{position:absolute;inset:0;width:100%;height:100%;display:block}
.mus-top{position:absolute;top:0;left:0;right:0;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:14px 18px;background:linear-gradient(rgba(0,0,0,.55),transparent);color:#fff;z-index:3;pointer-events:none}
.mus-names{font-size:30px;line-height:1}.mus-hall{font:600 12px Manrope;letter-spacing:.18em;text-transform:uppercase;opacity:.85}
.mus-map{position:absolute;top:62px;left:0;right:0;display:flex;justify-content:center;gap:10px;z-index:3}
.mus-map button{width:26px;height:26px;border-radius:50%;border:0;background:rgba(255,255,255,.18);backdrop-filter:blur(6px);cursor:pointer;padding:0;display:grid;place-items:center}
.mus-map button i{width:9px;height:9px;border-radius:50%;background:rgba(255,255,255,.7)}.mus-map button.on i{background:#e8c77c;box-shadow:0 0 0 4px rgba(232,199,124,.3)}
.mus-act{position:absolute;left:50%;bottom:112px;transform:translateX(-50%);z-index:4;background:#fff;color:#1c150d;border:0;border-radius:999px;font:700 14px Manrope;padding:13px 22px;box-shadow:0 12px 30px -10px rgba(0,0,0,.6);cursor:pointer;animation:pulse 1.4s infinite}
@keyframes pulse{50%{transform:translateX(-50%) scale(1.06)}}
.mus-ctl{position:absolute;left:0;right:0;bottom:24px;display:flex;justify-content:space-between;padding:0 22px;z-index:3;pointer-events:none}
.mus-ctl button{pointer-events:auto;width:76px;height:76px;border-radius:50%;border:1px solid rgba(255,255,255,.3);background:rgba(255,255,255,.14);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);color:#fff;font-size:26px;cursor:pointer;touch-action:none}
.mus-ctl button:active{background:rgba(255,255,255,.3)}
.mus-intro{position:absolute;inset:0;z-index:6;background:radial-gradient(ellipse at 50% 30%,rgba(40,28,16,.78),rgba(10,7,4,.96));display:grid;place-items:center;padding:20px}
.mi-card{text-align:center;color:#fff;max-width:420px;width:100%}
.mi-card .names{font-size:clamp(58px,17vw,92px);line-height:1;margin:6px 0 4px;color:#f3d9a0}
.mi-card .small{color:rgba(255,255,255,.7)}
.mi-chars{display:flex;gap:10px;justify-content:center;margin:12px 0 18px;flex-wrap:wrap}
.mi-chars button{width:78px;border:2px solid transparent;background:rgba(255,255,255,.1);border-radius:18px;padding:10px 4px;color:#fff;cursor:pointer}
.mi-chars button span{display:block;font-size:34px}.mi-chars small{font-size:11px;color:#fff}
.mi-chars button.on{border-color:#e8c77c;background:rgba(232,199,124,.2)}
.lb.mus-lb{z-index:200}.lb.mus-lb p{font:italic 22px "Cormorant Garamond",serif;margin:12px 0}

/* ---------- Админ-панель: «стекло» ---------- */
body[data-page="sd-admin"]{background:radial-gradient(900px 600px at 10% -10%,rgba(60,214,196,.34),transparent 60%),radial-gradient(900px 700px at 100% 10%,rgba(80,120,255,.3),transparent 60%),linear-gradient(160deg,#0b2a33 0%,#0e3b45 45%,#13506a 100%)!important;color:#eaf6f7}
body[data-page="sd-admin"]::before{display:none}
body[data-page="sd-admin"] header{background:rgba(8,28,36,.55);border-color:rgba(255,255,255,.12)}
body[data-page="sd-admin"] header a.brand{color:#fff}
body[data-page="sd-admin"] main{max-width:1500px;padding-top:20px}
body[data-page="sd-admin"] main::after{display:none}
body[data-page="sd-admin"] .petal{display:none}
.adm{display:grid;grid-template-columns:248px 1fr;gap:20px;align-items:start;--g-bg:rgba(255,255,255,.1);--g-line:rgba(255,255,255,.18)}
.adm label,.adm .small,.adm small{color:rgba(234,246,247,.72)}
.adm input,.adm textarea,.adm select{background:rgba(255,255,255,.09);border:1px solid var(--g-line);color:#fff;border-radius:12px;padding:11px 12px;width:100%}
.adm input::placeholder{color:rgba(255,255,255,.45)}
.adm input:focus,.adm textarea:focus,.adm select:focus{border-color:#5fd4c6;box-shadow:0 0 0 3px rgba(95,212,198,.25)}
.adm select option{color:#111}
.adm .settings-grid>div{background:transparent;border:0;padding:0}
.adm-side{position:sticky;top:92px;background:var(--g-bg);backdrop-filter:blur(22px) saturate(1.3);-webkit-backdrop-filter:blur(22px) saturate(1.3);border:1px solid var(--g-line);border-radius:26px;padding:16px 12px;box-shadow:0 24px 60px -30px rgba(0,0,0,.6)}
.adm-logo{display:flex;align-items:center;gap:10px;padding:4px 8px 14px}
.adm-logo span{width:36px;height:36px;border-radius:12px;background:linear-gradient(135deg,#5fd4c6,#7aa7ff);display:grid;place-items:center;font:700 18px Manrope;color:#06242c}
.adm-logo b{font:700 14px Manrope;line-height:1.2}
.adm-grp{font:700 10.5px Manrope;letter-spacing:.2em;text-transform:uppercase;color:rgba(234,246,247,.5);margin:14px 10px 6px}
.adm-side button{display:flex;align-items:center;gap:10px;width:100%;text-align:left;background:none;border:0;color:rgba(234,246,247,.85);font:600 14px Manrope;padding:10px 12px;border-radius:14px;cursor:pointer;transition:background .2s}
.adm-side button i{font-style:normal;width:24px;text-align:center;opacity:.9}
.adm-side button:hover{background:rgba(255,255,255,.09)}
.adm-side button.on{background:linear-gradient(135deg,rgba(95,212,198,.28),rgba(122,167,255,.22));color:#fff;box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.adm-main{min-width:0;animation:tabin .35s ease both}
.adm-hello h1{margin:0;font:700 clamp(26px,3.4vw,36px) Manrope;color:#fff}.adm-hello p{margin:4px 0 18px;color:rgba(234,246,247,.7)}
.adm-head{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;margin-bottom:16px}.adm-head h2{margin:0;font:700 28px Manrope;color:#fff}
.g-search{max-width:320px}
.g-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px;margin-bottom:18px}
.g-stat,.g-card{background:var(--g-bg);backdrop-filter:blur(20px) saturate(1.3);-webkit-backdrop-filter:blur(20px) saturate(1.3);border:1px solid var(--g-line);border-radius:22px;box-shadow:0 22px 50px -30px rgba(0,0,0,.6)}
.g-stat{padding:16px;display:flex;flex-direction:column;gap:2px;transition:transform .2s}
.g-stat:hover{transform:translateY(-3px)}
.g-stat .ic{font-size:20px;width:38px;height:38px;border-radius:12px;background:rgba(255,255,255,.12);display:grid;place-items:center;margin-bottom:8px}
.g-stat b{font:700 28px Manrope;color:#fff}.g-stat span:not(.ic){font-size:12.5px;color:rgba(234,246,247,.7)}
.g-card{padding:18px;margin-bottom:16px;color:#eaf6f7}
.g-card h3{margin:0 0 12px;font:700 16px Manrope;color:#fff}
.g-card .cred{background:rgba(0,0,0,.2);border-radius:12px;padding:10px 12px;font-size:13px;margin:10px 0;word-break:break-all}
.g-card .qr{background:#fff;display:inline-block;padding:8px;border-radius:12px}
.g-grid2{display:grid;grid-template-columns:1.4fr 1fr;gap:16px}
.g-evgrid{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:16px}
.g-evgrid .g-card{margin:0}
.g-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:9px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:13.5px}.g-row:last-child{border:0}
.g-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;background:rgba(255,255,255,.12);border:1px solid var(--g-line);color:#fff;border-radius:12px;padding:9px 14px;font:600 13px Manrope;cursor:pointer;text-decoration:none;transition:background .2s,transform .2s}
.g-btn:hover{background:rgba(255,255,255,.2);transform:translateY(-1px)}
.g-btn.pri{background:linear-gradient(135deg,#5fd4c6,#7aa7ff);color:#06242c;border-color:transparent}
.g-btn.warn{background:rgba(240,100,100,.2);border-color:rgba(240,120,120,.45);color:#ffd5d5}
.g-pill{font:700 11px Manrope;border-radius:999px;padding:4px 10px;background:rgba(95,212,198,.2);color:#9af0e4;white-space:nowrap;height:fit-content}
.g-pill.warn{background:rgba(230,194,122,.22);color:#f6dca0}.g-pill.crit{background:rgba(240,100,100,.25);color:#ffb4b4}
.ev-top{display:flex;justify-content:space-between;gap:10px}
.ev-top h3{margin-bottom:2px}
.g-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:12px}
.g-mini div{background:rgba(0,0,0,.18);border-radius:14px;padding:10px;text-align:center}.g-mini b{display:block;font:700 20px Manrope;color:#fff}.g-mini span{font-size:11px;color:rgba(234,246,247,.65)}
.g-chk{display:inline-flex;align-items:center;gap:6px;margin:4px 12px 4px 0;font-weight:500;font-size:13px;color:#eaf6f7}.g-chk input{width:auto}
.g-checks{display:flex;flex-wrap:wrap;margin:6px 0 10px}
.g-card.plan.pop{box-shadow:0 0 0 2px #5fd4c6,0 22px 50px -30px rgba(0,0,0,.6)}
.new-ev{margin-bottom:16px}.new-ev summary{cursor:pointer;list-style:none}.new-ev summary h3{margin:0}
.adm-bars{display:flex;align-items:flex-end;gap:10px;height:180px;padding-top:10px}
.adm-bars .b{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;height:100%;min-width:0}
.adm-bars .b i{display:block;width:100%;max-width:44px;border-radius:10px 10px 4px 4px;background:linear-gradient(180deg,#5fd4c6,#3b8fb5);position:relative;min-height:4px;transition:height .6s}
.adm-bars .b em{position:absolute;top:-18px;left:0;right:0;text-align:center;font:600 11px Manrope;font-style:normal;color:#cdeff0}
.adm-bars .b span{font-size:10.5px;color:rgba(234,246,247,.65);margin-top:6px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.adm-donut{display:flex;align-items:center;gap:18px;flex-wrap:wrap;color:#fff}
.adm-donut ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px;font-size:13.5px}.adm-donut li{display:flex;align-items:center;gap:8px}.adm-donut li i{width:10px;height:10px;border-radius:50%}
.adm .admin-chats,.adm .card{background:var(--g-bg);border:1px solid var(--g-line);color:#eaf6f7;backdrop-filter:blur(20px)}
.adm .chat-row{background:rgba(255,255,255,.08);color:#fff;border:1px solid var(--g-line)}
.adm .tpl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;margin-top:12px}.adm .tpl{aspect-ratio:3/4;background-size:cover;border-radius:12px;position:relative;overflow:hidden}.adm .tpl small{position:absolute;bottom:0;left:0;right:0;background:rgba(0,0,0,.55);color:#fff;padding:4px;font-size:11px}
.adm .guide-item{display:flex;align-items:center;gap:8px;margin-top:10px}
.adm-login{max-width:420px;margin:40px auto}
@media(max-width:900px){
  .adm{display:block}
  .adm-side{position:static;display:flex;gap:6px;overflow-x:auto;padding:10px;border-radius:20px;margin-bottom:14px}
  .adm-logo,.adm-grp{display:none}
  .adm-side button{white-space:nowrap;width:auto;flex:none}
  .g-grid2{grid-template-columns:1fr}
  .g-evgrid{grid-template-columns:1fr}
}

.mus-intro{overflow:auto}
@media(max-height:520px){.mi-card .names{font-size:46px;margin:0}.mi-card .small{margin:2px 0}.mi-chars{margin:6px 0 8px;gap:6px}.mi-chars button{width:58px;padding:4px 2px}.mi-chars button span{font-size:22px}.mus-intro .btn{padding:9px 20px}}
.inv-hero.has-cover .cd b,.inv-hero.has-cover .inv-cd .cd b{color:#fff;text-shadow:0 2px 14px rgba(0,0,0,.5)}
.inv-hero.has-cover .cd span{color:rgba(255,255,255,.8)}

/* ===== Иконки ===== */
.ico{width:1.15em;height:1.15em;display:inline-block;vertical-align:-.2em;flex:none}
.ico.big{width:44px;height:44px;color:var(--gold)}
.cab-side nav button i .ico{width:19px;height:19px;vertical-align:middle}
.tile i .ico{width:26px;height:26px;color:var(--gold)}
.mobile-nav button i .ico{width:22px;height:22px}
.adm-side button i .ico{width:18px;height:18px;vertical-align:middle}
.btn .ico{margin-right:2px}
.dot.ok{background:var(--ok)}

/* ===== Приглашения: телефон-превью ===== */
.iv-phone{--s:.56;position:relative;width:calc(390px*var(--s) + 12px);height:calc(780px*var(--s) + 12px);border-radius:calc(46px*var(--s) + 6px);border:6px solid #1c1a17;background:#fff;overflow:hidden;box-shadow:0 24px 50px -24px rgba(0,0,0,.45);flex:none}
.iv-phone iframe{position:absolute;left:0;top:0;width:390px;height:780px;border:0;transform:scale(var(--s));transform-origin:0 0;pointer-events:none}
.iv-phone.sm{--s:.38}.iv-phone.lg{--s:.82}
.iv-phone.lg iframe{pointer-events:auto}
/* кабинет */
.iv-status{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;align-items:center;border-left:4px solid var(--line)}
.iv-status.on{border-left-color:var(--ok)}
.iv-status h3{margin:0 0 4px}
.iv-acts{display:flex;gap:8px;flex-wrap:wrap}
.iv-warn{color:#b5483f;font-size:13px;margin:6px 0 0}
.iv-share{margin-top:10px}.iv-share input{margin-bottom:8px;font-size:13px}
.iv-wrap.has-live{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:22px;align-items:start}
.iv-live{position:sticky;top:96px;text-align:center}
.iv-live .small{max-width:330px;margin:10px auto 0}
@media(max-width:1100px){.iv-wrap.has-live{display:block}.iv-live{display:none}}
.iv-sec{padding:0;overflow:hidden}
.iv-sec>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;padding:16px 18px;cursor:pointer;user-select:none}
.iv-sec>summary::-webkit-details-marker{display:none}
.iv-sh{display:flex;align-items:center;gap:10px}.iv-sh .ico{color:var(--gold);width:20px;height:20px}.iv-sh b{font:700 15px Manrope}
.iv-sec .chev{transition:transform .25s;color:var(--muted)}
.iv-sec[open] .chev{transform:rotate(180deg)}
.iv-body{padding:0 18px 18px}
.iv-designs{display:flex;gap:12px;overflow-x:auto;padding:4px 2px 10px;scroll-snap-type:x proximity}
.iv-dz{display:flex;flex-direction:column;align-items:center;gap:6px;border:2px solid transparent;border-radius:22px;padding:8px;background:var(--surface2);cursor:pointer;scroll-snap-align:start;color:var(--ink)}
.iv-dz.on{border-color:var(--gold);box-shadow:0 0 0 3px color-mix(in srgb,var(--gold) 25%,transparent)}
.iv-dz b{font:700 13px Manrope}.iv-dz small{font-size:11px;color:var(--muted)}
.iv-pals{display:flex;flex-wrap:wrap;gap:8px}
.iv-pal{display:flex;align-items:center;gap:0;border:1.5px solid var(--line);border-radius:999px;padding:4px 10px 4px 4px;background:var(--surface);cursor:pointer;color:var(--ink)}
.iv-pal span{width:20px;height:20px;border-radius:50%;margin-right:-5px;box-shadow:0 0 0 2px var(--surface)}
.iv-pal em{font-style:normal;font-size:12px;margin-left:12px}
.iv-pal.on{border-color:var(--btn);box-shadow:0 0 0 1.5px var(--btn)}
.iv-pals.sm .iv-pal{padding:3px 8px 3px 3px}.iv-pals.sm .iv-pal span{width:16px;height:16px}
.iv-slots{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:12px}
.iv-slot{border:1.5px solid var(--line);border-radius:16px;padding:10px;background:var(--surface)}
.iv-slot.need{border-style:dashed;border-color:color-mix(in srgb,#c0392b 55%,var(--line))}
.iv-sl{font:700 12.5px Manrope;margin:0 0 8px;display:flex;justify-content:space-between;gap:6px}
.iv-sl em{font-style:normal;font-weight:600;color:#c0392b;font-size:11px}
.iv-thumbs{display:flex;flex-wrap:wrap;gap:6px}
.iv-th{position:relative;width:64px;height:80px;border-radius:10px;overflow:hidden}
.iv-th img{width:100%;height:100%;object-fit:cover}
.iv-th button{position:absolute;top:3px;right:3px;width:22px;height:22px;border-radius:50%;border:0;background:rgba(0,0,0,.6);color:#fff;display:grid;place-items:center;padding:0;cursor:pointer}
.iv-th button .ico{width:13px;height:13px}
.iv-up{width:64px;height:80px;border-radius:10px;border:1.5px dashed var(--line);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-size:10.5px;color:var(--muted);cursor:pointer;text-align:center;padding:4px;margin:0;font-weight:600}
.iv-up:hover{border-color:var(--gold);color:var(--ink)}
.iv-up.sm{width:34px;height:80px}
.iv-slot.need .iv-up{width:100%;height:90px;flex-direction:row;font-size:13px}
.iv-tr{display:grid;grid-template-columns:128px 1fr 130px;gap:6px;padding:10px 0;border-bottom:1px dashed var(--line)}
.iv-tr .wide{grid-column:1/3}
.iv-trb{display:flex;gap:4px;justify-content:flex-end}
.iv-trb .btn{padding:8px 10px}
@media(max-width:560px){.iv-tr{grid-template-columns:122px 1fr}.iv-tr select{grid-column:1/3}.iv-tr .wide{grid-column:1/3}.iv-trb{grid-column:1/3}}
.iv-cols{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.iv-col{position:relative}
.iv-col input{width:46px;height:46px;border-radius:50%;padding:0;border:2px solid var(--line);cursor:pointer;overflow:hidden}
.iv-col input::-webkit-color-swatch-wrapper{padding:0}.iv-col input::-webkit-color-swatch{border:0;border-radius:50%}
.iv-col button{position:absolute;top:-6px;right:-6px;width:20px;height:20px;border-radius:50%;border:0;background:var(--btn);color:var(--btn-ink);padding:0;display:grid;place-items:center;cursor:pointer}
.iv-col button .ico{width:12px;height:12px}
.iv-cadd{width:46px;height:46px;border-radius:50%;border:1.5px dashed var(--line);background:none;cursor:pointer;color:var(--muted)}
.iv-chks{display:flex;flex-wrap:wrap;gap:6px 16px;margin:12px 0}
.iv-chk{display:flex;align-items:center;gap:8px;font-weight:500;margin:0}
.iv-chk input{width:auto}
.iv-rs{display:flex;flex-direction:column;gap:8px;margin-top:12px;max-height:420px;overflow:auto}
.iv-r{display:grid;grid-template-columns:1fr auto auto;gap:10px;align-items:center;border:1px solid var(--line);border-radius:14px;padding:10px 12px;background:var(--surface)}
.iv-r b{display:block}.iv-r small{color:var(--muted);font-size:11px}.iv-r p{margin:2px 0 0}
.iv-att{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:#fff;background:var(--ok)}
.iv-r.no .iv-att{background:#b5483f}
/* витрина */
body[data-page="invites"] main{max-width:1180px}
.iv-hero{text-align:center;padding:20px 0 10px}
.iv-hero h1{font-size:clamp(36px,6vw,58px);margin:0 0 8px}
.iv-hero>p{max-width:620px;margin:0 auto;color:var(--ink2)}
.iv-prices{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:22px 0}
.iv-price{border:1px solid var(--line);border-radius:20px;padding:14px 20px;background:var(--surface);min-width:220px}
.iv-price.main{background:var(--btn);color:var(--btn-ink);border-color:var(--btn)}
.iv-price b{display:block;font:600 30px 'Cormorant Garamond',serif}.iv-price b small{font:600 13px Manrope}
.iv-price span{font-size:13px;opacity:.85}
.iv-steps{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;max-width:900px;margin:10px auto 6px;text-align:left}
.iv-steps div{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:14px}
.iv-steps i{display:block;color:var(--gold);margin-bottom:6px}.iv-steps i .ico{width:22px;height:22px}
.iv-steps b{display:block;font:700 13.5px Manrope}.iv-steps small{font-size:12px;color:var(--muted)}
@media(max-width:760px){.iv-steps{grid-template-columns:1fr 1fr}}
.iv-quota{display:inline-flex;align-items:center;gap:6px;background:color-mix(in srgb,var(--gold) 14%,transparent);border-radius:999px;padding:8px 16px;font-size:13px;margin:12px 0}
.iv-quota.none{background:color-mix(in srgb,#c0392b 14%,transparent)}
.iv-cat{display:grid;grid-template-columns:repeat(auto-fill,minmax(340px,1fr));gap:18px;margin-top:20px}
.iv-card{display:grid;grid-template-columns:auto 1fr;gap:16px;background:linear-gradient(160deg,var(--surface),var(--surface2));border:1px solid var(--line);border-radius:26px;padding:14px;box-shadow:0 18px 40px -28px var(--shadow)}
.iv-card .iv-phone{--s:.4}
.iv-card-b{display:flex;flex-direction:column;gap:10px;min-width:0}
.iv-card-t{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.iv-card-t h3{margin:0;font-size:28px}
.iv-card .pill{font-size:11px}
.iv-card .row{margin-top:auto}
@media(max-width:420px){.iv-card{grid-template-columns:1fr;justify-items:center;text-align:center}.iv-card .iv-pals,.iv-card .row,.iv-card-t{justify-content:center}}
.iv-mine .iv-ms{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--line);flex-wrap:wrap}
.iv-mine .iv-ms>div{flex:1;min-width:160px}.iv-mine small{display:block;color:var(--muted);font-size:12px}
.iv-mod>div{max-width:560px}
.iv-warnbox{display:flex;gap:14px;align-items:flex-start;background:color-mix(in srgb,#e0a92a 14%,transparent);border:1px solid color-mix(in srgb,#e0a92a 45%,transparent);border-radius:16px;padding:14px;margin-bottom:10px}
.iv-warnbox .ico{width:28px;height:28px;color:#b7791f}
.iv-warnbox h3{margin:0 0 4px}.iv-warnbox p{margin:0;font-size:14px}
.iv-ok{width:64px;height:64px;border-radius:50%;background:var(--ok);color:#fff;display:grid;place-items:center;margin:6px auto 10px}.iv-ok .ico{width:34px;height:34px}
.iv-promo{display:grid;grid-template-columns:1fr auto;gap:20px;align-items:center;margin-top:24px;overflow:hidden}
.iv-promo h2{margin:4px 0 8px;font-size:34px}
.iv-promo-ph{display:flex;position:relative;height:250px}
.iv-promo-ph .iv-phone{transform:rotate(-6deg)}.iv-promo-ph .iv-phone.b{margin-left:-40px;margin-top:24px;transform:rotate(5deg)}
@media(max-width:640px){.iv-promo{grid-template-columns:1fr}.iv-promo-ph{justify-content:center}}
/* админка */
.iv-adm-card{display:grid;grid-template-columns:auto 1fr;gap:14px}
.iv-adm-card.off{opacity:.6}
.iv-adm-card .iv-phone{--s:.3;border-color:#0b2a33}
.iv-ed>div{max-width:1000px;width:100%}
.iv-code{width:100%;min-height:380px;font:12.5px/1.5 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;tab-size:2;white-space:pre;background:#14181f;color:#e7edf3;border-radius:12px;padding:12px}
.iv-pr{display:flex;gap:6px;align-items:center;flex-wrap:wrap;margin-bottom:6px}
.iv-pr>input{flex:1;min-width:140px}
.iv-pr label{display:flex;flex-direction:column;align-items:center;margin:0;font-weight:500}
.iv-pr label input{width:38px;height:30px;padding:0;border-radius:8px}
.iv-pr small{font-size:9.5px;color:var(--muted)}
.iv-help{margin-top:10px}.iv-help summary{cursor:pointer;font-weight:600}
.iv-help table{width:100%;border-collapse:collapse;font-size:12.5px;margin-top:8px}
.iv-help td{border-top:1px solid var(--line);padding:6px;vertical-align:top}
.iv-help code{font-size:11.5px;word-break:break-word}
.modal.v4.iv-ed label.chip{display:inline-flex;margin:0 6px 6px 0;cursor:pointer}
/* Админка → Безопасность */
.sec5 .mono,.mono{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.95em}
.sec5-chart{width:100%;height:120px;display:block}.sec5-chart text{font:11px Manrope,sans-serif;fill:currentColor;opacity:.55}
.sec5-chart .b-ok,.sec5-leg i.b-ok{fill:#5fd4c6;background:#5fd4c6}.sec5-chart .b-er,.sec5-leg i.b-er{fill:#e6c27a;background:#e6c27a}.sec5-chart .b-bl,.sec5-leg i.b-bl{fill:#f07474;background:#f07474}
.sec5-leg i{display:inline-block;width:10px;height:10px;border-radius:3px;margin:0 4px 0 10px;vertical-align:-1px}
.sec5-m{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center;font-size:13px;margin:8px 0}
.sec5-m i{height:8px;border-radius:9px;background:rgba(255,255,255,.1);overflow:hidden}.sec5-m b{display:block;height:100%;border-radius:9px;background:#5fd4c6}
.sec5-m b.warn{background:#e6c27a}.sec5-m b.crit{background:#f07474}.sec5-m em{font-style:normal;opacity:.75;white-space:nowrap}
.sec5-q{margin:10px 0}.sec5-tw{overflow-x:auto;max-height:560px;overflow-y:auto}
.sec5-ip{cursor:pointer}.sec5-ip:hover td{background:rgba(255,255,255,.04)}.sec5-more td{background:rgba(0,0,0,.18)}.sec5-more code{font-size:12px;word-break:break-all}
.sec5-list{max-height:360px;overflow-y:auto}.sec5 .g-row.off{opacity:.5}
.sec5-qr{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:10px 0}.sec5-qr .qr{background:#fff;padding:8px;border-radius:12px;line-height:0}
.sec5-qr code{font-size:15px;letter-spacing:.06em;word-break:break-all}
@media (max-width:640px){.sec5-m{grid-template-columns:90px 1fr}.sec5-m em{grid-column:1/-1;font-size:12px}.sec5 .t5 td:nth-child(4),.sec5 .t5 th:nth-child(4){display:none}}
