/* R39 学员风采/案例展示 · P0+P1 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Inter', sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.55;
  padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
  transition: background .35s, color .35s;
}
body.showcase-back-active { padding-top: calc(44px + env(safe-area-inset-top, 0)); }
body.story-page { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }

body[data-theme='brandblue'] { --primary:#2563EB; --primary-light:#EFF6FF; --accent:#1D4ED8; --success:#10B981; --warn:#F59E0B; --bg:#F8FAFC; --bg-card:#FFF; --text:#0F172A; --text-light:#64748B; --border:#DBEAFE; }
body[data-theme='klein'] { --primary:#1565C0; --primary-light:#E3F2FD; --accent:#0D47A1; --success:#10B981; --warn:#F59E0B; --bg:#F5F9FF; --bg-card:#FFF; --text:#0D47A1; --text-light:#1976D2; --border:#BBDEFB; }
body[data-theme='forest'] { --primary:#43A047; --primary-light:#E8F5E9; --accent:#1B5E20; --success:#10B981; --warn:#F59E0B; --bg:#F1F8F2; --bg-card:#FFF; --text:#1B5E20; --text-light:#388E3C; --border:#C8E6C9; }
body[data-theme='purple'] { --primary:#7B1FA2; --primary-light:#F3E5F5; --accent:#4A148C; --success:#10B981; --warn:#F59E0B; --bg:#FAF5FC; --bg-card:#FFF; --text:#4A148C; --text-light:#7B1FA2; --border:#E1BEE7; }
body[data-theme='coralwarm'] { --primary:#FF7043; --primary-light:#FBE9E7; --accent:#BF360C; --success:#10B981; --warn:#F59E0B; --bg:#FFF5F2; --bg-card:#FFF; --text:#BF360C; --text-light:#E64A19; --border:#FFCCBC; }
body[data-theme='minimal'] { --primary:#212121; --primary-light:#FAFAFA; --accent:#424242; --success:#10B981; --warn:#F59E0B; --bg:#FAFAFA; --bg-card:#FFF; --text:#212121; --text-light:#757575; --border:#E0E0E0; }

.page { max-width: 1200px; margin: 0 auto; }
.section { padding: 2rem 1rem; }
.section__title { font-size: 1.25rem; font-weight: 800; margin-bottom: .25rem; }
.section__sub { font-size: .85rem; color: var(--text-light); margin-bottom: 1.25rem; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .35rem;
  padding: .65rem 1.25rem; border-radius: 8px; font-weight: 600; font-size: .85rem;
  border: none; cursor: pointer; background: var(--primary); color: #fff; transition: transform .2s, box-shadow .2s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.btn-outline { background: transparent; border: 1.5px solid var(--primary); color: var(--primary); }
.btn-sm { padding: .45rem .85rem; font-size: .78rem; }
.btn-success { background: var(--success); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--primary), var(--accent));
  color: #fff; padding: 2rem 1rem 2.5rem; border-radius: 0 0 1.5rem 1.5rem;
}
.hero__brand { font-size: .78rem; opacity: .9; margin-bottom: .25rem; }
.hero__title { font-size: 1.5rem; font-weight: 900; margin-bottom: .35rem; }
.hero__tagline { font-size: .85rem; opacity: .92; margin-bottom: 1.5rem; max-width: 28rem; }
.hero__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; margin-bottom: 1.5rem; }
@media (min-width: 640px) { .hero__stats { grid-template-columns: repeat(4, 1fr); } }
.hero__stat {
  text-align: center; padding: .85rem .5rem; background: rgba(255,255,255,.14);
  border-radius: 12px; backdrop-filter: blur(4px);
}
.hero__stat-val { font-size: 1.5rem; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero__stat-lbl { font-size: .68rem; opacity: .88; margin-top: .2rem; }
.hero__bottom { display: grid; gap: 1rem; }
@media (min-width: 768px) { .hero__bottom { grid-template-columns: 280px 1fr; align-items: stretch; } }

.star-card {
  background: rgba(255,255,255,.16); border-radius: 12px; padding: 1rem;
  border: 1px solid rgba(255,255,255,.22); position: relative; min-height: 140px;
}
.star-card__badge { font-size: .72rem; font-weight: 700; margin-bottom: .65rem; }
.star-card__body { display: flex; gap: .75rem; align-items: center; }
.star-card__avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.5); }
.star-card__name { font-weight: 800; font-size: .95rem; }
.star-card__role { font-size: .75rem; opacity: .9; margin: .15rem 0; }
.star-card__salary { font-size: .78rem; font-weight: 700; color: #FDE68A; }
.star-card__link { display: inline-block; margin-top: .65rem; font-size: .75rem; font-weight: 600; opacity: .95; }
.star-card__dots { display: flex; gap: .35rem; margin-top: .75rem; justify-content: center; }
.star-card__dot { width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,.35); border: none; cursor: pointer; padding: 0; }
.star-card__dot.active { background: #fff; width: 18px; border-radius: 999px; }

.logo-marquee { overflow: hidden; position: relative; border-radius: 12px; background: rgba(255,255,255,.1); padding: .85rem 0; }
.logo-marquee::before, .logo-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 2rem; z-index: 1; pointer-events: none;
}
.logo-marquee::before { left: 0; background: linear-gradient(90deg, var(--accent), transparent); }
.logo-marquee::after { right: 0; background: linear-gradient(-90deg, var(--accent), transparent); }
.logo-marquee__track { display: flex; gap: .75rem; width: max-content; animation: marquee 28s linear infinite; }
.logo-marquee:hover .logo-marquee__track { animation-play-state: paused; }
.logo-marquee__item {
  flex-shrink: 0; padding: .45rem .85rem; background: rgba(255,255,255,.18);
  border-radius: 8px; font-size: .72rem; font-weight: 700; white-space: nowrap; cursor: pointer;
  border: 1px solid rgba(255,255,255,.15); transition: background .2s;
}
.logo-marquee__item:hover { background: rgba(255,255,255,.28); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Filters */
.filters {
  position: sticky; top: 0; z-index: 20; background: var(--bg);
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.filters__group { margin-bottom: .65rem; }
.filters__label { font-size: .68rem; color: var(--text-light); margin-bottom: .35rem; font-weight: 600; }
.filters__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.filter-tag {
  padding: .35rem .7rem; border-radius: 20px; font-size: .72rem; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-card); color: var(--text-light); cursor: pointer;
  transition: all .2s;
}
.filter-tag__count { opacity: .72; font-weight: 500; margin-left: .15rem; }
.filter-tag:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Insights: salary compare + timeline */
.insights { background: var(--bg-card); border-bottom: 1px solid var(--border); }
.insights__grid { display: grid; gap: 2rem; }
@media (min-width: 900px) { .insights__grid { grid-template-columns: 1fr 1fr; align-items: start; } }
.compare-bars { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .5rem; }
.compare-bar { flex: 1; min-width: 120px; }
.compare-bar__label { font-size: .72rem; color: var(--text-light); display: block; margin-bottom: .25rem; }
.compare-bar__val { font-size: 1.25rem; font-weight: 900; display: block; margin-bottom: .45rem; }
.compare-bar--before .compare-bar__val { color: var(--text-light); }
.compare-bar--after .compare-bar__val { color: var(--success); }
.compare-bar__track { height: 8px; background: var(--primary-light); border-radius: 999px; overflow: hidden; }
.compare-bar__fill { height: 100%; background: var(--primary); border-radius: 999px; }
.compare-bar--after .compare-bar__fill { background: var(--success); }
.compare-arrow { text-align: center; font-weight: 900; color: var(--warn); min-width: 64px; }
.compare-arrow small { display: block; font-size: .62rem; font-weight: 600; color: var(--text-light); }

.timeline-track { display: flex; flex-direction: column; gap: 0; margin-top: .75rem; position: relative; padding-left: 1.25rem; }
.timeline-step { position: relative; padding: 0 0 1.25rem 1rem; border-left: 2px solid var(--border); }
.timeline-step:last-child { border-left-color: transparent; padding-bottom: 0; }
.timeline-step__dot {
  position: absolute; left: -7px; top: 2px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg-card); border: 2px solid var(--primary);
}
.timeline-step__dot--done { background: var(--success); border-color: var(--success); }
.timeline-step__label { font-weight: 700; font-size: .88rem; }
.timeline-step__meta { font-size: .72rem; color: var(--text-light); margin-top: .15rem; }

/* Portfolio + video sections */
.portfolio-grid, .video-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
@media (min-width: 768px) { .portfolio-grid, .video-grid { grid-template-columns: repeat(3, 1fr); } }
.portfolio-card, .video-card {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--bg-card);
  cursor: pointer; text-align: left; padding: 0; transition: transform .25s, box-shadow .25s;
  box-shadow: 0 2px 8px rgba(0,0,0,.05);
}
.portfolio-card:hover, .video-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,.1); }
.portfolio-card:focus-visible, .video-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.portfolio-card__img, .video-card__img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.portfolio-card__body, .video-card__body { padding: .65rem .75rem; }
.portfolio-card__title, .video-card__title { font-size: .82rem; font-weight: 700; }
.portfolio-card__author, .video-card__meta { font-size: .68rem; color: var(--text-light); margin-top: .2rem; }
.video-card__cover { position: relative; }
.video-card__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28); color: #fff; font-size: 2rem;
}
.portfolio-section, .video-section { background: var(--bg); }

.modal__box:focus { outline: none; }
.modal__box:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.story-salary-compare {
  margin: .75rem 0; padding: .65rem; background: var(--primary-light); border-radius: 8px; font-size: .78rem;
}
.story-salary-compare strong { color: var(--success); }

.filter-tag.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.filters__search {
  width: 100%; padding: .6rem .85rem; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg-card); font-size: .85rem; margin-top: .35rem;
}
.filters__search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.filters__sort { display: flex; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .75rem; color: var(--text-light); }
.filters__sort select { padding: .3rem .5rem; border-radius: 6px; border: 1px solid var(--border); background: var(--bg-card); }

/* Grid */
.student-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; padding: 1rem; }
@media (min-width: 768px) { .student-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .student-grid { grid-template-columns: repeat(4, 1fr); } }

.student-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  overflow: hidden; transition: transform .3s ease, box-shadow .3s ease; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.student-card:hover { transform: translateY(-4px); box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.student-card__thumb-wrap { overflow: hidden; aspect-ratio: 290/180; background: var(--primary-light); position: relative; }
.student-card__thumb { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.student-card:hover .student-card__thumb { transform: scale(1.05); }
.student-card__video { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(0,0,0,.25); font-size: 2rem; }
.student-card__body { padding: .75rem; }
.student-card__head { display: flex; gap: .55rem; align-items: center; margin-bottom: .45rem; }
.student-card__avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.student-card__name { font-weight: 800; font-size: .88rem; }
.student-card__role { font-size: .72rem; color: var(--text-light); }
.student-card__salary {
  display: inline-block; font-size: .72rem; font-weight: 700; color: var(--success);
  background: rgba(16,185,129,.1); padding: .15rem .45rem; border-radius: 20px; margin-top: .25rem;
}
.student-card__cta { display: block; text-align: center; margin-top: .55rem; font-size: .72rem; font-weight: 700; color: var(--primary); }

.load-more-wrap { text-align: center; padding: 0 1rem 2rem; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--text-light); }
.empty-state button { margin-top: .75rem; }

/* Logo section full width */
.logo-section { background: var(--bg-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2.5rem 0; }
.logo-section .logo-marquee { background: var(--primary-light); }
.logo-section .logo-marquee::before { background: linear-gradient(90deg, var(--primary-light), transparent); }
.logo-section .logo-marquee::after { background: linear-gradient(-90deg, var(--primary-light), transparent); }
.logo-section .logo-marquee__item { background: var(--bg-card); color: var(--text); border-color: var(--border); }
.logo-section .logo-marquee__item:hover { background: var(--primary-light); border-color: var(--primary); }

/* Story page */
.story-back { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 600; color: var(--primary); padding: 1rem; }
.story-layout { display: grid; gap: 1.5rem; padding: 0 1rem 2rem; max-width: 960px; margin: 0 auto; }
@media (min-width: 768px) { .story-layout { grid-template-columns: 280px 1fr; align-items: start; } }
.story-sidebar { position: sticky; top: 1rem; }
.story-sidebar__card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; text-align: center; box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.story-sidebar__avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 auto .85rem; border: 3px solid var(--primary-light); }
.story-sidebar__name { font-size: 1.25rem; font-weight: 900; }
.story-sidebar__role { font-size: .85rem; color: var(--text-light); margin: .35rem 0; }
.story-sidebar__meta { font-size: .78rem; color: var(--text-light); margin: .25rem 0; }
.story-sidebar__salary { font-size: 1rem; font-weight: 800; color: var(--success); margin: .65rem 0; }
.story-sidebar__tags { display: flex; flex-wrap: wrap; gap: .35rem; justify-content: center; margin: .65rem 0; }
.story-tag { font-size: .68rem; padding: .2rem .5rem; border-radius: 20px; background: var(--primary-light); color: var(--primary); font-weight: 600; }

.story-narrative { display: flex; flex-direction: column; gap: 0; }
.story-block {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  padding: 1.25rem; position: relative; box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.story-block + .story-block { margin-top: 2rem; }
.story-block::before {
  content: ''; position: absolute; left: 50%; top: -2rem; width: 2px; height: 2rem;
  background: linear-gradient(var(--primary), var(--border)); transform: translateX(-50%);
}
.story-block:first-child::before { display: none; }
.story-block__label {
  display: inline-block; font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .05em; color: var(--primary); background: var(--primary-light);
  padding: .25rem .65rem; border-radius: 20px; margin-bottom: .65rem;
}
.story-block__text { font-size: .92rem; line-height: 1.7; color: var(--text); }

.story-projects { margin-top: 1.5rem; }
.story-projects__title { font-size: 1rem; font-weight: 800; margin-bottom: .85rem; }
.story-projects__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; }
.story-project { border-radius: 10px; overflow: hidden; cursor: pointer; border: 1px solid var(--border); }
.story-project:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.story-project img { aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.story-project__title { padding: .45rem .55rem; font-size: .72rem; font-weight: 600; background: var(--bg-card); }

.story-quote {
  margin-top: 1.5rem; padding: 1.25rem 1.25rem 1.25rem 1.5rem;
  border-left: 4px solid var(--primary); background: var(--primary-light);
  border-radius: 0 12px 12px 0; font-style: italic; font-size: .92rem; line-height: 1.7;
}
.story-quote::before { content: '"'; font-size: 2rem; color: var(--primary); opacity: .3; display: block; line-height: 1; margin-bottom: -.5rem; }

.story-page-cta {
  margin-top: 1.5rem; padding: 1.25rem 1rem 1.5rem;
  background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.story-page-cta__title { text-align: center; font-size: 1rem; font-weight: 800; margin-bottom: 1rem; color: var(--text); }
.story-page-cta__btns { display: flex; gap: .65rem; flex-wrap: wrap; justify-content: center; }
.story-page-cta__btns .btn { min-width: 100px; flex: 1; max-width: 160px; }
.story-page-cta .btn-outline { border-color: var(--primary); color: var(--primary); background: var(--bg-card); }

/* I-2 enhanced insights */
.insights__subtitle { font-size: .92rem; font-weight: 800; margin: 1rem 0 .65rem; }
.compare-panel__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .65rem; }
.compare-toggle { display: flex; flex-wrap: wrap; gap: .35rem; }
.compare-toggle__btn {
  padding: .3rem .6rem; border-radius: 999px; border: 1px solid var(--border);
  background: var(--bg); font-size: .68rem; font-weight: 600; cursor: pointer;
}
.compare-toggle__btn.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.compare-card {
  margin-top: .75rem; padding: 1rem; border-radius: 12px; background: var(--primary-light);
  border: 1px solid var(--border);
}
.compare-card__row { display: flex; justify-content: space-between; margin-bottom: .35rem; font-size: .88rem; }
.compare-card__after { color: var(--success); }
.compare-card__growth { margin-top: .65rem; font-size: .78rem; font-weight: 700; color: var(--primary); text-align: center; }
.compare-bar__track--lg { height: 10px; margin-top: .5rem; }
.compare-bar__fill--anim { height: 100%; background: linear-gradient(90deg, var(--primary), var(--success)); border-radius: 999px; transition: width 1s ease; }
.monthly-panel { margin-top: 1.25rem; }
.monthly-row { display: grid; grid-template-columns: 52px 1fr 42px; gap: .5rem; align-items: center; margin-bottom: .45rem; }
.monthly-row__label { font-size: .72rem; color: var(--text-light); }
.monthly-row__bar { height: 8px; background: var(--bg); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.monthly-row__fill { height: 100%; background: var(--primary); border-radius: 999px; transition: width .9s ease; }
.monthly-row__val { font-size: .72rem; font-weight: 700; text-align: right; }
.course-stats-panel { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.course-stats-table-wrap { overflow-x: auto; }
.course-stats-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.course-stats-table th, .course-stats-table td { padding: .65rem .75rem; text-align: left; border-bottom: 1px solid var(--border); }
.course-stats-table th { color: var(--text-light); font-weight: 600; font-size: .72rem; }
.course-stats-row { cursor: pointer; transition: background .2s; }
.course-stats-row:hover, .course-stats-row.active { background: var(--primary-light); }
.course-stats-row:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.student-card:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.student-card__badge-video {
  position: absolute; top: .45rem; right: .45rem; z-index: 2;
  background: rgba(0,0,0,.55); color: #fff; font-size: .72rem; padding: .2rem .4rem; border-radius: 6px;
}
.bilibili-wrap { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: 8px; overflow: hidden; }
.bilibili-iframe { width: 100%; height: 100%; border: none; }
.img-failed { opacity: .55; filter: grayscale(1); }
.story-video-box { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); }
.story-video-box__label { font-size: .78rem; font-weight: 700; margin-bottom: .5rem; }
.story-video-box__btn {
  position: relative; width: 100%; padding: 0; border: none; background: none; cursor: pointer; border-radius: 10px; overflow: hidden;
}
.story-video-box__cover { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.story-video-box__play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.35); color: #fff; font-size: 2rem;
}
.story-video-box__hint { font-size: .72rem; color: var(--text-light); text-align: center; margin-top: .45rem; }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.modal__box {
  position: relative; background: var(--bg-card); border-radius: 12px; padding: 1.25rem;
  max-width: 360px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.modal__box--wide { max-width: 90vw; max-height: 85vh; overflow: auto; }
.modal__box img { border-radius: 8px; margin-top: .75rem; }
.lightbox img { max-height: 70vh; object-fit: contain; margin: 0 auto; }

/* Panels */
.theme-panel, .scene-panel { position: fixed; right: .75rem; z-index: 40; }
.theme-panel { bottom: calc(5.5rem + env(safe-area-inset-bottom)); }
.scene-panel { bottom: calc(8.5rem + env(safe-area-inset-bottom)); }
.theme-panel__toggle, .scene-panel__toggle {
  width: 42px; height: 42px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--bg-card); box-shadow: 0 4px 16px rgba(0,0,0,.12); font-size: 1.1rem;
}
.theme-panel__list, .scene-panel__list {
  position: absolute; bottom: 48px; right: 0; background: var(--bg-card);
  border-radius: 12px; padding: .5rem; box-shadow: 0 8px 24px rgba(0,0,0,.15);
  min-width: 120px; max-height: 200px; overflow-y: auto;
}
.theme-panel__list button, .scene-panel__list button {
  display: block; width: 100%; text-align: left; padding: .45rem .65rem; border: none;
  background: none; cursor: pointer; border-radius: 6px; font-size: .78rem;
}
.theme-panel__list button.active, .scene-panel__list button.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }

.contact-footer {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 45;
  padding: .55rem 1rem calc(.55rem + env(safe-area-inset-bottom));
  background: rgba(0,0,0,.82); color: #fff; text-align: center;
}
.contact-footer__btns { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; margin-bottom: .25rem; }
.contact-footer__cta {
  flex: 1; max-width: 140px; text-align: center; padding: .4rem .9rem; border-radius: 999px;
  background: #c41e1e; color: #fff; font-size: .78rem; font-weight: 600;
}
.contact-footer__btn {
  flex: 1; max-width: 140px; text-align: center; padding: .4rem .75rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35); color: #fff; background: transparent;
  font-size: .78rem; font-weight: 600; cursor: pointer;
}
.contact-footer__brand { font-size: .65rem; opacity: .65; }
html.has-contact-footer body { padding-bottom: calc(5.5rem + env(safe-area-inset-bottom)); }

@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.fade-up { animation: fadeUp .4s ease both; }
