:root {
  --ink: #14204a;
  --muted: #7480a1;
  --line: #e7eaf4;
  --surface: #ffffff;
  --canvas: #f7f9fe;
  --blue: #4f6bff;
  --blue-deep: #314dcb;
  --blue-soft: #eef1ff;
  --violet: #8167ef;
  --orange: #ff9b67;
  --navy: #101a3c;
  --shadow: 0 18px 45px rgba(30, 49, 119, 0.1);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 84% 5%, rgba(79, 107, 255, 0.08), transparent 25rem),
    var(--canvas);
}

button,
textarea,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  width: 248px;
  flex: 0 0 248px;
  height: 100vh;
  padding: 26px 18px 20px;
  display: flex;
  flex-direction: column;
  overflow: visible;
  background: #fff;
  border-right: 1px solid var(--line);
  transition: width 0.25s ease, flex-basis 0.25s ease, padding 0.25s ease;
}

.sidebar-head {
  display: block;
  margin-bottom: 26px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 0 0 10px;
}

.sidebar-toggle {
  position: absolute;
  top: 29px;
  right: -15px;
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #fff;
  border: 3px solid #fff;
  border-radius: 50%;
  background: linear-gradient(145deg, #6f86ff, #405cf1);
  box-shadow: 0 7px 18px rgba(49, 77, 203, 0.28);
  z-index: 5;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sidebar-toggle:hover {
  transform: scale(1.08);
  background: linear-gradient(145deg, #607aff, #314dcb);
  box-shadow: 0 9px 22px rgba(49, 77, 203, 0.36);
}

.sidebar-toggle svg {
  display: block;
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s ease;
}

.brand-mark {
  display: grid;
  width: 33px;
  height: 33px;
  place-items: center;
  color: white;
  font-size: 18px;
  font-weight: 800;
  border-radius: 10px;
  background: linear-gradient(140deg, #7290ff, #415cff);
  box-shadow: 0 8px 16px rgba(79, 107, 255, 0.25);
}

.brand strong,
.brand span,
.profile-copy strong,
.profile-copy span {
  display: block;
}

.brand strong {
  color: var(--ink);
  font-size: 14px;
  letter-spacing: 0;
}

.brand span {
  margin-top: 3px;
  color: #929ab3;
  font-size: 10px;
}

.new-deck {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 43px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  border-radius: 9px;
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(79, 107, 255, 0.2);
  transition: transform 0.2s, background 0.2s;
  text-decoration: none;
}

.new-deck:hover,
.generate-button:hover,
.upgrade-button:hover {
  transform: translateY(-2px);
}

.new-deck:hover,
.generate-button:hover {
  background: #3f5cf2;
}

.plus {
  font-size: 20px;
  line-height: 0;
  font-weight: 400;
}

.side-nav {
  display: grid;
  gap: 5px;
  margin-top: 25px;
}

.nav-item,
.quick-link {
  display: flex;
  align-items: center;
  width: 100%;
  color: #73809e;
  text-decoration: none;
  text-align: left;
  border-radius: 8px;
  background: transparent;
  transition: 0.2s ease;
}

.nav-item {
  gap: 12px;
  padding: 11px 12px;
  font-size: 13px;
}

.nav-item:hover,
.nav-item.active {
  color: var(--blue);
  background: var(--blue-soft);
}

.nav-icon {
  width: 18px;
  color: currentColor;
  font-size: 16px;
  text-align: center;
}

.sidebar-section {
  margin-top: 28px;
}

.section-label {
  padding: 0 12px 9px;
  color: #a0a8bc;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.quick-link {
  gap: 9px;
  padding: 9px 12px;
  color: #7b86a2;
  font-size: 12px;
}

.quick-link:hover {
  color: var(--ink);
  background: #f7f8fc;
}

.quick-dot,
.meta-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
}

.blue {
  background: var(--blue);
}

.purple {
  background: var(--violet);
}

.orange {
  background: var(--orange);
}

.green {
  background: #41b883;
}

.pink {
  background: #ed77a8;
}

.cyan {
  background: #35b8d0;
}

.app-shell.sidebar-collapsed .sidebar {
  width: 76px;
  flex-basis: 76px;
  padding: 22px 12px 20px;
}

.app-shell.sidebar-collapsed .sidebar-head {
  margin-bottom: 18px;
}

.app-shell.sidebar-collapsed .brand {
  justify-content: center;
  padding: 0;
}

.app-shell.sidebar-collapsed .brand > div:last-child,
.app-shell.sidebar-collapsed .sidebar-section {
  display: none;
}

.app-shell.sidebar-collapsed .sidebar-toggle svg {
  transform: rotate(180deg);
}

.app-shell.sidebar-collapsed .new-deck {
  width: 43px;
  align-self: center;
  font-size: 0;
}

.app-shell.sidebar-collapsed .side-nav {
  margin-top: 20px;
}

.app-shell.sidebar-collapsed .nav-item {
  justify-content: center;
  gap: 0;
  padding: 11px 8px;
  font-size: 0;
}

.app-shell.sidebar-collapsed .nav-icon {
  font-size: 16px;
}

.sidebar-bottom {
  margin-top: auto;
}

.usage-card {
  margin: 20px 2px 17px;
  padding: 13px 12px;
  border: 1px solid #e5e9f7;
  border-radius: 9px;
  background: #f7f8ff;
}

.usage-head {
  display: flex;
  justify-content: space-between;
  color: #7c88a5;
  font-size: 10px;
}

.usage-head strong {
  color: var(--blue);
  font-size: 10px;
}

.usage-track {
  height: 4px;
  margin: 10px 0 8px;
  overflow: hidden;
  border-radius: 10px;
  background: #dfe4fa;
}

.usage-track span {
  display: block;
  width: 60%;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.usage-card p {
  margin: 0;
  color: #98a2bc;
  font-size: 10px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 13px 10px 0;
  border-top: 1px solid var(--line);
}

.avatar {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  color: #425cf1;
  font-size: 12px;
  font-weight: 800;
  border-radius: 50%;
  background: #e9edff;
}

.profile-copy {
  min-width: 0;
  flex: 1;
}

.profile-copy strong {
  color: var(--ink);
  font-size: 11px;
}

.profile-copy span {
  margin-top: 2px;
  color: #a0a8ba;
  font-size: 10px;
}

.more-button,
.icon-button {
  color: #9ca5bb;
  background: transparent;
}

.more-button {
  padding: 5px;
  font-size: 13px;
  letter-spacing: 1px;
}

.main-content {
  width: min(100%, 1240px);
  min-width: 0;
  margin: 0 auto;
  padding: 0 46px 35px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #a0a8bc;
  font-size: 12px;
}

.breadcrumb strong {
  color: var(--ink);
  font-weight: 700;
}

.crumb-divider {
  color: #c5cad8;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.text-button {
  padding: 8px 0;
  color: #7f8aa5;
  font-size: 12px;
  background: transparent;
}

.text-button:hover,
.link-button:hover {
  color: var(--blue);
}

.icon-button {
  padding: 7px;
  font-size: 18px;
  transform: rotate(180deg);
}

.upgrade-button {
  padding: 9px 15px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  border-radius: 7px;
  background: var(--navy);
  transition: transform 0.2s;
  text-decoration: none;
}

.hero-block {
  padding: 54px 0 29px;
}

.eyebrow,
.panel-kicker {
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 7px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 690px;
  margin: 16px 0 12px;
  color: var(--ink);
  font-size: clamp(32px, 4vw, 51px);
  line-height: 1.13;
  letter-spacing: -0.035em;
}

h1 em {
  color: var(--blue);
  font-style: normal;
}

.hero-copy {
  max-width: 550px;
  margin-bottom: 0;
  color: #7d87a1;
  font-size: 13px;
  line-height: 1.9;
}

.creator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.33fr) minmax(310px, 0.87fr);
  gap: 19px;
}

.creator-panel,
.preview-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.creator-panel {
  padding: 22px 24px 21px;
}

.panel-tabs {
  display: flex;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.panel-tab {
  position: relative;
  padding: 0 0 13px;
  color: #a0a8ba;
  font-size: 12px;
  font-weight: 700;
  background: transparent;
}

.panel-tab.active {
  color: var(--blue);
}

.panel-tab.active::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: "";
  border-radius: 2px;
  background: var(--blue);
}

.tab-panel {
  display: none;
  padding-top: 21px;
}

.tab-panel.active {
  display: block;
}

.tab-panel label:not(.drop-zone) {
  display: block;
  margin-bottom: 11px;
  color: #26345f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

textarea {
  display: block;
  width: 100%;
  min-height: 164px;
  resize: vertical;
  padding: 18px 19px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.8;
  border: 2px solid #c8d1ff;
  border-radius: 12px;
  outline: none;
  background:
    linear-gradient(135deg, rgba(79, 107, 255, 0.055), transparent 42%),
    #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 9px 24px rgba(64, 88, 205, 0.08);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

textarea:hover {
  border-color: #9fadff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(64, 88, 205, 0.12);
}

textarea:focus {
  border-color: var(--blue);
  background: #ffffff;
  box-shadow:
    0 0 0 5px rgba(79, 107, 255, 0.13),
    0 16px 34px rgba(64, 88, 205, 0.16);
  transform: translateY(-1px);
}

textarea::placeholder {
  color: #929db9;
  font-weight: 500;
}

.prompt-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 43px;
  padding-top: 8px;
}

.prompt-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hint-chip {
  padding: 6px 10px;
  color: #65739a;
  font-size: 11px;
  font-weight: 600;
  border: 1px solid #dbe1f7;
  border-radius: 7px;
  background: #f8f9ff;
}

.hint-chip:hover {
  color: var(--blue);
  border-color: #cbd3ff;
  background: var(--blue-soft);
}

.char-count {
  flex: 0 0 auto;
  color: #b3bbcb;
  font-size: 10px;
}

.drop-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 166px;
  padding: 18px;
  color: #8a95ad;
  text-align: center;
  border: 1px dashed #bdc7ee;
  border-radius: 8px;
  background: #fafbff;
  cursor: pointer;
}

.drop-zone:hover {
  border-color: var(--blue);
  background: var(--blue-soft);
}

.upload-icon {
  display: grid;
  width: 32px;
  height: 32px;
  margin-bottom: 9px;
  place-items: center;
  color: var(--blue);
  font-size: 21px;
  border-radius: 9px;
  background: #e9edff;
}

.drop-zone strong {
  color: #5d6988;
  font-size: 12px;
}

.drop-zone small {
  margin-top: 5px;
  color: #acb4c5;
  font-size: 10px;
}

.browse-button {
  margin-top: 11px;
  padding: 7px 12px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 700;
  border-radius: 5px;
  background: #e9edff;
}

.drop-zone input {
  display: none;
}

.file-status {
  min-height: 14px;
  margin: 8px 0 0;
  color: #8c97ac;
  font-size: 10px;
  text-align: center;
}

.creator-options {
  display: flex;
  align-items: end;
  gap: 17px;
  margin-top: 21px;
}

.option-group {
  display: grid;
  gap: 6px;
  min-width: 84px;
}

.option-label {
  color: #9aa3b7;
  font-size: 10px;
}

.select-button {
  display: block;
  width: 100%;
  min-width: 98px;
  height: 38px;
  padding: 7px 30px 7px 11px;
  color: #5d6988;
  font-size: 11px;
  border: 1px solid #e3e7f2;
  border-radius: 7px;
  outline: none;
  background: #fff;
  cursor: pointer;
  appearance: none;
}

.select-button:hover {
  border-color: #c4ceff;
}

.select-button:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(79, 107, 255, 0.11);
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  position: absolute;
  top: 50%;
  right: 11px;
  color: #9ca6bf;
  font-size: 12px;
  line-height: 1;
  content: "⌄";
  pointer-events: none;
  transform: translateY(-58%);
}

.generate-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 1;
  min-height: 38px;
  padding: 0 13px;
  color: white;
  font-size: 12px;
  font-weight: 700;
  border-radius: 7px;
  background: var(--blue);
  box-shadow: 0 9px 18px rgba(79, 107, 255, 0.19);
  transition: 0.2s;
}

.sparkle {
  color: #c9d1ff;
}

.arrow {
  margin-left: auto;
  font-size: 17px;
  font-weight: 400;
}

.generator-status {
  height: 16px;
  margin-top: 10px;
  color: var(--blue);
  font-size: 10px;
  text-align: center;
}

.preview-panel {
  padding: 22px 21px 18px;
  overflow: hidden;
}

.preview-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.preview-header h2,
.section-heading h2 {
  margin: 6px 0 0;
  color: var(--ink);
  font-size: 17px;
  letter-spacing: -0.02em;
}

.live-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px 7px;
  color: #6d79a0;
  font-size: 9px;
  white-space: nowrap;
  border-radius: 4px;
  background: #f3f5fc;
}

.live-badge i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #53c995;
}

.slide-preview {
  position: relative;
  aspect-ratio: 1.45 / 1;
  margin: 23px 3px 15px;
  overflow: hidden;
  color: #fff;
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(95, 122, 255, 0.95), rgba(42, 57, 166, 0.92)),
    #3556e7;
}

.slide-topline,
.slide-footer {
  position: absolute;
  right: 17px;
  left: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.7);
  font-size: 7px;
  letter-spacing: 0.12em;
}

.slide-topline {
  top: 16px;
}

.slide-footer {
  bottom: 15px;
}

.slide-content {
  position: absolute;
  z-index: 2;
  top: 26%;
  left: 13%;
}

.slide-overline {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.67);
  font-size: 8px;
  letter-spacing: 0.22em;
}

.slide-content h3 {
  margin: 0;
  color: white;
  font-size: clamp(22px, 3.1vw, 37px);
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.slide-content h3 span {
  color: #dbe1ff;
}

.slide-content p {
  max-width: 215px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 9px;
  line-height: 1.6;
}

.mini-line {
  width: 25px;
  height: 2px;
  border-radius: 2px;
  background: #ffb281;
}

.preview-orbit {
  position: absolute;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transform: rotate(-32deg);
}

.orbit-one {
  right: -25%;
  bottom: -58%;
  width: 88%;
  height: 105%;
}

.orbit-two {
  right: -10%;
  bottom: -30%;
  width: 56%;
  height: 70%;
  border-color: rgba(255, 178, 129, 0.38);
}

.preview-glow {
  position: absolute;
  right: 1%;
  bottom: 2%;
  width: 38%;
  height: 50%;
  background: rgba(139, 158, 255, 0.24);
  filter: blur(20px);
  transform: rotate(23deg);
}

.preview-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: #8d97ac;
  font-size: 9px;
}

.preview-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.templates-section,
.category-section {
  padding-top: 50px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 17px;
}

.link-button {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  color: #8a95ae;
  font-size: 11px;
  background: transparent;
}

.link-button span {
  color: var(--blue);
  font-size: 15px;
}

.template-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.template-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  text-align: left;
  border: 1px solid #e3e7f3;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(38, 53, 112, 0.08);
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}

.template-card:hover {
  border-color: #b9c4ff;
  transform: translateY(-6px);
  box-shadow: 0 22px 44px rgba(38, 53, 112, 0.16);
}

.template-visual {
  display: block;
  position: relative;
  height: 214px;
  overflow: hidden;
  background: #14204a;
}

.template-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.template-card:hover .template-visual img {
  transform: scale(1.045);
}

.template-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11, 18, 53, 0.02) 45%, rgba(11, 18, 53, 0.72) 100%);
}

.template-badge,
.template-hover-cta {
  position: absolute;
  z-index: 2;
  color: #fff;
  backdrop-filter: blur(8px);
}

.template-badge {
  top: 13px;
  left: 13px;
  padding: 6px 9px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 20px;
  background: rgba(16, 26, 60, 0.42);
}

.template-hover-cta {
  right: 13px;
  bottom: 13px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 7px;
  background: rgba(79, 107, 255, 0.88);
  opacity: 0;
  transform: translateY(7px);
  transition: opacity 0.25s, transform 0.25s;
}

.template-card:hover .template-hover-cta {
  opacity: 1;
  transform: translateY(0);
}

.template-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 16px 16px;
}

.template-copy {
  min-width: 0;
}

.template-copy strong,
.template-copy small {
  display: block;
}

.template-copy strong {
  overflow: hidden;
  color: #26335d;
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.template-copy small {
  margin-top: 6px;
  color: #96a0b8;
  font-size: 9px;
}

.template-meta {
  flex: 0 0 auto;
  padding: 5px 7px;
  color: #536fff;
  font-size: 9px;
  font-weight: 700;
  border-radius: 5px;
  background: #eef1ff;
}

.template-meta.hot {
  color: #e56e3b;
  background: #fff0e9;
}

.scene-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.scene-card {
  position: relative;
  min-height: 224px;
  padding: 0;
  overflow: hidden;
  color: #fff;
  text-align: left;
  border: 1px solid rgba(220, 225, 241, 0.9);
  border-radius: 13px;
  background: #14204a;
  box-shadow: 0 12px 28px rgba(38, 53, 112, 0.08);
  transition: transform 0.25s, box-shadow 0.25s;
}

.scene-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(38, 53, 112, 0.16);
}

.scene-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.45s ease;
}

.scene-card:hover img {
  transform: scale(1.055);
}

.scene-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 17, 45, 0.06) 24%, rgba(10, 17, 45, 0.88) 100%),
    linear-gradient(90deg, rgba(10, 17, 45, 0.28), transparent 65%);
}

.scene-index {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 15px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.scene-content {
  position: absolute;
  z-index: 2;
  right: 17px;
  bottom: 16px;
  left: 17px;
}

.scene-content small,
.scene-content strong,
.scene-content span {
  display: block;
}

.scene-content small {
  margin-bottom: 7px;
  color: #bfc9ff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.scene-content strong {
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.scene-content span {
  margin-top: 7px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 9px;
}

.faq-section {
  padding-top: 54px;
}

.faq-heading {
  align-items: center;
}

.faq-heading-note {
  color: #9aa4ba;
  font-size: 10px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.faq-item {
  min-width: 0;
  padding: 0 17px;
  border: 1px solid #e2e6f1;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 8px 22px rgba(38, 53, 112, 0.05);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item:hover,
.faq-item[open] {
  border-color: #c1cbff;
  box-shadow: 0 12px 26px rgba(38, 53, 112, 0.09);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 57px;
  color: #303d66;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary span {
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 18px;
  font-weight: 400;
  transition: transform 0.2s;
}

.faq-item[open] summary span {
  transform: rotate(45deg);
}

.faq-item p {
  margin: -2px 0 17px;
  padding-top: 13px;
  color: #7c87a2;
  font-size: 11px;
  line-height: 1.8;
  border-top: 1px solid #edf0f7;
}

.footer {
  display: flex;
  justify-content: space-between;
  padding-top: 56px;
  color: #a5adc0;
  font-size: 10px;
}

.footer a {
  color: inherit;
  text-decoration: none;
}

.footer a:hover {
  color: var(--blue);
}

.toast {
  position: fixed;
  z-index: 20;
  right: 24px;
  bottom: 24px;
  max-width: min(320px, calc(100vw - 48px));
  padding: 12px 16px;
  color: white;
  font-size: 12px;
  border-radius: 7px;
  background: var(--navy);
  box-shadow: 0 12px 30px rgba(16, 25, 54, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 0.25s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .sidebar {
    width: 216px;
    flex-basis: 216px;
  }

  .main-content {
    padding-right: 28px;
    padding-left: 28px;
  }

  .creator-grid {
    grid-template-columns: 1fr;
  }

  .preview-panel {
    display: grid;
    grid-template-columns: 1fr 1.08fr;
    gap: 17px;
    align-items: center;
  }

  .preview-header {
    display: block;
  }

  .live-badge {
    display: inline-flex;
    margin-top: 13px;
  }

  .slide-preview {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
  }

  .preview-meta {
    grid-column: 1;
    grid-row: 2;
    flex-wrap: wrap;
  }
}

@media (max-width: 710px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: static;
    display: block;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 15px 18px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .sidebar-head,
  .app-shell.sidebar-collapsed .sidebar-head {
    margin-bottom: 14px;
  }

  .brand {
    padding: 0;
  }

  .app-shell.sidebar-collapsed .sidebar {
    width: 100%;
    padding: 15px 18px;
  }

  .app-shell.sidebar-collapsed .brand > div:last-child {
    display: block;
  }

  .sidebar-toggle {
    display: none;
  }

  .new-deck {
    display: none;
  }

  .side-nav {
    display: flex;
    gap: 3px;
    margin: 0;
  }

  .nav-item {
    justify-content: center;
    padding: 9px 7px;
    font-size: 11px;
  }

  .app-shell.sidebar-collapsed .nav-item {
    gap: 12px;
    padding: 9px 7px;
    font-size: 11px;
  }

  .sidebar-section,
  .sidebar-bottom {
    display: none;
  }

  .main-content {
    padding: 0 18px 28px;
  }

  .topbar {
    min-height: 63px;
  }

  .top-actions {
    gap: 6px;
  }

  .text-button,
  .icon-button {
    display: none;
  }

  .hero-block {
    padding: 38px 0 25px;
  }

  h1 {
    font-size: 35px;
  }

  .creator-panel {
    padding: 18px 16px;
  }

  .creator-options {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .option-group {
    flex: 1;
  }

  .generate-button {
    flex-basis: 100%;
  }

  .preview-panel {
    display: block;
  }

  .slide-preview {
    margin: 20px 0 14px;
  }

  .preview-meta {
    flex-wrap: wrap;
  }

  .template-grid {
    grid-template-columns: 1fr;
  }

  .scene-grid {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .template-card {
    min-height: 0;
  }

  .template-visual {
    height: 235px;
  }

  .scene-card {
    min-height: 245px;
  }

  .faq-heading-note {
    display: none;
  }

  .footer {
    padding-top: 38px;
  }
}
