/* ============================================================
   ALTER — экраны разделов (Монтаж, Клипы, Уникализатор, Карусели):
   живые превью, сетка карточек-переключателей, выбор стиля, главная кнопка.
   Цвета и формы — из app.css (брендбук ALTER).
   ============================================================ */

.pv-wrap { display: flex; flex-direction: column; align-items: center; margin-top: 4px; }
.pv-montage { position: relative; width: 62%; aspect-ratio: 9 / 16; border-radius: 24px; overflow: hidden; background: var(--graphite-2);
  border: 1px solid var(--line); transition: width .4s var(--ease); }
.pv-cam, .pv-frame, .pv-vframe { position: absolute; inset: 0; overflow: hidden; }
.pv-img { width: 100%; height: 100%; object-fit: cover; display: block; transform-origin: 50% 38%;
  transition: transform .45s var(--ease), filter .5s var(--ease); }
.pv-blank { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--stone); }
.pv-blank svg { width: 28px; height: 28px; }
.pv-cam.mv .pv-img, .pv-img.mv { animation: pv-drift 9s ease-in-out infinite alternate; }
.pv-cam.punch .pv-img { animation: none; transform: scale(1.16); }
@keyframes pv-drift { from { transform: scale(1); } to { transform: scale(1.08) translateY(-4px); } }
.pv-montage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(14,14,13,.35) 0%, rgba(14,14,13,0) 22%, rgba(14,14,13,0) 55%, rgba(14,14,13,.6) 100%); }
.pv-tc { position: absolute; z-index: 2; left: 10px; top: 10px; display: flex; align-items: center; gap: 5px; padding: 4px 8px;
  border-radius: 999px; background: rgba(14,14,13,.6); font-size: 10px; font-weight: 700; font-variant-numeric: tabular-nums; }
.pv-rec { width: 6px; height: 6px; border-radius: 50%; background: #E0714F; animation: pv-blink 1.2s infinite; }
@keyframes pv-blink { 50% { opacity: .2; } }
.pv-tag { position: absolute; z-index: 2; right: 10px; top: 10px; display: flex; align-items: center; gap: 4px; padding: 4px 9px;
  border-radius: 999px; background: rgba(14,14,13,.6); border: 1px solid var(--line-strong); font-size: 10px; font-weight: 700; }
.pv-tag svg { width: 10px; height: 10px; }
.pv-subs { position: absolute; z-index: 2; left: 0; right: 0; bottom: 56px; text-align: center; padding: 0 10px; line-height: 1.12; }
.pv-w { display: inline-block; margin: 0 3px; }
.pv-w.cur { animation: pv-pop .32s cubic-bezier(.2,.9,.3,1.3); }
@keyframes pv-pop { 0% { transform: scale(.8); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.pv-badge { position: absolute; z-index: 2; left: 10px; top: 64px; padding: 8px 10px; border-radius: 12px; background: var(--ivory);
  color: var(--deep-graphite); font-size: 11px; font-weight: 800; line-height: 1.3; transform: translateX(-130%);
  transition: transform .5s cubic-bezier(.2,.9,.2,1.1); }
.pv-badge.in { transform: none; }
.pv-badge i { display: block; font-style: normal; font-weight: 600; opacity: .6; }
.pv-ring { position: absolute; z-index: 2; right: 16px; top: 46px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--bronze-warm); opacity: 0; }
.pv-ring.go { animation: pv-ring .7s ease-out; }
@keyframes pv-ring { from { opacity: .9; transform: scale(.4); } to { opacity: 0; transform: scale(1.8); } }
.pv-bar { position: absolute; z-index: 2; left: 10px; right: 10px; bottom: 12px; display: flex; align-items: center; gap: 8px; }
.pv-wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.pv-wave span { width: 3px; border-radius: 2px; background: #6B655C; animation: pv-wv .9s ease-in-out infinite; }
.pv-wave.clean span { background: var(--bronze-warm); animation-duration: 1.2s; }
@keyframes pv-wv { 0%, 100% { height: 4px; } 50% { height: var(--h); } }
.pv-prog { flex: 1; height: 3px; border-radius: 2px; background: rgba(233,226,215,.18); overflow: hidden; }
.pv-prog i { display: block; height: 100%; width: 0; background: var(--ivory); animation: pv-pr 12s linear infinite; }
@keyframes pv-pr { to { width: 100%; } }
.pv-strip { display: flex; align-items: center; gap: 3px; width: 100%; max-width: 300px; height: 20px; margin-top: 12px; }
.pv-seg { height: 100%; border-radius: 4px; background: var(--graphite-3); }
.pv-seg:nth-of-type(even) { background: #CDBFA9; }
.pv-gap { flex: 0 0 14px; height: 2px; background: repeating-linear-gradient(90deg, #B3A68F 0 3px, transparent 3px 6px);
  transition: flex-basis .6s var(--ease), opacity .4s; }
.pv-wrap.tight .pv-gap { flex-basis: 0; opacity: 0; }
.pv-strip-note { display: flex; justify-content: space-between; width: 100%; max-width: 300px; margin-top: 4px; font-size: 11px; color: var(--stone); }
.pv-strip-note b { color: var(--bronze-warm); font-weight: 700; }

.pv-box { position: relative; padding: 14px; border-radius: 24px; background: var(--graphite); border: 1px solid var(--line); overflow: hidden; }
.pv-meta { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--stone); font-variant-numeric: tabular-nums; }
.pv-meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pv-meta b { color: var(--bronze-warm); flex: none; }
.pv-long { position: relative; display: flex; align-items: center; gap: 2px; height: 46px; }
.pv-long span { flex: 1; border-radius: 2px; background: #3A362F; transition: background .4s; }
.pv-long span.hit { background: var(--bronze-warm); }
.pv-head { position: absolute; top: -4px; bottom: -4px; left: 0; width: 2px; border-radius: 2px; background: var(--ivory); }
.pv-clips { display: flex; align-items: flex-end; gap: 8px; min-height: 110px; margin-top: 12px; overflow: hidden; }
.pv-clip { position: relative; flex: none; border-radius: 12px; overflow: hidden; background: var(--graphite-3); opacity: 0;
  transform: translateY(12px) scale(.96); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.pv-clip.in { opacity: 1; transform: none; }
.pv-score { position: absolute; right: 5px; top: 5px; padding: 2px 6px; border-radius: 999px; background: var(--bronze-warm); color: var(--on-accent); font-size: 10px; font-weight: 800; }
.pv-dur { position: absolute; left: 5px; bottom: 5px; padding: 1px 5px; border-radius: 6px; background: rgba(14,14,13,.7); font-size: 10px; font-weight: 700; }

.pv-fan { position: relative; height: 250px; display: flex; align-items: center; justify-content: center; }
.pv-vc { position: absolute; width: 118px; height: 210px; border-radius: 16px; overflow: hidden; background: var(--graphite-3);
  border: 1px solid var(--line-strong); transition: transform .7s var(--ease), opacity .7s var(--ease); }
.pv-vcap { position: absolute; left: 0; right: 0; bottom: 26px; text-align: center; font-size: 12px; font-weight: 900; text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.pv-vn { position: absolute; left: 7px; top: 7px; padding: 3px 6px; border-radius: 999px; background: rgba(14,14,13,.65); font-size: 9px; font-weight: 800; letter-spacing: .1em; }

.pv-car { padding: 14px 0; }
.pv-viewport { overflow: hidden; }
.pv-track { display: flex; gap: 10px; padding-left: calc(50% - 85px); transition: transform .6s var(--ease); }
.pv-slide { flex: none; width: 170px; box-sizing: border-box; padding: 14px; border-radius: 16px; display: flex; flex-direction: column;
  justify-content: space-between; opacity: .45; transform: scale(.92); transition: opacity .6s, transform .6s, height .4s, background .4s, color .4s; }
.pv-slide.on { opacity: 1; transform: none; }
.pv-sno { font-size: 10px; font-weight: 800; letter-spacing: .14em; opacity: .6; }
.pv-shl { font-size: 16px; font-weight: 800; line-height: 1.12; letter-spacing: -.02em; }
.pv-sac { width: 26px; height: 4px; border-radius: 2px; margin-bottom: 8px; }
.pv-sln { height: 5px; border-radius: 3px; margin-top: 6px; opacity: .35; }
.pv-dots { display: flex; justify-content: center; gap: 5px; margin-top: 10px; }
.pv-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--graphite-3); transition: all .3s; }
.pv-dots i.on { width: 20px; background: var(--bronze-warm); }

.og-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.og-grid.mini { grid-template-columns: repeat(3, 1fr); gap: 6px; }
.og-card { display: flex; flex-direction: column; justify-content: space-between; gap: 8px; min-height: 108px; padding: 12px; border-radius: var(--radius-lg);
  background: var(--graphite); border: 1px solid var(--line); cursor: pointer; user-select: none;
  transition: border-color .25s var(--ease), background .25s var(--ease), transform .12s; opacity: 0; animation: og-in .45s var(--ease) forwards; }
.og-grid.mini .og-card { min-height: 76px; padding: 10px; border-radius: 14px; }
.og-card:active { transform: scale(.97); }
.og-card.on { border-color: rgba(140,98,54,.5); background: linear-gradient(0deg, var(--bronze-dim), var(--bronze-dim)), var(--graphite); }
@keyframes og-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.og-top, .og-bottom { display: flex; align-items: center; justify-content: space-between; }
.og-ic { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--graphite-2); color: var(--stone); transition: all .25s; }
.og-grid.mini .og-ic { width: 26px; height: 26px; border-radius: 9px; }
.og-ic svg { width: 16px; height: 16px; }
.og-card.on .og-ic { background: var(--bronze-warm); color: var(--on-accent); }
.og-title { font-size: 13px; font-weight: 700; line-height: 1.25; }
.og-grid.mini .og-title { font-size: 12px; }
.og-state { font-size: 11px; color: var(--stone); }
.og-sw { position: relative; width: 36px; height: 21px; border-radius: 99px; background: var(--graphite-3); transition: background .25s; }
.og-sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 15px; height: 15px; border-radius: 50%; background: #7A746A;
  transition: all .3s cubic-bezier(.3,1.4,.5,1); }
.og-card.on .og-sw { background: var(--bronze); }
.og-card.on .og-sw::after { left: 18px; background: #FFFFFF; }
.og-q { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); background: transparent; color: var(--stone);
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0; }
.og-help { margin-top: 10px; padding: 10px 12px; border-radius: 14px; background: var(--graphite); border: 1px solid var(--line);
  font-size: 12px; line-height: 1.5; color: var(--stone); transition: opacity .2s; }
.og-help b { color: var(--ivory); }

.style-sel { display: flex; align-items: center; justify-content: space-between; margin: 14px auto 0; max-width: 300px; padding: 6px;
  border-radius: 999px; background: var(--graphite); border: 1px solid var(--line); }
.style-sel button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--graphite-2); color: var(--ivory);
  display: flex; align-items: center; justify-content: center; padding: 0; transition: transform .15s; }
.style-sel button:active { transform: scale(.9); }
.style-sel button svg { width: 18px; height: 18px; }
.style-sel .nm { text-align: center; min-width: 0; }
.style-sel .nm b { display: block; font-size: 16px; }
.style-sel .nm small { display: block; font-size: 11px; color: var(--stone); font-weight: 600; }
.style-dots { display: flex; justify-content: center; gap: 5px; margin: 10px 0 2px; }
.style-dots i { width: 6px; height: 6px; border-radius: 99px; background: var(--graphite-3); transition: all .3s; }
.style-dots i.on { width: 22px; background: var(--bronze-warm); }
.chip-row { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.chip-row::-webkit-scrollbar { display: none; }
.chip-row .chip { flex: none; display: inline-flex; align-items: center; gap: 7px; }
.chip-dot { width: 9px; height: 9px; border-radius: 50%; }

.level-bar { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 16px;
  background: var(--graphite); border: 1px solid var(--line); }
.level-bar button { position: relative; z-index: 1; padding: 10px 0; border: 0; border-radius: 12px; background: transparent; color: var(--ivory);
  font-size: 12px; font-weight: 700; transition: color .25s; }
.level-bar button[aria-pressed="true"] { color: var(--on-accent); }
.level-knob { position: absolute; top: 4px; bottom: 4px; border-radius: 12px; background: var(--bronze-warm);
  transition: left .35s var(--ease), width .35s var(--ease); }

.cta-main { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 12px 14px 12px 18px;
  border: 0; border-radius: 20px; background: var(--bronze-warm); color: var(--on-accent); text-align: left; transition: transform .12s, opacity .2s; }
.cta-main:active { transform: scale(.98); }
.cta-main b { display: block; font-size: 15px; font-weight: 800; }
.cta-main small { display: block; margin-top: 1px; font-size: 11px; font-weight: 700; opacity: .65; }
.cta-arr { flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--on-accent); color: var(--bronze-warm);
  display: flex; align-items: center; justify-content: center; }
.cta-arr svg { width: 18px; height: 18px; animation: cta-nudge 1.6s ease-in-out infinite; }
@keyframes cta-nudge { 50% { transform: translateX(3px); } }
.cta-main.loading { opacity: .7; pointer-events: none; }
.cta-main:disabled { opacity: .5; }

@media (prefers-reduced-motion: reduce) {
  .pv-img, .pv-cam.mv .pv-img, .pv-wave span, .pv-prog i, .pv-rec, .og-card, .cta-arr svg { animation: none !important; }
  .og-card { opacity: 1; }
}

/* «Ещё шрифты» в ряду чипов — компактная кнопка-чип */
.chip-row .font-pick { flex: none; width: auto; margin-top: 0; padding: 8px 13px; border-radius: 999px; gap: 6px; grid-template-columns: auto auto; }
.chip-row .font-pick .font-pick-name { display: none; }
.chip-row .font-pick .small { font-size: 13px; font-weight: 700; color: var(--ivory); }

/* Карусель: слайды тёмных шаблонов отделены от фона; пять стилей в один ряд */
.pv-slide { border: 1px solid var(--line-strong); }
.swatches { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.swatch-art { padding: 7px; }
.swatch-name { padding: 6px 4px; font-size: 10px; text-align: center; }

/* «Смотреть»: пример монтажа на живом видео */
button.pv-tag { cursor: pointer; color: var(--ivory); font: inherit; font-size: 11px; font-weight: 700; padding: 6px 11px; gap: 5px;
  background: rgba(14,14,13,.72); border-color: rgba(195,154,107,.6); transition: transform .15s, background .2s; }
button.pv-tag:active { transform: scale(.94); }
.pv-tag-ic { display: inline-flex; color: var(--bronze-warm); }
.pv-tag-ic svg { width: 11px; height: 11px; }
.pv-montage.live button.pv-tag { background: var(--bronze-warm); color: var(--on-accent); border-color: var(--bronze-warm); }
.pv-montage.live .pv-tag-ic { color: var(--on-accent); }
.pv-cam { cursor: pointer; }
video.pv-img { background: #000; }
.pv-montage:not(.live) button.pv-tag { animation: pv-tag-pulse 2.4s ease-in-out infinite; }
@keyframes pv-tag-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(195,154,107,.0); } 50% { box-shadow: 0 0 0 5px rgba(195,154,107,.18); } }
.pv-hint { max-width: 300px; margin-top: 10px; font-size: 12px; line-height: 1.45; color: var(--stone); text-align: center; }

/* Субтитры в превью можно перетащить */
.pv-subs { cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; border-radius: 10px;
  outline: 1px dashed rgba(233,226,215,.28); outline-offset: 3px; transition: outline-color .2s; }
.pv-subs.placed { transform: translateY(-50%); }
.pv-subs.drag { cursor: grabbing; outline: 1.5px dashed var(--bronze-warm); background: rgba(14,14,13,.25); }
.pv-montage.live .pv-subs:not(.drag) { outline-color: transparent; }
/* Качество: недоступные варианты (выше исходника) */
.quality-seg button:disabled { opacity: .35; cursor: not-allowed; }

/* ИИ-агенты */
.agents-card { margin-top: 12px; padding: 14px 16px; border-radius: var(--radius-lg); background: var(--graphite);
  border: 1px solid rgba(140,98,54,.3); }
.agents-top { display: flex; align-items: center; gap: 12px; }
.agents-top .fine-sub { white-space: normal; }
.agents-roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.agents-role { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; color: var(--bronze-warm);
  background: var(--bronze-dim); border: 1px solid rgba(140,98,54,.28); }
.agents-report { padding: 14px 16px; border-radius: var(--radius-lg); background: var(--graphite); border: 1px solid rgba(140,98,54,.3); }
.agents-report-title { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 8px; }
.agents-report-title svg { width: 16px; height: 16px; color: var(--bronze-warm); }
.agents-note { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.45; }
.agents-note:first-of-type { border-top: 0; }
.agents-note b { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--bronze-warm); }
.agents-note span { color: var(--ivory); }

/* Монтаж по описанию (шторка) */
.prompt-input { width: 100%; min-height: 96px; resize: vertical; font-size: 15px; line-height: 1.45; }
.prompt-examples { display: flex; flex-wrap: wrap; gap: 6px; }
.prompt-example { padding: 6px 10px; border-radius: 999px; font-size: 12px; text-align: left; color: var(--bronze-warm);
  background: var(--bronze-dim); border: 1px solid rgba(140,98,54,.28); cursor: pointer; }

/* Цвета субтитров: 20 сочетаний */
.color-chip .chip-dot { margin-right: 2px; }
.color-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.color-card { display: flex; flex-direction: column; gap: 4px; padding: 8px; text-align: left; border-radius: 12px; cursor: pointer;
  background: var(--graphite); border: 1px solid var(--line); color: var(--ivory); }
.color-card.on { border-color: var(--bronze); box-shadow: 0 0 0 1px var(--bronze); }
.color-sample { display: block; padding: 9px 6px; border-radius: 8px; background: #151515; text-align: center;
  font-weight: 700; font-size: 14px; white-space: nowrap; }
.color-name { font-size: 12px; font-weight: 700; }
.color-hint { font-size: 11px; color: var(--stone); line-height: 1.3; }

/* Моушн-графика: ник */
.nick-row { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }

/* Объединение видео */
.merge-row { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; }
.merge-n { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line-strong);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; }
.merge-row.on .merge-n { background: var(--bronze); border-color: var(--bronze); color: var(--on-accent); }
.cta-main.disabled { opacity: .55; }

/* Стиль по моим роликам */
.learn-card { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg); margin-top: 12px;
  background: var(--graphite); border: 1px solid rgba(140,98,54,.35); }
.learn-ttl { font-weight: 800; font-size: 17px; }
.learn-sum { font-size: 14px; line-height: 1.5; color: var(--ivory); }
.learn-row { display: flex; flex-wrap: wrap; gap: 6px; }
.learn-sw { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border-radius: 999px; font-size: 12px;
  background: var(--graphite-2); border: 1px solid var(--line); }
.learn-sw i { width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line-strong); }
.learn-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.learn-facts div { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border-radius: 10px; background: var(--graphite-2); }
.learn-facts span { font-size: 11px; color: var(--stone); }
.learn-facts b { font-size: 13px; }
.learn-sub { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bronze-warm); margin: 4px 0; }
.learn-idea { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px; }
.learn-idea span { color: var(--ivory); opacity: .85; }
.learn-idea em { font-style: normal; font-size: 11px; color: var(--bronze-warm); }

/* ============================================================
   Главная (тема «Слоновая кость»): шапка, тёмная карточка нового проекта, инструменты
   ============================================================ */
.home-top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 0; }
.home-logo { display: flex; align-items: center; gap: 10px; }
.home-mark { width: 36px; height: 36px; border-radius: 11px; background: var(--ink); display: grid; place-items: center; }
.home-mark img { width: 22px; height: 22px; }
.home-word { font-size: 15px; font-weight: 800; letter-spacing: .24em; }
.home-round { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--line); background: var(--graphite);
  color: var(--ivory); display: grid; place-items: center; padding: 0; }
.home-round svg { width: 20px; height: 20px; }
.home-title { margin: 22px 0 0; font-size: 30px; line-height: 1.1; font-weight: 800; letter-spacing: -.025em; }

.home-hero { margin-top: 18px; padding: 18px 18px 16px; border-radius: 24px; background: #1B1915; }
.home-hero-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-hero-label { font-size: 13px; font-weight: 600; color: #B9AE9E; }
.home-hero .segmented { width: 150px; gap: 0; padding: 3px; border-radius: 12px; background: #2A2723; }
.home-hero .segmented button { min-height: 32px; border: 0; border-radius: 9px; background: transparent; color: #B9AE9E; font-size: 12px; font-weight: 700; }
.home-hero .segmented button[aria-pressed="true"] { background: #F4EFE7; color: #1B1915; }
.home-cta { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 54px; margin-top: 16px;
  border: 0; border-radius: 16px; background: var(--gold); color: #1B1915; font-size: 15px; font-weight: 800;
  transition: transform .12s var(--ease), opacity .2s; }
.home-cta:active { transform: scale(.985); }
.home-cta.loading { opacity: .6; pointer-events: none; }
.home-cta svg { width: 18px; height: 18px; }
.home-hint { margin-top: 10px; font-size: 12px; color: #B9AE9E; text-align: center; }
.home-url { margin-top: 16px; }
.home-consent { margin-top: 10px; color: #D9CDB9; }

.home-h2 { margin: 0 0 12px; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.home-tools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.home-tool { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 108px; padding: 14px;
  border-radius: 18px; border: 1px solid var(--line); background: var(--graphite); color: var(--ivory); text-align: left;
  transition: transform .12s var(--ease), border-color .2s; }
.home-tool:active { transform: scale(.98); border-color: var(--bronze); }
.home-tool-ic { width: 40px; height: 40px; margin-bottom: 6px; border-radius: 12px; background: #EFE6D8; color: var(--bronze-warm);
  display: grid; place-items: center; }
.home-tool-ic svg { width: 20px; height: 20px; }
.home-tool-t { font-size: 15px; font-weight: 700; }
.home-tool-s { font-size: 12px; line-height: 1.35; color: var(--stone); }

/* Добавленные к ролику видео (склеиваются по кнопке) */
.attach-note { margin-top: 12px; }
.attach-list { margin-top: 8px; }
.attach-list .merge-n { color: var(--bronze-warm); }
.attach-merge { margin-top: 10px; }
.edit-videos { margin: 0 0 18px; }
.edit-videos .linkrow { margin-top: 8px; }

/* Крупные заголовки — книжным шрифтом */
h1, .s-title, .home-title, .upload-card h2, .progress-title, .learn-ttl {
  font-family: var(--font-display); font-weight: 700; letter-spacing: 0;
}
.home-title { font-size: 31px; line-height: 1.12; }
.s-title { font-size: 29px; line-height: 1.12; }

/* ===================== Супер-монтаж ===================== */
.home-super { width: 100%; min-height: 0; flex-direction: row; align-items: center; gap: 14px; margin-bottom: 10px; text-align: left;
  border-color: var(--bronze); }
.home-super .home-tool-ic { margin-bottom: 0; flex: none; background: var(--bronze); color: var(--on-accent); }
.home-super-text { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.home-badge { display: inline-block; margin-left: 8px; padding: 2px 8px; border-radius: 99px; font-size: 11px; font-weight: 700;
  vertical-align: 2px; background: var(--bronze-dim); color: var(--bronze-warm); }
.super-thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.super-thumb { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius-sm); overflow: hidden; background: var(--graphite);
  border: 1px solid var(--line); }
.super-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.super-thumb-x { position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center; background: rgba(20, 16, 12, .62); color: #fff; }
.super-thumb-x svg { width: 14px; height: 14px; }
.super-thumb.add { border: 1.5px dashed var(--line-strong); background: transparent; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; color: var(--stone); font: 600 13px var(--font); }
.super-thumb.add svg { width: 22px; height: 22px; }

/* ===================== Место логотипа: экран телефона ===================== */
.logo-placer { display: flex; align-items: center; gap: 14px; }
.logo-preview.sm { width: 48px; height: 48px; }
.logo-phone { position: relative; flex: none; width: 112px; aspect-ratio: 9 / 16; border-radius: 18px; border: 2px solid var(--ivory);
  background: linear-gradient(180deg, #DCCFBC 0%, #CDBCA4 100%); overflow: hidden; }
.logo-phone-notch { position: absolute; top: 5px; left: 50%; width: 30px; height: 5px; margin-left: -15px; border-radius: 99px;
  background: var(--ivory); opacity: .55; }
.logo-phone-subs { position: absolute; left: 22%; right: 22%; top: 63%; height: 6px; border-radius: 99px; background: #fff; opacity: .7; }
.logo-spot { position: absolute; width: 24px; height: 24px; margin: -12px 0 0 -12px; padding: 0; border-radius: 7px;
  border: 1.5px dashed rgba(27, 25, 21, .45); background: rgba(255, 253, 249, .55); display: grid; place-items: center; }
.logo-spot.on { border: 2px solid var(--bronze); background: var(--graphite); box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.logo-spot.on:not(:has(img))::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--bronze); }
.logo-spot img { width: 18px; height: 18px; object-fit: contain; }
.logo-placer-text { min-width: 0; }
.logo-place-name { font-size: 16px; font-weight: 700; margin-top: 2px; }

/* ===================== «Мой стиль»: две карточки вверху, выключатели цветов ===================== */
.style-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 4px; }
.style-tile { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--radius); background: var(--graphite);
  border: 1px solid var(--line); min-width: 0; }
.style-tile-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: #EFE6D8; color: var(--bronze-warm); }
.style-tile-ic svg { width: 18px; height: 18px; }
.style-tile-t { font-size: 15px; font-weight: 700; line-height: 1.2; }
.style-tile-s { font-size: 12px; line-height: 1.35; color: var(--stone); flex: 1; }
.style-tile .btn { width: 100%; margin-top: 4px; }
.book-result { margin-top: 10px; }
.color-pick.off input { opacity: .25; }
.color-pick.off > .small { color: var(--stone); text-decoration: line-through; }
.color-pick .switch { transform: scale(.8); margin-top: 2px; }

.super-block { margin-top: 12px; }
.super-block .home-tool-ic { flex: none; margin: 0; background: var(--bronze); color: var(--on-accent); }
.super-thumb.video .super-thumb-dur { position: absolute; left: 4px; bottom: 4px; padding: 2px 6px; border-radius: 6px;
  background: rgba(20, 16, 12, .62); color: #fff; font: 600 11px var(--font); }
.super-thumb-ph { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--stone); }
.super-thumb-ph svg { width: 24px; height: 24px; }

/* ===================== «Что изменить» (админ) ===================== */
.tag.ok { background: color-mix(in srgb, #2f9e5b 16%, transparent); color: #2f8a52; }
.tag.warn { background: color-mix(in srgb, #d9930d 16%, transparent); color: #a86f05; }
.tag.bad { background: color-mix(in srgb, #d24b3e 16%, transparent); color: #b23a2e; }
.btn.recording { background: color-mix(in srgb, #d24b3e 14%, var(--ivory)); color: #b23a2e; border-color: #d24b3e; }
