:root {
  color-scheme: dark;
  --bg: #06080d;
  --bg-raised: #0b1119;
  --panel: rgba(13, 20, 28, 0.78);
  --panel-strong: rgba(10, 16, 23, 0.94);
  --panel-soft: rgba(255, 255, 255, 0.045);
  --line: rgba(255, 255, 255, 0.105);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f8fa;
  --text-soft: #b9c6ca;
  --text-muted: #738288;
  --mint: #72e7dd;
  --mint-deep: #49cfc2;
  --gold: #f3c36b;
  --danger: #ff7b84;
  --gradient-main: linear-gradient(135deg, #74e8de 0%, #f5c36c 100%);
  --gradient-soft: linear-gradient(135deg, rgba(83, 214, 203, 0.13), rgba(246, 192, 99, 0.08));
  --shadow-lg: 0 30px 90px rgba(0, 0, 0, 0.48);
  --serif: "Iowan Old Style", "Songti SC", "STSong", "Noto Serif CJK SC", serif;
  --sans: "SF Pro Display", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(114, 231, 221, 0.45) transparent;
  scrollbar-width: thin;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(55, 139, 134, 0.2), transparent 30%),
    radial-gradient(circle at 85% 2%, rgba(188, 135, 75, 0.14), transparent 28%),
    linear-gradient(160deg, #06080d 0%, #0d131c 45%, #090a10 100%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
}

body.light {
  color-scheme: light;
  --bg: #e8efed;
  --bg-raised: #f8fbf9;
  --panel: rgba(255, 255, 255, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.94);
  --panel-soft: rgba(7, 30, 31, 0.05);
  --line: rgba(8, 44, 45, 0.12);
  --line-strong: rgba(8, 44, 45, 0.2);
  --text: #102526;
  --text-soft: #4c6263;
  --text-muted: #748889;
  color: var(--text);
  background:
    radial-gradient(circle at 12% -8%, rgba(68, 188, 177, 0.2), transparent 31%),
    radial-gradient(circle at 85% 2%, rgba(224, 178, 95, 0.18), transparent 30%),
    linear-gradient(160deg, #eef5f3 0%, #e2ebe9 52%, #f4f2eb 100%);
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

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

svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

img {
  display: block;
  max-width: 100%;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.12) 0 0.7px, transparent 0.8px),
    radial-gradient(circle at 70% 65%, rgba(255, 255, 255, 0.08) 0 0.8px, transparent 0.9px);
  background-size: 3px 3px, 5px 5px;
  mix-blend-mode: soft-light;
}

.ambient {
  position: fixed;
  z-index: -2;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.18;
  pointer-events: none;
}

.ambient-one {
  width: 560px;
  height: 560px;
  top: 9vh;
  left: -220px;
  background: #207f79;
}

.ambient-two {
  width: 480px;
  height: 480px;
  top: 28vh;
  right: -220px;
  background: #9d6e2e;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 18px 30px;
  background: linear-gradient(180deg, rgba(6, 8, 13, 0.84), rgba(6, 8, 13, 0.46), transparent);
  backdrop-filter: blur(18px);
}

body.light .topbar {
  background: linear-gradient(180deg, rgba(238, 245, 243, 0.92), rgba(238, 245, 243, 0.54), transparent);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 11px;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  color: #061316;
  background: var(--gradient-main);
  box-shadow: 0 8px 28px rgba(94, 224, 210, 0.16);
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 900;
}

.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 16px;
}

.brand-copy {
  display: grid;
  line-height: 1.15;
}

.brand-copy strong {
  font-size: 18px;
  letter-spacing: 0.04em;
}

.brand-copy small {
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.main-nav {
  display: flex;
  align-items: center;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 12, 17, 0.42);
}

body.light .main-nav {
  background: rgba(255, 255, 255, 0.48);
}

.main-nav a {
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 800;
  transition: 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text);
  background: var(--panel-soft);
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 9px;
}

.ai-status {
  display: inline-flex;
  min-height: 29px;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text-muted);
  background: var(--panel-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.06em;
}

.ai-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 3px rgba(115, 130, 136, 0.08);
}

.ai-status.ready i {
  background: var(--mint);
  box-shadow: 0 0 10px rgba(114, 231, 221, 0.55);
}

.ai-status.partial i {
  background: var(--gold);
}

.ai-status.offline i {
  background: var(--danger);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  background: var(--panel-soft);
  cursor: pointer;
  transition: 180ms ease;
}

.icon-button:hover {
  color: var(--text);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.icon-button svg {
  width: 17px;
  height: 17px;
}

.button {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
  white-space: nowrap;
  cursor: pointer;
  transition:
    transform 180ms ease,
    filter 180ms ease,
    background 180ms ease;
}

.button:hover {
  filter: brightness(1.07);
  transform: translateY(-1px);
}

.button svg {
  width: 15px;
  height: 15px;
}

.button-primary {
  color: #071316;
  background: var(--gradient-main);
  box-shadow: 0 9px 25px rgba(91, 217, 204, 0.12);
}

.button-quiet,
.button-dark {
  color: var(--text);
  border-color: var(--line);
  background: var(--panel-soft);
}

.button-gold {
  color: #19160e;
  background: linear-gradient(135deg, #f6dda3, #d4ae62);
}

main {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  min-height: 330px;
  grid-template-columns: minmax(0, 1.05fr) minmax(390px, 0.95fr);
  align-items: center;
  gap: 40px;
  padding: 28px 8px 22px;
}

.hero::before,
.hero::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.hero::before {
  inset: 28px 45% 25px 0;
  border-top: 1px solid rgba(117, 224, 215, 0.12);
  border-bottom: 1px solid rgba(117, 224, 215, 0.08);
  background-image: radial-gradient(circle, rgba(119, 233, 222, 0.19) 1px, transparent 1.3px);
  background-size: 17px 17px;
  mask-image: linear-gradient(90deg, #000, transparent 87%);
}

.hero::after {
  width: 1px;
  height: 53%;
  top: 22%;
  left: calc(52% + 20px);
  background: linear-gradient(transparent, rgba(114, 231, 221, 0.2), transparent);
}

.viewport-copy {
  position: absolute;
  inset: 34px 5px auto;
  display: flex;
  justify-content: space-between;
  color: rgba(177, 222, 219, 0.4);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.16em;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-left: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mint);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.eyebrow i {
  width: 22px;
  height: 1px;
  background: currentColor;
}

.hero h1 {
  max-width: 630px;
  margin: 15px 0 14px;
  font-family: var(--serif);
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.05;
}

.hero h1 em {
  color: transparent;
  background: linear-gradient(100deg, #f4fbff 4%, #79e2d8 52%, #f1c571 109%);
  background-clip: text;
  font-style: normal;
}

.hero-copy > p {
  max-width: 520px;
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  letter-spacing: 0.01em;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.hero-meta span,
.hero-meta button {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.14);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
  font-weight: 600;
}

.hero-meta button {
  cursor: pointer;
}

.hero-meta button:hover {
  color: var(--text);
  border-color: rgba(114, 231, 221, 0.25);
}

.viewfinder {
  position: relative;
  min-width: 0;
  height: 260px;
  perspective: 1100px;
}

.viewfinder::before {
  position: absolute;
  width: 82%;
  height: 82%;
  right: -5%;
  bottom: 2%;
  content: "";
  border-radius: 30px;
  background: radial-gradient(circle, rgba(238, 193, 112, 0.17), transparent 70%);
  filter: blur(25px);
}

.viewfinder-shell {
  position: absolute;
  right: -22px;
  top: 8px;
  width: 95%;
  height: 230px;
  overflow: hidden;
  border: 1px solid rgba(157, 228, 222, 0.28);
  border-radius: 25px 7px 25px 7px;
  background: #0a1017;
  box-shadow:
    0 35px 70px rgba(0, 0, 0, 0.55),
    inset 0 0 0 5px rgba(0, 0, 0, 0.22);
  transform: rotateY(-8deg) rotateZ(1.2deg);
}

.viewfinder-shell::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background:
    linear-gradient(90deg, rgba(8, 12, 18, 0.35), transparent 30%, transparent 75%, rgba(6, 9, 14, 0.22)),
    linear-gradient(transparent 65%, rgba(0, 0, 0, 0.7));
}

.viewfinder-shell::after {
  position: absolute;
  inset: 9px;
  z-index: 3;
  content: "";
  border: 1px solid rgba(225, 251, 247, 0.1);
  border-radius: 18px 3px 18px 3px;
}

.viewfinder-shell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  filter: saturate(0.78) contrast(1.08);
}

.viewfinder-tag,
.viewfinder-time {
  position: absolute;
  z-index: 5;
  color: rgba(232, 249, 247, 0.8);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.viewfinder-tag {
  top: 18px;
  left: 20px;
}

.viewfinder-time {
  right: 20px;
  bottom: 16px;
}

.corner {
  position: absolute;
  z-index: 5;
  width: 18px;
  height: 18px;
  border-color: rgba(235, 255, 252, 0.42);
}

.corner.tl {
  top: 16px;
  left: 16px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.corner.tr {
  top: 16px;
  right: 16px;
  border-top: 1px solid;
  border-right: 1px solid;
}

.corner.bl {
  bottom: 16px;
  left: 16px;
  border-bottom: 1px solid;
  border-left: 1px solid;
}

.corner.br {
  right: 16px;
  bottom: 16px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.storyboard-float {
  position: absolute;
  z-index: 4;
  right: 12%;
  bottom: -18px;
  width: 39%;
  height: 112px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 9px;
  box-shadow: 0 18px 35px rgba(0, 0, 0, 0.52);
  transform: rotate(3.5deg);
}

.member-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin: 2px 0 18px;
  padding: 15px 19px;
  border: 1px solid rgba(231, 198, 119, 0.2);
  border-radius: 14px;
  background:
    linear-gradient(110deg, rgba(100, 81, 35, 0.38), rgba(22, 54, 49, 0.36)),
    var(--panel);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.035);
}

.member-copy {
  display: grid;
  gap: 2px;
}

.mini-label {
  color: #e4bc70;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.member-copy strong {
  font-size: 13px;
  font-weight: 750;
}

.member-copy p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
}

.composer-panel {
  padding: 20px 22px 14px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(18, 35, 42, 0.56), rgba(16, 18, 26, 0.36)),
    var(--panel);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
}

.composer-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 13px;
}

.mode-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.mode-tab {
  padding: 7px 15px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-muted);
  background: transparent;
  font-size: 12px;
  font-weight: 850;
  cursor: pointer;
  transition: 180ms ease;
}

.mode-tab:hover {
  color: var(--text);
}

.mode-tab.active {
  color: #071214;
  background: var(--gradient-main);
  box-shadow: 0 7px 22px rgba(99, 220, 207, 0.11);
}

.composer-note {
  color: var(--text-muted);
  font-size: 10px;
}

.composer-entry {
  display: grid;
  grid-template-columns: 1fr 108px;
  gap: 12px;
}

.composer-field {
  position: relative;
  display: flex;
  min-height: 118px;
  flex-direction: column;
  padding: 15px 16px 28px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(3, 8, 12, 0.58);
  transition: border-color 180ms ease;
}

.composer-field:focus-within {
  border-color: rgba(113, 229, 219, 0.44);
  box-shadow: 0 0 0 3px rgba(114, 231, 221, 0.05);
}

.composer-field.drag-ready {
  border-color: var(--mint);
  background: rgba(36, 101, 98, 0.2);
}

.composer-field textarea {
  width: 100%;
  min-height: 66px;
  flex: 1;
  padding: 0 128px 0 0;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 15px;
  line-height: 1.65;
  resize: none;
}

.import-file-button {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-muted);
  background: rgba(7, 15, 20, 0.64);
  font-size: 8px;
  cursor: pointer;
}

.import-file-button:hover {
  color: var(--text);
  border-color: rgba(114, 231, 221, 0.28);
}

.import-file-button svg {
  width: 13px;
  height: 13px;
}

.composer-field textarea::placeholder {
  color: rgba(230, 238, 240, 0.27);
}

body.light .composer-field textarea::placeholder {
  color: rgba(17, 42, 44, 0.38);
}

.input-hint {
  position: absolute;
  right: 15px;
  bottom: 10px;
  left: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 9px;
}

.input-hint b {
  color: var(--text-soft);
  font-weight: 700;
}

.send-button {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  border: 0;
  border-radius: 20px;
  color: #061315;
  background: var(--gradient-main);
  box-shadow: 0 14px 32px rgba(104, 223, 211, 0.14);
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  transition: 200ms ease;
}

.send-button:hover {
  filter: brightness(1.08);
  transform: translateY(-2px);
}

.send-button:active {
  transform: translateY(0);
}

.send-button svg {
  width: 22px;
  height: 22px;
  transition: transform 180ms ease;
}

.send-button:hover svg {
  transform: translateX(3px);
}

.idea-guide {
  display: grid;
  margin-top: 14px;
  padding: 14px 16px 12px;
  grid-template-columns: 1fr 1.18fr;
  gap: 12px 20px;
  border: 1px solid rgba(120, 226, 217, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(85, 205, 196, 0.065), rgba(255, 205, 105, 0.03)),
    rgba(4, 9, 13, 0.22);
}

.guide-scope,
.guide-range {
  display: grid;
  gap: 7px;
}

.guide-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 750;
}

.guide-label small {
  color: var(--text-muted);
  font-size: 8px;
  font-weight: 500;
}

.guide-point {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 10px;
}

.guide-point b {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(114, 231, 221, 0.3);
  border-radius: 50%;
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.guide-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
}

.guide-stats div {
  display: grid;
  align-content: center;
  min-height: 45px;
  padding: 7px 10px;
}

.guide-stats div + div {
  border-left: 1px solid var(--line);
}

.guide-stats strong {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.guide-stats span {
  color: var(--text-muted);
  font-size: 7px;
}

.guide-description {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.55;
}

.tools-section {
  padding: 30px 0 8px;
}

.section-heading,
.gallery-header,
.library-toolbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.section-heading h2,
.gallery-header h2,
.library-title h2 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.035em;
}

.section-heading h2 small {
  margin-left: 8px;
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 13px;
}

.tool-card {
  position: relative;
  display: grid;
  min-height: 70px;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
    var(--panel);
  text-align: left;
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.tool-card::after {
  position: absolute;
  width: 60px;
  height: 60px;
  right: -20px;
  bottom: -30px;
  content: "";
  border-radius: 50%;
  background: rgba(114, 231, 221, 0.12);
  filter: blur(18px);
  transition: 180ms ease;
}

.tool-card:hover {
  border-color: rgba(114, 231, 221, 0.28);
  background-color: rgba(19, 34, 40, 0.9);
  transform: translateY(-2px);
}

.tool-card:hover::after {
  transform: scale(1.5);
}

.tool-card-featured {
  border-color: rgba(114, 231, 221, 0.2);
  background:
    linear-gradient(135deg, rgba(85, 205, 196, 0.11), rgba(255, 205, 105, 0.055)),
    var(--panel);
}

.tool-card-muted {
  opacity: 0.62;
}

.tool-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 9px;
  color: var(--mint);
  background: rgba(7, 18, 23, 0.66);
}

.tool-icon svg {
  width: 16px;
  height: 16px;
}

.tool-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.tool-copy strong {
  font-size: 12px;
  font-weight: 850;
}

.tool-copy small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tool-arrow {
  position: relative;
  z-index: 2;
  color: var(--text-muted);
  font-size: 16px;
}

.soon-badge {
  position: relative;
  z-index: 2;
  padding: 3px 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.library-section {
  margin-top: 26px;
  padding: 18px 0 10px;
  border-top: 1px solid var(--line);
}

.library-title .eyebrow {
  color: var(--text-muted);
}

.library-actions {
  display: flex;
  gap: 7px;
}

.library-actions .icon-button {
  width: 36px;
  height: 36px;
}

.library-empty {
  position: relative;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 138px;
  margin-top: 14px;
  padding: 20px 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background:
    linear-gradient(100deg, rgba(75, 184, 177, 0.07), transparent 35%),
    rgba(255, 255, 255, 0.018);
}

.library-empty::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.13;
  mask-image: linear-gradient(90deg, transparent 20%, #000);
}

.empty-visual {
  position: relative;
  display: grid;
  width: 80px;
  height: 80px;
  flex: 0 0 80px;
  place-items: center;
}

.empty-ring {
  position: absolute;
  border: 1px solid rgba(114, 231, 221, 0.2);
  border-radius: 50%;
}

.ring-one {
  inset: 2px;
  animation: slowSpin 12s linear infinite;
}

.ring-one::after {
  position: absolute;
  width: 5px;
  height: 5px;
  top: 8px;
  right: 8px;
  content: "";
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 13px var(--mint);
}

.ring-two {
  inset: 14px;
  border-style: dashed;
  opacity: 0.55;
}

.empty-core {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(114, 231, 221, 0.26);
  border-radius: 13px;
  color: var(--gold);
  background: rgba(9, 20, 25, 0.75);
}

.empty-core svg {
  width: 18px;
  height: 18px;
}

@keyframes slowSpin {
  to {
    transform: rotate(360deg);
  }
}

.library-empty > div:not(.empty-visual) {
  position: relative;
  z-index: 1;
  flex: 1;
}

.library-empty strong {
  font-size: 16px;
}

.library-empty p {
  margin: 4px 0 0;
  color: var(--text-muted);
  font-size: 11px;
}

.library-empty .button {
  position: relative;
  z-index: 1;
}

.gallery-section {
  padding: 34px 0 50px;
}

.gallery-header {
  align-items: center;
}

.gallery-header h2 {
  font-size: 26px;
}

.search-field {
  position: relative;
  display: flex;
  width: min(320px, 48vw);
  align-items: center;
}

.search-field input {
  width: 100%;
  height: 38px;
  padding: 0 41px 0 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: rgba(3, 7, 11, 0.46);
  font-size: 11px;
  transition: 180ms ease;
}

body.light .search-field input {
  background: rgba(255, 255, 255, 0.56);
}

.search-field input:focus {
  border-color: rgba(114, 231, 221, 0.4);
  box-shadow: 0 0 0 3px rgba(114, 231, 221, 0.05);
}

.search-field input::placeholder {
  color: var(--text-muted);
}

.search-field svg {
  position: absolute;
  right: 13px;
  width: 16px;
  height: 16px;
  color: var(--text-muted);
  pointer-events: none;
}

.gallery-filters {
  display: flex;
  gap: 7px;
  margin: 20px 0 16px;
  padding-bottom: 4px;
  overflow-x: auto;
  scrollbar-width: none;
}

.gallery-filters::-webkit-scrollbar {
  display: none;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 32px;
  padding: 0 13px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text-muted);
  background: var(--panel-soft);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 160ms ease;
}

.filter-chip:hover {
  color: var(--text);
}

.filter-chip.active {
  color: #071214;
  background: var(--gradient-main);
}

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

.work-card {
  position: relative;
  display: block;
  min-height: 280px;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  color: #f8fbfc;
  background: #080d13;
  text-align: left;
  isolation: isolate;
  cursor: pointer;
  transition:
    transform 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 240ms ease,
    border-color 240ms ease;
}

.work-card[hidden] {
  display: none;
}

.work-card:hover {
  z-index: 2;
  border-color: rgba(114, 231, 221, 0.34);
  box-shadow: 0 26px 55px rgba(0, 0, 0, 0.42);
  transform: translateY(-5px);
}

.work-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover > img {
  transform: scale(1.045);
}

.work-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(3, 7, 10, 0.08) 20%, rgba(3, 7, 10, 0.1) 46%, rgba(3, 7, 10, 0.92) 100%),
    linear-gradient(90deg, rgba(4, 8, 12, 0.25), transparent 60%);
}

.play-badge {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(8, 12, 16, 0.44);
  backdrop-filter: blur(8px);
  transform: translateY(-50%);
  transition: 220ms ease;
}

.play-badge i {
  width: 0;
  height: 0;
  margin-left: 2px;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid #fff;
}

.work-card:hover .play-badge {
  color: #071214;
  border-color: transparent;
  background: var(--gradient-main);
  transform: translateY(-50%) scale(1.12);
}

.work-card:hover .play-badge i {
  border-left-color: #071214;
}

.work-content {
  position: absolute;
  right: 18px;
  bottom: 14px;
  left: 18px;
  z-index: 3;
  display: grid;
  gap: 7px;
}

.work-content > strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 15px;
  font-weight: 850;
  line-height: 1.4;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.work-tags {
  display: flex;
  gap: 5px;
  overflow: hidden;
}

.work-tags i {
  flex: 0 0 auto;
  padding: 3px 6px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 4px;
  color: rgba(247, 252, 252, 0.7);
  background: rgba(7, 12, 16, 0.3);
  font-size: 8px;
  font-style: normal;
}

.work-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.work-footer small {
  color: rgba(241, 247, 248, 0.62);
  font-size: 9px;
}

.empty-results {
  display: grid;
  min-height: 240px;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--text-muted);
}

.empty-results > span {
  color: var(--mint);
  font-size: 32px;
}

.empty-results strong {
  color: var(--text-soft);
}

.empty-results p {
  margin: 0;
  font-size: 11px;
}

.site-footer {
  display: grid;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 26px 0 36px;
  border-top: 1px solid var(--line);
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand > span:last-child {
  display: grid;
}

.footer-brand strong {
  font-size: 12px;
}

.footer-brand small {
  color: var(--text-muted);
  font-size: 9px;
}

.footer-links {
  display: flex;
  gap: 16px;
}

.footer-links a,
.footer-links button {
  padding: 0;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.footer-links a:hover,
.footer-links button:hover {
  color: var(--text);
}

.site-footer > p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--text-muted);
  font-size: 8px;
  letter-spacing: 0.03em;
}

.modal-backdrop,
.project-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  padding: 20px;
  place-items: center;
  background: rgba(1, 3, 6, 0.68);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  transition: 200ms ease;
}

.modal-backdrop.open,
.project-modal.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: min(460px, 100%);
  padding: 29px;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(114, 231, 221, 0.08), transparent 34%),
    var(--panel-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.985);
  transition: 220ms ease;
}

.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--text-soft);
  background: var(--panel-soft);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
  border-color: var(--line-strong);
}

.modal-close svg {
  width: 15px;
  height: 15px;
}

.modal h2,
.drawer h2 {
  margin: 8px 0 6px;
  font-family: var(--serif);
  font-size: 29px;
  letter-spacing: -0.035em;
}

.modal > p {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 12px;
}

.modal-field {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.modal-field > span {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.modal-field input {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 7, 10, 0.45);
  font-size: 12px;
}

body.light .modal-field input {
  background: rgba(255, 255, 255, 0.62);
}

.modal-field input:focus {
  border-color: rgba(114, 231, 221, 0.4);
}

.code-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.modal-submit {
  width: 100%;
  margin-top: 18px;
  min-height: 44px;
}

.modal-terms {
  display: block;
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 8px;
  text-align: center;
}

.project-steps {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 24px 0;
}

.project-steps span {
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 9px;
}

.project-steps span.done {
  color: #071214;
  border-color: transparent;
  background: var(--mint);
}

.project-steps i {
  flex: 1;
  height: 1px;
  background: var(--line);
}

.preview-drawer {
  position: fixed;
  inset: 0;
  z-index: 110;
  opacity: 0;
  visibility: hidden;
  transition: 230ms ease;
}

.preview-drawer.open {
  opacity: 1;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  padding: 0;
  border: 0;
  background: rgba(1, 3, 6, 0.64);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.drawer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  padding: 58px 28px 28px;
  overflow-y: auto;
  border-left: 1px solid var(--line-strong);
  background:
    radial-gradient(circle at 100% 0%, rgba(114, 231, 221, 0.09), transparent 28%),
    var(--panel-strong);
  box-shadow: -30px 0 90px rgba(0, 0, 0, 0.48);
  transform: translateX(35px);
  transition: 250ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.open .drawer {
  transform: translateX(0);
}

.drawer-image-wrap {
  position: relative;
  height: 230px;
  margin-bottom: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #05080d;
}

.drawer-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.drawer-image-wrap::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.66));
}

.drawer-play {
  position: absolute;
  z-index: 2;
  top: 50%;
  left: 50%;
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(8, 12, 17, 0.34);
  backdrop-filter: blur(8px);
  transform: translate(-50%, -50%);
}

.drawer-play i {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.drawer > h2 {
  padding-right: 20px;
  font-size: 30px;
}

.drawer > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
}

.drawer-meta {
  display: flex;
  gap: 20px;
  margin-top: 18px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  color: var(--text-muted);
  font-size: 10px;
}

.drawer-meta b {
  margin-left: 4px;
  color: var(--text-soft);
}

.fake-progress {
  height: 3px;
  margin-top: 20px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--line);
}

.fake-progress i {
  display: block;
  width: 34%;
  height: 100%;
  background: var(--gradient-main);
}

.player-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 26px;
  margin: 18px 0;
}

.player-controls button {
  padding: 5px;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.player-controls button.big {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  color: #071214;
  background: var(--gradient-main);
  font-size: 12px;
}

.drawer-action {
  width: 100%;
  min-height: 42px;
}

.toast {
  position: fixed;
  z-index: 200;
  bottom: 28px;
  left: 50%;
  max-width: min(420px, calc(100% - 32px));
  padding: 11px 17px;
  border: 1px solid rgba(114, 231, 221, 0.24);
  border-radius: 10px;
  color: var(--text);
  background: rgba(7, 14, 20, 0.92);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  font-size: 11px;
  text-align: center;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, 12px);
  transition: 200ms ease;
}

body.light .toast {
  background: rgba(247, 251, 249, 0.96);
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (min-width: 1300px) {
  main {
    width: min(1240px, calc(100% - 64px));
  }

  .site-footer {
    width: min(1240px, calc(100% - 64px));
  }

  .hero {
    min-height: 380px;
  }

  .viewfinder {
    height: 300px;
  }

  .viewfinder-shell {
    height: 260px;
  }

  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .work-card {
    min-height: 300px;
  }
}

@media (max-width: 920px) {
  .topbar {
    grid-template-columns: 1fr auto;
    padding: 14px 20px;
  }

  .main-nav {
    display: none;
  }

  main {
    width: min(100% - 28px, 760px);
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 31px 3px 12px;
  }

  .hero::before {
    inset: 25px 0 235px;
  }

  .hero::after {
    display: none;
  }

  .hero-copy {
    padding: 8px 10px 0;
  }

  .hero h1 {
    max-width: 650px;
    font-size: clamp(40px, 9vw, 62px);
  }

  .viewfinder {
    height: 260px;
    margin-top: 12px;
  }

  .viewfinder-shell {
    right: 0;
    width: calc(100% - 10px);
  }

  .storyboard-float {
    right: 10%;
  }

  .tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-grid {
    gap: 12px;
  }

  .work-card {
    min-height: 250px;
  }

  .site-footer {
    width: calc(100% - 28px);
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .topbar {
    position: relative;
    padding: 13px 15px 10px;
  }

  .brand-mark {
    width: 35px;
    height: 35px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 6px;
  }

  #accountButton {
    min-width: 58px;
    padding-inline: 10px;
  }

  main {
    width: calc(100% - 24px);
  }

  .hero {
    padding-top: 25px;
  }

  .viewport-copy {
    display: none;
  }

  .hero::before {
    inset: 20px 0 218px;
  }

  .hero-copy {
    padding: 0 4px;
  }

  .hero h1 {
    margin-top: 13px;
    font-size: clamp(38px, 12vw, 54px);
    letter-spacing: -0.065em;
  }

  .hero-copy > p {
    font-size: 12px;
  }

  .hero-meta {
    margin-top: 15px;
  }

  .viewfinder {
    height: 213px;
    margin-top: 11px;
  }

  .viewfinder-shell {
    width: 100%;
    height: 192px;
    border-radius: 18px 6px 18px 6px;
    transform: rotateY(-4deg) rotateZ(0.7deg);
  }

  .storyboard-float {
    right: 7%;
    bottom: -4px;
    height: 87px;
  }

  .member-banner {
    align-items: flex-start;
    gap: 11px;
    margin-top: 0;
    padding: 13px;
  }

  .member-copy strong {
    font-size: 11px;
    line-height: 1.45;
  }

  .member-copy p {
    margin-top: 3px;
    font-size: 8px;
  }

  .member-banner .button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 9px;
  }

  .composer-panel {
    padding: 15px 12px 11px;
    border-radius: 17px;
  }

  .composer-topline {
    gap: 7px;
  }

  .mode-tabs {
    gap: 2px;
  }

  .mode-tab {
    padding: 6px 10px;
    font-size: 10px;
  }

  .composer-note {
    display: none;
  }

  .composer-entry {
    grid-template-columns: 1fr 82px;
    gap: 8px;
  }

  .composer-field {
    min-height: 126px;
    padding: 13px 12px 28px;
  }

  .composer-field textarea {
    min-height: 74px;
    padding-right: 0;
    font-size: 12px;
  }

  .import-file-button {
    top: auto;
    right: 11px;
    bottom: 30px;
    font-size: 7px;
  }

  .input-hint {
    right: 12px;
    left: 12px;
    font-size: 8px;
  }

  .send-button {
    min-height: 126px;
    border-radius: 15px;
    font-size: 11px;
  }

  .idea-guide {
    padding: 12px;
    grid-template-columns: 1fr;
  }

  .guide-range {
    padding-top: 9px;
    border-top: 1px solid var(--line);
  }

  .guide-description {
    padding-top: 7px;
    font-size: 8px;
  }

  .tools-section {
    padding-top: 25px;
  }

  .tool-grid {
    gap: 7px;
  }

  .tool-card {
    min-height: 61px;
    grid-template-columns: 31px 1fr;
    padding: 8px 9px;
  }

  .tool-icon {
    width: 30px;
    height: 30px;
  }

  .tool-copy strong {
    font-size: 10px;
  }

  .tool-copy small {
    font-size: 8px;
  }

  .tool-arrow,
  .soon-badge {
    display: none;
  }

  .library-section {
    margin-top: 18px;
  }

  .library-toolbar {
    align-items: flex-start;
    gap: 12px;
  }

  .library-title h2 {
    font-size: 18px;
  }

  .library-actions {
    gap: 5px;
  }

  .library-actions .button {
    min-height: 34px;
    padding: 0 9px;
    font-size: 9px;
  }

  .library-actions .icon-button {
    display: none;
  }

  .library-empty {
    min-height: 144px;
    align-items: center;
    padding: 17px 15px;
    gap: 12px;
  }

  .empty-visual {
    width: 57px;
    height: 57px;
    flex-basis: 57px;
  }

  .empty-core {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }

  .library-empty strong {
    font-size: 12px;
  }

  .library-empty p {
    font-size: 9px;
  }

  .library-empty .button {
    min-height: 32px;
    padding: 0 10px;
    font-size: 9px;
  }

  .gallery-section {
    padding-top: 27px;
  }

  .gallery-header {
    align-items: flex-end;
  }

  .gallery-header h2 {
    font-size: 22px;
  }

  .search-field {
    width: 155px;
  }

  .search-field input {
    height: 34px;
    padding-right: 32px;
    padding-left: 10px;
    font-size: 9px;
  }

  .search-field svg {
    right: 10px;
    width: 14px;
    height: 14px;
  }

  .gallery-filters {
    margin: 16px 0 12px;
  }

  .filter-chip {
    min-height: 29px;
    padding: 0 10px;
    font-size: 9px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .work-card {
    min-height: 236px;
    border-radius: 15px;
  }

  .work-content {
    right: 14px;
    bottom: 11px;
    left: 14px;
  }

  .work-content > strong {
    font-size: 13px;
  }

  .play-badge {
    left: 15px;
    width: 32px;
    height: 32px;
  }

  .site-footer {
    width: calc(100% - 24px);
    padding-bottom: 28px;
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .footer-links {
    flex-wrap: wrap;
    gap: 12px;
  }

  .modal {
    padding: 24px 20px;
    border-radius: 18px;
  }

  .modal h2 {
    font-size: 25px;
  }

  .drawer {
    width: 100%;
    padding: 54px 20px 22px;
    border-left: 0;
  }

  .drawer-image-wrap {
    height: 210px;
  }

  .drawer > h2 {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Extended application workflows */
.segmented-control {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(3, 8, 12, 0.4);
}

.segmented-control button {
  position: relative;
  z-index: 2;
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  border-radius: 8px;
  color: var(--text-muted);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  transition: 170ms ease;
}

.segmented-control button.active {
  color: #071214;
  background: var(--gradient-main);
}

.segmented-control.small button {
  min-height: 28px;
  padding: 0 7px;
  font-size: 9px;
}

.auth-switch {
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0 8px;
}

.auth-switch > i {
  display: none;
}

.text-button {
  padding: 5px;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

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

.demo-login {
  display: block;
  margin: 11px auto 0;
}

.modal-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 13px;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.45;
}

.modal-check input {
  width: 13px;
  height: 13px;
  margin-top: 1px;
  accent-color: var(--mint);
}

.modal-field select {
  width: 100%;
  height: 44px;
  padding: 0 34px 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 7, 10, 0.45);
  font-size: 11px;
}

body.light .modal-field select {
  background: rgba(255, 255, 255, 0.62);
}

.modal-field textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: rgba(2, 7, 10, 0.45);
  font-size: 12px;
  line-height: 1.65;
  resize: vertical;
}

body.light .modal-field textarea {
  background: rgba(255, 255, 255, 0.62);
}

.modal-field textarea:focus,
.modal-field select:focus {
  border-color: rgba(114, 231, 221, 0.42);
}

.account-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 17px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-soft);
}

.account-avatar {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  place-items: center;
  border-radius: 15px;
  color: #071214;
  background: var(--gradient-main);
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 900;
}

.account-profile > span:nth-child(2) {
  display: grid;
  flex: 1;
}

.account-profile strong {
  font-size: 14px;
}

.account-profile small {
  color: var(--text-muted);
  font-size: 9px;
}

.plan-badge {
  padding: 5px 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.plan-badge.is-pro {
  color: #17130b;
  border-color: transparent;
  background: var(--gold);
}

.account-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.08);
}

.account-stats div {
  display: grid;
  min-height: 62px;
  place-items: center;
  align-content: center;
}

.account-stats div + div {
  border-left: 1px solid var(--line);
}

.account-stats strong {
  font-family: var(--serif);
  font-size: 21px;
}

.account-stats span {
  color: var(--text-muted);
  font-size: 8px;
}

.account-logout {
  display: block;
  margin: 10px auto 0;
}

.benefits-modal {
  width: min(980px, 100%);
  max-height: min(92vh, 920px);
  overflow-y: auto;
}

.membership-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--line);
}

.membership-status span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-muted);
  background: rgba(4, 17, 16, 0.78);
  font-size: 10px;
}

.membership-status strong {
  color: var(--mint);
  font-size: 11px;
}

.benefit-plans {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 15px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  color: var(--text);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.plan-card:hover,
.plan-card.featured {
  border-color: rgba(114, 231, 221, 0.3);
  background: var(--gradient-soft);
  transform: translateY(-2px);
}

.plan-card.featured > i {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 7px;
  border-radius: 4px;
  color: #17130b;
  background: var(--gold);
  font-size: 8px;
  font-style: normal;
}

.plan-card > span {
  display: flex;
  align-items: baseline;
}

.plan-card > span small {
  width: 100%;
  color: var(--mint);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.plan-card > span strong {
  margin-top: 14px;
  font-family: var(--serif);
  font-size: 36px;
}

.plan-card > span em {
  margin-left: 4px;
  color: var(--text-muted);
  font-size: 10px;
  font-style: normal;
}

.plan-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 13px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.plan-card li {
  color: var(--text-soft);
  font-size: 10px;
}

.plan-card li::before {
  margin-right: 7px;
  color: var(--mint);
  content: "✓";
}

.plan-card > b {
  padding: 6px 8px;
  border-radius: 6px;
  color: var(--gold);
  background: rgba(240, 206, 121, 0.09);
  font-size: 8px;
  font-weight: 800;
}

.plan-card.lifetime {
  border-color: rgba(240, 206, 121, 0.24);
}

.credit-purchase {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(2, 14, 13, 0.42);
}

.credit-purchase > div:first-child {
  display: grid;
  gap: 5px;
}

.credit-purchase h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
}

.credit-purchase p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
}

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

.credit-pack-grid button {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 3px 6px;
  min-height: 74px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: var(--text);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.credit-pack-grid button:hover {
  border-color: rgba(114, 231, 221, 0.32);
  background: var(--gradient-soft);
}

.credit-pack-grid strong {
  font-family: var(--serif);
  font-size: 26px;
}

.credit-pack-grid span {
  color: var(--text-muted);
  font-size: 9px;
}

.credit-pack-grid small {
  grid-column: 1 / -1;
  color: var(--gold);
  font-size: 10px;
  font-weight: 800;
}

.payment-order-panel {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(114, 231, 221, 0.24);
  border-radius: 12px;
  background: rgba(3, 20, 18, 0.72);
}

.payment-order-panel header,
.payment-order-panel footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.payment-order-panel header span,
.payment-order-panel p {
  color: var(--text-muted);
  font-size: 9px;
}

.payment-order-panel strong {
  font-size: 12px;
}

.payment-order-panel .payment-order-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.payment-order-panel .payment-order-meta span {
  display: grid;
  gap: 3px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 8px;
}

.payment-order-panel .payment-order-meta b {
  color: var(--text);
  font-size: 10px;
}

.payment-order-panel img {
  justify-self: center;
  width: min(220px, 100%);
  border-radius: 10px;
  background: #fff;
}

.payment-order-panel footer {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.trash-modal {
  width: min(680px, 100%);
}

.trash-list {
  display: grid;
  max-height: 55vh;
  gap: 8px;
  margin-top: 18px;
  overflow: auto;
}

.trash-item {
  display: grid;
  min-height: 70px;
  grid-template-columns: 76px 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
}

.trash-item img {
  width: 76px;
  height: 53px;
  border-radius: 7px;
  object-fit: cover;
}

.trash-item > span {
  display: grid;
}

.trash-item strong {
  font-size: 11px;
}

.trash-item small {
  color: var(--text-muted);
  font-size: 8px;
}

.trash-item .button {
  min-height: 31px;
  padding: 0 10px;
  font-size: 9px;
}

.trash-delete {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}

.trash-delete:hover {
  color: var(--danger);
  background: rgba(255, 123, 132, 0.08);
}

.trash-empty {
  display: grid;
  min-height: 180px;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: var(--text-muted);
}

.trash-empty > span {
  color: var(--mint);
  font-size: 34px;
}

.trash-empty strong {
  color: var(--text-soft);
  font-size: 12px;
}

.trash-empty small {
  font-size: 9px;
}

.project-style-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.project-style-field > span {
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.project-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.project-style-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.project-style-options button,
.tool-aspects button {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-muted);
  background: var(--panel-soft);
  font-size: 9px;
  cursor: pointer;
}

.project-style-options button.active,
.tool-aspects button.active {
  color: #071214;
  border-color: transparent;
  background: var(--gradient-main);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.project-grid[hidden] {
  display: none;
}

.project-card,
.project-add-card {
  min-height: 190px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--panel);
}

.project-card {
  display: grid;
  grid-template-rows: 132px auto;
}

.project-cover {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  color: #fff;
  background: #05080c;
  cursor: pointer;
}

.project-cover::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(transparent 40%, rgba(3, 6, 9, 0.8));
}

.project-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: 400ms ease;
}

.project-cover:hover img {
  transform: scale(1.045);
}

.project-type {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  padding: 4px 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  background: rgba(2, 6, 9, 0.44);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.project-open {
  position: absolute;
  z-index: 2;
  right: 10px;
  bottom: 9px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
}

.project-card-info {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 11px;
}

.project-card-info > button:first-child {
  display: grid;
  flex: 1;
  padding: 0;
  border: 0;
  color: var(--text);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.project-card-info strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-info small {
  overflow: hidden;
  margin-top: 2px;
  color: var(--text-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-more {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--text-muted);
  background: var(--panel-soft);
  cursor: pointer;
}

.project-more svg {
  width: 13px;
}

.project-add-card {
  display: grid;
  min-height: 190px;
  place-items: center;
  align-content: center;
  gap: 5px;
  border-style: dashed;
  color: var(--text-muted);
  cursor: pointer;
  transition: 180ms ease;
}

.project-add-card:hover {
  color: var(--text);
  border-color: rgba(114, 231, 221, 0.28);
  background: var(--gradient-soft);
}

.project-add-card > span {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 5px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--mint);
  font-size: 22px;
  font-weight: 200;
}

.project-add-card strong {
  font-size: 11px;
}

.project-add-card small {
  font-size: 8px;
}

.button-danger {
  color: #fff;
  background: #b54a52;
}

.confirm-modal {
  width: min(390px, 100%);
  text-align: center;
}

.confirm-icon {
  display: grid;
  width: 38px;
  height: 38px;
  margin: 0 auto 13px;
  place-items: center;
  border: 1px solid rgba(255, 123, 132, 0.3);
  border-radius: 50%;
  color: var(--danger);
  background: rgba(255, 123, 132, 0.08);
  font-weight: 900;
}

.confirm-modal h2 {
  margin-bottom: 8px;
  font-size: 23px;
}

.confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 20px;
}

.tool-modal {
  width: min(720px, 100%);
}

.tool-modal h2 {
  margin-bottom: 5px;
}

.tool-mode {
  grid-template-columns: repeat(2, 1fr);
  margin: 18px 0 6px;
}

.tool-mode > i {
  display: none;
}

.tool-aspects {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 13px;
}

.tool-aspects > span {
  margin-right: 4px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.tool-result {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.tool-result figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #060a0f;
}

.tool-result figure img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
}

.tool-result figure video {
  width: 100%;
  max-height: 420px;
  background: #020508;
}

.tool-result figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  color: var(--text-soft);
  font-size: 10px;
}

.tool-result figcaption span {
  flex: 0 0 auto;
  color: var(--mint);
  font-size: 8px;
}

.ai-result-label {
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.ai-text-result,
.ai-video-job {
  display: grid;
  gap: 9px;
  padding: 17px;
  border: 1px solid rgba(114, 231, 221, 0.18);
  border-radius: 13px;
  background: var(--gradient-soft);
}

.ai-text-result strong,
.ai-video-job strong {
  font-family: var(--serif);
  font-size: 21px;
}

.ai-text-result p,
.ai-video-job p {
  margin: 0;
  color: var(--text-soft);
  font-size: 10px;
  line-height: 1.7;
}

.ai-text-result code {
  display: block;
  max-height: 150px;
  padding: 10px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #bfe8e2;
  background: rgba(1, 6, 9, 0.45);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.ai-text-result small {
  color: var(--gold);
  font-size: 8px;
}

.ai-job-status,
.project-video-status {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.12);
  font-size: 8px;
}

.ai-job-status i,
.project-video-status i {
  width: 7px;
  height: 7px;
  flex: 0 0 7px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulseDot 1.2s ease-in-out infinite;
}

.project-video-status {
  margin-bottom: 2px;
}

@keyframes pulseDot {
  50% {
    opacity: 0.35;
    transform: scale(0.72);
  }
}

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

.turnaround-result > div {
  position: relative;
  height: 260px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #060a0f;
}

.turnaround-result img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.turnaround-result > div:nth-child(2) img {
  object-position: 34% center;
  transform: scale(1.13);
}

.turnaround-result > div:nth-child(3) img {
  object-position: 72% center;
  transform: scale(1.13) rotateY(180deg);
}

.turnaround-result span {
  position: absolute;
  right: 7px;
  bottom: 7px;
  padding: 3px 5px;
  border-radius: 3px;
  background: rgba(3, 7, 10, 0.6);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.canvas-templates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 13px;
}

.canvas-templates button {
  display: grid;
  gap: 7px;
  padding: 6px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text-soft);
  background: var(--panel-soft);
  font-size: 9px;
  text-align: left;
  cursor: pointer;
}

.canvas-templates button.active {
  color: var(--text);
  border-color: rgba(114, 231, 221, 0.4);
  box-shadow: 0 0 0 2px rgba(114, 231, 221, 0.05);
}

.canvas-templates img {
  width: 100%;
  height: 96px;
  border-radius: 6px;
  object-fit: cover;
}

.canvas-templates span {
  padding: 0 2px 3px;
}

.studio-workspace {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  grid-template-rows: 68px minmax(0, 1fr) 46px;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 0%, rgba(137, 109, 54, 0.12), transparent 30%),
    radial-gradient(circle at 20% 12%, rgba(51, 143, 134, 0.11), transparent 28%),
    var(--bg);
  opacity: 0;
  visibility: hidden;
  transform: scale(0.995);
  transition: 220ms ease;
}

.studio-workspace.open {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.studio-header {
  display: grid;
  grid-template-columns: 1fr minmax(190px, auto) 1fr;
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(6, 10, 15, 0.82);
  backdrop-filter: blur(18px);
}

body.light .studio-header {
  background: rgba(247, 251, 249, 0.86);
}

.studio-back {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  padding: 0;
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.studio-back:hover {
  color: var(--text);
}

.studio-back svg {
  width: 16px;
}

.studio-title-wrap {
  display: grid;
  justify-items: center;
}

.studio-title-wrap input {
  width: 220px;
  padding: 3px 8px;
  border: 1px solid transparent;
  border-radius: 6px;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 13px;
  font-weight: 850;
  text-align: center;
}

.studio-title-wrap input:focus {
  border-color: var(--line);
  background: var(--panel-soft);
}

.studio-title-wrap span {
  color: var(--text-muted);
  font-size: 8px;
}

.studio-view-tabs {
  display: flex;
  gap: 2px;
  margin-top: 5px;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
}

.studio-view-tabs button {
  min-height: 25px;
  padding: 0 11px;
  border: 0;
  border-radius: 5px;
  color: var(--text-muted);
  background: transparent;
  font-size: 9px;
  cursor: pointer;
}

.studio-view-tabs button.active {
  color: #071315;
  background: var(--mint);
}

.studio-header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 7px;
}

.studio-project-picker {
  width: 132px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--text-soft);
  background: var(--panel-soft);
  font-size: 9px;
}

.studio-credit-chip {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 9px;
  border: 1px solid rgba(240, 206, 121, 0.22);
  border-radius: 999px;
  color: var(--gold);
  background: rgba(240, 206, 121, 0.07);
  font-size: 9px;
  white-space: nowrap;
}

.studio-header-actions .button {
  min-height: 34px;
  font-size: 10px;
}

.studio-simple-only {
  display: none;
}

.simple-workspace .studio-simple-only {
  display: inline-flex;
}

.studio-simple-step-nav {
  display: none;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.simple-workspace:not(.workspace-advanced) .studio-simple-step-nav {
  display: flex;
}

.simple-workspace:not(.workspace-advanced) .studio-timeline,
.simple-workspace:not(.workspace-advanced) .studio-local-badge {
  display: none;
}

.studio-simple-step-nav span {
  min-width: 150px;
  color: var(--text-muted);
  font-size: 10px;
  text-align: center;
}

.studio-simple-step-nav .button {
  min-width: 130px;
}

.simple-workspace:not(.workspace-advanced) .studio-advanced-only,
.simple-workspace:not(.workspace-advanced) .studio-inspector,
.simple-workspace:not(.workspace-advanced) .studio-sidebar,
.simple-workspace:not(.workspace-advanced) .studio-credit-chip {
  display: none;
}

.simple-workspace:not(.workspace-advanced) .studio-layout {
  display: block;
}

.simple-workspace:not(.workspace-advanced) .studio-main {
  width: min(920px, 100%);
  min-height: calc(100vh - 114px);
  max-width: 920px;
  margin: 0 auto;
  padding: 30px 28px 42px;
}

.simple-workspace.workspace-advanced .studio-simple-only:not(#workspaceModeButton) {
  display: none;
}

.long-script-workspace {
  display: grid;
  gap: 14px;
}

.long-script-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--gradient-soft);
}

.long-script-hero h3 {
  margin: 5px 0 4px;
  font-family: var(--serif);
  font-size: 27px;
}

.long-script-hero p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
}

.long-script-metrics {
  display: flex;
  gap: 8px;
}

.long-script-metrics span {
  display: grid;
  min-width: 82px;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.14);
  font-size: 8px;
}

.long-script-metrics b {
  color: var(--text);
  font-family: var(--serif);
  font-size: 19px;
}

.long-episode-list {
  display: grid;
  gap: 9px;
}

.long-episode-card {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.long-episode-card > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  color: #071315;
  background: var(--gradient);
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 900;
}

.long-episode-card div {
  display: grid;
  gap: 3px;
}

.long-episode-card strong {
  font-size: 12px;
}

.long-episode-card small {
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.55;
}

.long-stage-tabs {
  display: flex;
  gap: 5px;
  overflow-x: auto;
}

.long-stage-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text-muted);
  background: var(--panel-soft);
  font-size: 9px;
  white-space: nowrap;
  cursor: pointer;
}

.long-stage-tabs button.active {
  color: #071315;
  border-color: transparent;
  background: var(--mint);
}

.long-stage-panel {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.long-stage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.long-stage-head > div {
  display: grid;
  gap: 3px;
}

.long-stage-head h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.long-stage-head p,
.long-stage-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.7;
}

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

.long-overview-grid article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}

.long-overview-grid span {
  color: var(--text-muted);
  font-size: 8px;
}

.long-overview-grid strong {
  font-size: 11px;
  line-height: 1.5;
}

.long-phase-list,
.long-outline-list,
.long-quality-list {
  display: grid;
  gap: 8px;
}

.long-phase-list article,
.long-outline-list article {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) minmax(90px, auto);
  align-items: center;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-soft);
}

.long-phase-list article > span,
.long-outline-list article > span {
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.long-phase-list article > div,
.long-outline-list article > div {
  display: grid;
  gap: 3px;
}

.long-phase-list strong,
.long-outline-list strong {
  font-size: 11px;
}

.long-phase-list small,
.long-outline-list small,
.long-phase-list em,
.long-outline-list em {
  color: var(--text-muted);
  font-size: 8px;
  font-style: normal;
  line-height: 1.5;
}

.long-quality-score {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2px 12px;
  padding: 14px;
  border: 1px solid rgba(114, 231, 221, 0.2);
  border-radius: 10px;
  background: var(--gradient-soft);
}

.long-quality-score > strong {
  grid-row: 1 / 3;
  color: var(--mint);
  font-family: var(--serif);
  font-size: 38px;
}

.long-quality-score > span {
  font-size: 9px;
}

.long-quality-score p {
  margin: 0;
  color: var(--text-muted);
  font-size: 9px;
}

.long-quality-list article {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 4px 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.long-quality-list b {
  color: var(--gold);
  font-size: 8px;
  text-transform: uppercase;
}

.long-quality-list span,
.long-quality-list small {
  font-size: 9px;
}

.long-quality-list small {
  grid-column: 2;
  color: var(--text-muted);
}

.studio-layout {
  display: grid;
  min-height: 0;
  grid-template-columns: 188px minmax(0, 1fr) 265px;
}

.studio-sidebar {
  display: grid;
  min-height: 0;
  grid-template-rows: auto 1fr auto;
  padding: 21px 12px 14px;
  border-right: 1px solid var(--line);
  background: rgba(6, 11, 16, 0.38);
}

.studio-side-label {
  margin: 0 10px 13px;
  color: var(--text-muted);
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.16em;
}

#stageNav {
  display: grid;
  align-content: start;
  gap: 4px;
}

#stageNav button {
  display: grid;
  min-height: 43px;
  grid-template-columns: 27px 1fr auto;
  align-items: center;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  color: var(--text-muted);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

#stageNav button:hover {
  color: var(--text);
  background: var(--panel-soft);
}

#stageNav button.active {
  color: var(--text);
  border-color: rgba(114, 231, 221, 0.17);
  background: var(--gradient-soft);
}

#stageNav button > span {
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

#stageNav button.active > span {
  color: var(--mint);
}

#stageNav button strong {
  font-size: 10px;
}

#stageNav button i {
  color: var(--mint);
  font-size: 9px;
  font-style: normal;
}

.studio-storage {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
}

.studio-storage span {
  color: var(--text-muted);
  font-size: 8px;
}

.studio-storage strong {
  display: block;
  margin: 3px 0 8px;
  font-size: 9px;
}

.studio-storage > div {
  height: 3px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--line);
}

.studio-storage i {
  display: block;
  width: 42%;
  height: 100%;
  background: var(--gradient-main);
}

.studio-main {
  min-width: 0;
  overflow-y: auto;
  padding: 23px 25px 36px;
}

.studio-stage-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.studio-stage-header h2 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 27px;
  letter-spacing: -0.025em;
}

.studio-progress {
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--mint);
  background: var(--panel-soft);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.studio-stage-content {
  display: grid;
  gap: 15px;
}

.idea-overview {
  display: grid;
  grid-template-columns: minmax(220px, 0.78fr) 1.22fr;
  gap: 18px;
}

.idea-poster {
  position: relative;
  display: flex;
  min-height: 230px;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 17px;
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.idea-poster::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(transparent 30%, rgba(3, 6, 10, 0.88));
}

.idea-poster span {
  position: absolute;
  top: 14px;
  left: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
  letter-spacing: 0.13em;
}

.idea-poster strong {
  font-family: var(--serif);
  font-size: 27px;
  line-height: 1.15;
}

.idea-summary {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--panel);
}

.micro-label {
  color: var(--mint);
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.idea-summary h3 {
  margin: 10px 0;
  font-size: 18px;
  line-height: 1.45;
}

.idea-summary p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
  line-height: 1.75;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 16px;
}

.tag-row span,
.selected-badge {
  padding: 4px 7px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--text-muted);
  background: var(--panel-soft);
  font-size: 8px;
}

.studio-card-grid {
  display: grid;
  gap: 10px;
}

.studio-card-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.studio-flat-card {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel-soft);
}

.studio-flat-card > span {
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.studio-flat-card > small {
  color: var(--text-muted);
  font-size: 8px;
}

.studio-flat-card > strong {
  margin: 2px 0;
  font-size: 12px;
}

.studio-flat-card > p {
  margin: 0;
  color: var(--text-muted);
  font-size: 9px;
  line-height: 1.6;
}

.stage-next-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-top: 3px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--panel-soft);
}

.stage-next-row > span {
  color: var(--text-muted);
  font-size: 9px;
}

.stage-next-row .button {
  min-height: 32px;
  font-size: 9px;
}

.script-project-brief {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--gradient-soft);
}

.script-project-brief > div:first-child {
  display: grid;
  gap: 4px;
}

.script-project-brief h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
}

.script-project-brief p {
  margin: 0;
  color: var(--text-muted);
  font-size: 10px;
}

.script-header,
.asset-stage-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 2px;
}

.script-header h3,
.asset-stage-head h3,
.video-settings h3,
.export-options h3 {
  margin: 4px 0 0;
  font-family: var(--serif);
  font-size: 22px;
}

.script-header p,
.asset-stage-head p {
  margin: 3px 0 0;
  color: var(--text-muted);
  font-size: 9px;
}

.script-header .button,
.asset-stage-head .button {
  min-height: 32px;
  font-size: 9px;
}

.asset-subhead {
  display: grid;
  gap: 4px;
  margin: 23px 0 11px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.asset-subhead h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 20px;
}

.asset-subhead p {
  margin: 0;
  color: var(--text-muted);
  font-size: 9px;
}

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

.scene-asset-grid > button {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.scene-asset-grid img {
  width: 92px;
  height: 66px;
  border-radius: 7px;
  object-fit: cover;
}

.scene-asset-grid span {
  display: grid;
  gap: 4px;
}

.scene-asset-grid strong {
  font-size: 11px;
}

.scene-asset-grid small {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.asset-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.asset-actions .button {
  min-height: 32px;
  padding-inline: 10px;
  font-size: 9px;
}

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

.prop-asset-grid article {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.prop-asset-grid img {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  border-radius: 7px;
  object-fit: cover;
}

.prop-asset-grid div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.prop-asset-grid strong {
  font-size: 11px;
}

.prop-asset-grid small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.45;
  text-overflow: ellipsis;
}

.episode-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  padding-bottom: 3px;
  overflow-x: auto;
}

.episode-tabs button {
  display: grid;
  min-width: 132px;
  gap: 2px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-muted);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.episode-tabs button.active {
  color: var(--text);
  border-color: rgba(114, 231, 221, 0.36);
  background: var(--gradient-soft);
}

.episode-tabs span,
.episode-tabs i {
  font-size: 7px;
  font-style: normal;
}

.episode-tabs strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.episode-tabs i {
  color: var(--gold);
}

.episode-task-summary {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.episode-task-summary span,
.episode-task-summary small {
  color: var(--text-muted);
  font-size: 8px;
}

.episode-task-summary strong {
  font-family: var(--serif);
  font-size: 20px;
}

.script-list {
  display: grid;
  gap: 10px;
}

.script-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.script-card header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--panel-soft);
}

.script-card header span {
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 8px;
}

.script-card header input {
  min-width: 0;
  padding: 3px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-size: 11px;
  font-weight: 800;
}

.script-card header small {
  color: var(--text-muted);
  font-size: 8px;
}

.script-card textarea {
  width: 100%;
  padding: 13px;
  border: 0;
  outline: 0;
  color: var(--text-soft);
  background: transparent;
  font-size: 10px;
  line-height: 1.8;
  resize: vertical;
}

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

.character-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}

.character-image {
  position: relative;
  height: 215px;
  overflow: hidden;
}

.character-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.character-image span {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 5px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(3, 7, 10, 0.42);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
}

.character-copy {
  padding: 12px;
}

.character-copy small {
  color: var(--mint);
  font-size: 7px;
}

.character-copy h4 {
  margin: 3px 0 5px;
  font-family: var(--serif);
  font-size: 18px;
}

.character-copy p {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.character-copy button,
.shot-copy button {
  margin-top: 9px;
  padding: 0;
  border: 0;
  color: var(--text-soft);
  background: transparent;
  font-size: 8px;
  cursor: pointer;
}

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

.style-card {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 3px 12px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: var(--text);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
}

.style-card.active {
  border-color: rgba(114, 231, 221, 0.4);
  box-shadow: 0 0 0 2px rgba(114, 231, 221, 0.05);
}

.style-preview {
  position: relative;
  display: block;
  grid-row: 1 / 3;
  width: 88px;
  height: 64px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--style-gradient);
}

.style-preview::before,
.style-preview::after {
  position: absolute;
  content: "";
  border-radius: 50%;
  filter: blur(7px);
}

.style-preview::before {
  width: 42px;
  height: 42px;
  right: 3px;
  top: 3px;
  background: rgba(255, 215, 150, 0.36);
}

.style-preview::after {
  width: 55px;
  height: 22px;
  bottom: 3px;
  left: -8px;
  background: rgba(2, 14, 18, 0.56);
}

.style-card strong {
  align-self: end;
  font-size: 11px;
}

.style-card small {
  overflow: hidden;
  color: var(--text-muted);
  font-size: 7px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.style-card em {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--mint);
  font-size: 7px;
  font-style: normal;
}

.style-palette {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel-soft);
}

.style-palette > span {
  margin-right: 4px;
  color: var(--text-soft);
  font-size: 8px;
  font-weight: 800;
}

.style-palette i {
  width: 22px;
  height: 22px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.style-palette small {
  margin-left: auto;
  color: var(--text-muted);
  font-size: 7px;
}

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

.shot-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.shot-image {
  position: relative;
  height: 160px;
  overflow: hidden;
}

.shot-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-image span,
.shot-image em {
  position: absolute;
  bottom: 8px;
  padding: 3px 5px;
  border-radius: 3px;
  color: #fff;
  background: rgba(3, 7, 10, 0.62);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  font-style: normal;
}

.shot-image span {
  left: 8px;
}

.shot-image em {
  right: 8px;
}

.shot-copy {
  padding: 10px 11px 11px;
}

.shot-copy strong {
  font-size: 11px;
}

.shot-copy p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.video-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) 0.55fr;
  gap: 16px;
}

.video-monitor {
  position: relative;
  display: grid;
  max-height: 520px;
  aspect-ratio: var(--ratio);
  place-items: center;
  align-self: start;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #030609;
}

.video-monitor img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.video-monitor video {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-monitor::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(transparent 60%, rgba(0, 0, 0, 0.64));
}

.video-frame,
.video-time {
  position: absolute;
  z-index: 2;
  color: rgba(255, 255, 255, 0.67);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 7px;
}

.video-frame {
  top: 13px;
  left: 13px;
}

.video-time {
  right: 13px;
  bottom: 15px;
}

.video-play {
  position: relative;
  z-index: 3;
  display: grid;
  width: 53px;
  height: 53px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(4, 9, 12, 0.45);
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.video-play i {
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid #fff;
}

.video-play.playing i {
  width: 10px;
  height: 14px;
  margin-left: 0;
  border: 0;
  border-right: 3px solid #fff;
  border-left: 3px solid #fff;
}

.video-progress {
  position: absolute;
  z-index: 3;
  right: 13px;
  bottom: 32px;
  left: 13px;
  height: 2px;
  overflow: hidden;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.18);
}

.video-progress i {
  display: block;
  width: 22%;
  height: 100%;
  background: var(--gradient-main);
}

.video-settings {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.video-settings h3 {
  margin-bottom: 6px;
}

.video-settings label {
  display: grid;
  gap: 5px;
}

.video-settings label span {
  color: var(--text-muted);
  font-size: 8px;
}

.video-settings select,
.video-settings input {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--text);
  background: var(--panel-strong);
  font-size: 9px;
}

.video-settings .button {
  min-height: 38px;
  margin-top: 5px;
  font-size: 9px;
}

.filmstrip {
  display: grid;
  grid-template-columns: 75px repeat(6, 1fr);
  gap: 6px;
  padding: 9px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel-soft);
}

.filmstrip > span {
  align-self: center;
  color: var(--text-muted);
  font-size: 8px;
}

.filmstrip img {
  width: 100%;
  height: 48px;
  border-radius: 5px;
  object-fit: cover;
}

.canvas-board {
  position: relative;
  min-height: 540px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel);
}

.canvas-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 900px;
  height: 540px;
  transform-origin: top left;
}

.canvas-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 900px;
  height: 540px;
  overflow: visible;
  pointer-events: none;
}

.canvas-lines line {
  stroke: rgba(114, 231, 221, 0.62);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.canvas-node {
  position: absolute;
  z-index: 2;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--text);
  background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  cursor: grab;
  touch-action: none;
  user-select: none;
}

.canvas-node:active {
  cursor: grabbing;
}

.canvas-node.is-note {
  min-height: 105px;
  border-color: rgba(240, 194, 108, 0.26);
  background: linear-gradient(145deg, #f2d38d, #ddb25d);
  color: #171208;
}

.canvas-node.is-note span {
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.canvas-node.is-note strong {
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.35;
}

.canvas-node.is-image {
  padding: 6px;
}

.canvas-node.is-image img {
  width: 100%;
  max-height: 160px;
  border-radius: 6px;
  object-fit: cover;
}

.canvas-node.is-image small {
  overflow: hidden;
  padding: 0 3px 3px;
  color: var(--text-muted);
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canvas-node > button {
  position: absolute;
  top: -7px;
  right: -7px;
  display: none;
  width: 18px;
  height: 18px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  cursor: pointer;
}

.canvas-node:hover > button,
.canvas-node.selected > button {
  display: grid;
}

.canvas-node.selected {
  border-color: var(--mint);
  box-shadow: 0 0 0 2px rgba(114, 231, 221, 0.16), 0 18px 40px rgba(0, 0, 0, 0.3);
}

.canvas-toolbar button.active {
  color: var(--mint);
  background: rgba(114, 231, 221, 0.1);
}

.canvas-board-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.35;
}

.canvas-note {
  position: absolute;
  top: 42px;
  left: 42px;
  display: grid;
  width: 175px;
  padding: 15px;
  border: 1px solid rgba(241, 195, 107, 0.28);
  border-radius: 9px;
  color: #1b180f;
  background: #f1d696;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.22);
  transform: rotate(-2deg);
}

.canvas-note span {
  font-size: 7px;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.canvas-note strong {
  margin: 7px 0 5px;
  font-family: var(--serif);
  font-size: 21px;
}

.canvas-note p {
  margin: 0;
  font-size: 9px;
}

.canvas-pin {
  position: absolute;
  object-fit: cover;
  border: 5px solid #edf2ef;
  border-radius: 4px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.34);
}

.pin-a {
  width: 220px;
  height: 145px;
  top: 75px;
  right: 50px;
  transform: rotate(2deg);
}

.pin-b {
  width: 180px;
  height: 245px;
  bottom: 45px;
  left: 75px;
  transform: rotate(3.5deg);
}

.pin-c {
  width: 270px;
  height: 170px;
  right: 115px;
  bottom: 75px;
  transform: rotate(-3deg);
}

.canvas-add {
  position: absolute;
  z-index: 3;
  top: 18px;
  right: 18px;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #071214;
  background: var(--gradient-main);
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

.canvas-toolbar {
  position: absolute;
  z-index: 3;
  bottom: 17px;
  left: 50%;
  display: flex;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--panel-strong);
  transform: translateX(-50%);
}

.canvas-toolbar button {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  color: var(--text-muted);
  background: transparent;
  cursor: pointer;
}

.canvas-toolbar button:hover {
  color: var(--text);
  background: var(--panel-soft);
}

.asset-library {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.asset-library button {
  display: grid;
  gap: 2px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-soft);
  background: var(--panel);
  text-align: left;
  cursor: pointer;
}

.asset-library img {
  width: 100%;
  height: 90px;
  margin-bottom: 4px;
  border-radius: 6px;
  object-fit: cover;
}

.asset-library span {
  font-size: 8px;
}

.asset-library small {
  color: var(--text-muted);
  font-size: 7px;
}

.export-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 16px;
}

.export-preview {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #04080d;
}

.export-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.78;
}

.export-preview::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.78));
}

.export-preview span {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  left: 16px;
  color: #fff;
  font-family: var(--serif);
  font-size: 22px;
}

.export-options {
  display: grid;
  align-content: start;
  gap: 13px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.export-formats {
  display: grid;
  gap: 7px;
}

.export-formats button {
  display: grid;
  grid-template-columns: 56px 1fr;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--text-muted);
  background: var(--panel-soft);
  text-align: left;
  cursor: pointer;
}

.export-formats button.active {
  color: var(--text);
  border-color: rgba(114, 231, 221, 0.34);
  background: var(--gradient-soft);
}

.export-formats strong {
  color: var(--mint);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 9px;
}

.export-formats span {
  font-size: 9px;
}

.export-options .button {
  min-height: 40px;
}

.export-options > small {
  color: var(--text-muted);
  font-size: 8px;
}

.studio-inspector {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 20px 16px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: rgba(6, 11, 16, 0.36);
}

.inspector-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.inspector-heading span {
  font-size: 11px;
  font-weight: 850;
}

.inspector-heading i {
  padding: 3px 5px;
  border-radius: 4px;
  color: var(--mint);
  background: rgba(114, 231, 221, 0.08);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
  font-style: normal;
}

.studio-inspector > p {
  margin: 9px 0 11px;
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1.6;
}

.studio-inspector > textarea {
  width: 100%;
  min-height: 105px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  color: var(--text);
  background: rgba(3, 8, 12, 0.42);
  font-size: 9px;
  line-height: 1.6;
  resize: vertical;
}

.inspector-setting {
  display: grid;
  gap: 6px;
  margin-top: 14px;
}

.inspector-setting > span {
  color: var(--text-muted);
  font-size: 8px;
}

.inspector-generate {
  min-height: 39px;
  margin-top: 12px;
  font-size: 9px;
}

.inspector-generate svg {
  width: 14px;
}

.inspector-progress {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.inspector-progress > span {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 8px;
}

.inspector-progress b,
.inspector-progress em {
  font-weight: 500;
  font-style: normal;
}

.inspector-progress > div {
  height: 3px;
  overflow: hidden;
  border-radius: 9px;
  background: var(--line);
}

.inspector-progress i {
  display: block;
  width: 0;
  height: 100%;
  background: var(--gradient-main);
  transition: width 170ms linear;
}

.inspector-history {
  display: grid;
  gap: 6px;
  margin-top: 20px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.inspector-history > span {
  margin-bottom: 2px;
  color: var(--text-muted);
  font-size: 8px;
}

.inspector-history button {
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--text-soft);
  background: var(--panel-soft);
  font-size: 8px;
  text-align: left;
  cursor: pointer;
}

.studio-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 20px;
  border-top: 1px solid var(--line);
  background: rgba(6, 10, 15, 0.76);
}

body.light .studio-footer {
  background: rgba(247, 251, 249, 0.8);
}

.one-click-video-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 14px 0;
  padding: 16px 18px;
  border: 1px solid rgba(114, 231, 221, 0.28);
  border-radius: 14px;
  color: var(--text);
  background:
    linear-gradient(110deg, rgba(114, 231, 221, 0.14), rgba(240, 194, 108, 0.1)),
    var(--panel-soft);
  text-align: left;
  cursor: pointer;
  transition: 180ms ease;
}

.one-click-video-button:hover {
  border-color: rgba(114, 231, 221, 0.5);
  transform: translateY(-1px);
}

.one-click-video-button > span {
  display: grid;
  gap: 3px;
}

.one-click-video-button strong {
  font-family: var(--serif);
  font-size: 20px;
}

.one-click-video-button small {
  color: var(--text-muted);
  font-size: 9px;
}

.one-click-video-button b {
  color: var(--mint);
  font-size: 10px;
  white-space: nowrap;
}

.one-click-progress {
  position: fixed;
  z-index: 240;
  right: 24px;
  bottom: 24px;
  display: grid;
  width: min(360px, calc(100% - 32px));
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(114, 231, 221, 0.3);
  border-radius: 14px;
  color: var(--text);
  background: rgba(6, 15, 17, 0.96);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}

.one-click-progress header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.one-click-progress header button {
  border: 0;
  color: var(--text-muted);
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.one-click-progress p {
  margin: 0;
  color: var(--text-soft);
  font-size: 11px;
}

.one-click-progress > div {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.one-click-progress > div i {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gradient);
  transition: width 300ms ease;
}

.one-click-progress > small {
  color: var(--mint);
  text-align: right;
}

.studio-timeline {
  display: grid;
  flex: 1;
  grid-template-columns: 64px minmax(100px, 1fr) 74px;
  align-items: center;
  gap: 10px;
}

.studio-timeline > span,
.studio-timeline small {
  color: var(--text-muted);
  font-size: 7px;
}

.studio-timeline > div {
  position: relative;
  height: 7px;
  border-radius: 9px;
  background: var(--line);
}

.studio-timeline i {
  position: absolute;
  left: var(--x, 0);
  width: var(--w);
  height: 100%;
  border-radius: 9px;
  background: var(--mint);
  opacity: 0.62;
}

.studio-timeline i:nth-child(2) {
  background: var(--gold);
}

.studio-timeline i:nth-child(3) {
  background: #7b95d8;
}

.studio-local-badge {
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-muted);
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 6px;
}

@media (max-width: 1050px) {
  .studio-layout {
    grid-template-columns: 165px minmax(0, 1fr) 240px;
  }

  .studio-main {
    padding: 20px 17px 30px;
  }

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

  .idea-poster {
    min-height: 200px;
  }

  .character-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .project-grid {
    grid-template-columns: 1fr;
  }

  .benefit-plans,
  .credit-pack-grid,
  .project-options,
  .style-grid,
  .storyboard-grid,
  .video-workspace,
  .export-panel {
    grid-template-columns: 1fr;
  }

  .studio-workspace {
    grid-template-rows: 62px minmax(0, 1fr) 43px;
  }

  .studio-header {
    grid-template-columns: auto 1fr auto;
    gap: 8px;
    padding: 0 11px;
  }

  .studio-back {
    width: 33px;
    height: 33px;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0;
  }

  .studio-back svg {
    width: 17px;
    height: 17px;
  }

  .studio-title-wrap input {
    width: 150px;
    font-size: 11px;
  }

  .studio-title-wrap span {
    font-size: 7px;
  }

  .studio-header-actions .button {
    min-height: 31px;
    padding: 0 9px;
    font-size: 8px;
  }

  .studio-header-actions .button-dark {
    display: none;
  }

  .studio-layout {
    display: block;
    overflow-y: auto;
  }

  .studio-sidebar {
    position: sticky;
    top: 0;
    z-index: 8;
    display: block;
    padding: 7px 9px;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    background: var(--panel-strong);
  }

  .studio-side-label,
  .studio-storage {
    display: none;
  }

  #stageNav {
    display: flex;
    gap: 5px;
    width: max-content;
  }

  #stageNav button {
    min-height: 34px;
    grid-template-columns: auto auto;
    gap: 5px;
    padding: 0 10px;
    border-radius: 7px;
  }

  #stageNav button > span,
  #stageNav button i {
    display: none;
  }

  #stageNav button strong {
    font-size: 9px;
  }

  .studio-main {
    overflow: visible;
    padding: 18px 13px 28px;
  }

  .studio-stage-header {
    margin-bottom: 15px;
  }

  .studio-stage-header h2 {
    font-size: 24px;
  }

  .studio-inspector {
    margin: 0 13px 25px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 13px;
  }

  .studio-inspector > textarea {
    min-height: 80px;
  }

  .studio-card-grid.three,
  .character-grid,
  .asset-library {
    grid-template-columns: 1fr 1fr;
  }

  .studio-card-grid.three > article:last-child {
    grid-column: 1 / -1;
  }

  .character-card:last-child {
    grid-column: 1 / -1;
  }

  .character-card:last-child .character-image {
    height: 180px;
  }

  .style-card {
    grid-template-columns: 76px 1fr auto;
  }

  .style-preview {
    width: 76px;
    height: 58px;
  }

  .studio-footer {
    padding: 0 11px;
  }

  .studio-timeline {
    grid-template-columns: 1fr 53px;
  }

  .studio-timeline > div {
    display: none;
  }

  .canvas-board {
    min-height: 460px;
  }

  .canvas-note {
    top: 28px;
    left: 21px;
    width: 135px;
  }

  .pin-a {
    width: 155px;
    height: 105px;
    top: 72px;
    right: 15px;
  }

  .pin-b {
    bottom: 38px;
    left: 25px;
    width: 112px;
    height: 156px;
  }

  .pin-c {
    right: 20px;
    bottom: 82px;
    width: 165px;
    height: 110px;
  }

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

  .turnaround-result > div {
    height: 210px;
  }

  .trash-item {
    grid-template-columns: 54px 1fr auto auto;
  }

  .trash-item img {
    width: 54px;
    height: 44px;
  }

  .trash-item .button {
    padding: 0 8px;
  }

  .trash-delete {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 430px) {
  .project-options {
    grid-template-columns: 1fr;
  }

  .project-steps {
    gap: 5px;
  }

  .project-steps span {
    padding: 4px 6px;
    font-size: 8px;
  }

  .benefits-modal {
    padding: 23px 16px;
  }

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

  .plan-card {
    padding: 16px;
  }

  .tool-modal,
  .canvas-modal {
    padding: 22px 16px;
  }

  .canvas-templates {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .canvas-templates img {
    height: 72px;
  }

  .canvas-templates span {
    font-size: 7px;
  }

  .tool-result figcaption {
    display: grid;
  }

  .studio-title-wrap input {
    width: 130px;
  }

  .studio-header-actions .button {
    padding: 0 8px;
  }

  .studio-stage-content {
    gap: 11px;
  }

  .idea-summary {
    padding: 16px;
  }

  .idea-summary h3 {
    font-size: 15px;
  }

  .studio-card-grid.three,
  .character-grid,
  .asset-library {
    grid-template-columns: 1fr;
  }

  .studio-card-grid.three > article:last-child,
  .character-card:last-child {
    grid-column: auto;
  }

  .script-header,
  .asset-stage-head {
    align-items: flex-start;
  }

  .script-header p,
  .asset-stage-head p {
    max-width: 220px;
  }

  .filmstrip {
    grid-template-columns: repeat(6, 1fr);
  }

  .filmstrip > span {
    display: none;
  }

  .style-palette {
    flex-wrap: wrap;
  }

  .style-palette small {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 1100px) {
  .studio-project-picker {
    display: none;
  }
}

@media (max-width: 760px) {
  .studio-credit-chip {
    display: none;
  }

  .script-project-brief {
    align-items: flex-start;
    flex-direction: column;
  }

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

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

  .studio-view-tabs button {
    padding-inline: 8px;
  }

  .long-script-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .long-script-metrics {
    width: 100%;
  }

  .long-script-metrics span {
    flex: 1;
    min-width: 0;
  }

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

  .long-phase-list article,
  .long-outline-list article {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .long-phase-list em,
  .long-outline-list em {
    grid-column: 2;
  }
}

/* AI comic landing layout inspired by the RunningHub public creation page. */
.topbar {
  width: 100%;
  max-width: none;
  padding-inline: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: #050606;
}

main {
  width: 100%;
  max-width: none;
}

.hero {
  display: block;
  width: 100%;
  min-height: 720px;
  padding: 0;
  overflow: hidden;
  border-radius: 0;
  background:
    radial-gradient(circle at 50% 24%, rgba(255, 255, 255, 0.1), transparent 30%),
    #0a0b0b;
}

.hero::before {
  inset: 125px 0 auto;
  height: 105px;
  opacity: 1;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), transparent),
    repeating-linear-gradient(90deg, #050505 0 22px, #d6d6d6 22px 26px, #050505 26px 52px);
  mask-image: linear-gradient(180deg, transparent 0, #000 22%, #000 78%, transparent 100%);
}

.hero::after {
  position: absolute;
  z-index: 1;
  top: 225px;
  left: 50%;
  width: min(720px, 78vw);
  height: 94px;
  content: "";
  clip-path: polygon(0 12%, 100% 0, 94% 100%, 0 100%);
  background:
    repeating-linear-gradient(118deg, #080808 0 66px, #e7e7e7 66px 132px);
  box-shadow: 0 28px 50px rgba(0, 0, 0, 0.5);
  transform: translateX(-50%) rotate(-4deg);
}

.hero .hero-copy,
.hero .viewfinder {
  display: none;
}

.composer-panel {
  position: relative;
  z-index: 4;
  width: min(680px, calc(100% - 32px));
  margin: -430px auto 130px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 0 0 24px 24px;
  background: rgba(39, 39, 39, 0.88);
  box-shadow: 0 35px 90px rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(22px);
}

.composer-panel::before {
  position: absolute;
  top: -13px;
  left: -1px;
  right: -1px;
  height: 14px;
  content: "";
  background: rgba(28, 28, 28, 0.95);
  clip-path: polygon(0 0, 100% 0, 97% 100%, 0 100%);
}

.composer-topline {
  display: block;
  padding: 0 6px;
}

.mode-tabs {
  display: flex;
  width: 100%;
  gap: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.mode-tab {
  flex: 1;
  min-height: 42px;
  border-radius: 0;
  color: rgba(255, 255, 255, 0.55);
  background: transparent;
  font-size: 12px;
}

.mode-tab.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 -2px rgba(255, 255, 255, 0.82);
}

.composer-note {
  display: none;
}

.composer-entry {
  position: relative;
  display: block;
  margin-top: 8px;
}

.composer-field {
  min-height: 242px;
  padding: 14px 14px 62px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(18, 18, 18, 0.5);
}

.composer-field textarea {
  min-height: 158px;
  color: #f2f2f2;
  font-size: 14px;
}

.composer-preferences {
  position: absolute;
  right: 92px;
  bottom: 18px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}

.composer-preferences label {
  position: relative;
  min-width: 0;
}

.composer-preferences label::after {
  position: absolute;
  top: 50%;
  right: 1px;
  content: "⌄";
  color: rgba(242, 242, 242, 0.78);
  font-size: 13px;
  line-height: 1;
  pointer-events: none;
  transform: translateY(-62%);
}

.composer-preferences select {
  width: auto;
  max-width: 150px;
  height: 30px;
  padding: 0 17px 0 0;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: rgba(242, 242, 242, 0.9);
  background: transparent;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
  appearance: none;
  cursor: pointer;
}

.composer-preferences select option {
  color: #111;
  background: #f2f2f2;
}

.send-button {
  position: absolute;
  right: 20px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  min-height: 58px;
  padding: 0;
  border-radius: 50%;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.send-button span {
  display: none;
}

.send-button svg {
  width: 23px;
  transform: rotate(-30deg);
}

.one-click-video-button {
  margin-top: 11px;
  background: rgba(255, 255, 255, 0.045);
}

.idea-guide {
  display: none;
}

.member-banner {
  display: none !important;
}

.tools-section,
.library-section,
.gallery-section,
.site-footer {
  width: min(1360px, calc(100% - 48px));
  margin-inline: auto;
}

.site-footer {
  margin-top: 80px;
}

@media (max-width: 760px) {
  .topbar {
    padding-inline: 14px;
  }

  .hero {
    min-height: 620px;
  }

  .hero::before {
    top: 100px;
  }

  .hero::after {
    top: 170px;
    width: 94vw;
    height: 72px;
  }

  .composer-panel {
    width: calc(100% - 22px);
    margin-top: -370px;
    margin-bottom: 80px;
    padding: 12px;
  }

  .mode-tab {
    font-size: 10px;
  }

  .composer-entry {
    display: block;
  }

  .send-button {
    right: 13px;
    bottom: 15px;
    width: 46px;
    height: 46px;
    min-height: 46px;
    border-radius: 50%;
  }

  .send-button span {
    display: none;
  }

  .composer-field {
    min-height: 222px;
    padding-bottom: 58px;
  }

  .composer-field textarea {
    min-height: 136px;
  }

  .composer-preferences {
    right: 66px;
    bottom: 16px;
    left: 13px;
    gap: 9px;
  }

  .composer-preferences select {
    max-width: 92px;
    padding-right: 12px;
    font-size: 10px;
  }

  .composer-preferences label::after {
    right: -2px;
  }

  .tools-section,
  .library-section,
  .gallery-section,
  .site-footer {
    width: calc(100% - 24px);
  }
}
