/* ProFolio — интерфейс платформы. */
:root {
  --paper: #F5F6F4;
  --surface: #FFFFFF;
  --ink: #171A21;
  --graphite: #5B6170;
  --line: #DADDE2;
  --blue: #1D4E9E;
  --blue-deep: #163D7C;
  --blue-wash: #E6EDF8;
  --ishkor: #2E9C99;
  --ishkor-wash: #E2F3F2;
  --danger: #B4362C;
  --display: "Unbounded", system-ui, sans-serif;
  --text: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 16px/1.55 var(--text); color: var(--ink); background: var(--paper); }
img { max-width: 100%; display: block; }
a { color: var(--blue); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 1em; }
small, .muted { color: var(--graphite); }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 500 15px/1 var(--text); padding: 13px 20px; border-radius: var(--r);
  border: 1px solid transparent; background: var(--blue); color: #fff; cursor: pointer;
  text-decoration: none; white-space: nowrap; transition: background .15s;
}
.btn:hover { background: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface); border-color: var(--graphite); }
.btn.danger { background: transparent; color: var(--danger); border-color: #E8C4C0; }
.btn.danger:hover { background: #FBEFEE; }
.btn.small { padding: 9px 14px; font-size: 14px; }
.btn.wide { width: 100%; }
button.linkish { background: none; border: 0; padding: 0; font: inherit; color: var(--graphite); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
.field small { display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
input[type=tel], input[type=url], input[type=search], select, textarea {
  width: 100%; font: 400 15px/1.4 var(--text); color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r); padding: 11px 13px;
}
textarea { min-height: 96px; resize: vertical; }
/* iPhone увеличивает страницу при фокусе на поле со шрифтом меньше 16px */
@media (max-width: 820px) {
  input:not([type]), input[type=text], input[type=email], input[type=password], input[type=date], input[type=number],
  input[type=tel], input[type=url], select, textarea, .lr input { font-size: 16px; }
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
input[type=color] { width: 52px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; margin-bottom: 12px; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 640px) { .row2 { grid-template-columns: 1fr; } }

.alert { padding: 12px 14px; border-radius: var(--r); margin-bottom: 18px; font-size: 15px; }
.alert.err { background: #FBEFEE; color: #8A2A22; }
.alert.ok { background: var(--ishkor-wash); color: #1C6765; }

/* ---------- Лендинг ---------- */
.land-top { display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 1180px; margin: 0 auto; padding: 22px 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
  font: 700 19px/1 var(--display); letter-spacing: -0.02em; }
.logo .mark { width: 28px; height: 28px; color: var(--blue); }
/* Логотип ProFolio: уголки видоискателя + PRO folio */
.pf-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.pf-mark { position: relative; width: 30px; height: 30px; flex: none; }
.pf-mark i { position: absolute; width: 9px; height: 9px; border: 2.5px solid currentColor; }
.pf-mark i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.pf-mark i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.pf-mark i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.pf-mark i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.pf-mark em { position: absolute; inset: 0; display: grid; place-items: center; font: 900 13px/1 Montserrat, sans-serif; font-style: normal; }
.pf-word { font: 200 22px/1 Montserrat, sans-serif; letter-spacing: -.01em; white-space: nowrap; }
.pf-word b { font-weight: 900; font-size: 19px; letter-spacing: .06em; margin-right: 3px; }
.land-nav { display: flex; align-items: center; gap: 26px; }
.land-nav a { color: var(--ink); text-decoration: none; font-size: 15px; }
.land-nav a:hover { color: var(--blue); }
.land-nav .langs { display: flex; gap: 2px; }
.langs a { font-size: 13px; padding: 4px 7px; border-radius: 6px; color: var(--graphite); text-decoration: none; }
.langs a[aria-current] { background: var(--ink); color: #fff; }
@media (max-width: 820px) { .land-nav .hide-m { display: none; } .land-nav { gap: 14px; } }

.hero { max-width: 1180px; margin: 0 auto; padding: 40px 24px 0; display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.4vw, 68px); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; margin-bottom: 24px; }
.hero .lead { font-size: 19px; color: #3A3F4B; max-width: 34em; margin-bottom: 28px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero .note { margin-top: 14px; font-size: 14px; color: var(--graphite); }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 16px; } }

/* Демонстрация: экран телефона с галереей и отбором */
.demo { position: relative; aspect-ratio: 6 / 5; }
.demo-sheet { position: absolute; inset: 0 14% 8% 0; background: var(--surface); border-radius: var(--r-lg);
  border: 1px solid var(--line); padding: 18px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.demo-head { display: flex; justify-content: space-between; align-items: baseline; }
.demo-head b { font: 500 15px/1.2 var(--display); }
.demo-head span { font-size: 12px; color: var(--graphite); }
.demo-grid { flex: 1; display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.demo-grid i { border-radius: var(--r-sm); position: relative; background-size: cover; background-position: center; }
.demo-grid i:nth-child(1) { grid-row: span 2; }
.demo-grid i.on::after { content: ""; position: absolute; right: 7px; top: 7px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--ishkor) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 20s-7-4.4-7-9.6A3.9 3.9 0 0 1 12 8a3.9 3.9 0 0 1 7 2.4C19 15.6 12 20 12 20z' fill='%23fff'/%3E%3C/svg%3E") center/14px no-repeat; }
.demo-phone { position: absolute; right: 0; bottom: 0; width: 38%; aspect-ratio: 9 / 18; background: var(--ink);
  border-radius: 26px; padding: 8px; box-shadow: 0 30px 60px -30px rgba(23, 26, 33, .55); }
.demo-phone .scr { height: 100%; border-radius: 19px; background: #fff; overflow: hidden; display: flex; flex-direction: column; }
.demo-phone .scr .pscr { flex: 1; background-size: cover; background-position: center; }
.demo-phone .scr .bar { padding: 10px 12px 14px; font-size: 11px; line-height: 1.35; }
.demo-phone .scr .bar b { display: block; font-size: 12px; margin-bottom: 6px; }
.demo-phone .scr .send { display: block; text-align: center; background: var(--blue); color: #fff; border-radius: 8px; padding: 7px; font-weight: 500; }
/* Фотографии в демо — нейтральные градиенты-«плёнки», без чужих снимков */
.f1 { background-image: linear-gradient(160deg, #C9B79C 0%, #8D6E55 55%, #3E2F27 100%); }
.f2 { background-image: linear-gradient(200deg, #A9C2D6 0%, #5E7F9C 60%, #2C3A4D 100%); }
.f3 { background-image: linear-gradient(140deg, #E4D7C5 0%, #B79B83 70%, #6B5546 100%); }
.f4 { background-image: linear-gradient(180deg, #9FB8A5 0%, #557563 70%, #2A3C33 100%); }
.f5 { background-image: linear-gradient(120deg, #D7C9D6 0%, #92788F 65%, #4A3A4B 100%); }
.f6 { background-image: linear-gradient(170deg, #E9E2D3 0%, #C2A57E 50%, #6E5233 100%); }

.section { max-width: 1180px; margin: 0 auto; padding: 110px 24px 0; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.split h2 { font-size: clamp(26px, 3.2vw, 38px); font-weight: 700; letter-spacing: -0.025em; }
.split p { font-size: 17px; color: #3A3F4B; max-width: 34em; }
.ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.ticks li { padding-left: 26px; position: relative; font-size: 15px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--ishkor); border-bottom: 2px solid var(--ishkor); transform: rotate(-45deg); }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; gap: 28px; } .ticks { grid-template-columns: 1fr; } }

/* Схема блоков сайта */
.blocks-demo { display: grid; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.blocks-demo div { border-radius: var(--r-sm); padding: 12px 14px; font-size: 13px; color: var(--graphite); background: var(--paper); display: flex; justify-content: space-between; }
.blocks-demo .bd-hero { height: 128px; color: #fff; align-items: flex-end; background: linear-gradient(160deg, #C9B79C, #3E2F27); font: 500 16px/1.2 var(--display); }
.blocks-demo .bd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 0; background: none; }
.blocks-demo .bd-grid i { aspect-ratio: 4/5; border-radius: var(--r-sm); }
.blocks-demo b { color: var(--ink); font-weight: 500; }

/* Последовательность съёмки — это реальный порядок шагов */
.flow { list-style: none; padding: 0; margin: 28px 0 0; counter-reset: s; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 2px solid var(--ink); }
.flow li { counter-increment: s; padding: 18px 18px 0 0; font-size: 15px; line-height: 1.45; }
.flow li::before { content: counter(s); display: block; font: 700 30px/1 var(--display); color: var(--blue); margin-bottom: 12px; }
@media (max-width: 900px) { .flow { grid-template-columns: 1fr; border-top: 0; } .flow li { border-top: 1px solid var(--line); padding: 16px 0; display: grid; grid-template-columns: 44px 1fr; } .flow li::before { margin: 0; font-size: 22px; } }

.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 28px; max-width: 860px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.plan.pro { background: var(--ink); color: #fff; border-color: var(--ink); }
.plan h3 { font-size: 18px; margin-bottom: 6px; }
.plan .price { font: 700 26px/1.2 var(--display); letter-spacing: -0.02em; margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; font-size: 15px; }
.plan.pro .btn { background: #fff; color: var(--ink); }
.plan.pro .btn:hover { background: var(--blue-wash); }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; } }

.land-foot { max-width: 1180px; margin: 110px auto 0; padding: 28px 24px 40px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--graphite); flex-wrap: wrap; }

/* ---------- Вход / регистрация ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card .logo { margin-bottom: 36px; }
.auth-card h1 { font-size: 28px; margin-bottom: 24px; }
.auth-card .alt { margin-top: 20px; font-size: 15px; color: var(--graphite); }
.slug-input { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.slug-input input { border: 0; border-radius: 0; min-width: 0; }
.slug-input input:focus { box-shadow: none; }
.slug-input:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.slug-input span { padding: 11px 13px 11px 0; color: var(--graphite); white-space: nowrap; font-size: 15px; align-self: center; }

/* ---------- Кабинет ---------- */
body.app { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(to right, var(--surface) 235px, var(--line) 235px, var(--line) 236px, var(--paper) 236px); }
.side { background: var(--surface); border-right: 1px solid var(--line); padding: 22px 16px; display: flex; flex-direction: column; gap: 28px; position: sticky; top: 0; height: 100vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.side .logo { padding: 0 8px; }
.side-nav { display: grid; gap: 2px; }
.side-nav a { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.side-nav a:hover { background: var(--paper); }
.side-nav a[aria-current] { background: var(--blue-wash); color: var(--blue-deep); }
.count { background: var(--blue); color: #fff; border-radius: 10px; font-size: 12px; padding: 1px 7px; }
.side-foot { margin-top: auto; display: grid; gap: 16px; padding: 0 8px; }
.meter-bar { height: 5px; border-radius: 3px; background: var(--paper); overflow: hidden; margin-bottom: 6px; }
.meter-bar { display: flex; }
.meter-bar span { display: block; height: 100%; background: var(--ishkor); }
.meter-bar span.tr { background: repeating-linear-gradient(45deg, #b8b2a8 0 3px, #d6d0c6 3px 6px); }
.meter-trash { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--graphite); text-decoration: none; }
.meter-trash:hover { color: var(--ink); }
.tr-sw { width: 10px; height: 6px; border-radius: 2px; background: repeating-linear-gradient(45deg, #b8b2a8 0 3px, #d6d0c6 3px 6px); }
.meter small { font-size: 12px; }
.side-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.side-row form { margin: 0; }
.main { padding: 32px clamp(16px, 3.5vw, 44px) 80px; max-width: 1920px; width: 100%; }  /* v113r: было 1240 — справа пустовало */
@media (max-width: 860px) {
  /* minmax(0, …) — иначе длинная строка меню растягивает страницу шире экрана */
  body.app { grid-template-columns: minmax(0, 1fr); background: var(--paper); }
  .side { min-width: 0; position: static; height: auto; overflow: visible; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-nav { display: flex; overflow-x: auto; order: 3; width: 100%; min-width: 0; -webkit-overflow-scrolling: touch; }
  .side-nav a { white-space: nowrap; gap: 6px; }
  .side-foot { margin: 0 0 0 auto; display: flex; padding: 0; }
  .side-foot .meter { display: none; }
  .side-row { gap: 12px; }
  .main { padding-top: 22px; }
}

.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 26px; }
.page-head h1 { margin: 0; font-size: 30px; }
.page-head .sub { color: var(--graphite); margin-top: 6px; font-size: 15px; }
.crumb { font-size: 14px; color: var(--graphite); text-decoration: none; display: inline-block; margin-bottom: 10px; }
.crumb:hover { color: var(--blue); }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; margin-bottom: 20px; }
.panel h2 { font-size: 18px; margin-bottom: 16px; }

/* Список галерей */
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px 20px; }
.g-card { text-decoration: none; color: inherit; display: block; }
.g-card .cov { aspect-ratio: 4 / 3; border-radius: var(--r); background: #E7E9EC center/cover no-repeat; margin-bottom: 12px; position: relative; overflow: hidden; }
.g-card .cov.empty { display: grid; place-items: center; color: var(--graphite); font-size: 13px; border: 1px dashed var(--line); background: var(--surface); }
.g-card:hover .cov { outline: 2px solid var(--blue); outline-offset: 2px; }
.g-card h3 { font: 500 16px/1.3 var(--text); margin: 0 0 4px; }
.g-card .meta { font-size: 13px; color: var(--graphite); display: flex; gap: 12px; flex-wrap: wrap; }
.tag { position: absolute; left: 10px; top: 10px; background: rgba(23, 26, 33, .78); color: #fff; font-size: 12px; padding: 3px 9px; border-radius: 20px; }
.tag + .tag { left: auto; right: 10px; }

.new-g { display: grid; grid-template-columns: 2fr 1fr 1fr auto; gap: 12px; align-items: end; }
.new-g .field { margin: 0; }
.new-g .sel-opt { grid-column: 1 / -1; margin: 2px 0 0; }
.new-g .sel-opt small { display: block; font-size: 13px; }
@media (max-width: 900px) { .new-g { grid-template-columns: 1fr 1fr; } .new-g .field:first-child { grid-column: span 2; } }

.empty-state { padding: 48px 24px; text-align: center; border: 1px dashed var(--line); border-radius: var(--r-lg); color: var(--graphite); max-width: 640px; margin: 0 auto; }

/* Вкладки */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 24px; overflow-x: auto; }
.tabs a { padding: 10px 14px; text-decoration: none; color: var(--graphite); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; white-space: nowrap; }
.tabs a[aria-current] { color: var(--ink); border-color: var(--ink); }

.linkbox { display: flex; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 6px 6px 14px; max-width: 560px; }
.linkbox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 14px/1.4 var(--text); color: var(--ink); }

/* Загрузка */
.drop { border: 1.5px dashed #B9BFC9; border-radius: var(--r-lg); padding: 30px 20px; text-align: center; color: var(--graphite); cursor: pointer; background: var(--surface); transition: border-color .15s, background .15s; }
.drop:hover, .drop.over { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-deep); }
.drop b { display: block; color: var(--ink); font-weight: 500; margin-bottom: 4px; }
.progress { margin-top: 14px; display: none; }
.progress.on { display: block; }
.progress .bar { height: 6px; background: var(--paper); border-radius: 3px; overflow: hidden; }
.progress .bar span { display: block; height: 100%; width: 0; background: var(--blue); transition: width .2s; }
.progress small { display: block; margin-top: 6px; }

.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 20px; }
.ph { position: relative; aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: #E7E9EC; cursor: grab; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph.dragging { opacity: .4; }
.ph .ph-tools { position: absolute; inset: auto 0 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; padding: 6px; background: linear-gradient(transparent, rgba(0,0,0,.6)); opacity: 0; transition: opacity .15s; }
.ph:hover .ph-tools, .ph:focus-within .ph-tools { opacity: 1; }
.ph-tools button { background: rgba(255,255,255,.92); border: 0; border-radius: 6px; font: 500 12px/1 var(--text); padding: 6px 8px; cursor: pointer; color: var(--ink); }
.ph-tools button.del { color: var(--danger); flex: 0 0 auto; display: grid; place-items: center; padding: 4px 7px; }
.ph-tools button.del svg { width: 16px; height: 16px; }
.ph-tools button[data-cover] { flex: 1 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ph-tools a.ph-ai { flex: 1 0 100%; text-align: center; box-sizing: border-box; }
.wm-panel { max-width: 980px; }
.wm-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: start; }
.wm-radio { border: 0; padding: 0; margin: 0 0 16px; }
.wm-radio legend { font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.wm-radio .check { margin-bottom: 6px; }
.wm-prev { margin: 0; position: sticky; top: 16px; }
.wm-prev img { width: 100%; border-radius: var(--r); background: #E7E9EC; aspect-ratio: 3 / 2; object-fit: cover; }
.wm-prev figcaption { font-size: 13px; margin-top: 6px; }
@media (max-width: 820px) { .wm-grid { grid-template-columns: 1fr; } .wm-prev { position: static; } }
.poll-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.poll-btns form { margin: 0; }
.notice .poll-btns button { background: var(--blue); color: #fff; border: 1px solid var(--blue); border-radius: var(--r); padding: 6px 12px; text-decoration: none; font: 500 14px var(--text); }
.notice .poll-btns button.ghost { background: transparent; color: inherit; border-color: currentColor; }
.ph .is-hidden { position: absolute; right: 6px; top: 6px; background: var(--danger); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.ph .is-hidden.is-review { background: #B86E00; }
.ph-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 18px 0 -8px; min-height: 36px; }
.ph-bar-hint { font-size: 14px; margin-right: auto; }
.ph-bar-n { margin-right: auto; }
.ph-check { position: absolute; left: 6px; top: 6px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff;
  background: rgba(0,0,0,.25); box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: pointer; opacity: 0; transition: opacity .12s; padding: 0; }
.ph:hover .ph-check, .ph-check:focus-visible, .ph-grid.selecting .ph-check { opacity: 1; }
.ph.sel .ph-check { background: var(--blue); border-color: #fff; }
.ph.sel .ph-check::after { content: ""; position: absolute; left: 7px; top: 3px; width: 6px; height: 11px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ph.sel { outline: 3px solid var(--blue); outline-offset: -3px; }

.ph-grid.selecting .ph { cursor: pointer; }
@media (hover: none) { .ph-check { opacity: 1; } }
.ph .is-cover { position: absolute; left: 38px; top: 8px; background: var(--ishkor); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; }
.ph .name { position: absolute; left: 6px; top: 6px; font-size: 11px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.6); max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: none; }
@media (hover: none) { .ph .ph-tools { opacity: 1; } }

/* Отборы */
.sel { border-top: 1px solid var(--line); padding: 20px 0; }
.sel:first-child { border-top: 0; padding-top: 0; }
.sel-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sel-head b { font-size: 17px; }
.sel-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 6px; margin: 12px 0; }
.sel-thumbs figure { margin: 0; }
.sel-thumbs img { aspect-ratio: 1; object-fit: cover; border-radius: var(--r-sm); width: 100%; }
.sel-thumbs figcaption { font-size: 11px; color: var(--graphite); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: 3px; }
.sel-thumbs .cm { font-size: 12px; color: var(--ink); background: var(--ishkor-wash); border-radius: 4px; padding: 3px 5px; margin-top: 3px; white-space: normal; }
.lr { display: flex; gap: 8px; }
.lr input { font-size: 13px; }

/* Таблица заявок */
.inq { display: grid; gap: 12px; }
.inq-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px 20px; }
.inq-item.new { border-left: 4px solid var(--blue); }
.inq-item h3 { font: 500 17px/1.3 var(--text); margin: 0; }
.inq-item .when { font-size: 13px; color: var(--graphite); }
.inq-item p { grid-column: 1 / -1; margin: 0; white-space: pre-wrap; }
.inq-item .acts { display: flex; gap: 8px; grid-column: 1 / -1; }
.inq-item .acts form { margin: 0; }

/* Сайт: страницы */
.pages-list { display: grid; gap: 8px; }
.page-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.page-row a.t { flex: 1; color: var(--ink); text-decoration: none; font-weight: 500; }
.page-row a.t:hover { color: var(--blue); }
.page-row .u { color: var(--graphite); font-size: 13px; }
.page-row form { margin: 0; }
.icon-btn { width: 32px; height: 32px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; color: var(--graphite); }
.icon-btn:hover { color: var(--ink); border-color: var(--graphite); }
.icon-btn svg { width: 14px; height: 14px; }
.site-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .site-grid { grid-template-columns: 1fr; } }
.theme-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-pick label { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; cursor: pointer; font-weight: 400; margin: 0; }
.theme-pick input { position: absolute; opacity: 0; }
.theme-pick label:has(input:checked) { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-wash); }
.theme-pick label:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.sw { height: 42px; border-radius: 6px; margin-bottom: 8px; display: flex; align-items: flex-end; padding: 6px; gap: 4px; }
.sw i { width: 30%; height: 60%; border-radius: 3px; }
.sw-svet { background: #FBFBF9; border: 1px solid var(--line); } .sw-svet i { background: #D9D4CB; }
.sw-noch { background: #16171B; } .sw-noch i { background: #3B3E46; }
.sw-galereya { background: #EDEBE6; } .sw-galereya i { background: #FFFFFF; }
.fp { font-size: 22px; line-height: 1; margin-bottom: 6px; }
.fp-klassika { font-family: "Cormorant Garamond", Georgia, serif; }
.fp-grotesk { font-family: "Unbounded", sans-serif; font-size: 18px; }
.fp-minimal { font-family: "Manrope", sans-serif; font-weight: 600; }

/* Редактор блоков */
.editor { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.blk { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.blk > summary { list-style: none; display: flex; align-items: center; gap: 12px; padding: 14px 16px; cursor: pointer; }
.blk > summary::-webkit-details-marker { display: none; }
.blk > summary .bt { font-weight: 500; }
.blk > summary .bp { color: var(--graphite); font-size: 14px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.blk > summary .chev { width: 16px; height: 16px; color: var(--graphite); transition: transform .15s; flex: none; }
.blk[open] > summary .chev { transform: rotate(90deg); }
.blk[open] > summary { border-bottom: 1px solid var(--line); }
.blk-body { padding: 18px 16px 16px; }
.blk-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 4px; }
.blk-tools form { margin: 0; }
.blk-tools .spacer { flex: 1; }
.add-blk { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.add-blk select { width: auto; min-width: 240px; }

.img-pick { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; }
.img-pick label { margin: 0; flex: none; cursor: pointer; }
.img-pick input { position: absolute; opacity: 0; }
.img-pick .opt { width: 92px; height: 70px; border-radius: var(--r-sm); background: var(--paper) center/cover no-repeat; border: 2px solid transparent; display: grid; place-items: center; font-size: 12px; color: var(--graphite); font-weight: 400; text-align: center; }
.img-pick input:checked + .opt { border-color: var(--blue); }
.img-pick input:focus-visible + .opt { outline: 2px solid var(--blue); outline-offset: 2px; }
.img-pick .up { border: 1px dashed var(--line); background: var(--surface); }

/* Тост */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 11px 18px; border-radius: var(--r); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 50; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 24px; }
.err-page b { font: 700 72px/1 var(--display); color: var(--blue); display: block; margin-bottom: 12px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (max-width: 520px) { .new-g { grid-template-columns: 1fr; } .new-g .field:first-child { grid-column: auto; } }

/* ---------- Админ-панель ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; color: inherit; text-decoration: none; display: block; }
a.tile:hover { border-color: var(--blue); }
.tile .tl { display: block; font-size: 14px; color: var(--graphite); margin-bottom: 8px; }
.tile b { display: block; font: 700 30px/1.1 var(--display); letter-spacing: -0.02em; }
.tile small { display: block; margin-top: 6px; font-size: 13px; color: var(--graphite); }
.tbl { width: 100%; border-collapse: collapse; font-size: 15px; }
.tbl th { text-align: left; font-weight: 500; font-size: 13px; color: var(--graphite); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl a { color: var(--ink); font-weight: 500; text-decoration: none; }
.tbl a:hover { color: var(--blue); text-decoration: underline; }
.panel .tbl th:first-child, .panel .tbl td:first-child { padding-left: 0; }
.panel .tbl th:last-child, .panel .tbl td:last-child { padding-right: 0; }
.panel[style*="padding:0"] .tbl th:first-child, .panel[style*="padding:0"] .tbl td:first-child { padding-left: 20px; }
.panel[style*="padding:0"] .tbl th:last-child, .panel[style*="padding:0"] .tbl td:last-child { padding-right: 20px; }
.pill { display: inline-block; font-size: 12px; font-weight: 500; padding: 1px 8px; border-radius: 10px; background: var(--blue-wash); color: var(--blue-deep); vertical-align: 2px; }
.pill.bad { background: #FBEFEE; color: #8A2A22; }
.filters { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.filters input { flex: 1; min-width: 220px; }
.filters select { width: auto; }
.danger-zone { border-color: #E8C4C0; }
.danger-zone p { color: var(--graphite); max-width: 46em; }
/* Регистрации по дням: один ряд, один цвет, подсказка при наведении */
.bars { display: flex; align-items: flex-end; gap: 2px; height: 140px; border-bottom: 1px solid var(--line); }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; position: relative; cursor: default; }
.bar-col i { display: block; width: 100%; min-height: 2px; background: var(--blue); border-radius: 4px 4px 0 0; }
.bar-col:hover i, .bar-col:focus i { background: var(--blue-deep); }
.bar-col .tip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; pointer-events: none; z-index: 2; }
.bar-col:hover .tip, .bar-col:focus .tip { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; font-size: 12px; color: var(--graphite); margin-top: 6px; }
.imp-bar { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; font-size: 14px; }
.imp-bar form { margin: 0; }
.imp-bar .btn { background: #fff; color: var(--ink); }

/* Карточки выбора темы и шрифтов */
.themes-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fonts-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.th-card { display: flex; flex-direction: column; gap: 6px; padding: 8px !important; }
.th-mini { display: grid; gap: 6px; padding: 10px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); height: 118px; align-content: start; overflow: hidden; }
.th-h { font-size: 17px; line-height: 1; }
.th-img { display: block; height: 34px; background: linear-gradient(160deg, #C9B79C, #6E5440); }
.th-lines { display: grid; gap: 4px; } .th-lines i { display: block; height: 3px; width: 100%; border-radius: 2px; }
.th-btn { justify-self: start; font: 500 10px/1 var(--text); padding: 5px 9px; }
.th-mini[style*="text-align:center"] .th-btn { justify-self: center; }
.th-name { font-size: 14px; font-weight: 500; }
.th-pv { font-size: 12px; color: var(--graphite); }
.th-pv:hover { color: var(--blue); }
.fp-sample { font-size: 26px; line-height: 1.1; padding-top: 6px; color: var(--ink); }
.fp-text { font-size: 13px; color: var(--graphite); }

.bg-pick { grid-template-columns: repeat(3, 1fr); }
.bg-sw { display: grid; place-items: center; height: 64px; border-radius: 6px; border: 1px solid rgba(0,0,0,.08); position: relative; overflow: hidden; }
.bg-sw-color input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.bg-sw-color::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#E05A47, #E8C547, #5DB37E, #4A8FD9, #9B6CD6, #E05A47); box-shadow: 0 0 0 2px #fff; pointer-events: none; }
.bg-sw-empty { font-size: 12px; color: var(--graphite); background: var(--paper); padding: 6px; text-align: center; line-height: 1.3; }
.th-card:has(input[name=bg_mode]:disabled) { opacity: .7; cursor: default; }
@media (max-width: 520px) { .bg-pick { grid-template-columns: 1fr; } }
.txt-sw b { font: 600 26px/1 var(--display); }
.bg-pick:has(input[name=text_mode]) { grid-template-columns: repeat(2, 1fr); }

/* Telegram */
.tg-box { display: flex; gap: 14px; align-items: flex-start; background: #EAF4FB; border-radius: var(--r-lg); padding: 16px; margin: 4px 0 20px; }
.tg-box svg { width: 28px; height: 28px; color: #229ED9; flex: none; margin-top: 2px; }
.tg-box b { display: block; margin-bottom: 4px; }
.tg-box p { margin: 0; font-size: 14px; color: #33475B; }
.tg-btn { background: #229ED9; margin-top: 12px; }
.tg-btn:hover { background: #1A86BA; }
.file-in { width: 100%; font: 14px var(--text); padding: 10px; border: 1px dashed #B9BFC9; border-radius: var(--r); background: var(--surface); }
/* Уведомления в кабинете */
.notice { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px 14px; border-radius: var(--r); margin-bottom: 10px; background: var(--blue-wash); color: var(--blue-deep); font-size: 15px; }
.notice.warn { background: #FFF4E0; color: #7A4A00; }
.notice form { margin: 0; flex: none; }
.notice button { background: none; border: 0; color: inherit; font: 500 14px var(--text); cursor: pointer; text-decoration: underline; padding: 0; }
.plan-chip { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 2px 8px; font-size: 13px; margin-bottom: 6px; color: var(--ink); text-decoration: none; border-radius: var(--r); }
a.plan-chip:hover .plan-more, a.plan-chip[aria-current] .plan-more { text-decoration: underline; }
.plan-more { flex-basis: 100%; font-size: 12px; color: var(--blue-deep, #1D4E9E); }
.plan-chip b { font-weight: 600; }

.plans-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 16px; margin-bottom: 18px; }
.plans-edit .panel { margin: 0; }
.aud .check { margin-bottom: 8px; }

/* Редактор тарифов */
.plan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.plan-head b { font-size: 18px; }
.plan-head .btn { margin-left: auto; }
.feat-wrap { overflow-x: auto; margin: 0 -4px; }
.feat-tbl th.c, .feat-tbl td.c { text-align: center; vertical-align: middle; }
.feat-tbl td.c input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--blue); }
.feat-tbl .feat-num { width: 70px; padding: 6px 8px; text-align: center; }
.feat-tbl td:first-child { min-width: 220px; }
.locked { color: var(--graphite); font-size: 14px; margin: 4px 0 12px; }
.tg-btn { background: #229ED9; border-color: #229ED9; color: #fff; display: flex; align-items: center; justify-content: center; gap: 10px; }
.tg-btn:hover { background: #1b8cc2; }
.or { display: flex; align-items: center; gap: 12px; color: var(--graphite); font-size: 13px; margin: 18px 0; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.tg-steps { padding-left: 20px; margin: 0 0 20px; line-height: 1.6; }
.period { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.period a { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: inherit; text-decoration: none; font-size: 14px; }
.period a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }
.st-top { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 8px; }
.st-top figure { margin: 0; position: relative; }
.st-top img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.st-top figcaption { position: absolute; right: 6px; bottom: 6px; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; padding: 2px 7px; border-radius: 999px; }
.ftp-tbl code { font-size: 14px; user-select: all; }
.ftp-add { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.ftp-add input { flex: 1; min-width: 200px; }
.on-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #1a7f37; margin-right: 6px; box-shadow: 0 0 0 3px rgba(26,127,55,.18); }
.cam-steps { padding-left: 20px; line-height: 1.7; }
.ftp-tbl { overflow-x: auto; display: block; }
.sso { display: grid; gap: 10px; }
.sso .btn { display: flex; align-items: center; justify-content: center; gap: 10px; }
.bk-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 14px 0; border-top: 1px solid var(--line); }
.bk-row:first-of-type { border-top: 0; }
.bk-row .bk-info { flex: 1; min-width: 220px; }
.bk-row form { margin: 0; }
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 10px 0 16px; }
.pr-card { position: relative; cursor: pointer; display: block; }
.pr-card input { position: absolute; opacity: 0; }
.pr-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; border: 3px solid transparent; }
.pr-card span { display: block; text-align: center; font-size: 14px; margin-top: 6px; }
.pr-card input:checked + img { border-color: var(--blue); }
.pr-card input:focus-visible + img { outline: 2px solid var(--ink); outline-offset: 2px; }
.pr-scope { display: flex; gap: 20px; flex-wrap: wrap; margin-bottom: 12px; }
@media (max-width: 640px) { .log-t { white-space: normal; width: 76px; font-size: 13px; } }
.feat-changed td { background: #FFF8E6; }

/* Юридические документы */
.legal-body { background: var(--bg, #f6f5f2); }
.legal-top { display: flex; justify-content: space-between; align-items: center; padding: 18px 24px; max-width: 1100px; margin: 0 auto; }
.legal-top .langs a { margin-left: 8px; }
.legal-wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px 60px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 32px; align-items: start; }
.legal-nav { display: grid; gap: 4px; position: sticky; top: 16px; }
.legal-nav a { padding: 8px 12px; border-radius: 10px; color: inherit; text-decoration: none; font-size: 15px; }
.legal-nav a[aria-current] { background: var(--surface, #fff); font-weight: 600; }
.legal-doc { background: var(--surface, #fff); border: 1px solid var(--line); border-radius: var(--r-lg, 16px); padding: 32px 40px; line-height: 1.65; font-size: 16px; }
.legal-doc h1 { font-size: 28px; line-height: 1.2; margin: 0 0 12px; }
.legal-doc h2 { font-size: 19px; margin: 28px 0 8px; }
.legal-doc ul { padding-left: 22px; }
@media (max-width: 820px) { .legal-wrap { grid-template-columns: 1fr; gap: 16px; } .legal-nav { position: static; display: flex; flex-wrap: wrap; } .legal-doc { padding: 22px 18px; font-size: 15px; } }
.legal-links { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: center; font-size: 13px; margin-top: 18px; }
.legal-links a { color: var(--graphite); }
.legal-ed { min-height: 420px; font: 13px/1.5 ui-monospace, Menlo, monospace; }
.legal-banner { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.legal-banner form { margin-left: auto; }
.consent-box { font-size: 14px; margin: 4px 0 10px; }
.consent-box a { color: inherit; }
.promo-f { margin: 4px 0 12px; font-size: 14px; }
.promo-f summary { cursor: pointer; color: var(--blue); }
.ref-link { display: flex; gap: 8px; }
.lx-plain { padding-left: 18px; margin: 6px 0; }
.promo-new { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.promo-new .field { margin: 0; min-width: 120px; flex: 1; }
.promo-new .btn { margin-bottom: 2px; }
.rf-box { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px 0; margin: 0 0 14px; }
.rf-box legend { font-weight: 600; padding: 0 6px; }
.cat-tbl input:not([type=checkbox]), .cat-tbl select { padding: 6px 8px; font-size: 14px; }
.cat-tbl td:first-child input { display: block; width: 100%; min-width: 200px; margin-bottom: 4px; }

/* Шаблоны по жанрам */
.genre-panel summary { cursor: pointer; list-style: none; }
.genre-panel summary::-webkit-details-marker { display: none; }
.genre-panel summary::before { content: "▸ "; color: var(--graphite); }
.genre-panel[open] summary::before { content: "▾ "; }
.genre-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin: 16px 0; }
.genre-card { display: grid; gap: 4px; cursor: pointer; position: relative; }
.genre-card input { position: absolute; opacity: 0; }
.genre-pv { aspect-ratio: 4/3; border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; border: 2px solid var(--line); overflow: hidden; }
.genre-card input:checked + .genre-pv { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(29,78,158,.15); }
.genre-card input:focus-visible + .genre-pv { outline: 2px solid var(--ink); }
.genre-pv .g-ttl { font-size: 20px; line-height: 1.1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.genre-pv .g-img { flex: 1; background: linear-gradient(135deg, rgba(127,127,127,.35), rgba(127,127,127,.12)); }
.genre-pv .g-btn { align-self: flex-start; font-size: 11px; padding: 5px 10px; }
.genre-pv[style*="text-align:center"] .g-btn { align-self: center; }
.genre-card b { margin-top: 4px; }
.genre-card small { font-size: 12px; line-height: 1.35; }
.genre-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; margin-bottom: 12px; }
@media (max-width: 640px) { .genre-modes { grid-template-columns: 1fr; } }

/* Раскладки сайта: схемы в карточках выбора */
.lay-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.lay-card { display: flex; flex-direction: column; gap: 5px; padding: 8px !important; }
.lay-card small { font-size: 11.5px; line-height: 1.3; }
.lay-mini { position: relative; display: grid; height: 96px; border-radius: 6px; background: #F4F3F0; border: 1px solid rgba(0,0,0,.07); padding: 6px; gap: 3px;
  grid-template-columns: repeat(4, 1fr); grid-template-rows: 7px 1fr 18px; overflow: hidden; }
.lay-mini i { display: block; background: #CFC9BF; border-radius: 2px; }
.lay-mini .m-h { grid-column: 1 / -1; background: #8E877C; }
.lay-mini .m-hero { grid-column: 1 / -1; background: linear-gradient(160deg, #B9A88E, #6E5440); }
.lm-classic .m-h { width: 100%; }
.lm-cinema { background: #1B1B1D; grid-template-rows: 1fr 18px; }
.lm-cinema .m-h { position: absolute; top: 8px; left: 8px; right: 8px; height: 4px; background: rgba(255,255,255,.55); }
.lm-cinema .m-hero { grid-row: 1; background: linear-gradient(160deg, #55504A, #141414); }
.lm-cinema i:not(.m-h):not(.m-hero) { background: #3A3A3E; }
.lm-sidebar { grid-template-columns: 22px repeat(3, 1fr); grid-template-rows: 1fr 1fr 1fr; }
.lm-sidebar .m-h { grid-column: 1; grid-row: 1 / -1; }
.lm-sidebar .m-hero { grid-column: 2 / -1; grid-row: 1 / 3; }
.lm-wall { grid-template-rows: 5px 6px 1fr 1fr; gap: 1px; }
.lm-wall .m-hero { grid-column: 1 / 3; height: 4px; background: #8E877C; align-self: center; }
.lm-wall i:not(.m-h):not(.m-hero) { background: linear-gradient(160deg, #B9A88E, #8B7259); border-radius: 0; }
.lm-wall .m-a { grid-row: 3 / 5; } .lm-wall .m-c { grid-row: 3 / 5; }
.lm-magazine { grid-template-rows: 9px 1fr 5px 5px; }
.lm-magazine .m-h { width: 40%; justify-self: center; }
.lm-magazine .m-hero { grid-column: 1 / 3; } .lm-magazine .m-a { grid-column: 3 / -1; background: linear-gradient(160deg, #B9A88E, #6E5440); }
.lm-magazine .m-b, .lm-magazine .m-c { grid-column: 1 / -1; background: #8E877C; height: 3px; }
.lm-magazine .m-d { display: none; }
.lm-strip { grid-template-rows: 5px 6px 1fr; grid-template-columns: 2fr 1fr 2fr 1.4fr; }
.lm-strip .m-hero { grid-column: 1 / 3; height: 4px; align-self: center; background: #8E877C; }
.lm-strip i:not(.m-h):not(.m-hero) { background: linear-gradient(160deg, #B9A88E, #6E5440); grid-row: 3; }
.lm-minimal { grid-template-columns: 1fr 3fr 1fr; grid-template-rows: 5px 1fr 1fr; }
.lm-minimal .m-h { grid-column: 2; }
.lm-minimal .m-hero, .lm-minimal .m-a { grid-column: 2; } .lm-minimal .m-b, .lm-minimal .m-c, .lm-minimal .m-d { display: none; }
.lm-grid { grid-template-columns: repeat(4, 1fr); grid-template-rows: 5px repeat(2, 1fr); gap: 2px; }
.lm-grid .m-hero { grid-column: auto; background: linear-gradient(160deg, #B9A88E, #6E5440); }
.lm-grid i:not(.m-h) { aspect-ratio: auto; background: linear-gradient(160deg, #B9A88E, #8B7259); border-radius: 0; }
.lm-grid .m-a, .lm-grid .m-b { } .lm-grid { grid-auto-rows: 1fr; }
.lm-fullscreen { background: #141414; grid-template-rows: 1fr; padding: 0; }
.lm-fullscreen .m-hero { grid-row: 1; border-radius: 0; background: linear-gradient(160deg, #6A6157, #1A1A1A); }
.lm-fullscreen .m-h { position: absolute; top: 8px; right: 8px; width: 12px; height: 8px; background: repeating-linear-gradient(#fff 0 2px, transparent 2px 3px); }
.lm-fullscreen .m-a, .lm-fullscreen .m-b, .lm-fullscreen .m-c, .lm-fullscreen .m-d { display: none; }
.lm-split { grid-template-columns: 1fr 1fr; grid-template-rows: 5px 1fr 1fr 1fr; }
.lm-split .m-hero { grid-column: 1; grid-row: 1 / -1; }
.lm-split .m-h { grid-column: 2; grid-row: 1; }
.lm-split .m-d { display: none; }
.bg-sw-up { font-size: 12px; color: var(--graphite); background: var(--paper); text-align: center; line-height: 1.3; padding: 6px; }
.bg-up-btn { cursor: pointer; color: var(--blue); text-decoration: underline; }
.bg-style { display: grid; gap: 2px; margin-top: 10px; }
.bg-style .check { margin-bottom: 4px; font-size: 14px; }

/* Онлайн-режим галереи */
.live-photos { margin: 14px 0 4px; padding: 12px 14px 2px; border: 1px solid var(--line); border-radius: 12px; }
.live-photos.on { border-color: rgba(255, 59, 48, .45); background: rgba(255, 59, 48, .04); }
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #ff3b30; margin-right: 8px; vertical-align: 1px; animation: live-p 1.4s ease-in-out infinite; }
@keyframes live-p { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }

/* Корзина */
.trash-link { white-space: nowrap; }
.trash-sum { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; }
.trash-sum b { font-size: 26px; font-weight: 600; }
.trash-days { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin-top: 14px; }
.trash-days .field { margin: 0; }
.trash-days input { width: 110px; }
.trash-tbl td { vertical-align: middle; }
.trash-tbl .acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.trash-tbl .acts form { margin: 0; }
.trash-cov { width: 64px; height: 44px; border-radius: 6px; background: var(--paper) center / cover; flex: none; }
.trash-name { display: flex; gap: 12px; align-items: center; }
.soon { color: var(--danger); }
.trash-days .btn { min-height: 44px; }

/* Камеры */
.cam-card.fresh { border-color: var(--ishkor); box-shadow: 0 0 0 3px var(--ishkor-wash); }
.cam-head { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cam-name { display: flex; gap: 8px; align-items: center; margin: 0; }
.cam-name input { font-size: 18px; font-weight: 600; border: 1px solid transparent; background: transparent; padding: 6px 8px; border-radius: 8px; width: min(320px, 60vw); }
.cam-name input:hover, .cam-name input:focus { border-color: var(--line); background: var(--surface); }
.cam-ico { font-size: 20px; }
.cam-state { font-size: 14px; color: var(--graphite); }
.cam-state.on { color: #1C6765; }
.cam-creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px 24px; margin: 0 0 16px; }
.cam-creds dt { font-size: 12px; color: var(--graphite); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.cam-creds dd { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.cam-creds code { font-size: 16px; }
.cam-pw { font-size: 18px !important; letter-spacing: .02em; background: var(--blue-wash); color: var(--blue-deep); padding: 3px 8px; border-radius: 6px; }
.cam-target { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 14px; background: var(--paper); border-radius: var(--r); margin: 0; }
.cam-target select { min-width: 260px; max-width: 100%; }
.cam-target small { flex-basis: 100%; }
.cam-foot { display: flex; justify-content: flex-end; margin-top: 12px; }
.cam-foot form { margin: 0; }
.cam-add { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.cam-mini { display: grid; gap: 8px; }
.cam-mini-row { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r); margin: 0; }
.acts-inline { display: flex; gap: 6px; justify-content: flex-end; }
.acts-inline form { margin: 0; }
.inline-check { margin: 0; }
.pill.ok { background: var(--ishkor-wash); color: #1C6765; }
.cam-creds .cam-wide { grid-column: 1 / -1; }
.cam-edit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0; }
.cam-in { font: 500 17px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 8px 10px; width: min(300px, 100%); }
.cam-in.cam-pw { background: var(--blue-wash); color: var(--blue-deep); border-color: transparent; }
/* Предупреждение про FTP без шифрования */
.ftps-warn { border: 1px solid #E4A39C; background: #FBEFEE; color: #7A231C; border-left: 5px solid var(--danger); border-radius: var(--r); padding: 12px 16px; margin: 0 0 14px; }
.ftps-warn b { display: block; font-size: 15px; margin-bottom: 4px; }
.ftps-warn p { margin: 0 0 6px; font-size: 14px; line-height: 1.45; }
.ftps-warn small { color: #8A4A44; font-size: 13px; }
.risk-dlg { border: 0; border-radius: var(--r-lg); padding: 24px; max-width: min(520px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.risk-dlg::backdrop { background: rgba(10, 12, 18, .45); }
.risk-dlg h2 { margin: 0 0 10px; font-size: 19px; color: var(--danger); }
.risk-dlg p { margin: 0 0 18px; line-height: 1.5; }
.risk-acts { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.cam-edit { flex-wrap: nowrap; }
@media (max-width: 640px) { .cam-edit { flex-wrap: wrap; } }
/* Обработка при загрузке */
.proc { margin: 14px 0 4px; }
.proc summary { cursor: pointer; list-style: none; display: flex; gap: 6px; flex-wrap: wrap; align-items: baseline; }
.proc summary::-webkit-details-marker { display: none; }
.proc summary::before { content: "▸"; color: var(--graphite); }
.proc[open] summary::before { content: "▾"; }
.proc-form { margin-top: 14px; }
.proc-raw { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 4px; margin: 6px 0 14px; }
.proc-raw legend { font-weight: 600; padding: 0 6px; }
.proc-acts { display: flex; flex-wrap: wrap; gap: 8px; }
.lut-add { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; margin-top: 14px; }
/* Мониторинг */
.mon-tips { display: grid; gap: 8px; margin-bottom: 18px; }
.mon-tip { padding: 10px 14px; border-radius: var(--r); font-size: 15px; background: var(--surface); border: 1px solid var(--line); }
.mon-tip.bad { background: #FBEFEE; border-color: #E4A39C; color: #7A231C; }
.mon-tip.warn { background: #FFF6E5; border-color: #EBC98A; color: #6B4A0B; }
.mon-tip.ok { background: var(--ishkor-wash); border-color: #A9DAD8; color: #1C6765; }
.mon-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 18px; }
.mon-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; display: grid; gap: 2px; }
.mon-card span { font-size: 13px; color: var(--graphite); }
.mon-card b { font-size: 26px; font-weight: 600; }
.mon-card small { font-size: 12px; color: var(--graphite); }
.mon-charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 520px), 1fr)); gap: 16px; }
.mon-charts .panel { margin: 0; }
.mon-charts h2 { font-size: 16px; margin: 0 0 8px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--graphite); margin-top: 4px; }
.chart-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.seg a { padding: 6px 14px; font-size: 14px; text-decoration: none; color: var(--ink); }
.seg a[aria-current] { background: var(--blue); color: #fff; }
/* Обработанные фото */
.ph[hidden] { display: none !important; }
.ph .is-preset { position: absolute; left: 6px; bottom: 6px; background: rgba(23, 26, 33, .78); color: #fff; font-size: 11px; padding: 2px 8px; border-radius: 10px; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; pointer-events: none; }
.ph-filter { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.chip.on { background: var(--blue); border-color: var(--blue); color: #fff; }
.pr-mode { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 14px 2px; margin: 12px 0 16px; }
.pr-mode legend { font-weight: 600; padding: 0 6px; }
/* Журнал входов */
.log-filter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.log-tbl tr.bad td { background: #FDF5F4; }
.log-tbl td { vertical-align: top; }
.nowrap { white-space: nowrap; }
/* Библиотека стилей */
.pr-group { font-size: 14px; font-weight: 600; color: var(--graphite); text-transform: uppercase; letter-spacing: .05em; margin: 18px 0 0; }
.pr-fav { position: absolute; right: 6px; top: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: rgba(255,255,255,.75); font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.pr-fav.on { background: #F2B53A; color: #3A2600; }
.pr-dl { position: absolute; left: 6px; top: 6px; font-size: 10px; background: rgba(0,0,0,.45); color: #fff; padding: 2px 6px; border-radius: 6px; text-decoration: none; opacity: 0; transition: opacity .15s; }
.pr-card:hover .pr-dl, .pr-dl:focus-visible { opacity: 1; }

/* Переключатель-ползунок */
.switch { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; margin: 14px 0; line-height: 1.4; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .sw { flex: none; position: relative; width: 42px; height: 24px; border-radius: 12px; background: #c9ccd2; transition: background .2s; margin-top: 1px; }
.switch .sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + .sw { background: var(--blue, #1D4E9E); }
.switch input:checked + .sw::after { transform: translateX(18px); }
.switch input:focus-visible + .sw { outline: 2px solid var(--blue, #1D4E9E); outline-offset: 2px; }
.switch input:disabled + .sw { opacity: .5; }
.pr-notify { margin: 18px 0; }

/* Тарифы в кабинете */
.pl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; align-items: stretch; }
.pl-card { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.pl-card.cur { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.pl-card.want { box-shadow: 0 0 0 3px var(--blue-wash), inset 0 0 0 1px var(--blue); }
.pl-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pl-head h2 { margin: 0; }
.pl-price { font-size: 22px; font-weight: 650; }
.pl-price small { font-size: 13px; font-weight: 400; color: var(--graphite); }
.pl-price .yr { display: block; margin-top: 2px; }
.pl-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; align-content: start; font-size: 14px; flex: 1; }
.pl-form { display: grid; gap: 8px; margin: 0; }
.pl-period { display: flex; gap: 4px; flex-wrap: wrap; }
.pl-period label { display: flex; align-items: center; gap: 6px; font-size: 14px; padding: 6px 10px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; }
.pl-period label:has(input:checked) { border-color: var(--blue); background: var(--blue-wash); }
.pl-tbl .c { text-align: center; }
.pl-tbl th.cur { color: var(--blue-deep); }

.tag-set { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 4px 16px; }
.tag-set legend { font-weight: 500; margin-bottom: 8px; padding: 0; }

/* Баланс */
.bal-chip { display: block; font-size: 13px; color: var(--ink); text-decoration: none; margin: -2px 0 6px; }
.bal-chip:hover, .bal-chip[aria-current] { text-decoration: underline; }
.pl-bal { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -12px 0 18px; }
.bl-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: start; }
.bl-card { display: grid; gap: 6px; margin: 0; }
.bl-sum { font-size: 34px; font-weight: 650; font-variant-numeric: tabular-nums; }
.bl-sum small { font-size: 16px; font-weight: 400; color: var(--graphite); }
.bl-form { margin: 0; }
.bl-form h2 { margin-top: 0; }
.bl-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.bl-form input[name=amount] { font-size: 20px; max-width: 260px; font-variant-numeric: tabular-nums; }
.bl-ways { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 4px; font-size: 13px; color: var(--graphite); }
.pl-form s { font-weight: 400; }
@media (max-width: 760px) { .bl-top { grid-template-columns: 1fr; } }

/* Загрузка фото — полоса сверху на всех страницах кабинета */
.pf-up { position: fixed; top: 0; left: 0; right: 0; z-index: 8000; background: var(--surface, #fff); border-bottom: 1px solid var(--line);
  box-shadow: 0 4px 14px rgba(0,0,0,.08); font-size: 14px; }
.pf-up-fill { position: absolute; left: 0; bottom: -1px; height: 3px; background: var(--blue, #1D4E9E); transition: width .3s ease; }
.pf-up.done .pf-up-fill { background: #1C9A6C; }
.pf-up-in { display: flex; align-items: center; gap: 12px; padding: 8px 16px; max-width: 1400px; margin: 0 auto; }
.pf-up-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pf-up-stop { border: 1px solid var(--line); background: var(--paper); border-radius: 8px; padding: 4px 12px; font: inherit; cursor: pointer; }
.pf-up-stop:hover { border-color: var(--danger, #B4362C); color: var(--danger, #B4362C); }
.pf-up-x { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--graphite); padding: 0 4px; }
.pf-up-more { border: 0; background: none; color: inherit; text-decoration: underline; font: inherit; cursor: pointer; padding: 0; }
html.pf-up-on body.app { padding-top: 40px; }
html.pf-up-on .side { top: 40px; height: calc(100vh - 40px); }
@media (max-width: 860px) { html.pf-up-on .side { top: auto; height: auto; } }

/* Выбор темы галереи */
.gt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; margin-bottom: 16px; }
.gt-card { position: relative; display: grid; gap: 6px; cursor: pointer; }
.gt-card input { position: absolute; opacity: 0; }
.gt-card .gt-mock { display: block; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; border: 2px solid var(--line); background: var(--b, #eee); color: var(--k, #222); position: relative; }
.gt-card input:checked ~ .gt-mock { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-wash); }
.gt-card input:focus-visible ~ .gt-mock { outline: 2px solid var(--blue); outline-offset: 2px; }
.gt-card.off { cursor: default; }
.gt-card.off .gt-mock { opacity: .55; filter: grayscale(.3); }
.gt-name { font-weight: 600; font-size: 14px; }
.gt-card small { font-size: 12px; line-height: 1.35; }
.gt-pv-link { font-size: 13px; justify-self: start; }
.gt-mock .gt-cov { position: absolute; left: 0; right: 0; top: 0; height: 52%; background: linear-gradient(135deg, #8a7f72, #3d3530); display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8%; }
.gt-mock .gt-cov em { font-style: normal; color: #fff; font-size: 15px; text-shadow: 0 1px 4px rgba(0,0,0,.4); }
.gt-mock.cv-split .gt-cov { right: 50%; height: 52%; background: var(--b); justify-content: flex-start; padding: 0 0 10% 10%; }
.gt-mock.cv-split .gt-cov em { color: var(--k); text-shadow: none; }
.gt-mock.cv-split::after { content: ""; position: absolute; left: 50%; right: 0; top: 0; height: 52%; background: linear-gradient(135deg, #b9a998, #6f5f52); }
.gt-mock.cv-frame .gt-cov { left: 14%; right: 14%; top: 7%; height: 40%; box-shadow: 0 0 0 4px #fff; }
.gt-mock.cv-magazine .gt-cov { top: 18%; height: 34%; left: 6%; right: 6%; }
.gt-mock.cv-magazine .gt-cov em { position: absolute; top: -40%; color: var(--k); text-shadow: none; letter-spacing: .2em !important; font-size: 12px; }
.gt-mock .gt-tiles { position: absolute; left: 6%; right: 6%; bottom: 6%; top: 58%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.gt-mock .gt-tiles i { background: color-mix(in srgb, var(--k) 22%, var(--b)); border-radius: 2px; }
.gt-mock.gr-columns .gt-tiles { grid-template-columns: repeat(4, 1fr); }
.gt-mock.gr-columns .gt-tiles i:nth-child(odd) { margin-bottom: -20%; }
.gt-mock.gr-single .gt-tiles { grid-template-columns: 1fr; }
.gt-mock.gr-single .gt-tiles i:not(:first-child) { display: none; }
.gt-mock.gr-square .gt-tiles { gap: 2%; }
.gt-mock-site, .gt-mock-def { background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 8px, var(--surface) 8px, var(--surface) 16px) !important; display: grid !important; place-items: center; }
.gt-mock-site i { display: none; }
.gt-mock-site::after { content: "Aa"; font-size: 26px; color: var(--graphite); }
.gt-mock-def b { font-size: 14px; color: var(--graphite); font-weight: 500; padding: 0 10px; text-align: center; }

/* Дизайны сайта */
.ds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 22px 18px; }
.ds-card { display: grid; gap: 10px; align-content: start; }
.ds-img { display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 5; background: var(--paper); box-shadow: 0 4px 18px rgba(0,0,0,.06); transition: transform .2s, box-shadow .2s; }
.ds-img:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.12); }
.ds-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.ds-card.on .ds-img { outline: 3px solid var(--blue); outline-offset: 2px; }
.ds-card.off .ds-img img { opacity: .6; }
.ds-meta { display: grid; gap: 4px; }
.ds-meta small { font-size: 12.5px; line-height: 1.4; }
.ds-acts { display: flex; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.ds-acts form { margin: 0; }

.gbg { border: 0; padding: 0; margin: 4px 0 16px; }
.gbg legend { font-weight: 600; font-size: 15px; margin-bottom: 8px; padding: 0; }
.gbg .bg-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; margin-bottom: 8px; }
.gbg .bg-card { display: grid; gap: 5px; cursor: pointer; position: relative; }
.gbg .bg-card > input[type=radio] { position: absolute; opacity: 0; }
.gbg .bg-card > input[type=radio]:checked ~ .bg-sw { outline: 3px solid var(--blue); outline-offset: 1px; }
.gbg .bg-card > input[type=radio]:disabled ~ .bg-sw { opacity: .5; }
.gbg .bg-sw-theme { background: linear-gradient(135deg, #181818 50%, #F1ECE3 50%); }

/* Акции тарифов */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.promo-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 16px 14px; margin: 0; min-width: 0; }
.promo-card legend { padding: 0 6px; }
.promo-card .row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; }
@media (max-width: 600px) { .promo-card .row3 { grid-template-columns: 1fr; } }
.promo-st { margin: 0 0 10px; font-size: 13px; color: var(--graphite); }
.promo-st.on { color: #1C6765; font-weight: 600; }
.promo-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 4px 12px; margin: 8px 0; }
.pl-promo { margin: 4px 0 10px; padding: 10px 12px; border-radius: var(--r); background: #FFF4E0; color: #5A3B07; font-size: 14px; display: grid; gap: 3px; }
.pl-promo b { font-size: 15px; }
.pl-promo .bad { display: inline-block; background: #D9480F; color: #fff; border-radius: 999px; padding: 1px 8px; font-weight: 700; margin-right: 6px; }
.mon-card.warn { border-color: #EBC98A; background: #FFF6E5; }
.tile .sold.over { color: #8A3B12; }

/* Посещения (v69) */
.vs-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; vertical-align: 0; }
.vs-landing { background: var(--ishkor); }
.vs-site { background: var(--blue); }
.vs-gallery { background: #D08A2E; }
.vs-bars .bar-col { align-items: flex-end; }
.vs-stack { width: 100%; min-height: 2px; display: flex; flex-direction: column-reverse; border-radius: 4px 4px 0 0; overflow: hidden; background: var(--line); }
.vs-stack i { display: block; width: 100%; min-height: 1px; border-radius: 0; }
.vs-bars .bar-col:hover .vs-stack, .vs-bars .bar-col:focus .vs-stack { filter: brightness(.85); }
.vs-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 12px; font-size: 13px; color: var(--graphite); }
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.vs-grid .panel { margin: 0 0 20px; }
.vs-form .vs-wide { flex: 2; min-width: 220px; }
.vs-stack i.vs-landing { background: var(--ishkor); }
.vs-stack i.vs-site { background: var(--blue); }
.vs-stack i.vs-gallery { background: #D08A2E; }

/* ---------- v70: замочки тарифов ---------- */
.side-nav a.nav-lock { color: var(--graphite); }
.side-nav a.nav-lock span { font-size: 12px; opacity: .8; }
.tabs .tab-lock { padding: 10px 14px; color: var(--graphite); opacity: .75; white-space: nowrap; cursor: pointer; font-weight: 500; border-bottom: 2px solid transparent; }
.tabs .tab-lock:hover { opacity: 1; }
span.btn.tab-lock { cursor: pointer; }

/* ---------- v70: команда и права ---------- */
.team-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
@media (max-width: 1000px) { .team-grid { grid-template-columns: 1fr; } }
.tm-list { display: grid; gap: 12px; }
.tm-card { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 10px; background: var(--surface); }
.tm-owner { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: var(--paper); }
.tm-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tm-who { min-width: 0; overflow-wrap: anywhere; }
.pill.warn { background: #FFF1DC; color: #7A4B0C; }
.tm-inv { margin: 0; font-size: 14px; }
.tm-card .linkbox { flex-wrap: wrap; }
.tm-card .linkbox code { min-width: 0; overflow-wrap: anywhere; }
.tm-perms summary { cursor: pointer; font-weight: 500; font-size: 15px; color: var(--blue); }
.tm-perms[open] summary { margin-bottom: 10px; }
.tm-del { margin: 0; justify-self: start; }
.perm-presets { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 14px; }
.perm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 2px 16px; }
.perm-grid .check { margin-bottom: 8px; font-size: 14.5px; }
.perm-fixed { opacity: .75; cursor: default; }
.perm-fixed small { font-size: 12px; }
.perm-note { display: block; font-size: 12.5px; margin: 2px 0 12px; }

/* ---------- v70: сайт — дизайны с превью сбоку ---------- */
.ds-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.ds-wrap .ds-grid { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.ds-card { border-radius: 12px; padding: 6px; margin: -6px; transition: background .15s; }
.ds-card.pv { background: var(--blue-wash); }
.ds-side { position: sticky; top: 16px; }
.ds-side-in { display: grid; gap: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--paper); }
.ds-side-k { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.ds-device { border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 10px 30px rgba(0,0,0,.08); }
.ds-bar { display: flex; align-items: center; gap: 5px; padding: 7px 10px; background: #EEF0F2; border-bottom: 1px solid var(--line); }
.ds-bar i { width: 8px; height: 8px; border-radius: 50%; background: #CBD0D6; }
.ds-bar em { font-style: normal; font-size: 11px; color: var(--graphite); margin-left: 6px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ds-screen { aspect-ratio: 4 / 5; position: relative; overflow: hidden; }
.ds-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ds-side-own { position: absolute; inset: 0; overflow: hidden; }
.ds-side-own iframe { width: 1280px; height: 1600px; border: 0; transform: scale(.243); transform-origin: 0 0; pointer-events: none; }
.ds-side-lock { color: #7A4B0C; font-size: 13px; }
.ds-side .btn { justify-self: start; }
@media (max-width: 1100px) { .ds-wrap { grid-template-columns: 1fr; } .ds-side { display: none; } }
/* «Свой дизайн» — карточка-заглушка */
.ds-own-img { display: grid !important; place-content: center; gap: 14px; text-decoration: none; color: var(--ink); background: linear-gradient(160deg, #FBFBF9, #EEF1F5) !important; padding: 16px; text-align: center; }
.own-pal { display: flex; justify-content: center; gap: 6px; }
.own-pal i { width: 26px; height: 34px; border-radius: 6px; border: 1px solid; position: relative; }
.own-pal b { position: absolute; left: 5px; right: 5px; bottom: 5px; height: 5px; border-radius: 3px; }
.own-aa { font: 500 34px/1 var(--display); color: var(--a, var(--blue)); }
.own-lay { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; width: 92px; margin: 0 auto; }
.own-lay i { height: 22px; border-radius: 4px; background: #D9DEE5; }
.own-lay i:first-child { grid-column: span 2; height: 14px; background: #C5CCD6; }
.own-tag { font-size: 12.5px; font-weight: 500; color: var(--blue); }

/* Настройка дизайна: быстрые ссылки */
.ds-setup { border-color: #C9D6EC; }
.qs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; margin: 6px 0 22px; }
.qs-tile { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--surface); transition: border-color .15s, background .15s; }
.qs-tile:hover { border-color: var(--blue); background: var(--blue-wash); }
.qs-tile b { display: block; font-weight: 500; font-size: 15px; }
.qs-tile small { display: block; font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.qs-ico { font-size: 20px; line-height: 1.2; flex: none; }
.ds-look { border-top: 1px solid var(--line); padding-top: 18px; }
.ds-h3 { font-size: 16px; margin-bottom: 14px; }
.ds-more { font-size: 14px; margin: -4px 0 14px; }
.page-row .btn.small { padding: 7px 12px; }
.page-add { display: flex; gap: 8px; margin-top: 16px; }
.page-add input { flex: 1; min-width: 0; }
@media (max-width: 520px) { .page-add { flex-direction: column; } .page-row { flex-wrap: wrap; } .page-row a.t { flex-basis: 100%; } }

/* ---------- v70: настройки галереи ---------- */
.g-set { max-width: none; }  /* v113r: было 820 px */
.gs-h { font-size: 17px; margin: 22px 0 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.opt-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.opt-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); cursor: pointer; margin: 0; }
.opt-row:has(input[type=checkbox]:checked) { border-color: #B9CBEA; background: #F5F8FD; }
.opt-row > input, .opt-in > input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.opt-row b { display: block; font-weight: 500; font-size: 15px; }
.opt-row small { display: block; font-size: 13px; line-height: 1.4; color: var(--graphite); margin-top: 2px; }
.opt-row.locked { cursor: pointer; background: var(--paper); color: var(--graphite); font-size: 15px; }
.opt-row.locked b { color: var(--graphite); }
.opt-lock, .opt-ico { font-size: 16px; line-height: 1.2; flex: none; width: 18px; text-align: center; }
.opt-wide { grid-column: 1 / -1; flex-wrap: wrap; cursor: default; }
.opt-in { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; flex: 1 1 260px; }
.opt-sub { margin: 0; flex: 0 1 240px; }
.opt-wide .opt-sub:only-of-type { flex: 1; }
.opt-row .field input { max-width: 100%; }
/* оформление: скругление и порядок */
.gview { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 18px 0 6px; }
@media (max-width: 640px) { .gview { grid-template-columns: 1fr; } }
.gv-box { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin: 0; display: grid; gap: 8px; align-content: start; }
.gv-box legend { font-weight: 500; font-size: 14px; padding: 0 4px; }
.gv-box small { font-size: 12.5px; line-height: 1.4; }
.gv-slider { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.gv-slider input[type=range] { flex: 1; min-width: 120px; accent-color: var(--blue); }
.gv-slider output { font-size: 13px; color: var(--graphite); min-width: 44px; }
.gv-demo { display: flex; gap: 4px; }
.gv-demo i { width: 34px; height: 42px; background: linear-gradient(135deg, #C9B79C, #8C7457); border-radius: inherit; }
.gv-r .check { margin: 0; }

/* ---------- v70: камеры — зачем это ---------- */
.cams-why summary { cursor: pointer; list-style: none; }
.cams-why summary::-webkit-details-marker { display: none; }
.cams-why summary h2 { display: inline; }
.cams-why summary::after { content: "▾"; margin-left: 8px; color: var(--graphite); }
.cams-why[open] summary::after { content: "▴"; }
.cams-why-lead { margin: 12px 0 16px; max-width: 46em; }
.cams-flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: cf; }
.cams-flow li { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 4px; background: var(--paper); position: relative; counter-increment: cf; }
.cams-flow li::before { content: counter(cf); position: absolute; top: 10px; right: 12px; font: 500 13px var(--display); color: var(--graphite); }
.cams-flow small { font-size: 13px; line-height: 1.4; }
.cf-ico { font-size: 22px; }
@media (max-width: 720px) { .cams-flow { grid-template-columns: 1fr; } }
.cams-lock { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 16px 0 0; padding: 12px 14px; border-radius: var(--r); background: #FFF6E8; color: #5C3D0E; font-size: 15px; }

/* v70: мини-превью новых раскладок (Коллаж, Рубрики, Мозаика, Редакция) */
.lay-mini.lm-collage { background: #FFFFFF; grid-template-columns: repeat(6, 1fr); grid-template-rows: 5px repeat(4, 1fr); gap: 3px; }
.lm-collage .m-h { height: 3px; width: 46%; align-self: center; }
.lm-collage .m-hero { grid-column: 1 / 4; grid-row: 2 / 5; }
.lm-collage i:not(.m-h):not(.m-hero) { background: linear-gradient(160deg, #B9A88E, #8B7259); }
.lm-collage .m-a { grid-column: 5 / 7; grid-row: 2 / 4; margin: 4px 0 0 2px; }
.lm-collage .m-b { grid-column: 4 / 6; grid-row: 4 / 6; margin: 4px 6px 0 0; }
.lm-collage .m-c { grid-column: 1 / 3; grid-row: 5; margin-left: 6px; }
.lm-collage .m-d { grid-column: 6; grid-row: 5; }
.lay-mini.lm-rubrics { grid-template-columns: repeat(3, 1fr); grid-template-rows: 5px 1fr 1fr 4px; }
.lm-rubrics .m-h { width: 34%; justify-self: center; }
.lm-rubrics .m-hero { grid-column: 1 / -1; }
.lm-rubrics .m-a, .lm-rubrics .m-b, .lm-rubrics .m-c { background: linear-gradient(160deg, #B9A88E, #8B7259); }
.lm-rubrics .m-d { grid-column: 1 / -1; background: repeating-linear-gradient(90deg, #8E877C 0 30%, transparent 30% 35%); height: 3px; }
.lay-mini.lm-mosaic { background: #1E1E1F; grid-template-columns: repeat(4, 1fr); grid-template-rows: 5px 1fr 1fr 1fr; gap: 2px; }
.lm-mosaic .m-h { background: rgba(255,255,255,.5); }
.lm-mosaic .m-hero { grid-column: 1 / 3; grid-row: 2 / 4; background: linear-gradient(160deg, #6E5440, #2C241E); }
.lm-mosaic i:not(.m-h):not(.m-hero) { background: linear-gradient(160deg, #8F7C64, #3D3229); border-radius: 0; }
.lm-mosaic .m-a { grid-column: 3; grid-row: 2; } .lm-mosaic .m-b { grid-column: 4; grid-row: 2 / 4; }
.lm-mosaic .m-c { grid-column: 3; grid-row: 3; } .lm-mosaic .m-d { grid-column: 1 / -1; grid-row: 4; background: #C33A2C !important; height: 4px; align-self: center; width: 30%; }
.lay-mini.lm-editorial { background: #F2EEE6; grid-template-columns: 1fr 1fr 1fr; grid-template-rows: 5px 1fr 12px 1fr; }
.lm-editorial .m-hero { grid-column: 1 / -1; position: relative; }
.lm-editorial .m-hero::after { content: ""; position: absolute; left: 18%; right: 18%; top: 42%; height: 5px; background: rgba(255,255,255,.85); border-radius: 2px; }
.lm-editorial .m-a { grid-column: 1 / -1; background: transparent; border-top: 2px solid #8E877C; border-radius: 0; }
.lm-editorial .m-b { grid-column: 1; outline: 3px solid #FFFFFF; outline-offset: -3px; background: linear-gradient(160deg, #B9A88E, #8B7259); }
.lm-editorial .m-c, .lm-editorial .m-d { background: linear-gradient(160deg, #B9A88E, #8B7259); }
.ds-meta .pill { justify-self: start; }
@media (max-width: 560px) {
  .ds-wrap .ds-grid { grid-template-columns: 1fr 1fr; gap: 16px 10px; }
  .ds-wrap .ds-meta small { font-size: 12px; }
  .ds-wrap .ds-acts .btn.small { padding: 7px 10px; font-size: 13px; }
  .own-pal i { width: 16px; height: 22px; } .own-aa { font-size: 24px; } .own-lay { width: 64px; }
  .qs-grid { grid-template-columns: 1fr; }
}

/* ---------- v72: проба, первая съёмка, демо ---------- */
.trial-bar { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0 0 18px; padding: 10px 14px; border-radius: var(--r);
  background: #EEF4FF; border: 1px solid #C9D9F5; color: #1D3A6E; font-size: 14.5px; }
.trial-bar a { font-weight: 500; }
.trial-box { margin: 18px 0; padding: 16px; border-radius: var(--r); background: #EEF4FF; border: 1px solid #C9D9F5; }
.trial-box b { display: block; font-size: 16px; margin-bottom: 4px; }
.trial-box p { margin: 0 0 12px; font-size: 14.5px; }
.ob-start { background: linear-gradient(135deg, #F7FAFF, #EEF3FB); border-color: #C9D6EC; }
.ob-k { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.ob-start h2 { font-size: clamp(20px, 2.4vw, 26px); margin-bottom: 14px; }
.ob-steps { list-style: none; padding: 0; margin: 0 0 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ob-steps li { display: flex; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; font-size: 14.5px; }
.ob-steps b, .ob-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 600; }
.ob-form { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.ob-form .muted { font-size: 14px; }
.ob-more { margin: 0 0 20px; }
.ob-more summary { cursor: pointer; color: var(--blue); font-size: 14.5px; margin-bottom: 10px; }
@media (max-width: 720px) { .ob-steps { grid-template-columns: 1fr; } }
.ob-steps-panel { border: 1px solid #C9D6EC; background: #F7FAFF; border-radius: var(--r-lg); padding: 16px 18px; margin: 0 0 18px; }
.ob-steps-panel.done { background: #F1FAF3; border-color: #BFE3C9; }
.ob-sp-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; }
.ob-sp-head h2 { font-size: 18px; margin: 0; }
.ob-sp-head form { margin: 0; } .ob-sp-head .linkish { font-size: 13px; color: var(--graphite); }
.ob-track { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ob-track li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: var(--r); background: #fff; border: 1px solid var(--line); opacity: .6; }
.ob-track li.now { opacity: 1; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(43, 79, 158, .1); }
.ob-track li.ok { opacity: 1; }
.ob-track li.ok .ob-n { background: #1F7A3A; }
.ob-track li:not(.ok):not(.now) .ob-n { background: #B9C0CA; }
.ob-track b { display: block; font-weight: 500; font-size: 15px; }
.ob-track small { display: block; font-size: 13px; color: var(--graphite); line-height: 1.4; margin: 2px 0 8px; }
.ob-track .btn.small { margin-top: 2px; }
.ob-warn { color: #9A5B00 !important; }
.ob-next { margin: 12px 0 0; font-size: 14.5px; }
@media (max-width: 820px) { .ob-track { grid-template-columns: 1fr; } }

/* Демо: что получил фотограф */
.demo-page { background: #F4F4F2; margin: 0; }
.dr-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1120px; margin: 0 auto; padding: 18px 16px; }
.dr-top .logo { color: var(--ink); }
.dr { max-width: 1120px; margin: 0 auto; padding: 8px 16px 56px; }
.dr-k { margin: 0 0 6px; font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); font-weight: 500; }
.dr h1 { font-size: clamp(26px, 3.6vw, 40px); margin: 0 0 10px; }
.dr-lead { max-width: 44em; margin: 0 0 26px; font-size: 16.5px; color: var(--graphite); }
.dr-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 18px; align-items: start; }
@media (max-width: 860px) { .dr-grid { grid-template-columns: 1fr; } }
.dr-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.dr-card h2 { font-size: 18px; margin: 0 0 4px; }
.dr-sub { font-size: 14px; margin: 0 0 14px; }
.tg-chat { background: #E7EEF4 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40'%3E%3Ccircle cx='4' cy='4' r='1.2' fill='%23d3dde6'/%3E%3C/svg%3E"); border-radius: 12px; padding: 12px; }
.tg-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.tg-head small { display: block; color: var(--graphite); font-size: 12px; }
.tg-ava { width: 36px; height: 36px; border-radius: 50%; background: #E9B872; color: #1E1408; display: grid; place-items: center; font-weight: 600; }
.tg-msg { background: #fff; border-radius: 4px 14px 14px 14px; padding: 10px 12px 6px; max-width: 92%; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.tg-msg p { margin: 0; white-space: pre-wrap; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.tg-msg time { display: block; text-align: right; font-size: 11.5px; color: #8A96A3; margin-top: 2px; }
.dr-sel { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.dr-sel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin-bottom: 10px; }
.dr-sel-head .muted { font-size: 13.5px; }
.dr-lr-l { font-size: 13.5px; color: var(--graphite); display: block; margin-bottom: 4px; }
.dr-note { white-space: pre-wrap; font-size: 14.5px; }
.dr-next { margin-top: 26px; background: #fff; border: 1px solid #C9D6EC; border-radius: var(--r-lg); padding: 20px; }
.dr-next h2 { font-size: 20px; margin: 0 0 12px; }
.dr-steps { margin: 0 0 16px; padding-left: 20px; display: grid; gap: 8px; }
.dr-steps b { display: block; font-weight: 500; }
.dr-steps span { color: var(--graphite); font-size: 14.5px; }
.dr-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.dr-free { font-size: 13.5px; margin: 12px 0 0; }

/* Поиск по лицу: прогресс индексации и QR */
.alert.warn { background: #FFF6E5; color: #7A4B00; }
.fbar { height: 10px; border-radius: 6px; background: var(--line); overflow: hidden; margin: 6px 0 8px; }
.fbar span { display: block; height: 100%; background: var(--blue); transition: width .4s ease; }
.fqr { display: block; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }

/* ---------- Админка на телефоне (v85): верхняя строка, нижняя панель, «Ещё», таблицы карточками ---------- */
.adm-top, .adm-tabs { display: none; }
.tab-count { min-width: 20px; height: 20px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; background: var(--danger); color: #fff;
  font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; line-height: 1; }
.tab-count.calm { background: var(--blue); }
.todo { display: grid; gap: 8px; margin: -8px 0 22px; max-width: 640px; }
.todo h2 { margin: 0; font-size: 13px; font-weight: 600; color: var(--graphite); text-transform: uppercase; letter-spacing: .06em; }
.todo-row { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 8px 14px; box-sizing: border-box; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); color: var(--ink); text-decoration: none; }
.todo-row.hot { border-color: #EBC3BF; }
.todo-row .todo-t { flex: 1; font-weight: 600; }
.todo-row svg { color: var(--graphite); width: 18px; height: 18px; }
.todo-ok { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--ishkor-wash); color: #1C6765; border-radius: var(--r); font-size: 14px; }
.todo-ok svg { flex-shrink: 0; width: 18px; height: 18px; }
.more-search { display: flex; gap: 8px; margin-bottom: 18px; max-width: 640px; }
.more-search input { flex: 1; min-width: 0; }
.more-group { margin-bottom: 16px; }
.more-group h2 { margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--graphite); text-transform: uppercase; letter-spacing: .06em; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px; }
.more-item { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 48px; padding: 0 12px; box-sizing: border-box;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 15px; }
.more-item[hidden], .more-group[hidden] { display: none; }
.more-foot { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; margin-top: 8px; font-size: 15px; }
.more-foot form { margin: 0 0 0 auto; }
@media (max-width: 820px) {
  body.admin .side { display: none; }
  body.admin .adm-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 20;
    padding: 8px 12px 8px 16px; background: var(--paper); border-bottom: 1px solid var(--line); }
  body.admin .adm-top .logo { display: block; }
  .adm-top-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); }
  body.admin .adm-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .adm-tabs a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px;
    color: var(--graphite); text-decoration: none; font-size: 11px; font-weight: 500; }
  .adm-tabs a[aria-current] { color: var(--blue); font-weight: 600; }
  .adm-tabs .tab-count { position: absolute; top: 3px; left: 50%; margin-left: 5px; min-width: 18px; height: 18px; font-size: 11px; }
  body.admin .main { padding: 16px 16px calc(92px + env(safe-area-inset-bottom)); }
  body.admin .page-head { margin-bottom: 18px; }
  body.admin .page-head h1 { font-size: 24px; }
  body.admin .page-head .sub { font-size: 14px; }
  body.admin .page-head .seg { overflow-x: auto; max-width: 100%; }
  body.admin .main input:not([type=checkbox]):not([type=radio]):not([type=color]), body.admin .main select, body.admin .main textarea { font-size: 16px; max-width: 100%; }
  body.admin .main .btn { min-height: 44px; }
  body.admin .panel { padding: 16px; }
  body.admin .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.admin .tile { padding: 14px; }
  body.admin .tile b { font-size: 24px; }
  body.admin .main [style*="display:flex"], body.admin .main [style*="display: flex"] { flex-wrap: wrap; }
  body.admin .main [style*="display:flex"] > input, body.admin .main [style*="display:flex"] > form, body.admin .main [style*="display: flex"] > input { min-width: 0; flex: 1 1 180px; }
  body.admin .main .panel, body.admin .main .field, body.admin .main [class*="grid"] > *, body.admin .main .row2 > * { min-width: 0; }
  body.admin .main .field select, body.admin .main .field input:not([type=checkbox]):not([type=radio]) { width: 100%; box-sizing: border-box; }
  body.admin .main table:not(.tbl-cards) { display: block; max-width: 100%; overflow-x: auto; }
  body.admin .main pre, body.admin .main code { white-space: pre-wrap; overflow-wrap: anywhere; }
  body.admin .main img, body.admin .main video { max-width: 100%; height: auto; }
  body.admin .sticky-save { position: sticky; bottom: calc(66px + env(safe-area-inset-bottom)); z-index: 10; background: var(--paper); padding: 10px 0; margin: 0; border-top: 1px solid var(--line); }
  body.admin .sticky-save .btn { width: 100%; }
  html.pf-up-on body.admin .adm-top { top: 40px; }
}
@media (max-width: 640px) {
  body.admin table.tbl-cards thead { display: none; }
  body.admin table.tbl-cards, body.admin table.tbl-cards tbody, body.admin table.tbl-cards tr { display: block; width: 100%; }
  body.admin table.tbl-cards tr { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 6px 14px; margin-bottom: 10px; box-sizing: border-box; }
  body.admin table.tbl-cards td, body.admin table.tbl-cards tbody th { display: flex; justify-content: space-between; align-items: center; gap: 12px;
    padding: 8px 0; border: 0; border-bottom: 1px solid #EEF0F2; text-align: right; white-space: normal; }
  body.admin table.tbl-cards td:last-child { border-bottom: 0; }
  body.admin table.tbl-cards td:first-child, body.admin table.tbl-cards tbody th:first-child { display: block; text-align: left; font-weight: 600; }
  body.admin table.tbl-cards td[data-label]::before { content: attr(data-label); color: var(--graphite); font-size: 13px; font-weight: 400; text-align: left; flex: 0 1 40%; }
  body.admin table.tbl-cards td { overflow-wrap: anywhere; min-width: 0; }
  body.admin table.tbl-cards td > .td-v { min-width: 0; max-width: 60%; }
  body.admin table.tbl-cards td:first-child > .td-v { max-width: none; }
  body.admin table.tbl-cards td:empty { display: none; }
  body.admin table.tbl-cards td select, body.admin table.tbl-cards td input[type=text], body.admin table.tbl-cards td input[type=number] { flex: 1 1 50%; min-width: 0; }
  body.admin .panel:has(> table.tbl-cards), body.admin .panel:has(> div > table.tbl-cards) { background: none; border: 0; padding: 0; }
}

/* ---------- ИИ-редактор фото (v86) ---------- */
.ph-tools a.ph-ai { background: var(--blue); color: #fff; border-radius: 6px; font: 600 12px/1 var(--text); padding: 6px 8px; text-decoration: none; }
.rt { display: grid; gap: 12px; }
.rt-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rt-back { color: var(--graphite); text-decoration: none; font-size: 14px; max-width: 40%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rt-nav { display: flex; gap: 4px; }
.rt-save { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.rt-body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.rt-stage { position: relative; height: calc(100vh - 190px); min-height: 360px; background: #1E2127; border-radius: var(--r-lg); overflow: hidden;
  touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.rt-stage.pan { cursor: grab; }
.rt-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.rt-canvas img, .rt-canvas canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rt-canvas img { -webkit-user-drag: none; }
.rt-cursor { position: absolute; left: 0; top: 0; border: 1.5px solid #fff; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.5); pointer-events: none; }
.rt-busy { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: rgba(23,26,33,.86);
  color: #fff; padding: 10px 16px; border-radius: 22px; font-size: 14px; }
.rt-spin { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: rtspin .8s linear infinite; }
@keyframes rtspin { to { transform: rotate(360deg); } }
.rt-before { position: absolute; left: 12px; top: 12px; background: rgba(23,26,33,.86); color: #fff; padding: 4px 10px; border-radius: 12px; font-size: 13px; }
.rt-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; background: rgba(23,26,33,.86); border-radius: 22px; overflow: hidden; }
.rt-zoom button { background: none; border: 0; color: #fff; min-width: 44px; height: 40px; font: 600 16px var(--text); cursor: pointer; }
.rt-zoom .rt-zval { font-size: 13px; min-width: 56px; }
.rt-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: grid; gap: 14px; }
.rt-tabs { display: flex; flex-wrap: wrap; gap: 4px; background: var(--paper); padding: 4px; border-radius: 12px; }
.rt-tabs [role=tab] { flex: 1 1 auto; border: 0; background: none; min-height: 40px; padding: 0 10px; border-radius: 9px; font: 500 14px var(--text); color: var(--graphite); cursor: pointer; }
.rt-tabs [role=tab][aria-selected=true] { background: var(--surface); color: var(--blue-deep); font-weight: 600; box-shadow: 0 1px 2px rgba(23,26,33,.12); }
.rt-tabs [role=tab].off { opacity: .55; }
.rt-tabs .tab-lock { padding: 10px; font-size: 14px; color: var(--graphite); }
.rt-tool { display: grid; gap: 10px; font-size: 14px; }
.rt-tool p { margin: 0; }
.rt-tool .field span { display: block; font-size: 13px; color: var(--graphite); margin-bottom: 4px; }
.rt-tool textarea { width: 100%; box-sizing: border-box; }
.rt-range { display: grid; gap: 4px; font-size: 13px; color: var(--graphite); }
.rt-range input { width: 100%; }
.rt-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rt-hist { display: flex; flex-wrap: wrap; gap: 6px; border-top: 1px solid var(--line); padding-top: 12px; }
.rt-meta, .rt-keys { margin: 0; font-size: 13px; }
.rt-discard { margin: 0; font-size: 13px; }
@media (hover: none) { .rt-keys { display: none; } }
@media (max-width: 900px) {
  .rt-body { grid-template-columns: minmax(0, 1fr); }
  .rt-stage { height: 46vh; min-height: 260px; position: sticky; top: 6px; z-index: 5; box-shadow: 0 6px 16px rgba(23,26,33,.18); }
  .rt-back { max-width: 55%; }
  .rt-save { width: 100%; }
  .rt-save .btn { flex: 1 1 auto; min-height: 44px; }
}
.rt-canvas #rt-prev { pointer-events: none; }
.rt-adj { display: grid; gap: 6px; }
.rt-slider { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 8px; font-size: 13px; color: var(--graphite); }
.rt-slider output { font-variant-numeric: tabular-nums; color: var(--ink); min-width: 3ch; text-align: right; }
.rt-slider input { grid-column: 1 / -1; width: 100%; margin: 0; }
.rt-adj-btns { margin-top: 2px; }
.pr-ai { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; padding: 12px; border: 1.5px solid var(--line);
  border-radius: var(--r-lg); background: var(--surface); margin-bottom: 18px; cursor: pointer; }
.pr-ai:has(> input:checked) { border-color: var(--blue); }
.pr-ai > input { position: absolute; opacity: 0; pointer-events: none; }
.pr-ai img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--r); background: var(--paper); }
.pr-ai-ctl { display: grid; gap: 10px; }
.pr-ai-row { display: grid; gap: 6px; }
.pr-ai-seg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; background: var(--paper); padding: 4px; border-radius: 10px; }
.pr-ai-seg label { position: relative; }
.pr-ai-seg input { position: absolute; opacity: 0; }
.pr-ai-seg span { display: grid; place-items: center; min-height: 38px; border-radius: 8px; font-size: 14px; color: var(--graphite); cursor: pointer; }
.pr-ai-seg input:checked + span { background: var(--surface); color: var(--blue-deep); font-weight: 600; box-shadow: 0 1px 2px rgba(23,26,33,.12); }
.pr-ai-seg input:focus-visible + span { outline: 2px solid var(--blue); }
@media (max-width: 640px) { .pr-ai { grid-template-columns: 1fr; } }

/* ИИ-стили по образцу (v89) */
.sty-item { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; margin: 12px 0; display: grid; gap: 10px; }
.sty-refs { display: flex; gap: 6px; overflow-x: auto; }
.sty-refs img { height: 72px; width: auto; border-radius: 6px; flex: 0 0 auto; }
.sty-edit { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.sty-edit .field { flex: 1 1 180px; }
.sty-meta { margin: 0; }
.sty-add { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; }
.sty-add input[type=file] { max-width: 100%; }
.pr-group-link { font-size: 12px; font-weight: 400; text-transform: none; letter-spacing: 0; margin-left: 8px; }
.sty-hint { margin: 6px 0 0; }
.rt-styles { display: grid; gap: 6px; }
.rt-styles .btn { justify-content: flex-start; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Редактор: кадр (v90) */
.rt-crop { position: absolute; box-sizing: border-box; border: 1.5px solid #fff; box-shadow: 0 0 0 9999px rgba(10,12,16,.55); cursor: move; touch-action: none;
  background-image: linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)), linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35)),
    linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.35)), linear-gradient(90deg, rgba(255,255,255,.35), rgba(255,255,255,.35));
  background-size: 100% 1px, 100% 1px, 1px 100%, 1px 100%; background-position: 0 33.33%, 0 66.66%, 33.33% 0, 66.66% 0; background-repeat: no-repeat; }
.rt-ch { position: absolute; width: 26px; height: 26px; touch-action: none; }
.rt-ch::after { content: ""; position: absolute; width: 14px; height: 14px; border: 3px solid #fff; }
.rt-ch-nw { left: -13px; top: -13px; cursor: nwse-resize; } .rt-ch-nw::after { left: 10px; top: 10px; border-right: 0; border-bottom: 0; }
.rt-ch-ne { right: -13px; top: -13px; cursor: nesw-resize; } .rt-ch-ne::after { right: 10px; top: 10px; border-left: 0; border-bottom: 0; }
.rt-ch-sw { left: -13px; bottom: -13px; cursor: nesw-resize; } .rt-ch-sw::after { left: 10px; bottom: 10px; border-right: 0; border-top: 0; }
.rt-ch-se { right: -13px; bottom: -13px; cursor: nwse-resize; } .rt-ch-se::after { right: 10px; bottom: 10px; border-left: 0; border-top: 0; }
@media (pointer: coarse) { .rt-ch { width: 40px; height: 40px; } .rt-ch-nw, .rt-ch-sw { left: -20px; } .rt-ch-ne, .rt-ch-se { right: -20px; } .rt-ch-nw, .rt-ch-ne { top: -20px; } .rt-ch-sw, .rt-ch-se { bottom: -20px; } .rt-ch::after { width: 16px; height: 16px; } .rt-ch-nw::after, .rt-ch-sw::after { left: 14px; } .rt-ch-ne::after, .rt-ch-se::after { right: 14px; } .rt-ch-nw::after, .rt-ch-ne::after { top: 14px; } .rt-ch-sw::after, .rt-ch-se::after { bottom: 14px; } }
.rt-ar { display: flex; flex-wrap: wrap; gap: 6px; }
.rt-ar .chip[aria-pressed=true] { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }

/* Мастер новой галереи (v90): с телефона в первую очередь */
.wz { max-width: 620px; margin: 0 auto; padding-bottom: 96px; }
.wz-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.wz-x { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--graphite); text-decoration: none; font-size: 18px; flex: 0 0 auto; }
.wz-x:hover { background: var(--paper); }
.wz-prog { display: flex; gap: 6px; flex: 1; }
.wz-prog span { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.wz-prog span.on { background: var(--blue); }
.wz-n { font-size: 13px; color: var(--graphite); white-space: nowrap; }
.wz-h { font-size: clamp(26px, 6vw, 34px); line-height: 1.15; margin: 0 0 6px; }
.wz-sub { color: var(--graphite); margin: 0 0 20px; font-size: 16px; }
.wz-form { display: grid; gap: 14px; }
.wz-form .field input { font-size: 17px; min-height: 52px; }
.wz-q { font-weight: 600; }
.wz-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: -4px; }
.wz-chip { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; min-height: 44px; padding: 0 16px; font: 500 15px var(--text); cursor: pointer; }
.wz-chip[aria-pressed=true] { background: var(--blue); border-color: var(--blue); color: #fff; }
.wz-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 18px rgba(23,26,33,.06); }
.wz-foot .btn { flex: 1; min-height: 52px; font-size: 16px; justify-content: center; }
.wz-foot .btn.ghost { flex: 0 1 auto; }
.wz-foot .btn { min-width: 0; white-space: normal; text-align: center; }
.wz-share .wz-wide { grid-column: 1 / -1; }
.rt-stage.cropping .rt-zoom { display: none; }
.wz-next[aria-disabled=true] { opacity: .45; pointer-events: none; }
@media (min-width: 821px) {
  .wz-foot { position: static; padding: 0; border: 0; box-shadow: none; background: none; margin-top: 24px; justify-content: flex-end; }
  .wz-foot .btn { flex: 0 0 auto; min-width: 160px; }
  .wz { padding-bottom: 24px; }
}
.wz-drop { width: 100%; display: grid; justify-items: center; gap: 6px; padding: 36px 16px; border: 2px dashed var(--blue); border-radius: var(--r-lg);
  background: color-mix(in srgb, var(--blue) 6%, var(--surface)); color: var(--ink); font: inherit; cursor: pointer; }
.wz-drop b { font-size: 20px; }
.wz-drop small { color: var(--graphite); }
.wz-drop-i { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 34px; line-height: 1; }
.wz-drop.busy { border-style: solid; }
.wz-status { min-height: 1.4em; margin: 14px 0 8px; font-weight: 600; }
.wz-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; }
.wz-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; background: var(--paper); }
.wz-opt { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--r-lg); cursor: pointer; background: var(--surface); }
.wz-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wz-opt b { display: block; font-size: 16px; }
.wz-opt small { display: block; color: var(--graphite); margin-top: 2px; }
.wz-opt-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--paper); font-size: 20px; color: var(--graphite); }
.wz-opt:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--surface)); }
.wz-opt:has(input:checked) .wz-opt-i { background: var(--blue); color: #fff; }
.wz-opt:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.wz-limit { margin: -4px 0 4px 58px; }
@media (max-width: 480px) { .wz-limit { margin-left: 0; } }
.wz-done-i { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--ok, #2E9E5B); color: #fff; font-size: 36px; margin-bottom: 12px; }
.wz-link { padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); word-break: break-all; font-size: 15px; margin-bottom: 12px; }
.wz-share { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wz-share .wz-big { min-height: 52px; justify-content: center; font-size: 16px; }
.wz-share .wz-big:first-child { grid-column: 1 / -1; }
.wz-qr { margin-top: 16px; }
.wz-qr summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; }
.wz-qr img { display: block; margin: 8px 0; background: #fff; border-radius: 8px; }
.new-wz { display: inline-flex; }

/* Свои стили и LUT — кнопки из галереи (v92) */
.my-styles { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 12px; margin: 10px 0 4px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--paper); font-size: 14px; }
.my-styles-t { color: var(--graphite); }
.my-styles-b { display: flex; flex-wrap: wrap; gap: 6px; }
.my-styles .is-locked { opacity: .6; cursor: help; }

/* Красные счётчики: новые отборы и заказы (v92) */
.count.red { background: var(--danger, #C0392B); margin-left: 6px; }
.tag.tag-new { background: var(--danger, #C0392B); display: inline-flex; align-items: center; gap: 6px; }
.tag-new .dot-n { display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: var(--danger, #C0392B); font-size: 12px; }
.sel-fresh { display: block; margin: 0 0 12px; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--danger, #C0392B) 10%, var(--surface)); color: var(--ink); font-weight: 600; text-decoration: none; border: 1px solid color-mix(in srgb, var(--danger, #C0392B) 35%, transparent); }

/* Уведомления одним блоком (v92) */
.nbox { border-radius: var(--r); margin-bottom: 12px; background: var(--blue-wash); color: var(--blue-deep); font-size: 15px; overflow: hidden; }
.nbox.warn { background: #FFF4E0; color: #7A4A00; }
.nb-it { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 14px; }
.nb-it.warn { color: #7A4A00; }
.nb-t { min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nb-n { font-variant-numeric: tabular-nums; }
.nb-acts { display: flex; align-items: center; gap: 10px; flex: none; }
.nb-acts form, .nb-foot form { margin: 0; }
.nb-foot { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 0 14px 10px; font-size: 14px; }
.nb-more summary { cursor: pointer; text-decoration: underline; list-style: none; }
.nb-more summary::-webkit-details-marker { display: none; }
.nb-more[open] summary { margin-bottom: 6px; }
.nb-list { max-height: 260px; overflow-y: auto; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.nb-list .nb-it { padding: 10px 0; border-bottom: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.nb-list .nb-t { -webkit-line-clamp: 4; }
.nb-all { font-weight: 600; white-space: nowrap; }
@media (max-width: 640px) { .nb-it { flex-wrap: wrap; } .nb-acts { width: 100%; justify-content: space-between; } }
.nb-more { flex: 1; min-width: 0; }

/* Админка «Главная страница»: схема макета и номера мест (v93) */
.ln-mock { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ln-map { position: relative; display: grid; grid-template-columns: 1fr 34%; gap: 12px; align-items: end; padding: 10px; border-radius: 14px; background: #86695a; }
.ln-map-win { position: relative; aspect-ratio: 16 / 10; border-radius: 10px; background: #fbf7f2; overflow: hidden; }
.ln-map-bar { position: absolute; left: 0; right: 0; top: 0; height: 12%; background: #ece2d8; }
.ln-map-ph { position: relative; aspect-ratio: 9 / 18; border-radius: 16px; background: #fbf7f2; border: 5px solid #1f1915; margin-bottom: -20px; }
.ln-spot { position: absolute; transform: translate(-50%, -50%); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #1f1915; color: #fff; font: 700 13px/1 var(--text); text-decoration: none; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .15s, background .15s; }
.ln-spot.hl, .ln-spot:hover { background: var(--danger, #C0392B); transform: translate(-50%, -50%) scale(1.2); }
.ln-num { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 8px; border-radius: 50%; background: #1f1915; color: #fff; font-size: 13px; vertical-align: middle; }
.ln-card.hl { outline: 3px solid var(--danger, #C0392B); outline-offset: 2px; }
.ln-card.hl .ln-num { background: var(--danger, #C0392B); }
.ln-from { display: grid; gap: 6px; margin-top: 14px; }
.ln-from label { font-weight: 600; font-size: 14px; }
.ln-mock-f { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 820px) { .ln-mock, .ln-mock-f { grid-template-columns: minmax(0, 1fr); } }
.mon-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 16px; }
.mon-two h3 { font-size: 15px; margin: 0 0 6px; }

/* Моё оборудование (v94) */
.gear-h { font-size: 15px; margin: 18px 0 8px; }
.gear-it { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; margin-bottom: 8px; }
.gear-it summary { cursor: pointer; display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.gear-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 0 12px; margin-top: 10px; align-items: end; }
.gear-f .field { margin-bottom: 10px; }
.gear-btns { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.gear-add { margin: 6px 0 4px; }
.gear-add summary { list-style: none; display: inline-flex; }
.gear-add summary::-webkit-details-marker { display: none; }
.gear-sugg { font-size: 14px; color: var(--graphite); margin: 4px 0 8px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* Помощник настройки камеры (v94) */
.cg { margin-top: 14px; }
.cg-lead { margin: 0 0 10px; }
.cg-brands { display: flex; flex-wrap: wrap; gap: 8px; }
.cg-brand { border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; min-height: 44px; padding: 0 18px; font: 600 15px var(--text); cursor: pointer; color: var(--ink); }
.cg-brand:hover, .cg-brand.mine { border-color: var(--blue); color: var(--blue-deep); }
.cg-dlg { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, calc(100% - 24px)); max-height: calc(100dvh - 24px); }
.cg-dlg::backdrop { background: rgba(23,26,33,.55); }
.cg-in { padding: 18px; display: grid; gap: 12px; }
.cg-head { display: flex; justify-content: space-between; align-items: center; }
.cg-head h3 { margin: 0; }
.cg-x { border: 0; background: none; font-size: 18px; width: 44px; height: 44px; cursor: pointer; }
.cg-lines { display: flex; flex-wrap: wrap; gap: 6px; }
.cg-line[aria-pressed=true] { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.cg-screen { background: #1b1d22; border-radius: 14px; padding: 14px; box-shadow: inset 0 0 0 6px #2a2d34; }
.cg-lcd { display: grid; gap: 4px; font: 500 14px/1.2 var(--text); color: #c9ced8; }
.cg-lcd span { padding: 8px 10px; border-radius: 6px; }
.cg-lcd span.on { background: #e8a33d; color: #1b1d22; font-weight: 700; }
.cg-n { margin: 0; font-size: 13px; color: var(--graphite); }
.cg-text { margin: 0; font-size: 16px; }
.cg-nav, .cg-check { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
#cg-ping-st.ok { color: var(--ok, #2E9E5B); font-weight: 600; }
.cg-manual { margin: 0; font-size: 14px; }
.cam-name { flex-wrap: wrap; }
.cam-gear { width: auto; max-width: 240px; padding: 6px 8px; font-size: 14px; }

/* Права команды группами (v95) */
.perm-scope { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 12px; background: var(--paper); }
.perm-grp { border: 0; padding: 0; margin: 0 0 12px; }
.perm-grp legend { font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.perm-ai { max-width: 340px; margin: 6px 0 0; }

/* Задача ретуши и папки (v96) */
.rq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rq-it { display: grid; gap: 4px; text-decoration: none; color: var(--graphite); font-size: 12px; }
.rq-it img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; outline: 3px solid transparent; outline-offset: -3px; }
.rq-it.ed img { outline-color: var(--blue); }
.rq-it.ed span { color: var(--blue-deep); font-weight: 600; }
.rt-task-n { font-size: 13px; color: var(--graphite); white-space: nowrap; align-self: center; }
.fd-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0 10px; }
.fd-bar .chip.on { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); }
.fd-bar .chip.done { border-color: var(--danger, #C0392B); }
.fd-manage { margin: 0 0 12px; }
.fd-manage summary { cursor: pointer; font-size: 14px; color: var(--graphite); }
.fd-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 6px 0; }
.fd-row input[type=text] { max-width: 260px; padding: 6px 10px; }
.ph-bar select { width: auto; padding: 6px 8px; font-size: 14px; }

/* Доп. покупки (v97) */
.ao-h { font-size: 15px; margin: 18px 0 8px; }
.ao-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.ao-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.ao-card.want { border-color: var(--blue); box-shadow: 0 0 0 2px color-mix(in srgb, var(--blue) 25%, transparent); }
.ao-card h3 { margin: 0; font-size: 16px; }
.ao-card p { margin: 0; }
.ao-price b { font-size: 20px; }
.ao-hint { font-size: 13px; color: var(--blue-deep); background: var(--blue-wash); padding: 6px 8px; border-radius: 8px; }
.ao-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.ao-btns form, .ao-card form { margin: 0; }
.ao-mine { margin: 0 0 6px; padding-left: 18px; }

/* ---------- v98: баланс, тариф и место наверху панели ---------- */
.side { gap: 22px; }
.acct { display: grid; gap: 10px; padding: 12px; margin: 0 -4px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.acct-l { font-size: 12px; color: var(--graphite); text-transform: uppercase; letter-spacing: .04em; }
.acct-bal { display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.acct-bal b { font: 700 19px/1.2 var(--display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.acct-bal b small { font: 500 13px var(--text); color: var(--graphite); letter-spacing: 0; }
.acct-plus { font-size: 12px; font-weight: 600; color: var(--blue); white-space: nowrap; }
.acct-bal:hover .acct-plus, .acct-bal[aria-current] .acct-plus { text-decoration: underline; }
.acct-plan { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 8px; font-size: 13px; color: var(--ink); text-decoration: none; padding-top: 10px; border-top: 1px solid var(--line); }
.acct-plan b { font-weight: 600; }
a.acct-plan:hover .plan-more, a.acct-plan[aria-current] .plan-more { text-decoration: underline; }
.acct-disk { padding-top: 10px; border-top: 1px solid var(--line); }
.acct-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.acct-row b { font-size: 14px; font-weight: 600; color: var(--ishkor); white-space: nowrap; }
.acct-disk .meter-bar { height: 7px; background: #E3E6EA; }
.acct-disk small { display: block; font-size: 12px; color: var(--graphite); }
.acct-split { margin-top: 2px; }
.acct-disk.warn .acct-row b { color: #9A5B00; } .acct-disk.warn .meter-bar span:first-child { background: #D98E04; }
.acct-disk.full .acct-row b { color: var(--danger); } .acct-disk.full .meter-bar span:first-child { background: var(--danger); }
.acct-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 10px; }
.acct-more { margin-top: 4px; font-size: 12px; font-weight: 600; text-decoration: none; }
.acct-more:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .acct { order: 2; width: 100%; margin: 0; padding: 10px 12px; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: center; }
  .acct-bal { grid-template-columns: auto auto; align-items: baseline; column-gap: 10px; } .acct-bal .acct-l { grid-column: 1 / -1; }
  .acct-bal b { font-size: 17px; }
  .acct-plan { display: none; }
  .acct-disk { padding: 0; border: 0; }
  .acct-split, .acct-links .meter-trash { display: none; }
  .acct-row { margin-bottom: 4px; }
}
@media (max-width: 420px) { .acct { grid-template-columns: 1fr; } .acct-bal .acct-l { display: none; } }

/* ---------- v98: Диск ---------- */
.drv-head-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.drv-pick { cursor: pointer; }
.drv-sum { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; font-size: 14px; margin-bottom: 14px; }
.drv-sum b { font-size: 16px; }
.drv-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 15px; margin-bottom: 12px; }
.drv-crumbs a { text-decoration: none; }
.drv-crumbs a[aria-current] { color: var(--ink); font-weight: 600; }
.drv-crumbs span { color: var(--graphite); }
.drv-drop { border: 1.5px dashed #B9BFC9; border-radius: var(--r-lg); padding: 18px; text-align: center; color: var(--graphite); background: var(--surface); margin-bottom: 18px; cursor: pointer; transition: background .15s, border-color .15s; }
.drv-drop p { margin: 0; font-size: 14px; }
.drv-drop.over { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-deep); }
.drv-drop.busy { text-align: left; cursor: default; }
.drv-queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.drv-drop.busy .drv-queue { margin-top: 12px; }
.drv-queue li { display: grid; grid-template-columns: minmax(0, 1fr) 160px auto auto; gap: 12px; align-items: center; font-size: 14px; color: var(--ink); }
.drv-queue .q-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drv-queue .q-bar { height: 6px; border-radius: 3px; background: var(--paper); overflow: hidden; }
.drv-queue .q-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .3s; }
.drv-queue .q-st { font-size: 13px; color: var(--graphite); white-space: nowrap; font-variant-numeric: tabular-nums; }
.drv-queue li.ok .q-bar i { background: var(--ishkor); } .drv-queue li.ok .q-x, .drv-queue li.err .q-x { visibility: hidden; }
.drv-queue li.err .q-st { color: var(--danger); white-space: normal; } .drv-queue li.wait .q-st { color: #9A5B00; }
.drv-list { padding: 8px 12px; }
.drv-name { display: inline-flex; gap: 10px; align-items: flex-start; color: var(--ink); text-decoration: none; word-break: break-word; }
a.drv-name:hover b { text-decoration: underline; }
.drv-ic { font-size: 20px; line-height: 1.2; }
.drv-tag { display: inline-block; margin: 4px 0 0 30px; font-size: 12px; color: var(--blue-deep); background: var(--blue-wash); border-radius: 10px; padding: 0 8px; }
.drv-empty { padding: 18px 12px; margin: 0; }
.drv-links td { vertical-align: middle; }
.drv-links tr.drv-new td { background: var(--ishkor-wash); }
.drv-lk { display: flex; gap: 8px; align-items: center; min-width: 0; }
.drv-lk code { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 300px; }
.drv-locked { max-width: none; margin-bottom: 18px; cursor: pointer; }
.drv-dlg { border: 0; border-radius: var(--r-lg); padding: 24px; width: min(440px, calc(100vw - 32px)); box-shadow: 0 20px 60px rgba(23, 26, 33, .25); }
.drv-dlg::backdrop { background: rgba(23, 26, 33, .45); }
.drv-dlg h2 { font-size: 19px; }
.drv-dlg .field { margin-bottom: 14px; }
.drv-dlg-acts { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
@media (max-width: 720px) {
  .drv-list .hide-s, .drv-links th:nth-child(3), .drv-links td:nth-child(3) { display: none; }
  .drv-queue li { grid-template-columns: minmax(0, 1fr) auto; }
  .drv-queue .q-bar { grid-column: 1 / -1; order: 3; }
  .drv-lk code { max-width: 140px; }
}

/* ---------- v98: публичная страница ссылки Диска ---------- */
body.drv-pub { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.drv-pub-card { width: min(620px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 5vw, 36px); }
.drv-pub-card h1 { font-size: clamp(20px, 4vw, 26px); word-break: break-word; }
.drv-pub-who { font-size: 13px; color: var(--graphite); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.drv-pub-file { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; }
.drv-pub-ic { font-size: 40px; line-height: 1; }
.drv-pub-btn { margin: 4px 0 18px; }
.drv-pub-form .field { margin-bottom: 14px; }
.drv-pub-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-height: 60vh; overflow-y: auto; }
.drv-pub-list a { display: flex; justify-content: space-between; gap: 12px; padding: 10px 2px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 15px; word-break: break-word; }
.drv-pub-list a:hover span { text-decoration: underline; }
.drv-pub-list small { white-space: nowrap; }
.drv-pub-foot { margin: 22px 0 0; font-size: 13px; color: var(--graphite); }
.drv-pub-foot a { color: var(--graphite); }
.drv-pub-foot a[aria-current] { color: var(--ink); font-weight: 600; text-decoration: none; }

/* v98c: «Удалить галерею» в шапке галереи, рядом со «Смотреть» */
.g-head-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.g-head-acts form { margin: 0; }

/* ===== v99: мастер сайта ===== */
.swz { max-width: 760px; }
.swz-warn { background: color-mix(in srgb, #E8A33D 14%, var(--surface)); border: 1px solid color-mix(in srgb, #E8A33D 45%, var(--line)); color: var(--ink); }
.swz-genres { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin-top: -4px; }
.swz-g { padding: 12px 14px; gap: 12px; }
.swz-g small { font-size: 13px; }
.swz-chip { position: relative; }
.swz-chip input { position: absolute; opacity: 0; pointer-events: none; }
.swz-chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); cursor: pointer; font-weight: 500; }
.swz-chip input:checked + span { background: var(--blue); border-color: var(--blue); color: #fff; }
.swz-chip input:focus-visible + span { outline: 2px solid var(--blue); outline-offset: 2px; }
.swz .lbl { display: block; font-weight: 600; margin-bottom: 6px; }
.swz-ds { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.swz-d { position: relative; display: grid; gap: 8px; cursor: pointer; }
.swz-d input { position: absolute; opacity: 0; pointer-events: none; }
.swz-d-pv { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; border: 2px solid var(--line); background: var(--paper); transition: border-color .15s, box-shadow .15s; }
.swz-d-pv img { width: 100%; height: 100%; object-fit: cover; display: block; }
.swz-d-own { display: grid; place-items: center; align-content: center; gap: 10px; }
.swz-d-own i { width: 60%; height: 8px; border-radius: 4px; opacity: .5; }
.swz-d-own b { font-size: 44px; font-family: Georgia, serif; font-weight: 400; }
.swz-d-own em { width: 46%; height: 22px; border-radius: 999px; }
.swz-d-t b { display: block; font-size: 15px; }
.swz-d-t small { display: block; color: var(--graphite); font-size: 12.5px; line-height: 1.35; }
.swz-d input:checked + .swz-d-pv { border-color: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }
.swz-d input:checked + .swz-d-pv::after { content: "✓"; position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 700; }
.swz-d input:focus-visible + .swz-d-pv { outline: 2px solid var(--blue); outline-offset: 2px; }
.swz-d.off { cursor: not-allowed; }
.swz-d.off .swz-d-pv img { filter: grayscale(.7); opacity: .55; }
.swz-fit { position: absolute; left: 8px; top: 8px; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.94); color: #1d2433; font: 600 11.5px/1.3 var(--text); }
.swz-lock { position: absolute; right: 8px; bottom: 8px; font-size: 18px; }
.swz-note { margin: 0; }
.swz-cover { position: relative; width: 100%; min-height: 200px; display: grid; place-items: center; padding: 0; border: 2px dashed var(--blue); border-radius: var(--r-lg); background: color-mix(in srgb, var(--blue) 4%, var(--surface)); cursor: pointer; overflow: hidden; color: var(--ink); font: inherit; }
.swz-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.swz-cover-c { position: relative; display: grid; justify-items: center; gap: 6px; padding: 24px 16px; text-align: center; }
.swz-cover-c b { font-size: 18px; }
.swz-cover-c small { color: var(--graphite); }
.swz-cover.has { border-style: solid; aspect-ratio: 16 / 9; min-height: 0; }
.swz-cover.has .swz-cover-c { align-self: end; justify-self: stretch; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.6)); color: #fff; }
.swz-cover.has .swz-cover-c small, .swz-cover.has .wz-drop-i { display: none; }
.swz-cover.busy { opacity: .6; pointer-events: none; }
.swz-pf-h { margin: -8px 0 0; }
.swz-gals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.swz-gals:empty { display: none; }
.swz-gal { position: relative; display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; padding: 8px; border: 1.5px solid var(--line); border-radius: var(--r-lg); background: var(--surface); cursor: pointer; }
.swz-gal input { position: absolute; opacity: 0; pointer-events: none; }
.swz-gal img, .swz-gal-new { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; background: var(--paper); display: grid; place-items: center; font-size: 24px; color: var(--blue); }
.swz-gal b { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.swz-gal small { color: var(--graphite); }
.swz-gal:has(input:checked) { border-color: var(--blue); background: color-mix(in srgb, var(--blue) 6%, var(--surface)); }
.swz-gal:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.swz-pf-new { padding: 22px 16px; }
.swz-share .wz-big:first-child { grid-column: 1 / -1; }
.swz-next-h { font-size: 18px; margin: 28px 0 10px; }
.swz-next { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.swz-next a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); color: var(--ink); text-decoration: none; font-size: 22px; }
.swz-next a:hover { border-color: var(--blue); }
.swz-next b { display: block; font-size: 15px; }
.swz-next small { display: block; color: var(--graphite); font-size: 13px; }
@media (max-width: 480px) { .swz-ds { grid-template-columns: 1fr 1fr; gap: 10px; } }
/* Приглашение в мастер — на «Галереях» и в разделе «Сайт» */
.swz-cta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 18px 20px; border: 1px solid color-mix(in srgb, var(--blue) 30%, var(--line)); border-radius: var(--r-lg);
  background: linear-gradient(120deg, color-mix(in srgb, var(--blue) 9%, var(--surface)), var(--surface)); margin-bottom: 18px; }
.swz-cta-i { font-size: 34px; line-height: 1; }
.swz-cta-t { flex: 1 1 260px; }
.swz-cta-t b { display: block; font-size: 17px; margin-bottom: 2px; }
.swz-cta-t span { color: var(--graphite); }
.swz-cta-a { display: flex; gap: 8px; align-items: center; }
.swz-cta-a form { margin: 0; }

/* v113r: карточка фотографа в админке — нижние блоки колонками (было — столбиком, справа пусто) */
.au-more { columns: 3 460px; column-gap: 20px; margin-top: 20px; }
.au-more > .panel, .au-more > form.panel { break-inside: avoid; margin: 0 0 20px !important; display: block; width: 100%; }
/* v113r: «Функции сверх тарифа» на широком экране — строки таблицы в 2–3 колонки */
@media (min-width: 1400px) {
  form#features .feat-tbl thead { display: none; }
  form#features .feat-tbl, form#features .feat-tbl tbody { display: block; width: 100%; }
  form#features .feat-tbl tbody { display: grid; grid-template-columns: repeat(auto-fill, minmax(500px, 1fr)); column-gap: 28px; }
  form#features .feat-tbl tr { display: grid; grid-template-columns: minmax(0, 1fr) 56px 190px; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid rgba(127,127,127,.18); }
  form#features .feat-tbl td { border: 0 !important; padding: 0 !important; }
  form#features .feat-tbl .feat-num { width: 100% !important; }
}
/* v113r: колонки панелей на широком экране — общий помощник (короткие панели рядом, а не столбиком) */
.pg-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 20px; align-items: start; }
.pg-cols.pg-cols-wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 720px), 1fr)); }
.pg-cols > .panel { margin: 0 !important; min-width: 0; }
/* v113r: настройки галереи — две колонки на широком экране */
.gs-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 0 36px; align-items: start; }
.gs-col > .gs-h:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
@media (max-width: 1100px) { .gs-cols { grid-template-columns: minmax(0, 1fr); } .gs-col > .gs-h:first-child { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 22px; } }
