:root {
  color-scheme: dark;
  --bg: #070611;
  --bg-deep: #030309;
  --panel: rgba(18, 15, 35, .72);
  --panel-strong: rgba(28, 20, 52, .86);
  --text: #fbf8ff;
  --muted: #c4bed8;
  --line: rgba(255, 255, 255, .16);
  --red: #ff314f;
  --pink: #ff4fd8;
  --blue: #00d4ff;
  --violet: #9b5cff;
  --glow-red: rgba(255, 49, 79, .42);
  --glow-blue: rgba(0, 212, 255, .34);
  --shadow: 0 26px 90px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 16% 0%, rgba(255, 49, 79, .24), transparent 32rem),
    radial-gradient(circle at 82% 10%, rgba(0, 212, 255, .2), transparent 31rem),
    linear-gradient(180deg, #0b0819 0%, var(--bg) 42%, var(--bg-deep) 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.9), transparent 80%);
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.site-header,
.site-footer,
.hero,
.section,
.split-section,
.support {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-weight: 900;
  white-space: nowrap;
  text-decoration: none;
}
.brand-mark {
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  border-radius: 10px;
  background: conic-gradient(from 140deg, var(--red), var(--pink), var(--blue), var(--violet), var(--red));
  box-shadow: 0 0 28px rgba(255, 79, 216, .7);
}
.nav { display: none; gap: 20px; color: var(--muted); font-size: 14px; }
.nav a { text-decoration: none; }
.nav a:hover { color: var(--text); }
.hero {
  display: grid;
  gap: 34px;
  align-items: center;
  min-height: calc(100vh - 74px);
  padding: 48px 0 72px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
h1,
h2,
h3,
p { overflow-wrap: break-word; }
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(58px, 16vw, 128px);
  line-height: .86;
  letter-spacing: 0;
  text-shadow: 0 0 28px rgba(255, 79, 216, .35);
}
h2 { margin: 0; font-size: clamp(34px, 8vw, 64px); line-height: .98; letter-spacing: 0; }
h3 { margin: 14px 0 8px; font-size: 21px; line-height: 1.15; }
.tagline {
  max-width: 740px;
  margin: 20px 0 0;
  color: var(--pink);
  font-size: clamp(26px, 7vw, 48px);
  font-weight: 900;
  line-height: 1.05;
}
.hero-text,
.section-heading p,
.feature-card p,
.split-section p,
.support p,
.site-footer,
.intro-band p,
.mode-strip span {
  color: var(--muted);
}
.hero-text { max-width: 680px; margin: 22px 0 0; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin-top: 32px; }
.store-button,
.ghost-button {
  min-height: 58px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 850;
}
.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border: 1px solid rgba(255,255,255,.28);
  background: linear-gradient(135deg, rgba(255,49,79,.95), rgba(255,79,216,.78) 48%, rgba(0,212,255,.72));
  box-shadow: 0 0 36px rgba(255, 79, 216, .38), 0 16px 42px rgba(0,0,0,.32);
}
.store-button small { display: block; color: rgba(255,255,255,.82); font-size: 12px; font-weight: 700; }
.play-icon {
  width: 0;
  height: 0;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 18px solid white;
}
.ghost-button {
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 690px;
  margin-top: 28px;
}
.hero-stats > span {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.06);
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
}
.hero-stats strong { display: block; color: var(--text); font-size: 26px; line-height: 1; }
.hero-stats > span > span { display: block; min-height: 0; margin-top: 8px; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 13px; line-height: 1.25; overflow-wrap: anywhere; }
.hero-visual {
  position: relative;
  isolation: isolate;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  z-index: -1;
  border-radius: 42%;
  background: radial-gradient(circle, rgba(255,79,216,.26), transparent 64%);
  filter: blur(12px);
}
.hero-visual img {
  width: min(680px, 100%);
  margin: 0 auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}
.hero-visual .hero-icon {
  width: min(380px, 82vw);
  aspect-ratio: 1;
  border-radius: 34px;
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: var(--shadow), 0 0 60px rgba(255, 79, 216, .24);
  transform: rotate(2deg);
}
.section,
.split-section,
.support { padding: 64px 0; }
.intro-band {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(255,49,79,.16), rgba(0,212,255,.1), rgba(155,92,255,.16));
}
.intro-band p { max-width: 980px; margin: 0; font-size: clamp(20px, 4vw, 34px); line-height: 1.2; font-weight: 850; }
.section-heading { max-width: 760px; margin-bottom: 30px; }
.wide-heading { max-width: 920px; }
.feature-grid,
.screenshot-grid,
.mode-strip {
  display: grid;
  gap: 16px;
}
.feature-card {
  position: relative;
  min-height: 220px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -35% 20%;
  height: 120px;
  border-radius: 999px;
  filter: blur(28px);
  opacity: .52;
}
.feature-card.hot::before { background: var(--red); }
.feature-card.blue::before { background: var(--blue); }
.feature-card.violet::before { background: var(--violet); }
.feature-card span { color: var(--pink); font-size: 13px; font-weight: 950; }
.feature-card p { margin: 0; position: relative; }
.screenshot-grid { grid-template-columns: repeat(1, minmax(0, 1fr)); align-items: end; }
.shot {
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.04));
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.shot img {
  width: 100%;
  border-radius: 24px;
  background: #080710;
}
.featured-shot { transform: translateY(0); }
figcaption { margin-top: 12px; color: var(--muted); font-weight: 800; text-align: center; }
.mode-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0;
}
.mode-strip div {
  min-height: 120px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(135deg, rgba(255,49,79,.12), rgba(0,212,255,.09));
}
.mode-strip strong { display: block; font-size: clamp(24px, 6vw, 42px); line-height: 1; }
.mode-strip span { display: block; margin-top: 10px; }
.split-section {
  display: grid;
  gap: 20px;
  border-top: 1px solid var(--line);
}
.permission-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px;
  background: rgba(255,255,255,.055);
}
.split-section p { margin: 0; max-width: 790px; }
.support {
  display: grid;
  gap: 20px;
  margin-top: 22px;
  margin-bottom: 42px;
  padding: 34px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255,49,79,.2), rgba(0,212,255,.12));
  box-shadow: 0 0 48px rgba(155, 92, 255, .14);
}
.support a,
.split-section a { color: var(--blue); font-weight: 850; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  font-size: 14px;
}
.site-footer a { text-decoration: none; }
.legal-page { max-width: 860px; }
.legal-page h1 { font-size: clamp(42px, 10vw, 68px); }
.legal-page h2 { margin-top: 34px; font-size: 24px; }
.legal-page p { color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
  }
@media (max-width: 520px) {
  .hero-stats { grid-template-columns: 1fr; }
  .mode-strip { grid-template-columns: 1fr; }
  .permission-card,
  .support { padding: 24px; }
}
@media (min-width: 720px) {
  .nav { display: flex; }
  .hero { grid-template-columns: minmax(0, .9fr) minmax(360px, .82fr); padding-top: 54px; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .screenshot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .featured-shot { transform: translateY(-34px); }
  .split-section { grid-template-columns: .72fr 1.28fr; align-items: start; }
  .support { grid-template-columns: .8fr 1.2fr; align-items: center; }
  .mode-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 1020px) {
  .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.mode-grid,
.guide-grid,
.audio-grid {
  display: grid;
  gap: 16px;
}
.detailed-modes {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
.mode-grid article,
.guide-grid article,
.audio-grid article {
  position: relative;
  min-height: 180px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  box-shadow: 0 16px 44px rgba(0,0,0,.2);
  overflow: hidden;
}
.mode-grid article::after,
.audio-grid article::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -50px;
  bottom: -56px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,79,216,.26), transparent 68%);
}
.mode-grid strong {
  display: block;
  color: var(--text);
  font-size: 28px;
  line-height: 1;
}
.mode-grid p,
.guide-grid p,
.audio-grid p {
  position: relative;
  margin: 12px 0 0;
  color: var(--muted);
}
.guide-grid article span {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--red), var(--pink), var(--blue));
  color: white;
  font-weight: 950;
  box-shadow: 0 0 26px rgba(255,79,216,.35);
}
.guide-grid h3,
.audio-grid h3 {
  margin-top: 16px;
}
.audio-section {
  padding-top: 34px;
}
.mode-strip {
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 620px) {
  .detailed-modes,
  .guide-grid,
  .audio-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .mode-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1020px) {
  .detailed-modes,
  .guide-grid,
  .audio-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .mode-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}
.language-switch select {
  max-width: 158px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  color: var(--text);
  padding: 8px 10px;
  font: inherit;
}
.language-switch option {
  background: #100d1d;
  color: white;
}
.language-panel {
  padding-top: 34px;
}
.language-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.language-chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.065);
  color: var(--muted);
  padding: 8px 12px;
  font-size: 14px;
}
.hero-visual img[src*="screenshots"] {
  width: min(350px, 86vw);
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.22);
  transform: rotate(2deg);
}
.real-screenshot-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.real-shot {
  margin: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.035));
  box-shadow: 0 18px 60px rgba(0,0,0,.28);
}
.real-shot img {
  width: 100%;
  border-radius: 18px;
  background: #050509;
  object-fit: cover;
}
.portrait-shot img {
  aspect-ratio: 9 / 20;
}
.landscape-shot img {
  aspect-ratio: 16 / 10;
}
@media (max-width: 719px) {
  .site-header { flex-wrap: wrap; }
  .language-switch { width: 100%; justify-content: space-between; }
  .language-switch select { max-width: 220px; }
}
@media (min-width: 720px) {
  .real-screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .wide-shot {
    grid-column: span 2;
  }
}

/* Icon-aligned performance refresh */
:root {
  --coral: #ff5458;
  --orange: #ff9142;
  --yellow: #ffd938;
  --green: #78f279;
  --cyan: #78d9ea;
  --lavender: #a7a2f5;
  --ink: #050306;
}

body {
  background:
    radial-gradient(circle at 14% 8%, rgba(255, 84, 88, .28), transparent 28rem),
    radial-gradient(circle at 88% 16%, rgba(167, 162, 245, .22), transparent 30rem),
    radial-gradient(circle at 78% 72%, rgba(120, 217, 234, .16), transparent 32rem),
    linear-gradient(180deg, #09070f 0%, #06040b 48%, #020204 100%);
}

body::before {
  background: conic-gradient(from -36deg at 78% 18%, rgba(255, 84, 88, .13), rgba(255, 145, 66, .1), rgba(255, 217, 56, .08), rgba(120, 242, 121, .08), rgba(120, 217, 234, .12), rgba(167, 162, 245, .14), transparent 76%);
  background-size: auto;
  mask-image: none;
  opacity: .8;
}

.brand-mark {
  background: url('/assets/app-icon.png') center / cover no-repeat;
  box-shadow: 0 0 24px rgba(255, 217, 56, .25), 0 0 36px rgba(120, 217, 234, .18);
}

.hero {
  min-height: auto;
  padding-top: 44px;
}

.hero-visual {
  min-height: min(520px, 76vw);
  display: grid;
  place-items: center;
}

.hero-visual::before {
  inset: 50% auto auto 50%;
  width: min(520px, 88vw);
  aspect-ratio: 1;
  border-radius: 46px;
  transform: translate(-50%, -50%) rotate(-3deg);
  background:
    radial-gradient(circle at 50% 54%, rgba(5, 3, 6, .78) 0 15%, transparent 16%),
    conic-gradient(from -34deg, var(--coral), #f36ba7, var(--lavender), var(--cyan), var(--green), var(--yellow), var(--orange), var(--coral));
  filter: none;
  box-shadow: 0 28px 95px rgba(0,0,0,.44), 0 0 70px rgba(255, 145, 66, .18);
  opacity: .86;
}

.hero-visual::after {
  content: "";
  position: absolute;
  width: min(340px, 60vw);
  height: min(170px, 30vw);
  z-index: 0;
  border-radius: 999px;
  background: radial-gradient(ellipse, rgba(5, 3, 6, .84), rgba(5, 3, 6, .16) 62%, transparent 72%);
  transform: translate(5%, 8%) rotate(-14deg);
}

.hero-visual .hero-icon {
  position: relative;
  z-index: 1;
  width: min(330px, 62vw);
  border-radius: 34px;
  border: 2px solid rgba(5, 3, 6, .55);
  box-shadow: 0 24px 64px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.16);
  transform: none;
}

.tagline { color: var(--yellow); text-shadow: 0 0 24px rgba(255, 217, 56, .18); }
.eyebrow { color: var(--cyan); }
.store-button { background: linear-gradient(135deg, var(--coral), var(--orange) 45%, var(--yellow)); color: #120707; box-shadow: 0 16px 38px rgba(255, 145, 66, .22); }
.store-button small { color: rgba(18,7,7,.78); }
.play-icon { border-left-color: #120707; }
.ghost-button { background: rgba(120, 217, 234, .08); }

.feature-card,
.mode-grid article,
.guide-grid article,
.audio-grid article,
.real-shot,
.permission-card,
.support,
.intro-band {
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}

.feature-card::before,
.mode-grid article::after,
.audio-grid article::after {
  filter: none;
  opacity: .24;
}

.section:not(.intro-band),
.split-section,
.support {
  content-visibility: auto;
  contain-intrinsic-size: 1px 620px;
}

.real-shot {
  content-visibility: auto;
  contain-intrinsic-size: 1px 520px;
}
.mode-card {
  position: relative;
  overflow: hidden;
}

.mode-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -35% auto;
  width: 130px;
  height: 130px;
  border-radius: 999px;
  background: var(--mode-color);
  opacity: .1;
  filter: blur(30px);
  pointer-events: none;
}

.mode-card-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.mode-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  flex: 0 0 64px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .02));
  box-shadow: 0 0 26px rgba(255, 255, 255, .06);
}

.mode-icon img {
  display: block;
  width: 54px;
  height: 54px;
}

.mode-card small {
  display: block;
  color: var(--muted);
  font-size: .78rem;
  line-height: 1.35;
  margin-top: 3px;
}

.mode-card p {
  position: relative;
  z-index: 1;
}

/* AI assistant */
.assistant-open { cursor: pointer; font: inherit; }
.assistant-fab {
  position: fixed;
  z-index: 5;
  right: 20px;
  bottom: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  padding: 0 17px;
  background: linear-gradient(135deg, var(--coral), var(--orange) 52%, var(--yellow));
  color: #120707;
  box-shadow: 0 16px 38px rgba(255, 145, 66, .28);
  font: 900 14px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.assistant-fab span { font-size: 16px; }
.assistant-fab-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.48);
  box-shadow: 0 0 18px rgba(0,212,255,.42);
}
.assistant-dialog {
  width: min(680px, calc(100% - 24px));
  max-height: min(760px, calc(100dvh - 24px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 18px;
  background: #100d1d;
  color: var(--text);
  box-shadow: 0 30px 110px rgba(0,0,0,.72), 0 0 70px rgba(255, 79, 216, .18);
}
.assistant-dialog::backdrop { background: rgba(2, 1, 8, .78); backdrop-filter: blur(5px); }
.assistant-dialog-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(120deg, rgba(255,84,88,.2), rgba(120,217,234,.12));
}
.assistant-dialog-title { flex: 1 1 auto; min-width: 0; }
.assistant-dialog-avatar {
  width: 84px;
  height: 84px;
  flex: 0 0 84px;
  border-radius: 24px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 0 26px rgba(255,79,216,.32), 0 0 22px rgba(0,212,255,.22);
}
.assistant-dialog-head .eyebrow { margin-bottom: 5px; }
.assistant-dialog h2 { font-size: clamp(27px, 6vw, 38px); }
.assistant-close {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  flex: 0 0 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font-size: 29px;
  line-height: 1;
  cursor: pointer;
}
.assistant-messages {
  display: grid;
  gap: 12px;
  min-height: 190px;
  max-height: min(380px, 48dvh);
  padding: 20px 24px;
  overflow-y: auto;
  background: rgba(3,3,9,.46);
}
.assistant-message {
  width: fit-content;
  max-width: min(88%, 520px);
  padding: 12px 14px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 14px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.48;
}
.assistant-message--bot { background: rgba(255,255,255,.08); }
.assistant-message--bot {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.assistant-message--bot::before {
  content: "";
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: url("/assets/dj-beatbot-avatar.png") center / cover no-repeat;
  border: 1px solid rgba(255,255,255,.24);
  box-shadow: 0 0 18px rgba(255,79,216,.26);
}
.assistant-message--user {
  justify-self: end;
  border-color: rgba(255,217,56,.3);
  background: linear-gradient(135deg, rgba(255,84,88,.76), rgba(255,145,66,.67));
  color: #1d0a07;
  font-weight: 700;
}
.assistant-message--pending { color: var(--muted); font-style: italic; }
.assistant-form { padding: 16px 24px 20px; border-top: 1px solid var(--line); }
.assistant-form textarea {
  display: block;
  width: 100%;
  min-height: 70px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255,255,255,.06);
  color: var(--text);
  font: inherit;
}
.assistant-form textarea:focus { outline: 2px solid var(--cyan); outline-offset: 2px; }
.assistant-log-notice {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.assistant-form-actions { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 12px; }
.assistant-send {
  min-height: 42px;
  border: 0;
  border-radius: 9px;
  padding: 0 18px;
  background: var(--yellow);
  color: #1d1300;
  font: 900 14px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
}
.assistant-send:disabled { cursor: wait; opacity: .65; }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .mode-card-head { gap: 12px; }
  .mode-icon { width: 56px; height: 56px; flex-basis: 56px; border-radius: 16px; }
  .mode-icon img { width: 48px; height: 48px; }
  .assistant-fab { right: 12px; bottom: 12px; }
  .assistant-dialog-avatar { width: 64px; height: 64px; flex-basis: 64px; border-radius: 18px; }
  .assistant-dialog-head,
  .assistant-messages,
  .assistant-form { padding-left: 16px; padding-right: 16px; }
  .assistant-form-actions { align-items: flex-end; }
}
