:root {
  --bg: #ecefe9;
  --fg: #121614;
  --muted: #4c5450;
  --faint: #5f6863;
  --surface: #f5f7f3;
  --elevated: #ffffff;
  --accent: #1b6a62;
  --accent-fg: #f3faf8;
  --danger: #9a3f36;
  --ok: #2f6b4e;
  --border: rgba(18, 22, 20, 0.12);
  --shadow: 0 0 0 1px rgba(18, 22, 20, 0.08), 0 1px 2px rgba(18, 22, 20, 0.05), 0 12px 32px rgba(18, 22, 20, 0.06);
  --input: #ffffff;
  --pad: transparent;
  --nav-bg: rgba(236, 239, 233, 0.92);
  --sans: Figtree, "Noto Sans", "Noto Sans Armenian", system-ui, sans-serif;
  --display: Fraunces, "Noto Serif", "Noto Serif Armenian", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --r-sm: 6px;
  --r-md: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  color-scheme: light;
}
html[data-theme="dark"] {
  /* Stage 2 "22nd century": dark navy, soft turquoise. */
  --bg: #0b1424;
  --fg: #e6eef5;
  --muted: #bccad8;
  --faint: #b3c1d0;
  --surface: #111d31;
  --elevated: #16243b;
  --accent: #5fd4c4;
  --accent-fg: #06121d;
  --danger: #f0a196;
  --ok: #8fd1b0;
  --border: rgba(120, 200, 210, 0.16);
  --shadow: 0 0 0 1px rgba(120, 200, 210, 0.10), 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 32px rgba(0, 0, 0, 0.45);
  --input: #0f1a2c;
  --pad: #d5e1ea;
  --nav-bg: rgba(11, 20, 36, 0.9);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.5;
  font-size: 16px;
}
html[lang="hy"] body { font-family: "Noto Sans Armenian", Figtree, system-ui, sans-serif; }
h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  overflow-wrap: anywhere;
  max-width: 100%;
}
html[lang="hy"] h1, html[lang="hy"] h2, html[lang="hy"] h3 {
  font-family: "Noto Serif Armenian", Fraunces, Georgia, serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
button, input, select, textarea { font-family: inherit; color: inherit; font-size: 16px; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.top {
  position: sticky; top: 0; z-index: 30;
  background: var(--nav-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.top-inner { display: flex; align-items: center; gap: 10px; padding: 10px 0; flex-wrap: nowrap; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--fg); font-weight: 700; text-decoration: none; }
.brand:hover { text-decoration: none; }
.top .brand { flex: 0 0 auto; }
.brand-name { white-space: nowrap; }
.face { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #fbead4; }
picture { line-height: 0; }
.top-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: 0 0 auto; }
.nav { display: flex; gap: 14px; align-items: center; margin-left: 8px; }
.nav a { color: var(--muted); font-size: 15px; text-decoration: none; }
.nav a:hover { color: var(--fg); }
.langs { display: flex; gap: 4px; flex: 0 0 auto; }
.langs a {
  display: inline-flex; align-items: center; justify-content: center;
  height: 32px; padding: 0 8px; border: 1px solid var(--border); border-radius: 999px;
  color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
  text-decoration: none; white-space: nowrap; line-height: 1;
}
.langs a[lang="hy"] { font-family: "Noto Sans Armenian", sans-serif; font-weight: 600; letter-spacing: 0; font-size: 13px; }
.langs a.active { color: var(--accent-fg); background: var(--accent); border-color: var(--accent); }
.chip {
  background: var(--elevated);
  color: var(--fg);
  box-shadow: var(--shadow);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-decoration: none;
}
.theme-toggle, .menu-toggle {
  background: var(--elevated);
  color: var(--fg);
  border: 0;
  box-shadow: var(--shadow);
  border-radius: 999px;
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.menu-toggle { display: none; }
.theme-toggle .icon-sun { display: none; }
html[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
html[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: var(--accent-fg); border: 0; border-radius: var(--r);
  padding: 12px 18px; font-weight: 600; cursor: pointer; text-decoration: none;
  min-height: 44px; font-size: 15px;
}
.btn:hover { text-decoration: none; filter: brightness(1.05); }
.btn.secondary { background: var(--surface); color: var(--fg); box-shadow: var(--shadow); }
.btn.danger { background: transparent; color: var(--danger); box-shadow: none; border: 1px solid var(--danger); }
.btn.small { padding: 8px 12px; font-size: 14px; min-height: 44px; }
.btn.wide, .price-dock .btn { width: 100%; }
.alpine-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.85fr);
  gap: 28px;
  align-items: center;
  padding: 36px 0 12px;
  background:
    radial-gradient(70% 55% at 88% 8%, rgba(27, 106, 98, 0.18), transparent 58%),
    radial-gradient(45% 40% at 8% 92%, rgba(27, 106, 98, 0.09), transparent 52%);
}
html[data-theme="dark"] .alpine-hero {
  background:
    radial-gradient(70% 55% at 88% 8%, rgba(126, 201, 191, 0.16), transparent 58%),
    radial-gradient(45% 40% at 8% 92%, rgba(126, 201, 191, 0.08), transparent 52%);
}
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; font-weight: 600; }
h1 { font-size: clamp(34px, 5vw, 56px); margin: 10px 0; }
h2 { font-size: 30px; margin: 0 0 14px; }
.lead { color: var(--muted); font-size: 18px; line-height: 1.5; margin: 0; overflow-wrap: anywhere; max-width: 100%; }
.composer { background: var(--elevated); box-shadow: var(--shadow); border-radius: var(--r-lg); padding: 14px; margin-top: 20px; min-width: 0; max-width: 100%; }
.seg { display: flex; gap: 8px; overflow: auto; margin-bottom: 10px; width: 100%; max-width: 100%; min-width: 0; }
.seg button {
  border: 0; background: var(--surface); color: var(--fg);
  border-radius: 999px; padding: 8px 14px; min-height: 44px; cursor: pointer; white-space: nowrap;
}
.seg button.on { background: var(--fg); color: var(--bg); }
.composer textarea { min-height: 72px; }
.composer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
.hint, .muted { color: var(--muted); }
.hint { font-size: 13px; margin: 0; }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.mascot-hero { position: relative; text-align: center; }
.mascot-pad {
  display: inline-block;
  background: #fbead4;
  border-radius: var(--r-xl);
}
.mascot-pad picture { flex-shrink: 0; }
.bars-tip picture, .rail-foot picture, .brand picture, .footer-brand picture, .empty-mascot picture { flex-shrink: 0; }
.mascot-pad img, .sway {
  max-width: 360px;
  max-height: 360px;
  width: auto;
  height: auto;
  animation: sway 3.8s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.bubble {
  background: var(--elevated);
  box-shadow: var(--shadow);
  border-radius: 18px 18px 18px 5px;
  padding: 10px 12px;
  font-size: 14px;
  text-align: left;
  overflow-wrap: anywhere;
  max-width: 100%;
  min-width: 0;
}
.mascot-hero .bubble { position: static; max-width: none; margin: 0 auto 8px; }
.section { padding: 28px 0; }
.grid-3, .grid-2 { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1fr 1fr; }
.card {
  background: var(--elevated);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: var(--shadow);
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.card h3 { margin: 0 0 6px; font-size: 22px; }
.card p { margin: 0; }
.price { color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; font-family: var(--mono); }
table { width: 100%; border-collapse: collapse; background: var(--elevated); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: top; font-size: 15px; overflow-wrap: anywhere; }
th { color: var(--muted); font-weight: 500; }
.footer {
  margin-top: 28px; padding: 28px 0 48px;
  border-top: 1px solid var(--border);
  color: var(--muted); font-size: 14px;
}
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
.footer-brand { display: flex; gap: 10px; align-items: flex-start; }
.bars-tip { display: flex; align-items: flex-end; gap: 10px; margin: 14px 0; min-width: 0; max-width: 100%; }
.bars-tip img, .cub { height: 64px; width: auto; max-width: 72px; flex-shrink: 0; }
.bars-tip > div, .bars-tip .bubble { min-width: 0; flex: 1; }
.sample { display: block; width: auto; max-width: min(100%, 704px); height: auto; border-radius: 14px; margin-bottom: 10px; }
.pose { height: 180px; width: auto; max-width: none; }
.motion { position: relative; display: inline-block; line-height: 0; }
.motion video { display: none; }
.motion.is-playing .poster { display: none; }
.motion.is-playing video { display: block; }
.motion-hero img, .motion-hero video { max-width: min(368px, 100%); max-height: 480px; width: auto; height: auto; }
.motion-wave img, .motion-wave video { max-width: min(400px, 100%); max-height: 420px; width: auto; height: auto; }
.sample-motion { display: block; max-width: 640px; }
.sample-motion .sample, .sample-motion video { max-width: 640px; }
.meet { margin: 8px 0 0; font-weight: 600; text-align: center; }
.composer-label { margin: 0 0 8px; font-weight: 600; }
.rail { display: none; }
.rail-foot { margin-top: auto; display: flex; align-items: flex-end; gap: 8px; }
.rail nav { display: flex; flex-direction: column; gap: 4px; margin-top: 16px; }
.rail nav a { color: var(--fg); text-decoration: none; min-height: 44px; display: flex; align-items: center; border-radius: 14px; padding: 0 10px; }
.rail nav a.on { background: var(--fg); color: var(--bg); }
.legal-links { display: flex; flex-wrap: wrap; gap: 10px 14px; align-content: start; }
.badges { display: flex; gap: 8px; margin-top: 8px; }
.badge { border: 1px solid var(--border); border-radius: var(--r-sm); padding: 4px 8px; font-size: 12px; letter-spacing: 0.06em; color: var(--fg); }
.studio { display: grid; grid-template-columns: 220px 1fr; gap: 18px; padding: 22px 0 28px; align-items: start; }
.studio-side { display: flex; flex-direction: column; gap: 10px; }
.studio-side .face { width: 72px; height: 72px; }
.tabs { display: flex; flex-direction: column; gap: 6px; }
.tabs a {
  color: var(--fg); padding: 10px 12px; border-radius: var(--r);
  background: transparent; text-decoration: none; min-height: 44px;
  display: flex; align-items: center;
}
.tabs a.active { background: var(--fg); color: var(--bg); }
label { display: block; margin: 12px 0 6px; color: var(--muted); font-size: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"],
input[type="search"], input[type="date"], input[type="file"], select, textarea {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  min-height: 44px;
}
textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; color: var(--fg); }
.check input { width: auto; min-height: 0; margin-top: 4px; }
.flash { background: color-mix(in srgb, var(--ok) 14%, var(--elevated)); border: 1px solid var(--ok); padding: 10px 12px; border-radius: var(--r); margin: 12px 0; }
.flash.bad { background: color-mix(in srgb, var(--danger) 12%, var(--elevated)); border-color: var(--danger); }
.modal-back { position: fixed; inset: 0; background: rgba(10, 17, 15, 0.62); display: grid; place-items: center; padding: 16px; z-index: 40; }
.modal { width: min(520px, 100%); }
.banner { border: 1px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--elevated)); color: var(--fg); padding: 10px 12px; border-radius: var(--r); }
.cookie {
  position: fixed; left: 12px; right: 12px; z-index: 45;
  bottom: 12px;
  display: flex; gap: 12px; align-items: center; justify-content: space-between;
  background: var(--elevated); box-shadow: var(--shadow); border-radius: var(--r-lg); padding: 12px 14px;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.preview { max-width: 100%; width: auto; height: auto; border-radius: var(--r); background: var(--surface); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
details.faq { border-bottom: 1px solid var(--border); padding: 10px 0; }
details.faq summary { cursor: pointer; font-weight: 600; }
.prose { color: var(--fg); }
.prose h1, .prose h2, .prose h3 { line-height: 1.25; }
.prose table { display: block; overflow-x: auto; }
.note { font-size: 14px; color: var(--accent); }
button.model-open { display: none; width: 100%; justify-content: space-between; text-align: left; }
.price-dock { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.price-line { margin: 0; }
.bottom-nav { display: none; }
.empty-mascot { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.empty-mascot img.hero-empty { max-height: 220px; }
.auth-layout { display: grid; grid-template-columns: 0.85fr 1fr; gap: 24px; align-items: center; padding-top: 20px; }
.sr, input.sr[type="file"] {
  position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
dialog.model-sheet {
  border: 0; border-radius: var(--r-lg); padding: 16px; width: min(560px, calc(100% - 24px));
  background: var(--bg); color: var(--fg); box-shadow: var(--shadow);
}
dialog.model-sheet::backdrop { background: rgba(18, 22, 20, 0.45); }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.model-list { display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow: auto; margin-top: 10px; }
.model-opt {
  text-align: left; background: var(--elevated); color: var(--fg);
  border: 0; box-shadow: var(--shadow); border-radius: var(--r); padding: 12px; cursor: pointer; min-height: 44px;
}
.model-opt.on { outline: 2px solid var(--accent); }
.model-opt em { font-style: normal; color: var(--accent); font-size: 12px; font-weight: 700; }
.compare { overflow-x: auto; max-width: 100%; }
main.wrap { overflow-x: clip; }
@keyframes sway {
  0%, 100% { transform: rotate(-1.4deg); }
  50% { transform: rotate(1.4deg); }
}
@media (prefers-reduced-motion: reduce) {
  .sway, .mascot-pad img { animation: none; }
}
@media (max-width: 860px) {
  .alpine-hero, .grid-3, .footer .cols, .auth-layout, .pair { grid-template-columns: minmax(0, 1fr); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 34px; }
  .mascot-hero .bubble { position: static; max-width: none; margin: 0 auto 8px; }
  .mascot-pad img { max-width: 280px; max-height: 280px; }
  .motion-hero img, .motion-hero video, .motion-wave img, .motion-wave video { max-height: 280px; }
}
@media (min-width: 760px) {
  .rail {
    display: flex; flex-direction: column;
    position: fixed; left: 0; top: 0; bottom: 0; z-index: 35;
    width: 200px; padding: 16px 12px;
    background: var(--surface); border-right: 1px solid var(--border);
  }
  .rail nav a { font-size: 14px; }
  body { padding-left: 200px; }
  .nav { display: none; }
}
@media (max-width: 759px) {
  .logout-top, .top-tools > .chip { display: none; }
  .top .face { width: 28px; height: 28px; }
  .top-inner { gap: 6px; padding: 8px 0; }
  .top-tools { gap: 6px; }
  .brand-name { font-size: 15px; }
  .langs a { height: 32px; padding: 0 7px; }
  .proof { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .proof::-webkit-scrollbar { display: none; }
  .proof .chip { flex: none; white-space: nowrap; }
}
@media (max-width: 760px) {
  .menu-toggle { display: inline-flex; }
  .nav { display: none; }
  .nav.open {
    display: flex !important; flex-direction: column; align-items: stretch;
    position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; z-index: 40;
    background: var(--elevated); box-shadow: var(--shadow); border-radius: var(--r-lg); padding: 12px;
  }
  .studio { grid-template-columns: minmax(0, 1fr); padding-bottom: 150px; }
  .studio-side, .tabs { min-width: 0; max-width: 100%; }
  .tabs {
    display: flex; flex-direction: row; flex-wrap: nowrap; gap: 6px;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
    width: 100%;
  }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { flex: none; white-space: nowrap; justify-content: center; background: var(--surface); }
  .composer-row { flex-direction: column; align-items: stretch; }
  select.model-native {
    position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
  }
  button.model-open { display: flex; }
  dialog.model-sheet {
    width: 100vw; height: 100vh; max-width: none; max-height: none;
    margin: 0; border-radius: 0;
  }
  .model-list { max-height: calc(100vh - 88px); }
  .price-dock {
    position: fixed; left: 10px; right: 10px; z-index: 28;
    bottom: calc(72px + env(safe-area-inset-bottom));
    background: var(--elevated); border-radius: var(--r-lg); padding: 12px;
    box-shadow: var(--shadow);
  }
  .bottom-nav {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 32;
    justify-content: space-around; gap: 4px;
    background: var(--elevated); box-shadow: var(--shadow);
    padding: 8px 6px calc(10px + env(safe-area-inset-bottom));
  }
  .bottom-nav a {
    flex: 1; text-align: center; color: var(--muted); font-size: 11px; line-height: 1.15;
    text-decoration: none; min-height: 44px; display: flex; align-items: center; justify-content: center;
  }
  .bottom-nav a.on { color: var(--accent); font-weight: 700; }
  .cookie { bottom: calc(76px + env(safe-area-inset-bottom)); flex-direction: column; align-items: stretch; }
  body { padding-bottom: calc(96px + var(--install-pad, 0px) + env(safe-area-inset-bottom)); }
  body:has(#install-banner:not([hidden])) .price-dock,
  body:has(#install-banner:not([hidden])) .viewer-dock {
    bottom: calc(76px + var(--install-pad, 0px) + env(safe-area-inset-bottom));
  }
  .footer { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .repeat-sticky { position: sticky; bottom: calc(72px + env(safe-area-inset-bottom)); z-index: 20; }
}

.ideas-page { max-width: 1100px; }
.ideas-page > .lead { max-width: 38rem; margin-bottom: 0; }
.ideas-page h2 { margin: 36px 0 8px; }
.ideas-page h2 + .muted { margin: 0 0 16px; }
.chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  margin: 20px 0 4px;
  padding: 2px 0 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar { display: none; }
.chips .chip { display: inline-flex; align-items: center; flex: none; white-space: nowrap; line-height: 1.2; padding: 6px 10px; font-size: 13.5px; }
.idea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 8px; align-items: start; }
.idea-card { min-width: 0; }
.idea-card h3 { font-family: var(--display); font-size: 1.05rem; margin: 8px 0 4px; }
.idea-card h3 a { color: inherit; text-decoration: none; }
.idea-media { display: block; border-radius: var(--r); overflow: hidden; background: var(--surface); }
.idea-grid .idea-media { aspect-ratio: 1 / 1; }
.idea-grid .idea-media img, .idea-grid .idea-media video {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%;
  object-fit: contain; object-position: center; display: block;
}
.idea-hero img, .idea-hero video { width: 100%; height: auto; display: block; }
.idea-media.is-neutral, .idea-hero.is-neutral {
  display: flex;
  color: inherit;
  text-decoration: none;
  background: var(--elevated);
  border: 1px solid var(--border);
  box-shadow: none;
}
.idea-hero.is-neutral { aspect-ratio: auto; max-width: none; border-radius: var(--r-lg); margin-bottom: 16px; }
.neutral-face {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  width: 100%; height: 100%; padding: 14px; min-height: 0;
}
.idea-hero.is-neutral .neutral-face {
  flex-direction: row; align-items: center; justify-content: flex-start; gap: 12px;
  height: auto; padding: 14px 16px;
}
.neutral-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.neutral-face strong {
  font-family: var(--display); font-weight: 500; font-size: 1.2rem; line-height: 1.15; letter-spacing: -0.02em;
}
.neutral-model { color: var(--muted); font-size: 0.82rem; }
.idea-hero.is-neutral .neutral-model { color: var(--fg); font-size: 0.95rem; }
.model-mark {
  width: 36px; height: 36px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 14%, var(--elevated));
  color: var(--accent); flex: 0 0 auto;
}
.idea-kicker { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.8rem; margin: 8px 0 0; }
.example-chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: var(--accent-fg); font-size: 0.72rem; line-height: 1.4; }
.idea-hero { border-radius: var(--r-lg); overflow: hidden; background: var(--surface); margin-bottom: 12px; }
.idea-meta p { margin: 4px 0; }
.idea-card .idea-repeat {
  font-family: Figtree, "Noto Sans", "Noto Sans Armenian", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
  margin-top: 10px;
  white-space: nowrap;
}
.idea-card .idea-sub { margin: 6px 0 0; font-size: 13px; }
.ba { position: relative; }
.ba img { width: auto; max-width: 100%; height: auto; display: block; }
.ba-before { position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.ba input[type="range"] { position: absolute; left: 16px; right: 16px; bottom: 16px; width: calc(100% - 32px); }
.prompt-block { white-space: pre-wrap; font-family: var(--mono); font-size: 0.9rem; }
@media (max-width: 759px) {
  .chips {
    margin-left: -16px;
    margin-right: -16px;
    padding: 2px 16px 10px;
  }
  .idea-card .idea-repeat { width: 100%; padding: 8px 10px; font-size: 13px; }
}
@media (min-width: 760px) {
  .idea-grid, .idea-grid.videos { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .repeat-sticky { position: static; }
}
.works-page > .lead { max-width: 36rem; }
.works-keep { margin: 8px 0 0; font-size: 14px; }
.view-switch { display: flex; gap: 8px; margin: 18px 0 8px; }
.view-switch a {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--border); color: var(--muted); text-decoration: none;
  background: var(--elevated);
}
.view-switch a.on { background: var(--fg); color: var(--bg); border-color: var(--fg); }
.works-tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; margin: 8px 0 18px; }
.works-tools .tool { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 1 1 180px; }
.works-tools .tool span, .works-tools label span { color: var(--muted); font-size: 13px; }
.works-tools .tool-check { margin: 0 0 10px; align-self: center; }
.works-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.work-card { min-width: 0; }
.work-media {
  position: relative; display: flex; aspect-ratio: 1 / 1; overflow: hidden;
  border-radius: var(--r); background: var(--surface); color: inherit; text-decoration: none;
}
.work-media img, .work-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.work-media.is-neutral {
  background: var(--elevated);
  border: 1px solid var(--border);
  box-shadow: none;
}
.work-media .neutral-face { padding: 12px; }
.work-media .neutral-face strong { font-size: 1rem; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.work-play {
  position: absolute; left: 12px; bottom: 12px; width: 36px; height: 36px; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  box-shadow: var(--shadow);
}
.work-play::after {
  content: ""; position: absolute; left: 14px; top: 11px;
  border-style: solid; border-width: 7px 0 7px 11px; border-color: transparent transparent transparent var(--fg);
}
.work-meta { padding-top: 8px; }
.work-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.star-form { margin: 0; }
.star {
  width: 36px; height: 36px; min-height: 36px; padding: 0; border: 0; border-radius: 999px;
  background: var(--elevated); color: var(--muted); box-shadow: var(--shadow);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: 0 0 auto;
}
.star.on { color: var(--accent); }
.work-repeat, .idea-card .idea-repeat {
  font-family: Figtree, "Noto Sans", "Noto Sans Armenian", system-ui, sans-serif;
  font-variant-numeric: tabular-nums;
}
.works-grid .work-repeat { width: 100%; margin-top: 8px; padding: 8px 10px; font-size: 13px; white-space: nowrap; }
.expiry-note { color: var(--accent); font-size: 13px; margin: 4px 0; }
.work-list { display: flex; flex-direction: column; gap: 12px; }
.work-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.work-stage {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  display: flex; align-items: center; justify-content: center; min-height: 240px;
}
.work-stage img, .work-stage video {
  max-width: 100%; max-height: 72vh; width: auto; height: auto; object-fit: contain; display: block;
}
.work-stage audio { width: min(100%, 480px); margin: 16px; }
.work-side h1 { margin-top: 0; }
.viewer-nav { display: flex; gap: 16px; }
@media (min-width: 760px) {
  .works-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .work-layout { display: grid; grid-template-columns: 1.35fr 0.75fr; gap: 28px; align-items: start; }
}
@media (max-width: 759px) {
  .works-grid .work-repeat, .work-list .work-repeat, .work-actions .work-repeat { width: 100%; }
  .work-viewer {
    position: fixed; inset: 0; z-index: 40; overflow: auto;
    background: var(--bg); padding: 12px 12px calc(148px + env(safe-area-inset-bottom));
  }
  .work-layout { display: flex; flex-direction: column; gap: 14px; }
  .work-stage { min-height: 46vh; background: transparent; }
  .work-stage img, .work-stage video { max-height: 62vh; }
}

:root { --kb: 0px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.sheet-launch, .sheet-grip, .aspect-picks { display: none; }
.quick-chips, .upload-row {
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; margin: 8px 0; padding-bottom: 2px;
}
.quick-chips::-webkit-scrollbar, .upload-row::-webkit-scrollbar { display: none; }
.quick-chips button, .aspect-picks button {
  flex: none; min-height: 48px; padding: 0 16px; border: 0; border-radius: 999px;
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow); cursor: pointer;
}
.aspect-picks button.on, .quick-chips button:active { background: var(--fg); color: var(--bg); }
.pull-ind { text-align: center; color: var(--muted); min-height: 48px; margin: 0; }
.job-toast {
  display: flex; align-items: center; gap: 12px;
  position: fixed; right: 16px; bottom: 16px; z-index: 36; width: min(380px, calc(100% - 32px));
  background: var(--elevated); color: var(--fg); box-shadow: var(--shadow);
  border-radius: var(--r-lg); padding: 12px;
}
.job-toast[hidden] { display: none !important; }
.job-toast img { width: 72px; height: auto; flex: 0 0 auto; }
.job-toast p { margin: 0 0 4px; }
.job-toast button {
  border: 0; background: transparent; color: var(--fg); min-width: 48px; min-height: 48px;
  font-size: 22px; cursor: pointer;
}
.viewer-dock { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.viewer-dock .btn { min-height: 48px; }
@media (prefers-contrast: more) {
  :root { --muted: #3c4440; --border: rgba(18, 22, 20, 0.32); }
  html[data-theme="dark"] { --muted: #c9d6e2; --border: rgba(160, 210, 220, 0.4); }
}
@media (prefers-reduced-motion: reduce) {
  dialog.sheet, dialog.model-sheet, .job-toast, .btn:active { transition: none; animation: none; transform: none; }
}
@media (max-width: 759px) {
  .top { padding-top: env(safe-area-inset-top); }
  /* mobile-fix2-1105: slim header — langs+theme live inside hamburger; chat icon-only */
  .top-tools { display: flex !important; align-items: center; gap: 4px; margin-left: auto; flex: 0 0 auto; min-width: 0; }
  .top-tools > .chip, .top-tools .logout-top { display: none !important; }
  .top-tools .langs, .top-tools .theme-toggle { display: none !important; }
  .menu-toggle { display: inline-flex !important; }
  .nav { display: none !important; }
  .nav.open {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: calc(100% + 6px); left: 12px; right: 12px; z-index: 40;
    background: var(--elevated); box-shadow: var(--shadow); border-radius: var(--r-lg);
    padding: 12px; border: 1px solid var(--border); max-height: min(70vh, 520px); overflow: auto;
  }
  .nav.open > a, .nav.open > form { min-height: 44px; display: flex; align-items: center;
    padding: 8px 10px; border-radius: 12px; color: var(--fg); text-decoration: none; }
  .nav.open > a:active, .nav.open > a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
  .nav-phone-tools { display: flex; flex-direction: column; gap: 10px; padding-bottom: 10px;
    margin-bottom: 6px; border-bottom: 1px solid var(--border); }
  .nav-phone-tools .nav-langs { display: flex; gap: 6px; }
  .nav-phone-tools .nav-langs a { flex: 1; min-height: 44px; height: 44px; font-size: 14px; }
  .nav-phone-tools .btn { width: 100%; margin: 0; }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 34;
    gap: 8px; background: var(--elevated);
    padding: 8px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .bottom-nav a, .bottom-nav button {
    flex: 1; min-height: 48px; min-width: 0; padding: 6px 2px;
    border: 0; background: transparent; color: var(--muted);
    font-weight: 600; font-size: 11px; line-height: 1.15; font-family: var(--sans);
    text-align: center; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    white-space: normal; overflow-wrap: anywhere;
  }
  .bottom-nav a.on { color: var(--accent); }
  button.btn, .btn, .seg button, .view-switch a, .upload-row .btn, .price-dock .btn { min-height: 48px; font-size: 16px; }
  .star { width: 48px; height: 48px; min-height: 48px; }
  input, select, textarea { font-size: 16px; }
  textarea { max-height: 34vh; }
  .thumb-bar, button.sheet-launch {
    display: flex; position: fixed; left: 10px; right: 10px; z-index: 28;
    bottom: calc(72px + env(safe-area-inset-bottom) + var(--kb));
    min-height: 48px; width: auto;
  }
  body:has(.price-dock) .thumb-bar { position: static; width: 100%; bottom: auto; }
  .price-dock { bottom: calc(72px + env(safe-area-inset-bottom) + var(--kb)); }
  .studio { padding-bottom: calc(180px + env(safe-area-inset-bottom) + var(--kb)); }
  .composer { margin-bottom: 72px; }
  .aspect-picks { display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .works-page, section:has(> .sheet-launch) { padding-bottom: 96px; }
  select.aspect-native, #gallery-file.sr, #gallery-file {
    position: absolute; width: 1px; height: 1px; min-height: 0; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
  }
  dialog.model-sheet:modal, dialog.sheet:modal, dialog.model-sheet, dialog.sheet {
    position: fixed; inset: auto 0 0 0; width: 100%; max-width: none;
    height: auto; max-height: min(68vh, 560px); max-height: min(68dvh, 560px);
    margin: 0; border: 0; transform: none;
    border-radius: 22px 22px 0 0; padding: 4px 16px calc(16px + env(safe-area-inset-bottom));
    background: var(--bg); color: var(--fg); box-shadow: var(--shadow); overflow: auto;
  }
  dialog.model-sheet::backdrop, dialog.sheet::backdrop { background: rgba(18, 22, 20, 0.45); }
  .sheet-grip {
    display: block; width: 64px; height: 48px; margin: 0 auto; padding: 0;
    border: 0; background: transparent; cursor: pointer;
  }
  .sheet-grip::before {
    content: ""; display: block; width: 40px; height: 4px; margin: 22px auto 0;
    border-radius: 999px; background: color-mix(in srgb, var(--fg) 35%, transparent);
  }
  dialog.sheet .btn, dialog.model-sheet .model-opt, dialog.sheet form { width: 100%; }
  dialog.sheet .check { min-height: 48px; align-items: center; }
  dialog.sheet .check input { width: 22px; height: 22px; min-height: 22px; margin-top: 0; }
  dialog.sheet .btn { margin-top: 8px; }
  .sheet-langs { margin: 8px 0 12px; }
  .sheet-langs a { flex: 1; min-height: 48px; height: 48px; font-size: 16px; }
  dialog.sheet .works-tools { flex-direction: column; align-items: stretch; }
  dialog.sheet .works-tools .tool, dialog.sheet .works-tools .btn { width: 100%; min-width: 0; }
  .model-list { max-height: none; }
  .job-toast {
    left: 10px; right: 10px; width: auto;
    bottom: calc(72px + env(safe-area-inset-bottom) + var(--kb));
  }
  body:has(.thumb-bar) .job-toast, body:has(.price-dock) .job-toast, body:has(.viewer-dock) .job-toast {
    bottom: calc(136px + env(safe-area-inset-bottom) + var(--kb));
  }
  #gen-status .empty-mascot { display: none; }
  .viewer-dock {
    position: fixed; left: 10px; right: 10px; z-index: 42;
    bottom: calc(72px + env(safe-area-inset-bottom));
    display: flex; flex-wrap: nowrap; margin: 0;
  }
  .viewer-dock .btn { flex: 1; }
  .work-card { -webkit-touch-callout: none; }
  .cookie { bottom: calc(136px + env(safe-area-inset-bottom)); }
}
@media (display-mode: standalone) {
  .top { padding-top: env(safe-area-inset-top); }
}
@media (max-width: 759px) and (prefers-reduced-motion: no-preference) {
  .btn:active, .bottom-nav a:active, .bottom-nav button:active, .quick-chips button:active {
    transform: scale(0.98);
  }
}

.beginner-badge {
  display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px;
  background: var(--accent); color: var(--accent-fg); font-style: normal; font-size: 12px; font-weight: 700;
}
.model-blurb, .model-good { color: var(--fg); font-size: 15px; margin: 6px 0 0; }
.model-opt .model-good { display: block; margin-top: 4px; }
.with-info { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.info-dot {
  width: 48px; height: 48px; min-width: 48px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--elevated); color: var(--fg); font-weight: 700; cursor: pointer;
}
.intro-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 0; }
.intro-card { flex: 0 0 100%; scroll-snap-align: start; min-height: 160px; padding-right: 8px; }
.intro-card h2 { margin-top: 8px; }
.intro-actions { display: flex; gap: 8px; margin-top: 12px; }
.intro-actions .btn { flex: 1; min-height: 48px; }
.tour-card {
  position: fixed; left: 10px; right: 10px; z-index: 60;
  bottom: calc(136px + env(safe-area-inset-bottom));
  background: var(--elevated); color: var(--fg); border-radius: var(--r-lg);
  box-shadow: var(--shadow); padding: 14px;
}
.tour-card[hidden] { display: none !important; }
.tour-card p { margin: 0; font-size: 16px; }
.tour-ring { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 16px; }
.info-pics { display: flex; gap: 12px; align-items: flex-end; min-height: 96px; margin: 8px 0 12px; }
.frame { display: block; background: color-mix(in srgb, var(--accent) 28%, var(--elevated)); border: 2px solid var(--accent); border-radius: 8px; }
.frame.sq { width: 72px; height: 72px; }
.frame.tall { width: 48px; height: 86px; }
.frame.wide { width: 96px; height: 54px; }
.frame.bar { height: 18px; border-radius: 999px; }
.frame.short { width: 64px; }
.frame.long { width: 140px; }
.frame.soft { width: 72px; height: 72px; filter: blur(1.5px); }
.frame.sharp { width: 72px; height: 72px; background: var(--accent); }
.friendly-card { margin: 12px 0; }
.help-item { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.help-item img, .help-item .cub { width: 72px; height: auto; }
.help-page { padding-bottom: 96px; }
#ask-answer { margin-top: 12px; }
@media (min-width: 760px) {
  .tour-card { left: auto; width: min(420px, calc(100% - 240px)); bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .intro-track { scroll-behavior: auto; }
  .frame.soft { filter: none; opacity: 0.55; }
}

.niche-row, .format-picks, .refine-row {
  display: flex; gap: 8px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none;
  width: 100%; max-width: 100%; min-width: 0;
}
.studio > section, #gen-form, .templates-page { min-width: 0; max-width: 100%; }
.niche-row::-webkit-scrollbar, .format-picks::-webkit-scrollbar, .refine-row::-webkit-scrollbar { display: none; }
.niche-row a, .format-picks button, .niche-stack .btn {
  flex: none; min-height: 48px; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 8px 14px; border-radius: 16px; border: 1px solid var(--border);
  background: var(--elevated); color: var(--fg); text-decoration: none; font-size: 15px;
}
.format-picks button { flex-direction: column; min-width: 84px; cursor: pointer; }
.format-picks button.on, .niche-row a:active { background: var(--fg); color: var(--bg); }
.fmt-ico { display: block; border: 2px solid currentColor; border-radius: 4px; flex: none; }
.fmt-ico.sq { width: 22px; height: 22px; }
.fmt-ico.p45 { width: 20px; height: 25px; }
.fmt-ico.story { width: 16px; height: 28px; }
.fmt-ico.wide, .fmt-ico.banner { width: 32px; height: 18px; }
.idea-card .fmt-ico { margin-bottom: 8px; }
.idea-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.idea-card .btn { min-height: 48px; width: 100%; }
.niche-block { margin-top: 22px; }
.niche-stack { display: flex; flex-direction: column; gap: 8px; }
.password-old { margin-top: 14px; }
.password-old summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; }
.auth-or { text-align: center; margin: 8px 0; }
.chain-note { margin: 6px 0; }
.chain-note a { margin-right: 8px; }
.refine-row form { flex: none; }
.refine-row .btn { white-space: nowrap; }
.viewer-dock { flex-direction: column; align-items: stretch; }
.viewer-actions { display: flex; gap: 8px; }
.viewer-actions .btn { flex: 1; min-height: 48px; }
@media (min-width: 760px) {
  .idea-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .format-picks { flex-wrap: wrap; overflow: visible; }
}
@media (max-width: 759px) {
  .work-viewer.has-refine { padding-bottom: calc(220px + env(safe-area-inset-bottom)); }
  .auth-layout .motion-wave { display: none; }
  .auth-layout .mascot-hero { margin-bottom: 4px; }
}

.alpine-hero > *, .section, .loop-band { min-width: 0; max-width: 100%; }
.loop-band { margin: 0 0 8px; }
.loop-stage {
  position: relative; border-radius: 18px; overflow: hidden; max-width: 720px;
  background:
    radial-gradient(90% 80% at 50% 36%, #f7f4ef 0%, #d7efe9 48%, #1b6a62 100%);
}
.loop-still {
  display: grid; place-items: center; min-height: 240px; padding: 28px 16px 24px;
}
.loop-still img {
  width: min(176px, 46%); height: auto; display: block;
  border-radius: 36px;
  box-shadow: 0 14px 32px rgba(18, 22, 20, 0.16);
}
.loop-steps {
  display: flex; gap: 8px; list-style: none; margin: 10px 0 0; padding: 0;
  overflow-x: auto; width: 100%; max-width: 100%; min-width: 0;
}
.loop-steps li {
  flex: none; min-height: 36px; display: flex; align-items: center;
  padding: 4px 10px; border-radius: 999px; background: var(--elevated); color: var(--fg);
  box-shadow: var(--shadow); font-size: 13px;
}
.loop-note { margin-top: 8px; }
.reach-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.reach-links a { text-decoration: none; color: inherit; }
.theme-pick { border: 0; margin: 0; padding: 0; min-width: 0; }
.theme-pick legend { font-weight: 650; margin-bottom: 8px; }
.theme-pick .check { min-height: 48px; align-items: center; }
.provider-report { padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 8px; list-style: none; }
.provider-report li { min-width: 0; overflow-wrap: anywhere; }
.family-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 12px 0 20px; }
.family-card { min-width: 0; }
.family-card img, .family-hero { width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 16px; display: block; }
.family-hero { margin-bottom: 12px; }
.family-card h2 { font-size: 1.15rem; margin: 10px 0 4px; }
.family-card .btn { width: 100%; }
button.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.idea-preview { width: auto; max-width: 100%; height: auto; max-height: 280px; object-fit: contain; border-radius: 14px; display: block; margin-bottom: 10px; }
.shelf-banner {
  width: 100%; max-width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
  border-radius: 16px; display: block; margin: 0 0 12px;
}
.shelf-mascot {
  width: 96px; height: 96px; object-fit: cover; border-radius: 16px; display: block; margin: 0 0 12px;
}
.offer-model { margin: 0 0 8px; color: var(--muted); font-size: 13px; }
.honest-note { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.ba-tag.src { left: 10px; top: auto; bottom: 10px; max-width: calc(100% - 20px); }
.offer-face {
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  padding: 16px; color: inherit; text-decoration: none; aspect-ratio: 4 / 5;
  background: var(--elevated);
  border: 1px solid var(--border);
  box-shadow: none;
}
.offer-face strong { font-family: var(--display); font-size: 1.55rem; line-height: 1.1; font-weight: 500; overflow-wrap: anywhere; }
.offer-face span { color: var(--muted); }
.offer-pair, .offer-still { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 5; }
.offer-pair .ba { height: 100%; }
.offer-pair .ba img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ba-tag {
  position: absolute; top: 10px; z-index: 2; padding: 2px 8px; border-radius: 999px;
  background: rgba(20, 16, 12, .72); color: #fff; font-size: 12px; letter-spacing: .02em;
}
.ba-tag.was { left: 10px; }
.ba-tag.now { right: 10px; }
.offer-play {
  position: absolute; left: 50%; top: 46%; width: 54px; height: 54px; margin: -27px 0 0 -27px;
  border-radius: 999px; background: rgba(20, 16, 12, .55);
}
.offer-play::after {
  content: ""; position: absolute; left: 22px; top: 17px;
  border-style: solid; border-width: 10px 0 10px 16px; border-color: transparent transparent transparent #fff;
}
.family-card p { overflow-wrap: anywhere; }
#face-why { margin-bottom: 16px; }
.looks-page { min-width: 0; }
.looks-page .check { min-height: 48px; align-items: center; }
.look-styles { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.look-styles li {
  min-height: 40px; display: flex; align-items: center; padding: 6px 12px;
  border: 1px solid var(--border); border-radius: 999px;
}
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; width: 100%; max-width: 100%; min-width: 0; }
.share-row .btn { min-height: 48px; }
.share-mark { width: 100%; margin: 0; font-size: 13px; letter-spacing: .02em; }
.guest-result img, .idea-card img, .loop-frames img { max-width: 100%; }
.guest-result img { width: auto; max-width: 100%; height: auto; object-fit: contain; border-radius: 16px; }
input.file-field[type="file"] { width: 100%; max-width: 100%; min-height: 48px; }
.publish-form, .report-form { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.try-page textarea, .looks-page textarea { width: 100%; max-width: 100%; min-height: 96px; font-size: 16px; }
.trend-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin: 12px 0 20px; }
.trend-card, .trend-detail { min-width: 0; }
.trend-card img, .trend-hero { width: auto; max-width: 100%; height: auto; max-height: 420px; object-fit: contain; border-radius: 16px; display: block; }
.trend-card h3, .trend-card p, .trend-detail h1 { overflow-wrap: anywhere; }
.trend-card .btn { width: 100%; margin-top: 8px; min-height: 48px; }
.trend-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.badge-new, .badge-week { display: inline-flex; align-items: center; min-height: 28px; padding: 2px 10px; border-radius: 999px; background: var(--surface); font-size: 13px; }
.badge-week { background: color-mix(in srgb, var(--accent) 18%, var(--elevated)); }
#celeb-block { margin-top: 12px; }
@media (min-width: 760px) {
  .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reach-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-still { min-height: 280px; }
  .loop-still img { width: 200px; }
  .loop-stage { max-width: none; }
}
@media (max-width: 759px) {
  .idea-grid,
  .trend-grid,
  .family-grid,
  .phone-reel {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    contain: paint;
    scroll-snap-type: x mandatory;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding: 2px 0 14px;
    scroll-padding-inline: 0;
  }
  .idea-grid::-webkit-scrollbar,
  .trend-grid::-webkit-scrollbar,
  .family-grid::-webkit-scrollbar,
  .phone-reel::-webkit-scrollbar { display: none; }
  .idea-grid > *,
  .trend-grid > *,
  .family-grid > *,
  .phone-reel > * {
    flex: 0 0 84%;
    max-width: 84%;
    scroll-snap-align: start;
    min-width: 0;
  }
  .idea-grid .idea-media,
  .trend-card img,
  .family-card img,
  .phone-reel .sample,
  .compare .card img,
  .idea-grid .card > img {
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    max-height: none;
  }
  .idea-card .idea-repeat { white-space: normal; text-align: center; }
  .loop-stage { aspect-ratio: auto; max-width: none; }
  .loop-still { min-height: 260px; }
}

.install-banner[hidden],
.install-banner [hidden],
#install-page-go[hidden],
[data-install-already][hidden],
[data-install-copied][hidden] { display: none !important; }
.install-banner {
  position: fixed; left: 12px; right: 12px; z-index: 36;
  bottom: 12px; max-width: calc(100vw - 24px); overflow: hidden;
}
.install-card {
  background: var(--elevated); color: var(--fg); box-shadow: var(--shadow);
  border-radius: var(--r-lg); padding: 14px; min-width: 0; max-width: 100%;
}
.install-title { margin: 0 0 6px; font-weight: 700; overflow-wrap: anywhere; }
.install-card p { margin: 0 0 8px; overflow-wrap: anywhere; }
.install-steps {
  display: flex; align-items: flex-end; gap: 8px; margin: 4px 0 10px; min-width: 0;
}
.install-steps figure, .install-wide { margin: 0; min-width: 0; flex: 1 1 0; text-align: center; }
.install-arrow { flex: none; align-self: center; color: #5c2e91; font-weight: 700; }
.install-steps svg, .install-wide svg {
  width: 100%; height: auto; max-width: 160px; display: block; margin: 0 auto;
}
.install-banner .install-steps svg { width: 84px; max-width: 100%; max-height: 112px; height: auto; }
.install-steps figcaption, .install-wide figcaption, .install-diagrams figcaption {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  font-size: 14px; font-weight: 700; line-height: 1.3; margin-top: 8px; text-align: center;
  overflow-wrap: normal; word-break: normal; hyphens: none;
}
.install-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.install-actions .btn { flex: 1 1 140px; max-width: 100%; white-space: normal; text-align: center; }
.install-page .lead { margin: 8px 0 12px; }
.install-block { margin-top: 16px; overflow-wrap: normal; word-break: normal; }
.install-block h2 { margin: 0 0 6px; font-size: 26px; }
.install-block p { margin: 0; }
.install-block ol { margin: 8px 0 0; padding-left: 1.2em; }
.install-diagrams {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px; margin: 14px 0 4px; justify-items: stretch;
}
.install-diagrams figure {
  display: flex; flex-direction: column; align-items: center; width: 100%; min-width: 0; margin: 0;
}
.install-diagrams svg {
  width: 88px; max-width: 100%; height: auto; display: block; flex: none;
}
.install-wide { margin-top: 12px; }
.install-wide svg { max-width: 220px; }
@media (min-width: 861px) {
  body { padding-bottom: var(--install-pad, 0px); }
}
@media (min-width: 760px) {
  .install-banner { left: 216px; right: auto; width: min(420px, calc(100vw - 232px)); bottom: 16px; }
}
@media (max-width: 759px) {
  .install-banner { bottom: calc(76px + env(safe-area-inset-bottom)); }
}
.fx-hint { color: var(--muted); font-weight: 600; font-size: 0.9em; }
.hero-product { margin: 0 auto 8px; text-align: center; }
.hero-product img { max-width: min(100%, 420px); margin: 0 auto; border-radius: 18px; }
.loop-frames {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 10px;
}
.loop-frames figure, .look-preview figure, .hero-product { margin: 0; min-width: 0; }
.loop-frames figcaption, .look-preview figcaption, .hero-product figcaption {
  font-size: 12px; color: var(--muted); margin-top: 4px;
}
.look-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 12px 0; }
img.fit-natural, video.fit-natural {
  width: auto; max-width: 100%; height: auto; max-height: 70vh; object-fit: contain; display: block;
}
@media (min-width: 760px) {
  .look-preview { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
.checkout { max-width: 560px; }
.checkout .price { margin-bottom: 4px; }
.pay-methods { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.pay-method {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: var(--r); padding: 12px;
  background: var(--elevated); min-height: 52px;
}
.pay-method:has(input:checked) { border-color: var(--accent); }
.pay-method-name { font-weight: 650; }
.pay-logos { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.pay-logos img { height: 28px; width: auto; max-width: 64px; display: block; border-radius: 4px; background: #fff; }
.trust { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.trust p { margin: 0; overflow-wrap: anywhere; }
.checkout .check { overflow-wrap: anywhere; }
#pay-submit { margin-top: 8px; }
#pay-submit:disabled { opacity: 0.45; cursor: not-allowed; }
@media (max-width: 420px) {
  .pay-logos { margin-left: 28px; }
  #pay-submit, #package-grid .card > .btn { width: 100%; }
}
#package-grid .card > .btn { margin-top: 10px; }

.suno-variants { display: grid; gap: 8px; margin: 10px 0; border: 0; padding: 0; }
.suno-bi-panel { margin: 10px 0 14px; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.suno-bi-panel select { width: 100%; margin: 6px 0 10px; }
.suno-bi-panel textarea { width: 100%; min-height: 140px; }
.suno-rights { margin: 6px 0 10px; }

/* Compact Suno / audio track cards */
.track-list { display: flex; flex-direction: column; gap: 10px; width: 100%; padding: 4px 0; }
.track-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 44px 44px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  background: var(--elevated);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
.track-art {
  width: 48px; height: 48px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 35%, var(--elevated)), var(--surface));
  display: grid; place-items: center;
}
.track-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.track-wave {
  width: 28px; height: 18px; border-radius: 4px;
  background:
    linear-gradient(var(--accent-fg, #fff), var(--accent-fg, #fff)) 0 8px / 3px 6px no-repeat,
    linear-gradient(var(--accent-fg, #fff), var(--accent-fg, #fff)) 6px 4px / 3px 10px no-repeat,
    linear-gradient(var(--accent-fg, #fff), var(--accent-fg, #fff)) 12px 2px / 3px 14px no-repeat,
    linear-gradient(var(--accent-fg, #fff), var(--accent-fg, #fff)) 18px 5px / 3px 8px no-repeat,
    linear-gradient(var(--accent-fg, #fff), var(--accent-fg, #fff)) 24px 7px / 3px 4px no-repeat;
  opacity: 0.9;
}
.track-meta { min-width: 0; }
.track-meta strong { display: block; font-size: 15px; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track-play, .track-dl {
  width: 44px; height: 44px; min-height: 44px; border-radius: 999px; border: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface); color: var(--fg); text-decoration: none; cursor: pointer;
}
.track-card.playing .track-play { background: var(--accent); color: var(--accent-fg, #fff); }
.track-card audio { display: none; }

.work-primary { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.work-primary .btn { width: 100%; }
.fold { margin-top: 12px; border-radius: 14px; background: var(--elevated); padding: 4px 12px; box-shadow: var(--shadow); }
.fold > summary {
  list-style: none; cursor: pointer; min-height: 48px;
  display: flex; align-items: center; font-weight: 600;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold .lyrics-body, .fold .more-body { padding: 0 0 12px; margin: 0; white-space: pre-wrap; }
.fold .more-body { display: flex; flex-direction: column; gap: 8px; }
.fold .check { display: flex; gap: 10px; align-items: flex-start; min-height: 44px; }
.fold .check input { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.share-panel { margin-top: 10px; }
.share-panel .share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.share-panel .share-mark { grid-column: 1 / -1; margin: 0; text-align: center; color: var(--muted); }

/* Audio results: actions in document flow — no sticky dock covering tracks */
.work-viewer--audio .viewer-dock { display: none !important; }
@media (max-width: 759px) {
  .work-viewer--audio {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .work-viewer--audio .work-stage {
    min-height: 0;
    align-items: stretch;
    justify-content: flex-start;
  }
  .work-viewer--audio.has-refine {
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
}

/* Bilingual translate: keep preview compact */
.suno-bi-panel details.suno-tr-fold { margin-top: 10px; }
.suno-bi-panel details.suno-tr-fold[open] textarea { min-height: 96px; max-height: 28vh; }
.suno-bi-panel textarea#lyrics_secondary { min-height: 96px; max-height: 28vh; }
.suno-bi-panel .suno-tr-note { margin: 6px 0 8px; font-size: 13px; }
body:has(#suno-bi-panel:not([hidden])) .studio {
  padding-bottom: calc(220px + env(safe-area-inset-bottom) + var(--kb));
}


/* Prompt improver: clear sticky price dock + bottom nav on mobile */
.improve-wrap { margin-top: 8px; }
.improve-preview {
  margin-top: 10px;
  scroll-margin-bottom: calc(280px + env(safe-area-inset-bottom) + var(--kb, 0px));
}
.improve-preview .improve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
  scroll-margin-bottom: calc(280px + env(safe-area-inset-bottom) + var(--kb, 0px));
}
#improve-accept,
#improve-reject {
  scroll-margin-bottom: calc(280px + env(safe-area-inset-bottom) + var(--kb, 0px));
}
@media (max-width: 759px) {
  .improve-preview .improve-actions {
    padding-bottom: 8px;
    margin-bottom: 12px;
  }
}
@media (max-width: 759px) {
  body:has(#improve-preview:not([hidden])) .studio {
    padding-bottom: calc(360px + env(safe-area-inset-bottom) + var(--kb));
  }
}


/* Extra room under improver draft so Accept/Reject can clear the sticky dock */
@media (max-width: 759px) {
  body.improve-open #improve-preview:not([hidden]) {
    margin-bottom: 200px;
  }
}

/* Honest examples on model cards and one-click templates */
.model-example, .oneclick-example { margin: 10px 0 12px; }
.model-example img, .model-example video, .oneclick-example img { display: block; width: 100%; height: auto; border-radius: 14px; background: #f1efe9; }
.model-example figcaption, .oneclick-example figcaption { font-size: .85rem; margin-top: 6px; }
.oneclick-steps { padding-left: 1.2em; margin: 8px 0 18px; }
.oneclick-detail .oneclick-example img { max-width: 420px; }

/* 2026-10-10 mobile fixes: before/after slider + home carousel clear of sticky bars */
.ba input[type="range"] {
  -webkit-appearance: none; appearance: none; background: transparent;
  height: 44px; bottom: 6px; left: 12px; right: 12px; width: calc(100% - 24px);
  margin: 0; padding: 0; z-index: 3; touch-action: pan-y; cursor: ew-resize;
}
.ba input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(20, 16, 12, .35); }
.ba input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .85); box-shadow: 0 0 0 1px rgba(20, 16, 12, .35); }
.ba input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 32px; height: 32px; margin-top: -13px; border-radius: 50%; background: #fff; border: 3px solid var(--accent, #1d6e62); box-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
.ba input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--accent, #1d6e62); box-shadow: 0 1px 6px rgba(0, 0, 0, .45); }
/* caption goes to the top of the picture, never over the handle */
.ba-tag.src { top: 10px; bottom: auto; left: 10px; right: auto; max-width: calc(100% - 20px); }
.offer-pair .ba-tag.src { top: 40px; }
.ba-tag.src ~ .ba-tag, .ba-tag { pointer-events: none; }
.work-caption { overflow-wrap: anywhere; line-height: 1.35; }
@media (max-width: 759px) {
  button.thumb-bar.thumb-hide { display: none; }
  #trends-home { padding-bottom: 40px; }
  .trend-grid { padding-bottom: 28px; }
  .trend-card img { width: 100%; max-height: 210px; object-fit: cover; }
  .trend-card > .price { display: none; }
  .trend-card .btn { margin-top: 6px; }
  .trend-card h3 { margin: 6px 0 2px; }
  .trend-card .muted { margin: 4px 0; }
  .ba { touch-action: pan-y; }
}

/* Home "phrase → image → video → ad" tabs */
.loop-tabs { display: flex; gap: 8px; margin: 12px 0 8px; overflow-x: auto; scrollbar-width: none; }
.loop-tab {
  flex: none; min-height: 44px; padding: 6px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--elevated); color: var(--fg); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
}
.loop-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.loop-main { max-width: 720px; }
.loop-panel { margin: 0; min-width: 0; }
.loop-panel[hidden] { display: none; }
.loop-panel img, .loop-panel video { margin: 0 auto; border-radius: 16px; max-height: 60vh; cursor: pointer; }
.loop-panel video { cursor: auto; }
.loop-panel figcaption { margin-top: 6px; font-size: 13px; color: var(--muted); text-align: center; }
.loop-example { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--elevated); border: 1px solid var(--border); }
.loop-video { position: relative; width: fit-content; max-width: 100%; margin: 0 auto; }
.loop-play {
  position: absolute; left: 50%; top: 50%; width: 72px; height: 72px; margin: -36px 0 0 -36px; border: 0; border-radius: 50%;
  background: rgba(20, 16, 12, .6); cursor: pointer; padding: 0;
}
.loop-play span { position: absolute; left: 29px; top: 22px; border-style: solid; border-width: 14px 0 14px 22px; border-color: transparent transparent transparent #fff; }
.loop-video.is-playing .loop-play { display: none; }
.loop-thumbs { display: flex; gap: 8px; margin-top: 10px; }
.loop-thumb { width: 64px; height: 64px; padding: 0; border: 2px solid transparent; border-radius: 12px; overflow: hidden; background: var(--elevated); cursor: pointer; opacity: .75; }
.loop-thumb.on { border-color: var(--accent); opacity: 1; }
.loop-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cookie notice: one small line on phones */
.cookie-short { display: none; }
@media (max-width: 759px) {
  .cookie, body:has(.thumb-bar) .cookie {
    left: 8px; right: 8px; bottom: calc(68px + env(safe-area-inset-bottom));
    flex-direction: row; align-items: center; gap: 8px; padding: 6px 8px 6px 12px;
    font-size: 12px; line-height: 1.25; border-radius: 12px;
  }
  .cookie .cookie-long { display: none; }
  .cookie .cookie-short { display: block; flex: 1; min-width: 0; }
  .cookie .btn, .cookie button.btn { min-height: 44px; padding: 4px 14px; font-size: 13px; width: auto; flex: none; }
}

/* Home trend carousel on phones: show the whole hero (head to feet), no crop */
@media (max-width: 759px) {
  .trend-card img { width: 100%; height: 330px; max-height: none; object-fit: contain; object-position: center; background: var(--surface); }
}

/* Current section: dark plate + bold, everywhere (side menu, bottom bar, "More" list) */
.rail nav a.on { background: var(--fg); color: var(--bg); font-weight: 700; }
.bottom-nav a.on, .bottom-nav button.on { color: var(--accent); font-weight: 800; background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 12px; }
.sheet .btn.on, .sheet a.btn.secondary.on { background: var(--fg); color: var(--bg); font-weight: 700; border-color: var(--fg); }

/* ===== One selected-state style everywhere (2026-10-10) =====
   Navigation: dark plate. Choices (tabs, modes, styles, lengths, packs, filters, languages, themes): green fill, white bold text. */
:root { --sel-bg: var(--accent); --sel-fg: var(--accent-fg, #fff); --sel-ring: color-mix(in srgb, var(--accent) 35%, transparent); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); }
.seg button.on, .aspect-picks button.on, .format-picks button.on, .view-switch a.on, .tabs a.active, .langs a.active,
.loop-tab.on, .quick-chips button.on, .chips .chip.on, .chips .chip.active, .chip[aria-current], .chip[aria-pressed="true"],
.niche-row a.on, .niche-row a.active, .look-styles .on, button[aria-pressed="true"]:not(.star):not([data-mic]):not(.mic),
.btn.on:not(.sheet *), a.btn.selected, button.btn.selected {
  background: var(--sel-bg); color: var(--sel-fg); border-color: var(--sel-bg); font-weight: 700;
  box-shadow: 0 0 0 3px var(--sel-ring);
}
.model-opt.on { outline: 3px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--elevated)); }
label.check:has(input:checked), .pay-method:has(input:checked), .theme-pick label:has(input:checked), .look-styles li:has(input:checked) {
  background: color-mix(in srgb, var(--accent) 14%, var(--elevated)); border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset; font-weight: 700; border-radius: 12px;
}
label.check { padding: 6px 8px; border: 1px solid transparent; border-radius: 12px; }
html[data-theme="dark"] .theme-toggle { background: var(--fg); color: var(--bg); }
/* hover / press / keyboard focus are visible on every button-like control */
.btn:hover, button:hover, .seg button:hover, .tabs a:hover, .langs a:hover, .chip:hover, .view-switch a:hover, .format-picks button:hover, .aspect-picks button:hover, .loop-tab:hover { filter: brightness(1.07); }
.btn:active, button:active, .seg button:active, .tabs a:active, .chip:active, .format-picks button:active, .aspect-picks button:active, .loop-tab:active { transform: translateY(1px) scale(.98); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.rail nav a:hover, .bottom-nav a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.rail nav a.on:hover { background: var(--fg); }

/* ===== Group A (2026-10-10): login, home, pricing, phone fixes ===== */
.accept-line { font-size: 13px; line-height: 1.4; margin: 6px 0 0; }
.accept-line a { text-decoration: underline; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; margin: 0 0 14px; cursor: pointer; }
.consent-check input { width: 20px; height: 20px; min-width: 20px; margin-top: 1px; accent-color: var(--accent, #2dd4bf); }
.consent-check a { text-decoration: underline; }
.btn.big { min-height: 56px; padding: 0 28px; font-size: 18px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; text-align: center; }
.try-free-box { margin: 14px 0; } .try-free-box .btn { width: 100%; }
.try-cta { margin: 14px 0 6px; } .try-cta .btn { width: 100%; max-width: 420px; }
.ex-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.ex-chips .chip { min-height: 44px; display: inline-flex; align-items: center; }
.more-home { margin-top: 18px; }
.more-home > summary.more-summary { list-style: none; display: flex; align-items: center; justify-content: center; min-height: 52px; cursor: pointer; font-weight: 700; }
.more-home > summary::-webkit-details-marker { display: none; }
.more-home[open] > summary.more-summary { margin-bottom: 8px; }
.top-login { display: none; }
.price-cards { display: none; }
.pkg-line { padding: 12px 14px; margin-bottom: 8px; }
.expiry-note { line-height: 1.45; }
.upload-row { flex-wrap: wrap; overflow: visible; }
.upload-row .btn { flex: 1 1 auto; white-space: nowrap; padding: 0 14px; font-size: 15px; min-width: 0; }
@media (max-width: 759px) {
  .top-login { display: inline-flex; margin-left: auto; min-height: 40px; align-items: center; }
  .hero-product { display: none; }
  .loop-panel img, .loop-panel video { max-height: 56vh; width: auto; max-width: 100%; margin: 0 auto; display: block; object-fit: contain; }
  .price-table-wrap { display: none; }
  .price-cards { display: grid; gap: 8px; margin: 12px 0; }
  .price-card { padding: 12px 14px; }
  .price-card h3 { font-size: 16px; margin: 0 0 4px; }
  .price-card .price-line { margin: 0; font-weight: 600; font-size: 16px; }
  .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  body:has(.price-dock) .footer, body:has(.thumb-bar) .footer { padding-bottom: calc(210px + env(safe-area-inset-bottom)); }
}

.ex-label { margin: 14px 0 0; font-size: 14px; }
.ex-chips .chip { border: 1.5px solid var(--accent); background: transparent; color: var(--fg); }
#login-easy .btn { width: 100%; }

/* ===== Group B (2026-10-10): phone fixes from the full site check ===== */
/* 4: model sheet */
.model-opt em.beginner-badge, .model-opt .beginner-badge { color: var(--accent-fg); background: var(--accent); padding: 2px 8px; border-radius: 999px; }
.sheet-head h2 { font-size: 22px; line-height: 1.2; margin: 0; min-width: 0; overflow-wrap: normal; word-break: normal; hyphens: none; }
.sheet-head .btn { flex: none; white-space: nowrap; }
/* 9: filters sheet has no empty gaps */
dialog.sheet .works-tools .tool { flex: 0 0 auto; }
dialog.sheet .works-tools { gap: 12px; }
/* 10: empty works */
.empty-mascot { flex-wrap: wrap; }
.empty-mascot > div { flex: 1 1 220px; min-width: 0; }
@media (max-width: 759px) { .empty-mascot { flex-direction: column; text-align: center; } .empty-mascot img { max-height: 160px; width: auto; } }
/* 16: the "i" stays on the same line as its text, small to look at, 44px to touch */
.with-info { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.info-dot { position: relative; width: 28px; height: 28px; min-width: 28px; min-height: 0; padding: 0; font-size: 14px; line-height: 1; flex: none; }
.info-dot::after { content: ""; position: absolute; inset: -8px; }
/* 15 / 17: scroll hint on cut strips, wrapped tab rows, bigger touch zones */
.fade-r { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 36px), transparent); }
.fade-l { -webkit-mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to left, #000 calc(100% - 36px), transparent); }
.fade-l.fade-r { -webkit-mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to right, transparent, #000 36px, #000 calc(100% - 36px), transparent); }
a.chip, button.chip, .btn.small, button.small, .view-switch a, .theme-toggle, .menu-toggle { min-height: 44px; }
.btn.small, button.small { display: inline-flex; align-items: center; }
a.chip, button.chip { display: inline-flex; align-items: center; }
.langs a { min-height: 40px; min-width: 40px; display: inline-flex; align-items: center; justify-content: center; }
/* 14: carousel position dots. Each dot is a 44px button; the mark itself stays small. */
.trend-dots { display: none; justify-content: center; gap: 0; margin: 8px 0 22px; }
#trend-mail { margin-top: 4px; }
.trend-dots button {
  min-width: 44px; min-height: 44px; padding: 0; border: 0; background: transparent; color: inherit;
  display: inline-grid; place-items: center; cursor: pointer;
}
.trend-dots button i { width: 8px; height: 8px; border-radius: 50%; background: var(--border); display: block; pointer-events: none; }
.trend-dots button.on i { background: var(--accent); width: 18px; border-radius: 6px; }
.trend-dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 759px) {
  .trend-dots {
    display: flex; position: relative; z-index: 2;
    scroll-margin-bottom: calc(var(--tabbar-h, 60px) + var(--cookie-h, 64px) + 16px + env(safe-area-inset-bottom) + var(--kb, 0px));
  }
  .trend-grid, .carousel, .carousel-btn {
    scroll-margin-bottom: calc(var(--tabbar-h, 60px) + var(--cookie-h, 64px) + 16px + env(safe-area-inset-bottom) + var(--kb, 0px));
  }
  .tabs { flex-direction: row; flex-wrap: wrap; }
  .tabs a { flex: 1 1 28%; text-align: center; min-height: 44px; display: flex; align-items: center; justify-content: center; }
  .seg { flex-wrap: wrap; overflow: visible; }
  .seg button { flex: 1 1 28%; min-height: 44px; }
  /* 5: bottom menu keeps whole words, also in Armenian */
  .bottom-nav { gap: 2px; padding-left: 4px; padding-right: 4px; }
  .bottom-nav a, .bottom-nav button { overflow-wrap: normal; word-break: normal; hyphens: none; font-size: 11px; padding: 6px 1px; }
  html[lang="hy"] .bottom-nav a, html[lang="hy"] .bottom-nav button { font-size: 10px; letter-spacing: -0.2px; }
  /* 6: comparison table becomes stacked rows */
  .compare table, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare thead { display: none; }
  .compare tr { border: 1px solid var(--border); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: var(--elevated); }
  .compare td { border: 0; padding: 3px 0; overflow-wrap: break-word; word-break: normal; }
  .compare td:first-child { font-weight: 700; }
  .compare td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
}
dialog.sheet .sheet-head .btn { width: auto; min-width: 96px; margin-top: 0; }
@media (max-width: 759px) {
  .format-picks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; overflow: visible; }
  .format-picks button { min-width: 0; padding-left: 4px; padding-right: 4px; }
}
/* 17: every tap target is at least 44px tall */
.brand { min-height: 44px; display: inline-flex; align-items: center; }
.legal-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
details > summary { min-height: 44px; display: flex; align-items: center; }
.cookie a, .cookie .btn { min-height: 44px; display: inline-flex; align-items: center; }

/* ===== Group C (2026-10-10): feed, balance chip, hero, compare ===== */
.feed .trend-card { display: flex; flex-direction: column; padding: 10px; }
.feed .trend-card img { width: 100%; height: 240px; max-height: 240px; object-fit: contain; background: color-mix(in srgb, var(--accent) 6%, var(--elevated)); }
.feed .trend-card h3 { font-size: 17px; margin: 8px 0 2px; }
.feed .trend-card .btn { margin-top: auto; }
@media (max-width: 759px) {
  .feed .trend-grid > * { flex: 0 0 66%; max-width: 66%; }
  #trends-home.feed { padding-bottom: 8px; }
}
@media (min-width: 760px) { .feed .trend-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.bal-chip { white-space: nowrap; }
.bal-chip.warn { background: #b4530a; color: #fff; border-color: #b4530a; font-weight: 700; }
@media (max-width: 420px) { .bal-chip { font-size: 12px; padding-left: 8px; padding-right: 8px; } .top-tools { gap: 6px; } }
.hero-now { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.hero-now img { width: 96px; height: 96px; object-fit: cover; border-radius: 18px; }
.hero-option { margin-bottom: 12px; }
.hero-option input[type="text"], .hero-option input[type="file"] { width: 100%; min-height: 44px; }
.hero-use { margin-top: 8px; }
.compare-link .btn { width: 100%; }
.cmp-list { display: grid; gap: 8px; margin: 8px 0 12px; }
.cmp-opt { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 14px; min-height: 56px; }
.cmp-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .cmp-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cmp-card img { width: 100%; height: auto; border-radius: 14px; display: block; }
.bal-mobile { display: none; }
@media (max-width: 759px) { .bal-mobile { display: inline-flex; margin-left: auto; align-items: center; min-height: 40px; max-width: 70%; overflow: hidden; text-overflow: ellipsis; } }
.bal-left { margin-left: .35em; }

/* Group D: ready-made settings, camera moves, result tools */
.line-box { margin: 10px 0 4px; }
.line-box > label { display: block; margin-bottom: 2px; }
.line-picks { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 4px; }
.line-picks button {
  min-height: 44px; padding: 8px 14px; border-radius: 14px; border: 1px solid var(--border);
  background: var(--elevated); color: var(--fg); font-size: 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; line-height: 1.2;
}
.line-picks button small { opacity: .7; font-size: 12px; }
.line-picks button[aria-pressed="true"] small { opacity: .85; }
.refine-panel { margin: 14px 0 6px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--elevated); }
.refine-panel h2 { font-size: 17px; margin: 0 0 2px; }
.refine-panel .muted { margin: 0 0 10px; font-size: 14px; }
.refine-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.refine-grid form { margin: 0; }
.refine-btn { width: 100%; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 6px; line-height: 1.15; white-space: normal; text-align: center; }
.refine-btn small { opacity: .75; font-size: 13px; }
@media (min-width: 760px) { .refine-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nowrap { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
/* chips: show every chip, never cut off at the right edge */
.quick-chips { flex-wrap: wrap; overflow: visible; }
.quick-chips button { min-height: 44px; }
.ba-tag.was, .ba-tag.now { pointer-events: none; }

/* Group E: redo box, auto-check note, fine print */
.fine { font-size: 12px; line-height: 1.4; color: var(--muted); margin: 6px 0 0; }
.redo-box { margin: 12px 0 4px; padding: 12px; border: 1px solid var(--border); border-radius: 16px; background: var(--elevated); }
.redo-btn { width: 100%; min-height: 56px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; line-height: 1.15; }
.redo-btn small { opacity: .8; font-size: 13px; }
.redo-btn s { opacity: .6; margin: 0 2px; }
.qc-note { margin: 10px 0; padding: 10px 12px; border-radius: 12px; background: var(--elevated); border: 1px solid var(--border); font-size: 14px; }
.qc-note a { margin-left: 6px; font-weight: 600; }

/* One look and behaviour for every pop-up hint: "?" or "i" button, small card beside/under it. */
.tip-btn {
  display: inline-grid; place-items: center; vertical-align: middle; margin-left: 6px;
  width: 28px; height: 28px; min-width: 28px; padding: 0; position: relative;
  border-radius: 999px; border: 1px solid var(--border); background: var(--elevated); color: var(--fg);
  font: 700 14px/1 inherit; cursor: pointer;
}
.tip-btn::after { content: ""; position: absolute; inset: -8px; }
.tip-btn[aria-expanded="true"], .info-dot[aria-expanded="true"] { background: var(--fg); color: var(--bg); }
.tip-pop {
  position: fixed; z-index: 80; width: min(300px, calc(100vw - 16px)); box-sizing: border-box;
  padding: 12px 14px; border-radius: 14px; background: var(--elevated); color: var(--fg);
  border: 1px solid var(--border); box-shadow: var(--shadow); font-size: 14px; line-height: 1.45; text-align: left;
}
.tip-pop[hidden] { display: none !important; }
.tip-pop .tip-title { display: block; margin-bottom: 4px; font-size: 15px; }
.tip-pop .tip-title:empty, .tip-pop .tip-pics:empty { display: none; }
.tip-pop .tip-pics { min-height: 0; margin: 6px 0 8px; }
.tip-pop .tip-text { margin: 0; }

/* Faces and characters are never cut: show the whole picture, or focus on the upper part where faces are. */
.offer-pair .ba img, .offer-pair .ba-before, .offer-still img, .idea-media img, .idea-grid .card > img,
.compare .card img, .phone-reel .sample, .family-card img, .trend-card img {
  object-fit: contain; object-position: center;
  background: color-mix(in srgb, var(--accent) 6%, var(--elevated));
}
.work-media img, .work-media video, .loop-thumb img, .hero-now img, .shelf-mascot { object-position: 50% 15%; }

/* Home composer on a phone: compact "Continue" button under the field, shown only when there is text */
@media (max-width: 759px) {
  .composer .thumb-bar {
    position: static; left: auto; right: auto; bottom: auto; width: 100%;
    min-height: 44px; max-height: 64px; margin-top: 10px; padding: 10px 16px; font-size: 15px; overflow: hidden;
    transition: opacity .2s ease, max-height .2s ease, min-height .2s ease, margin .2s ease, padding .2s ease, visibility 0s;
  }
  .composer .thumb-bar.thumb-wait {
    opacity: 0; visibility: hidden; pointer-events: none;
    min-height: 0; max-height: 0; margin-top: 0; padding-top: 0; padding-bottom: 0; border-width: 0;
    transition: opacity .2s ease, max-height .2s ease, min-height .2s ease, margin .2s ease, padding .2s ease, visibility 0s linear .2s;
  }
  .composer { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .composer .thumb-bar, .composer .thumb-bar.thumb-wait { transition: none; }
}

/* Home: the "More" button goes away once it has been pressed */
details.more-home[open] > summary.more-summary { display: none; }

/* Pop-up sheets (intro and others) on a computer: a neat centred card instead of a bare browser dialog */
@media (min-width: 760px) {
  dialog.sheet {
    border: 0; border-radius: var(--r-lg); padding: 20px 22px; margin: auto;
    width: min(520px, calc(100% - 32px)); max-height: 86vh; overflow: auto;
    background: var(--bg); color: var(--fg); box-shadow: var(--shadow); font: inherit;
  }
  dialog.sheet::backdrop { background: rgba(18, 22, 20, 0.45); }
  dialog.sheet h2 { margin: 0 0 8px; }
  dialog.sheet .intro-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 14px; }
}

/* Compare page: pictures keep their own proportions (no stretching on a computer) */
.idea-grid .idea-card > img { height: auto; }

/* Models page: example clips keep their own shape; small portrait clips are not blown up */
.model-example video { width: auto; max-width: 100%; height: auto; max-height: 360px; margin: 0 auto; }

/* Photoshoot catalog (admin preview) */
.ps-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}
.ps-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:16px}
.ps-card h3{margin:0 0 8px}
.ps-shots{display:flex;gap:6px;overflow-x:auto;scroll-snap-type:x mandatory}
.ps-shots img{flex:0 0 auto;width:calc(33.3% - 4px);min-width:150px;height:auto;aspect-ratio:4/5;object-fit:cover;object-position:top;border-radius:10px;scroll-snap-align:start}
.ps-suggest{margin-top:24px;max-width:640px}
.ps-suggest textarea{width:100%;margin:6px 0 10px}
.ps-price-table{border-collapse:collapse;width:100%;font-size:.95rem}
.ps-price-table th,.ps-price-table td{padding:.4rem .55rem;border-bottom:1px solid rgba(0,0,0,.08);text-align:left;white-space:nowrap}
.ps-price-table tr.ps-default td{font-weight:600}
.ps-prices .table-wrap{overflow-x:auto}
@media (max-width:640px){
.ps-prices .table-wrap{overflow-x:visible}
.ps-price-table thead{display:none}
.ps-price-table,.ps-price-table tbody,.ps-price-table tr,.ps-price-table td{display:block;width:100%}
.ps-price-table tr{border:1px solid rgba(0,0,0,.1);border-radius:12px;padding:.5rem .75rem;margin:0 0 .6rem;background:var(--card,#fff)}
.ps-price-table td{border:0;padding:.18rem 0;white-space:normal;display:flex;justify-content:space-between;gap:.5rem}
.ps-price-table td.ps-model{font-weight:600;padding-bottom:.35rem;display:block}
.ps-price-table td[data-label]::before{content:attr(data-label);color:var(--muted,#666);font-weight:400}
}
.ps-total{position:sticky;bottom:12px;z-index:44;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
 margin:16px 0;padding:10px 14px;background:var(--elevated);box-shadow:var(--shadow);border-radius:var(--r-lg);border:1px solid var(--border)}
.ps-total-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:1;min-width:0;font-weight:600}
.ps-total select{width:auto;min-height:36px;padding:4px 8px}
.ps-total.has-pick{border-color:var(--accent)}
.ps-pick{display:flex;align-items:center;gap:8px;margin-top:6px;cursor:pointer;font-weight:600}
.ps-pick input{width:auto;min-height:0;transform:scale(1.25)}
.ps-card.picked{outline:2px solid var(--accent);outline-offset:2px}
@media (max-width:759px){
.ps-total{padding:8px 10px;gap:6px;font-size:14px}
.ps-total-line{gap:6px}
.ps-total .btn{width:100%;min-height:40px}
}

/* 2026-10-13: portrait before/after cards — whole head, no empty bands, tags off the faces */
#offer-salonlook .ba img, #offer-colorize .ba img, #offer-repair .ba img, #offer-studioshot .ba img { object-fit: cover; object-position: 50% 0; }
.offer-pair .ba-tag.was, .offer-pair .ba-tag.now { top: auto; bottom: 44px; }
.offer-pair .ba-tag.src { top: auto; bottom: 72px; }
.idea-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; height: 100%; }
.idea-duo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.idea-duo-big { gap: 6px; border-radius: inherit; overflow: hidden; }
/* Two square stills side by side: the frame is 2:1 so both fill it with no bands and nothing cut. */
.idea-grid .idea-media:has(.idea-duo), .idea-media:has(.idea-duo) { aspect-ratio: 2 / 1; height: auto; }
.idea-media .idea-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; width: 100%; height: 100%; }
.idea-media .idea-duo img, .idea-grid .idea-media .idea-duo img, .idea-hero .idea-duo img {
  width: 100%; height: 100%; max-height: none; aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 22%; background: none;
}
/* Carousel for cards with several stills. Each still fills the whole frame. */
.carousel { position: relative; aspect-ratio: 1 / 1; height: auto; }
.carousel .carousel-track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; }
.carousel .carousel-track::-webkit-scrollbar { display: none; }
.carousel .carousel-slide { flex: 0 0 100%; width: 100%; height: 100%; scroll-snap-align: start; display: block; }
.carousel .carousel-slide img, .idea-grid .carousel .carousel-slide img, .idea-hero .carousel .carousel-slide img {
  width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 22%; display: block; background: none;
}
.carousel-count { position: absolute; top: 10px; right: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.62); color: #fff; font: 600 14px/1.2 system-ui, sans-serif; pointer-events: none; }
.carousel-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: #111; font-size: 26px; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.25); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 0 3px; }
.carousel-btn.prev { left: 8px; }
.carousel-btn.next { right: 8px; }
.carousel-btn:disabled { opacity: .35; cursor: default; }
.carousel .carousel-btn, .carousel .carousel-count { z-index: 3; }
.carousel .carousel-count { font-size: 15px; padding: 5px 12px; }
/* No transform on the arrows: a global :active scale must not move them away from the pointer. */
.carousel .carousel-btn, .carousel .carousel-btn:active, .carousel .carousel-btn:hover { top: calc(50% - 20px); transform: none; }

/* Auth scene card (signup / magic link) */
.auth-layout .scene-card { margin: 0; --glow: rgba(45, 212, 191, 0.34); --glow-strong: rgba(45, 212, 191, 0.62); }
.scene-frame {
  position: relative; overflow: hidden; line-height: 0;
  aspect-ratio: 16 / 9; width: 100%; max-width: 640px; margin: 0 auto;
  border-radius: 22px; background: #071224;
  border: 1px solid rgba(45, 212, 191, 0.45);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.12), 0 10px 34px -8px var(--glow), 0 0 28px -6px var(--glow);
  transition: box-shadow .45s ease, border-color .45s ease;
}
html[data-theme="dark"] .scene-frame { border-color: rgba(45, 212, 191, 0.55); }
.scene-frame picture, .scene-frame img, .scene-frame video {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .5s ease;
}
.scene-frame video, .scene-frame .scene-sent { position: absolute; inset: 0; }
.scene-frame video { opacity: 0; }
.scene-frame.is-playing video { opacity: 1; }
.scene-card.is-focus .scene-frame {
  border-color: rgba(45, 212, 191, 0.85);
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.3), 0 14px 48px -6px var(--glow-strong), 0 0 46px -4px var(--glow-strong);
}
.scene-card.is-focus .scene-frame img, .scene-card.is-focus .scene-frame video { transform: scale(1.035); }
.scene-card.is-sent .scene-sent { animation: scene-sent-in .9s ease .35s both; }
@keyframes scene-sent-in { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@media (max-width: 759px) {
  .auth-layout .scene-frame { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .scene-frame, .scene-frame img, .scene-frame video { transition: none; }
  .scene-card.is-focus .scene-frame img { transform: none; }
  .scene-card.is-sent .scene-sent { animation: none; }
  .scene-frame video { display: none; }
}

/* 2026-10-15: Mher's rule — every picture shown whole, nothing cropped.
   All former object-fit: cover spots switch to contain on a dark backdrop. */
.work-media img, .work-media video,
.offer-pair .ba img,
#offer-salonlook .ba img, #offer-colorize .ba img, #offer-repair .ba img, #offer-studioshot .ba img,
.track-art img, .loop-thumb img, .hero-now img,
.idea-duo img, .idea-media .idea-duo img, .idea-grid .idea-media .idea-duo img, .idea-hero .idea-duo img,
.carousel .carousel-slide img, .idea-grid .carousel .carousel-slide img, .idea-hero .carousel .carousel-slide img,
.scene-frame picture, .scene-frame img, .scene-frame video,
.ps-shots img, .trend-card img,
.phone-reel .sample, .compare .card img, .idea-grid .card > img, .shelf-banner, .shelf-mascot {
  object-fit: contain !important; object-position: center !important; background: transparent !important;
}
/* Blurred, dimmed copy of the same picture behind it (set by /static/blurfill.js). */
.blur-fill { display: block; position: relative; overflow: hidden; isolation: isolate; border-radius: inherit;
  background: #0b1530; }
.blur-fill::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--blur-src) center / cover no-repeat; filter: blur(22px) brightness(0.6) saturate(1.1);
  transform: scale(1.2); }
.blur-fill > img, .blur-fill > video, .blur-fill > picture, .blur-fill > picture img { position: relative; }
.trend-card .blur-fill, .compare .card .blur-fill, .idea-grid .card > .blur-fill { border-radius: 16px; }
.trend-card .blur-fill img { margin: 0 auto; }
.trend-card img { max-height: none !important; }

/* ===== Stage 2: calm neural background (dark theme only, static, no video) ===== */
html[data-theme="dark"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 85% -10%, rgba(95, 212, 196, 0.07), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(90, 120, 220, 0.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cg fill='none' stroke='%235fd4c4' stroke-opacity='0.05'%3E%3Cpath d='M20 30L80 20L140 50M20 30L50 90L80 20M50 90L120 110L140 50M50 90L30 140M120 110L90 150'/%3E%3C/g%3E%3Cg fill='%235fd4c4' fill-opacity='0.12'%3E%3Ccircle cx='20' cy='30' r='1.6'/%3E%3Ccircle cx='80' cy='20' r='1.6'/%3E%3Ccircle cx='140' cy='50' r='1.6'/%3E%3Ccircle cx='50' cy='90' r='1.6'/%3E%3Ccircle cx='120' cy='110' r='1.6'/%3E%3Ccircle cx='30' cy='140' r='1.2'/%3E%3Ccircle cx='90' cy='150' r='1.2'/%3E%3C/g%3E%3C/svg%3E");
  background-attachment: fixed, fixed, fixed;
  background-size: auto, auto, 160px 160px;
}
html[data-theme="dark"] .card, html[data-theme="dark"] .section .card { background: color-mix(in srgb, var(--surface) 92%, transparent); }
.hl { color: var(--accent); }

/* Guide hero (mockup A) */
.guide-hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 40px 0 24px; }
.guide-hero h1 { font-family: var(--sans); font-weight: 700; font-size: clamp(32px, 5vw, 52px); margin: 6px 0 12px; }
.guide-hero .kicker { color: var(--accent); font-size: 13px; letter-spacing: .08em; margin: 0; }
.guide-hero .lead { color: var(--muted); font-size: 18px; margin: 0 0 20px; }
.btn.glow { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 6px 24px color-mix(in srgb, var(--accent) 22%, transparent); }
.guide-bubble { display: flex; gap: 12px; align-items: center; margin-top: 22px; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--fg); text-decoration: none; max-width: 440px; }
.guide-bubble img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; object-position: 50% 12%; background: #0f1a2c; flex: none; }
.guide-ba { margin: 0; padding: 14px; border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); background: color-mix(in srgb, var(--surface) 80%, transparent); }
.guide-ba .ba { border-radius: var(--r-lg); overflow: hidden; max-width: 380px; margin: 0 auto; aspect-ratio: 940 / 1672; }
.guide-ba .ba img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.guide-ba .ba > img:first-child { position: relative; }
.guide-ba .ba-tag { position: absolute; top: 10px; padding: 3px 10px; border-radius: 999px; font-size: 12px; background: rgba(6, 18, 29, .75); color: #e6eef5; }
.guide-ba .ba-tag.left { left: 10px; } .guide-ba .ba-tag.right { right: 10px; color: #5fd4c4; }
.guide-ba figcaption { text-align: center; font-size: 12px; margin-top: 8px; }

/* What AI will do for you (mockup B2) */
.ai-for-you h2, .best-works h2 { font-family: var(--sans); font-weight: 700; }
.afy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.afy-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 12px 12px 16px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--surface) 90%, transparent); color: var(--fg); text-decoration: none; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.afy-card:hover, .afy-card:focus-visible { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent); transform: translateY(-2px); }
.afy-ic { display: grid; place-items: center; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--r); background: #070d18; overflow: hidden; margin-bottom: 8px; }
.afy-ic img { width: 100%; height: 100%; object-fit: contain; }
.afy-t { font-weight: 700; font-size: 18px; }
.afy-s { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.afy-btn { margin-top: auto; pointer-events: none; }

/* Best works feed: equal tiles, whole picture on a blurred copy */
.best-works .live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; opacity: .8; }
.bw-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.bw-tile { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); background: #070d18; }
.bw-tile .blur-fill, .bw-tile > img { width: 100%; height: 100%; }
.bw-tile img { width: 100%; height: 100%; object-fit: contain; display: block; position: relative; }
.bw-tile figcaption { position: absolute; left: 8px; bottom: 8px; z-index: 2; padding: 2px 10px; border-radius: 999px; font-size: 12px; background: rgba(6, 18, 29, .78); color: #bfeee6; }
.bw-note { font-size: 12px; margin-top: 8px; }

@media (max-width: 759px) {
  .guide-hero { grid-template-columns: 1fr; gap: 20px; padding-top: 20px; }
  .guide-ba .ba { max-width: 300px; }
  .afy-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .afy-t { font-size: 16px; } .afy-s { font-size: 13px; }
  .bw-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  /* Compact cookie strip at the bottom, above the tab bar */
  .cookie { left: 8px !important; right: 8px !important; padding: 6px 10px !important; gap: 8px !important; font-size: 12.5px !important; line-height: 1.3; display: flex; align-items: center; border-radius: 12px; max-width: none !important; }
  .cookie .cookie-long { display: none !important; }
  .cookie .cookie-short { display: inline !important; flex: 1; }
  .cookie .btn.small { min-height: 34px; padding: 4px 12px; }
}
@media (prefers-reduced-motion: reduce) { .afy-card { transition: none; } .afy-card:hover { transform: none; } }
/* stage1b: divider "или по почте" + round new-Bars head in the tip */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 14px 0; color: var(--muted, #6b7280); font-size: .9rem; text-align: center; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: currentColor; opacity: .35; }
.bars-tip img.bars-head { width: 56px; height: 56px; max-width: 56px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(45,212,191,.45); }

/* New Bars head everywhere the small mascot shows (brand, footer, rail) */
img.face.bars22, img.cub.bars22 { border-radius: 50%; object-fit: cover; aspect-ratio: 1; height: auto; background: #0f1a2c; box-shadow: 0 0 0 1px rgba(95, 212, 196, .35); }
img.pose.bars22-pose { object-fit: contain; height: auto; max-height: 260px; width: auto; max-width: 100%; }

/* Stage 3: neutral model badges (monogram, no vendor logos) */
.mbadge { --mh: 172; position: relative; display: inline-grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 16px;
  background: radial-gradient(120% 120% at 30% 20%, hsl(var(--mh) 55% 30% / .9), hsl(var(--mh) 45% 12% / .95));
  box-shadow: inset 0 0 0 1px hsl(var(--mh) 70% 65% / .45), 0 0 14px hsl(var(--mh) 70% 55% / .18); }
.mbadge .mb-mono { font-family: var(--sans); font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: hsl(var(--mh) 80% 88%); }
.mbadge .mb-ring { position: absolute; inset: 5px; border-radius: 12px; border: 1px dashed hsl(var(--mh) 70% 70% / .25); }
.mbadge.sm { width: 34px; height: 34px; border-radius: 11px; }
.mbadge.sm .mb-mono { font-size: 12px; } .mbadge.sm .mb-ring { inset: 3px; border-radius: 8px; }
.mcell { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-bottom: 6px; }
.mcell .mname { font-weight: 700; font-size: 16px; margin: 0; font-family: var(--sans); }
.mrow { display: inline-flex; align-items: center; gap: 10px; }
.tm-note { font-size: 12px; margin-top: 10px; }
.mcell .mkind { font-size: 13px; margin-top: -4px; }

/* Stage 3 mockup: Bars for work / Bars as a neural network / We are growing */
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.job-card { display: flex; flex-direction: column; gap: 4px; padding: 12px 12px 16px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--surface) 90%, transparent); }
.job-card h3 { font-family: var(--sans); font-weight: 700; font-size: 17px; margin: 8px 0 0; }
.job-card .muted { margin: 0 0 10px; font-size: 14px; }
.job-card .btn { margin-top: auto; align-self: flex-start; }
.wc-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wc-pair figure { position: relative; margin: 0; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; background: #070d18; border: 1px solid var(--border); }
.wc-pair img { width: 100%; height: 100%; object-fit: contain; display: block; }
.wc-pair figcaption { position: absolute; left: 6px; top: 6px; font-size: 11px; padding: 1px 8px; border-radius: 999px; background: rgba(6, 18, 29, .8); color: #c9d6e2; }
.wc-pair figcaption.on { color: #5fd4c4; }
.wc-pair .txt { display: grid; place-items: center; padding: 26px 10px 10px; }
.wc-pair .txt p { margin: 0; font-size: 13px; line-height: 1.4; color: var(--muted); font-family: var(--mono); word-break: break-word; }
.wc-pair .txt.after p { color: var(--fg); font-family: var(--sans); }
.net-line { display: flex; gap: 8px; margin-top: 12px; max-width: 720px; }
.net-line input { flex: 1; min-width: 0; min-height: 52px; padding: 0 16px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); background: var(--input); color: var(--fg); font: inherit; }
.net-line .btn { border-radius: 999px; min-width: 52px; }
.net-reply { display: flex; gap: 10px; align-items: center; margin-top: 12px; max-width: 720px; padding: 10px 14px; border-radius: var(--r-lg); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.net-reply p { margin: 0; } .net-reply img { width: 40px; height: 40px; }
.mock-tag { font-size: 12px; margin-top: 6px; }
.net-pro { margin-top: 10px; } .net-pro summary { cursor: pointer; color: var(--accent); }
.net-models { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 12px; align-items: center; }
.net-models a.mrow { color: var(--fg); text-decoration: none; font-size: 14px; }
.grow-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.grow-card { position: relative; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 90%, transparent); display: flex; flex-direction: column; color: var(--fg); text-decoration: none; cursor: pointer; transition: border-color .18s, box-shadow .18s, transform .18s; }
.grow-card summary { list-style: none; display: flex; flex-direction: column; align-items: flex-start; text-align: left; cursor: pointer; }
.grow-card, .grow-card:hover, .grow-card:focus-visible, .grow-card *:hover { text-decoration: none; }
.grow-pick a { min-height: 36px; min-width: 40px; } .grow-card summary::-webkit-details-marker { display: none; }
.grow-card:hover, .grow-card:focus-visible, .grow-card:focus-within, .grow-card[open] { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 18%, transparent); transform: translateY(-2px); }
.grow-go { position: absolute; top: 12px; right: 14px; font-style: normal; color: var(--accent); opacity: .7; transition: transform .18s, opacity .18s; }
.grow-card:hover .grow-go, .grow-card:focus-visible .grow-go { opacity: 1; transform: translateX(3px); }
.grow-langs[open] .grow-go { transform: rotate(90deg); }
.grow-pick { margin-top: 10px; flex-wrap: wrap; }
.grow-row strong { font-size: 34px; color: var(--accent); font-family: var(--sans); }
.grow-row span { color: var(--muted); }
@media (max-width: 759px) { .work-grid { grid-template-columns: 1fr; } .grow-row { gap: 8px; } .grow-row strong { font-size: 26px; } .grow-row span { font-size: 12px; } }
.ao-box { padding: 22px 24px; border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--surface)), var(--surface)); box-shadow: 0 0 30px color-mix(in srgb, var(--accent) 12%, transparent); }
.ao-box h2 { font-family: var(--sans); font-weight: 700; margin: 0 0 8px; } .ao-box p { margin: 0; font-size: 17px; } .ao-box .ao-note { font-size: 13px; margin-top: 8px; }

/* Stage 4 mockup: why Bars + honest calculator */
.why-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 12px; }
.why-card { padding: 16px; border-radius: var(--r-lg); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); background: color-mix(in srgb, var(--surface) 90%, transparent); }
.why-card strong { font-size: 17px; } .why-card p { margin: 6px 0 0; }
.calc { margin-top: 18px; padding: 18px; border-radius: var(--r-xl); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); background: color-mix(in srgb, var(--surface) 92%, transparent); }
.calc h3 { font-family: var(--sans); font-weight: 700; margin: 0 0 4px; }
.calc-rows { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 18px; margin: 12px 0; }
.calc-rows label { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.calc-rows em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.calc-rows input { width: 90px; min-height: 44px; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--fg); padding: 0 10px; font: inherit; }
.calc-out { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.co { padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
.co strong { font-size: 26px; font-family: var(--sans); } .co.ours { border-color: color-mix(in srgb, var(--accent) 55%, transparent); } .co.ours strong { color: var(--accent); }
.co small { font-size: 12px; color: var(--muted); } .co small a { color: var(--muted); }
.calc-note { font-size: 12px; margin-top: 10px; }
@media (max-width: 759px) { .why-grid, .calc-rows, .calc-out { grid-template-columns: 1fr; } }
.calc-src { display: inline; } .calc-src summary { display: inline; cursor: pointer; color: var(--accent); } .calc-src[open] a { margin-left: 6px; }
.net-soon{margin:10px 0}.badge-soon{display:inline-block;padding:4px 12px;border-radius:999px;border:1px solid rgba(45,212,191,.5);color:#5eead4;font-size:.85rem}

/* Stage 5: savings calculator */
.calc5 { padding: 22px; }
.c5-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.c5-head p { margin: 4px 0 0; }
.c5-save { display: flex; flex-direction: column; align-items: flex-end; padding: 12px 18px; border-radius: var(--r-xl); background: color-mix(in srgb, var(--accent) 12%, transparent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.c5-save span, .c5-save small { color: var(--muted); font-size: 13px; }
.c5-save strong { font-family: var(--sans); font-size: clamp(28px, 4vw, 40px); line-height: 1.1; color: var(--accent); }
.c5-svcs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.c5-svc { border: 1px solid var(--border); border-radius: 16px; padding: 12px; opacity: .6; transition: opacity .3s, border-color .3s; }
.c5-svc.is-on { opacity: 1; border-color: color-mix(in srgb, var(--accent) 35%, var(--border)); }
.c5-tog { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; color: var(--fg); font: inherit; text-align: left; cursor: pointer; padding: 0; min-height: 44px; }
.c5-name { flex: 1; } .c5-name em { display: block; font-style: normal; font-size: 12px; color: var(--muted); }
.c5-sw { width: 40px; height: 22px; border-radius: 11px; background: var(--border); position: relative; flex: none; transition: background .3s; }
.c5-sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--fg); transition: transform .3s; }
.is-on .c5-sw { background: var(--accent); } .is-on .c5-sw::after { transform: translateX(18px); background: #04110f; }
.c5-range { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.c5-range b { color: var(--fg); font-size: 15px; }
.c5-range input { width: 100%; accent-color: var(--accent); }
.c5-inst { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.c5-bars { display: grid; gap: 10px; }
.c5-bar { display: grid; grid-template-columns: minmax(120px, 220px) 1fr auto; align-items: center; gap: 12px; font-size: 14px; }
.c5-track { height: 14px; border-radius: 7px; background: color-mix(in srgb, var(--border) 60%, transparent); overflow: hidden; }
.c5-track i { display: block; height: 100%; border-radius: 7px; transition: width .5s ease; }
.c5-bar.theirs i { background: color-mix(in srgb, var(--muted) 70%, transparent); }
.c5-bar.ours i { background: var(--accent); }
.c5-bar.ours strong { color: var(--accent); }
@media (max-width: 759px) { .c5-svcs { grid-template-columns: 1fr; } .c5-save { align-items: flex-start; width: 100%; } .c5-bar { grid-template-columns: 1fr auto; } .c5-bar .c5-track { grid-column: 1 / -1; grid-row: 2; } }
[x-cloak] { display: none !important; }
/* Stage 5b: keep content clear of the fixed bottom bar on phones (scroll targets, focus, anchors) */
@media (max-width: 759px) {
  html { scroll-padding-bottom: calc(80px + env(safe-area-inset-bottom)); scroll-padding-top: 72px; }
  .calc5 { scroll-margin-bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* Stage 6: personal cabinet background */
.user-bg { position: fixed; inset: 0; z-index: -1; background-size: cover; background-position: center; pointer-events: none; }
.user-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 10, 13, .62), rgba(5, 10, 13, .78)); }
body:has(.user-bg) .card { background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(6px); }
.bg-card > summary.bg-summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.bg-card > summary.bg-summary::-webkit-details-marker { display: none; }
.bg-card > summary.bg-summary h2 { margin: 0; }
.bg-card > summary.bg-summary::after { content: "▸"; color: var(--muted); font-size: 14px; }
.bg-card[open] > summary.bg-summary::after { content: "▾"; }
.bg-now { font-size: 13px; text-align: right; }
.bg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 12px 0; }
.bg-opt { display: flex; flex-direction: column; gap: 6px; padding: 6px; border-radius: 14px; border: 1px solid var(--border); background: none; color: var(--fg); font: inherit; font-size: 13px; cursor: pointer; text-align: center; }
.bg-opt.is-on { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.bg-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; border-radius: 10px; background: #070d12; }
.bg-plain { background: var(--bg, #0b1114); border: 1px dashed var(--border); }
.bg-upload input[type=file] { max-width: 100%; }

/* Stage 6b: own background shown whole (contain) on a blurred fill of the same picture */
.user-bg.own { background: #05090c; }
.user-bg.own i { position: absolute; inset: 0; background-repeat: no-repeat; background-position: center; }
.user-bg.own .ub-fill { background-size: cover; filter: blur(32px) saturate(1.1); transform: scale(1.15); opacity: .7; }
.user-bg.own .ub-img { background-size: contain; }
.user-bg::after { z-index: 1; }
html.ui-text-lg main.wrap, html.ui-text-lg .side-nav, html.ui-text-lg .bottom-nav { zoom: 1.1; }
/* history header: compact title + summary + create */
.works-head { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.works-head h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.1; }
.works-head .works-keep { margin: 6px 0 0; font-size: 13px; }
.wh-side { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wh-sum { display: flex; gap: 6px; padding: 6px; border-radius: 16px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.wh-sum > a, .wh-sum > span { display: flex; flex-direction: column; padding: 4px 12px; border-radius: 12px; color: var(--fg); text-decoration: none; min-width: 84px; }
.wh-sum > a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.wh-sum span span { font-size: 12px; color: var(--muted); } .wh-sum strong { font-size: 16px; } .wh-sum small { font-size: 12px; color: var(--accent); }
@media (max-width: 759px) { .works-head { align-items: stretch; } .wh-side { width: 100%; } .wh-sum { flex: 1; } .wh-sum > * { flex: 1; min-width: 0; } .wh-side .btn { flex: none; align-self: stretch; display: grid; place-items: center; } }
.folder-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; min-height: 36px; border-radius: 999px; border: 1px solid var(--border); color: var(--fg); text-decoration: none; font-size: 14px; cursor: pointer; list-style: none; }
.chip::-webkit-details-marker { display: none; }
.chip.on { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.chip em { font-style: normal; color: var(--muted); font-size: 12px; }
.folder-new[open] form { display: flex; gap: 6px; margin-top: 6px; } .folder-new input { min-height: 36px; border-radius: 10px; border: 1px solid var(--border); background: var(--input); color: var(--fg); padding: 0 10px; }
.move-form select { width: 100%; min-height: 36px; margin-top: 6px; border-radius: 10px; border: 1px solid var(--border); background: var(--input); color: var(--fg); padding: 0 8px; font: inherit; font-size: 13px; }
/* summary */
.cab-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.cs-item { display: flex; flex-direction: column; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: color-mix(in srgb, var(--accent) 6%, transparent); }
.cs-item span { font-size: 12px; color: var(--muted); } .cs-item strong { font-size: 20px; } .cs-item small { font-size: 12px; color: var(--muted); }
.cab-lots { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 6px; }
.cab-lots li { display: flex; gap: 10px; flex-wrap: wrap; align-items: baseline; font-size: 14px; } .cab-lots em { font-style: normal; color: var(--muted); }
.cab-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
@media (max-width: 480px) { .cab-sum { grid-template-columns: 1fr 1fr; } .cab-sum .cs-item:last-child { grid-column: 1 / -1; } }
.fav-list { list-style: none; padding: 0; margin: 8px 0; display: grid; gap: 8px; }
.fav-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.fav-star { margin-left: auto; padding: 4px 8px; font-size: 18px; line-height: 1; color: var(--muted); border-radius: 8px; cursor: pointer; }
.fav-star.on { color: #f3c969; } .fav-star:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.model-opt .mrow { width: 100%; }
.seg { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin: 8px 0; } .seg > span { min-width: 110px; color: var(--muted); }
/* credit history */
.ch-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 6px; }
.ch-row { display: grid; grid-template-columns: 92px 1fr auto 24px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: color-mix(in srgb, var(--surface) 85%, transparent); }
.ch-date { font-size: 13px; color: var(--muted); } .ch-what b { display: block; } .ch-what em { display: block; font-style: normal; font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.ch-row.plus .ch-delta { color: var(--accent); } .ch-row.minus .ch-delta { color: var(--fg); } .ch-link { color: var(--accent); text-decoration: none; }
@media (max-width: 559px) { .ch-row { grid-template-columns: 1fr auto; } .ch-date { grid-column: 1 / -1; } .ch-link { display: none; } }
/* own templates */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 14px 0; }
.tpl-top { display: flex; gap: 10px; align-items: center; } .tpl-top small { display: block; }
.tpl-prompt { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.tpl-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
/* notes */
.note-new textarea, .note-edit textarea { width: 100%; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--border); background: var(--input); color: var(--fg); padding: 10px; font: inherit; }
.note-bar { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.note-list { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.note-main { display: flex; gap: 12px; align-items: flex-start; }
.note-text { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; flex: 1; }
.tick { width: 26px; height: 26px; border-radius: 8px; border: 1.5px solid var(--accent); background: none; color: #04110f; font-weight: 700; cursor: pointer; display: grid; place-items: center; padding: 0; }
.note.is-done .tick { background: var(--accent); }
.note.is-done .note-text { color: var(--muted); text-decoration: line-through; }
.note-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: flex-start; margin-top: 10px; }
.note-edit[open] { flex-basis: 100%; order: 5; } .note-edit summary { list-style: none; } .note-edit summary::-webkit-details-marker { display: none; }
@media (max-width: 759px) {
  .wh-side { flex-direction: column; align-items: stretch; gap: 8px; }
  .wh-side .btn { align-self: stretch; min-height: 44px; }
  .wh-sum > a, .wh-sum > span { padding: 4px 10px; }
  .wh-sum strong { font-size: 15px; white-space: nowrap; }
}

/* ===================================================================
   Stage 8 (2026-10-16): one calm button system, "AI / 22nd century".
   primary  = soft teal glow gradient, gentle light sweep on hover
   secondary= glass with a thin teal line
   ghost    = no fill, light tint on hover (icon buttons, stars, carousel)
   danger   = muted coral outline
   Actions are 14px-rounded; choices (chips, tabs, segments) are pills.
   =================================================================== */
:root {
  --b-h: 44px; --b-h-lg: 52px; --b-r: 14px;
  --b-line: color-mix(in srgb, var(--accent) 38%, transparent);
  --b-glass: color-mix(in srgb, var(--surface) 70%, transparent);
  --b-glow: 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent), 0 6px 20px color-mix(in srgb, var(--accent) 20%, transparent);
  --b-grad: linear-gradient(135deg, color-mix(in srgb, var(--accent) 88%, #ffffff) 0%, var(--accent) 55%, color-mix(in srgb, var(--accent) 80%, #1a8f86) 100%);
  --b-danger: color-mix(in srgb, var(--danger) 85%, var(--fg));
}
html:not([data-theme="dark"]) { --b-grad: linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #ffffff) 0%, var(--accent) 60%); --b-glass: color-mix(in srgb, var(--elevated) 80%, transparent); }

/* base geometry for every action button */
.btn, button.btn, a.btn, summary.btn, span.btn {
  position: relative; overflow: hidden; isolation: isolate;
  align-items: center; justify-content: center; gap: 8px;
  min-height: var(--b-h); padding: 0 18px; border-radius: var(--b-r);
  font-family: var(--sans); font-size: 15px; font-weight: 700; line-height: 1.15; letter-spacing: .005em;
  text-align: center; text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background-color .25s ease, color .25s ease, transform .15s ease;
}
.btn svg, .btn img.ico { width: 18px; height: 18px; flex: none; }

/* primary */
.btn:not(.secondary):not(.danger):not(.ghost) {
  background: var(--b-grad); color: var(--accent-fg); box-shadow: var(--b-glow);
}
.btn:not(.secondary):not(.danger):not(.ghost)::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .28) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s ease;
}
.btn:not(.secondary):not(.danger):not(.ghost):hover::after { transform: translateX(120%); }
.btn:not(.secondary):not(.danger):not(.ghost):hover { filter: none; box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 60%, transparent), 0 8px 26px color-mix(in srgb, var(--accent) 28%, transparent); }

/* secondary: glass + thin teal line */
.btn.secondary {
  background: var(--b-glass); color: var(--fg); border-color: var(--b-line); box-shadow: none;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.btn.secondary:hover { filter: none; border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, var(--b-glass)); }

/* ghost */
.btn.ghost { background: transparent; color: var(--fg); border-color: transparent; box-shadow: none; }
.btn.ghost:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); filter: none; }

/* danger: muted, never shouting */
.btn.danger { background: transparent; color: var(--b-danger); border-color: color-mix(in srgb, var(--danger) 45%, transparent); box-shadow: none; }
.btn.danger:hover { background: color-mix(in srgb, var(--danger) 9%, transparent); border-color: color-mix(in srgb, var(--danger) 70%, transparent); filter: none; }

/* sizes */
.btn.small, button.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.big { min-height: var(--b-h-lg); padding: 0 26px; font-size: 17px; border-radius: 16px; }
.btn.glow { box-shadow: var(--b-glow); }

/* press, focus, disabled - same everywhere */
.btn:active { transform: translateY(1px); }
.btn:focus-visible, .chip:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px; box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent);
}
.btn:disabled, .btn[aria-disabled="true"], button:disabled {
  opacity: .5; cursor: not-allowed; box-shadow: none !important; filter: saturate(.6); transform: none;
}
.btn:disabled::after { display: none; }

/* choices: chips, segments, tabs, view switch, language & loop tabs - one pill look */
.chip, a.chip, button.chip, summary.chip, .seg button, .view-switch a, .tabs a, .loop-tab, .quick-chips button, .aspect-picks button, .langs a {
  min-height: 40px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--b-glass); color: var(--fg); font-weight: 600;
  transition: border-color .25s ease, background-color .25s ease, color .25s ease;
}
.chip:hover, .seg button:hover, .view-switch a:hover, .tabs a:hover, .loop-tab:hover, .quick-chips button:hover, .aspect-picks button:hover, .langs a:hover {
  filter: none; border-color: var(--b-line);
}
/* selected choice: calm teal tint + thin line, not a loud solid fill */
.seg button.on, .aspect-picks button.on, .format-picks button.on, .view-switch a.on, .tabs a.active, .langs a.active,
.loop-tab.on, .quick-chips button.on, .chips .chip.on, .chips .chip.active, .chip.on, .chip[aria-current], .chip[aria-pressed="true"],
.niche-row a.on, .niche-row a.active, .look-styles .on,
button.on:not(.btn):not(.star):not(.bg-opt), button[aria-pressed="true"]:not(.btn):not(.star):not([data-mic]):not(.mic):not(.bg-opt):not(.tick) {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--fg); border-color: var(--accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 14px color-mix(in srgb, var(--accent) 16%, transparent);
  font-weight: 700;
}

/* icon / ghost-type controls */
.star { width: 40px; height: 40px; min-height: 40px; display: inline-grid; place-items: center; border-radius: 12px; background: transparent; border: 1px solid transparent; color: var(--muted); }
.star:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--fg); filter: none; }
.star.on { color: var(--accent); }
.carousel-btn { background: color-mix(in srgb, var(--surface) 72%, transparent); color: var(--fg); border: 1px solid var(--b-line); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: none; }
.carousel-btn:hover { border-color: var(--accent); filter: none; }
html[data-theme="dark"] .theme-toggle, .theme-toggle { background: var(--b-glass); color: var(--fg); border: 1px solid var(--b-line); }
.theme-toggle:hover { border-color: var(--accent); filter: none; }
.info-dot { border-color: var(--b-line); }
.tick { width: 28px; height: 28px; }

/* phone: one comfortable touch height */
@media (max-width: 759px) {
  .btn, button.btn, a.btn, summary.btn { min-height: 48px; font-size: 16px; }
  .btn.small, button.btn.small { min-height: 44px; font-size: 15px; }
  .chip, a.chip, button.chip, summary.chip, .seg button, .view-switch a, .tabs a, .loop-tab, .quick-chips button { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .btn::after { display: none; }
  .btn, .chip { transition: none; }
}

/* stage8b: tall (9:16) video fits the screen, whole frame visible */
.idea-hero video.idea-video { width: auto; max-width: 100%; height: auto; max-height: min(78vh, 900px); margin: 0 auto; object-fit: contain; background: var(--surface); }
@media (max-width: 759px) { .idea-hero video.idea-video { max-height: 58vh; } }

/* stage10: mobile polish */
@media (max-width: 760px) {
  /* "Место" form no longer floats over the video on idea pages */
  .repeat-sticky { position: static; box-shadow: none; }
  .repeat-sticky input, .repeat-sticky select { min-height: 44px; }
  /* finger-sized targets */
  .mrow { min-height: 44px; }
  input[type="range"] { height: 32px; touch-action: pan-y; }
  .calc-note a { display: inline-block; padding: 9px 4px; }
  .idea-card h3 a, .trend-card h3 a { display: inline-block; padding: 6px 0; }
}

/* stage11: static bars22 poses — calm, no animation, never over text */
.bars-pose { display: block; height: auto; width: auto; flex-shrink: 0; user-select: none; pointer-events: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.35)); }
.bars-pose.pose-md { height: 132px; }
.bars-pose.pose-sm { height: 96px; }
.pose-head { display: flex; align-items: center; gap: 18px; }
.pose-head > div { flex: 1 1 auto; min-width: 0; }
.empty-mascot .bars-pose { max-height: 132px; }
@media (max-width: 759px) {
  .pose-head { gap: 12px; align-items: flex-start; }
  .bars-pose.pose-md { height: 92px; }
  .bars-pose.pose-sm { height: 76px; }
  .empty-mascot .bars-pose { max-height: 104px; }
}

/* stage12 clarity */
.pkg-line { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.pkg-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pkg-price { font-size: 1.15em; }
.pkg-bonus { color: var(--accent); font-weight: 600; }
.pkg-soon { opacity: .8; cursor: default; pointer-events: none; white-space: nowrap; }
.afy-card.is-soon { opacity: .82; }
.afy-soon { position: absolute; top: 10px; right: 10px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--surface); color: var(--fg); border: 1px solid var(--border); }
.afy-card { position: relative; }
.afy-btn.secondary { background: transparent; color: var(--fg); border: 1px solid var(--border); }
.prompt-tip { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.test-shot { margin: 8px 0 0; padding: 8px 12px; border-radius: var(--r); border: 1px dashed var(--accent); font-size: 14px; }
.will-charge { font-weight: 600; }
.tool-preview { max-width: 720px; }
.tool-preview ol { padding-left: 20px; line-height: 1.6; }
.tool-preview .tp-prompt { font-style: italic; overflow-wrap: anywhere; }
.tool-preview .actions { margin-top: 14px; }
.pkg-valid { font-size: 1.05em; font-weight: 700; }
.afy-free { font-size: 12px; color: var(--muted); margin-top: 6px; }
.afy-free.ok { color: var(--ok); font-weight: 600; }
@media (min-width: 760px) {
  /* stage12: corner card, never over the hero centre or the side-menu caption */
  .cookie { left: auto; right: 16px; bottom: 16px; max-width: min(520px, calc(100vw - 260px)); }
}
/* stage12: photoshoot while ordering is "soon": price bar above the cards, picks look like an estimate */
.ps-total.ps-total-top{position:static;margin:12px 0 18px}
.ps-pick{font-weight:500;color:var(--muted)}
.ps-shots img{background:var(--surface)}
/* stage12: compare posters keep their own aspect ratio */
.idea-grid .card > img.cmp-img { width: 100%; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; }

/* Ideas: big video feature + calmer banners (preview 17.10) */
.video-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 4px 0 18px; }
.vf-media { position: relative; display: flex; justify-content: center; align-items: center; overflow: hidden; border-radius: 18px; height: min(78vh, 640px); background: #0b1220; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 12%, transparent); }
.vf-backdrop { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(28px) brightness(.55) saturate(1.2); transform: scale(1.1); }
.vf-video { position: relative; height: 100%; width: auto; max-width: 100%; object-fit: contain; display: block; box-shadow: 0 10px 40px rgba(0,0,0,.45); }
.vf-meta h3 { font-size: 24px; margin: 6px 0 6px; } .vf-meta h3 a { color: var(--fg); text-decoration: none; }
.vf-meta .idea-repeat { width: 100%; white-space: normal; text-align: center; }
@media (min-width: 900px) {
  .video-feature { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; align-items: center; }
  .vf-media { height: 540px; }
  .vf-meta .idea-repeat { width: auto; padding-left: 26px; padding-right: 26px; }
  .shelf-banner { width: min(100%, 800px); }
}
.idea-get { margin: 2px 0 8px; font-size: 13px; color: var(--fg); opacity: .85; }
.vf-meta .idea-get { font-size: 15px; }
.shelf-video { margin: 0 0 14px; width: min(100%, 960px); }
.shelf-video video { width: 100%; height: auto; aspect-ratio: 16 / 9; display: block; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border)); box-shadow: 0 0 34px color-mix(in srgb, var(--accent) 12%, transparent); background: #0b1220; }
.shelf-video figcaption { font-size: 12px; margin-top: 6px; }

/* Sidebar: Models group, Help, Payment & Help pages (preview 17.10) */
@media (min-width: 760px) {
  .rail nav { flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; gap: 2px; }
  .rail nav a, .rail-group > summary { min-height: 40px; }
}
.rail-group > summary { list-style: none; cursor: pointer; color: var(--fg); display: flex; align-items: center; justify-content: space-between; border-radius: 14px; padding: 0 10px; font-size: 14px; }
.rail-group > summary::-webkit-details-marker { display: none; }
.rail-group > summary:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
.rail-group.is-on > summary { color: var(--accent); font-weight: 700; }
.rail-caret { width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 4px 4px 0; opacity: .7; transition: transform .18s; }
.rail-group[open] .rail-caret { transform: rotate(225deg); margin-bottom: 0; }
.rail nav a.rail-sub { min-height: 34px; font-size: 13px; margin-left: 12px; padding-left: 12px; border-left: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); border-radius: 0 12px 12px 0; color: var(--muted); }
.rail nav a.rail-sub:hover { color: var(--fg); }
.rail nav a.rail-sub.on { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--fg); font-weight: 700; }
.rail nav a.rail-help { border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); color: var(--accent); margin-top: 4px; }
.rail nav a.rail-help:hover { box-shadow: 0 0 18px color-mix(in srgb, var(--accent) 22%, transparent); }
.rail nav a.rail-help.on { background: var(--accent); color: var(--accent-fg); }
.sheet-help { width: 100%; }
.sheet-group { border: 1px solid var(--border); border-radius: var(--r-lg); padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.sheet-group-head { color: var(--fg); font-weight: 700; text-decoration: none; }
.sheet-group-row { display: flex; flex-wrap: wrap; gap: 6px; }
.model-filter { margin: 4px 0 16px; }
.chip.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.studio-help { display: inline-block; margin-top: 4px; font-size: 13px; color: var(--accent); text-decoration: none; padding: 8px 10px; border: 1px dashed color-mix(in srgb, var(--accent) 45%, transparent); border-radius: 12px; }
.studio-help:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.help-jump { margin: 6px 0 16px; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-bottom: 18px; }
@media (min-width: 1000px) { .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.guide { display: flex; flex-direction: column; gap: 6px; scroll-margin-top: 80px; }
.guide-head { display: flex; align-items: center; gap: 12px; }
.guide-head h2 { margin: 0; font-size: 19px; line-height: 1.25; }
.bars-pose.guide-pose { height: 64px; width: auto; flex: 0 0 auto; }
.guide-n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); font-size: 14px; font-weight: 700; margin-right: 4px; vertical-align: 2px; }
.guide-steps { margin: 4px 0 6px; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.guide-steps li { line-height: 1.45; }
.guide-steps li::marker { color: var(--accent); font-weight: 700; }
.guide-cta { align-self: flex-start; margin-top: auto; }
.pay-gift { margin: 14px 0 6px; } .pay-gift h2 { margin-top: 0; }
.pay-table-wrap { overflow-x: auto; }
.pay-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pay-table th, .pay-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.pay-table th { color: var(--muted); font-weight: 600; font-size: 13px; }
.pay-links { display: flex; flex-wrap: wrap; gap: 8px; }
.help-hero h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; }

/* Mobile tab bar v2 (preview 17.10): reads as a bar, calm, icons above labels; one height var drives padding/cookie/docks */
@media (max-width: 759px) {
  :root { --tabbar-h: 60px; }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2px;
    padding: 5px 6px calc(5px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--surface) 88%, #04101c);
    -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid color-mix(in srgb, var(--accent) 38%, transparent);
    box-shadow: 0 -1px 10px color-mix(in srgb, var(--accent) 14%, transparent), 0 -10px 28px rgba(0, 0, 0, .28);
  }
  .bottom-nav a, .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
    min-height: 50px; padding: 4px 2px !important; border: 0; background: none; border-radius: 14px;
    color: color-mix(in srgb, var(--fg) 70%, transparent); text-decoration: none; font: inherit; cursor: pointer;
    font-weight: 600 !important; transition: color .15s, background-color .15s;
  }
  .bottom-nav .bn-ic { width: 22px; height: 22px; flex: none; padding: 2px 10px; box-sizing: content-box; border-radius: 999px; transition: background-color .15s, box-shadow .15s; }
  .bottom-nav .bn-label { font-size: 10.5px; line-height: 1.15; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  html[lang="hy"] .bottom-nav .bn-label { font-size: 10px; letter-spacing: -0.15px; }
  .bottom-nav a.on, .bottom-nav button.on { color: var(--accent) !important; background: none !important; font-weight: 700 !important; }
  .bottom-nav a.on .bn-ic, .bottom-nav button.on .bn-ic {
    background: color-mix(in srgb, var(--accent) 18%, transparent);
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 28%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent);
  }
  .bottom-nav a:hover, .bottom-nav button:hover { background: none !important; color: var(--fg); }
  .bottom-nav a:focus-visible, .bottom-nav button:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
  /* nothing hides behind the bar */
  body { padding-bottom: calc(var(--tabbar-h) + 20px + var(--install-pad, 0px) + env(safe-area-inset-bottom)); }
  .footer { padding-bottom: calc(var(--tabbar-h) + 24px + env(safe-area-inset-bottom)); }
  html { scroll-padding-bottom: calc(var(--tabbar-h) + 16px + env(safe-area-inset-bottom)); }
  /* cookie card sits ABOVE the bar; while it is visible the page gets extra room so it never covers content for good */
  .cookie, body:has(.thumb-bar) .cookie { bottom: calc(var(--tabbar-h) + 8px + env(safe-area-inset-bottom)) !important; z-index: 39; box-shadow: 0 6px 22px rgba(0,0,0,.35); }
  body:has(.cookie:not([style*="none"]):not([x-cloak])) { padding-bottom: calc(var(--tabbar-h) + var(--cookie-h, 64px) + 28px + env(safe-area-inset-bottom)); }
}

/* "More" sheet v2: help card, model tiles, big pay/balance, compact list, settings last */
.more-sheet { display: none; }
.more-sheet[open] { display: flex; flex-direction: column; gap: 0; }
.more-sheet .sheet-surface { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
/* mobile-fix-1105: full-viewport transparent dialog so tap above the sheet closes it */
@media (max-width: 759px) {
  dialog.sheet.more-sheet:modal {
    inset: 0; width: 100%; max-width: none; height: 100%; max-height: none;
    margin: 0; border: 0; border-radius: 0; padding: 0;
    background: transparent; box-shadow: none; overflow: hidden;
    display: flex; flex-direction: column; justify-content: flex-end;
  }
  dialog.sheet.more-sheet:modal .sheet-surface {
    background: var(--bg); color: var(--fg); box-shadow: var(--shadow);
    border-radius: 22px 22px 0 0;
    padding: 4px 16px calc(16px + env(safe-area-inset-bottom));
    max-height: min(82vh, 720px); max-height: min(82dvh, 720px);
    overflow: auto; width: 100%; box-sizing: border-box;
  }
}
@media (min-width: 760px) {
  dialog.sheet.more-sheet .sheet-surface { display: contents; }
}
.sheet-help-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; text-decoration: none; color: var(--fg);
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 22%, var(--surface)), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 16%, transparent); }
.sheet-help-card img { width: 56px; height: 56px; object-fit: contain; flex: none; }
.sheet-help-card span { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.sheet-help-card strong { font-size: 15px; line-height: 1.3; }
.sheet-help-card em { font-style: normal; color: var(--accent); font-weight: 700; font-size: 14px; }
.sheet-sec-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.sheet-sec-head h3 { margin: 0; font-size: 15px; font-family: inherit; font-weight: 700; }
.sheet-sec-head a { color: var(--accent); text-decoration: none; font-size: 13px; padding: 6px 0; }
.sheet-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sheet-tile { min-height: 76px; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 12px 14px; border-radius: 16px;
  text-decoration: none; color: var(--fg); font-weight: 700; background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); }
.sheet-tile svg { color: var(--accent); }
.sheet-tile.on, .sheet-tile:active { border-color: color-mix(in srgb, var(--accent) 60%, transparent); box-shadow: 0 0 16px color-mix(in srgb, var(--accent) 18%, transparent); }
.sheet-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sheet-big { min-height: 64px; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 10px 14px; border-radius: 16px; text-decoration: none; color: var(--fg); font-weight: 700;
  background: color-mix(in srgb, var(--surface) 92%, transparent); border: 1px solid var(--border); }
.sheet-big small { color: var(--muted); font-weight: 500; }
.sheet-big.on { border-color: var(--accent); }
.sheet-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sheet-list a, .sheet-list button { min-height: 48px; display: flex; align-items: center; padding: 8px 12px; border-radius: 14px; border: 1px solid var(--border); background: none;
  color: var(--fg); text-decoration: none; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.sheet-list a.on { border-color: var(--accent); color: var(--accent); }
.sheet-settings { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--border); }
/* hy tab labels are long (Գաղափարներ, Աշխատանքներ): weighted columns instead of 5 equal ones, so nothing is ellipsized at 360-390px */
@media (max-width: 759px) {
  html[lang="hy"] .bottom-nav { grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, .9fr) minmax(0, 1.25fr) minmax(0, 1.3fr); gap: 0; padding-left: 4px; padding-right: 4px; }
}
/* QA2 #10: desktop cookie = a slim strip along the bottom of the content column (right of the 200px rail).
   While it is visible the page gets bottom room, so a heading is never left under it. */
@media (min-width: 760px) {
  .cookie { left: 216px; right: 16px; bottom: 12px; max-width: none; padding: 8px 14px; border-radius: 12px;
    border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
  .cookie .cookie-long { font-size: 13.5px; }
  body:has(.cookie:not([style*="none"]):not([x-cloak])) { padding-bottom: 76px; }
}
/* QA2 #19: CSS uppercase turns Armenian «և» into the old «ԵՒ»; hy kickers keep normal case */
html[lang="hy"] .kicker { text-transform: none; letter-spacing: 0.02em; }

/* ideas-catalog: one catalog, chips in one scrollable row, bigger cards with a clear price. */
.ic-banner { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r); background: color-mix(in srgb, var(--accent) 10%, var(--elevated)); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }
.ic-banner p { margin: 0; flex: 1; line-height: 1.45; }
.ic-banner-x { border: 0; background: transparent; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 4px; min-width: 32px; min-height: 32px; }
.ic-chips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; margin: 12px -4px 18px; padding: 2px 4px 6px; }
.ic-chips::-webkit-scrollbar { display: none; }
.ic-chips .chip { flex: 0 0 auto; white-space: nowrap; min-height: 38px; display: inline-flex; align-items: center; gap: 6px; }
.ic-chips .chip small { color: var(--faint); font-size: 12px; }
.ic-chips .chip.on { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.ic-chips .chip.on small { color: inherit; opacity: .8; }
.ic-row { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px 20px; padding: 0 16px 8px; scrollbar-width: thin; }
.ic-row > .ic-card { scroll-snap-align: start; }
.ic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0 0 24px; }
.ic-card { min-width: 0; display: flex; flex-direction: column; background: var(--elevated); border-radius: var(--r-lg); box-shadow: var(--shadow); overflow: hidden; }
.ic-media { position: relative; aspect-ratio: auto; background: var(--surface); overflow: hidden; }
.ic-media:has(.ba), .ic-media:has(.ic-face) { aspect-ratio: 4 / 5; }
.ic-media > a { display: block; height: auto; }
.ic-media img, .ic-media video { display: block; width: 100%; height: auto; max-height: 72vh; object-fit: contain; background: #070d16; }
.ic-media:has(.ba) img, .ic-media:has(.ba) video, .ic-media:has(.ic-face) > a { height: 100%; }
.ideas-page img[data-full] { cursor: zoom-in; }
.ic-media .ba { height: 100%; }
.ic-face { display: flex !important; flex-direction: column; justify-content: space-between; padding: 14px; height: 100%; color: var(--fg); text-decoration: none; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 18%, var(--surface)), var(--surface)); }
.ic-face strong { font-family: var(--display); font-size: 20px; line-height: 1.2; }
.ic-badges { position: absolute; top: 8px; left: 8px; display: flex; gap: 6px; pointer-events: none; }
.ic-badge { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: rgba(18, 22, 20, .72); color: #fff; }
.ic-meta { display: flex; flex-direction: column; gap: 6px; padding: 12px; flex: 1; }
.ic-meta h3 { margin: 0; font-size: 16px; line-height: 1.3; }
.ic-meta h3 a { color: inherit; text-decoration: none; }
.ic-blurb { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ic-model { margin: 0; font-size: 13px; color: var(--faint); }
.ic-price { margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.ic-price b { color: var(--fg); }
.ic-meta .honest-note { margin: 0; font-size: 12px; }
.ic-make { margin-top: auto; width: 100%; justify-content: center; text-align: center; min-height: 44px; }
@media (max-width: 420px) {
  .ic-grid .ic-meta { padding: 10px; }
  .ic-grid .ic-blurb { display: none; }
  .ic-grid .ic-make { font-size: 13px; padding-left: 6px; padding-right: 6px; white-space: nowrap; letter-spacing: -0.01em; }
  .ic-grid .ic-price { font-size: 13px; }
}
@media (min-width: 760px) {
  .ic-row { grid-auto-columns: 280px; margin: 0 0 24px; padding: 0 0 8px; }
  .ic-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
}

.ps-card-new{position:relative;border-color:color-mix(in srgb,var(--accent) 55%,transparent)}
.ps-badge{display:inline-block;margin:0 0 6px;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:600;letter-spacing:.02em;color:#fff;background:linear-gradient(90deg,var(--accent),#ff8a5c)}
.ps-card-new .ps-shots img{aspect-ratio:3/4}
.oc-examples{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin:8px 0 18px}
.oc-example{margin:0;padding:12px}
.oc-example img{width:100%;height:auto;border-radius:12px}
.oc-try{margin-top:8px;width:100%}

/* design-1023: hints behind «?» */
.qhint{margin:10px 0}.qhint>summary{list-style:none;display:inline-flex;align-items:center;gap:10px;cursor:pointer;min-height:44px;color:var(--muted)}
.qhint>summary::-webkit-details-marker{display:none}
.qdot{width:28px;height:28px;border-radius:50%;display:inline-grid;place-items:center;border:1px solid currentColor;font-weight:700;font-size:14px;flex:none}
.qhint[open] .qdot{background:var(--fg);color:var(--bg);border-color:transparent}
.qpics{display:inline-flex;gap:6px}.qpics img{width:44px;height:44px;border-radius:10px;object-fit:contain;background:rgba(0,0,0,.25)}
.qlabel{font-size:14px;font-weight:600}.qhint-sm{margin:6px 0}
/* video-1019: video modes, photo slots, AI avatars, AI labels, reports */
.vmode-page .lead { max-width: 62ch; }
.vmode-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin: 18px 0; }
.vmode-card { display: flex; flex-direction: column; gap: 10px; }
.vmode-card h2 { margin: 4px 0 0; font-family: var(--display); font-size: 26px; }
.vmode-card .btn { margin-top: auto; align-self: flex-start; }
.vmode-cards--compact .vmode-card h2 { font-size: 20px; }
.vmode-cards--compact .vmode-ph { aspect-ratio: 16 / 7; }
.vmode-steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.vmode-ph {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); border: 2px dashed var(--border);
  background: repeating-linear-gradient(135deg, var(--surface) 0 14px, var(--elevated) 14px 28px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 12px;
}
.vmode-ph--b { background: repeating-linear-gradient(45deg, var(--surface) 0 14px, var(--elevated) 14px 28px); }
.vmode-ph--wide { aspect-ratio: 21 / 8; margin: 14px 0; }
.vmode-ph-tag { font-weight: 700; color: var(--accent); }
.vmode-ph-note { font-size: 13px; color: var(--muted); }
.vmode-soon { color: var(--muted); font-weight: 600; }
.vmode-form h2 { display: flex; align-items: center; gap: 10px; font-size: 20px; margin: 18px 0 8px; }
.vmode-form h2:first-of-type { margin-top: 0; }
.step-no { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-fg); font-size: 15px; flex: none; }
.photo-slots { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.photo-slots--one { grid-template-columns: minmax(0, 160px); }
.photo-slot {
  aspect-ratio: 3 / 4; border: 2px dashed var(--border); border-radius: var(--r-md); background: var(--input) center / cover no-repeat;
  display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; text-align: center; padding: 4px;
}
.photo-slot[hidden] { display: none; }
.photo-slot:first-child { border-color: var(--accent); }
.photo-slot.has .slot-plus, .photo-slot.has .slot-label { visibility: hidden; }
.slot-plus { font-size: 28px; line-height: 1; color: var(--accent); }
.slot-label { font-size: 12px; color: var(--muted); }
.avatar-pick { border: 1px solid var(--border); border-radius: var(--r-md); padding: 10px; margin: 12px 0; }
.avatar-chip img { border-radius: 6px; object-fit: cover; vertical-align: middle; }
.seg { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.price-table { border-collapse: collapse; margin: 8px 0 12px; }
.price-table td { padding: 4px 14px 4px 0; border-bottom: 1px solid var(--border); }
.price-table caption { text-align: left; caption-side: top; padding-bottom: 4px; }
.vmode-avatar-teaser { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.vmode-avatar-teaser h2 { margin: 0 0 4px; }
.ai-badge {
  display: inline-block; font-family: var(--sans); font-size: 12px; font-weight: 700; letter-spacing: .02em; vertical-align: middle;
  padding: 3px 8px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 16%, var(--elevated)); color: var(--fg); border: 1px solid var(--border);
}
.ai-mark { margin: 8px 0 0; display: flex; gap: 6px; }
.avatar-layout { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; margin: 16px 0; }
.vmode-ph--sheet { aspect-ratio: 16 / 9; }
.sheet-cells { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 92%; }
.sheet-cells i { font-style: normal; font-size: 12px; padding: 18px 4px; border: 1px dashed var(--border); border-radius: 8px; background: var(--elevated); }
.preset-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.chip span { display: inline-block; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--input); cursor: pointer; }
.chip input:checked + span { background: var(--accent); color: var(--accent-fg); border-color: var(--accent); }
.chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.avatar-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.avatar-card img { width: 100%; height: auto; border-radius: var(--r-md); }
.avatar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.avatar-rules ul { padding-left: 20px; display: grid; gap: 6px; }
.report-fold { margin-top: 10px; }
.report-form { display: grid; gap: 8px; margin-top: 8px; }
@media (max-width: 720px) {
  .avatar-layout { grid-template-columns: 1fr; }
  .photo-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .vmode-ph--wide { aspect-ratio: 16 / 9; }
  .vmode-card h2 { font-size: 22px; }
}
/* video-1023: ready-made video cards, filters, how-to */
.vsc-head { margin: 22px 0 10px; font-family: var(--display); }
.vsc-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); margin-bottom: 22px; }
.vsc-card { position: relative; display: flex; flex-direction: column; padding: 0; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.vsc-card:hover { transform: translateY(-3px); }
.vsc-card img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; display: block; }
.vsc-body { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px 12px; }
.vsc-meta { font-size: 13px; opacity: .75; }
.vsc-ex { position: absolute; top: 8px; left: 8px; font-size: 11px; padding: 2px 8px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.vsc-how { display: flex; gap: 14px; align-items: center; position: relative; margin: 10px 0 16px; }
.vsc-how img { width: 110px; height: 138px; object-fit: cover; border-radius: 12px; flex: none; }
.vsc-how .vsc-ex { position: static; display: inline-block; margin-bottom: 6px; }
.vf-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0 12px; }
.vf-bar select { width: auto; min-width: 110px; flex: 1 1 110px; }
.vf-label { font-weight: 600; width: 100%; }
@media (max-width: 759px) { .vsc-grid { grid-template-columns: repeat(2, 1fr); } }
/* «Ваши изменения» (Мгер t781u) */
.ue-field { display: grid; gap: 6px; margin: 10px 0; }
.ue-field textarea { width: 100%; min-height: 56px; font-size: 16px; border-radius: 12px; }
.ue-note { margin: 0; font-size: .85rem; }
/* Audit 24.10: the second hero heading is an h2 now (one h1 per page), same look as before. */
.h1-look { font-size: clamp(34px, 5vw, 56px); margin: 10px 0; }
@media (max-width: 860px) { .h1-look { font-size: 34px; } }

/* button audit: mobile balance chip must not duplicate on desktop */
@media (min-width: 760px) { a.chip.bal-chip.bal-mobile { display: none !important; } }

/* admin tab bar: wrap into rows, compact single-line pills */
.tabs.admin-tabs { display: flex; flex-direction: row; flex-wrap: wrap; gap: 6px; overflow: visible; max-width: 100%; }
.tabs.admin-tabs a { flex: none; white-space: nowrap; min-height: 34px; padding: 6px 12px; line-height: 1.2; display: inline-flex; align-items: center; }

/* footer: tidy columns */
.legal-links.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(140px, 1fr)); gap: 8px 28px; align-items: start; }
.footer-cols .fcol { display: flex; flex-direction: column; gap: 2px; }
.footer-cols .fcol-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 6px; }
.footer-cols .fcol a { font-size: 14px; color: var(--fg); min-height: 36px; padding: 0; text-decoration: none; }
.footer-cols .fcol a:hover { color: var(--accent); text-decoration: underline; }
@media (max-width: 759px) { .legal-links.footer-cols { grid-template-columns: 1fr; gap: 14px; } }
/* chat launcher sits above the cookie banner while it is visible */
html.cookie-on #bars-assistant-root { bottom: calc(var(--cookie-h, 64px) + 24px + env(safe-area-inset-bottom, 0px)) !important; }
@media (max-width: 759px) { html.cookie-on #bars-assistant-root { bottom: calc(var(--cookie-h, 64px) + 84px + env(safe-area-inset-bottom, 0px)) !important; } }
html.cookie-on #bars-assistant-root .ba-bubble { display: none; }
@media (min-width: 900px) { .footer .cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); } }

/* t796u social: gallery search, cards, profile, feed */
.soc-search{display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin:12px 0}
.soc-search input[type=search]{flex:1 1 240px;min-width:0}
.soc-chips{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0 14px}
.soc-chips a{padding:6px 12px;border-radius:999px;border:1px solid var(--line,#ddd);text-decoration:none;color:inherit;font-size:.9rem}
.soc-chips a.on{background:var(--ink,#111);color:var(--bg,#fff);border-color:transparent}
.soc-grid{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.soc-card{padding:0;overflow:hidden;display:flex;flex-direction:column}
.soc-media{position:relative;display:block;aspect-ratio:16/10;background:#0001}
.soc-media img,.soc-media video{width:100%;height:100%;object-fit:cover;display:block}
.soc-example{position:absolute;top:8px;left:8px;background:#000b;color:#fff;font-size:.75rem;padding:2px 8px;border-radius:999px}
.soc-body{padding:10px 12px 12px;display:flex;flex-direction:column;gap:4px}
.soc-title{font-size:1rem;margin:0;line-height:1.3;overflow-wrap:anywhere}
.soc-nick{font-size:.85rem;font-weight:600;text-decoration:none}
.soc-site-author{font-size:.85rem;font-weight:700;letter-spacing:.01em}
.soc-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:6px}
.soc-actions form{margin:0}
.soc-tog{border:1px solid var(--line,#ddd);background:transparent;border-radius:999px;padding:5px 10px;cursor:pointer;font:inherit;font-size:.85rem;color:inherit;min-height:34px}
.soc-tog.on{background:#ffe4ea;border-color:#f3a3b5}
.soc-tog[data-soc=save].on{background:#e6f0ff;border-color:#9dbcf0}
.soc-head{display:flex;gap:16px;align-items:center;flex-wrap:wrap;margin:8px 0 16px}
.soc-ava{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font-size:1.6rem;font-weight:700;background:var(--soft,#f1f1f4)}
.soc-stats{display:flex;gap:14px;flex-wrap:wrap;font-size:.9rem}
.soc-tabs{display:flex;gap:6px;flex-wrap:wrap;margin:10px 0 14px}
.soc-tabs a{padding:7px 14px;border-radius:999px;text-decoration:none;color:inherit;border:1px solid var(--line,#ddd)}
.soc-tabs a.on{background:var(--ink,#111);color:var(--bg,#fff)}
.soc-people{display:flex;gap:8px;flex-wrap:wrap;list-style:none;padding:0}
.soc-people a{display:inline-block;padding:6px 12px;border-radius:999px;border:1px solid var(--line,#ddd);text-decoration:none}
@media (max-width:560px){.soc-grid{grid-template-columns:1fr 1fr;gap:10px}.soc-body{padding:8px}.soc-title{font-size:.9rem}.soc-tog{padding:4px 8px}}
.soc-av{width:64px;height:64px;border-radius:50%;display:grid;place-items:center;font-size:1.6rem;font-weight:700;background:var(--soft,#f1f1f4);flex:none}
.soc-av.sm{width:28px;height:28px;font-size:.85rem;display:inline-grid;vertical-align:middle;margin-right:6px}
.soc-h1{margin:0;overflow-wrap:anywhere}
.soc-follow{margin-left:auto}
.soc-feed-layout{display:grid;grid-template-columns:1fr 260px;gap:20px;align-items:start}
.gal-sort,.gal-kinds{display:flex;gap:6px;flex-wrap:wrap;margin:6px 0}
@media (max-width:900px){.soc-feed-layout{grid-template-columns:1fr}.soc-follow{margin-left:0}}
.pkg-one{max-width:640px}
.pkg-fx{display:block;margin:2px 0}
.price-models>summary{list-style:none;display:inline-block;margin:6px 0 12px;cursor:pointer}
.price-models>summary::-webkit-details-marker{display:none}
/* audit 24.10 night: hy mobile hero fits */
.guide-hero h1{overflow-wrap:anywhere;hyphens:auto}
.rd-big span{max-width:100%;overflow-wrap:anywhere;text-align:center;line-height:1.2}
@media (max-width:560px){.guide-hero h1{font-size:clamp(24px,7.4vw,32px)}html[lang=hy] .guide-hero h1{font-size:clamp(22px,6.6vw,30px)}html[lang=hy] .rd-big span{font-size:12px;overflow-wrap:normal;letter-spacing:-.2px}}
/* night re-audit: mobile speed — skip layout of off-screen home sections */
@media (max-width:759px){body.page-home main>section.section~section.section{content-visibility:auto;contain-intrinsic-size:auto 900px}}
/* checklist #4: shorter mobile menu, tiles live on /models */
#more-sheet .sheet-tiles{display:none}
.quick-chips .chip-photo{border-color:var(--accent,#8b5cf6);font-weight:600}

/* Мгер 11.10: на телефоне «Продолжить» появляется только когда человек начал печатать */
@media (max-width: 640px) {
  .rd-ask:has(textarea:placeholder-shown) button[type="submit"] { display: none; }
}
/* «Хочу так же» — эталон want-same-approved.png */
.ws-grid{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;align-items:start}
.ws-left .work-stage{display:flex;justify-content:center;background:transparent}
.ws-left .work-stage img,.ws-left .work-stage video{width:auto;max-width:100%;height:auto;max-height:min(78vh,900px);object-fit:contain;border-radius:14px;background:transparent}
.ws-author{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.ws-author .gal-uses{margin-left:auto}
.ws-actions{display:flex;flex-wrap:wrap;gap:8px}.ws-actions form{margin:0}
.ws-card{border:1px solid transparent;border-radius:18px;padding:18px;background:linear-gradient(#0e1020,#0e1020) padding-box,linear-gradient(135deg,#22d3ee,#8b5cf6,#f59e0b) border-box}
.ws-card h1{font-size:30px;margin:0 0 10px}.ws-card form{display:grid;gap:10px}
.ws-step{font-size:16px;margin:8px 0 0;display:flex;gap:8px;align-items:center}.ws-step span{display:inline-grid;place-items:center;width:22px;height:22px;border-radius:50%;background:var(--btn-grad,linear-gradient(135deg,#8b5cf6,#ec4899));font-size:12px;color:#fff}
.ws-drop{display:grid;place-items:center;gap:6px;padding:22px;border:1.5px dashed #3b3f5c;border-radius:12px;cursor:pointer;text-align:center}.ws-drop b{font-weight:500;font-size:13px;opacity:.8}
.ws-note{font-size:13px;padding:10px 12px;border-radius:10px;background:rgba(34,211,238,.08);margin:0}
.ws-price{margin:0;font-weight:600}
.ws-more-h{margin-top:32px}.ws-more{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.ws-more-card{display:grid;gap:6px;color:inherit;text-decoration:none}.ws-more-card img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:12px}
@media (max-width:860px){.ws-grid{grid-template-columns:1fr}.ws-more{grid-template-columns:repeat(2,1fr)}.ws-card h1{font-size:24px}}
.ws-author .soc-example,.ws-more-card .soc-example{position:static;border:1px dashed #6b7280;background:none;text-transform:uppercase;font-size:11px;letter-spacing:.04em}
.ws-pop>summary{display:none}.ws-pop[open]{margin-top:10px}
.ws-card .chip{font-size:13px;padding:5px 10px}.ws-enh{display:flex;align-items:center;gap:8px;font-size:14px}
.ws-more-card{position:relative}
@media (max-width:759px){.work-viewer.want-same{position:static;inset:auto;z-index:auto;overflow:visible;padding:12px 0 24px}}
.ws-pop:not([open]){display:none}@media (max-width:759px){.ws-left .work-stage{min-height:0}.ws-left .work-stage img,.ws-left .work-stage video{max-height:min(70vh,640px)}}

/* Мгер 23.10: порядок главной + «Как это работает» и полоса «Помощь» */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.how-step { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 20px; background: linear-gradient(160deg, rgba(139,92,246,.14), rgba(45,212,191,.08)); border: 1px solid rgba(139,92,246,.35); box-shadow: 0 0 0 1px rgba(255,255,255,.03) inset, 0 10px 30px -12px rgba(139,92,246,.45); }
.how-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--btn-grad, linear-gradient(135deg, #8b5cf6, #ec4899)); color: #fff; box-shadow: var(--btn-glow, 0 0 18px rgba(236,72,153,.45)); }
.help-band-card { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-radius: 22px; text-decoration: none; color: inherit; font-weight: 600; font-size: 1.15rem; background: linear-gradient(120deg, rgba(139,92,246,.22), rgba(236,72,153,.16) 55%, rgba(234,179,8,.14)); border: 1px solid rgba(236,72,153,.4); }
.help-band-card i { margin-left: auto; font-style: normal; font-size: 1.4rem; }
.rail-sub .sicon { vertical-align: -3px; margin-right: 6px; opacity: .9; }
@media (max-width: 759px) { .how-steps { grid-template-columns: 1fr; } }
/* «вау» AI-вид: светящиеся рамки у карточек (тёмная и светлая тема) */
.card, .bw-tile, .afy-card, .grow-card { transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease; }
.card:hover, .bw-tile:hover, .afy-card:hover, .grow-card:hover { transform: translateY(-2px); border-color: rgba(139,92,246,.6); box-shadow: 0 12px 34px -14px rgba(139,92,246,.6), 0 0 0 1px rgba(236,72,153,.25); }
[data-theme="light"] .how-step, html.light .how-step { background: linear-gradient(160deg, #f5f0ff, #ecfdf9); }
[data-theme="light"] .help-band-card, html.light .help-band-card { background: linear-gradient(120deg, #f3ecff, #fdeef6 55%, #fdf7e1); }

/* «+ Фото» under a prompt field (item 6) */
.field-photo{display:inline-flex;align-items:center;gap:.35rem;margin:.4rem 0 .2rem;padding:.35rem .8rem;border-radius:999px;border:1px dashed var(--line,rgba(255,255,255,.25));background:transparent;color:inherit;font:inherit;font-size:.9rem;cursor:pointer}
.field-photo:hover{border-style:solid}
.field-photo.has-photo{border-style:solid;border-color:var(--accent,#7c5cff)}

/* item 7: «пример» cards under the studio form */
.sec-examples{margin:1.5rem 0}
.sec-ex-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.8rem}
.sec-ex{position:relative;border-radius:14px;overflow:hidden;background:var(--card,rgba(255,255,255,.04));padding-bottom:.6rem}
.sec-ex img,.sec-ex video{width:100%;height:auto;aspect-ratio:1/1;object-fit:cover;display:block}
.sec-ex .ex-badge{position:absolute;top:.4rem;left:.4rem;font-size:.72rem;padding:.1rem .45rem;border-radius:999px;background:rgba(0,0,0,.6);color:#fff}
.sec-ex-model{margin:.4rem .6rem .3rem;font-size:.85rem;opacity:.85}
.sec-ex .btn{margin:0 .6rem}

/* item 8: short model how-to */
.howto{margin:.3rem 0 .6rem;font-size:.9rem}
.howto summary{cursor:pointer;opacity:.85}
.howto ol{margin:.4rem 0 0 1.1rem;padding:0}
.howto li{margin:.15rem 0}

/* item 9: home tiles as concept C — picture tiles, music as a glowing equalizer */
.rd-big.rd-c{padding:6px;gap:6px;background:color-mix(in srgb,var(--sec,#5b8cff) 10%,transparent);border:1px solid color-mix(in srgb,var(--sec,#5b8cff) 28%,transparent);transition:transform .2s,box-shadow .2s}
.rd-big.rd-c:hover{transform:translateY(-2px);box-shadow:0 8px 28px color-mix(in srgb,var(--sec,#5b8cff) 35%,transparent)}
.rd-vis{position:relative;display:block;width:100%;aspect-ratio:1/1;border-radius:12px;overflow:hidden;background:#0b1020}
.rd-vis img{width:100%;height:100%;object-fit:cover;display:block}
.rd-big.rd-c .rd-lbl{display:inline-flex;align-items:center;gap:6px;font-weight:600}
.rd-big.rd-c .rd-lbl .sicon{width:18px;height:18px}
.sec-music .rd-vis{background:radial-gradient(circle at 50% 60%,rgba(91,140,255,.45),rgba(124,92,255,.18) 45%,#0b1020 75%)}
.eq{position:absolute;inset:22% 12%;display:flex;align-items:center;justify-content:space-between}
.eq i{display:block;width:5%;border-radius:4px;background:linear-gradient(180deg,#7cc4ff,#5b8cff 50%,#a46bff);box-shadow:0 0 10px rgba(91,140,255,.8);height:30%;animation:eqb 1.1s ease-in-out infinite;animation-delay:calc(var(--i) * -.13s)}
.eq-note{position:absolute;inset:0;display:grid;place-items:center;font-size:2.4rem;color:#fff;text-shadow:0 0 14px #7cc4ff,0 0 28px #5b8cff;opacity:.9}
@keyframes eqb{0%,100%{height:22%}50%{height:88%}}
@media (prefers-reduced-motion:reduce){.eq i{animation:none;height:calc(30% + (var(--i) * 3%))}}
html[data-theme=light] .sec-music .rd-vis{background:radial-gradient(circle at 50% 60%,rgba(91,140,255,.35),rgba(164,107,255,.15) 45%,#eef2ff 78%)}
@media (max-width:560px){.rd-big.rd-c .rd-lbl{font-size:12.5px;white-space:nowrap;gap:3px}.rd-big.rd-c .rd-lbl .sicon{width:14px;height:14px}html[lang=hy] .rd-big.rd-c .rd-lbl .sicon{display:none}}

/* item 9b: «вау» page headers — glowing icon chip + soft gradient title */
.wow-h1{display:flex;align-items:center;gap:.6rem;flex-wrap:wrap}
.wow-ic{display:inline-grid;place-items:center;width:42px;height:42px;flex:0 0 42px;border-radius:12px;color:#fff;background:linear-gradient(135deg,#5b8cff,#a46bff);box-shadow:0 0 0 1px rgba(255,255,255,.12) inset,0 6px 22px rgba(124,92,255,.45)}
.wow-ic .sicon{width:22px;height:22px}
main .card{transition:box-shadow .2s,transform .2s,border-color .2s}
main .card:hover{box-shadow:0 10px 30px rgba(91,140,255,.18)}
@media (max-width:560px){.wow-ic{width:34px;height:34px;flex-basis:34px;border-radius:10px}.wow-ic .sicon{width:18px;height:18px}}

/* item 11: free instant model suggestion */
.smart-pick{display:flex;flex-wrap:wrap;align-items:center;gap:.4rem;margin:.4rem 0;padding:.5rem .7rem;border-radius:12px;background:color-mix(in srgb,#5b8cff 12%,transparent);font-size:.92rem}
.smart-pick .sp-k{opacity:.8}
.smart-pick .btn{margin-left:auto}
.rules-soft{display:block;font-size:14px}.rules-soft .check{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin:0}
.rules-soft{padding:10px 14px!important}.rules-soft .check{display:block!important;line-height:1.4}.rules-soft .check input{margin:0 6px 0 0;vertical-align:-2px}.rules-soft a{margin-left:4px}
.soc-tabs .chip.on{background:var(--accent,#8b5cf6);color:#fff;border-color:transparent}
@media (max-width:700px){#ba-bubble,.ba-bubble{display:none!important}}
.gal-switch{margin:4px 0 14px}
/* audit 25.10 #6: narrow phones (hy labels are long) */
@media (max-width:420px){
  .rd-lbl{font-size:12px;letter-spacing:0;white-space:normal;overflow-wrap:anywhere;text-align:center;line-height:1.2}
  #rd-q{min-height:96px;font-size:15px}
  #rd-q::placeholder{font-size:14px}
}
@media (max-width:700px){
  .ba-fab{width:48px!important;height:48px!important;min-width:0!important;padding:0!important;border-radius:50%!important;justify-content:center;opacity:.92}
  .ba-fab .ba-fab-label{display:none!important}
}
.ws-step label{display:flex;gap:8px;align-items:center}
@media (max-width:420px){html[lang=hy] .rd-big.rd-c .rd-lbl{font-size:10.5px;letter-spacing:-.3px;gap:0}html[lang=hy] .rd-big.rd-c{padding-left:4px;padding-right:4px}}
.ws-author{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;min-width:0}.ws-ava{border-radius:50%;object-fit:cover}.ws-savehint{margin:8px 0}
.sheet-chat{display:none;width:100%;margin:8px 0}
/* mobile-fix-1105: chat opens from header button on phones; FAB stays hidden to avoid a second bubble over content */
@media (max-width:700px){.ba-fab{display:none!important}.sheet-chat{display:block}}
/* mobile-fix2-1105: icon-only chat in phone header; langs/theme in hamburger */
.top-chat{display:none}
.nav-phone-tools{display:none}
@media (max-width:759px){
  html, body{overflow-x:clip;max-width:100%}
  .top{overflow:visible}
  .top-inner{position:relative;gap:6px;min-width:0;max-width:100%;overflow:visible}
  .wrap{width:min(1120px,calc(100% - 20px))}
  .brand-name{display:none}
  .top-chat{
    display:inline-flex;align-items:center;justify-content:center;gap:0;
    margin-left:0;flex:0 0 auto;width:40px;min-width:40px;max-width:40px;min-height:40px;height:40px;padding:0;
    border-radius:999px;border:1px solid color-mix(in srgb, var(--accent) 55%, var(--border));
    background:color-mix(in srgb, var(--accent) 16%, var(--elevated));color:var(--accent);
    font:inherit;font-weight:700;cursor:pointer;line-height:1;
  }
  .top-chat svg{flex:none;color:var(--accent)}
  .top-chat-lbl{display:none!important}
  a.chip.bal-chip.bal-mobile{display:none!important}
  .top-login{padding:0 10px;font-size:13px;min-height:40px;max-width:7.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .top-ava{margin-left:0;margin-right:0}
  .nav-phone-tools{display:flex}
}
@media (min-width:760px){
  .nav-phone-tools{display:none!important}
}
.ws-follow{display:inline-flex;margin:0}.ws-follow .chip,.ws-author .chip{font-size:12px;padding:3px 10px}.ws-repeats{margin-left:auto;font-size:12px;color:var(--muted,#9aa)}
.verify-soft{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:13px;line-height:1.3;padding:8px 12px}.verify-soft .btn{padding:4px 10px;font-size:12px}
.ava{border-radius:50%;object-fit:cover;vertical-align:middle;flex:none;background:#1e1b4b;margin-right:6px}
.soc-h1 .ava,.ava-lg{margin-right:10px}.ava-lg{width:80px;height:80px}
.pic-row{display:flex;gap:14px;align-items:center;flex-wrap:wrap}.pic-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.pic-actions form{margin:0}.pic-actions p{flex-basis:100%;margin:0}
.top-ava{display:inline-flex;margin-left:auto;margin-right:6px}.top-ava .ava{margin:0;border:2px solid rgba(139,92,246,.6)}
.pic-report{margin:4px 0}.linklike{background:none;border:0;color:var(--muted,#9aa);text-decoration:underline;cursor:pointer;padding:0}

.soc-pic{width:64px;height:64px;margin:0}
@media (min-width:760px){.top-ava{order:9;margin-left:0}}

/* video-options-1025: model options as chips in the generation form */
.opt-chips { display: grid; gap: 10px; margin: 8px 0 12px; }
.opt-group .opt-label { font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.opt-group .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ochip { position: relative; display: inline-flex; align-items: center; min-height: 36px; padding: 6px 12px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; font-size: 14px; background: var(--input); color: inherit; user-select: none; }
.ochip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ochip:hover { border-color: var(--accent); }
.ochip:has(input:checked) { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.ochip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.price-meta { margin: 4px 0 8px; font-size: 14px; }
.price-meta .need-more { color: #e5534b; }
.price-meta .gift-ok { color: #2ea043; }
@media (max-width: 480px) { .ochip { padding: 6px 10px; font-size: 13px; } }
/* video-options-1025: whole model card is a link; how-to, video and (i) keep their own clicks */
.mcard-go { position: relative; cursor: pointer; transition: transform .12s ease, box-shadow .12s ease; }
.mcard-go:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.mcard-go .card-go { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mcard-go .card-go:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.mcard-go details, .mcard-go video, .mcard-go .info-dot, .mcard-go button { position: relative; z-index: 2; }

/* video-options-1025: «Дополнительно» (seed, what to avoid, first+last frame) */
.opt-more { margin: 4px 0 12px; border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px; }
.opt-more > summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.opt-more label { display: block; margin-top: 8px; }
.opt-more input[type=text], .opt-more input[type=number] { width: 100%; }
.opt-more .muted { font-size: 13px; margin: 4px 0 0; }
[data-go] { cursor: pointer; }
[data-go] a, [data-go] button, [data-go] input, [data-go] label { cursor: pointer; }
/* video-options-1025: the tour tip sat on top of the cookie bar (1280 studio). Lift it above the bar. */
@media (min-width: 760px) { html.cookie-on .tour-card { bottom: calc(var(--cookie-h, 64px) + 40px); } }
/* video-options-1025: neutral line icons (no store logos), drawn with a mask so they follow the text colour. */
.fmt-ico.mi { width: 24px; height: 24px; border: 0; border-radius: 0; background: currentColor; -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat; }
.fmt-ico.plane { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 2 11 13'/%3E%3Cpath d='M22 2 15 22l-4-9-9-4z'/%3E%3C/svg%3E"); }
.fmt-ico.bag { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 7h12l1 14H5z'/%3E%3Cpath d='M9 7a3 3 0 0 1 6 0'/%3E%3C/svg%3E"); }
.fmt-ico.box { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 7l9-4 9 4v10l-9 4-9-4z'/%3E%3Cpath d='M3 7l9 4 9-4M12 11v10'/%3E%3C/svg%3E"); }
.fmt-ico.heart { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 20s-7-4.4-7-10a4 4 0 0 1 7-2.6A4 4 0 0 1 19 10c0 5.6-7 10-7 10z'/%3E%3C/svg%3E"); }
.fmt-ico.tag { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12V4h8l10 10-8 8z'/%3E%3Ccircle cx='7.5' cy='7.5' r='1.5'/%3E%3C/svg%3E"); }
.fmt-ico.store { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9l1-5h14l1 5'/%3E%3Cpath d='M4 9a2.7 2.7 0 0 0 5.3 0 2.7 2.7 0 0 0 5.4 0 2.7 2.7 0 0 0 5.3 0'/%3E%3Cpath d='M5 11v9h14v-9M10 20v-5h4v5'/%3E%3C/svg%3E"); }
.fmt-hint { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 8px 0 4px; font-size: 14px; }
.fmt-hint[hidden] { display: none; }
.fmt-hint .btn { width: auto; min-height: 36px; margin: 0; }
.format-picks button > span:last-child { text-align: center; line-height: 1.2; overflow-wrap: anywhere; }
@media (max-width: 759px) { .format-picks button { min-height: 64px; font-size: 13px; } }
.ava-init { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 999px; background: linear-gradient(135deg, var(--accent), #1e1b4b); color: #fff; font-weight: 700; font-size: 14px; line-height: 1; }
.ava-init[hidden] { display: none; }

/* Mher 25.10: struck-through full price + promo label on the make button. */
.price-old { text-decoration: line-through; opacity: .7; margin-right: .25em; }
.promo-tag { display: inline-block; margin-left: .4em; padding: .05em .5em; border-radius: 999px; background: #e8f6ec; color: #17663a; font-size: .85em; font-weight: 600; }
.promo-bf { background: #111; color: #fff; }

/* delivery-1025: protected previews of other people's works */
[data-protected] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; -webkit-user-drag: none; }
.protect-note { margin: .4rem 0 0; }
/* chatbtn-1025: optional model switch on ready generations */
.mpick{margin:10px 0;padding:10px 14px}.mpick summary{cursor:pointer;display:flex;gap:6px;align-items:center;flex-wrap:wrap;list-style:none}.mpick summary::-webkit-details-marker{display:none}
.mpick-chg{margin-left:auto;font-size:13px;color:var(--accent);text-decoration:underline}.mpick-list{display:grid;gap:6px;margin-top:8px}
.mpick-opt{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--border,rgba(127,127,127,.25));border-radius:10px;cursor:pointer}
.mpick-opt.on{border-color:var(--accent);background:color-mix(in srgb,var(--accent) 10%,transparent)}.mpick-name{flex:1}.mpick-price{font-weight:600;white-space:nowrap}
.mpick-rec{font-style:normal;font-size:11px;padding:1px 6px;border-radius:99px;background:color-mix(in srgb,var(--accent) 22%,transparent);margin-left:4px}
/* chatbtn-1025: «Лучшие работы» tiles are links to «Хочу так же» */
a.bw-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.bw-link figure { margin: 0; width: 100%; height: 100%; }
a.bw-link:focus-visible { outline: 2px solid #8b5cf6; outline-offset: 2px; }
.bw-cta { display: inline; font-weight: 600; color: #fff; margin-left: 4px; }
@media (max-width: 759px) { .bw-cta { display: block; margin-left: 0; } }
.tpl-page h1, .tpl-page .card h2, .best-detail h1 { font-family: var(--sans); font-weight: 700; }
.tpl-explain p { margin: 0 0 6px; }
/* chatbtn-1025: multi-photo picker */
.pp-input { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.pp { margin: 6px 0 10px; }
.pp-drop { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 64px; padding: 12px 14px; border: 2px dashed rgba(139,92,246,.55); border-radius: var(--r, 14px); background: rgba(139,92,246,.07); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.pp-drop:disabled { opacity: .55; cursor: default; }
.pp.is-over .pp-drop { background: rgba(139,92,246,.18); }
.pp-plus { font-size: 26px; line-height: 1; color: #a78bfa; }
.pp-txt { flex: 1; }
.pp-count { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pp-thumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.pp-thumb { position: relative; width: 72px; height: 72px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); }
.pp-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pp-x { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 18px; line-height: 26px; padding: 0; cursor: pointer; }
.pp-warn { color: #fca5a5; margin: 4px 0 0; }
/* chatbtn-1025: compact, tappable job toast that never covers the bottom nav or main buttons */
.job-toast { cursor: pointer; padding: 8px 6px 8px 10px; gap: 10px; touch-action: pan-y; transition: transform .2s ease, opacity .2s ease; }
.job-toast img { width: 40px; }
.job-toast p { font-size: 14px; line-height: 1.3; }
.job-toast a { font-weight: 700; font-size: 14px; }
.job-toast button { min-width: 44px; min-height: 44px; }
@media (max-width: 759px) {
  .job-toast { top: calc(64px + env(safe-area-inset-top)); bottom: auto !important; z-index: 60; }
}
.pay-soon { position: relative; padding-right: 44px; }
.banner-x { position: absolute; top: 50%; right: 4px; transform: translateY(-50%); width: 40px; height: 40px; border: 0; background: transparent; color: inherit; font-size: 22px; cursor: pointer; }
/* chatbtn-1025: one bottom popup at a time — the install banner waits until the cookie bar is closed */
body:has(.cookie:not([style*="display: none"])) #install-banner { display: none !important; }
/* chatbtn-1025: generation page titles use the same sans font as the rest of the app */
.work-viewer h1, .work-viewer h2, .gen-page h1, .gen-page .card h2, .refine-panel h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
.studio-title, .studio h1, .studio h2, .model-sheet h2 { font-family: var(--sans); font-weight: 700; letter-spacing: -0.01em; }
/* chatbtn-1025: clean create form */
.format-picks button { flex-direction: column; gap: 2px; }
.fmt-ratio { display: block; font-size: 11px; opacity: .75; font-variant-numeric: tabular-nums; }
.form-more { margin: 12px 0; }
.form-more > summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.form-more .quick-chips, .form-more .line-box, .form-more .compare-link { margin-top: 10px; }
.rules-short a { color: var(--muted, inherit); }
.prompt-wrap { position: relative; }
.prompt-wrap textarea { padding-right: 44px; }
.mic-btn { position: absolute; right: 6px; bottom: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--surface-2, rgba(255,255,255,.08)); color: inherit; display: grid; place-items: center; cursor: pointer; }
.tpl-link { margin: 8px 0 -4px; text-align: right; }
.model-sheet .compare-link { margin: 4px 0 10px; }
/* chatbtn-1025: tooltips for icon-only controls */
@media (hover: hover) {
  [data-tip] { position: relative; }
  [data-tip]:hover::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%); width: max-content; max-width: 260px; padding: 6px 10px; border-radius: 8px; background: #111; color: #fff; font: 500 12px/1.35 var(--sans); white-space: normal; z-index: 70; pointer-events: none; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
  .pp-input[data-tip]:hover::after { display: none; }
}
.tip-i { width: 18px; height: 18px; margin-left: 6px; border-radius: 50%; border: 1px solid currentColor; background: transparent; color: var(--muted, #aaa); font: 700 11px/1 var(--sans); padding: 0; vertical-align: middle; cursor: pointer; }
.tip-i-mic { position: absolute; right: 2px; bottom: 40px; }
.tip-text { margin: 4px 0 8px; color: var(--muted, #aaa); }
.prompt-wrap { margin-bottom: 12px; }
.prompt-wrap textarea { margin: 0; display: block; width: 100%; }
.person-only[hidden], label.check.person-only[hidden] { display: none !important; }
.format-picks ~ .aspect-native, .format-picks ~ .aspect-picks ~ .aspect-native { display: none !important; }

/* task-simple-1026 */
.task-lead{max-width:62ch;font-size:1rem}
.task-examples{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:8px 0 12px}
.task-rules{margin:8px 0 0;text-align:center}
.task-rules a{color:inherit;opacity:.75}
h1.studio-title,h2.studio-title{font-family:var(--sans)!important;font-weight:700}

/* Mher 26.10: simple home (one question, 4 kinds, one main button), guarantees, idea groups */
.home2 .lead { margin: 0 0 14px; }
.h2-ask { display: grid; gap: 12px; margin: 8px 0 14px; }
.h2-q { font-weight: 700; font-size: 18px; }
.h2-ask textarea { width: 100%; min-height: 64px; font-size: 17px; padding: 12px 14px; border-radius: var(--r, 14px); border: 1px solid var(--line, rgba(127,127,127,.35)); background: var(--card, transparent); color: inherit; resize: vertical; }
.h2-kinds { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.h2-kind { display: grid; justify-items: center; gap: 6px; padding: 14px 6px; min-height: 76px; border-radius: var(--r, 14px); border: 1px solid var(--line, rgba(127,127,127,.35)); background: var(--card, transparent); color: inherit; font: inherit; font-weight: 700; cursor: pointer; }
.h2-kind:hover, .h2-kind:focus-visible { background: color-mix(in srgb, var(--sec, #7c5cff) 22%, transparent); }
.h2-go { width: 100%; }
.guarantees { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.guarantees li { display: flex; gap: 8px; align-items: flex-start; }
.guarantees li::before { content: "✓"; color: #22c55e; font-weight: 800; flex: 0 0 auto; }
.guarantees.g-compact { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); font-size: 13px; opacity: .9; margin-top: 10px; }
.grp-list { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 12px 0 20px; }
.grp-card { display: grid; grid-template-columns: 110px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r, 14px); border: 1px solid var(--line, rgba(127,127,127,.35)); text-decoration: none !important; color: inherit; }
.grp-card:hover, .grp-card.on { border-color: var(--sec, #7c5cff); }
.grp-card img { width: 110px; height: 110px; object-fit: cover; border-radius: 12px; }
.grp-txt { display: grid; gap: 6px; }
.grp-txt strong { font-size: 18px; }
.grp-btn { justify-self: start; }
@media (max-width: 900px) { .grp-list { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .h2-kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grp-card { grid-template-columns: 96px 1fr; } .grp-card img { width: 96px; height: 96px; } }
.home2 h1 { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }

/* Mher 26.10: credit history amounts never wrap on phones (800 showed as 80/0). */
.ledger-table td.num, .ledger-table th:last-child { white-space: nowrap; text-align: right; }

/* rd27 (Mher 27.10): new design from mockups, our colors (dark navy + turquoise). */
.st-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; line-height: 1.5; background: color-mix(in srgb, var(--muted) 16%, transparent); color: var(--fg); }
.st-chip.st-running { background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent); }
.st-chip.st-done { background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); }
.st-chip.st-failed { background: color-mix(in srgb, var(--danger) 18%, transparent); color: var(--danger); }
.st-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; animation: rdpulse 1.2s ease-in-out infinite; }
@keyframes rdpulse { 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .st-dot { animation: none; } }
.work-meta .st-chip { margin-bottom: 4px; }
.rd-left { margin: 0; font-size: 14px; }
.rd-private { margin: 0; font-size: 13px; color: var(--accent); }
.price-dock .btn .btn-price { display: inline-block; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--accent-fg) 18%, transparent); font-weight: 800; }
.rd-retry { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-retry .btn { flex: 1 1 160px; }
.rd-need { font-weight: 800; font-size: 18px; }
.rd-topup { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin: 12px 0; }
.rd-pkg { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--elevated); color: var(--fg); text-decoration: none; }
.rd-pkg strong { font-size: 16px; }
.rd-pkg.rd-pick { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.rd-need-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-empty-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-profile-link { width: 100%; margin-bottom: 10px; }

/* footer 28.10 (Мгер): requisites block at the very bottom, below all link sections; clear of tab bar + cookie */
.footer .cols, .footer .wrap.cols { display: flex !important; flex-direction: column; gap: 22px; }
.footer .footer-brand { border-top: 1px solid var(--border); padding-top: 18px; width: 100%; }
@media (max-width: 759px) {
  .footer, body:has(.cookie:not([hidden])) .footer { padding-bottom: calc(var(--tabbar-h, 60px) + 120px + env(safe-area-inset-bottom)) !important; }
  body:has(.price-dock) .footer, body:has(.thumb-bar) .footer { padding-bottom: calc(230px + env(safe-area-inset-bottom)) !important; }
}
@media (min-width: 760px) { .footer { padding-bottom: 110px; } }
/* footer 28.10 00:15 (Мгер): smaller, muted requisites */
.footer .footer-brand > div { font-size: 13px; line-height: 1.5; color: color-mix(in srgb, var(--fg) 68%, transparent); }
.footer .footer-brand strong { color: color-mix(in srgb, var(--fg) 82%, transparent); font-weight: 600; }
.footer .footer-brand .badges .badge { font-size: 11.5px; padding: 3px 8px; }
.footer .footer-brand .muted { font-size: 12px; }
@media (max-width: 759px) { .footer .footer-brand > div { font-size: 12.5px; } }

/* vprice-1028: model picker = button with a chevron; the list opens right under it (all tabs, themes, widths). */
button.model-open { display: flex !important; align-items: center; gap: 10px; width: 100%; justify-content: space-between; text-align: left; }
button.model-open .mrow { min-width: 0; }
button.model-open .mrow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.model-open-r { display: inline-flex; align-items: center; gap: 6px; flex: none; color: var(--accent); font-weight: 600; }
.model-open .mchev { flex: none; transition: transform .2s ease; }
.model-open[aria-expanded="true"] .mchev { transform: rotate(180deg); }
.model-open[aria-expanded="true"] { border-color: var(--accent); }
select.model-native {
  position: absolute !important; width: 1px !important; height: 1px !important; min-height: 0; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.model-drop { margin: 8px 0 4px; padding: 8px; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--elevated); color: var(--fg); }
.model-drop[hidden] { display: none !important; }
.model-drop .model-list { margin-top: 0; max-height: min(60vh, 520px); overflow: auto; overscroll-behavior: contain; }
.model-drop .model-opt { width: 100%; flex: none; }
.model-drop .compare-link { margin: 4px 4px 8px; }
@media (prefers-reduced-motion: reduce) { .model-open .mchev { transition: none; } }
/* mobilevideo-1028: consent box the person missed before pressing «Создать». */
label.check.need-consent { outline: 2px solid #ff6b6b; outline-offset: 4px; border-radius: 10px; animation: needConsent .6s ease 2; }
@keyframes needConsent { 50% { outline-color: transparent; } }

/* previews-1028: × on «+» photo slots. */
.photo-slot { position: relative; }
.photo-slot .slot-x { position: absolute; top: 4px; right: 4px; z-index: 2; }

/* dropdowns-1028 (Mher 28.10): one collapsed style with a chevron for every choice list (dd.js). */
.dd { position: relative; }
.dd:not(.dd-open) > :not(.dd-btn) { display: none !important; }
.dd.dd-open { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.dd.dd-open > .dd-btn { flex: 1 0 100%; }
.dd-hide-k { display: none !important; }
.dd-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 10px 14px; text-align: left;
  border: 1px solid var(--border); border-radius: var(--r-lg, 14px); background: var(--elevated, transparent); color: var(--fg); font: inherit; cursor: pointer;
}
.dd-btn .dd-k { color: var(--muted, inherit); opacity: .8; }
.dd-btn .dd-k::after { content: ":"; }
.dd-btn .dd-v { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd-btn .dd-chev { flex: none; color: var(--accent); transition: transform .2s ease; }
.dd-btn[aria-expanded="true"] { border-color: var(--accent); }
.dd-btn[aria-expanded="true"] .dd-chev { transform: rotate(180deg); }
nav.dd .dd-btn, .folder-bar.dd .dd-btn { width: auto; max-width: 100%; }
nav.dd:not(.dd-open), .folder-bar.dd:not(.dd-open) { display: inline-flex; }
details.dd-details > summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; }
details.dd-details > summary::-webkit-details-marker { display: none; }
details.dd-details > summary::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-left: auto; border-right: 2.4px solid var(--accent); border-bottom: 2.4px solid var(--accent);
  transform: translateY(-2px) rotate(45deg); transition: transform .2s ease;
}
details.dd-details[open] > summary::after { transform: translateY(2px) rotate(-135deg); }
select:not([multiple]):not(.model-native):not(.aspect-native) {
  -webkit-appearance: none; appearance: none; padding-right: 40px;
  background-image: linear-gradient(45deg, transparent 50%, var(--accent) 50%), linear-gradient(135deg, var(--accent) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat;
}
@media (prefers-reduced-motion: reduce) { .dd-btn .dd-chev, details.dd-details > summary::after { transition: none; } }

/* required-1028: red * for required, «можно пропустить» for optional, red outline + tip when missing (req.js). */
.req-star { color: #ff5a5f; font-weight: 700; }
.req-opt { color: var(--muted, inherit); opacity: .75; font-weight: 400; font-size: .9em; }
.need-field { outline: 2px solid #ff5a5f !important; outline-offset: 3px; border-radius: 10px; animation: needConsent .6s ease 2; }
.req-tip { color: #ff5a5f; font-size: .92em; margin: 6px 0 10px; font-weight: 600; }

/* hotfix-seedance-1028: photo fitted to the chosen format */
.fit-prev{margin:10px 0 4px;display:flex;flex-direction:column;align-items:flex-start;gap:6px}
.fit-prev[hidden]{display:none}
.fit-prev .fit-title{margin:0}
.fit-prev canvas{height:220px;width:auto;max-width:100%;border-radius:12px;outline:2px dashed var(--accent,#3fe0c5);outline-offset:3px;background:#0003}
.fit-prev .fit-note{margin:0;max-width:420px}

/* framedrag-1028: drag the photo inside «Как фото встанет в кадр». */
.fit-prev canvas.fit-drag{touch-action:none;user-select:none;-webkit-user-select:none}
.fit-prev .fit-hint{margin:0;font-weight:600}

/* mascot-1028: new Bars poses */
.bars-pose-big { width: auto; height: 180px; object-fit: contain; }
.help-item .bars-pose-big { height: 120px; }
.friendly-pose { margin: 0 auto 8px; }
.bars-pose.pose-auth { height: 260px; margin: 0 auto; }
@media (max-width: 759px) { .bars-pose.pose-auth { height: 170px; } .bars-pose-big { height: 130px; } }

/* hdrfit-1028: phone header balance never runs past the edge — amount on top, expiry as a small second line */
@media (max-width: 759px) {
  a.chip.bal-chip.bal-mobile { min-width: 0; max-width: calc(100vw - 168px); flex-shrink: 1; padding-top: 3px; padding-bottom: 3px; line-height: 1.12; }
  .chip.bal-mobile .bal-txt { padding: 0; border: 0; border-radius: 0; background: none; cursor: inherit; display: inline-flex; flex-direction: column; align-items: flex-end; min-width: 0; max-width: 100%; }
  .chip.bal-mobile .bal-num, .chip.bal-mobile .bal-left { display: block; padding: 0; border: 0; border-radius: 0; background: none; cursor: inherit; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .chip.bal-mobile .bal-left { margin-left: 0; font-size: 10.5px; font-weight: 500; opacity: .78; }
  .top-inner { min-width: 0; }
}
@media (max-width: 430px) {
  html a.chip.bal-chip.bal-mobile { font-size: 12.5px; padding-left: 9px; padding-right: 9px; gap: 0; }
  html a.chip.bal-chip.bal-mobile::before { display: none; }
}
@media (max-width: 359px) { .brand-name { display: none; } a.chip.bal-chip.bal-mobile { max-width: calc(100vw - 112px); padding-left: 7px; padding-right: 7px; } html .bal-mobile .bal-num { font-size: 12px; } }

/* home-1104: launch 11.11 trust blocks */
.h11-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:16px}
.h11-ba{padding:14px}.h11-pair{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.h11-cell{position:relative}.h11-cell img,.h11-cell video{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:14px;display:block}
.h11-wide{width:100%;aspect-ratio:16/10;object-fit:cover;border-radius:14px;display:block}
.h11-tag{position:absolute;top:8px;left:8px;font-size:12px;padding:3px 9px;border-radius:99px;background:rgba(0,0,0,.6);color:#fff}
.h11 h3{margin:10px 0 4px;font-size:17px}.h11 audio{width:100%;margin-top:8px}
.h11-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px}.h11-cards .card{padding:18px}
.h11-ico{font-size:26px}.h11-pay{display:flex;gap:24px;align-items:center;flex-wrap:wrap;padding:22px}
.h11-pay img{width:120px;height:auto}.h11-pay ul{margin:0;padding-left:20px;line-height:1.8;flex:1;min-width:220px;list-style:none}
.h11-num{display:inline-grid;place-items:center;width:34px;height:34px;border-radius:50%;background:var(--accent,#3aa0ff);color:#fff;font-weight:700}
.h11-cta{margin-top:18px}
.h11-gift{padding:14px 18px;margin-top:14px;font-weight:600}

/* deploy-1104: redesign v2 homepage (Mher 04.11): hero text, gift, price chips, quick actions (glossy .itile), templates carousel */
.v2-h1 .v2-g { background: linear-gradient(90deg, #7b4dff, #3aa0ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2-gift { display: inline-block; margin: 0 0 16px; padding: 10px 16px; border-radius: 14px; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.5); font-weight: 600; }
.v2-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 16px; }
.v2-prices { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.v2-prices span { padding: 6px 12px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); background: color-mix(in srgb, var(--surface) 70%, transparent); font-size: 14px; color: var(--muted); }
.v2-prices b { color: var(--text, inherit); }
.v2-tiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.v2-tile { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 20px; min-height: 178px; border-radius: 22px; color: inherit; text-decoration: none; border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.02)); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 10px 30px rgba(0,0,0,.25); transition: transform .15s; }
.v2-tile:hover { transform: translateY(-2px); }
.v2-tile .itile { width: 56px; height: 56px; margin-bottom: 8px; }
.v2-tn { font-weight: 700; font-size: 17px; }
.v2-tp { color: var(--muted); font-size: 14px; }
.v2-ar { position: absolute; right: 16px; bottom: 14px; opacity: .7; }
.v2-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.v2-more { color: var(--accent); text-decoration: none; white-space: nowrap; }
.v2-car { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: thin; padding: 2px 2px 10px; }
.v2-tc { position: relative; flex: 0 0 220px; aspect-ratio: 4 / 5; border-radius: 18px; overflow: hidden; scroll-snap-align: start; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); color: #fff; text-decoration: none; }
.v2-tc img { width: 100%; height: 100%; object-fit: cover; display: block; }
.v2-tcn { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 10px 30px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-size: 14px; font-weight: 600; }
.v2-pr { position: absolute; left: 10px; bottom: 8px; font-size: 12px; color: #cfe7ff; }
html:not([data-theme="dark"]) .v2-tile { background: linear-gradient(160deg, #fff, rgba(255,255,255,.7)); box-shadow: 0 8px 24px rgba(20,30,60,.08); }
@media (max-width: 1100px) { .v2-tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 759px) { .v2-tiles { grid-template-columns: 1fr 1fr; gap: 12px; } .v2-tile { min-height: 150px; padding: 16px; } .v2-tile:last-child:nth-child(odd) { grid-column: span 2; min-height: 120px; } .v2-tc { flex-basis: 150px; } }


/* fixes-1105: cookie must not cover content above the bottom nav */
@media (max-width: 759px) {
  .cookie {
    bottom: calc(var(--tabbar-h, 60px) + 6px + env(safe-area-inset-bottom)) !important;
    left: 8px !important; right: 8px !important;
    padding: 6px 10px !important; gap: 8px !important;
    font-size: 12px !important; line-height: 1.25;
    max-height: 64px; overflow: hidden;
  }
  html.cookie-on body {
    padding-bottom: calc(var(--tabbar-h, 60px) + var(--cookie-h, 56px) + 16px + env(safe-area-inset-bottom)) !important;
  }
  html.cookie-on main.wrap, html.cookie-on .section {
    scroll-margin-bottom: calc(var(--cookie-h, 56px) + 12px);
  }
}


/* fixes-1105: notify-when-opens on cartoon/challenge */
.soon-notify { margin-top: 14px; }
.soon-form .soon-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.soon-form input[type=email] { flex: 1 1 180px; min-height: 44px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--line, #334); background: var(--card, #111); color: inherit; }
.soon-form .btn { min-height: 44px; }
.pay-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pkg-fx { display: block; margin-top: 2px; }

/* usage-reset 06.11: one quiet icon row for save, follow, like, share and report.
   The stroke icons are ours. Filled only while the action is on. */
.soc-ico { display: block; flex: none; }
.soc-tog, .soc-follow-btn, .soc-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 12px; border-radius: 999px; line-height: 1.1;
}
.soc-tog .soc-ico path, .soc-follow-btn .soc-ico path, .soc-act .soc-ico path { fill: none; }
.soc-tog.on, .soc-follow-btn.is-on {
  background: color-mix(in srgb, var(--accent) 16%, transparent);
  border-color: var(--accent); color: var(--accent);
}
.soc-tog.on .soc-ico path { fill: currentColor; }
.soc-follow-btn.is-on .soc-ico path { fill: none; }
@media (max-width: 420px) {
  .soc-grid .soc-tog { min-width: 44px; min-height: 44px; padding: 0 8px; }
  .soc-grid .soc-tog .soc-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
}

/* Gallery on a phone: two square cards in a row, then the next pair. Not a one-card reel, and not only four works.
   The preview is contained in the square. The open work keeps its own ratio (see .work-stage). */
@media (max-width: 759px) {
  .gallery-page { padding-top: 4px; }
  .gallery-page h1 { font-size: 22px; margin: 0 0 4px; }
  .gallery-page > .lead, .gallery-page > .muted {
    font-size: 12px; line-height: 1.25; margin: 0 0 4px;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  }
  .gallery-page .soc-search { margin: 4px 0; }
  .gallery-page .soc-search input { min-height: 40px; padding-top: 6px; padding-bottom: 6px; }
  .gallery-page .gal-sort, .gallery-page .gal-kinds, .gallery-page .gal-switch {
    display: inline-flex; width: auto; vertical-align: middle; margin: 2px 6px 2px 0;
  }
  .soc-grid.idea-grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px; overflow: visible; width: 100%; max-width: 100%;
    padding: 0 0 8px; scroll-snap-type: none; contain: none;
  }
  .soc-grid.idea-grid > .soc-card {
    flex: none; max-width: none; width: auto; min-width: 0; scroll-snap-align: unset;
  }
  .soc-media { aspect-ratio: 1 / 1; }
  .soc-media img, .soc-media video {
    width: 100%; height: 100%; object-fit: contain; background: #0b1020;
  }
  .soc-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding: 6px 6px 8px; gap: 2px 6px; min-width: 0; }
  .soc-body > .muted {
    display: block;
    grid-column: 1 / -1;
    min-width: 0;
    margin: 0;
    font-size: 11px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .soc-body .gal-card-cats { grid-column: 1 / -1; min-width: 0; margin-top: 4px; }
  .soc-body .ava { width: 16px; height: 16px; }
  .soc-nick, .soc-site-author, .soc-title { grid-column: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .soc-nick, .soc-site-author { font-size: 12px; display: block; }
  .soc-title { font-size: 12px; margin: 0; display: block; }
  .soc-actions { grid-column: 2; grid-row: 1 / span 2; margin: 0; gap: 4px; flex-wrap: nowrap; }
  .soc-grid .soc-tog { min-height: 36px; min-width: 36px; padding: 0 8px; }
  .soc-grid .soc-actions .btn { display: none; }
  .cookie .cookie-short { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.work-stage img, .work-stage video, .ws-left .work-stage img, .ws-left .work-stage video {
  aspect-ratio: auto; object-fit: contain;
}
/* Open work must fit the phone. A nowrap author row was widening the page, and overflow-x:clip then cut the buttons off. */
@media (max-width: 759px) {
  .work-viewer, .work-viewer.want-same, .ws-grid, .ws-left, .ws-card, .ws-author, .ws-actions {
    min-width: 0; max-width: 100%;
  }
  .ws-grid { grid-template-columns: minmax(0, 1fr); }
  .ws-author > *, .ws-follow, .ws-actions > *, .ws-actions form { min-width: 0; max-width: 100%; }
  .ws-follow { flex: 1 1 100%; }
  .ws-author .soc-follow-btn, .ws-actions .btn, .ws-actions .soc-tog, .ws-card .btn {
    white-space: normal; height: auto; max-width: 100%; min-height: 44px; line-height: 1.25;
  }
  .ws-actions { flex-wrap: wrap; }
  .ws-actions .btn, .ws-actions .soc-tog { flex: 1 1 calc(50% - 8px); }
  .ws-actions .soc-tog[data-soc="like"] { flex: 1 1 auto; }
  .ws-card .btn.big, .ws-card .btn.wide, .ws-card .btn.glow {
    width: 100%; box-sizing: border-box; text-align: center; padding: 10px 14px;
  }
}

/* Phone cards were a 4:5 frame with object-fit:cover, so a tall picture became a zoomed slice.
   Show the whole frame. A small file stays at its own size (width:auto above) instead of being stretched. */
@media (max-width: 759px) {
  .idea-grid .idea-media,
  .idea-grid .card > img,
  .idea-grid .idea-media img,
  .idea-grid .idea-media video,
  .compare .card img,
  .sec-ex img, .sec-ex video {
    aspect-ratio: auto;
    height: auto;
    max-height: none;
    width: 100%;
    object-fit: contain;
  }
  #bars-assistant-root {
    bottom: calc(var(--tabbar-h, 62px) + 18px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

/* Phone cookie: one short line above the tab bar.
   While it is open, body.cookie-on pads the page by the measured bar height
   (on top of the tab bar) so the last row of a section can scroll clear.
   Accepting removes the class and that extra padding. */
@media (max-width: 759px) {
  html body .cookie {
    left: 8px !important;
    right: 8px !important;
    bottom: calc(var(--nav-real, calc(var(--tabbar-h, 62px) + env(safe-area-inset-bottom))) + 6px) !important;
    display: flex;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
    max-width: none !important;
    max-height: none !important;
    padding: 4px 6px 4px 10px !important;
    border-radius: 12px;
    font-size: 12px !important;
    line-height: 1.2 !important;
    z-index: 41;
  }
  html body .cookie .cookie-long { display: none !important; }
  html body .cookie .cookie-short {
    display: block !important;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  html body .cookie a { min-height: 0 !important; display: inline !important; }
  html body .cookie .btn,
  html body .cookie button.btn,
  html body .cookie .btn.small {
    min-height: 32px !important;
    height: 32px;
    padding: 0 12px !important;
    font-size: 13px !important;
    width: auto !important;
    flex: none;
  }
  body.cookie-on {
    padding-bottom: calc(var(--tabbar-h, 62px) + var(--cookie-h, 44px) + 12px + env(safe-area-inset-bottom)) !important;
  }
  html.cookie-on {
    scroll-padding-bottom: calc(var(--tabbar-h, 62px) + var(--cookie-h, 44px) + 12px + env(safe-area-inset-bottom));
  }
}

/* cookie2-1107: thin one-line strip on tablet/desktop too (Mger 07.11).
   body.cookie-on (set in base.html) pads the page by the measured height;
   accepting removes the class and the padding. */
@media (min-width: 760px) {
  html body .cookie {
    bottom: 10px !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    max-width: none !important;
    max-height: none !important;
    padding: 4px 6px 4px 14px !important;
    border-radius: 12px;
    font-size: 13px !important;
    line-height: 1.2 !important;
  }
  html body .cookie .cookie-long {
    display: block !important;
    flex: 1 1 auto; min-width: 0;
    font-size: 13px !important;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  html body .cookie .cookie-short { display: none !important; }
  html body .cookie a { min-height: 0 !important; display: inline !important; }
  html body .cookie .btn,
  html body .cookie button.btn,
  html body .cookie .btn.small {
    min-height: 32px !important; height: 32px;
    padding: 0 14px !important; font-size: 13px !important;
    width: auto !important; flex: none;
  }
  body:has(.cookie:not([style*="none"]):not([x-cloak])) { padding-bottom: 0; }
  body.cookie-on { padding-bottom: calc(var(--cookie-h, 40px) + 20px) !important; }
  html.cookie-on { scroll-padding-bottom: calc(var(--cookie-h, 40px) + 20px); }
}

/* gallery-cats-1110: thematic filters and publish ticks */
.gal-cats {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  margin: 10px 0 8px;
  padding: 2px 0 6px;
}
.gal-cats::-webkit-scrollbar { display: none; }
.gal-cats .chip { flex: none; white-space: nowrap; }
@media (min-width: 900px) {
  .gal-cats { flex-wrap: wrap; overflow: visible; }
}
.gal-cat-picks { border: 0; margin: 10px 0; padding: 0; }
.gal-cat-picks legend { font-weight: 600; margin-bottom: 4px; }
.gal-cat-list { display: flex; flex-wrap: wrap; gap: 8px; }
.gal-cat-tick { display: inline-flex; align-items: center; margin: 0; cursor: pointer; }
.gal-cat-tick input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.gal-card-cats { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; }
.gal-cat-mini { font-size: 12px; min-height: 28px; padding: 2px 10px; }
.gal-cat-tick.is-disabled { opacity: .45; pointer-events: none; }

/* gallery-cats-1110 visibility: Галерея in header, 6-item tab bar, home teaser block */
a.top-gal {
  display: none;
  flex: 0 0 auto;
  margin-left: 4px;
  white-space: nowrap;
  font-weight: 700;
  text-decoration: none;
}
@media (min-width: 760px) {
  a.top-gal { display: inline-flex; align-items: center; }
}
@media (max-width: 759px) {
  a.top-gal { display: none !important; }
}
.nav.open a.nav-profile {
  justify-content: center;
  font-weight: 700;
  margin-bottom: 6px;
}

.home-gallery { margin-top: 8px; }
.home-gal-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.home-gal-head h2 { margin: 0 0 4px; }
.home-gal-head .muted { margin: 0; max-width: 40rem; }
.home-gal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-gal-grid { margin-top: 8px; }
.home-gal-card { text-decoration: none; color: inherit; }
.home-gal-card .soc-media {
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--r, 16px);
  background: var(--elevated);
}
.home-gal-card .soc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-gal-card .soc-body { display: flex; flex-direction: column; gap: 4px; padding: 8px 2px 0; }
.home-gal-card .soc-title { font-weight: 650; font-size: 14px; line-height: 1.3; }
@media (max-width: 759px) {
  .home-gal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-gal-actions { width: 100%; }
  .home-gal-actions .btn { flex: 1; justify-content: center; }
}
@media (min-width: 760px) {
  .home-gal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .home-gal-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}

.tabs a.tab-gallery {
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
}

@media (max-width: 759px) {
  .bottom-nav a.bn-create .bn-ic {
    background: color-mix(in srgb, var(--accent) 16%, transparent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--accent) 24%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent);
  }
}

/* hy-works-bar-1110 (Мгер 10.11 14:57): HY bottom-bar label is short «Աշխատանքներ»
   and uses the same font as neighboring tabs. RU/EN «Мои работы» / My works stay
   slightly smaller on narrow phones. html:not([lang=hy]) so HY is not affected. */
@media (max-width: 390px) {
  html:not([lang="hy"]) .bottom-nav a.bn-works .bn-label { font-size: 9px; letter-spacing: -0.2px; }
}
@media (max-width: 360px) {
  html:not([lang="hy"]) .bottom-nav a.bn-works .bn-label { font-size: 8.5px; letter-spacing: -0.25px; }
}

/* share-cats-model-1110: roomier share sheet, larger chips; show model line on narrow gallery cards */
@media (max-width: 759px) {
  dialog.sheet.share-sheet, dialog.share-sheet {
    max-height: min(92dvh, 760px);
  }
}
dialog.share-sheet form { padding-bottom: 4px; }
dialog.share-sheet .gal-cat-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
dialog.share-sheet .gal-cat-tick {
  min-height: 44px;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.25;
  border-width: 1.5px;
}
dialog.share-sheet .gal-cat-tick:has(input:checked),
dialog.share-sheet .gal-cat-tick.on {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 16%, transparent);
}
dialog.share-sheet .gal-model-pick select.file-field,
dialog.share-sheet select.file-field {
  min-height: 48px;
  font-size: 16px;
  width: 100%;
}
dialog.share-sheet .sheet-actions {
  position: sticky;
  bottom: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  padding-top: 8px;
  margin-top: 8px;
}
dialog.share-sheet .share-rules { font-size: 12px; margin: 8px 0 0; padding-left: 1.1em; }

/* Official payment marks: Visa, Mastercard, ArCa, Ameriabank.
   Shown only when PAYMENTS_MODE is not test. Light plates on a dark background;
   official artwork is not recoloured or stretched. */
.pay-marks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.pay-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  background: #fff;
}
.pay-mark img {
  height: 22px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: center;
  display: block;
}

/* compact-chips-1110: choice chips take less space, one thin border, readable.
   Primary action buttons (.btn, bottom nav, cookie, menu/theme) stay easy to tap. */

/* The inner <span> on label.chip (share / support / curator / avatars) used to
   draw a second pill inside the chip. Text only — the label is the single chip. */
.chip > span,
.gal-cat-tick > span,
.preset-chips .chip > span {
  display: inline;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  cursor: inherit;
  font: inherit;
  color: inherit;
}
.chip input:checked + span,
.gal-cat-tick input:checked + span {
  background: none;
  color: inherit;
  border: 0;
  box-shadow: none;
}
/* Checked state lives on the outer chip, not the inner span. */
.chip:has(> input:checked),
.gal-cat-tick:has(input:checked),
.preset-chips .chip:has(input:checked) {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: none;
}

/* Unified compact choice / filter chips site-wide */
.chip, a.chip, button.chip, summary.chip,
.gal-cat-tick, .ochip,
.ic-chips .chip, .ex-chips .chip, .gal-cats .chip, .chips .chip,
.soc-chips a, .soc-tabs .chip, .gal-sort .chip, .gal-kinds .chip,
.quick-chips button, .aspect-picks button, .format-picks button,
.loop-tab, .seg button, .view-switch a, .tabs a, .langs a {
  min-height: 32px;
  height: auto;
  padding: 3px 10px;
  font-size: 14px;
  line-height: 1.25;
  gap: 4px;
  border-width: 1px;
  box-sizing: border-box;
  box-shadow: none;
}
.chip.on, a.chip.on, button.chip.on, summary.chip.on,
.chip[aria-current], .chip[aria-pressed="true"],
.gal-cat-tick:has(input:checked), .gal-cat-tick.on,
.ochip:has(input:checked),
.ic-chips .chip.on, .ex-chips .chip.on, .gal-cats .chip.on,
.chips .chip.on, .chips .chip.active, .soc-chips a.on, .soc-tabs .chip.on,
.quick-chips button.on, .aspect-picks button.on, .format-picks button.on,
.loop-tab.on, .seg button.on, .view-switch a.on, .tabs a.active, .langs a.active {
  box-shadow: none;
}

.gal-cat-list, .preset-chips, .ex-chips, .ic-chips, .gal-cats,
.chips, .opt-group .chips, .soc-chips, .quick-chips, .rd-empty-chips,
.gal-sort, .gal-kinds, .gal-chips {
  gap: 6px;
}

/* Share window: same compact ticks, not a second larger style */
dialog.share-sheet .gal-cat-list { gap: 6px; }
dialog.share-sheet .gal-cat-tick {
  min-height: 32px;
  padding: 3px 10px;
  font-size: 14px;
  line-height: 1.25;
  border-width: 1px;
  box-shadow: none;
}
dialog.share-sheet .gal-cat-tick:has(input:checked),
dialog.share-sheet .gal-cat-tick.on {
  background: var(--accent);
  color: var(--accent-fg);
  border-color: var(--accent);
  box-shadow: none;
}

/* Mini cats on cards stay even smaller */
.gal-cat-mini { min-height: 24px; padding: 1px 8px; font-size: 12px; }

/* Phone: keep compact chips; do not let the old 44px choice-chip rule win */
@media (max-width: 759px) {
  .chip, a.chip, button.chip, summary.chip,
  .gal-cat-tick, .ochip,
  .ic-chips .chip, .ex-chips .chip, .gal-cats .chip, .chips .chip,
  .soc-chips a, .soc-tabs .chip,
  .quick-chips button, .aspect-picks button, .format-picks button,
  .loop-tab, .seg button, .view-switch a, .tabs a, .langs a {
    min-height: 32px;
    padding: 3px 10px;
    font-size: 14px;
  }
  /* Primary actions stay comfortable to tap */
  .btn, button.btn, a.btn, summary.btn { min-height: 48px; font-size: 16px; }
  .btn.small, button.btn.small, a.btn.small { min-height: 44px; font-size: 15px; }
  .menu-toggle, .theme-toggle { min-height: 44px; }
  .cookie .btn, .cookie button.btn { min-height: 44px; }
  .bottom-nav a, .bottom-nav button { min-height: 44px; }
}

/* Do not shrink the header balance chip or status pills */
a.chip.bal-chip, .chip.bal-chip, .st-chip, .example-chip {
  min-height: unset;
}


/* banner-login-1110: the pay-soon × sits at the right of main, under desktop header
   tools (theme-toggle, langs) once the sticky header overlaps after a short scroll.
   Keep the banner and its close button above the header; close always clickable.
   After 23:01 the pay-soon banner may be removed; this also covers any .banner with
   .banner-x and the ideas .ic-banner-x. */
.top { --nav-h: 65px; }
.pay-soon,
.banner:has(> .banner-x) {
  position: sticky;
  top: var(--nav-h, 65px);
  z-index: 32;
  padding-right: 44px;
  isolation: isolate;
  pointer-events: none; /* text/padding must not steal the × click */
}
.pay-soon .banner-x,
.banner:has(> .banner-x) .banner-x,
.banner-x {
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  z-index: 2;
  pointer-events: auto;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 22px;
  cursor: pointer;
}
.ic-banner { position: relative; z-index: 2; }
.ic-banner-x { position: relative; z-index: 2; pointer-events: auto; }

/* pay-nav-1110: «Безопасная оплата» on the home page is a link to /app/credits
   (guest is sent to login, then back to purchase). */
a.h11-pay-link {
  display: block;
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
}
a.h11-pay-link h2 {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}
a.h11-pay-link:hover .h11-pay,
a.h11-pay-link:focus-visible .h11-pay {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
a.h11-pay-link:focus-visible {
  outline: none;
}
