/* ---------- экраны, избранное ---------- */
.screen[hidden] { display: none; }
.heart {
  flex: none; width: 40px; height: 40px; margin-right: -8px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted); transition: color .2s, transform .2s;
}
.heart svg { width: 24px; height: 24px; }
.heart.on { color: var(--accent); }
.heart:active { transform: scale(.8); }
.heart.on svg { animation: pop .35s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.empty { list-style: none; text-align: center; color: var(--muted); font-size: 14px; line-height: 1.5; padding: 56px 0; }
.empty-ico { display: grid; place-items: center; width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: rgba(242, 169, 138, .1); color: var(--accent); }
.empty-ico svg { width: 30px; height: 30px; }

/* ---------- нижнее меню ---------- */
.tabbar {
  position: fixed; z-index: 6; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 560px;
  display: flex; justify-content: center; gap: 4px;
  padding: 8px 12px calc(8px + var(--safe-b));
  background: rgba(20, 16, 13, .86);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border-top: 1px solid var(--line);
}
.tab {
  flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 6px 0; font-size: 11px; font-weight: 500; color: var(--muted); transition: color .25s;
}
.tab svg { width: 24px; height: 24px; }
.tab.on { color: var(--accent); }
.tab.on svg { filter: drop-shadow(0 0 8px rgba(242, 169, 138, .5)); }

/* ---------- плеер: сердечко ---------- */
.icon-btn.fav { left: auto; right: 16px; color: var(--text); }
.icon-btn.fav.on { color: var(--accent); }
.icon-btn.flat { position: static; background: none; border: 0; flex: none; }

/* ---------- профиль ---------- */
.profile-head { text-align: center; padding-top: 8px; }
.avatar {
  width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font-family: var(--serif); font-size: 44px; font-weight: 600; color: #2a1d16;
  background: linear-gradient(145deg, #f8c4a8, var(--accent-2));
  box-shadow: 0 14px 40px rgba(226, 130, 95, .35), 0 0 0 4px rgba(255, 255, 255, .06);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-head h1 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 32px; line-height: 1.1; }
.profile-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; min-height: 1em; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 26px 0 8px; }
.stats > div {
  padding: 16px 8px; border-radius: 20px; text-align: center;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
}
.stats b { display: block; font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; color: var(--accent); }
.stats span { display: block; margin-top: 6px; font-size: 11.5px; color: var(--muted); }
.sect { margin: 28px 0 4px; font-family: var(--serif); font-size: 24px; font-weight: 600; }
.sect[hidden] { display: none; }

.admin-link {
  width: 100%; margin-top: 28px; padding: 15px 18px; border-radius: 18px; display: flex; align-items: center; gap: 12px;
  font-size: 15px; font-weight: 500; text-align: left; color: var(--text);
  background: rgba(242, 169, 138, .09); border: 1px solid rgba(242, 169, 138, .28);
}
.admin-link svg { width: 24px; height: 24px; color: var(--accent); }
.admin-link[hidden] { display: none; }

/* ---------- кнопки и поля ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: 16px; font-size: 15px; font-weight: 600;
  transition: transform .15s, opacity .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; }
.btn svg { width: 20px; height: 20px; }
.btn.primary { color: #2a1d16; background: linear-gradient(145deg, #f8c4a8, var(--accent-2)); box-shadow: 0 8px 24px rgba(226, 130, 95, .3); }
.btn.ghost { background: rgba(255, 255, 255, .07); }
.btn.danger { color: #ff9b8f; background: rgba(255, 110, 90, .1); }
.btn.wide { width: 100%; }
.btn[hidden] { display: none; }

.field { display: block; margin-bottom: 16px; }
.field > span { display: block; margin-bottom: 8px; font-size: 12.5px; color: var(--muted); }
.field small { opacity: .7; }
.field input:not([type=file]) {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none;
}
.field input:focus { border-color: rgba(242, 169, 138, .6); }
.field.file { position: relative; }
.field.file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.field.file em {
  display: block; padding: 14px 16px; border-radius: 14px; font-style: normal; font-size: 14px; color: var(--muted);
  border: 1px dashed rgba(255, 255, 255, .2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.themes { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 6px; }
.themes::-webkit-scrollbar { display: none; }
.theme { flex: none; width: 66px; text-align: center; font-size: 11px; color: var(--muted); }
.theme img { display: block; width: 66px; height: 66px; margin-bottom: 6px; border-radius: 16px; border: 2px solid transparent; }
.theme.on { color: var(--accent); }
.theme.on img { border-color: var(--accent); }

.switch { position: relative; display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; font-size: 14px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 14px; background: rgba(255, 255, 255, .14); transition: background .25s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked + i { background: var(--accent-2); }
.switch input:checked + i::after { transform: translateX(18px); }

.progress { height: 6px; border-radius: 3px; margin-bottom: 14px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.progress[hidden] { display: none; }
.progress i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.form-error { margin: 0 0 14px; padding: 11px 14px; border-radius: 12px; font-size: 13px; color: #ffb0a6; background: rgba(255, 110, 90, .1); }
.form-error[hidden] { display: none; }
.form-actions { display: flex; gap: 10px; align-items: center; }
.form-actions .grow { flex: 1; }
.form-actions .btn { padding: 0 18px; }

/* ---------- админка ---------- */
.admin {
  position: fixed; inset: 0; z-index: 12; display: flex; flex-direction: column; background: var(--bg);
  transform: translateX(100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s;
}
.admin.open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.adm-head { display: flex; align-items: center; gap: 6px; padding: calc(14px + env(safe-area-inset-top, 0px)) 16px 10px 8px; border-bottom: 1px solid var(--line); }
.adm-head h2 { margin: 0; font-family: var(--serif); font-size: 26px; font-weight: 600; }
.adm-scroll { flex: 1; overflow-y: auto; padding: 8px 20px calc(40px + var(--safe-b)); max-width: 640px; width: 100%; margin: 0 auto; }
.adm-stats { grid-template-columns: repeat(4, 1fr); margin: 18px 0 16px; }
.adm-stats > div { padding: 12px 4px; border-radius: 16px; }
.adm-stats b { font-size: 24px; }
.adm-stats span { font-size: 10px; }
.adm-list { list-style: none; margin: 14px 0 0; padding: 0; }
.adm-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.adm-row.off .cover, .adm-row.off .adm-info { opacity: .45; }
.adm-row .cover { width: 52px; height: 52px; border-radius: 13px; }
.adm-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.adm-info b { font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-info span { font-size: 12px; color: var(--muted); }
.adm-meta { opacity: .8; }
.adm-actions { display: flex; gap: 2px; }
.adm-actions button { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; color: var(--muted); }
.adm-actions button svg { width: 20px; height: 20px; }
.adm-actions button.on { color: var(--accent); }
.adm-actions button:disabled { opacity: .25; }
.adm-actions .flip svg { transform: rotate(180deg); }

/* ---------- форма (нижняя шторка) ---------- */
.sheet { position: fixed; inset: 0; z-index: 14; visibility: hidden; transition: visibility 0s .4s; }
.sheet.open { visibility: visible; transition: none; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); opacity: 0; transition: opacity .35s; }
.sheet.open .sheet-bg { opacity: 1; }
.sheet-body {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; max-height: 92vh; overflow-y: auto;
  padding: 24px 20px calc(24px + var(--safe-b)); border-radius: 28px 28px 0 0;
  background: #1b1511; border-top: 1px solid rgba(255, 255, 255, .1);
  transform: translateY(100%); transition: transform .4s var(--ease);
}
.sheet.open .sheet-body { transform: none; }
.sheet-body h3 { margin: 0 0 20px; font-family: var(--serif); font-size: 28px; font-weight: 600; }

@media (min-width: 700px) {
  .tabbar { border-radius: 22px 22px 0 0; border: 1px solid var(--line); border-bottom: 0; }
}

.head + .list { margin-top: 20px; }

/* ---------- поиск ---------- */
.search { position: relative; margin-top: 20px; }
.search-ico { position: absolute; left: 16px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.search input {
  width: 100%; height: 48px; padding: 0 44px 0 46px; border-radius: 16px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .2s, background .2s;
}
.search input::placeholder { color: var(--muted); }
.search input::-webkit-search-cancel-button { display: none; }
.search input:focus { border-color: rgba(242, 169, 138, .55); background: rgba(255, 255, 255, .08); }
.search button { position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px; display: none; place-items: center; color: var(--muted); }
.search button svg { width: 18px; height: 18px; }
.search.has-text button { display: grid; }
.search + .chips { margin-top: 14px; }

/* ---------- админка: вкладки, категории ---------- */
.seg { display: flex; gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.seg button { flex: 1; height: 38px; border-radius: 12px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: background .2s, color .2s; }
.seg button.on { background: #f7e7dc; color: #2a1d16; }
.cat-add { display: flex; gap: 10px; }
.cat-add input, .cat-edit, .field select {
  width: 100%; height: 48px; padding: 0 16px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none;
}
.cat-add input:focus, .cat-edit:focus, .field select:focus { border-color: rgba(242, 169, 138, .6); }
.cat-add .btn { flex: none; padding: 0 18px; }
.cat-row { cursor: default; }
.cat-row .adm-info b { font-size: 16px; }
.cat-edit { height: 40px; border-radius: 12px; }
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { background: #1b1511; color: var(--text); }
.field select + input { margin-top: 10px; }
.field input[hidden] { display: none; }
.field input:disabled { opacity: .5; }
.field.file:has(input:disabled) { opacity: .5; }

[hidden] { display: none !important; }

/* ---------- отдельная страница /admin ---------- */
.admin.standalone { position: relative; inset: auto; z-index: 1; min-height: 100vh; transform: none; visibility: visible; transition: none; background: transparent; }
.admin.standalone .adm-head { padding: calc(18px + env(safe-area-inset-top, 0px)) 20px 14px; max-width: 760px; width: 100%; margin: 0 auto; border-bottom: 1px solid var(--line); }
.admin.standalone .adm-head h2 { font-size: 30px; }
.admin.standalone .adm-scroll { overflow: visible; max-width: 760px; padding-top: 6px; }
.adm-head .grow { flex: 1; }
.adm-site { font-size: 13px; color: var(--muted); text-decoration: none; padding: 8px 4px; }
.adm-site:hover { color: var(--accent); }
.btn.small { height: 36px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.admin-page .admin.standalone .adm-row:hover { background: rgba(255, 255, 255, .025); }

.login { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.login-card {
  width: 100%; max-width: 380px; padding: 32px 26px; border-radius: 28px; text-align: center;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
}
.login-ico { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #2a1d16; background: linear-gradient(145deg, #f8c4a8, var(--accent-2)); }
.login-ico svg { width: 28px; height: 28px; }
.login-card h1 { margin: 0 0 8px; font-family: var(--serif); font-size: 32px; font-weight: 600; }
.login-card p { margin: 0 0 20px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.login-card input {
  width: 100%; height: 50px; margin-bottom: 14px; padding: 0 16px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none; text-align: center;
}
.login-card input:focus { border-color: rgba(242, 169, 138, .6); }
.login-card .form-error { text-align: left; margin-bottom: 14px; }
@media (min-width: 700px) {
  .admin.standalone .adm-stats > div { padding: 18px 8px; }
  .admin.standalone .adm-stats b { font-size: 30px; }
  .admin.standalone .adm-stats span { font-size: 12px; }
}

/* ---------- плеер: версии и текст ---------- */
.versions { display: flex; gap: 4px; width: 100%; padding: 4px; margin: -4px 0 8px; border-radius: 16px; background: rgba(255, 255, 255, .07); }
.versions[hidden] { display: none; }
.versions button { flex: 1; height: 42px; border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.versions button small { font-size: 12px; font-weight: 500; opacity: .8; margin-left: 4px; }
.versions button.on { background: #f7e7dc; color: #2a1d16; }

.textbox { width: 100%; margin-top: 22px; }
.text-toggle {
  width: 100%; height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 16px; font-size: 14px; font-weight: 500; background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.text-toggle svg { width: 18px; height: 18px; transition: transform .3s var(--ease); }
.text-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.text-body {
  margin-top: 12px; padding: 18px 18px 14px; border-radius: 20px; text-align: left;
  font-size: 15px; line-height: 1.65; color: #e9dfd5;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
  animation: rise .4s var(--ease);
}
.text-body h4 { margin: 20px 0 6px; font-family: var(--serif); font-size: 20px; line-height: 1.2; font-weight: 600; color: var(--accent); }
.text-body h4:first-child { margin-top: 0; }
.text-body p { margin: 0 0 8px; }
.text-body .text-end { margin-top: 18px; font-family: var(--serif); font-size: 18px; text-align: center; color: var(--muted); }

/* ---------- админка: текстовое поле, ссылка-кнопка ---------- */
.field textarea {
  width: 100%; min-height: 140px; padding: 14px 16px; border-radius: 14px; font: inherit; font-size: 15px; line-height: 1.5; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none; resize: vertical;
}
.field textarea:focus { border-color: rgba(242, 169, 138, .6); }
.field textarea:disabled { opacity: .5; }
.link-btn { margin: -6px 0 16px; padding: 4px 0; font-size: 13px; color: #ff9b8f; text-decoration: underline; text-underline-offset: 3px; }
.link-btn[hidden] { display: none; }

/* длинные названия переносятся на вторую строку, а не обрезаются */
.row .t { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.12; }
.text-toggle { scroll-margin-top: 72px; }

/* ---------- закрытые практики (нужна подписка) ---------- */
.row.locked .cover { filter: saturate(.55) brightness(.6); }
.row.locked .t { color: var(--muted); }
.row .lock { flex: none; width: 40px; height: 40px; margin-right: -8px; display: grid; place-items: center; color: var(--muted); opacity: .9; }
.row .lock svg { width: 22px; height: 22px; }

.dl-mark { display: inline-block; width: 14px; height: 14px; margin: -2px 0 0 2px; vertical-align: middle; color: var(--accent); }

/* ---------- плашка «нет сети» ---------- */
.offline-bar {
  margin: -12px -20px 14px; padding: 10px 20px; font-size: 13px; text-align: center; color: #2a1d16;
  background: linear-gradient(90deg, #f8c4a8, #e2825f);
}

/* ---------- кнопка «Скачать» в плеере ---------- */
.dl-btn {
  position: relative; overflow: hidden; width: 100%; height: 48px; margin-top: 14px; padding: 0 16px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 16px; font-size: 14px; font-weight: 500; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
}
.dl-btn svg { position: relative; flex: none; width: 20px; height: 20px; }
.dl-btn span:not(.dl-fill) { position: relative; }
.dl-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(242, 169, 138, .28); transition: width .25s linear; }
.dl-btn.done { color: var(--accent); border-color: rgba(242, 169, 138, .4); }
.dl-btn.busy { pointer-events: none; }
.dl-btn[hidden] { display: none; }

/* ---------- профиль: карточки подписки и скачанного ---------- */
.card {
  display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 16px 18px; border-radius: 20px;
  background: rgba(255, 255, 255, .045); border: 1px solid var(--line);
}
.card-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.card-main b { font-family: var(--serif); font-size: 21px; font-weight: 600; line-height: 1.1; }
.card-main span { font-size: 12.5px; color: var(--muted); }
.card .btn { flex: none; }
.card[hidden] { display: none; }
#subCard { border-color: rgba(242, 169, 138, .3); background: rgba(242, 169, 138, .07); }

/* ---------- экран подписки ---------- */
.paywall { position: fixed; inset: 0; z-index: 16; visibility: hidden; transition: visibility 0s .4s; }
.paywall.open { visibility: visible; transition: none; }
.paywall-bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .65); opacity: 0; transition: opacity .35s; }
.paywall.open .paywall-bg { opacity: 1; }
.paywall-body {
  position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; text-align: center;
  padding: 30px 24px calc(24px + var(--safe-b)); border-radius: 30px 30px 0 0;
  background: radial-gradient(90% 60% at 50% 0%, rgba(242, 169, 138, .18), transparent 70%), #1b1511;
  border-top: 1px solid rgba(255, 255, 255, .1);
  transform: translateY(100%); transition: transform .45s var(--ease);
}
.paywall.open .paywall-body { transform: none; }
.paywall-ico { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; color: #2a1d16; background: linear-gradient(145deg, #f8c4a8, var(--accent-2)); box-shadow: 0 12px 34px rgba(226, 130, 95, .4); }
.paywall-ico svg { width: 30px; height: 30px; }
.paywall-body h3 { margin: 0 0 10px; font-family: var(--serif); font-size: 30px; font-weight: 600; line-height: 1.1; }
.paywall-body p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.paywall-body .pw-price { font-family: var(--serif); font-size: 26px; font-weight: 600; color: var(--accent); margin-bottom: 18px; }
.paywall-body .btn { margin-bottom: 6px; }
.pw-refresh, .pw-close { display: block; width: 100%; margin: 6px 0 0; padding: 10px 0; text-align: center; font-size: 13.5px; color: var(--muted); text-decoration: none; }
.pw-refresh { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.paywall .btn:disabled { opacity: .5; }

/* ---------- админка: оплаты, настройки, обложки пачкой ---------- */
.seg { overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { flex: 1 0 auto; padding: 0 14px; white-space: nowrap; }

.hint { margin: 10px 2px 4px; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.hint b { color: var(--text); font-weight: 600; }
.adm-sect { margin: 26px 0 4px; font-family: var(--serif); font-size: 22px; font-weight: 600; }
.ok { color: #9fd7a8; }
.bad { color: #ff9b8f; }

.sub-cards { display: grid; gap: 12px; margin-bottom: 6px; }
@media (min-width: 640px) { .sub-cards { grid-template-columns: 1fr 1fr; } }
.sub-card { padding: 16px 18px; border-radius: 20px; background: rgba(255, 255, 255, .045); border: 1px solid var(--line); }
.sub-card h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.sub-card dl { margin: 0; display: grid; gap: 6px; }
.sub-card dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.sub-card dt { color: var(--muted); }
.sub-card dd { margin: 0; font-weight: 600; text-align: right; }

.grant { display: flex; gap: 10px; margin-top: 10px; }
.grant input {
  height: 48px; padding: 0 14px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none; min-width: 0;
}
.grant input:focus { border-color: rgba(242, 169, 138, .6); }
.grant input:first-child { flex: 1; }
.grant input:nth-child(2) { width: 76px; text-align: center; }
.grant .btn { flex: none; padding: 0 18px; }

.settings .field textarea { min-height: 90px; }
.settings .field input:not([type=file]) { width: 100%; }
.hook-box { margin: 6px 0 16px; padding: 14px 16px; border-radius: 16px; font-size: 13px; line-height: 1.6; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px dashed rgba(255, 255, 255, .18); }
.hook-box code { display: block; margin: 6px 0; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; color: var(--text); background: rgba(0, 0, 0, .3); word-break: break-all; user-select: all; }

.covers-result { margin-top: 10px; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.covers-result[hidden] { display: none; }

/* ---------- тарифы на экране подписки ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 16px; }
.plans[hidden] { display: none; }
.plan {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 14px 6px 12px; border-radius: 18px; text-align: center;
  background: rgba(255, 255, 255, .05); border: 1.5px solid var(--line); color: var(--text); transition: border-color .2s, background .2s;
}
.plan b { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.plan span { font-family: var(--serif); font-size: 24px; font-weight: 600; line-height: 1.1; }
.plan small { font-size: 11px; color: var(--muted); }
.plan.on { border-color: var(--accent); background: rgba(242, 169, 138, .1); }
.plan.on b { color: var(--accent); }

/* ---------- админка: цены ЮKassa ---------- */
.mode-switch { display: flex; gap: 8px; margin: 10px 0 14px; }
.mode-switch label { flex: 1; display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px; font-size: 13.5px; background: rgba(255, 255, 255, .05); border: 1.5px solid var(--line); cursor: pointer; }
.mode-switch input { accent-color: #e2825f; }
.mode-switch label.on { border-color: var(--accent); background: rgba(242, 169, 138, .09); }
.price-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: 14px; }
.price-row span { flex: 1; color: var(--muted); }
.price-row input { width: 110px; height: 44px; padding: 0 12px; border-radius: 12px; font: inherit; font-size: 16px; text-align: right; color: var(--text); background: rgba(255, 255, 255, .06); border: 1px solid var(--line); outline: none; }
.price-row input:disabled { opacity: .45; }
.warn { margin: 10px 0 14px; padding: 12px 14px; border-radius: 14px; font-size: 13px; line-height: 1.5; color: #ffd8a8; background: rgba(255, 170, 70, .1); border: 1px solid rgba(255, 170, 70, .3); }
.warn[hidden] { display: none; }
